|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+BJd":function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("6MrE"),v=d.n(T)},"+QRC":function(U,P,d){"use strict";var O=d("E9nw"),x={"text/plain":"Text","text/html":"Url",default:"Text"},T="Copy to clipboard: #{key}, Enter";function v(m){var f=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return m.replace(/#{\s*key\s*}/g,f)}function S(m,f){var c,o,r,a,n,e,s=!1;f||(f={}),c=f.debug||!1;try{r=O(),a=document.createRange(),n=document.getSelection(),e=document.createElement("span"),e.textContent=m,e.style.all="unset",e.style.position="fixed",e.style.top=0,e.style.clip="rect(0, 0, 0, 0)",e.style.whiteSpace="pre",e.style.webkitUserSelect="text",e.style.MozUserSelect="text",e.style.msUserSelect="text",e.style.userSelect="text",e.addEventListener("copy",function(i){if(i.stopPropagation(),f.format)if(i.preventDefault(),typeof i.clipboardData=="undefined"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var l=x[f.format]||x.default;window.clipboardData.setData(l,m)}else i.clipboardData.clearData(),i.clipboardData.setData(f.format,m);f.onCopy&&(i.preventDefault(),f.onCopy(i.clipboardData))}),document.body.appendChild(e),a.selectNodeContents(e),n.addRange(a);var t=document.execCommand("copy");if(!t)throw new Error("copy command was unsuccessful");s=!0}catch(i){c&&console.error("unable to copy using execCommand: ",i),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(f.format||"text",m),f.onCopy&&f.onCopy(window.clipboardData),s=!0}catch(l){c&&console.error("unable to copy using clipboardData: ",l),c&&console.error("falling back to prompt"),o=v("message"in f?f.message:T),window.prompt(o,m)}}finally{n&&(typeof n.removeRange=="function"?n.removeRange(a):n.removeAllRanges()),e&&document.body.removeChild(e),r()}return s}U.exports=S},"+TT/":function(U,P,d){var O=d("bYtY"),x=d("mFDi"),T=d("OELB"),v=T.parsePercent,S=d("7aKB"),m=O.each,f=["left","right","top","bottom","width","height"],c=[["width","left","right"],["height","top","bottom"]];function o(p,g,A,y,E){var C=0,w=0;y==null&&(y=Infinity),E==null&&(E=Infinity);var b=0;g.eachChild(function(I,_){var L=I.position,D=I.getBoundingRect(),N=g.childAt(_+1),R=N&&N.getBoundingRect(),B,M;if(p==="horizontal"){var H=D.width+(R?-R.x+D.x:0);B=C+H,B>y||I.newline?(C=0,B=H,w+=b+A,b=D.height):b=Math.max(b,D.height)}else{var F=D.height+(R?-R.y+D.y:0);M=w+F,M>E||I.newline?(C+=b+A,w=0,M=F,b=D.width):b=Math.max(b,D.width)}if(I.newline)return;L[0]=C,L[1]=w,p==="horizontal"?C=B+A:w=M+A})}var r=o,a=O.curry(o,"vertical"),n=O.curry(o,"horizontal");function e(p,g,A){var y=g.width,E=g.height,C=v(p.x,y),w=v(p.y,E),b=v(p.x2,y),I=v(p.y2,E);return(isNaN(C)||isNaN(parseFloat(p.x)))&&(C=0),(isNaN(b)||isNaN(parseFloat(p.x2)))&&(b=y),(isNaN(w)||isNaN(parseFloat(p.y)))&&(w=0),(isNaN(I)||isNaN(parseFloat(p.y2)))&&(I=E),A=S.normalizeCssArray(A||0),{width:Math.max(b-C-A[1]-A[3],0),height:Math.max(I-w-A[0]-A[2],0)}}function s(p,g,A){A=S.normalizeCssArray(A||0);var y=g.width,E=g.height,C=v(p.left,y),w=v(p.top,E),b=v(p.right,y),I=v(p.bottom,E),_=v(p.width,y),L=v(p.height,E),D=A[2]+A[0],N=A[1]+A[3],R=p.aspect;isNaN(_)&&(_=y-b-N-C),isNaN(L)&&(L=E-I-D-w),R!=null&&(isNaN(_)&&isNaN(L)&&(R>y/E?_=y*.8:L=E*.8),isNaN(_)&&(_=R*L),isNaN(L)&&(L=_/R)),isNaN(C)&&(C=y-b-_-N),isNaN(w)&&(w=E-I-L-D);switch(p.left||p.right){case"center":C=y/2-_/2-A[3];break;case"right":C=y-_-N;break}switch(p.top||p.bottom){case"middle":case"center":w=E/2-L/2-A[0];break;case"bottom":w=E-L-D;break}C=C||0,w=w||0,isNaN(_)&&(_=y-N-C-(b||0)),isNaN(L)&&(L=E-D-w-(I||0));var B=new x(C+A[3],w+A[0],_,L);return B.margin=A,B}function t(p,g,A,y,E){var C=!E||!E.hv||E.hv[0],w=!E||!E.hv||E.hv[1],b=E&&E.boundingMode||"all";if(!C&&!w)return;var I;if(b==="raw")I=p.type==="group"?new x(0,0,+g.width||0,+g.height||0):p.getBoundingRect();else if(I=p.getBoundingRect(),p.needLocalTransform()){var _=p.getLocalTransform();I=I.clone(),I.applyTransform(_)}g=s(O.defaults({width:I.width,height:I.height},g),A,y);var L=p.position,D=C?g.x-I.x:0,N=w?g.y-I.y:0;p.attr("position",b==="raw"?[D,N]:[L[0]+D,L[1]+N])}function i(p,g){return p[c[g][0]]!=null||p[c[g][1]]!=null&&p[c[g][2]]!=null}function l(p,g,A){!O.isObject(A)&&(A={});var y=A.ignoreSize;!O.isArray(y)&&(y=[y,y]);var E=w(c[0],0),C=w(c[1],1);_(c[0],p,E),_(c[1],p,C);function w(L,D){var N={},R=0,B={},M=0,H=2;if(m(L,function(j){B[j]=p[j]}),m(L,function(j){b(g,j)&&(N[j]=B[j]=g[j]),I(N,j)&&R++,I(B,j)&&M++}),y[D])return I(g,L[1])?B[L[2]]=null:I(g,L[2])&&(B[L[1]]=null),B;if(M===H||!R)return B;if(R>=H)return N;for(var F=0;F<L.length;F++){var K=L[F];if(!b(N,K)&&b(p,K)){N[K]=p[K];break}}return N}function b(L,D){return L.hasOwnProperty(D)}function I(L,D){return L[D]!=null&&L[D]!=="auto"}function _(L,D,N){m(L,function(R){D[R]=N[R]})}}function u(p){return h({},p)}function h(p,g){return g&&p&&m(f,function(A){g.hasOwnProperty(A)&&(p[A]=g[A])}),p}P.LOCATION_PARAMS=f,P.HV_NAMES=c,P.box=r,P.vbox=a,P.hbox=n,P.getAvailableSize=e,P.getLayoutRect=s,P.positionElement=t,P.sizeCalculable=i,P.mergeLayoutParam=l,P.getLayoutParams=u,P.copyLayoutParams=h},"+Zaj":function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("ugBc")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="CalendarOutlined";var c=v.forwardRef(f);P.default=c},"+d4F":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("y3Yb"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},"+eQT":function(U,P,d){"use strict";var O=d("wd/R"),x=d.n(O),T=d("Kwbf"),v={getNow:function(){return x()()},getWeekDay:function(ar){var Fr=ar.clone().locale("en_US");return Fr.weekday()+Fr.localeData().firstDayOfWeek()},getYear:function(ar){return ar.year()},getMonth:function(ar){return ar.month()},getDate:function(ar){return ar.date()},getHour:function(ar){return ar.hour()},getMinute:function(ar){return ar.minute()},getSecond:function(ar){return ar.second()},addYear:function(ar,Fr){var Ir=ar.clone();return Ir.add(Fr,"year")},addMonth:function(ar,Fr){var Ir=ar.clone();return Ir.add(Fr,"month")},addDate:function(ar,Fr){var Ir=ar.clone();return Ir.add(Fr,"day")},setYear:function(ar,Fr){var Ir=ar.clone();return Ir.year(Fr)},setMonth:function(ar,Fr){var Ir=ar.clone();return Ir.month(Fr)},setDate:function(ar,Fr){var Ir=ar.clone();return Ir.date(Fr)},setHour:function(ar,Fr){var Ir=ar.clone();return Ir.hour(Fr)},setMinute:function(ar,Fr){var Ir=ar.clone();return Ir.minute(Fr)},setSecond:function(ar,Fr){var Ir=ar.clone();return Ir.second(Fr)},isAfter:function(ar,Fr){return ar.isAfter(Fr)},isValidate:function(ar){return ar.isValid()},locale:{getWeekFirstDay:function(ar){var Fr=x()().locale(ar);return Fr.localeData().firstDayOfWeek()},getWeek:function(ar,Fr){var Ir=Fr.clone(),En=Ir.locale(ar);return En.week()},getShortWeekDays:function(ar){var Fr=x()().locale(ar);return Fr.localeData().weekdaysMin()},getShortMonths:function(ar){var Fr=x()().locale(ar);return Fr.localeData().monthsShort()},format:function(ar,Fr,Ir){var En=Fr.clone(),zr=En.locale(ar);return zr.format(Ir)},parse:function(ar,Fr,Ir){for(var En=[],zr=0;zr<Ir.length;zr+=1){var yr=Ir[zr],Cn=Fr;if(yr.includes("wo")||yr.includes("Wo")){yr=yr.replace(/wo/g,"w").replace(/Wo/g,"W");var Pr=yr.match(/[-YyMmDdHhSsWwGg]+/g),xn=Cn.match(/[-\d]+/g);Pr&&xn?(yr=Pr.join(""),Cn=xn.join("")):En.push(yr.replace(/o/g,""))}var Qn=x()(Cn,yr,ar,!0);if(Qn.isValid())return Qn}for(var $n=0;$n<En.length;$n+=1){var Kn=x()(Fr,En[$n],ar,!1);if(Kn.isValid())return Object(T.b)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),Kn}return null}}},S=v,m=d("pVnL"),f=d.n(m),c=d("q1tI"),o=d.n(c),r=d("2/Rp");function a(rt){return c.createElement(r.a,f()({size:"small",type:"primary"},rt))}var n=d("mr32");function e(rt){return c.createElement(n.a,f()({color:"blue"},rt))}var s=d("lSNA"),t=d.n(s),i=d("lwsE"),l=d.n(i),u=d("W8MJ"),h=d.n(u),p=d("7W2i"),g=d.n(p),A=d("LQ03"),y=d.n(A),E=d("TSYQ"),C=d.n(E),w=d("r/2G"),b=d.n(w),I=d("XzQk"),_=d.n(I),L=d("kbBi"),D=d.n(L),N=d("1OyB"),R=d("vuIU"),B=d("Ji7U"),M=d("LK+K"),H=d("rePB"),F=d("VTBJ"),K=d("ODXe"),j=d("6cGi"),V=d("U8pU"),z=d("4IlW"),Y=c.createContext({}),ee=Y,fe={visibility:"hidden"};function ie(rt){var ar=rt.prefixCls,Fr=rt.prevIcon,Ir=Fr===void 0?"\u2039":Fr,En=rt.nextIcon,zr=En===void 0?"\u203A":En,yr=rt.superPrevIcon,Cn=yr===void 0?"\xAB":yr,Pr=rt.superNextIcon,xn=Pr===void 0?"\xBB":Pr,Qn=rt.onSuperPrev,$n=rt.onSuperNext,Kn=rt.onPrev,si=rt.onNext,Xn=rt.children,ti=c.useContext(ee),di=ti.hideNextBtn,Bi=ti.hidePrevBtn;return c.createElement("div",{className:ar},Qn&&c.createElement("button",{type:"button",onClick:Qn,tabIndex:-1,className:"".concat(ar,"-super-prev-btn"),style:Bi?fe:{}},Cn),Kn&&c.createElement("button",{type:"button",onClick:Kn,tabIndex:-1,className:"".concat(ar,"-prev-btn"),style:Bi?fe:{}},Ir),c.createElement("div",{className:"".concat(ar,"-view")},Xn),si&&c.createElement("button",{type:"button",onClick:si,tabIndex:-1,className:"".concat(ar,"-next-btn"),style:di?fe:{}},zr),$n&&c.createElement("button",{type:"button",onClick:$n,tabIndex:-1,className:"".concat(ar,"-super-next-btn"),style:di?fe:{}},xn))}var we=ie;function Ce(rt){var ar=c.useContext(ee),Fr=ar.hideHeader;if(Fr)return null;var Ir=rt.prefixCls,En=rt.generateConfig,zr=rt.locale,yr=rt.value,Cn=rt.format,Pr="".concat(Ir,"-header");return c.createElement(we,{prefixCls:Pr},yr?En.locale.format(zr.locale,yr,Cn):"\xA0")}var Le=Ce,He=d("YrtM"),ce=d("KQm4"),Pe=new Map;function Q(rt,ar,Fr){if(Pe.get(rt)&&cancelAnimationFrame(Pe.get(rt)),Fr<=0){Pe.set(rt,requestAnimationFrame(function(){rt.scrollTop=ar}));return}var Ir=ar-rt.scrollTop,En=Ir/Fr*10;Pe.set(rt,requestAnimationFrame(function(){rt.scrollTop+=En,rt.scrollTop!==ar&&Q(rt,ar,Fr-10)}))}function me(rt,ar){var Fr=ar.onLeftRight,Ir=ar.onCtrlLeftRight,En=ar.onUpDown,zr=ar.onPageUpDown,yr=ar.onEnter,Cn=rt.which,Pr=rt.ctrlKey,xn=rt.metaKey;switch(Cn){case z.a.LEFT:if(Pr||xn){if(Ir)return Ir(-1),!0}else if(Fr)return Fr(-1),!0;break;case z.a.RIGHT:if(Pr||xn){if(Ir)return Ir(1),!0}else if(Fr)return Fr(1),!0;break;case z.a.UP:if(En)return En(-1),!0;break;case z.a.DOWN:if(En)return En(1),!0;break;case z.a.PAGE_UP:if(zr)return zr(-1),!0;break;case z.a.PAGE_DOWN:if(zr)return zr(1),!0;break;case z.a.ENTER:if(yr)return yr(),!0;break}return!1}function Je(rt,ar,Fr,Ir){var En=rt;if(!En)switch(ar){case"time":En=Ir?"hh:mm:ss a":"HH:mm:ss";break;case"week":En="gggg-wo";break;case"month":En="YYYY-MM";break;case"quarter":En="YYYY-[Q]Q";break;case"year":En="YYYY";break;default:En=Fr?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return En}function re(rt,ar){var Fr=rt==="time"?8:10;return Math.max(Fr,ar.length)+2}var G=null,X=new Set;function J(rt){return!G&&typeof window!="undefined"&&window.addEventListener&&(G=function(Fr){Object(ce.a)(X).forEach(function(Ir){Ir(Fr)})},window.addEventListener("mousedown",G)),X.add(rt),function(){X.delete(rt),X.size===0&&(window.removeEventListener("mousedown",G),G=null)}}var Ae=function(ar){return ar==="month"||ar==="date"?"year":ar},he=function(ar){return ar==="date"?"month":ar},Me=function(ar){return ar==="month"||ar==="date"?"quarter":ar},Ie=function(ar){return ar==="date"?"week":ar},oe={year:Ae,month:he,quarter:Me,week:Ie,time:null,date:null};function pe(rt,ar){return rt.some(function(Fr){return Fr&&Fr.contains(ar)})}function Oe(rt){var ar=rt.prefixCls,Fr=rt.units,Ir=rt.onSelect,En=rt.value,zr=rt.active,yr=rt.hideDisabledOptions,Cn="".concat(ar,"-cell"),Pr=c.useContext(ee),xn=Pr.open,Qn=c.useRef(null),$n=c.useRef(new Map);return c.useLayoutEffect(function(){var Kn=$n.current.get(En);Kn&&xn!==!1&&Q(Qn.current,Kn.offsetTop,120)},[En]),c.useLayoutEffect(function(){if(xn){var Kn=$n.current.get(En);Kn&&Q(Qn.current,Kn.offsetTop,0)}},[xn]),c.createElement("ul",{className:C()("".concat(ar,"-column"),Object(H.a)({},"".concat(ar,"-column-active"),zr)),ref:Qn,style:{position:"relative"}},Fr.map(function(Kn){var si;return yr&&Kn.disabled?null:c.createElement("li",{key:Kn.value,ref:function(ti){$n.current.set(Kn.value,ti)},className:C()(Cn,(si={},Object(H.a)(si,"".concat(Cn,"-disabled"),Kn.disabled),Object(H.a)(si,"".concat(Cn,"-selected"),En===Kn.value),si)),onClick:function(){if(Kn.disabled)return;Ir(Kn.value)}},c.createElement("div",{className:"".concat(Cn,"-inner")},Kn.label))}))}var Ye=Oe;function it(rt,ar){for(var Fr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Ir=String(rt);Ir.length<ar;)Ir="".concat(Fr).concat(rt);return Ir}var et=function(){for(var ar=arguments.length,Fr=new Array(ar),Ir=0;Ir<ar;Ir++)Fr[Ir]=arguments[Ir];return Fr};function Te(rt){return rt==null?[]:Array.isArray(rt)?rt:[rt]}function tt(rt){var ar={};return Object.keys(rt).forEach(function(Fr){(Fr.substr(0,5)==="data-"||Fr.substr(0,5)==="aria-"||Fr==="role"||Fr==="name")&&Fr.substr(0,7)!=="data-__"&&(ar[Fr]=rt[Fr])}),ar}function ze(rt,ar){return rt?rt[ar]:null}function dt(rt,ar,Fr){var Ir=[ze(rt,0),ze(rt,1)];return Ir[Fr]=typeof ar=="function"?ar(Ir[Fr]):ar,!Ir[0]&&!Ir[1]?null:Ir}function Ot(rt,ar,Fr,Ir,En){var zr=rt.setHour(ar,Fr);return zr=rt.setMinute(zr,Ir),zr=rt.setSecond(zr,En),zr}function Tt(rt,ar,Fr,Ir,En,zr){var yr=Math.floor(rt/Ir)*Ir;if(yr<rt)return[yr,60-En,60-zr];var Cn=Math.floor(ar/En)*En;if(Cn<ar)return[yr,Cn,60-zr];var Pr=Math.floor(Fr/zr)*zr;return[yr,Cn,Pr]}function Ct(rt,ar){if(rt.length!==ar.length)return!0;for(var Fr=0;Fr<rt.length;Fr+=1)if(rt[Fr].disabled!==ar[Fr].disabled)return!0;return!1}function Nt(rt,ar,Fr,Ir){for(var En=[],zr=rt;zr<=ar;zr+=Fr)En.push({label:it(zr,2),value:zr,disabled:(Ir||[]).includes(zr)});return En}function Be(rt){var ar=rt.generateConfig,Fr=rt.prefixCls,Ir=rt.operationRef,En=rt.activeColumnIndex,zr=rt.value,yr=rt.showHour,Cn=rt.showMinute,Pr=rt.showSecond,xn=rt.use12Hours,Qn=rt.hourStep,$n=Qn===void 0?1:Qn,Kn=rt.minuteStep,si=Kn===void 0?1:Kn,Xn=rt.secondStep,ti=Xn===void 0?1:Xn,di=rt.disabledHours,Bi=rt.disabledMinutes,yi=rt.disabledSeconds,Xi=rt.hideDisabledOptions,ba=rt.onSelect,ta=[],Qi="".concat(Fr,"-content"),aa="".concat(Fr,"-time-panel"),fa,xo=zr?ar.getHour(zr):-1,Za=zr?ar.getMinute(zr):-1,Wi=zr?ar.getSecond(zr):-1,Gi=function($a,Ca,Eo,qo){var vo=zr||ar.getNow(),rs=Math.max(0,Ca),ho=Math.max(0,Eo),No=Math.max(0,qo);return vo=Ot(ar,vo,!xn||!$a?rs:rs+12,ho,No),vo},ca=Nt(0,23,$n,di&&di()),ya=Object(He.a)(function(){return ca},ca,Ct);xn&&(fa=xo>=12,xo%=12);var Xa=c.useMemo(function(){if(!xn)return[!1,!1];var Fa=[!0,!0];return ya.forEach(function($a){var Ca=$a.disabled,Eo=$a.value;if(Ca)return;Eo>=12?Fa[1]=!1:Fa[0]=!1}),Fa},[xn,ya]),_a=Object(K.a)(Xa,2),qa=_a[0],ro=_a[1],Uo=c.useMemo(function(){return xn?ya.filter(fa?function(Fa){return Fa.value>=12}:function(Fa){return Fa.value<12}).map(function(Fa){var $a=Fa.value%12,Ca=$a===0?"12":it($a,2);return Object(F.a)(Object(F.a)({},Fa),{},{label:Ca,value:$a})}):ya},[xn,ya]),zo=Nt(0,59,si,Bi&&Bi(xo)),hs=Nt(0,59,ti,yi&&yi(xo,Za));Ir.current={onUpDown:function($a){var Ca=ta[En];if(Ca)for(var Eo=Ca.units.findIndex(function(ho){return ho.value===Ca.value}),qo=Ca.units.length,vo=1;vo<qo;vo+=1){var rs=Ca.units[(Eo+$a*vo+qo)%qo];if(rs.disabled!==!0){Ca.onSelect(rs.value);break}}}};function Po(Fa,$a,Ca,Eo,qo){Fa!==!1&&ta.push({node:c.cloneElement($a,{prefixCls:aa,value:Ca,active:En===ta.length,onSelect:qo,units:Eo,hideDisabledOptions:Xi}),onSelect:qo,value:Ca,units:Eo})}Po(yr,c.createElement(Ye,{key:"hour"}),xo,Uo,function(Fa){ba(Gi(fa,Fa,Za,Wi),"mouse")}),Po(Cn,c.createElement(Ye,{key:"minute"}),Za,zo,function(Fa){ba(Gi(fa,xo,Fa,Wi),"mouse")}),Po(Pr,c.createElement(Ye,{key:"second"}),Wi,hs,function(Fa){ba(Gi(fa,xo,Za,Fa),"mouse")});var Mo=-1;return typeof fa=="boolean"&&(Mo=fa?1:0),Po(xn===!0,c.createElement(Ye,{key:"12hours"}),Mo,[{label:"AM",value:0,disabled:qa},{label:"PM",value:1,disabled:ro}],function(Fa){ba(Gi(!!Fa,xo,Za,Wi),"mouse")}),c.createElement("div",{className:Qi},ta.map(function(Fa){var $a=Fa.node;return $a}))}var $=Be,Z=function(ar){return ar.filter(function(Fr){return Fr!==!1}).length};function Re(rt){var ar=rt.generateConfig,Fr=rt.format,Ir=Fr===void 0?"HH:mm:ss":Fr,En=rt.prefixCls,zr=rt.active,yr=rt.operationRef,Cn=rt.showHour,Pr=rt.showMinute,xn=rt.showSecond,Qn=rt.use12Hours,$n=Qn===void 0?!1:Qn,Kn=rt.onSelect,si=rt.value,Xn="".concat(En,"-time-panel"),ti=c.useRef(),di=c.useState(-1),Bi=Object(K.a)(di,2),yi=Bi[0],Xi=Bi[1],ba=Z([Cn,Pr,xn,$n]);return yr.current={onKeyDown:function(Qi){return me(Qi,{onLeftRight:function(fa){Xi((yi+fa+ba)%ba)},onUpDown:function(fa){yi===-1?Xi(0):ti.current&&ti.current.onUpDown(fa)},onEnter:function(){Kn(si||ar.getNow(),"key"),Xi(-1)}})},onBlur:function(){Xi(-1)}},c.createElement("div",{className:C()(Xn,Object(H.a)({},"".concat(Xn,"-active"),zr))},c.createElement(Le,Object.assign({},rt,{format:Ir,prefixCls:En})),c.createElement($,Object.assign({},rt,{prefixCls:En,activeColumnIndex:yi,operationRef:ti})))}var De=Re,ae=7;function gt(rt,ar){return!rt&&!ar?!0:!rt||!ar?!1:void 0}function jt(rt,ar,Fr){var Ir=gt(ar,Fr);if(typeof Ir=="boolean")return Ir;var En=Math.floor(rt.getYear(ar)/10),zr=Math.floor(rt.getYear(Fr)/10);return En===zr}function ut(rt,ar,Fr){var Ir=gt(ar,Fr);return typeof Ir=="boolean"?Ir:rt.getYear(ar)===rt.getYear(Fr)}function rr(rt,ar){var Fr=Math.floor(rt.getMonth(ar)/3);return Fr+1}function pr(rt,ar,Fr){var Ir=gt(ar,Fr);return typeof Ir=="boolean"?Ir:ut(rt,ar,Fr)&&rr(rt,ar)===rr(rt,Fr)}function nn(rt,ar,Fr){var Ir=gt(ar,Fr);return typeof Ir=="boolean"?Ir:ut(rt,ar,Fr)&&rt.getMonth(ar)===rt.getMonth(Fr)}function mr(rt,ar,Fr){var Ir=gt(ar,Fr);return typeof Ir=="boolean"?Ir:rt.getYear(ar)===rt.getYear(Fr)&&rt.getMonth(ar)===rt.getMonth(Fr)&&rt.getDate(ar)===rt.getDate(Fr)}function vr(rt,ar,Fr){var Ir=gt(ar,Fr);return typeof Ir=="boolean"?Ir:rt.getHour(ar)===rt.getHour(Fr)&&rt.getMinute(ar)===rt.getMinute(Fr)&&rt.getSecond(ar)===rt.getSecond(Fr)}function $t(rt,ar,Fr,Ir){var En=gt(Fr,Ir);return typeof En=="boolean"?En:rt.locale.getWeek(ar,Fr)===rt.locale.getWeek(ar,Ir)}function Xt(rt,ar,Fr){return mr(rt,ar,Fr)&&vr(rt,ar,Fr)}function ft(rt,ar,Fr,Ir){return!ar||!Fr||!Ir?!1:!mr(rt,ar,Ir)&&!mr(rt,Fr,Ir)&&rt.isAfter(Ir,ar)&&rt.isAfter(Fr,Ir)}function Ur(rt,ar,Fr){var Ir=ar.locale.getWeekFirstDay(rt),En=ar.setDate(Fr,1),zr=ar.getWeekDay(En),yr=ar.addDate(En,Ir-zr);return ar.getMonth(yr)===ar.getMonth(Fr)&&ar.getDate(yr)>1&&(yr=ar.addDate(yr,-7)),yr}function yn(rt,ar,Fr){var Ir=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(ar){case"year":return Fr.addYear(rt,Ir*10);case"quarter":case"month":return Fr.addYear(rt,Ir);default:return Fr.addMonth(rt,Ir)}}var Dn=c.createContext({}),Un=Dn;function wi(rt){var ar=rt.cellPrefixCls,Fr=rt.generateConfig,Ir=rt.rangedValue,En=rt.hoverRangedValue,zr=rt.isInView,yr=rt.isSameCell,Cn=rt.offsetCell,Pr=rt.today,xn=rt.value;function Qn($n){var Kn,si=Cn($n,-1),Xn=Cn($n,1),ti=ze(Ir,0),di=ze(Ir,1),Bi=ze(En,0),yi=ze(En,1),Xi=ft(Fr,Bi,yi,$n);function ba(Za){return yr(ti,Za)}function ta(Za){return yr(di,Za)}var Qi=yr(Bi,$n),aa=yr(yi,$n),fa=(Xi||aa)&&(!zr(si)||ta(si)),xo=(Xi||Qi)&&(!zr(Xn)||ba(Xn));return Kn={},Object(H.a)(Kn,"".concat(ar,"-in-view"),zr($n)),Object(H.a)(Kn,"".concat(ar,"-in-range"),ft(Fr,ti,di,$n)),Object(H.a)(Kn,"".concat(ar,"-range-start"),ba($n)),Object(H.a)(Kn,"".concat(ar,"-range-end"),ta($n)),Object(H.a)(Kn,"".concat(ar,"-range-start-single"),ba($n)&&!di),Object(H.a)(Kn,"".concat(ar,"-range-end-single"),ta($n)&&!ti),Object(H.a)(Kn,"".concat(ar,"-range-start-near-hover"),ba($n)&&(yr(si,Bi)||ft(Fr,Bi,yi,si))),Object(H.a)(Kn,"".concat(ar,"-range-end-near-hover"),ta($n)&&(yr(Xn,yi)||ft(Fr,Bi,yi,Xn))),Object(H.a)(Kn,"".concat(ar,"-range-hover"),Xi),Object(H.a)(Kn,"".concat(ar,"-range-hover-start"),Qi),Object(H.a)(Kn,"".concat(ar,"-range-hover-end"),aa),Object(H.a)(Kn,"".concat(ar,"-range-hover-edge-start"),fa),Object(H.a)(Kn,"".concat(ar,"-range-hover-edge-end"),xo),Object(H.a)(Kn,"".concat(ar,"-range-hover-edge-start-near-range"),fa&&yr(si,di)),Object(H.a)(Kn,"".concat(ar,"-range-hover-edge-end-near-range"),xo&&yr(Xn,ti)),Object(H.a)(Kn,"".concat(ar,"-today"),yr(Pr,$n)),Object(H.a)(Kn,"".concat(ar,"-selected"),yr(xn,$n)),Kn}return Qn}function Rn(rt){for(var ar=rt.prefixCls,Fr=rt.disabledDate,Ir=rt.onSelect,En=rt.rowNum,zr=rt.colNum,yr=rt.prefixColumn,Cn=rt.rowClassName,Pr=rt.baseDate,xn=rt.getCellClassName,Qn=rt.getCellText,$n=rt.getCellNode,Kn=rt.getCellDate,si=rt.titleCell,Xn=rt.headerCells,ti=c.useContext(ee),di=ti.onDateMouseEnter,Bi=ti.onDateMouseLeave,yi="".concat(ar,"-cell"),Xi=[],ba=0;ba<En;ba+=1){for(var ta=[],Qi=void 0,aa=function(Za){var Wi=ba*zr+Za,Gi=Kn(Pr,Wi),ca=Fr&&Fr(Gi);Za===0&&(Qi=Gi,yr&&ta.push(yr(Qi))),ta.push(c.createElement("td",{key:Za,title:si&&si(Gi),className:C()(yi,Object(F.a)(Object(H.a)({},"".concat(yi,"-disabled"),ca),xn(Gi))),onClick:function(){ca||Ir(Gi)},onMouseEnter:function(){!ca&&di&&di(Gi)},onMouseLeave:function(){!ca&&Bi&&Bi(Gi)}},$n?$n(Gi):c.createElement("div",{className:"".concat(yi,"-inner")},Qn(Gi))))},fa=0;fa<zr;fa+=1)aa(fa);Xi.push(c.createElement("tr",{key:ba,className:Cn&&Cn(Qi)},ta))}return c.createElement("div",{className:"".concat(ar,"-body")},c.createElement("table",{className:"".concat(ar,"-content")},Xn&&c.createElement("thead",null,c.createElement("tr",null,Xn)),c.createElement("tbody",null,Xi)))}function kn(rt){var ar=rt.prefixCls,Fr=rt.generateConfig,Ir=rt.prefixColumn,En=rt.locale,zr=rt.rowCount,yr=rt.viewDate,Cn=rt.value,Pr=rt.dateRender,xn=c.useContext(Un),Qn=xn.rangedValue,$n=xn.hoverRangedValue,Kn=Ur(En.locale,Fr,yr),si="".concat(ar,"-cell"),Xn=Fr.locale.getWeekFirstDay(En.locale),ti=Fr.getNow(),di=[],Bi=En.shortWeekDays||(Fr.locale.getShortWeekDays?Fr.locale.getShortWeekDays(En.locale):[]);Ir&&di.push(c.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var yi=0;yi<ae;yi+=1)di.push(c.createElement("th",{key:yi},Bi[(yi+Xn)%ae]));var Xi=wi({cellPrefixCls:si,today:ti,value:Cn,generateConfig:Fr,rangedValue:Ir?null:Qn,hoverRangedValue:Ir?null:$n,isSameCell:function(Qi,aa){return mr(Fr,Qi,aa)},isInView:function(Qi){return nn(Fr,Qi,yr)},offsetCell:function(Qi,aa){return Fr.addDate(Qi,aa)}}),ba=Pr?function(ta){return Pr(ta,ti)}:void 0;return c.createElement(Rn,Object.assign({},rt,{rowNum:zr,colNum:ae,baseDate:Kn,getCellNode:ba,getCellText:Fr.getDate,getCellClassName:Xi,getCellDate:Fr.addDate,titleCell:function(Qi){return Fr.locale.format(En.locale,Qi,"YYYY-MM-DD")},headerCells:di}))}var Vn=kn;function Gt(rt){var ar=rt.prefixCls,Fr=rt.generateConfig,Ir=rt.locale,En=rt.viewDate,zr=rt.onNextMonth,yr=rt.onPrevMonth,Cn=rt.onNextYear,Pr=rt.onPrevYear,xn=rt.onYearClick,Qn=rt.onMonthClick,$n=c.useContext(ee),Kn=$n.hideHeader;if(Kn)return null;var si="".concat(ar,"-header"),Xn=Ir.shortMonths||(Fr.locale.getShortMonths?Fr.locale.getShortMonths(Ir.locale):[]),ti=Fr.getMonth(En),di=c.createElement("button",{type:"button",key:"year",onClick:xn,tabIndex:-1,className:"".concat(ar,"-year-btn")},Fr.locale.format(Ir.locale,En,Ir.yearFormat)),Bi=c.createElement("button",{type:"button",key:"month",onClick:Qn,tabIndex:-1,className:"".concat(ar,"-month-btn")},Ir.monthFormat?Fr.locale.format(Ir.locale,En,Ir.monthFormat):Xn[ti]),yi=Ir.monthBeforeYear?[Bi,di]:[di,Bi];return c.createElement(we,Object.assign({},rt,{prefixCls:si,onSuperPrev:Pr,onPrev:yr,onNext:zr,onSuperNext:Cn}),yi)}var st=Gt,ue=6;function Ee(rt){var ar=rt.prefixCls,Fr=rt.panelName,Ir=Fr===void 0?"date":Fr,En=rt.keyboardConfig,zr=rt.active,yr=rt.operationRef,Cn=rt.generateConfig,Pr=rt.value,xn=rt.viewDate,Qn=rt.onViewDateChange,$n=rt.onPanelChange,Kn=rt.onSelect,si="".concat(ar,"-").concat(Ir,"-panel");yr.current={onKeyDown:function(Bi){return me(Bi,Object(F.a)({onLeftRight:function(Xi){Kn(Cn.addDate(Pr||xn,Xi),"key")},onCtrlLeftRight:function(Xi){Kn(Cn.addYear(Pr||xn,Xi),"key")},onUpDown:function(Xi){Kn(Cn.addDate(Pr||xn,Xi*ae),"key")},onPageUpDown:function(Xi){Kn(Cn.addMonth(Pr||xn,Xi),"key")}},En))}};var Xn=function(Bi){var yi=Cn.addYear(xn,Bi);Qn(yi),$n(null,yi)},ti=function(Bi){var yi=Cn.addMonth(xn,Bi);Qn(yi),$n(null,yi)};return c.createElement("div",{className:C()(si,Object(H.a)({},"".concat(si,"-active"),zr))},c.createElement(st,Object.assign({},rt,{prefixCls:ar,value:Pr,viewDate:xn,onPrevYear:function(){Xn(-1)},onNextYear:function(){Xn(1)},onPrevMonth:function(){ti(-1)},onNextMonth:function(){ti(1)},onMonthClick:function(){$n("month",xn)},onYearClick:function(){$n("year",xn)}})),c.createElement(Vn,Object.assign({},rt,{onSelect:function(Bi){return Kn(Bi,"mouse")},prefixCls:ar,value:Pr,viewDate:xn,rowCount:ue})))}var je=Ee;function Ve(rt,ar,Fr){if(!Fr)return ar;var Ir=ar;return Ir=rt.setHour(Ir,rt.getHour(Fr)),Ir=rt.setMinute(Ir,rt.getMinute(Fr)),Ir=rt.setSecond(Ir,rt.getSecond(Fr)),Ir}var $e=et("date","time");function wt(rt){var ar=rt.prefixCls,Fr=rt.operationRef,Ir=rt.generateConfig,En=rt.value,zr=rt.defaultValue,yr=rt.disabledTime,Cn=rt.showTime,Pr=rt.onSelect,xn="".concat(ar,"-datetime-panel"),Qn=c.useState(null),$n=Object(K.a)(Qn,2),Kn=$n[0],si=$n[1],Xn=c.useRef({}),ti=c.useRef({}),di=Object(V.a)(Cn)==="object"?Object(F.a)({},Cn):{};function Bi(ta){var Qi=$e.indexOf(Kn)+ta,aa=$e[Qi]||null;return aa}var yi=function(Qi){ti.current.onBlur&&ti.current.onBlur(Qi),si(null)};Fr.current={onKeyDown:function(Qi){if(Qi.which===z.a.TAB){var aa=Bi(Qi.shiftKey?-1:1);return si(aa),aa&&Qi.preventDefault(),!0}if(Kn){var fa=Kn==="date"?Xn:ti;return fa.current&&fa.current.onKeyDown&&fa.current.onKeyDown(Qi),!0}return[z.a.LEFT,z.a.RIGHT,z.a.UP,z.a.DOWN].includes(Qi.which)?(si("date"),!0):!1},onBlur:yi,onClose:yi};var Xi=function(Qi,aa){var fa=Qi;aa==="date"&&!En&&di.defaultValue?(fa=Ir.setHour(fa,Ir.getHour(di.defaultValue)),fa=Ir.setMinute(fa,Ir.getMinute(di.defaultValue)),fa=Ir.setSecond(fa,Ir.getSecond(di.defaultValue))):aa==="time"&&!En&&zr&&(fa=Ir.setYear(fa,Ir.getYear(zr)),fa=Ir.setMonth(fa,Ir.getMonth(zr)),fa=Ir.setDate(fa,Ir.getDate(zr))),Pr&&Pr(fa,"mouse")},ba=yr?yr(En||null):{};return c.createElement("div",{className:C()(xn,Object(H.a)({},"".concat(xn,"-active"),Kn))},c.createElement(je,Object.assign({},rt,{operationRef:Xn,active:Kn==="date",onSelect:function(Qi){Xi(Ve(Ir,Qi,Cn&&Object(V.a)(Cn)==="object"?Cn.defaultValue:null),"date")}})),c.createElement(De,Object.assign({},rt,{format:void 0},di,ba,{defaultValue:void 0,operationRef:ti,active:Kn==="time",onSelect:function(Qi){Xi(Qi,"time")}})))}var qt=wt;function Mr(rt){var ar=rt.prefixCls,Fr=rt.generateConfig,Ir=rt.locale,En=rt.value,zr="".concat(ar,"-cell"),yr=function(Qn){return c.createElement("td",{key:"week",className:C()(zr,"".concat(zr,"-week"))},Fr.locale.getWeek(Ir.locale,Qn))},Cn="".concat(ar,"-week-panel-row"),Pr=function(Qn){return C()(Cn,Object(H.a)({},"".concat(Cn,"-selected"),$t(Fr,Ir.locale,En,Qn)))};return c.createElement(je,Object.assign({},rt,{panelName:"week",prefixColumn:yr,rowClassName:Pr,keyboardConfig:{onLeftRight:null}}))}var an=Mr;function _t(rt){var ar=rt.prefixCls,Fr=rt.generateConfig,Ir=rt.locale,En=rt.viewDate,zr=rt.onNextYear,yr=rt.onPrevYear,Cn=rt.onYearClick,Pr=c.useContext(ee),xn=Pr.hideHeader;if(xn)return null;var Qn="".concat(ar,"-header");return c.createElement(we,Object.assign({},rt,{prefixCls:Qn,onSuperPrev:yr,onSuperNext:zr}),c.createElement("button",{type:"button",onClick:Cn,className:"".concat(ar,"-year-btn")},Fr.locale.format(Ir.locale,En,Ir.yearFormat)))}var at=_t,bt=3,kt=4;function Pt(rt){var ar=rt.prefixCls,Fr=rt.locale,Ir=rt.value,En=rt.viewDate,zr=rt.generateConfig,yr=rt.monthCellRender,Cn=c.useContext(Un),Pr=Cn.rangedValue,xn=Cn.hoverRangedValue,Qn="".concat(ar,"-cell"),$n=wi({cellPrefixCls:Qn,value:Ir,generateConfig:zr,rangedValue:Pr,hoverRangedValue:xn,isSameCell:function(di,Bi){return nn(zr,di,Bi)},isInView:function(){return!0},offsetCell:function(di,Bi){return zr.addMonth(di,Bi)}}),Kn=Fr.shortMonths||(zr.locale.getShortMonths?zr.locale.getShortMonths(Fr.locale):[]),si=zr.setMonth(En,0),Xn=yr?function(ti){return yr(ti,Fr)}:void 0;return c.createElement(Rn,Object.assign({},rt,{rowNum:kt,colNum:bt,baseDate:si,getCellNode:Xn,getCellText:function(di){return Fr.monthFormat?zr.locale.format(Fr.locale,di,Fr.monthFormat):Kn[zr.getMonth(di)]},getCellClassName:$n,getCellDate:zr.addMonth,titleCell:function(di){return zr.locale.format(Fr.locale,di,"YYYY-MM")}}))}var Et=Pt;function Ht(rt){var ar=rt.prefixCls,Fr=rt.operationRef,Ir=rt.onViewDateChange,En=rt.generateConfig,zr=rt.value,yr=rt.viewDate,Cn=rt.onPanelChange,Pr=rt.onSelect,xn="".concat(ar,"-month-panel");Fr.current={onKeyDown:function(Kn){return me(Kn,{onLeftRight:function(Xn){Pr(En.addMonth(zr||yr,Xn),"key")},onCtrlLeftRight:function(Xn){Pr(En.addYear(zr||yr,Xn),"key")},onUpDown:function(Xn){Pr(En.addMonth(zr||yr,Xn*bt),"key")},onEnter:function(){Cn("date",zr||yr)}})}};var Qn=function(Kn){var si=En.addYear(yr,Kn);Ir(si),Cn(null,si)};return c.createElement("div",{className:xn},c.createElement(at,Object.assign({},rt,{prefixCls:ar,onPrevYear:function(){Qn(-1)},onNextYear:function(){Qn(1)},onYearClick:function(){Cn("year",yr)}})),c.createElement(Et,Object.assign({},rt,{prefixCls:ar,onSelect:function(Kn){Pr(Kn,"mouse"),Cn("date",Kn)}})))}var ot=Ht;function Mt(rt){var ar=rt.prefixCls,Fr=rt.generateConfig,Ir=rt.locale,En=rt.viewDate,zr=rt.onNextYear,yr=rt.onPrevYear,Cn=rt.onYearClick,Pr=c.useContext(ee),xn=Pr.hideHeader;if(xn)return null;var Qn="".concat(ar,"-header");return c.createElement(we,Object.assign({},rt,{prefixCls:Qn,onSuperPrev:yr,onSuperNext:zr}),c.createElement("button",{type:"button",onClick:Cn,className:"".concat(ar,"-year-btn")},Fr.locale.format(Ir.locale,En,Ir.yearFormat)))}var xr=Mt,ur=4,gr=1;function Qr(rt){var ar=rt.prefixCls,Fr=rt.locale,Ir=rt.value,En=rt.viewDate,zr=rt.generateConfig,yr=c.useContext(Un),Cn=yr.rangedValue,Pr=yr.hoverRangedValue,xn="".concat(ar,"-cell"),Qn=wi({cellPrefixCls:xn,value:Ir,generateConfig:zr,rangedValue:Cn,hoverRangedValue:Pr,isSameCell:function(si,Xn){return pr(zr,si,Xn)},isInView:function(){return!0},offsetCell:function(si,Xn){return zr.addMonth(si,Xn*3)}}),$n=zr.setDate(zr.setMonth(En,0),1);return c.createElement(Rn,Object.assign({},rt,{rowNum:gr,colNum:ur,baseDate:$n,getCellText:function(si){return zr.locale.format(Fr.locale,si,Fr.quarterFormat||"[Q]Q")},getCellClassName:Qn,getCellDate:function(si,Xn){return zr.addMonth(si,Xn*3)},titleCell:function(si){return zr.locale.format(Fr.locale,si,"YYYY-[Q]Q")}}))}var ln=Qr;function _n(rt){var ar=rt.prefixCls,Fr=rt.operationRef,Ir=rt.onViewDateChange,En=rt.generateConfig,zr=rt.value,yr=rt.viewDate,Cn=rt.onPanelChange,Pr=rt.onSelect,xn="".concat(ar,"-quarter-panel");Fr.current={onKeyDown:function(Kn){return me(Kn,{onLeftRight:function(Xn){Pr(En.addMonth(zr||yr,Xn*3),"key")},onCtrlLeftRight:function(Xn){Pr(En.addYear(zr||yr,Xn),"key")},onUpDown:function(Xn){Pr(En.addYear(zr||yr,Xn),"key")}})}};var Qn=function(Kn){var si=En.addYear(yr,Kn);Ir(si),Cn(null,si)};return c.createElement("div",{className:xn},c.createElement(xr,Object.assign({},rt,{prefixCls:ar,onPrevYear:function(){Qn(-1)},onNextYear:function(){Qn(1)},onYearClick:function(){Cn("year",yr)}})),c.createElement(ln,Object.assign({},rt,{prefixCls:ar,onSelect:function(Kn){Pr(Kn,"mouse")}})))}var Mn=_n;function li(rt){var ar=rt.prefixCls,Fr=rt.generateConfig,Ir=rt.viewDate,En=rt.onPrevDecade,zr=rt.onNextDecade,yr=rt.onDecadeClick,Cn=c.useContext(ee),Pr=Cn.hideHeader;if(Pr)return null;var xn="".concat(ar,"-header"),Qn=Fr.getYear(Ir),$n=Math.floor(Qn/Ne)*Ne,Kn=$n+Ne-1;return c.createElement(we,Object.assign({},rt,{prefixCls:xn,onSuperPrev:En,onSuperNext:zr}),c.createElement("button",{type:"button",onClick:yr,className:"".concat(ar,"-decade-btn")},$n,"-",Kn))}var ai=li,pi=3,Oi=4;function Ze(rt){var ar=rt.prefixCls,Fr=rt.value,Ir=rt.viewDate,En=rt.locale,zr=rt.generateConfig,yr=c.useContext(Un),Cn=yr.rangedValue,Pr=yr.hoverRangedValue,xn="".concat(ar,"-cell"),Qn=zr.getYear(Ir),$n=Math.floor(Qn/Ne)*Ne,Kn=$n+Ne-1,si=zr.setYear(Ir,$n-Math.ceil((pi*Oi-Ne)/2)),Xn=function(Bi){var yi=zr.getYear(Bi);return $n<=yi&&yi<=Kn},ti=wi({cellPrefixCls:xn,value:Fr,generateConfig:zr,rangedValue:Cn,hoverRangedValue:Pr,isSameCell:function(Bi,yi){return ut(zr,Bi,yi)},isInView:Xn,offsetCell:function(Bi,yi){return zr.addYear(Bi,yi)}});return c.createElement(Rn,Object.assign({},rt,{rowNum:Oi,colNum:pi,baseDate:si,getCellText:zr.getYear,getCellClassName:ti,getCellDate:zr.addYear,titleCell:function(Bi){return zr.locale.format(En.locale,Bi,"YYYY")}}))}var be=Ze,Ne=10;function Ue(rt){var ar=rt.prefixCls,Fr=rt.operationRef,Ir=rt.onViewDateChange,En=rt.generateConfig,zr=rt.value,yr=rt.viewDate,Cn=rt.sourceMode,Pr=rt.onSelect,xn=rt.onPanelChange,Qn="".concat(ar,"-year-panel");Fr.current={onKeyDown:function(si){return me(si,{onLeftRight:function(ti){Pr(En.addYear(zr||yr,ti),"key")},onCtrlLeftRight:function(ti){Pr(En.addYear(zr||yr,ti*Ne),"key")},onUpDown:function(ti){Pr(En.addYear(zr||yr,ti*pi),"key")},onEnter:function(){xn(Cn==="date"?"date":"month",zr||yr)}})}};var $n=function(si){var Xn=En.addYear(yr,si*10);Ir(Xn),xn(null,Xn)};return c.createElement("div",{className:Qn},c.createElement(ai,Object.assign({},rt,{prefixCls:ar,onPrevDecade:function(){$n(-1)},onNextDecade:function(){$n(1)},onDecadeClick:function(){xn("decade",yr)}})),c.createElement(be,Object.assign({},rt,{prefixCls:ar,onSelect:function(si){xn(Cn==="date"?"date":"month",si),Pr(si,"mouse")}})))}var Qe=Ue;function Xe(rt){var ar=rt.prefixCls,Fr=rt.generateConfig,Ir=rt.viewDate,En=rt.onPrevDecades,zr=rt.onNextDecades,yr=c.useContext(ee),Cn=yr.hideHeader;if(Cn)return null;var Pr="".concat(ar,"-header"),xn=Fr.getYear(Ir),Qn=Math.floor(xn/Xr)*Xr,$n=Qn+Xr-1;return c.createElement(we,Object.assign({},rt,{prefixCls:Pr,onSuperPrev:En,onSuperNext:zr}),Qn,"-",$n)}var qe=Xe,yt=3,ht=4;function Jt(rt){var ar=_r-1,Fr=rt.prefixCls,Ir=rt.viewDate,En=rt.generateConfig,zr=rt.disabledDate,yr="".concat(Fr,"-cell"),Cn=En.getYear(Ir),Pr=Math.floor(Cn/_r)*_r,xn=Math.floor(Cn/Xr)*Xr,Qn=xn+Xr-1,$n=En.setYear(Ir,xn-Math.ceil((yt*ht*_r-Xr)/2)),Kn=function(Xn){var ti,di=zr&&zr(Xn),Bi=En.getYear(Xn),yi=Bi+ar;return ti={},Object(H.a)(ti,"".concat(yr,"-disabled"),di),Object(H.a)(ti,"".concat(yr,"-in-view"),xn<=Bi&&yi<=Qn),Object(H.a)(ti,"".concat(yr,"-selected"),Bi===Pr),ti};return c.createElement(Rn,Object.assign({},rt,{rowNum:ht,colNum:yt,baseDate:$n,getCellText:function(Xn){var ti=En.getYear(Xn);return"".concat(ti,"-").concat(ti+ar)},getCellClassName:Kn,getCellDate:function(Xn,ti){return En.addYear(Xn,ti*_r)}}))}var kr=Jt,_r=10,Xr=_r*10;function Bt(rt){var ar=rt.prefixCls,Fr=rt.onViewDateChange,Ir=rt.generateConfig,En=rt.viewDate,zr=rt.operationRef,yr=rt.onSelect,Cn=rt.onPanelChange,Pr="".concat(ar,"-decade-panel");zr.current={onKeyDown:function(Kn){return me(Kn,{onLeftRight:function(Xn){yr(Ir.addYear(En,Xn*_r),"key")},onCtrlLeftRight:function(Xn){yr(Ir.addYear(En,Xn*Xr),"key")},onUpDown:function(Xn){yr(Ir.addYear(En,Xn*_r*yt),"key")},onEnter:function(){Cn("year",En)}})}};var xn=function(Kn){var si=Ir.addYear(En,Kn*Xr);Fr(si),Cn(null,si)},Qn=function(Kn){yr(Kn,"mouse"),Cn("year",Kn)};return c.createElement("div",{className:Pr},c.createElement(qe,Object.assign({},rt,{prefixCls:ar,onPrevDecades:function(){xn(-1)},onNextDecades:function(){xn(1)}})),c.createElement(kr,Object.assign({},rt,{prefixCls:ar,onSelect:Qn})))}var gn=Bt;function hr(rt,ar,Fr){return Fr?c.createElement("div",{className:"".concat(rt,"-footer-extra")},Fr(ar)):null}function vn(rt){var ar=rt.prefixCls,Fr=rt.rangeList,Ir=Fr===void 0?[]:Fr,En=rt.components,zr=En===void 0?{}:En,yr=rt.needConfirmButton,Cn=rt.onNow,Pr=rt.onOk,xn=rt.okDisabled,Qn=rt.showNow,$n=rt.locale,Kn,si;if(Ir.length){var Xn=zr.rangeItem||"span";Kn=c.createElement(c.Fragment,null,Ir.map(function(di){var Bi=di.label,yi=di.onClick,Xi=di.onMouseEnter,ba=di.onMouseLeave;return c.createElement("li",{key:Bi,className:"".concat(ar,"-preset")},c.createElement(Xn,{onClick:yi,onMouseEnter:Xi,onMouseLeave:ba},Bi))}))}if(yr){var ti=zr.button||"button";Cn&&!Kn&&Qn!==!1&&(Kn=c.createElement("li",{className:"".concat(ar,"-now")},c.createElement("a",{className:"".concat(ar,"-now-btn"),onClick:Cn},$n.now))),si=yr&&c.createElement("li",{className:"".concat(ar,"-ok")},c.createElement(ti,{disabled:xn,onClick:Pr},$n.ok))}return!Kn&&!si?null:c.createElement("ul",{className:"".concat(ar,"-ranges")},Kn,si)}function en(rt){var ar,Fr=rt.prefixCls,Ir=Fr===void 0?"rc-picker":Fr,En=rt.className,zr=rt.style,yr=rt.locale,Cn=rt.generateConfig,Pr=rt.value,xn=rt.defaultValue,Qn=rt.pickerValue,$n=rt.defaultPickerValue,Kn=rt.disabledDate,si=rt.mode,Xn=rt.picker,ti=Xn===void 0?"date":Xn,di=rt.tabIndex,Bi=di===void 0?0:di,yi=rt.showNow,Xi=rt.showTime,ba=rt.showToday,ta=rt.renderExtraFooter,Qi=rt.hideHeader,aa=rt.onSelect,fa=rt.onChange,xo=rt.onPanelChange,Za=rt.onMouseDown,Wi=rt.onPickerValueChange,Gi=rt.onOk,ca=rt.components,ya=rt.direction,Xa=rt.hourStep,_a=Xa===void 0?1:Xa,qa=rt.minuteStep,ro=qa===void 0?1:qa,Uo=rt.secondStep,zo=Uo===void 0?1:Uo,hs=ti==="date"&&!!Xi||ti==="time",Po=24%_a===0,Mo=60%ro===0,Fa=60%zo===0,$a=c.useContext(ee),Ca=$a.operationRef,Eo=$a.panelRef,qo=$a.onSelect,vo=$a.hideRanges,rs=$a.defaultOpenValue,ho=c.useContext(Un),No=ho.inRange,us=ho.panelPosition,jo=ho.rangedValue,Qo=ho.hoverRangedValue,on=c.useRef({}),Fi=c.useRef(!0),Bs=Object(j.a)(null,{value:Pr,defaultValue:xn,postState:function(ri){return!ri&&rs&&ti==="time"?rs:ri}}),ws=Object(K.a)(Bs,2),cs=ws[0],Vo=ws[1],vs=Object(j.a)(null,{value:Qn,defaultValue:$n||cs,postState:function(ri){return ri||Cn.getNow()}}),Ss=Object(K.a)(vs,2),ns=Ss[0],es=Ss[1],fs=function(ri){es(ri),Wi&&Wi(ri)},ys=function(ri){var Ii=oe[ti];return Ii?Ii(ri):ri},ds=Object(j.a)(function(){return ti==="time"?"time":ys("date")},{value:si}),yo=Object(K.a)(ds,2),no=yo[0],Jo=yo[1];c.useEffect(function(){Jo(ti)},[ti]);var Go=c.useState(function(){return no}),xt=Object(K.a)(Go,2),Ft=xt[0],An=xt[1],Hn=function(ri,Ii){var Yi=ys(ri||no);An(no),Jo(Yi),xo&&(no!==Yi||Xt(Cn,ns,ns))&&xo(Ii,Yi)},hi=function(ri,Ii){var Yi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(no===ti||Yi)&&(Vo(ri),aa&&aa(ri),qo&&qo(ri,Ii),fa&&!Xt(Cn,ri,cs)&&fa(ri))},At=function(ri){return on.current&&on.current.onKeyDown?([z.a.LEFT,z.a.RIGHT,z.a.UP,z.a.DOWN,z.a.PAGE_UP,z.a.PAGE_DOWN,z.a.ENTER].includes(ri.which)&&ri.preventDefault(),on.current.onKeyDown(ri)):(Object(T.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},se=function(ri){on.current&&on.current.onBlur&&on.current.onBlur(ri)};Ca&&us!=="right"&&(Ca.current={onKeyDown:At,onClose:function(){on.current&&on.current.onClose&&on.current.onClose()}}),c.useEffect(function(){Pr&&!Fi.current&&es(Pr)},[Pr]),c.useEffect(function(){Fi.current=!1},[]);var ge,Se=Object(F.a)(Object(F.a)({},rt),{},{operationRef:on,prefixCls:Ir,viewDate:ns,value:cs,onViewDateChange:fs,sourceMode:Ft,onPanelChange:Hn,disabledDate:no!=="decade"?Kn:void 0});delete Se.onChange,delete Se.onSelect;switch(no){case"decade":ge=c.createElement(gn,Object.assign({},Se,{onSelect:function(ri,Ii){fs(ri),hi(ri,Ii)}}));break;case"year":ge=c.createElement(Qe,Object.assign({},Se,{onSelect:function(ri,Ii){fs(ri),hi(ri,Ii)}}));break;case"month":ge=c.createElement(ot,Object.assign({},Se,{onSelect:function(ri,Ii){fs(ri),hi(ri,Ii)}}));break;case"quarter":ge=c.createElement(Mn,Object.assign({},Se,{onSelect:function(ri,Ii){fs(ri),hi(ri,Ii)}}));break;case"week":ge=c.createElement(an,Object.assign({},Se,{onSelect:function(ri,Ii){fs(ri),hi(ri,Ii)}}));break;case"time":delete Se.showTime,ge=c.createElement(De,Object.assign({},Se,Object(V.a)(Xi)==="object"?Xi:null,{onSelect:function(ri,Ii){fs(ri),hi(ri,Ii)}}));break;default:Xi?ge=c.createElement(qt,Object.assign({},Se,{onSelect:function(ri,Ii){fs(ri),hi(ri,Ii)}})):ge=c.createElement(je,Object.assign({},Se,{onSelect:function(ri,Ii){fs(ri),hi(ri,Ii)}}))}var We,vt,Yt=function(){var ri=Cn.getNow(),Ii=Tt(Cn.getHour(ri),Cn.getMinute(ri),Cn.getSecond(ri),Po?_a:1,Mo?ro:1,Fa?zo:1),Yi=Ot(Cn,ri,Ii[0],Ii[1],Ii[2]);hi(Yi,"submit")};vo||(We=hr(Ir,no,ta),vt=vn({prefixCls:Ir,components:ca,needConfirmButton:hs,okDisabled:!cs||Kn&&Kn(cs),locale:yr,showNow:yi,onNow:hs&&Yt,onOk:function(){cs&&(hi(cs,"submit",!0),Gi&&Gi(cs))}}));var Rr;if(ba&&no==="date"&&ti==="date"&&!Xi){var Yr=Cn.getNow(),mn="".concat(Ir,"-today-btn"),Wn=Kn&&Kn(Yr);Rr=c.createElement("a",{className:C()(mn,Wn&&"".concat(mn,"-disabled")),"aria-disabled":Wn,onClick:function(){Wn||hi(Yr,"mouse",!0)}},yr.today)}return c.createElement(ee.Provider,{value:Object(F.a)(Object(F.a)({},$a),{},{hideHeader:"hideHeader"in rt?Qi:$a.hideHeader,hidePrevBtn:No&&us==="right",hideNextBtn:No&&us==="left"})},c.createElement("div",{tabIndex:Bi,className:C()("".concat(Ir,"-panel"),En,(ar={},Object(H.a)(ar,"".concat(Ir,"-panel-has-range"),jo&&jo[0]&&jo[1]),Object(H.a)(ar,"".concat(Ir,"-panel-has-range-hover"),Qo&&Qo[0]&&Qo[1]),Object(H.a)(ar,"".concat(Ir,"-panel-rtl"),ya==="rtl"),ar)),style:zr,onKeyDown:At,onBlur:se,onMouseDown:Za,ref:Eo},ge,We||vt||Rr?c.createElement("div",{className:"".concat(Ir,"-footer")},We,vt,Rr):null))}var Dt=en,jr=d("JX7q"),un=d("i8i4"),Hr=d.n(un),Wt=d("l4aY"),wr=d("m+aA"),fn=d("c+Xe"),zt=d("zT1h"),Dr=d("QC+M");function ir(rt,ar,Fr){return Fr?rt[0]===ar[0]:rt[0]===ar[0]&&rt[1]===ar[1]}function Lt(rt,ar,Fr){var Ir=rt[ar]||{};return Object(F.a)(Object(F.a)({},Ir),Fr)}function Qt(rt,ar,Fr,Ir){for(var En=Fr.points,zr=Object.keys(rt),yr=0;yr<zr.length;yr+=1){var Cn=zr[yr];if(ir(rt[Cn].points,En,Ir))return"".concat(ar,"-placement-").concat(Cn)}return""}var It=d("Ff2n"),or=d("xEkU"),Cr=d.n(or),Er=d("9mu1"),Kr=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function jn(rt,ar){var Fr={};return Fr[rt.toLowerCase()]=ar.toLowerCase(),Fr["Webkit".concat(rt)]="webkit".concat(ar),Fr["Moz".concat(rt)]="moz".concat(ar),Fr["ms".concat(rt)]="MS".concat(ar),Fr["O".concat(rt)]="o".concat(ar.toLowerCase()),Fr}function Nn(rt,ar){var Fr={animationend:jn("Animation","AnimationEnd"),transitionend:jn("Transition","TransitionEnd")};return rt&&("AnimationEvent"in ar||delete Fr.animationend.animation,"TransitionEvent"in ar||delete Fr.transitionend.transition),Fr}var ei=Nn(Kr,typeof window!="undefined"?window:{}),Zr={};if(Kr){var br=document.createElement("div");Zr=br.style}var dn={};function Ln(rt){if(dn[rt])return dn[rt];var ar=ei[rt];if(ar)for(var Fr=Object.keys(ar),Ir=Fr.length,En=0;En<Ir;En+=1){var zr=Fr[En];if(Object.prototype.hasOwnProperty.call(ar,zr)&&zr in Zr)return dn[rt]=ar[zr],dn[rt]}return""}var Fn=Ln("animationend"),zn=Ln("transitionend"),ui=!!(Fn&&zn);function ii(rt,ar){if(!rt)return null;if(Object(V.a)(rt)==="object"){var Fr=ar.replace(/-\w/g,function(Ir){return Ir[1].toUpperCase()});return rt[Fr]}return"".concat(rt,"-").concat(ar)}var qn="none",Li="appear",zi="enter",Ri="leave";function ga(rt){var ar=rt,Fr=!!c.forwardRef;Object(V.a)(rt)==="object"&&(ar=rt.transitionSupport,Fr="forwardRef"in rt?rt.forwardRef:Fr);function Ir(zr){return!!(zr.motionName&&ar)}var En=function(zr){Object(B.a)(Cn,zr);var yr=Object(M.a)(Cn);function Cn(){var Pr;return Object(N.a)(this,Cn),Pr=yr.apply(this,arguments),Pr.$cacheEle=null,Pr.node=null,Pr.raf=null,Pr.destroyed=!1,Pr.deadlineId=null,Pr.state={status:qn,statusActive:!1,newStatus:!1,statusStyle:null},Pr.onDomUpdate=function(){var xn=Pr.state,Qn=xn.status,$n=xn.newStatus,Kn=Pr.props,si=Kn.onAppearStart,Xn=Kn.onEnterStart,ti=Kn.onLeaveStart,di=Kn.onAppearActive,Bi=Kn.onEnterActive,yi=Kn.onLeaveActive,Xi=Kn.motionAppear,ba=Kn.motionEnter,ta=Kn.motionLeave;if(!Ir(Pr.props))return;var Qi=Pr.getElement();Pr.$cacheEle!==Qi&&(Pr.removeEventListener(Pr.$cacheEle),Pr.addEventListener(Qi),Pr.$cacheEle=Qi),$n&&Qn===Li&&Xi?Pr.updateStatus(si,null,null,function(){Pr.updateActiveStatus(di,Li)}):$n&&Qn===zi&&ba?Pr.updateStatus(Xn,null,null,function(){Pr.updateActiveStatus(Bi,zi)}):$n&&Qn===Ri&&ta&&Pr.updateStatus(ti,null,null,function(){Pr.updateActiveStatus(yi,Ri)})},Pr.onMotionEnd=function(xn){if(xn&&!xn.deadline&&xn.target!==Pr.getElement())return;var Qn=Pr.state,$n=Qn.status,Kn=Qn.statusActive,si=Pr.props,Xn=si.onAppearEnd,ti=si.onEnterEnd,di=si.onLeaveEnd;$n===Li&&Kn?Pr.updateStatus(Xn,{status:qn},xn):$n===zi&&Kn?Pr.updateStatus(ti,{status:qn},xn):$n===Ri&&Kn&&Pr.updateStatus(di,{status:qn},xn)},Pr.setNodeRef=function(xn){var Qn=Pr.props.internalRef;Pr.node=xn,Object(fn.b)(Qn,xn)},Pr.getElement=function(){try{return Object(wr.a)(Pr.node||Object(jr.a)(Pr))}catch(xn){return Pr.$cacheEle}},Pr.addEventListener=function(xn){if(!xn)return;xn.addEventListener(zn,Pr.onMotionEnd),xn.addEventListener(Fn,Pr.onMotionEnd)},Pr.removeEventListener=function(xn){if(!xn)return;xn.removeEventListener(zn,Pr.onMotionEnd),xn.removeEventListener(Fn,Pr.onMotionEnd)},Pr.updateStatus=function(xn,Qn,$n,Kn){var si=xn?xn(Pr.getElement(),$n):null;if(si===!1||Pr.destroyed)return;var Xn;Kn&&(Xn=function(){Pr.nextFrame(Kn)}),Pr.setState(Object(F.a)({statusStyle:Object(V.a)(si)==="object"?si:null,newStatus:!1},Qn),Xn)},Pr.updateActiveStatus=function(xn,Qn){Pr.nextFrame(function(){var $n=Pr.state.status;if($n!==Qn)return;var Kn=Pr.props.motionDeadline;Pr.updateStatus(xn,{statusActive:!0}),Kn>0&&(Pr.deadlineId=setTimeout(function(){Pr.onMotionEnd({deadline:!0})},Kn))})},Pr.nextFrame=function(xn){Pr.cancelNextFrame(),Pr.raf=Cr()(xn)},Pr.cancelNextFrame=function(){Pr.raf&&(Cr.a.cancel(Pr.raf),Pr.raf=null)},Pr}return Object(R.a)(Cn,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var xn,Qn=this.state,$n=Qn.status,Kn=Qn.statusActive,si=Qn.statusStyle,Xn=this.props,ti=Xn.children,di=Xn.motionName,Bi=Xn.visible,yi=Xn.removeOnLeave,Xi=Xn.leavedClassName,ba=Xn.eventProps;return ti?$n===qn||!Ir(this.props)?Bi?ti(Object(F.a)({},ba),this.setNodeRef):yi?null:ti(Object(F.a)(Object(F.a)({},ba),{},{className:Xi}),this.setNodeRef):ti(Object(F.a)(Object(F.a)({},ba),{},{className:C()(ii(di,$n),(xn={},Object(H.a)(xn,ii(di,"".concat($n,"-active")),Kn),Object(H.a)(xn,di,typeof di=="string"),xn)),style:si}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(xn,Qn){var $n=Qn.prevProps,Kn=Qn.status;if(!Ir(xn))return{};var si=xn.visible,Xn=xn.motionAppear,ti=xn.motionEnter,di=xn.motionLeave,Bi=xn.motionLeaveImmediately,yi={prevProps:xn};return(Kn===Li&&!Xn||Kn===zi&&!ti||Kn===Ri&&!di)&&(yi.status=qn,yi.statusActive=!1,yi.newStatus=!1),!$n&&si&&Xn&&(yi.status=Li,yi.statusActive=!1,yi.newStatus=!0),$n&&!$n.visible&&si&&ti&&(yi.status=zi,yi.statusActive=!1,yi.newStatus=!0),($n&&$n.visible&&!si&&di||!$n&&Bi&&!si&&di)&&(yi.status=Ri,yi.statusActive=!1,yi.newStatus=!0),yi}}]),Cn}(c.Component);return En.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Fr?c.forwardRef(function(zr,yr){return c.createElement(En,Object.assign({internalRef:yr},zr))}):En}var oi=ga(ui),hn="add",Ei="keep",Hi="remove",ki="removed";function ji(rt){var ar;return rt&&Object(V.a)(rt)==="object"&&"key"in rt?ar=rt:ar={key:rt},Object(F.a)(Object(F.a)({},ar),{},{key:String(ar.key)})}function dr(){var rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return rt.map(ji)}function sr(){var rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Fr=[],Ir=0,En=ar.length,zr=dr(rt),yr=dr(ar);zr.forEach(function(xn){for(var Qn=!1,$n=Ir;$n<En;$n+=1){var Kn=yr[$n];if(Kn.key===xn.key){Ir<$n&&(Fr=Fr.concat(yr.slice(Ir,$n).map(function(si){return Object(F.a)(Object(F.a)({},si),{},{status:hn})})),Ir=$n),Fr.push(Object(F.a)(Object(F.a)({},Kn),{},{status:Ei})),Ir+=1,Qn=!0;break}}Qn||Fr.push(Object(F.a)(Object(F.a)({},xn),{},{status:Hi}))}),Ir<En&&(Fr=Fr.concat(yr.slice(Ir).map(function(xn){return Object(F.a)(Object(F.a)({},xn),{},{status:hn})})));var Cn={};Fr.forEach(function(xn){var Qn=xn.key;Cn[Qn]=(Cn[Qn]||0)+1});var Pr=Object.keys(Cn).filter(function(xn){return Cn[xn]>1});return Pr.forEach(function(xn){Fr=Fr.filter(function(Qn){var $n=Qn.key,Kn=Qn.status;return $n!==xn||Kn!==Hi}),Fr.forEach(function(Qn){Qn.key===xn&&(Qn.status=Ei)})}),Fr}var cn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Zt(rt){var ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:oi,Fr=function(Ir){Object(B.a)(zr,Ir);var En=Object(M.a)(zr);function zr(){var yr;return Object(N.a)(this,zr),yr=En.apply(this,arguments),yr.state={keyEntities:[]},yr.removeKey=function(Cn){yr.setState(function(Pr){var xn=Pr.keyEntities;return{keyEntities:xn.map(function(Qn){return Qn.key!==Cn?Qn:Object(F.a)(Object(F.a)({},Qn),{},{status:ki})})}})},yr}return Object(R.a)(zr,[{key:"render",value:function(){var Cn=this,Pr=this.state.keyEntities,xn=this.props,Qn=xn.component,$n=xn.children,Kn=Object(It.a)(xn,["component","children"]),si=Qn||c.Fragment,Xn={};return cn.forEach(function(ti){Xn[ti]=Kn[ti],delete Kn[ti]}),delete Kn.keys,c.createElement(si,Object.assign({},Kn),Pr.map(function(ti){var di=ti.status,Bi=Object(It.a)(ti,["status"]),yi=di===hn||di===Ei;return c.createElement(ar,Object.assign({},Xn,{key:Bi.key,visible:yi,eventProps:Bi,onLeaveEnd:function(){Xn.onLeaveEnd&&Xn.onLeaveEnd.apply(Xn,arguments),Cn.removeKey(Bi.key)}}),$n)}))}}],[{key:"getDerivedStateFromProps",value:function(Cn,Pr){var xn=Cn.keys,Qn=Pr.keyEntities,$n=dr(xn);if(!rt)return{keyEntities:$n.map(function(Xn){return Object(F.a)(Object(F.a)({},Xn),{},{status:Ei})})};var Kn=sr(Qn,$n),si=Qn.length;return{keyEntities:Kn.filter(function(Xn){for(var ti=null,di=0;di<si;di+=1){var Bi=Qn[di];if(Bi.key===Xn.key){ti=Bi;break}}return!(ti&&ti.status===ki&&Xn.status===Hi)})}}}]),zr}(c.Component);return Fr.defaultProps={component:"div"},Fr}var Ar=Zt(ui),Nr=oi,tn=function(ar,Fr){var Ir=ar.prefixCls,En=ar.className,zr=ar.style,yr=ar.children,Cn=ar.onMouseEnter,Pr=ar.onMouseLeave,xn=ar.onMouseDown,Qn=ar.onTouchStart,$n=yr;return c.Children.count(yr)>1&&($n=c.createElement("div",{className:"".concat(Ir,"-content")},yr)),c.createElement("div",{ref:Fr,className:En,onMouseEnter:Cn,onMouseLeave:Pr,onMouseDown:xn,onTouchStart:Qn,style:zr},$n)},pn=c.forwardRef(tn);pn.displayName="PopupInner";var St=pn;function cr(rt){var ar=rt.prefixCls,Fr=rt.motion,Ir=rt.animation,En=rt.transitionName;return Fr||(Ir?{motionName:"".concat(ar,"-").concat(Ir)}:En?{motionName:En}:null)}function fr(rt){return rt&&rt.motionName}var Br=function(rt){Object(B.a)(Fr,rt);var ar=Object(M.a)(Fr);function Fr(){var Ir;return Object(N.a)(this,Fr),Ir=ar.apply(this,arguments),Ir.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Ir.popupRef=o.a.createRef(),Ir.alignRef=o.a.createRef(),Ir.nextFrameState=null,Ir.nextFrameId=null,Ir.onAlign=function(En,zr){var yr=Ir.state.status,Cn=Ir.props,Pr=Cn.getClassNameFromAlign,xn=Cn.onAlign,Qn=Pr(zr);yr==="align"?Ir.setState({alignClassName:Qn,status:"aligned"},function(){Ir.alignRef.current.forceAlign()}):yr==="aligned"?(Ir.setState({alignClassName:Qn,status:"afterAlign"}),xn(En,zr)):Ir.setState({alignClassName:Qn})},Ir.onMotionEnd=function(){var En=Ir.props.visible;Ir.setState({status:En?"AfterMotion":"stable",inMotion:!1})},Ir.setStateOnNextFrame=function(En){Ir.cancelFrameState(),Ir.nextFrameState=Object(F.a)(Object(F.a)({},Ir.nextFrameState),En),Ir.nextFrameId=Cr()(function(){var zr=Object(F.a)({},Ir.nextFrameState);Ir.nextFrameState=null,Ir.setState(zr)})},Ir.getMotion=function(){return Object(F.a)({},cr(Ir.props))},Ir.getAlignTarget=function(){var En=Ir.props,zr=En.point,yr=En.getRootDomNode;return zr||yr},Ir.cancelFrameState=function(){Cr.a.cancel(Ir.nextFrameId)},Ir.renderPopupElement=function(){var En=Ir.state,zr=En.status,yr=En.targetHeight,Cn=En.targetWidth,Pr=En.alignClassName,xn=Ir.props,Qn=xn.prefixCls,$n=xn.className,Kn=xn.style,si=xn.stretch,Xn=xn.visible,ti=xn.align,di=xn.destroyPopupOnHide,Bi=xn.onMouseEnter,yi=xn.onMouseLeave,Xi=xn.onMouseDown,ba=xn.onTouchStart,ta=xn.children,Qi=C()(Qn,$n,Pr),aa="".concat(Qn,"-hidden"),fa={};si&&(si.indexOf("height")!==-1?fa.height=yr:si.indexOf("minHeight")!==-1&&(fa.minHeight=yr),si.indexOf("width")!==-1?fa.width=Cn:si.indexOf("minWidth")!==-1&&(fa.minWidth=Cn));var xo=Object(F.a)(Object(F.a)(Object(F.a)(Object(F.a)({},fa),Ir.getZIndexStyle()),Kn),{},{opacity:zr==="stable"||!Xn?void 0:0,pointerEvents:zr==="stable"||!Xn?void 0:"none"}),Za=Ir.getMotion(),Wi=Xn;Xn&&zr!=="beforeMotion"&&zr!=="motion"&&zr!=="stable"&&(Za.motionAppear=!1,Za.motionEnter=!1,Za.motionLeave=!1),(zr==="afterAlign"||zr==="beforeMotion")&&(Wi=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(ya){var Xa=Za==null?void 0:Za[ya];Za[ya]=function(){for(var _a=arguments.length,qa=new Array(_a),ro=0;ro<_a;ro++)qa[ro]=arguments[ro];Xa==null||Xa.apply(void 0,qa),Ir.setState({inMotion:!0})}});var Gi=!Xn||zr!=="align"&&zr!=="aligned"&&zr!=="stable",ca=!0;return zr==="stable"&&(ca=Xn),di&&!ca?null:o.a.createElement(Nr,Object.assign({visible:Wi},Za,{removeOnLeave:!1,onEnterEnd:Ir.onMotionEnd,onLeaveEnd:Ir.onMotionEnd,leavedClassName:aa}),function(ya,Xa){var _a=ya.style,qa=ya.className;return o.a.createElement(Er.a,{target:Ir.getAlignTarget(),key:"popup",ref:Ir.alignRef,monitorWindowResize:!0,disabled:Gi,align:ti,onAlign:Ir.onAlign},o.a.createElement(St,{prefixCls:Qn,className:C()(Qi,qa),ref:Object(fn.a)(Xa,Ir.popupRef),onMouseEnter:Bi,onMouseLeave:yi,onMouseDown:Xi,onTouchStart:ba,style:Object(F.a)(Object(F.a)({},xo),_a)},ta))})},Ir.renderMaskElement=function(){var En=Ir.props,zr=En.mask,yr=En.maskMotion,Cn=En.maskTransitionName,Pr=En.maskAnimation,xn=En.prefixCls,Qn=En.visible;if(!zr)return null;var $n={};return yr&&yr.motionName&&($n=Object(F.a)({motionAppear:!0},cr({motion:yr,prefixCls:xn,transitionName:Cn,animation:Pr}))),o.a.createElement(Nr,Object.assign({},$n,{visible:Qn,removeOnLeave:!0}),function(Kn){var si=Kn.className;return o.a.createElement("div",{style:Ir.getZIndexStyle(),key:"mask",className:C()("".concat(xn,"-mask"),si)})})},Ir}return Object(R.a)(Fr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var En=this.state.status,zr=this.props,yr=zr.getRootDomNode,Cn=zr.visible,Pr=zr.stretch;if(this.cancelFrameState(),Cn&&En!=="stable")switch(En){case null:{this.setStateOnNextFrame({status:Pr?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:fr(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var xn=["measure","align",null,"beforeMotion","motion"],Qn=xn.indexOf(En),$n=xn[Qn+1];Qn!==-1&&$n&&this.setStateOnNextFrame({status:$n})}}if(En==="measure"){var Kn=yr();Kn&&this.setStateOnNextFrame({targetHeight:Kn.offsetHeight,targetWidth:Kn.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var En=this.props.zIndex;return{zIndex:En}}},{key:"render",value:function(){return o.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(En,zr){var yr=En.visible,Cn=Object(It.a)(En,["visible"]),Pr=zr.prevVisible,xn=zr.status,Qn=zr.inMotion,$n={prevVisible:yr,status:xn},Kn=cr(Cn);return Pr===null&&yr===!1?($n.status="stable",$n.inMotion=!1):yr!==Pr&&($n.inMotion=!1,yr||fr(Kn)&&Qn?$n.status=null:$n.status="stable",yr&&($n.alignClassName=null)),$n}}]),Fr}(c.Component),$r=Br,wn=c.createContext(null),rn=wn;function On(){}function In(){return""}function Gn(){return window.document}var fi=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Yn(rt){var ar=function(Fr){Object(B.a)(En,Fr);var Ir=Object(M.a)(En);function En(zr){var yr;Object(N.a)(this,En),yr=Ir.call(this,zr),yr.popupRef=o.a.createRef(),yr.triggerRef=o.a.createRef(),yr.onMouseEnter=function(Pr){var xn=yr.props.mouseEnterDelay;yr.fireEvents("onMouseEnter",Pr),yr.delaySetPopupVisible(!0,xn,xn?null:Pr)},yr.onMouseMove=function(Pr){yr.fireEvents("onMouseMove",Pr),yr.setPoint(Pr)},yr.onMouseLeave=function(Pr){yr.fireEvents("onMouseLeave",Pr),yr.delaySetPopupVisible(!1,yr.props.mouseLeaveDelay)},yr.onPopupMouseEnter=function(){yr.clearDelayTimer()},yr.onPopupMouseLeave=function(Pr){if(Pr.relatedTarget&&!Pr.relatedTarget.setTimeout&&yr.popupRef.current&&yr.popupRef.current.popupRef.current&&Object(Wt.a)(yr.popupRef.current.popupRef.current,Pr.relatedTarget))return;yr.delaySetPopupVisible(!1,yr.props.mouseLeaveDelay)},yr.onFocus=function(Pr){yr.fireEvents("onFocus",Pr),yr.clearDelayTimer(),yr.isFocusToShow()&&(yr.focusTime=Date.now(),yr.delaySetPopupVisible(!0,yr.props.focusDelay))},yr.onMouseDown=function(Pr){yr.fireEvents("onMouseDown",Pr),yr.preClickTime=Date.now()},yr.onTouchStart=function(Pr){yr.fireEvents("onTouchStart",Pr),yr.preTouchTime=Date.now()},yr.onBlur=function(Pr){yr.fireEvents("onBlur",Pr),yr.clearDelayTimer(),yr.isBlurToHide()&&yr.delaySetPopupVisible(!1,yr.props.blurDelay)},yr.onContextMenu=function(Pr){Pr.preventDefault(),yr.fireEvents("onContextMenu",Pr),yr.setPopupVisible(!0,Pr)},yr.onContextMenuClose=function(){yr.isContextMenuToShow()&&yr.close()},yr.onClick=function(Pr){if(yr.fireEvents("onClick",Pr),yr.focusTime){var xn;if(yr.preClickTime&&yr.preTouchTime?xn=Math.min(yr.preClickTime,yr.preTouchTime):yr.preClickTime?xn=yr.preClickTime:yr.preTouchTime&&(xn=yr.preTouchTime),Math.abs(xn-yr.focusTime)<20)return;yr.focusTime=0}yr.preClickTime=0,yr.preTouchTime=0,yr.isClickToShow()&&(yr.isClickToHide()||yr.isBlurToHide())&&Pr&&Pr.preventDefault&&Pr.preventDefault();var Qn=!yr.state.popupVisible;(yr.isClickToHide()&&!Qn||Qn&&yr.isClickToShow())&&yr.setPopupVisible(!yr.state.popupVisible,Pr)},yr.onPopupMouseDown=function(){if(yr.hasPopupMouseDown=!0,clearTimeout(yr.mouseDownTimeout),yr.mouseDownTimeout=window.setTimeout(function(){yr.hasPopupMouseDown=!1},0),yr.context){var Pr;(Pr=yr.context).onPopupMouseDown.apply(Pr,arguments)}},yr.onDocumentClick=function(Pr){if(yr.props.mask&&!yr.props.maskClosable)return;var xn=Pr.target,Qn=yr.getRootDomNode(),$n=yr.getPopupDomNode();!Object(Wt.a)(Qn,xn)&&!Object(Wt.a)($n,xn)&&!yr.hasPopupMouseDown&&yr.close()},yr.getRootDomNode=function(){var Pr=yr.props.getTriggerDOMNode;if(Pr)return Pr(yr.triggerRef.current);try{var xn=Object(wr.a)(yr.triggerRef.current);if(xn)return xn}catch(Qn){}return Hr.a.findDOMNode(Object(jr.a)(yr))},yr.getPopupClassNameFromAlign=function(Pr){var xn=[],Qn=yr.props,$n=Qn.popupPlacement,Kn=Qn.builtinPlacements,si=Qn.prefixCls,Xn=Qn.alignPoint,ti=Qn.getPopupClassNameFromAlign;return $n&&Kn&&xn.push(Qt(Kn,si,Pr,Xn)),ti&&xn.push(ti(Pr)),xn.join(" ")},yr.getComponent=function(){var Pr=yr.props,xn=Pr.prefixCls,Qn=Pr.destroyPopupOnHide,$n=Pr.popupClassName,Kn=Pr.onPopupAlign,si=Pr.popupMotion,Xn=Pr.popupAnimation,ti=Pr.popupTransitionName,di=Pr.popupStyle,Bi=Pr.mask,yi=Pr.maskAnimation,Xi=Pr.maskTransitionName,ba=Pr.maskMotion,ta=Pr.zIndex,Qi=Pr.popup,aa=Pr.stretch,fa=Pr.alignPoint,xo=yr.state,Za=xo.popupVisible,Wi=xo.point,Gi=yr.getPopupAlign(),ca={};return yr.isMouseEnterToShow()&&(ca.onMouseEnter=yr.onPopupMouseEnter),yr.isMouseLeaveToHide()&&(ca.onMouseLeave=yr.onPopupMouseLeave),ca.onMouseDown=yr.onPopupMouseDown,ca.onTouchStart=yr.onPopupMouseDown,o.a.createElement($r,Object.assign({prefixCls:xn,destroyPopupOnHide:Qn,visible:Za,point:fa&&Wi,className:$n,align:Gi,onAlign:Kn,animation:Xn,getClassNameFromAlign:yr.getPopupClassNameFromAlign},ca,{stretch:aa,getRootDomNode:yr.getRootDomNode,style:di,mask:Bi,zIndex:ta,transitionName:ti,maskAnimation:yi,maskTransitionName:Xi,maskMotion:ba,ref:yr.popupRef,motion:si}),typeof Qi=="function"?Qi():Qi)},yr.getContainer=function(){var Pr=Object(jr.a)(yr),xn=Pr.props,Qn=document.createElement("div");Qn.style.position="absolute",Qn.style.top="0",Qn.style.left="0",Qn.style.width="100%";var $n=xn.getPopupContainer?xn.getPopupContainer(yr.getRootDomNode()):xn.getDocument().body;return $n.appendChild(Qn),Qn},yr.setPoint=function(Pr){var xn=yr.props.alignPoint;if(!xn||!Pr)return;yr.setState({point:{pageX:Pr.pageX,pageY:Pr.pageY}})},yr.handlePortalUpdate=function(){yr.state.prevPopupVisible!==yr.state.popupVisible&&yr.props.afterPopupVisibleChange(yr.state.popupVisible)};var Cn;return"popupVisible"in zr?Cn=!!zr.popupVisible:Cn=!!zr.defaultPopupVisible,yr.state={prevPopupVisible:Cn,popupVisible:Cn},fi.forEach(function(Pr){yr["fire".concat(Pr)]=function(xn){yr.fireEvents(Pr,xn)}}),yr}return Object(R.a)(En,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var yr=this.props,Cn=this.state;if(Cn.popupVisible){var Pr;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Pr=yr.getDocument(),this.clickOutsideHandler=Object(zt.a)(Pr,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Pr=Pr||yr.getDocument(),this.touchOutsideHandler=Object(zt.a)(Pr,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Pr=Pr||yr.getDocument(),this.contextMenuOutsideHandler1=Object(zt.a)(Pr,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(zt.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var yr=this.props,Cn=yr.popupPlacement,Pr=yr.popupAlign,xn=yr.builtinPlacements;return Cn&&xn?Lt(xn,Cn,Pr):Pr}},{key:"setPopupVisible",value:function(yr,Cn){var Pr=this.props.alignPoint,xn=this.state.popupVisible;this.clearDelayTimer(),xn!==yr&&("popupVisible"in this.props||this.setState({popupVisible:yr,prevPopupVisible:xn}),this.props.onPopupVisibleChange(yr)),Pr&&Cn&&this.setPoint(Cn)}},{key:"delaySetPopupVisible",value:function(yr,Cn,Pr){var xn=this,Qn=Cn*1e3;if(this.clearDelayTimer(),Qn){var $n=Pr?{pageX:Pr.pageX,pageY:Pr.pageY}:null;this.delayTimer=window.setTimeout(function(){xn.setPopupVisible(yr,$n),xn.clearDelayTimer()},Qn)}else this.setPopupVisible(yr,Pr)}},{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(yr){var Cn=this.props.children.props,Pr=this.props;return Cn[yr]&&Pr[yr]?this["fire".concat(yr)]:Cn[yr]||Pr[yr]}},{key:"isClickToShow",value:function(){var yr=this.props,Cn=yr.action,Pr=yr.showAction;return Cn.indexOf("click")!==-1||Pr.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var yr=this.props,Cn=yr.action,Pr=yr.showAction;return Cn.indexOf("contextMenu")!==-1||Pr.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var yr=this.props,Cn=yr.action,Pr=yr.hideAction;return Cn.indexOf("click")!==-1||Pr.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var yr=this.props,Cn=yr.action,Pr=yr.showAction;return Cn.indexOf("hover")!==-1||Pr.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var yr=this.props,Cn=yr.action,Pr=yr.hideAction;return Cn.indexOf("hover")!==-1||Pr.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var yr=this.props,Cn=yr.action,Pr=yr.showAction;return Cn.indexOf("focus")!==-1||Pr.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var yr=this.props,Cn=yr.action,Pr=yr.hideAction;return Cn.indexOf("focus")!==-1||Pr.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(yr,Cn){var Pr=this.props.children.props[yr];Pr&&Pr(Cn);var xn=this.props[yr];xn&&xn(Cn)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var yr=this.state.popupVisible,Cn=this.props,Pr=Cn.children,xn=Cn.forceRender,Qn=Cn.alignPoint,$n=Cn.className,Kn=Cn.autoDestroy,si=o.a.Children.only(Pr),Xn={key:"trigger"};this.isContextMenuToShow()?Xn.onContextMenu=this.onContextMenu:Xn.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Xn.onClick=this.onClick,Xn.onMouseDown=this.onMouseDown,Xn.onTouchStart=this.onTouchStart):(Xn.onClick=this.createTwoChains("onClick"),Xn.onMouseDown=this.createTwoChains("onMouseDown"),Xn.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Xn.onMouseEnter=this.onMouseEnter,Qn&&(Xn.onMouseMove=this.onMouseMove)):Xn.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Xn.onMouseLeave=this.onMouseLeave:Xn.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Xn.onFocus=this.onFocus,Xn.onBlur=this.onBlur):(Xn.onFocus=this.createTwoChains("onFocus"),Xn.onBlur=this.createTwoChains("onBlur"));var ti=C()(si&&si.props&&si.props.className,$n);ti&&(Xn.className=ti);var di=Object(F.a)({},Xn);Object(fn.c)(si)&&(di.ref=Object(fn.a)(this.triggerRef,si.ref));var Bi=o.a.cloneElement(si,di),yi;return(yr||this.popupRef.current||xn)&&(yi=o.a.createElement(rt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!yr&&Kn&&(yi=null),o.a.createElement(rn.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},Bi,yi)}}],[{key:"getDerivedStateFromProps",value:function(yr,Cn){var Pr=yr.popupVisible,xn={};return Pr!==void 0&&Cn.popupVisible!==Pr&&(xn.popupVisible=Pr,xn.prevPopupVisible=Cn.popupVisible),xn}}]),En}(o.a.Component);return ar.contextType=rn,ar.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:In,getDocument:Gn,onPopupVisibleChange:On,afterPopupVisibleChange:On,onPopupAlign:On,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},ar}var gi=Yn(Dr.a),vi={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Di(rt){var ar,Fr=rt.prefixCls,Ir=rt.popupElement,En=rt.popupStyle,zr=rt.visible,yr=rt.dropdownClassName,Cn=rt.dropdownAlign,Pr=rt.transitionName,xn=rt.getPopupContainer,Qn=rt.children,$n=rt.range,Kn=rt.popupPlacement,si=rt.direction,Xn="".concat(Fr,"-dropdown"),ti=function(){return Kn!==void 0?Kn:si==="rtl"?"bottomRight":"bottomLeft"};return c.createElement(gi,{showAction:[],hideAction:[],popupPlacement:ti(),builtinPlacements:vi,prefixCls:Xn,popupTransitionName:Pr,popup:Ir,popupAlign:Cn,popupVisible:zr,popupClassName:C()(yr,(ar={},Object(H.a)(ar,"".concat(Xn,"-range"),$n),Object(H.a)(ar,"".concat(Xn,"-rtl"),si==="rtl"),ar)),popupStyle:En,getPopupContainer:xn},Qn)}var Mi=Di;function xi(rt){var ar=rt.open,Fr=rt.value,Ir=rt.isClickOutside,En=rt.triggerOpen,zr=rt.forwardKeyDown,yr=rt.blurToCancel,Cn=rt.onSubmit,Pr=rt.onCancel,xn=rt.onFocus,Qn=rt.onBlur,$n=Object(c.useState)(!1),Kn=Object(K.a)($n,2),si=Kn[0],Xn=Kn[1],ti=Object(c.useState)(!1),di=Object(K.a)(ti,2),Bi=di[0],yi=di[1],Xi=Object(c.useRef)(!1),ba=Object(c.useRef)(!1),ta={onMouseDown:function(){Xn(!0),En(!0)},onKeyDown:function(aa){switch(aa.which){case z.a.ENTER:{ar?Cn()!==!1&&Xn(!0):En(!0),aa.preventDefault();return}case z.a.TAB:{si&&ar&&!aa.shiftKey?(Xn(!1),aa.preventDefault()):!si&&ar&&(!zr(aa)&&aa.shiftKey&&(Xn(!0),aa.preventDefault()));return}case z.a.ESC:{Xn(!0),Pr();return}}!ar&&![z.a.SHIFT].includes(aa.which)?En(!0):si||zr(aa)},onFocus:function(aa){Xn(!0),yi(!0),xn&&xn(aa)},onBlur:function(aa){if(Xi.current||!Ir(document.activeElement)){Xi.current=!1;return}yr?setTimeout(function(){Ir(document.activeElement)&&Pr()},0):ar&&(En(!1),ba.current&&Cn()),yi(!1),Qn&&Qn(aa)}};return Object(c.useEffect)(function(){ba.current=!1},[ar]),Object(c.useEffect)(function(){ba.current=!0},[Fr]),Object(c.useEffect)(function(){return J(function(Qi){var aa=Qi.target;ar&&(Ir(aa)?Bi||En(!1):(Xi.current=!0,requestAnimationFrame(function(){Xi.current=!1})))})}),[ta,{focused:Bi,typing:si}]}function bi(rt){var ar=rt.valueTexts,Fr=rt.onTextChange,Ir=c.useState(""),En=Object(K.a)(Ir,2),zr=En[0],yr=En[1],Cn=c.useRef([]);Cn.current=ar;function Pr(Qn){yr(Qn),Fr(Qn)}function xn(){yr(Cn.current[0])}return c.useEffect(function(){ar.every(function(Qn){return Qn!==zr})&&xn()},[ar.join("||")]),[zr,Pr,xn]}var Ci=d("Gytx"),$i=d.n(Ci);function qi(rt,ar){var Fr=ar.formatList,Ir=ar.generateConfig,En=ar.locale;return Object(He.a)(function(){if(!rt)return[[""],""];for(var zr="",yr=[],Cn=0;Cn<Fr.length;Cn+=1){var Pr=Fr[Cn],xn=Ir.locale.format(En.locale,rt,Pr);yr.push(xn),Cn===0&&(zr=xn)}return[yr,zr]},[rt,Fr],function(zr,yr){return zr[0]!==yr[0]||!$i()(zr[1],yr[1])})}function Ti(rt,ar){var Fr=ar.formatList,Ir=ar.generateConfig,En=ar.locale,zr=Object(c.useState)(null),yr=Object(K.a)(zr,2),Cn=yr[0],Pr=yr[1],xn=Object(c.useRef)(null);function Qn(di){var Bi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(xn.current),Bi){Pr(di);return}xn.current=requestAnimationFrame(function(){Pr(di)})}var $n=qi(Cn,{formatList:Fr,generateConfig:Ir,locale:En}),Kn=Object(K.a)($n,2),si=Kn[1];function Xn(di){Qn(di)}function ti(){var di=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Qn(null,di)}return Object(c.useEffect)(function(){ti(!0)},[rt]),Object(c.useEffect)(function(){return function(){return cancelAnimationFrame(xn.current)}},[]),[si,Xn,ti]}function ia(rt){var ar,Fr=rt.prefixCls,Ir=Fr===void 0?"rc-picker":Fr,En=rt.id,zr=rt.tabIndex,yr=rt.style,Cn=rt.className,Pr=rt.dropdownClassName,xn=rt.dropdownAlign,Qn=rt.popupStyle,$n=rt.transitionName,Kn=rt.generateConfig,si=rt.locale,Xn=rt.inputReadOnly,ti=rt.allowClear,di=rt.autoFocus,Bi=rt.showTime,yi=rt.picker,Xi=yi===void 0?"date":yi,ba=rt.format,ta=rt.use12Hours,Qi=rt.value,aa=rt.defaultValue,fa=rt.open,xo=rt.defaultOpen,Za=rt.defaultOpenValue,Wi=rt.suffixIcon,Gi=rt.clearIcon,ca=rt.disabled,ya=rt.disabledDate,Xa=rt.placeholder,_a=rt.getPopupContainer,qa=rt.pickerRef,ro=rt.panelRender,Uo=rt.onChange,zo=rt.onOpenChange,hs=rt.onFocus,Po=rt.onBlur,Mo=rt.onMouseDown,Fa=rt.onMouseUp,$a=rt.onMouseEnter,Ca=rt.onMouseLeave,Eo=rt.onContextMenu,qo=rt.onClick,vo=rt.direction,rs=rt.autoComplete,ho=rs===void 0?"off":rs,No=c.useRef(null),us=Xi==="date"&&!!Bi||Xi==="time",jo=Te(Je(ba,Xi,Bi,ta)),Qo=c.useRef(null),on=c.useRef(null),Fi=Object(j.a)(null,{value:Qi,defaultValue:aa}),Bs=Object(K.a)(Fi,2),ws=Bs[0],cs=Bs[1],Vo=c.useState(ws),vs=Object(K.a)(Vo,2),Ss=vs[0],ns=vs[1],es=c.useRef(null),fs=Object(j.a)(!1,{value:fa,defaultValue:xo,postState:function(Ya){return ca?!1:Ya},onChange:function(Ya){zo&&zo(Ya),!Ya&&es.current&&es.current.onClose&&es.current.onClose()}}),ys=Object(K.a)(fs,2),ds=ys[0],yo=ys[1],no=qi(Ss,{formatList:jo,generateConfig:Kn,locale:si}),Jo=Object(K.a)(no,2),Go=Jo[0],xt=Jo[1],Ft=bi({valueTexts:Go,onTextChange:function(Ya){var ps=Kn.locale.parse(si.locale,Ya,jo);ps&&(!ya||!ya(ps))&&ns(ps)}}),An=Object(K.a)(Ft,3),Hn=An[0],hi=An[1],At=An[2],se=function(Ya){ns(Ya),cs(Ya),Uo&&!Xt(Kn,ws,Ya)&&Uo(Ya,Ya?Kn.locale.format(si.locale,Ya,jo[0]):"")},ge=function(Ya){if(ca&&Ya)return;yo(Ya)},Se=function(Ya){return ds&&es.current&&es.current.onKeyDown?es.current.onKeyDown(Ya):(Object(T.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},We=function(){Fa&&Fa.apply(void 0,arguments),No.current&&(No.current.focus(),ge(!0))},vt=xi({blurToCancel:us,open:ds,value:Hn,triggerOpen:ge,forwardKeyDown:Se,isClickOutside:function(Ya){return!pe([Qo.current,on.current],Ya)},onSubmit:function(){return ya&&ya(Ss)?!1:(se(Ss),ge(!1),At(),!0)},onCancel:function(){ge(!1),ns(ws),At()},onFocus:hs,onBlur:Po}),Yt=Object(K.a)(vt,2),Rr=Yt[0],Yr=Yt[1],mn=Yr.focused,Wn=Yr.typing;c.useEffect(function(){ds||(ns(ws),!Go.length||Go[0]===""?hi(""):xt!==Hn&&At())},[ds,Go]),c.useEffect(function(){ds||At()},[Xi]),c.useEffect(function(){ns(ws)},[ws]),qa&&(qa.current={focus:function(){No.current&&No.current.focus()},blur:function(){No.current&&No.current.blur()}});var Jn=Object(F.a)(Object(F.a)({},rt),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),ri=c.createElement(Dt,Object.assign({},Jn,{generateConfig:Kn,className:C()(Object(H.a)({},"".concat(Ir,"-panel-focused"),!Wn)),value:Ss,locale:si,tabIndex:-1,onChange:ns,direction:vo}));ro&&(ri=ro(ri));var Ii=c.createElement("div",{className:"".concat(Ir,"-panel-container"),onMouseDown:function(Ya){Ya.preventDefault()}},ri),Yi;Wi&&(Yi=c.createElement("span",{className:"".concat(Ir,"-suffix")},Wi));var ma;ti&&ws&&!ca&&(ma=c.createElement("span",{onMouseDown:function(Ya){Ya.preventDefault(),Ya.stopPropagation()},onMouseUp:function(Ya){Ya.preventDefault(),Ya.stopPropagation(),se(null),ge(!1)},className:"".concat(Ir,"-clear")},Gi||c.createElement("span",{className:"".concat(Ir,"-clear-btn")})));var Ta=function(Ya,ps){(ps==="submit"||ps!=="key"&&!us)&&(se(Ya),ge(!1))},uo=vo==="rtl"?"bottomRight":"bottomLeft",bo=Ti(Hn,{formatList:jo,generateConfig:Kn,locale:si}),co=Object(K.a)(bo,3),Zo=co[0],Oo=co[1],Do=co[2];return c.createElement(ee.Provider,{value:{operationRef:es,hideHeader:Xi==="time",panelRef:Qo,onSelect:Ta,open:ds,defaultOpenValue:Za,onDateMouseEnter:Oo,onDateMouseLeave:Do}},c.createElement(Mi,{visible:ds,popupElement:Ii,popupStyle:Qn,prefixCls:Ir,dropdownClassName:Pr,dropdownAlign:xn,getPopupContainer:_a,transitionName:$n,popupPlacement:uo,direction:vo},c.createElement("div",{className:C()(Ir,Cn,(ar={},Object(H.a)(ar,"".concat(Ir,"-disabled"),ca),Object(H.a)(ar,"".concat(Ir,"-focused"),mn),Object(H.a)(ar,"".concat(Ir,"-rtl"),vo==="rtl"),ar)),style:yr,onMouseDown:Mo,onMouseUp:We,onMouseEnter:$a,onMouseLeave:Ca,onContextMenu:Eo,onClick:qo},c.createElement("div",{className:C()("".concat(Ir,"-input"),Object(H.a)({},"".concat(Ir,"-input-placeholder"),!!Zo)),ref:on},c.createElement("input",Object.assign({id:En,tabIndex:zr,disabled:ca,readOnly:Xn||!Wn,value:Zo||Hn,onChange:function(Ya){hi(Ya.target.value)},autoFocus:di,placeholder:Xa,ref:No,title:Hn},Rr,{size:re(Xi,jo[0])},tt(rt),{autoComplete:ho})),Yi,ma))))}var na=function(rt){Object(B.a)(Fr,rt);var ar=Object(M.a)(Fr);function Fr(){var Ir;return Object(N.a)(this,Fr),Ir=ar.apply(this,arguments),Ir.pickerRef=c.createRef(),Ir.focus=function(){Ir.pickerRef.current&&Ir.pickerRef.current.focus()},Ir.blur=function(){Ir.pickerRef.current&&Ir.pickerRef.current.blur()},Ir}return Object(R.a)(Fr,[{key:"render",value:function(){return c.createElement(ia,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Fr}(c.Component),Ui=na;function Ki(rt,ar,Fr){var Ir=rt.picker,En=rt.locale,zr=rt.selectedValue,yr=rt.disabledDate,Cn=rt.disabled,Pr=rt.generateConfig,xn=ze(zr,0),Qn=ze(zr,1);function $n(di){var Bi=Pr.getYear(di),yi=Pr.locale.getWeek(En.locale,di);return Bi*100+yi}function Kn(di){var Bi=Pr.getYear(di),yi=Pr.getMonth(di);return Bi*100+yi}function si(di){var Bi=Pr.getYear(di),yi=rr(Pr,di);return Bi*10+yi}var Xn=c.useCallback(function(di){if(yr&&yr(di))return!0;if(Cn[1]&&Qn)return!mr(Pr,di,Qn)&&Pr.isAfter(di,Qn);if(ar&&Qn)switch(Ir){case"quarter":return si(di)>si(Qn);case"month":return Kn(di)>Kn(Qn);case"week":return $n(di)>$n(Qn);default:return!mr(Pr,di,Qn)&&Pr.isAfter(di,Qn)}return!1},[yr,Cn[1],Qn,ar]),ti=c.useCallback(function(di){if(yr&&yr(di))return!0;if(Cn[0]&&xn)return!mr(Pr,di,Qn)&&Pr.isAfter(xn,di);if(Fr&&xn)switch(Ir){case"quarter":return si(di)<si(xn);case"month":return Kn(di)<Kn(xn);case"week":return $n(di)<$n(xn);default:return!mr(Pr,di,xn)&&Pr.isAfter(xn,di)}return!1},[yr,Cn[0],xn,Fr]);return[Xn,ti]}function ra(rt,ar,Fr,Ir){var En=yn(rt,Fr,Ir,1);function zr(yr){return yr(rt,ar)?"same":yr(En,ar)?"closing":"far"}switch(Fr){case"year":return zr(function(yr,Cn){return jt(Ir,yr,Cn)});case"quarter":case"month":return zr(function(yr,Cn){return ut(Ir,yr,Cn)});default:return zr(function(yr,Cn){return nn(Ir,yr,Cn)})}}function ea(rt,ar,Fr,Ir){var En=ze(rt,0),zr=ze(rt,1);if(ar===0)return En;if(En&&zr){var yr=ra(En,zr,Fr,Ir);switch(yr){case"same":return En;case"closing":return En;default:return yn(zr,Fr,Ir,-1)}}return En}function va(rt){var ar=rt.values,Fr=rt.picker,Ir=rt.defaultDates,En=rt.generateConfig,zr=c.useState(function(){return[ze(Ir,0),ze(Ir,1)]}),yr=Object(K.a)(zr,2),Cn=yr[0],Pr=yr[1],xn=c.useState(null),Qn=Object(K.a)(xn,2),$n=Qn[0],Kn=Qn[1],si=ze(ar,0),Xn=ze(ar,1);function ti(Bi){return Cn[Bi]?Cn[Bi]:ze($n,Bi)||ea(ar,Bi,Fr,En)||si||Xn||En.getNow()}function di(Bi,yi){if(Bi){var Xi=dt($n,Bi,yi);Pr(dt(Cn,null,yi)||[null,null]);var ba=(yi+1)%2;ze(ar,ba)||(Xi=dt(Xi,Bi,ba)),Kn(Xi)}else(si||Xn)&&Kn(null)}return[ti,di]}function sa(rt,ar){return rt&&rt[0]&&rt[1]&&ar.isAfter(rt[0],rt[1])?[rt[1],rt[0]]:rt}function Pa(rt,ar,Fr,Ir){return rt||Ir&&Ir[ar]?!0:!!Fr[(ar+1)%2]}function ka(rt){var ar,Fr,Ir,En=rt.prefixCls,zr=En===void 0?"rc-picker":En,yr=rt.id,Cn=rt.style,Pr=rt.className,xn=rt.popupStyle,Qn=rt.dropdownClassName,$n=rt.transitionName,Kn=rt.dropdownAlign,si=rt.getPopupContainer,Xn=rt.generateConfig,ti=rt.locale,di=rt.placeholder,Bi=rt.autoFocus,yi=rt.disabled,Xi=rt.format,ba=rt.picker,ta=ba===void 0?"date":ba,Qi=rt.showTime,aa=rt.use12Hours,fa=rt.separator,xo=fa===void 0?"~":fa,Za=rt.value,Wi=rt.defaultValue,Gi=rt.defaultPickerValue,ca=rt.open,ya=rt.defaultOpen,Xa=rt.disabledDate,_a=rt.disabledTime,qa=rt.dateRender,ro=rt.panelRender,Uo=rt.ranges,zo=rt.allowEmpty,hs=rt.allowClear,Po=rt.suffixIcon,Mo=rt.clearIcon,Fa=rt.pickerRef,$a=rt.inputReadOnly,Ca=rt.mode,Eo=rt.renderExtraFooter,qo=rt.onChange,vo=rt.onOpenChange,rs=rt.onPanelChange,ho=rt.onCalendarChange,No=rt.onFocus,us=rt.onBlur,jo=rt.onOk,Qo=rt.components,on=rt.order,Fi=rt.direction,Bs=rt.activePickerIndex,ws=rt.autoComplete,cs=ws===void 0?"off":ws,Vo=ta==="date"&&!!Qi||ta==="time",vs=Object(c.useRef)({}),Ss=Object(c.useRef)(null),ns=Object(c.useRef)(null),es=Object(c.useRef)(null),fs=Object(c.useRef)(null),ys=Object(c.useRef)(null),ds=Object(c.useRef)(null),yo=Object(c.useRef)(null),no=Te(Je(Xi,ta,Qi,aa)),Jo=Object(j.a)(0,{value:Bs}),Go=Object(K.a)(Jo,2),xt=Go[0],Ft=Go[1],An=Object(c.useRef)(null),Hn=c.useMemo(function(){return Array.isArray(yi)?yi:[yi||!1,yi||!1]},[yi]),hi=Object(j.a)(null,{value:Za,defaultValue:Wi,postState:function(La){return ta==="time"&&!on?La:sa(La,Xn)}}),At=Object(K.a)(hi,2),se=At[0],ge=At[1],Se=va({values:se,picker:ta,defaultDates:Gi,generateConfig:Xn}),We=Object(K.a)(Se,2),vt=We[0],Yt=We[1],Rr=Object(j.a)(se,{postState:function(La){var oo=La;if(Hn[0]&&Hn[1])return oo;for(var Ro=0;Ro<2;Ro+=1)Hn[Ro]&&!ze(oo,Ro)&&!ze(zo,Ro)&&(oo=dt(oo,Xn.getNow(),Ro));return oo}}),Yr=Object(K.a)(Rr,2),mn=Yr[0],Wn=Yr[1],Jn=Object(j.a)([ta,ta],{value:Ca}),ri=Object(K.a)(Jn,2),Ii=ri[0],Yi=ri[1];Object(c.useEffect)(function(){Yi([ta,ta])},[ta]);var ma=function(La,oo){Yi(La),rs&&rs(oo,La)},Ta=Ki({picker:ta,selectedValue:mn,locale:ti,disabled:Hn,disabledDate:Xa,generateConfig:Xn},vs.current[1],vs.current[0]),uo=Object(K.a)(Ta,2),bo=uo[0],co=uo[1],Zo=Object(j.a)(!1,{value:ca,defaultValue:ya,postState:function(La){return Hn[xt]?!1:La},onChange:function(La){vo&&vo(La),!La&&An.current&&An.current.onClose&&An.current.onClose()}}),Oo=Object(K.a)(Zo,2),Do=Oo[0],Ha=Oo[1],Ya=Do&&xt===0,ps=Do&&xt===1,ts=Object(c.useState)(0),$o=Object(K.a)(ts,2),Ds=$o[0],Hs=$o[1];Object(c.useEffect)(function(){!Do&&Ss.current&&Hs(Ss.current.offsetWidth)},[Do]);var xs=c.useRef();function Xo(Ho,La){if(Ho)clearTimeout(xs.current),vs.current[La]=!0,Ft(La),Ha(Ho),Do||Yt(null,La);else if(xt===La){Ha(Ho);var oo=vs.current;xs.current=setTimeout(function(){oo===vs.current&&(vs.current={})})}}function Js(Ho){Xo(!0,Ho),setTimeout(function(){var La=[ds,yo][Ho];La.current&&La.current.focus()},0)}function Cs(Ho,La){var oo=Ho,Ro=ze(oo,0),Ps=ze(oo,1);Ro&&Ps&&Xn.isAfter(Ro,Ps)&&(ta==="week"&&!$t(Xn,ti.locale,Ro,Ps)||ta==="quarter"&&!pr(Xn,Ro,Ps)||ta!=="week"&&ta!=="quarter"&&ta!=="time"&&!mr(Xn,Ro,Ps)?(La===0?(oo=[Ro,null],Ps=null):(Ro=null,oo=[null,Ps]),vs.current=Object(H.a)({},La,!0)):(ta!=="time"||on!==!1)&&(oo=sa(oo,Xn))),Wn(oo);var Hl=oo&&oo[0]?Xn.locale.format(ti.locale,oo[0],no[0]):"",Ll=oo&&oo[1]?Xn.locale.format(ti.locale,oo[1],no[0]):"";if(ho){var gl={range:La===0?"start":"end"};ho(oo,[Hl,Ll],gl)}var yl=Pa(Ro,0,Hn,zo),Nl=Pa(Ps,1,Hn,zo),Kl=oo===null||yl&&Nl;Kl&&(ge(oo),qo&&(!Xt(Xn,ze(se,0),Ro)||!Xt(Xn,ze(se,1),Ps))&&qo(oo,[Hl,Ll]));var Vs=null;La===0&&!Hn[1]?Vs=1:La===1&&!Hn[0]&&(Vs=0),Vs!==null&&Vs!==xt&&(!vs.current[Vs]||!ze(oo,Vs))&&ze(oo,La)?Js(Vs):Xo(!1,La)}var fl=function(La){return Do&&An.current&&An.current.onKeyDown?An.current.onKeyDown(La):(Object(T.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},sl={formatList:no,generateConfig:Xn,locale:ti},Ks=qi(ze(mn,0),sl),as=Object(K.a)(Ks,2),ha=as[0],Zs=as[1],ll=qi(ze(mn,1),sl),lo=Object(K.a)(ll,2),Ka=lo[0],Fo=lo[1],Ko=function(La,oo){var Ro=Xn.locale.parse(ti.locale,La,no),Ps=oo===0?bo:co;Ro&&!Ps(Ro)&&(Wn(dt(mn,Ro,oo)),Yt(Ro,oo))},Wo=bi({valueTexts:ha,onTextChange:function(La){return Ko(La,0)}}),Co=Object(K.a)(Wo,3),is=Co[0],ms=Co[1],Rs=Co[2],Us=bi({valueTexts:Ka,onTextChange:function(La){return Ko(La,1)}}),el=Object(K.a)(Us,3),Qs=el[0],tl=el[1],_s=el[2],Ts=Object(c.useState)(null),Ws=Object(K.a)(Ts,2),Os=Ws[0],zs=Ws[1],Tl=Object(c.useState)(null),Sl=Object(K.a)(Tl,2),Ol=Sl[0],Yl=Sl[1],yu=Ti(is,{formatList:no,generateConfig:Xn,locale:ti}),ul=Object(K.a)(yu,3),Rl=ul[0],zl=ul[1],bu=ul[2],wu=Ti(Qs,{formatList:no,generateConfig:Xn,locale:ti}),cu=Object(K.a)(wu,3),Su=cu[0],Bl=cu[1],rl=cu[2],al=function(La){Yl(dt(mn,La,xt)),xt===0?zl(La):Bl(La)},dl=function(){Yl(dt(mn,null,xt)),xt===0?bu():rl()},Vl=function(La,oo){return{blurToCancel:Vo,forwardKeyDown:fl,onBlur:us,isClickOutside:function(Ps){return!pe([ns.current,es.current,fs.current],Ps)},onFocus:function(Ps){Ft(La),No&&No(Ps)},triggerOpen:function(Ps){Xo(Ps,La)},onSubmit:function(){Cs(mn,La),oo()},onCancel:function(){Xo(!1,La),Wn(se),oo()}}},tu=xi(Object(F.a)(Object(F.a)({},Vl(0,Rs)),{},{open:Ya,value:is})),ru=Object(K.a)(tu,2),Ql=ru[0],Ml=ru[1],nu=Ml.focused,Jl=Ml.typing,du=xi(Object(F.a)(Object(F.a)({},Vl(1,_s)),{},{open:ps,value:Qs})),Al=Object(K.a)(du,2),kl=Al[0],Pl=Al[1],Zl=Pl.focused,Il=Pl.typing,Iu=function(La){!Do&&!ds.current.contains(La.target)&&!yo.current.contains(La.target)&&(Hn[0]?Hn[1]||Js(1):Js(0))},pl=function(La){Do&&(nu||Zl)&&!ds.current.contains(La.target)&&!yo.current.contains(La.target)&&La.preventDefault()},xl=se&&se[0]?Xn.locale.format(ti.locale,se[0],"YYYYMMDDHHmmss"):"",iu=se&&se[1]?Xn.locale.format(ti.locale,se[1],"YYYYMMDDHHmmss"):"";Object(c.useEffect)(function(){Do||(Wn(se),!ha.length||ha[0]===""?ms(""):Zs!==is&&Rs(),!Ka.length||Ka[0]===""?tl(""):Fo!==Qs&&_s())},[Do,ha,Ka]),Object(c.useEffect)(function(){Wn(se)},[xl,iu]),Fa&&(Fa.current={focus:function(){ds.current&&ds.current.focus()},blur:function(){ds.current&&ds.current.blur(),yo.current&&yo.current.blur()}});var _u=Object.keys(Uo||{}),hu=_u.map(function(Ho){var La=Uo[Ho],oo=typeof La=="function"?La():La;return{label:Ho,onClick:function(){Cs(oo,null),Xo(!1,xt)},onMouseEnter:function(){zs(oo)},onMouseLeave:function(){zs(null)}}});function _l(){var Ho=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,La=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oo=null;Do&&Ol&&Ol[0]&&Ol[1]&&Xn.isAfter(Ol[1],Ol[0])&&(oo=Ol);var Ro=Qi;if(Qi&&Object(V.a)(Qi)==="object"&&Qi.defaultValue){var Ps=Qi.defaultValue;Ro=Object(F.a)(Object(F.a)({},Qi),{},{defaultValue:ze(Ps,xt)||void 0})}var Hl=null;return qa&&(Hl=function(gl,yl){return qa(gl,yl,{range:xt?"end":"start"})}),c.createElement(Un.Provider,{value:{inRange:!0,panelPosition:Ho,rangedValue:Os||mn,hoverRangedValue:oo}},c.createElement(Dt,Object.assign({},rt,La,{dateRender:Hl,showTime:Ro,mode:Ii[xt],generateConfig:Xn,style:void 0,direction:Fi,disabledDate:xt===0?bo:co,disabledTime:function(gl){return _a?_a(gl,xt===0?"start":"end"):!1},className:C()(Object(H.a)({},"".concat(zr,"-panel-focused"),xt===0?!Jl:!Il)),value:ze(mn,xt),locale:ti,tabIndex:-1,onPanelChange:function(gl,yl){ma(dt(Ii,yl,xt),dt(mn,gl,xt));var Nl=gl;Ho==="right"&&Ii[xt]===yl&&(Nl=yn(Nl,yl,Xn,-1)),Yt(Nl,xt)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var ml=0,Ul=0;xt&&es.current&&ys.current&&ns.current&&(ml=es.current.offsetWidth+ys.current.offsetWidth,ns.current.offsetWidth&&ml>ns.current.offsetWidth&&(Ul=ml));var xu=Fi==="rtl"?{right:ml}:{left:ml};function Eu(){var Ho,La=hr(zr,Ii[xt],Eo),oo=vn({prefixCls:zr,components:Qo,needConfirmButton:Vo,okDisabled:!ze(mn,xt)||Xa&&Xa(mn[xt]),locale:ti,rangeList:hu,onOk:function(){ze(mn,xt)&&(Cs(mn,xt),jo&&jo(mn))}});if(ta!=="time"&&!Qi){var Ro=vt(xt),Ps=yn(Ro,ta,Xn),Hl=Ii[xt],Ll=Hl===ta,gl=_l(Ll?"left":!1,{pickerValue:Ro,onPickerValueChange:function(Vs){Yt(Vs,xt)}}),yl=_l("right",{pickerValue:Ps,onPickerValueChange:function(Vs){Yt(yn(Vs,ta,Xn,-1),xt)}});Fi==="rtl"?Ho=c.createElement(c.Fragment,null,yl,Ll&&gl):Ho=c.createElement(c.Fragment,null,gl,Ll&&yl)}else Ho=_l();var Nl=c.createElement(c.Fragment,null,c.createElement("div",{className:"".concat(zr,"-panels")},Ho),(La||oo)&&c.createElement("div",{className:"".concat(zr,"-footer")},La,oo));return ro&&(Nl=ro(Nl)),c.createElement("div",{className:"".concat(zr,"-panel-container"),style:{marginLeft:Ul},ref:ns,onMouseDown:function(Vs){Vs.preventDefault()}},Nl)}var fu=c.createElement("div",{className:C()("".concat(zr,"-range-wrapper"),"".concat(zr,"-").concat(ta,"-range-wrapper")),style:{minWidth:Ds}},c.createElement("div",{className:"".concat(zr,"-range-arrow"),style:xu}),Eu()),jl;Po&&(jl=c.createElement("span",{className:"".concat(zr,"-suffix")},Po));var au;hs&&(ze(se,0)&&!Hn[0]||ze(se,1)&&!Hn[1])&&(au=c.createElement("span",{onMouseDown:function(La){La.preventDefault(),La.stopPropagation()},onMouseUp:function(La){La.preventDefault(),La.stopPropagation();var oo=se;Hn[0]||(oo=dt(oo,null,0)),Hn[1]||(oo=dt(oo,null,1)),Cs(oo,null),Xo(!1,xt)},className:"".concat(zr,"-clear")},Mo||c.createElement("span",{className:"".concat(zr,"-clear-btn")})));var $l={size:re(ta,no[0])},ou=0,Is=0;es.current&&fs.current&&ys.current&&(xt===0?Is=es.current.offsetWidth:(ou=ml,Is=fs.current.offsetWidth));var cl=Fi==="rtl"?{right:ou}:{left:ou},Fl=function(La,oo){var Ro=dt(mn,La,xt);oo==="submit"||oo!=="key"&&!Vo?(Cs(Ro,xt),xt===0?bu():rl()):Wn(Ro)};return c.createElement(ee.Provider,{value:{operationRef:An,hideHeader:ta==="time",onDateMouseEnter:al,onDateMouseLeave:dl,hideRanges:!0,onSelect:Fl,open:Do}},c.createElement(Mi,{visible:Do,popupElement:fu,popupStyle:xn,prefixCls:zr,dropdownClassName:Qn,dropdownAlign:Kn,getPopupContainer:si,transitionName:$n,range:!0,direction:Fi},c.createElement("div",Object.assign({ref:Ss,className:C()(zr,"".concat(zr,"-range"),Pr,(ar={},Object(H.a)(ar,"".concat(zr,"-disabled"),Hn[0]&&Hn[1]),Object(H.a)(ar,"".concat(zr,"-focused"),xt===0?nu:Zl),Object(H.a)(ar,"".concat(zr,"-rtl"),Fi==="rtl"),ar)),style:Cn,onClick:Iu,onMouseDown:pl},tt(rt)),c.createElement("div",{className:C()("".concat(zr,"-input"),(Fr={},Object(H.a)(Fr,"".concat(zr,"-input-active"),xt===0),Object(H.a)(Fr,"".concat(zr,"-input-placeholder"),!!Rl),Fr)),ref:es},c.createElement("input",Object.assign({id:yr,disabled:Hn[0],readOnly:$a||!Jl,value:Rl||is,onChange:function(La){ms(La.target.value)},autoFocus:Bi,placeholder:ze(di,0)||"",ref:ds},Ql,$l,{autoComplete:cs}))),c.createElement("div",{className:"".concat(zr,"-range-separator"),ref:ys},xo),c.createElement("div",{className:C()("".concat(zr,"-input"),(Ir={},Object(H.a)(Ir,"".concat(zr,"-input-active"),xt===1),Object(H.a)(Ir,"".concat(zr,"-input-placeholder"),!!Su),Ir)),ref:fs},c.createElement("input",Object.assign({disabled:Hn[1],readOnly:$a||!Il,value:Su||Qs,onChange:function(La){tl(La.target.value)},placeholder:ze(di,1)||"",ref:yo},kl,$l,{autoComplete:cs}))),c.createElement("div",{className:"".concat(zr,"-active-bar"),style:Object(F.a)(Object(F.a)({},cl),{},{width:Is,position:"absolute"})}),jl,au)))}var Ia=function(rt){Object(B.a)(Fr,rt);var ar=Object(M.a)(Fr);function Fr(){var Ir;return Object(N.a)(this,Fr),Ir=ar.apply(this,arguments),Ir.pickerRef=c.createRef(),Ir.focus=function(){Ir.pickerRef.current&&Ir.pickerRef.current.focus()},Ir.blur=function(){Ir.pickerRef.current&&Ir.pickerRef.current.blur()},Ir}return Object(R.a)(Fr,[{key:"render",value:function(){return c.createElement(ka,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Fr}(c.Component),Ea=Ia,So=Ui,Ga=d("61s2");function Va(rt,ar,Fr){return Fr!==void 0?Fr:rt==="year"&&ar.lang.yearPlaceholder?ar.lang.yearPlaceholder:rt==="quarter"&&ar.lang.quarterPlaceholder?ar.lang.quarterPlaceholder:rt==="month"&&ar.lang.monthPlaceholder?ar.lang.monthPlaceholder:rt==="week"&&ar.lang.weekPlaceholder?ar.lang.weekPlaceholder:rt==="time"&&ar.timePickerLocale.placeholder?ar.timePickerLocale.placeholder:ar.lang.placeholder}function Ra(rt,ar,Fr){return Fr!==void 0?Fr:rt==="year"&&ar.lang.yearPlaceholder?ar.lang.rangeYearPlaceholder:rt==="month"&&ar.lang.monthPlaceholder?ar.lang.rangeMonthPlaceholder:rt==="week"&&ar.lang.weekPlaceholder?ar.lang.rangeWeekPlaceholder:rt==="time"&&ar.timePickerLocale.placeholder?ar.timePickerLocale.rangePlaceholder:ar.lang.rangePlaceholder}var po=d("uaoM"),mo=d("H84U"),Aa=d("YMnH"),Io=d("3Nzz"),go=function(rt,ar){var Fr={};for(var Ir in rt)Object.prototype.hasOwnProperty.call(rt,Ir)&&ar.indexOf(Ir)<0&&(Fr[Ir]=rt[Ir]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var En=0,Ir=Object.getOwnPropertySymbols(rt);En<Ir.length;En++)ar.indexOf(Ir[En])<0&&Object.prototype.propertyIsEnumerable.call(rt,Ir[En])&&(Fr[Ir[En]]=rt[Ir[En]]);return Fr};function Qa(rt){function ar(Pr,xn){var Qn=function($n){g()(si,$n);var Kn=y()(si);function si(Xn){var ti;return l()(this,si),ti=Kn.call(this,Xn),ti.pickerRef=c.createRef(),ti.focus=function(){ti.pickerRef.current&&ti.pickerRef.current.focus()},ti.blur=function(){ti.pickerRef.current&&ti.pickerRef.current.blur()},ti.getDefaultLocale=function(){var di=ti.props.locale,Bi=f()(f()({},Ga.a),di);return Bi.lang=f()(f()({},Bi.lang),(di||{}).lang),Bi},ti.renderPicker=function(di){var Bi=ti.context,yi=Bi.getPrefixCls,Xi=Bi.direction,ba=Bi.getPopupContainer,ta=ti.props,Qi=ta.prefixCls,aa=ta.getPopupContainer,fa=ta.className,xo=ta.size,Za=ta.bordered,Wi=Za===void 0?!0:Za,Gi=ta.placeholder,ca=go(ta,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),ya=ti.props,Xa=ya.format,_a=ya.showTime,qa=yi("picker",Qi),ro={showToday:!0},Uo={};Pr&&(Uo.picker=Pr);var zo=Pr||ti.props.picker;return Uo=f()(f()(f()({},Uo),_a?_o(f()({format:Xa,picker:zo},_a)):{}),zo==="time"?_o(f()(f()({format:Xa},ti.props),{picker:zo})):{}),c.createElement(Io.b.Consumer,null,function(hs){var Po,Mo=xo||hs;return c.createElement(So,f()({ref:ti.pickerRef,placeholder:Va(zo,di,Gi),suffixIcon:zo==="time"?c.createElement(_.a,null):c.createElement(b.a,null),clearIcon:c.createElement(D.a,null),allowClear:!0,transitionName:"slide-up"},ro,ca,Uo,{locale:di.lang,className:C()(fa,(Po={},t()(Po,"".concat(qa,"-").concat(Mo),Mo),t()(Po,"".concat(qa,"-borderless"),!Wi),Po)),prefixCls:qa,getPopupContainer:aa||ba,generateConfig:rt,prevIcon:c.createElement("span",{className:"".concat(qa,"-prev-icon")}),nextIcon:c.createElement("span",{className:"".concat(qa,"-next-icon")}),superPrevIcon:c.createElement("span",{className:"".concat(qa,"-super-prev-icon")}),superNextIcon:c.createElement("span",{className:"".concat(qa,"-super-next-icon")}),components:Bo,direction:Xi}))})},Object(po.a)(Pr!=="quarter",xn,"DatePicker.".concat(xn," is legacy usage. Please use DatePicker[picker='").concat(Pr,"'] directly.")),ti}return h()(si,[{key:"render",value:function(){return c.createElement(Aa.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),si}(c.Component);return Qn.contextType=mo.b,xn&&(Qn.displayName=xn),Qn}var Fr=ar(),Ir=ar("week","WeekPicker"),En=ar("month","MonthPicker"),zr=ar("year","YearPicker"),yr=ar("time","TimePicker"),Cn=ar("quarter","QuarterPicker");return{DatePicker:Fr,WeekPicker:Ir,MonthPicker:En,YearPicker:zr,TimePicker:yr,QuarterPicker:Cn}}var wo=d("8ISB"),pa=d.n(wo),to=function(rt,ar){var Fr={};for(var Ir in rt)Object.prototype.hasOwnProperty.call(rt,Ir)&&ar.indexOf(Ir)<0&&(Fr[Ir]=rt[Ir]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var En=0,Ir=Object.getOwnPropertySymbols(rt);En<Ir.length;En++)ar.indexOf(Ir[En])<0&&Object.prototype.propertyIsEnumerable.call(rt,Ir[En])&&(Fr[Ir[En]]=rt[Ir[En]]);return Fr};function ao(rt){var ar=function(Fr){g()(En,Fr);var Ir=y()(En);function En(){var zr;return l()(this,En),zr=Ir.apply(this,arguments),zr.pickerRef=c.createRef(),zr.focus=function(){zr.pickerRef.current&&zr.pickerRef.current.focus()},zr.blur=function(){zr.pickerRef.current&&zr.pickerRef.current.blur()},zr.getDefaultLocale=function(){var yr=zr.props.locale,Cn=f()(f()({},Ga.a),yr);return Cn.lang=f()(f()({},Cn.lang),(yr||{}).lang),Cn},zr.renderPicker=function(yr){var Cn=zr.context,Pr=Cn.getPrefixCls,xn=Cn.direction,Qn=Cn.getPopupContainer,$n=zr.props,Kn=$n.prefixCls,si=$n.getPopupContainer,Xn=$n.className,ti=$n.size,di=$n.bordered,Bi=di===void 0?!0:di,yi=$n.placeholder,Xi=to($n,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),ba=zr.props,ta=ba.format,Qi=ba.showTime,aa=ba.picker,fa=Pr("picker",Kn),xo={};return xo=f()(f()(f()({},xo),Qi?_o(f()({format:ta,picker:aa},Qi)):{}),aa==="time"?_o(f()(f()({format:ta},zr.props),{picker:aa})):{}),c.createElement(Io.b.Consumer,null,function(Za){var Wi,Gi=ti||Za;return c.createElement(Ea,f()({separator:c.createElement("span",{"aria-label":"to",className:"".concat(fa,"-separator")},c.createElement(pa.a,null)),ref:zr.pickerRef,placeholder:Ra(aa,yr,yi),suffixIcon:aa==="time"?c.createElement(_.a,null):c.createElement(b.a,null),clearIcon:c.createElement(D.a,null),allowClear:!0,transitionName:"slide-up"},Xi,xo,{className:C()(Xn,(Wi={},t()(Wi,"".concat(fa,"-").concat(Gi),Gi),t()(Wi,"".concat(fa,"-borderless"),!Bi),Wi)),locale:yr.lang,prefixCls:fa,getPopupContainer:si||Qn,generateConfig:rt,prevIcon:c.createElement("span",{className:"".concat(fa,"-prev-icon")}),nextIcon:c.createElement("span",{className:"".concat(fa,"-next-icon")}),superPrevIcon:c.createElement("span",{className:"".concat(fa,"-super-prev-icon")}),superNextIcon:c.createElement("span",{className:"".concat(fa,"-super-next-icon")}),components:Bo,direction:xn}))})},zr}return h()(En,[{key:"render",value:function(){return c.createElement(Aa.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),En}(c.Component);return ar.contextType=mo.b,ar}var Bo={button:a,rangeItem:e};function Ja(rt){return rt?Array.isArray(rt)?rt:[rt]:[]}function _o(rt){var ar=rt.format,Fr=rt.picker,Ir=rt.showHour,En=rt.showMinute,zr=rt.showSecond,yr=rt.use12Hours,Cn=Ja(ar)[0],Pr=f()({},rt);return Cn&&(!Cn.includes("s")&&zr===void 0&&(Pr.showSecond=!1),!Cn.includes("m")&&En===void 0&&(Pr.showMinute=!1),!Cn.includes("H")&&!Cn.includes("h")&&Ir===void 0&&(Pr.showHour=!1),(Cn.includes("a")||Cn.includes("A"))&&yr===void 0&&(Pr.use12Hours=!0)),Fr==="time"?Pr:{showTime:Pr}}function Ao(rt){var ar=Qa(rt),Fr=ar.DatePicker,Ir=ar.WeekPicker,En=ar.MonthPicker,zr=ar.YearPicker,yr=ar.TimePicker,Cn=ar.QuarterPicker,Pr=ao(rt),xn=Fr;return xn.WeekPicker=Ir,xn.MonthPicker=En,xn.YearPicker=zr,xn.RangePicker=Pr,xn.TimePicker=yr,xn.QuarterPicker=Cn,xn}var za=Ao,ja=za(S),da=P.a=ja},"+lIL":function(U,P,d){var O=d("ProS");d("/ry/"),d("3OrL");var x=d("L5E0"),T=d("7Phj");O.registerVisual(x),O.registerLayout(T)},"+nKL":function(U,P,d){"use strict";var O=d("q1tI"),x=d("TSYQ"),T=d.n(x),v=d("t23M");function S($,Z){var Re=Object.keys($);if(Object.getOwnPropertySymbols){var De=Object.getOwnPropertySymbols($);Z&&(De=De.filter(function(ae){return Object.getOwnPropertyDescriptor($,ae).enumerable})),Re.push.apply(Re,De)}return Re}function m($){for(var Z=1;Z<arguments.length;Z++){var Re=arguments[Z]!=null?arguments[Z]:{};Z%2?S(Object(Re),!0).forEach(function(De){f($,De,Re[De])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(Re)):S(Object(Re)).forEach(function(De){Object.defineProperty($,De,Object.getOwnPropertyDescriptor(Re,De))})}return $}function f($,Z,Re){return Z in $?Object.defineProperty($,Z,{value:Re,enumerable:!0,configurable:!0,writable:!0}):$[Z]=Re,$}var c=O.forwardRef(function($,Z){var Re=$.height,De=$.offset,ae=$.children,gt=$.prefixCls,jt=$.onInnerResize,ut={},rr={display:"flex",flexDirection:"column"};return De!==void 0&&(ut={height:Re,position:"relative",overflow:"hidden"},rr=m(m({},rr),{},{transform:"translateY(".concat(De,"px)"),position:"absolute",left:0,right:0,top:0})),O.createElement("div",{style:ut},O.createElement(v.a,{onResize:function(nn){var mr=nn.offsetHeight;mr&&jt&&jt()}},O.createElement("div",{style:rr,className:T()(f({},"".concat(gt,"-holder-inner"),gt)),ref:Z},ae)))});c.displayName="Filler";var o=c,r=d("wgJM");function a($){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?a=function(Re){return typeof Re}:a=function(Re){return Re&&typeof Symbol=="function"&&Re.constructor===Symbol&&Re!==Symbol.prototype?"symbol":typeof Re},a($)}function n($,Z,Re){return Z in $?Object.defineProperty($,Z,{value:Re,enumerable:!0,configurable:!0,writable:!0}):$[Z]=Re,$}function e($,Z){if(!($ instanceof Z))throw new TypeError("Cannot call a class as a function")}function s($,Z){for(var Re=0;Re<Z.length;Re++){var De=Z[Re];De.enumerable=De.enumerable||!1,De.configurable=!0,"value"in De&&(De.writable=!0),Object.defineProperty($,De.key,De)}}function t($,Z,Re){return Z&&s($.prototype,Z),Re&&s($,Re),$}function i($,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(Z&&Z.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),Z&&l($,Z)}function l($,Z){return l=Object.setPrototypeOf||function(De,ae){return De.__proto__=ae,De},l($,Z)}function u($){var Z=g();return function(){var De=A($),ae;if(Z){var gt=A(this).constructor;ae=Reflect.construct(De,arguments,gt)}else ae=De.apply(this,arguments);return h(this,ae)}}function h($,Z){return Z&&(a(Z)==="object"||typeof Z=="function")?Z:p($)}function p($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function g(){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($){return!1}}function A($){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(Re){return Re.__proto__||Object.getPrototypeOf(Re)},A($)}var y=20;function E($){return"touches"in $?$.touches[0].pageY:$.pageY}var C=function($){i(Re,$);var Z=u(Re);function Re(){var De;e(this,Re);for(var ae=arguments.length,gt=new Array(ae),jt=0;jt<ae;jt++)gt[jt]=arguments[jt];return De=Z.call.apply(Z,[this].concat(gt)),De.moveRaf=null,De.scrollbarRef=O.createRef(),De.thumbRef=O.createRef(),De.visibleTimeout=null,De.state={dragging:!1,pageY:null,startTop:null,visible:!1},De.delayHidden=function(){clearTimeout(De.visibleTimeout),De.setState({visible:!0}),De.visibleTimeout=setTimeout(function(){De.setState({visible:!1})},2e3)},De.onScrollbarTouchStart=function(ut){ut.preventDefault()},De.onContainerMouseDown=function(ut){ut.stopPropagation(),ut.preventDefault()},De.patchEvents=function(){window.addEventListener("mousemove",De.onMouseMove),window.addEventListener("mouseup",De.onMouseUp),De.thumbRef.current.addEventListener("touchmove",De.onMouseMove),De.thumbRef.current.addEventListener("touchend",De.onMouseUp)},De.removeEvents=function(){window.removeEventListener("mousemove",De.onMouseMove),window.removeEventListener("mouseup",De.onMouseUp),De.scrollbarRef.current.removeEventListener("touchstart",De.onScrollbarTouchStart),De.thumbRef.current.removeEventListener("touchstart",De.onMouseDown),De.thumbRef.current.removeEventListener("touchmove",De.onMouseMove),De.thumbRef.current.removeEventListener("touchend",De.onMouseUp),r.a.cancel(De.moveRaf)},De.onMouseDown=function(ut){var rr=De.props.onStartMove;De.setState({dragging:!0,pageY:E(ut),startTop:De.getTop()}),rr(),De.patchEvents(),ut.stopPropagation(),ut.preventDefault()},De.onMouseMove=function(ut){var rr=De.state,pr=rr.dragging,nn=rr.pageY,mr=rr.startTop,vr=De.props.onScroll;if(r.a.cancel(De.moveRaf),pr){var $t=E(ut)-nn,Xt=mr+$t,ft=De.getEnableScrollRange(),Ur=De.getEnableHeightRange(),yn=Ur?Xt/Ur:0,Dn=Math.ceil(yn*ft);De.moveRaf=Object(r.a)(function(){vr(Dn)})}},De.onMouseUp=function(){var ut=De.props.onStopMove;De.setState({dragging:!1}),ut(),De.removeEvents()},De.getSpinHeight=function(){var ut=De.props,rr=ut.height,pr=ut.count,nn=rr/pr*10;return nn=Math.max(nn,y),nn=Math.min(nn,rr/2),Math.floor(nn)},De.getEnableScrollRange=function(){var ut=De.props,rr=ut.scrollHeight,pr=ut.height;return rr-pr||0},De.getEnableHeightRange=function(){var ut=De.props.height,rr=De.getSpinHeight();return ut-rr||0},De.getTop=function(){var ut=De.props.scrollTop,rr=De.getEnableScrollRange(),pr=De.getEnableHeightRange();if(ut===0||rr===0)return 0;var nn=ut/rr;return nn*pr},De.showScroll=function(){var ut=De.props,rr=ut.height,pr=ut.scrollHeight;return pr>rr},De}return t(Re,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(ae){ae.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var ae=this.state,gt=ae.dragging,jt=ae.visible,ut=this.props.prefixCls,rr=this.getSpinHeight(),pr=this.getTop(),nn=this.showScroll(),mr=nn&&jt;return O.createElement("div",{ref:this.scrollbarRef,className:T()("".concat(ut,"-scrollbar"),n({},"".concat(ut,"-scrollbar-show"),nn)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:mr?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},O.createElement("div",{ref:this.thumbRef,className:T()("".concat(ut,"-scrollbar-thumb"),n({},"".concat(ut,"-scrollbar-thumb-moving"),gt)),style:{width:"100%",height:rr,top:pr,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),Re}(O.Component);function w($){var Z=$.children,Re=$.setRef,De=O.useCallback(function(ae){Re(ae)},[]);return O.cloneElement(Z,{ref:De})}function b($,Z,Re,De,ae,gt){var jt=gt.getKey;return $.slice(Z,Re+1).map(function(ut,rr){var pr=Z+rr,nn=ae(ut,pr,{}),mr=jt(ut);return O.createElement(w,{key:mr,setRef:function($t){return De(ut,$t)}},nn)})}var I=d("m+aA");function _($,Z){if(!($ instanceof Z))throw new TypeError("Cannot call a class as a function")}function L($,Z){for(var Re=0;Re<Z.length;Re++){var De=Z[Re];De.enumerable=De.enumerable||!1,De.configurable=!0,"value"in De&&(De.writable=!0),Object.defineProperty($,De.key,De)}}function D($,Z,Re){return Z&&L($.prototype,Z),Re&&L($,Re),$}var N=function(){function $(){_(this,$),this.maps=void 0,this.maps={},this.maps.prototype=null}return D($,[{key:"set",value:function(Re,De){this.maps[Re]=De}},{key:"get",value:function(Re){return this.maps[Re]}}]),$}(),R=N;function B($,Z){return j($)||K($,Z)||H($,Z)||M()}function M(){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 H($,Z){if(!$)return;if(typeof $=="string")return F($,Z);var Re=Object.prototype.toString.call($).slice(8,-1);if(Re==="Object"&&$.constructor&&(Re=$.constructor.name),Re==="Map"||Re==="Set")return Array.from($);if(Re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Re))return F($,Z)}function F($,Z){(Z==null||Z>$.length)&&(Z=$.length);for(var Re=0,De=new Array(Z);Re<Z;Re++)De[Re]=$[Re];return De}function K($,Z){var Re=$==null?null:typeof Symbol!="undefined"&&$[Symbol.iterator]||$["@@iterator"];if(Re==null)return;var De=[],ae=!0,gt=!1,jt,ut;try{for(Re=Re.call($);!(ae=(jt=Re.next()).done)&&!(De.push(jt.value),Z&&De.length===Z);ae=!0);}catch(rr){gt=!0,ut=rr}finally{try{!ae&&Re.return!=null&&Re.return()}finally{if(gt)throw ut}}return De}function j($){if(Array.isArray($))return $}function V($,Z,Re){var De=O.useState(0),ae=B(De,2),gt=ae[0],jt=ae[1],ut=Object(O.useRef)(new Map),rr=Object(O.useRef)(new R),pr=Object(O.useRef)(0);function nn(){pr.current+=1;var vr=pr.current;Promise.resolve().then(function(){if(vr!==pr.current)return;ut.current.forEach(function($t,Xt){if($t&&$t.offsetParent){var ft=Object(I.a)($t),Ur=ft.offsetHeight;rr.current.get(Xt)!==Ur&&rr.current.set(Xt,ft.offsetHeight)}}),jt(function($t){return $t+1})})}function mr(vr,$t){var Xt=$(vr),ft=ut.current.get(Xt);$t?(ut.current.set(Xt,$t),nn()):ut.current.delete(Xt),!ft!==!$t&&($t?Z==null||Z(vr):Re==null||Re(vr))}return[mr,nn,rr.current,gt]}function z($){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?z=function(Re){return typeof Re}:z=function(Re){return Re&&typeof Symbol=="function"&&Re.constructor===Symbol&&Re!==Symbol.prototype?"symbol":typeof Re},z($)}function Y($,Z,Re,De,ae,gt,jt,ut){var rr=O.useRef();return function(pr){if(pr==null){ut();return}if(r.a.cancel(rr.current),typeof pr=="number")jt(pr);else if(pr&&z(pr)==="object"){var nn,mr=pr.align;"index"in pr?nn=pr.index:nn=Z.findIndex(function(ft){return ae(ft)===pr.key});var vr=pr.offset,$t=vr===void 0?0:vr,Xt=function ft(Ur,yn){if(Ur<0||!$.current)return;var Dn=$.current.clientHeight,Un=!1,wi=yn;if(Dn){for(var Rn=yn||mr,kn=0,Vn=0,Gt=0,st=Math.min(Z.length,nn),ue=0;ue<=st;ue+=1){var Ee=ae(Z[ue]);Vn=kn;var je=Re.get(Ee);Gt=Vn+(je===void 0?De:je),kn=Gt,ue===nn&&je===void 0&&(Un=!0)}var Ve=null;switch(Rn){case"top":Ve=Vn-$t;break;case"bottom":Ve=Gt-Dn+$t;break;default:{var $e=$.current.scrollTop,wt=$e+Dn;Vn<$e?wi="top":Gt>wt&&(wi="bottom")}}Ve!==null&&Ve!==$.current.scrollTop&&jt(Ve)}rr.current=Object(r.a)(function(){Un&>(),ft(Ur-1,wi)})};Xt(3)}}}function ee($,Z,Re,De){var ae=Re-$,gt=Z-Re,jt=Math.min(ae,gt)*2;if(De<=jt){var ut=Math.floor(De/2);return De%2?Re+ut+1:Re-ut}return ae>gt?Re-(De-gt):Re+(De-ae)}function fe($,Z,Re){var De=$.length,ae=Z.length,gt,jt;if(De===0&&ae===0)return null;De<ae?(gt=$,jt=Z):(gt=Z,jt=$);var ut={__EMPTY_ITEM__:!0};function rr(Xt){return Xt!==void 0?Re(Xt):ut}for(var pr=null,nn=Math.abs(De-ae)!==1,mr=0;mr<jt.length;mr+=1){var vr=rr(gt[mr]),$t=rr(jt[mr]);if(vr!==$t){pr=mr,nn=nn||vr!==rr(jt[mr+1]);break}}return pr===null?null:{index:pr,multiple:nn}}function ie($,Z){return ce($)||He($,Z)||Ce($,Z)||we()}function we(){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 Ce($,Z){if(!$)return;if(typeof $=="string")return Le($,Z);var Re=Object.prototype.toString.call($).slice(8,-1);if(Re==="Object"&&$.constructor&&(Re=$.constructor.name),Re==="Map"||Re==="Set")return Array.from($);if(Re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Re))return Le($,Z)}function Le($,Z){(Z==null||Z>$.length)&&(Z=$.length);for(var Re=0,De=new Array(Z);Re<Z;Re++)De[Re]=$[Re];return De}function He($,Z){var Re=$==null?null:typeof Symbol!="undefined"&&$[Symbol.iterator]||$["@@iterator"];if(Re==null)return;var De=[],ae=!0,gt=!1,jt,ut;try{for(Re=Re.call($);!(ae=(jt=Re.next()).done)&&!(De.push(jt.value),Z&&De.length===Z);ae=!0);}catch(rr){gt=!0,ut=rr}finally{try{!ae&&Re.return!=null&&Re.return()}finally{if(gt)throw ut}}return De}function ce($){if(Array.isArray($))return $}function Pe($,Z,Re){var De=O.useState($),ae=ie(De,2),gt=ae[0],jt=ae[1],ut=O.useState(null),rr=ie(ut,2),pr=rr[0],nn=rr[1];return O.useEffect(function(){var mr=fe(gt||[],$||[],Z);(mr==null?void 0:mr.index)!==void 0&&(Re==null||Re(mr.index),nn($[mr.index])),jt($)},[$]),[pr]}function Q($){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Q=function(Re){return typeof Re}:Q=function(Re){return Re&&typeof Symbol=="function"&&Re.constructor===Symbol&&Re!==Symbol.prototype?"symbol":typeof Re},Q($)}var me=(typeof navigator=="undefined"?"undefined":Q(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Je=me,re=function($,Z){var Re=Object(O.useRef)(!1),De=Object(O.useRef)(null);function ae(){clearTimeout(De.current),Re.current=!0,De.current=setTimeout(function(){Re.current=!1},50)}var gt=Object(O.useRef)({top:$,bottom:Z});return gt.current.top=$,gt.current.bottom=Z,function(jt){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rr=jt<0&>.current.top||jt>0&>.current.bottom;return ut&&rr?(clearTimeout(De.current),Re.current=!1):(!rr||Re.current)&&ae(),!Re.current&&rr}};function G($,Z,Re,De){var ae=Object(O.useRef)(0),gt=Object(O.useRef)(null),jt=Object(O.useRef)(null),ut=Object(O.useRef)(!1),rr=re(Z,Re);function pr(mr){if(!$)return;r.a.cancel(gt.current);var vr=mr.deltaY;if(ae.current+=vr,jt.current=vr,rr(vr))return;Je||mr.preventDefault(),gt.current=Object(r.a)(function(){var $t=ut.current?10:1;De(ae.current*$t),ae.current=0})}function nn(mr){if(!$)return;ut.current=mr.detail===jt.current}return[pr,nn]}var X=14/15;function J($,Z,Re){var De=Object(O.useRef)(!1),ae=Object(O.useRef)(0),gt=Object(O.useRef)(null),jt=Object(O.useRef)(null),ut,rr=function(vr){if(De.current){var $t=Math.ceil(vr.touches[0].pageY),Xt=ae.current-$t;ae.current=$t,Re(Xt)&&vr.preventDefault(),clearInterval(jt.current),jt.current=setInterval(function(){Xt*=X,(!Re(Xt,!0)||Math.abs(Xt)<=.1)&&clearInterval(jt.current)},16)}},pr=function(){De.current=!1,ut()},nn=function(vr){ut(),vr.touches.length===1&&!De.current&&(De.current=!0,ae.current=Math.ceil(vr.touches[0].pageY),gt.current=vr.target,gt.current.addEventListener("touchmove",rr),gt.current.addEventListener("touchend",pr))};ut=function(){gt.current&&(gt.current.removeEventListener("touchmove",rr),gt.current.removeEventListener("touchend",pr))},O.useLayoutEffect(function(){return $&&Z.current.addEventListener("touchstart",nn),function(){Z.current.removeEventListener("touchstart",nn),ut(),clearInterval(jt.current)}},[$])}var Ae=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function he(){return he=Object.assign||function($){for(var Z=1;Z<arguments.length;Z++){var Re=arguments[Z];for(var De in Re)Object.prototype.hasOwnProperty.call(Re,De)&&($[De]=Re[De])}return $},he.apply(this,arguments)}function Me($,Z){var Re=Object.keys($);if(Object.getOwnPropertySymbols){var De=Object.getOwnPropertySymbols($);Z&&(De=De.filter(function(ae){return Object.getOwnPropertyDescriptor($,ae).enumerable})),Re.push.apply(Re,De)}return Re}function Ie($){for(var Z=1;Z<arguments.length;Z++){var Re=arguments[Z]!=null?arguments[Z]:{};Z%2?Me(Object(Re),!0).forEach(function(De){oe($,De,Re[De])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(Re)):Me(Object(Re)).forEach(function(De){Object.defineProperty($,De,Object.getOwnPropertyDescriptor(Re,De))})}return $}function oe($,Z,Re){return Z in $?Object.defineProperty($,Z,{value:Re,enumerable:!0,configurable:!0,writable:!0}):$[Z]=Re,$}function pe($,Z){return Te($)||et($,Z)||Ye($,Z)||Oe()}function Oe(){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 Ye($,Z){if(!$)return;if(typeof $=="string")return it($,Z);var Re=Object.prototype.toString.call($).slice(8,-1);if(Re==="Object"&&$.constructor&&(Re=$.constructor.name),Re==="Map"||Re==="Set")return Array.from($);if(Re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Re))return it($,Z)}function it($,Z){(Z==null||Z>$.length)&&(Z=$.length);for(var Re=0,De=new Array(Z);Re<Z;Re++)De[Re]=$[Re];return De}function et($,Z){var Re=$==null?null:typeof Symbol!="undefined"&&$[Symbol.iterator]||$["@@iterator"];if(Re==null)return;var De=[],ae=!0,gt=!1,jt,ut;try{for(Re=Re.call($);!(ae=(jt=Re.next()).done)&&!(De.push(jt.value),Z&&De.length===Z);ae=!0);}catch(rr){gt=!0,ut=rr}finally{try{!ae&&Re.return!=null&&Re.return()}finally{if(gt)throw ut}}return De}function Te($){if(Array.isArray($))return $}function tt($,Z){if($==null)return{};var Re=ze($,Z),De,ae;if(Object.getOwnPropertySymbols){var gt=Object.getOwnPropertySymbols($);for(ae=0;ae<gt.length;ae++){if(De=gt[ae],Z.indexOf(De)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call($,De))continue;Re[De]=$[De]}}return Re}function ze($,Z){if($==null)return{};var Re={},De=Object.keys($),ae,gt;for(gt=0;gt<De.length;gt++){if(ae=De[gt],Z.indexOf(ae)>=0)continue;Re[ae]=$[ae]}return Re}var dt=[],Ot={overflowY:"auto",overflowAnchor:"none"};function Tt($,Z){var Re=$.prefixCls,De=Re===void 0?"rc-virtual-list":Re,ae=$.className,gt=$.height,jt=$.itemHeight,ut=$.fullHeight,rr=ut===void 0?!0:ut,pr=$.style,nn=$.data,mr=$.children,vr=$.itemKey,$t=$.virtual,Xt=$.component,ft=Xt===void 0?"div":Xt,Ur=$.onScroll,yn=$.onVisibleChange,Dn=tt($,Ae),Un=!!($t!==!1&>&&jt),wi=Un&&nn&&jt*nn.length>gt,Rn=Object(O.useState)(0),kn=pe(Rn,2),Vn=kn[0],Gt=kn[1],st=Object(O.useState)(!1),ue=pe(st,2),Ee=ue[0],je=ue[1],Ve=T()(De,ae),$e=nn||dt,wt=Object(O.useRef)(),qt=Object(O.useRef)(),Mr=Object(O.useRef)(),an=O.useCallback(function(Bt){return typeof vr=="function"?vr(Bt):Bt==null?void 0:Bt[vr]},[vr]),_t={getKey:an};function at(Bt){Gt(function(gn){var hr;typeof Bt=="function"?hr=Bt(gn):hr=Bt;var vn=Ze(hr);return wt.current.scrollTop=vn,vn})}var bt=Object(O.useRef)({start:0,end:$e.length}),kt=Object(O.useRef)(),Pt=Pe($e,an),Et=pe(Pt,1),Ht=Et[0];kt.current=Ht;var ot=V(an,null,null),Mt=pe(ot,4),xr=Mt[0],ur=Mt[1],gr=Mt[2],Qr=Mt[3],ln=O.useMemo(function(){if(!Un)return{scrollHeight:void 0,start:0,end:$e.length-1,offset:void 0};if(!wi){var Bt;return{scrollHeight:((Bt=qt.current)===null||Bt===void 0?void 0:Bt.offsetHeight)||0,start:0,end:$e.length-1,offset:void 0}}for(var gn=0,hr,vn,en,Dt=$e.length,jr=0;jr<Dt;jr+=1){var un=$e[jr],Hr=an(un),Wt=gr.get(Hr),wr=gn+(Wt===void 0?jt:Wt);wr>=Vn&&hr===void 0&&(hr=jr,vn=gn),wr>Vn+gt&&en===void 0&&(en=jr),gn=wr}return hr===void 0&&(hr=0,vn=0),en===void 0&&(en=$e.length-1),en=Math.min(en+1,$e.length),{scrollHeight:gn,start:hr,end:en,offset:vn}},[wi,Un,Vn,$e,Qr,gt]),_n=ln.scrollHeight,Mn=ln.start,li=ln.end,ai=ln.offset;bt.current.start=Mn,bt.current.end=li;var pi=_n-gt,Oi=Object(O.useRef)(pi);Oi.current=pi;function Ze(Bt){var gn=Bt;return Number.isNaN(Oi.current)||(gn=Math.min(gn,Oi.current)),gn=Math.max(gn,0),gn}var be=Vn<=0,Ne=Vn>=pi,Ue=re(be,Ne);function Qe(Bt){var gn=Bt;at(gn)}function Xe(Bt){var gn=Bt.currentTarget.scrollTop;gn!==Vn&&at(gn),Ur==null||Ur(Bt)}var qe=G(Un,be,Ne,function(Bt){at(function(gn){var hr=gn+Bt;return hr})}),yt=pe(qe,2),ht=yt[0],Jt=yt[1];J(Un,wt,function(Bt,gn){return Ue(Bt,gn)?!1:(ht({preventDefault:function(){},deltaY:Bt}),!0)}),Object(O.useLayoutEffect)(function(){function Bt(gn){Un&&gn.preventDefault()}return wt.current.addEventListener("wheel",ht),wt.current.addEventListener("DOMMouseScroll",Jt),wt.current.addEventListener("MozMousePixelScroll",Bt),function(){wt.current.removeEventListener("wheel",ht),wt.current.removeEventListener("DOMMouseScroll",Jt),wt.current.removeEventListener("MozMousePixelScroll",Bt)}},[Un]);var kr=Y(wt,$e,gr,jt,an,ur,at,function(){var Bt;(Bt=Mr.current)===null||Bt===void 0||Bt.delayHidden()});O.useImperativeHandle(Z,function(){return{scrollTo:kr}}),Object(O.useLayoutEffect)(function(){if(yn){var Bt=$e.slice(Mn,li+1);yn(Bt,$e)}},[Mn,li,$e]);var _r=b($e,Mn,li,xr,mr,_t),Xr=null;return gt&&(Xr=Ie(oe({},rr?"height":"maxHeight",gt),Ot),Un&&(Xr.overflowY="hidden",Ee&&(Xr.pointerEvents="none"))),O.createElement("div",he({style:Ie(Ie({},pr),{},{position:"relative"}),className:Ve},Dn),O.createElement(ft,{className:"".concat(De,"-holder"),style:Xr,ref:wt,onScroll:Xe},O.createElement(o,{prefixCls:De,height:_n,offset:ai,onInnerResize:ur,ref:qt},_r)),Un&&O.createElement(C,{ref:Mr,prefixCls:De,scrollTop:Vn,height:gt,scrollHeight:_n,count:$e.length,onScroll:Qe,onStartMove:function(){je(!0)},onStopMove:function(){je(!1)}}))}var Ct=O.forwardRef(Tt);Ct.displayName="List";var Nt=Ct,Be=P.a=Nt},"+rIm":function(U,P,d){var O=d("bYtY"),x=O.retrieve,T=O.defaults,v=O.extend,S=O.each,m=d("7aKB"),f=d("IwbS"),c=d("Qxkt"),o=d("OELB"),r=o.isRadianAroundZero,a=o.remRadian,n=d("oVpE"),e=n.createSymbol,s=d("Fofx"),t=d("QBsz"),i=t.applyTransform,l=d("aX7z"),u=l.shouldShowAllLabels,h=Math.PI,p=function(M,H){this.opt=H,this.axisModel=M,T(H,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new f.Group;var F=new f.Group({position:H.position.slice(),rotation:H.rotation});F.updateTransform(),this._transform=F.transform,this._dumbGroup=F};p.prototype={constructor:p,hasBuilder:function(M){return!!g[M]},add:function(M){g[M].call(this)},getGroup:function(){return this.group}};var g={axisLine:function(){var M=this.opt,H=this.axisModel;if(!H.get("axisLine.show"))return;var F=this.axisModel.axis.getExtent(),K=this._transform,j=[F[0],0],V=[F[1],0];K&&(i(j,j,K),i(V,V,K));var z=v({lineCap:"round"},H.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new f.Line({anid:"line",subPixelOptimize:!0,shape:{x1:j[0],y1:j[1],x2:V[0],y2:V[1]},style:z,strokeContainThreshold:M.strokeContainThreshold||5,silent:!0,z2:1}));var Y=H.get("axisLine.symbol"),ee=H.get("axisLine.symbolSize"),fe=H.get("axisLine.symbolOffset")||0;if(typeof fe=="number"&&(fe=[fe,fe]),Y!=null){typeof Y=="string"&&(Y=[Y,Y]),(typeof ee=="string"||typeof ee=="number")&&(ee=[ee,ee]);var ie=ee[0],we=ee[1];S([{rotate:M.rotation+Math.PI/2,offset:fe[0],r:0},{rotate:M.rotation-Math.PI/2,offset:fe[1],r:Math.sqrt((j[0]-V[0])*(j[0]-V[0])+(j[1]-V[1])*(j[1]-V[1]))}],function(Ce,Le){if(Y[Le]!=="none"&&Y[Le]!=null){var He=e(Y[Le],-ie/2,-we/2,ie,we,z.stroke,!0),ce=Ce.r+Ce.offset,Pe=[j[0]+ce*Math.cos(M.rotation),j[1]-ce*Math.sin(M.rotation)];He.attr({rotation:Ce.rotate,position:Pe,silent:!0,z2:11}),this.group.add(He)}},this)}},axisTickLabel:function(){var M=this.axisModel,H=this.opt,F=D(this,M,H),K=R(this,M,H);w(M,K,F),N(this,M,H)},axisName:function(){var M=this.opt,H=this.axisModel,F=x(M.axisName,H.get("name"));if(!F)return;var K=H.get("nameLocation"),j=M.nameDirection,V=H.getModel("nameTextStyle"),z=H.get("nameGap")||0,Y=this.axisModel.axis.getExtent(),ee=Y[0]>Y[1]?-1:1,fe=[K==="start"?Y[0]-ee*z:K==="end"?Y[1]+ee*z:(Y[0]+Y[1])/2,_(K)?M.labelOffset+j*z:0],ie,we=H.get("nameRotate");we!=null&&(we=we*h/180);var Ce;_(K)?ie=y(M.rotation,we!=null?we:M.rotation,j):(ie=E(M,K,we||0,Y),Ce=M.axisNameAvailableWidth,Ce!=null&&(Ce=Math.abs(Ce/Math.sin(ie.rotation)),!isFinite(Ce)&&(Ce=null)));var Le=V.getFont(),He=H.get("nameTruncate",!0)||{},ce=He.ellipsis,Pe=x(M.nameTruncateMaxWidth,He.maxWidth,Ce),Q=ce!=null&&Pe!=null?m.truncateText(F,Pe,Le,ce,{minChar:2,placeholder:He.placeholder}):F,me=H.get("tooltip",!0),Je=H.mainType,re={componentType:Je,name:F,$vars:["name"]};re[Je+"Index"]=H.componentIndex;var G=new f.Text({anid:"name",__fullText:F,__truncatedText:Q,position:fe,rotation:ie.rotation,silent:C(H),z2:1,tooltip:me&&me.show?v({content:F,formatter:function(){return F},formatterParams:re},me):null});f.setTextStyle(G.style,V,{text:Q,textFont:Le,textFill:V.getTextColor()||H.get("axisLine.lineStyle.color"),textAlign:V.get("align")||ie.textAlign,textVerticalAlign:V.get("verticalAlign")||ie.textVerticalAlign}),H.get("triggerEvent")&&(G.eventData=A(H),G.eventData.targetType="axisName",G.eventData.name=F),this._dumbGroup.add(G),G.updateTransform(),this.group.add(G),G.decomposeTransform()}},A=p.makeAxisEventDataBase=function(M){var H={componentType:M.mainType,componentIndex:M.componentIndex};return H[M.mainType+"Index"]=M.componentIndex,H},y=p.innerTextLayout=function(M,H,F){var K=a(H-M),j,V;return r(K)?(V=F>0?"top":"bottom",j="center"):r(K-h)?(V=F>0?"bottom":"top",j="center"):(V="middle",K>0&&K<h?j=F>0?"right":"left":j=F>0?"left":"right"),{rotation:K,textAlign:j,textVerticalAlign:V}};function E(M,H,F,K){var j=a(F-M.rotation),V,z,Y=K[0]>K[1],ee=H==="start"&&!Y||H!=="start"&&Y;return r(j-h/2)?(z=ee?"bottom":"top",V="center"):r(j-h*1.5)?(z=ee?"top":"bottom",V="center"):(z="middle",j<h*1.5&&j>h/2?V=ee?"left":"right":V=ee?"right":"left"),{rotation:j,textAlign:V,textVerticalAlign:z}}var C=p.isLabelSilent=function(M){var H=M.get("tooltip");return M.get("silent")||!(M.get("triggerEvent")||H&&H.show)};function w(M,H,F){if(u(M.axis))return;var K=M.get("axisLabel.showMinLabel"),j=M.get("axisLabel.showMaxLabel");H=H||[],F=F||[];var V=H[0],z=H[1],Y=H[H.length-1],ee=H[H.length-2],fe=F[0],ie=F[1],we=F[F.length-1],Ce=F[F.length-2];K===!1?(b(V),b(fe)):I(V,z)&&(K?(b(z),b(ie)):(b(V),b(fe))),j===!1?(b(Y),b(we)):I(ee,Y)&&(j?(b(ee),b(Ce)):(b(Y),b(we)))}function b(M){M&&(M.ignore=!0)}function I(M,H,F){var K=M&&M.getBoundingRect().clone(),j=H&&H.getBoundingRect().clone();if(!K||!j)return;var V=s.identity([]);return s.rotate(V,V,-M.rotation),K.applyTransform(s.mul([],V,M.getLocalTransform())),j.applyTransform(s.mul([],V,H.getLocalTransform())),K.intersect(j)}function _(M){return M==="middle"||M==="center"}function L(M,H,F,K,j){for(var V=[],z=[],Y=[],ee=0;ee<M.length;ee++){var fe=M[ee].coord;z[0]=fe,z[1]=0,Y[0]=fe,Y[1]=F,H&&(i(z,z,H),i(Y,Y,H));var ie=new f.Line({anid:j+"_"+M[ee].tickValue,subPixelOptimize:!0,shape:{x1:z[0],y1:z[1],x2:Y[0],y2:Y[1]},style:K,z2:2,silent:!0});V.push(ie)}return V}function D(M,H,F){var K=H.axis,j=H.getModel("axisTick");if(!j.get("show")||K.scale.isBlank())return;for(var V=j.getModel("lineStyle"),z=F.tickDirection*j.get("length"),Y=K.getTicksCoords(),ee=L(Y,M._transform,z,T(V.getLineStyle(),{stroke:H.get("axisLine.lineStyle.color")}),"ticks"),fe=0;fe<ee.length;fe++)M.group.add(ee[fe]);return ee}function N(M,H,F){var K=H.axis,j=H.getModel("minorTick");if(!j.get("show")||K.scale.isBlank())return;var V=K.getMinorTicksCoords();if(!V.length)return;for(var z=j.getModel("lineStyle"),Y=F.tickDirection*j.get("length"),ee=T(z.getLineStyle(),T(H.getModel("axisTick").getLineStyle(),{stroke:H.get("axisLine.lineStyle.color")})),fe=0;fe<V.length;fe++)for(var ie=L(V[fe],M._transform,Y,ee,"minorticks_"+fe),we=0;we<ie.length;we++)M.group.add(ie[we])}function R(M,H,F){var K=H.axis,j=x(F.axisLabelShow,H.get("axisLabel.show"));if(!j||K.scale.isBlank())return;var V=H.getModel("axisLabel"),z=V.get("margin"),Y=K.getViewLabels(),ee=(x(F.labelRotate,V.get("rotate"))||0)*h/180,fe=y(F.rotation,ee,F.labelDirection),ie=H.getCategories&&H.getCategories(!0),we=[],Ce=C(H),Le=H.get("triggerEvent");return S(Y,function(He,ce){var Pe=He.tickValue,Q=He.formattedLabel,me=He.rawLabel,Je=V;ie&&ie[Pe]&&ie[Pe].textStyle&&(Je=new c(ie[Pe].textStyle,V,H.ecModel));var re=Je.getTextColor()||H.get("axisLine.lineStyle.color"),G=K.dataToCoord(Pe),X=[G,F.labelOffset+F.labelDirection*z],J=new f.Text({anid:"label_"+Pe,position:X,rotation:fe.rotation,silent:Ce,z2:10});f.setTextStyle(J.style,Je,{text:Q,textAlign:Je.getShallow("align",!0)||fe.textAlign,textVerticalAlign:Je.getShallow("verticalAlign",!0)||Je.getShallow("baseline",!0)||fe.textVerticalAlign,textFill:typeof re=="function"?re(K.type==="category"?me:K.type==="value"?Pe+"":Pe,ce):re}),Le&&(J.eventData=A(H),J.eventData.targetType="axisLabel",J.eventData.value=me),M._dumbGroup.add(J),J.updateTransform(),we.push(J),M.group.add(J),J.decomposeTransform()}),we}var B=p;U.exports=B},"+wW9":function(U,P,d){var O=d("bYtY"),x=O.each,T=O.isArray,v=O.isObject,S=d("JuEJ"),m=d("4NO4"),f=m.normalizeToArray;function c(s,t){t=t.split(",");for(var i=s,l=0;l<t.length&&!(i=i&&i[t[l]],i==null);l++);return i}function o(s,t,i,l){t=t.split(",");for(var u=s,h,p=0;p<t.length-1;p++)h=t[p],u[h]==null&&(u[h]={}),u=u[h];(l||u[t[p]]==null)&&(u[t[p]]=i)}function r(s){x(a,function(t){t[0]in s&&!(t[1]in s)&&(s[t[1]]=s[t[0]])})}var a=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],n=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function e(s,t){S(s,t),s.series=f(s.series),x(s.series,function(i){if(!v(i))return;var l=i.type;if(l==="line")i.clipOverflow!=null&&(i.clip=i.clipOverflow);else if(l==="pie"||l==="gauge")i.clockWise!=null&&(i.clockwise=i.clockWise);else if(l==="gauge"){var u=c(i,"pointer.color");u!=null&&o(i,"itemStyle.color",u)}r(i)}),s.dataRange&&(s.visualMap=s.dataRange),x(n,function(i){var l=s[i];l&&(T(l)||(l=[l]),x(l,function(u){r(u)}))})}U.exports=e},"/IIm":function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("bYtY"),v=d("H6uX"),S=d("IwbS"),m=d("pP6R"),f=d("gPAo"),c=T.curry,o=T.each,r=T.map,a=Math.min,n=Math.max,e=Math.pow,s=1e4,t=6,i=6,l="globalPan",u={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},h={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},p={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},g=0;function A(oe){v.call(this),this._zr=oe,this.group=new S.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+g++,this._handlers={},o(X,function(pe,Oe){this._handlers[Oe]=T.bind(pe,this)},this)}A.prototype={constructor:A,enableBrush:function(oe){return this._brushType&&E(this),oe.brushType&&y(this,oe),this},setPanels:function(oe){if(oe&&oe.length){var pe=this._panels={};T.each(oe,function(Oe){pe[Oe.panelId]=T.clone(Oe)})}else this._panels=null;return this},mount:function(oe){oe=oe||{},this._enableGlobalPan=oe.enableGlobalPan;var pe=this.group;return this._zr.add(pe),pe.attr({position:oe.position||[0,0],rotation:oe.rotation||0,scale:oe.scale||[1,1]}),this._transform=pe.getLocalTransform(),this},eachCover:function(oe,pe){o(this._covers,oe,pe)},updateCovers:function(oe){oe=T.map(oe,function(Ot){return T.merge(T.clone(p),Ot,!0)});var pe="\0-brush-index-",Oe=this._covers,Ye=this._covers=[],it=this,et=this._creatingCover;return new f(Oe,oe,tt,Te).add(ze).update(ze).remove(dt).execute(),this;function Te(Ot,Tt){return(Ot.id!=null?Ot.id:pe+Tt)+"-"+Ot.brushType}function tt(Ot,Tt){return Te(Ot.__brushOption,Tt)}function ze(Ot,Tt){var Ct=oe[Ot];if(Tt!=null&&Oe[Tt]===et)Ye[Ot]=Oe[Tt];else{var Nt=Ye[Ot]=Tt!=null?(Oe[Tt].__brushOption=Ct,Oe[Tt]):I(it,b(it,Ct));D(it,Nt)}}function dt(Ot){Oe[Ot]!==et&&it.group.remove(Oe[Ot])}},unmount:function(){return this.enableBrush(!1),M(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},T.mixin(A,v);function y(oe,pe){var Oe=oe._zr;oe._enableGlobalPan||m.take(Oe,l,oe._uid),C(Oe,oe._handlers),oe._brushType=pe.brushType,oe._brushOption=T.merge(T.clone(p),pe,!0)}function E(oe){var pe=oe._zr;m.release(pe,l,oe._uid),w(pe,oe._handlers),oe._brushType=oe._brushOption=null}function C(oe,pe){o(pe,function(Oe,Ye){oe.on(Ye,Oe)})}function w(oe,pe){o(pe,function(Oe,Ye){oe.off(Ye,Oe)})}function b(oe,pe){var Oe=he[pe.brushType].createCover(oe,pe);return Oe.__brushOption=pe,L(Oe,pe),oe.group.add(Oe),Oe}function I(oe,pe){var Oe=N(pe);return Oe.endCreating&&(Oe.endCreating(oe,pe),L(pe,pe.__brushOption)),pe}function _(oe,pe){var Oe=pe.__brushOption;N(pe).updateCoverShape(oe,pe,Oe.range,Oe)}function L(oe,pe){var Oe=pe.z;Oe==null&&(Oe=s),oe.traverse(function(Ye){Ye.z=Oe,Ye.z2=Oe})}function D(oe,pe){N(pe).updateCommon(oe,pe),_(oe,pe)}function N(oe){return he[oe.__brushOption.brushType]}function R(oe,pe,Oe){var Ye=oe._panels;if(!Ye)return!0;var it,et=oe._transform;return o(Ye,function(Te){Te.isTargetByCursor(pe,Oe,et)&&(it=Te)}),it}function B(oe,pe){var Oe=oe._panels;if(!Oe)return!0;var Ye=pe.__brushOption.panelId;return Ye!=null?Oe[Ye]:!0}function M(oe){var pe=oe._covers,Oe=pe.length;return o(pe,function(Ye){oe.group.remove(Ye)},oe),pe.length=0,!!Oe}function H(oe,pe){var Oe=r(oe._covers,function(Ye){var it=Ye.__brushOption,et=T.clone(it.range);return{brushType:it.brushType,panelId:it.panelId,range:et}});oe.trigger("brush",Oe,{isEnd:!!pe.isEnd,removeOnClick:!!pe.removeOnClick})}function F(oe){var pe=oe._track;if(!pe.length)return!1;var Oe=pe[pe.length-1],Ye=pe[0],it=Oe[0]-Ye[0],et=Oe[1]-Ye[1],Te=e(it*it+et*et,.5);return Te>t}function K(oe){var pe=oe.length-1;return pe<0&&(pe=0),[oe[0],oe[pe]]}function j(oe,pe,Oe,Ye){var it=new S.Group;return it.add(new S.Rect({name:"main",style:ee(Oe),silent:!0,draggable:!0,cursor:"move",drift:c(oe,pe,it,"nswe"),ondragend:c(H,pe,{isEnd:!0})})),o(Ye,function(et){it.add(new S.Rect({name:et,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:c(oe,pe,it,et),ondragend:c(H,pe,{isEnd:!0})}))}),it}function V(oe,pe,Oe,Ye){var it=Ye.brushStyle.lineWidth||0,et=n(it,i),Te=Oe[0][0],tt=Oe[1][0],ze=Te-it/2,dt=tt-it/2,Ot=Oe[0][1],Tt=Oe[1][1],Ct=Ot-et+it/2,Nt=Tt-et+it/2,Be=Ot-Te,$=Tt-tt,Z=Be+it,Re=$+it;Y(oe,pe,"main",Te,tt,Be,$),Ye.transformable&&(Y(oe,pe,"w",ze,dt,et,Re),Y(oe,pe,"e",Ct,dt,et,Re),Y(oe,pe,"n",ze,dt,Z,et),Y(oe,pe,"s",ze,Nt,Z,et),Y(oe,pe,"nw",ze,dt,et,et),Y(oe,pe,"ne",Ct,dt,et,et),Y(oe,pe,"sw",ze,Nt,et,et),Y(oe,pe,"se",Ct,Nt,et,et))}function z(oe,pe){var Oe=pe.__brushOption,Ye=Oe.transformable,it=pe.childAt(0);it.useStyle(ee(Oe)),it.attr({silent:!Ye,cursor:Ye?"move":"default"}),o(["w","e","n","s","se","sw","ne","nw"],function(et){var Te=pe.childOfName(et),tt=we(oe,et);Te&&Te.attr({silent:!Ye,invisible:!Ye,cursor:Ye?h[tt]+"-resize":null})})}function Y(oe,pe,Oe,Ye,it,et,Te){var tt=pe.childOfName(Oe);tt&&tt.setShape(Pe(ce(oe,pe,[[Ye,it],[Ye+et,it+Te]])))}function ee(oe){return T.defaults({strokeNoScale:!0},oe.brushStyle)}function fe(oe,pe,Oe,Ye){var it=[a(oe,Oe),a(pe,Ye)],et=[n(oe,Oe),n(pe,Ye)];return[[it[0],et[0]],[it[1],et[1]]]}function ie(oe){return S.getTransform(oe.group)}function we(oe,pe){if(pe.length>1){pe=pe.split("");var Oe=[we(oe,pe[0]),we(oe,pe[1])];return(Oe[0]==="e"||Oe[0]==="w")&&Oe.reverse(),Oe.join("")}else{var Ye={w:"left",e:"right",n:"top",s:"bottom"},it={left:"w",right:"e",top:"n",bottom:"s"},Oe=S.transformDirection(Ye[pe],ie(oe));return it[Oe]}}function Ce(oe,pe,Oe,Ye,it,et,Te,tt){var ze=Ye.__brushOption,dt=oe(ze.range),Ot=He(Oe,et,Te);o(it.split(""),function(Tt){var Ct=u[Tt];dt[Ct[0]][Ct[1]]+=Ot[Ct[0]]}),ze.range=pe(fe(dt[0][0],dt[1][0],dt[0][1],dt[1][1])),D(Oe,Ye),H(Oe,{isEnd:!1})}function Le(oe,pe,Oe,Ye,it){var et=pe.__brushOption.range,Te=He(oe,Oe,Ye);o(et,function(tt){tt[0]+=Te[0],tt[1]+=Te[1]}),D(oe,pe),H(oe,{isEnd:!1})}function He(oe,pe,Oe){var Ye=oe.group,it=Ye.transformCoordToLocal(pe,Oe),et=Ye.transformCoordToLocal(0,0);return[it[0]-et[0],it[1]-et[1]]}function ce(oe,pe,Oe){var Ye=B(oe,pe);return Ye&&Ye!==!0?Ye.clipPath(Oe,oe._transform):T.clone(Oe)}function Pe(oe){var pe=a(oe[0][0],oe[1][0]),Oe=a(oe[0][1],oe[1][1]),Ye=n(oe[0][0],oe[1][0]),it=n(oe[0][1],oe[1][1]);return{x:pe,y:Oe,width:Ye-pe,height:it-Oe}}function Q(oe,pe,Oe){if(!oe._brushType||Ae(oe,pe))return;var Ye=oe._zr,it=oe._covers,et=R(oe,pe,Oe);if(!oe._dragging)for(var Te=0;Te<it.length;Te++){var tt=it[Te].__brushOption;if(et&&(et===!0||tt.panelId===et.panelId)&&he[tt.brushType].contain(it[Te],Oe[0],Oe[1]))return}et&&Ye.setCursorStyle("crosshair")}function me(oe){var pe=oe.event;pe.preventDefault&&pe.preventDefault()}function Je(oe,pe,Oe){return oe.childOfName("main").contain(pe,Oe)}function re(oe,pe,Oe,Ye){var it=oe._creatingCover,et=oe._creatingPanel,Te=oe._brushOption,tt;if(oe._track.push(Oe.slice()),F(oe)||it){if(et&&!it){Te.brushMode==="single"&&M(oe);var ze=T.clone(Te);ze.brushType=G(ze.brushType,et),ze.panelId=et===!0?null:et.panelId,it=oe._creatingCover=b(oe,ze),oe._covers.push(it)}if(it){var dt=he[G(oe._brushType,et)],Ot=it.__brushOption;Ot.range=dt.getCreatingRange(ce(oe,it,oe._track)),Ye&&(I(oe,it),dt.updateCommon(oe,it)),_(oe,it),tt={isEnd:Ye}}}else Ye&&Te.brushMode==="single"&&Te.removeOnClick&&(R(oe,pe,Oe)&&M(oe)&&(tt={isEnd:Ye,removeOnClick:!0}));return tt}function G(oe,pe){return oe==="auto"?pe.defaultBrushType:oe}var X={mousedown:function(oe){if(this._dragging)J(this,oe);else if(!oe.target||!oe.target.draggable){me(oe);var pe=this.group.transformCoordToLocal(oe.offsetX,oe.offsetY);this._creatingCover=null;var Oe=this._creatingPanel=R(this,oe,pe);Oe&&(this._dragging=!0,this._track=[pe.slice()])}},mousemove:function(oe){var pe=oe.offsetX,Oe=oe.offsetY,Ye=this.group.transformCoordToLocal(pe,Oe);if(Q(this,oe,Ye),this._dragging){me(oe);var it=re(this,oe,Ye,!1);it&&H(this,it)}},mouseup:function(oe){J(this,oe)}};function J(oe,pe){if(oe._dragging){me(pe);var Oe=pe.offsetX,Ye=pe.offsetY,it=oe.group.transformCoordToLocal(Oe,Ye),et=re(oe,pe,it,!0);oe._dragging=!1,oe._track=[],oe._creatingCover=null,et&&H(oe,et)}}function Ae(oe,pe,Oe){var Ye=oe._zr;return pe<0||pe>Ye.getWidth()||Oe<0||Oe>Ye.getHeight()}var he={lineX:Me(0),lineY:Me(1),rect:{createCover:function(oe,pe){return j(c(Ce,function(Oe){return Oe},function(Oe){return Oe}),oe,pe,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(oe){var pe=K(oe);return fe(pe[1][0],pe[1][1],pe[0][0],pe[0][1])},updateCoverShape:function(oe,pe,Oe,Ye){V(oe,pe,Oe,Ye)},updateCommon:z,contain:Je},polygon:{createCover:function(oe,pe){var Oe=new S.Group;return Oe.add(new S.Polyline({name:"main",style:ee(pe),silent:!0})),Oe},getCreatingRange:function(oe){return oe},endCreating:function(oe,pe){pe.remove(pe.childAt(0)),pe.add(new S.Polygon({name:"main",draggable:!0,drift:c(Le,oe,pe),ondragend:c(H,oe,{isEnd:!0})}))},updateCoverShape:function(oe,pe,Oe,Ye){pe.childAt(0).setShape({points:ce(oe,pe,Oe)})},updateCommon:z,contain:Je}};function Me(oe){return{createCover:function(pe,Oe){return j(c(Ce,function(Ye){var it=[Ye,[0,100]];return oe&&it.reverse(),it},function(Ye){return Ye[oe]}),pe,Oe,[["w","e"],["n","s"]][oe])},getCreatingRange:function(pe){var Oe=K(pe),Ye=a(Oe[0][oe],Oe[1][oe]),it=n(Oe[0][oe],Oe[1][oe]);return[Ye,it]},updateCoverShape:function(pe,Oe,Ye,it){var et,Te=B(pe,Oe);if(Te!==!0&&Te.getLinearBrushOtherExtent)et=Te.getLinearBrushOtherExtent(oe,pe._transform);else{var tt=pe._zr;et=[0,[tt.getWidth(),tt.getHeight()][1-oe]]}var ze=[Ye,et];oe&&ze.reverse(),V(pe,Oe,ze,it)},updateCommon:z,contain:Je}}var Ie=A;U.exports=Ie},"/MfK":function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="DeleteOutlined";var f=P.a=x.forwardRef(m)},"/POA":function(U,P,d){!function(O,x){if(!0)U.exports=x();else var T,v}(window,function(){return function(O){var x={};function T(v){if(x[v])return x[v].exports;var S=x[v]={i:v,l:!1,exports:{}};return O[v].call(S.exports,S,S.exports,T),S.l=!0,S.exports}return T.m=O,T.c=x,T.d=function(v,S,m){T.o(v,S)||Object.defineProperty(v,S,{enumerable:!0,get:m})},T.r=function(v){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},T.t=function(v,S){if(1&S&&(v=T(v)),8&S)return v;if(4&S&&typeof v=="object"&&v&&v.__esModule)return v;var m=Object.create(null);if(T.r(m),Object.defineProperty(m,"default",{enumerable:!0,value:v}),2&S&&typeof v!="string")for(var f in v)T.d(m,f,function(c){return v[c]}.bind(null,f));return m},T.n=function(v){var S=v&&v.__esModule?function(){return v.default}:function(){return v};return T.d(S,"a",S),S},T.o=function(v,S){return Object.prototype.hasOwnProperty.call(v,S)},T.p="",T(T.s=34)}([function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.forwardEvent=x.EventEmitter=void 0;var v=function(){function S(){this._listeners=[],this._disposed=!1}return Object.defineProperty(S.prototype,"event",{get:function(){var f=this;return this._event||(this._event=function(c){return f._listeners.push(c),{dispose:function(){if(!f._disposed){for(var r=0;r<f._listeners.length;r++)if(f._listeners[r]===c)return void f._listeners.splice(r,1)}}}}),this._event},enumerable:!1,configurable:!0}),S.prototype.fire=function(m,f){for(var c=[],o=0;o<this._listeners.length;o++)c.push(this._listeners[o]);for(o=0;o<c.length;o++)c[o].call(void 0,m,f)},S.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},S}();x.EventEmitter=v,x.forwardEvent=function(S,m){return S(function(f){return m.fire(f)})}},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.IUnicodeService=x.IOptionsService=x.ILogService=x.IInstantiationService=x.IDirtyRowService=x.ICharsetService=x.ICoreService=x.ICoreMouseService=x.IBufferService=void 0;var v=T(14);x.IBufferService=v.createDecorator("BufferService"),x.ICoreMouseService=v.createDecorator("CoreMouseService"),x.ICoreService=v.createDecorator("CoreService"),x.ICharsetService=v.createDecorator("CharsetService"),x.IDirtyRowService=v.createDecorator("DirtyRowService"),x.IInstantiationService=v.createDecorator("InstantiationService"),x.ILogService=v.createDecorator("LogService"),x.IOptionsService=v.createDecorator("OptionsService"),x.IUnicodeService=v.createDecorator("UnicodeService")},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.getDisposeArrayDisposable=x.disposeArray=x.Disposable=void 0;var v=function(){function m(){this._disposables=[],this._isDisposed=!1}return m.prototype.dispose=function(){this._isDisposed=!0;for(var f=0,c=this._disposables;f<c.length;f++)c[f].dispose();this._disposables.length=0},m.prototype.register=function(f){return this._disposables.push(f),f},m.prototype.unregister=function(f){var c=this._disposables.indexOf(f);c!==-1&&this._disposables.splice(c,1)},m}();function S(m){for(var f=0,c=m;f<c.length;f++)c[f].dispose();m.length=0}x.Disposable=v,x.disposeArray=S,x.getDisposeArrayDisposable=function(m){return{dispose:function(){return S(m)}}}},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.WHITESPACE_CELL_CODE=x.WHITESPACE_CELL_WIDTH=x.WHITESPACE_CELL_CHAR=x.NULL_CELL_CODE=x.NULL_CELL_WIDTH=x.NULL_CELL_CHAR=x.CHAR_DATA_CODE_INDEX=x.CHAR_DATA_WIDTH_INDEX=x.CHAR_DATA_CHAR_INDEX=x.CHAR_DATA_ATTR_INDEX=x.DEFAULT_ATTR=x.DEFAULT_COLOR=void 0,x.DEFAULT_COLOR=256,x.DEFAULT_ATTR=256|x.DEFAULT_COLOR<<9,x.CHAR_DATA_ATTR_INDEX=0,x.CHAR_DATA_CHAR_INDEX=1,x.CHAR_DATA_WIDTH_INDEX=2,x.CHAR_DATA_CODE_INDEX=3,x.NULL_CELL_CHAR="",x.NULL_CELL_WIDTH=1,x.NULL_CELL_CODE=0,x.WHITESPACE_CELL_CHAR=" ",x.WHITESPACE_CELL_WIDTH=1,x.WHITESPACE_CELL_CODE=32},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(a,n){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var t in s)s.hasOwnProperty(t)&&(e[t]=s[t])})(a,n)},function(r,a){function n(){this.constructor=r}v(r,a),r.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)});Object.defineProperty(x,"__esModule",{value:!0}),x.CellData=void 0;var m=T(8),f=T(3),c=T(6),o=function(r){function a(){var n=r!==null&&r.apply(this,arguments)||this;return n.content=0,n.fg=0,n.bg=0,n.extended=new c.ExtendedAttrs,n.combinedData="",n}return S(a,r),a.fromCharData=function(n){var e=new a;return e.setFromCharData(n),e},a.prototype.isCombined=function(){return 2097152&this.content},a.prototype.getWidth=function(){return this.content>>22},a.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?m.stringFromCodePoint(2097151&this.content):""},a.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},a.prototype.setFromCharData=function(n){this.fg=n[f.CHAR_DATA_ATTR_INDEX],this.bg=0;var e=!1;if(n[f.CHAR_DATA_CHAR_INDEX].length>2)e=!0;else if(n[f.CHAR_DATA_CHAR_INDEX].length===2){var s=n[f.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=s&&s<=56319){var t=n[f.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=t&&t<=57343?this.content=1024*(s-55296)+t-56320+65536|n[f.CHAR_DATA_WIDTH_INDEX]<<22:e=!0}else e=!0}else this.content=n[f.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|n[f.CHAR_DATA_WIDTH_INDEX]<<22;e&&(this.combinedData=n[f.CHAR_DATA_CHAR_INDEX],this.content=2097152|n[f.CHAR_DATA_WIDTH_INDEX]<<22)},a.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},a}(c.AttributeData);x.CellData=o},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.ISoundService=x.ISelectionService=x.IRenderService=x.IMouseService=x.ICoreBrowserService=x.ICharSizeService=void 0;var v=T(14);x.ICharSizeService=v.createDecorator("CharSizeService"),x.ICoreBrowserService=v.createDecorator("CoreBrowserService"),x.IMouseService=v.createDecorator("MouseService"),x.IRenderService=v.createDecorator("RenderService"),x.ISelectionService=v.createDecorator("SelectionService"),x.ISoundService=v.createDecorator("SoundService")},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.ExtendedAttrs=x.AttributeData=void 0;var v=function(){function m(){this.fg=0,this.bg=0,this.extended=new S}return m.toColorRGB=function(f){return[f>>>16&255,f>>>8&255,255&f]},m.fromColorRGB=function(f){return(255&f[0])<<16|(255&f[1])<<8|255&f[2]},m.prototype.clone=function(){var f=new m;return f.fg=this.fg,f.bg=this.bg,f.extended=this.extended.clone(),f},m.prototype.isInverse=function(){return 67108864&this.fg},m.prototype.isBold=function(){return 134217728&this.fg},m.prototype.isUnderline=function(){return 268435456&this.fg},m.prototype.isBlink=function(){return 536870912&this.fg},m.prototype.isInvisible=function(){return 1073741824&this.fg},m.prototype.isItalic=function(){return 67108864&this.bg},m.prototype.isDim=function(){return 134217728&this.bg},m.prototype.getFgColorMode=function(){return 50331648&this.fg},m.prototype.getBgColorMode=function(){return 50331648&this.bg},m.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},m.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},m.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},m.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},m.prototype.isFgDefault=function(){return(50331648&this.fg)==0},m.prototype.isBgDefault=function(){return(50331648&this.bg)==0},m.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},m.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},m.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},m.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},m.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},m.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},m.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},m.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},m.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},m.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},m.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},m}();x.AttributeData=v;var S=function(){function m(f,c){f===void 0&&(f=0),c===void 0&&(c=-1),this.underlineStyle=f,this.underlineColor=c}return m.prototype.clone=function(){return new m(this.underlineStyle,this.underlineColor)},m.prototype.isEmpty=function(){return this.underlineStyle===0},m}();x.ExtendedAttrs=S},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.addDisposableDomListener=void 0,x.addDisposableDomListener=function(v,S,m,f){v.addEventListener(S,m,f);var c=!1;return{dispose:function(){c||(c=!0,v.removeEventListener(S,m,f))}}}},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.Utf8ToUtf32=x.StringToUtf32=x.utf32ToString=x.stringFromCodePoint=void 0,x.stringFromCodePoint=function(m){return m>65535?(m-=65536,String.fromCharCode(55296+(m>>10))+String.fromCharCode(m%1024+56320)):String.fromCharCode(m)},x.utf32ToString=function(m,f,c){f===void 0&&(f=0),c===void 0&&(c=m.length);for(var o="",r=f;r<c;++r){var a=m[r];a>65535?(a-=65536,o+=String.fromCharCode(55296+(a>>10))+String.fromCharCode(a%1024+56320)):o+=String.fromCharCode(a)}return o};var v=function(){function m(){this._interim=0}return m.prototype.clear=function(){this._interim=0},m.prototype.decode=function(f,c){var o=f.length;if(!o)return 0;var r=0,a=0;this._interim&&(56320<=(s=f.charCodeAt(a++))&&s<=57343?c[r++]=1024*(this._interim-55296)+s-56320+65536:(c[r++]=this._interim,c[r++]=s),this._interim=0);for(var n=a;n<o;++n){var e=f.charCodeAt(n);if(55296<=e&&e<=56319){if(++n>=o)return this._interim=e,r;var s;56320<=(s=f.charCodeAt(n))&&s<=57343?c[r++]=1024*(e-55296)+s-56320+65536:(c[r++]=e,c[r++]=s)}else c[r++]=e}return r},m}();x.StringToUtf32=v;var S=function(){function m(){this.interim=new Uint8Array(3)}return m.prototype.clear=function(){this.interim.fill(0)},m.prototype.decode=function(f,c){var o=f.length;if(!o)return 0;var r,a,n,e,s=0,t=0,i=0;if(this.interim[0]){var l=!1,u=this.interim[0];u&=(224&u)==192?31:(240&u)==224?15:7;for(var h=0,p=void 0;(p=63&this.interim[++h])&&h<4;)u<<=6,u|=p;for(var g=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,A=g-h;i<A;){if(i>=o)return 0;if((192&(p=f[i++]))!=128){i--,l=!0;break}this.interim[h++]=p,u<<=6,u|=63&p}l||(g===2?u<128?i--:c[s++]=u:g===3?u<2048||u>=55296&&u<=57343||(c[s++]=u):u<65536||u>1114111||(c[s++]=u)),this.interim.fill(0)}for(var y=o-4,E=i;E<o;){for(;!(!(E<y)||128&(r=f[E])||128&(a=f[E+1])||128&(n=f[E+2])||128&(e=f[E+3]));)c[s++]=r,c[s++]=a,c[s++]=n,c[s++]=e,E+=4;if((r=f[E++])<128)c[s++]=r;else if((224&r)==192){if(E>=o)return this.interim[0]=r,s;if((192&(a=f[E++]))!=128){E--;continue}if((t=(31&r)<<6|63&a)<128){E--;continue}c[s++]=t}else if((240&r)==224){if(E>=o)return this.interim[0]=r,s;if((192&(a=f[E++]))!=128){E--;continue}if(E>=o)return this.interim[0]=r,this.interim[1]=a,s;if((192&(n=f[E++]))!=128){E--;continue}if((t=(15&r)<<12|(63&a)<<6|63&n)<2048||t>=55296&&t<=57343)continue;c[s++]=t}else if((248&r)==240){if(E>=o)return this.interim[0]=r,s;if((192&(a=f[E++]))!=128){E--;continue}if(E>=o)return this.interim[0]=r,this.interim[1]=a,s;if((192&(n=f[E++]))!=128){E--;continue}if(E>=o)return this.interim[0]=r,this.interim[1]=a,this.interim[2]=n,s;if((192&(e=f[E++]))!=128){E--;continue}if((t=(7&r)<<18|(63&a)<<12|(63&n)<<6|63&e)<65536||t>1114111)continue;c[s++]=t}}return s},m}();x.Utf8ToUtf32=S},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.CHAR_ATLAS_CELL_SPACING=x.DIM_OPACITY=x.INVERTED_DEFAULT_COLOR=void 0,x.INVERTED_DEFAULT_COLOR=257,x.DIM_OPACITY=.5,x.CHAR_ATLAS_CELL_SPACING=1},function(O,x,T){"use strict";var v,S,m,f;function c(r){var a=r.toString(16);return a.length<2?"0"+a:a}function o(r,a){return r<a?(a+.05)/(r+.05):(r+.05)/(a+.05)}Object.defineProperty(x,"__esModule",{value:!0}),x.contrastRatio=x.toPaddedHex=x.rgba=x.rgb=x.css=x.color=x.channels=void 0,function(r){r.toCss=function(a,n,e,s){return s!==void 0?"#"+c(a)+c(n)+c(e)+c(s):"#"+c(a)+c(n)+c(e)},r.toRgba=function(a,n,e,s){return s===void 0&&(s=255),(a<<24|n<<16|e<<8|s)>>>0}}(v=x.channels||(x.channels={})),(S=x.color||(x.color={})).blend=function(r,a){var n=(255&a.rgba)/255;if(n===1)return{css:a.css,rgba:a.rgba};var e=a.rgba>>24&255,s=a.rgba>>16&255,t=a.rgba>>8&255,i=r.rgba>>24&255,l=r.rgba>>16&255,u=r.rgba>>8&255,h=i+Math.round((e-i)*n),p=l+Math.round((s-l)*n),g=u+Math.round((t-u)*n);return{css:v.toCss(h,p,g),rgba:v.toRgba(h,p,g)}},S.isOpaque=function(r){return(255&r.rgba)==255},S.ensureContrastRatio=function(r,a,n){var e=f.ensureContrastRatio(r.rgba,a.rgba,n);if(e)return f.toColor(e>>24&255,e>>16&255,e>>8&255)},S.opaque=function(r){var a=(255|r.rgba)>>>0,n=f.toChannels(a),e=n[0],s=n[1],t=n[2];return{css:v.toCss(e,s,t),rgba:a}},S.opacity=function(r,a){var n=Math.round(255*a),e=f.toChannels(r.rgba),s=e[0],t=e[1],i=e[2];return{css:v.toCss(s,t,i,n),rgba:v.toRgba(s,t,i,n)}},(x.css||(x.css={})).toColor=function(r){switch(r.length){case 7:return{css:r,rgba:(parseInt(r.slice(1),16)<<8|255)>>>0};case 9:return{css:r,rgba:parseInt(r.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(r){function a(n,e,s){var t=n/255,i=e/255,l=s/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*(l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4))}r.relativeLuminance=function(n){return a(n>>16&255,n>>8&255,255&n)},r.relativeLuminance2=a}(m=x.rgb||(x.rgb={})),function(r){function a(e,s,t){for(var i=e>>24&255,l=e>>16&255,u=e>>8&255,h=s>>24&255,p=s>>16&255,g=s>>8&255,A=o(m.relativeLuminance2(h,g,p),m.relativeLuminance2(i,l,u));A<t&&(h>0||p>0||g>0);)h-=Math.max(0,Math.ceil(.1*h)),p-=Math.max(0,Math.ceil(.1*p)),g-=Math.max(0,Math.ceil(.1*g)),A=o(m.relativeLuminance2(h,g,p),m.relativeLuminance2(i,l,u));return(h<<24|p<<16|g<<8|255)>>>0}function n(e,s,t){for(var i=e>>24&255,l=e>>16&255,u=e>>8&255,h=s>>24&255,p=s>>16&255,g=s>>8&255,A=o(m.relativeLuminance2(h,g,p),m.relativeLuminance2(i,l,u));A<t&&(h<255||p<255||g<255);)h=Math.min(255,h+Math.ceil(.1*(255-h))),p=Math.min(255,p+Math.ceil(.1*(255-p))),g=Math.min(255,g+Math.ceil(.1*(255-g))),A=o(m.relativeLuminance2(h,g,p),m.relativeLuminance2(i,l,u));return(h<<24|p<<16|g<<8|255)>>>0}r.ensureContrastRatio=function(e,s,t){var i=m.relativeLuminance(e>>8),l=m.relativeLuminance(s>>8);if(o(i,l)<t)return l<i?a(e,s,t):n(e,s,t)},r.reduceLuminance=a,r.increaseLuminance=n,r.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},r.toColor=function(e,s,t){return{css:v.toCss(e,s,t),rgba:v.toRgba(e,s,t)}}}(f=x.rgba||(x.rgba={})),x.toPaddedHex=c,x.contrastRatio=o},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.isLinux=x.isWindows=x.isIphone=x.isIpad=x.isMac=x.isSafari=x.isFirefox=void 0;var v=typeof navigator=="undefined",S=v?"node":navigator.userAgent,m=v?"node":navigator.platform;function f(c,o){return c.indexOf(o)>=0}x.isFirefox=!!~S.indexOf("Firefox"),x.isSafari=/^((?!chrome|android).)*safari/i.test(S),x.isMac=f(["Macintosh","MacIntel","MacPPC","Mac68K"],m),x.isIpad=m==="iPad",x.isIphone=m==="iPhone",x.isWindows=f(["Windows","Win16","Win32","WinCE"],m),x.isLinux=m.indexOf("Linux")>=0},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.C1=x.C0=void 0,function(v){v.NUL="\0",v.SOH="",v.STX="",v.ETX="",v.EOT="",v.ENQ="",v.ACK="",v.BEL="\x07",v.BS="\b",v.HT=" ",v.LF=`
|
|
|
`,v.VT="\v",v.FF="\f",v.CR="\r",v.SO="",v.SI="",v.DLE="",v.DC1="",v.DC2="",v.DC3="",v.DC4="",v.NAK="",v.SYN="",v.ETB="",v.CAN="",v.EM="",v.SUB="",v.ESC="",v.FS="",v.GS="",v.RS="",v.US="",v.SP=" ",v.DEL="\x7F"}(x.C0||(x.C0={})),function(v){v.PAD="\x80",v.HOP="\x81",v.BPH="\x82",v.NBH="\x83",v.IND="\x84",v.NEL="\x85",v.SSA="\x86",v.ESA="\x87",v.HTS="\x88",v.HTJ="\x89",v.VTS="\x8A",v.PLD="\x8B",v.PLU="\x8C",v.RI="\x8D",v.SS2="\x8E",v.SS3="\x8F",v.DCS="\x90",v.PU1="\x91",v.PU2="\x92",v.STS="\x93",v.CCH="\x94",v.MW="\x95",v.SPA="\x96",v.EPA="\x97",v.SOS="\x98",v.SGCI="\x99",v.SCI="\x9A",v.CSI="\x9B",v.ST="\x9C",v.OSC="\x9D",v.PM="\x9E",v.APC="\x9F"}(x.C1||(x.C1={}))},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.BaseRenderLayer=void 0;var v=T(3),S=T(9),m=T(25),f=T(6),c=T(28),o=T(10),r=T(17),a=function(){function n(e,s,t,i,l,u,h,p){this._container=e,this._alpha=i,this._colors=l,this._rendererId=u,this._bufferService=h,this._optionsService=p,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+s+"-layer"),this._canvas.style.zIndex=t.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return n.prototype.dispose=function(){var e;r.removeElementFromParent(this._canvas),(e=this._charAtlas)===null||e===void 0||e.dispose()},n.prototype._initCanvas=function(){this._ctx=c.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},n.prototype.onOptionsChanged=function(){},n.prototype.onBlur=function(){},n.prototype.onFocus=function(){},n.prototype.onCursorMove=function(){},n.prototype.onGridChanged=function(e,s){},n.prototype.onSelectionChanged=function(e,s,t){t===void 0&&(t=!1)},n.prototype.setColors=function(e){this._refreshCharAtlas(e)},n.prototype._setTransparency=function(e){if(e!==this._alpha){var s=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,s),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},n.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=m.acquireCharAtlas(this._optionsService.options,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},n.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},n.prototype._fillCells=function(e,s,t,i){this._ctx.fillRect(e*this._scaledCellWidth,s*this._scaledCellHeight,t*this._scaledCellWidth,i*this._scaledCellHeight)},n.prototype._fillBottomLineAtCells=function(e,s,t){t===void 0&&(t=1),this._ctx.fillRect(e*this._scaledCellWidth,(s+1)*this._scaledCellHeight-window.devicePixelRatio-1,t*this._scaledCellWidth,window.devicePixelRatio)},n.prototype._fillLeftLineAtCell=function(e,s,t){this._ctx.fillRect(e*this._scaledCellWidth,s*this._scaledCellHeight,window.devicePixelRatio*t,this._scaledCellHeight)},n.prototype._strokeRectAtCell=function(e,s,t,i){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,s*this._scaledCellHeight+window.devicePixelRatio/2,t*this._scaledCellWidth-window.devicePixelRatio,i*this._scaledCellHeight-window.devicePixelRatio)},n.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},n.prototype._clearCells=function(e,s,t,i){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,s*this._scaledCellHeight,t*this._scaledCellWidth,i*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,s*this._scaledCellHeight,t*this._scaledCellWidth,i*this._scaledCellHeight))},n.prototype._fillCharTrueColor=function(e,s,t){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(t),this._ctx.fillText(e.getChars(),s*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},n.prototype._drawChars=function(e,s,t){var i,l,u=this._getContrastColor(e);u||e.isFgRGB()||e.isBgRGB()?this._drawUncachedChars(e,s,t,u):(e.isInverse()?(i=e.isBgDefault()?S.INVERTED_DEFAULT_COLOR:e.getBgColor(),l=e.isFgDefault()?S.INVERTED_DEFAULT_COLOR:e.getFgColor()):(l=e.isBgDefault()?v.DEFAULT_COLOR:e.getBgColor(),i=e.isFgDefault()?v.DEFAULT_COLOR:e.getFgColor()),i+=this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&i<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||v.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||v.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=l,this._currentGlyphIdentifier.fg=i,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,s*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(e,s,t))},n.prototype._drawUncachedChars=function(e,s,t,i){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline="middle",e.isInverse())if(i)this._ctx.fillStyle=i.css;else if(e.isBgDefault())this._ctx.fillStyle=o.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+f.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var l=e.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&l<8&&(l+=8),this._ctx.fillStyle=this._colors.ansi[l].css}else if(i)this._ctx.fillStyle=i.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+f.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var u=e.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&u<8&&(u+=8),this._ctx.fillStyle=this._colors.ansi[u].css}this._clipRow(t),e.isDim()&&(this._ctx.globalAlpha=S.DIM_OPACITY),this._ctx.fillText(e.getChars(),s*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},n.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},n.prototype._getFont=function(e,s){return(s?"italic":"")+" "+(e?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},n.prototype._getContrastColor=function(e){if(this._optionsService.options.minimumContrastRatio!==1){var s=this._colors.contrastCache.getColor(e.bg,e.fg);if(s!==void 0)return s||void 0;var t=e.getFgColor(),i=e.getFgColorMode(),l=e.getBgColor(),u=e.getBgColorMode(),h=!!e.isInverse(),p=!!e.isInverse();if(h){var g=t;t=l,l=g;var A=i;i=u,u=A}var y=this._resolveBackgroundRgba(u,l,h),E=this._resolveForegroundRgba(i,t,h,p),C=o.rgba.ensureContrastRatio(y,E,this._optionsService.options.minimumContrastRatio);if(C){var w={css:o.channels.toCss(C>>24&255,C>>16&255,C>>8&255),rgba:C};return this._colors.contrastCache.setColor(e.bg,e.fg,w),w}this._colors.contrastCache.setColor(e.bg,e.fg,null)}},n.prototype._resolveBackgroundRgba=function(e,s,t){switch(e){case 16777216:case 33554432:return this._colors.ansi[s].rgba;case 50331648:return s<<8;case 0:default:return t?this._colors.foreground.rgba:this._colors.background.rgba}},n.prototype._resolveForegroundRgba=function(e,s,t,i){switch(e){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&i&&s<8&&(s+=8),this._colors.ansi[s].rgba;case 50331648:return s<<8;case 0:default:return t?this._colors.background.rgba:this._colors.foreground.rgba}},n}();x.BaseRenderLayer=a},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.createDecorator=x.getServiceDependencies=x.serviceRegistry=void 0;function v(S,m,f){m.di$target===m?m.di$dependencies.push({id:S,index:f}):(m.di$dependencies=[{id:S,index:f}],m.di$target=m)}x.serviceRegistry=new Map,x.getServiceDependencies=function(S){return S.di$dependencies||[]},x.createDecorator=function(S){if(x.serviceRegistry.has(S))return x.serviceRegistry.get(S);var m=function f(c,o,r){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");v(f,c,r)};return m.toString=function(){return S},x.serviceRegistry.set(S,m),m}},function(O,x,T){"use strict";function v(S,m,f,c){if(f===void 0&&(f=0),c===void 0&&(c=S.length),f>=S.length)return S;f=(S.length+f)%S.length,c=c>=S.length?S.length:(S.length+c)%S.length;for(var o=f;o<c;++o)S[o]=m;return S}Object.defineProperty(x,"__esModule",{value:!0}),x.concat=x.fillFallback=x.fill=void 0,x.fill=function(S,m,f,c){return S.fill?S.fill(m,f,c):v(S,m,f,c)},x.fillFallback=v,x.concat=function(S,m){var f=new S.constructor(S.length+m.length);return f.set(S),f.set(m,S.length),f}},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.BufferLine=x.DEFAULT_ATTR_DATA=void 0;var v=T(8),S=T(3),m=T(4),f=T(6);x.DEFAULT_ATTR_DATA=Object.freeze(new f.AttributeData);var c=function(){function o(r,a,n){n===void 0&&(n=!1),this.isWrapped=n,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*r);for(var e=a||m.CellData.fromCharData([0,S.NULL_CELL_CHAR,S.NULL_CELL_WIDTH,S.NULL_CELL_CODE]),s=0;s<r;++s)this.setCell(s,e);this.length=r}return o.prototype.get=function(r){var a=this._data[3*r+0],n=2097151&a;return[this._data[3*r+1],2097152&a?this._combined[r]:n?v.stringFromCodePoint(n):"",a>>22,2097152&a?this._combined[r].charCodeAt(this._combined[r].length-1):n]},o.prototype.set=function(r,a){this._data[3*r+1]=a[S.CHAR_DATA_ATTR_INDEX],a[S.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[r]=a[1],this._data[3*r+0]=2097152|r|a[S.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*r+0]=a[S.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|a[S.CHAR_DATA_WIDTH_INDEX]<<22},o.prototype.getWidth=function(r){return this._data[3*r+0]>>22},o.prototype.hasWidth=function(r){return 12582912&this._data[3*r+0]},o.prototype.getFg=function(r){return this._data[3*r+1]},o.prototype.getBg=function(r){return this._data[3*r+2]},o.prototype.hasContent=function(r){return 4194303&this._data[3*r+0]},o.prototype.getCodePoint=function(r){var a=this._data[3*r+0];return 2097152&a?this._combined[r].charCodeAt(this._combined[r].length-1):2097151&a},o.prototype.isCombined=function(r){return 2097152&this._data[3*r+0]},o.prototype.getString=function(r){var a=this._data[3*r+0];return 2097152&a?this._combined[r]:2097151&a?v.stringFromCodePoint(2097151&a):""},o.prototype.loadCell=function(r,a){var n=3*r;return a.content=this._data[n+0],a.fg=this._data[n+1],a.bg=this._data[n+2],2097152&a.content&&(a.combinedData=this._combined[r]),268435456&a.bg&&(a.extended=this._extendedAttrs[r]),a},o.prototype.setCell=function(r,a){2097152&a.content&&(this._combined[r]=a.combinedData),268435456&a.bg&&(this._extendedAttrs[r]=a.extended),this._data[3*r+0]=a.content,this._data[3*r+1]=a.fg,this._data[3*r+2]=a.bg},o.prototype.setCellFromCodePoint=function(r,a,n,e,s,t){268435456&s&&(this._extendedAttrs[r]=t),this._data[3*r+0]=a|n<<22,this._data[3*r+1]=e,this._data[3*r+2]=s},o.prototype.addCodepointToCell=function(r,a){var n=this._data[3*r+0];2097152&n?this._combined[r]+=v.stringFromCodePoint(a):(2097151&n?(this._combined[r]=v.stringFromCodePoint(2097151&n)+v.stringFromCodePoint(a),n&=-2097152,n|=2097152):n=a|1<<22,this._data[3*r+0]=n)},o.prototype.insertCells=function(r,a,n,e){if((r%=this.length)&&this.getWidth(r-1)===2&&this.setCellFromCodePoint(r-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new f.ExtendedAttrs),a<this.length-r){for(var s=new m.CellData,t=this.length-r-a-1;t>=0;--t)this.setCell(r+a+t,this.loadCell(r+t,s));for(t=0;t<a;++t)this.setCell(r+t,n)}else for(t=r;t<this.length;++t)this.setCell(t,n);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new f.ExtendedAttrs)},o.prototype.deleteCells=function(r,a,n,e){if(r%=this.length,a<this.length-r){for(var s=new m.CellData,t=0;t<this.length-r-a;++t)this.setCell(r+t,this.loadCell(r+a+t,s));for(t=this.length-a;t<this.length;++t)this.setCell(t,n)}else for(t=r;t<this.length;++t)this.setCell(t,n);r&&this.getWidth(r-1)===2&&this.setCellFromCodePoint(r-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new f.ExtendedAttrs),this.getWidth(r)!==0||this.hasContent(r)||this.setCellFromCodePoint(r,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new f.ExtendedAttrs)},o.prototype.replaceCells=function(r,a,n,e){for(r&&this.getWidth(r-1)===2&&this.setCellFromCodePoint(r-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new f.ExtendedAttrs),a<this.length&&this.getWidth(a-1)===2&&this.setCellFromCodePoint(a,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new f.ExtendedAttrs);r<a&&r<this.length;)this.setCell(r++,n)},o.prototype.resize=function(r,a){if(r!==this.length){if(r>this.length){var n=new Uint32Array(3*r);this.length&&(3*r<this._data.length?n.set(this._data.subarray(0,3*r)):n.set(this._data)),this._data=n;for(var e=this.length;e<r;++e)this.setCell(e,a)}else if(r){(n=new Uint32Array(3*r)).set(this._data.subarray(0,3*r)),this._data=n;var s=Object.keys(this._combined);for(e=0;e<s.length;e++){var t=parseInt(s[e],10);t>=r&&delete this._combined[t]}}else this._data=new Uint32Array(0),this._combined={};this.length=r}},o.prototype.fill=function(r){this._combined={},this._extendedAttrs={};for(var a=0;a<this.length;++a)this.setCell(a,r)},o.prototype.copyFrom=function(r){for(var a in this.length!==r.length?this._data=new Uint32Array(r._data):this._data.set(r._data),this.length=r.length,this._combined={},r._combined)this._combined[a]=r._combined[a];for(var a in this._extendedAttrs={},r._extendedAttrs)this._extendedAttrs[a]=r._extendedAttrs[a];this.isWrapped=r.isWrapped},o.prototype.clone=function(){var r=new o(0);for(var a in r._data=new Uint32Array(this._data),r.length=this.length,this._combined)r._combined[a]=this._combined[a];for(var a in this._extendedAttrs)r._extendedAttrs[a]=this._extendedAttrs[a];return r.isWrapped=this.isWrapped,r},o.prototype.getTrimmedLength=function(){for(var r=this.length-1;r>=0;--r)if(4194303&this._data[3*r+0])return r+(this._data[3*r+0]>>22);return 0},o.prototype.copyCellsFrom=function(r,a,n,e,s){var t=r._data;if(s)for(var i=e-1;i>=0;i--)for(var l=0;l<3;l++)this._data[3*(n+i)+l]=t[3*(a+i)+l];else for(i=0;i<e;i++)for(l=0;l<3;l++)this._data[3*(n+i)+l]=t[3*(a+i)+l];var u=Object.keys(r._combined);for(l=0;l<u.length;l++){var h=parseInt(u[l],10);h>=a&&(this._combined[h-a+n]=r._combined[h])}},o.prototype.translateToString=function(r,a,n){r===void 0&&(r=!1),a===void 0&&(a=0),n===void 0&&(n=this.length),r&&(n=Math.min(n,this.getTrimmedLength()));for(var e="";a<n;){var s=this._data[3*a+0],t=2097151&s;e+=2097152&s?this._combined[a]:t?v.stringFromCodePoint(t):S.WHITESPACE_CELL_CHAR,a+=s>>22||1}return e},o}();x.BufferLine=c},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.removeElementFromParent=void 0,x.removeElementFromParent=function(){for(var v,S=[],m=0;m<arguments.length;m++)S[m]=arguments[m];for(var f=0,c=S;f<c.length;f++){var o=c[f];(v=o==null?void 0:o.parentElement)===null||v===void 0||v.removeChild(o)}}},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.tooMuchOutput=x.promptLabel=void 0,x.promptLabel="Terminal input",x.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(C,w){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,I){b.__proto__=I}||function(b,I){for(var _ in I)I.hasOwnProperty(_)&&(b[_]=I[_])})(C,w)},function(E,C){function w(){this.constructor=E}v(E,C),E.prototype=C===null?Object.create(C):(w.prototype=C.prototype,new w)});Object.defineProperty(x,"__esModule",{value:!0}),x.InputHandler=x.WindowsOptionsReportType=void 0;var m,f=T(12),c=T(20),o=T(39),r=T(2),a=T(15),n=T(8),e=T(16),s=T(0),t=T(3),i=T(4),l=T(6),u=T(22),h=T(24),p={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function g(E,C){if(E>24)return C.setWinLines||!1;switch(E){case 1:return!!C.restoreWin;case 2:return!!C.minimizeWin;case 3:return!!C.setWinPosition;case 4:return!!C.setWinSizePixels;case 5:return!!C.raiseWin;case 6:return!!C.lowerWin;case 7:return!!C.refreshWin;case 8:return!!C.setWinSizeChars;case 9:return!!C.maximizeWin;case 10:return!!C.fullscreenWin;case 11:return!!C.getWinState;case 13:return!!C.getWinPosition;case 14:return!!C.getWinSizePixels;case 15:return!!C.getScreenSizePixels;case 16:return!!C.getCellSizePixels;case 18:return!!C.getWinSizeChars;case 19:return!!C.getScreenSizeChars;case 20:return!!C.getIconTitle;case 21:return!!C.getWinTitle;case 22:return!!C.pushTitle;case 23:return!!C.popTitle;case 24:return!!C.setWinLines}return!1}!function(E){E[E.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",E[E.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(m=x.WindowsOptionsReportType||(x.WindowsOptionsReportType={}));var A=function(){function E(C,w,b,I){this._bufferService=C,this._coreService=w,this._logService=b,this._optionsService=I,this._data=new Uint32Array(0)}return E.prototype.hook=function(C){this._data=new Uint32Array(0)},E.prototype.put=function(C,w,b){this._data=a.concat(this._data,C.subarray(w,b))},E.prototype.unhook=function(C){if(C){var w=n.utf32ToString(this._data);switch(this._data=new Uint32Array(0),w){case'"q':return this._coreService.triggerDataEvent(f.C0.ESC+'P1$r0"q'+f.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(f.C0.ESC+'P1$r61;1"p'+f.C0.ESC+"\\");case"r":var b=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(f.C0.ESC+"P1$r"+b+f.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(f.C0.ESC+"P1$r0m"+f.C0.ESC+"\\");case" q":var I={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return I-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(f.C0.ESC+"P1$r"+I+" q"+f.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",w),this._coreService.triggerDataEvent(f.C0.ESC+"P0$r"+f.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},E}(),y=function(E){function C(w,b,I,_,L,D,N,R,B){B===void 0&&(B=new o.EscapeSequenceParser);var M=E.call(this)||this;M._bufferService=w,M._charsetService=b,M._coreService=I,M._dirtyRowService=_,M._logService=L,M._optionsService=D,M._coreMouseService=N,M._unicodeService=R,M._parser=B,M._parseBuffer=new Uint32Array(4096),M._stringDecoder=new n.StringToUtf32,M._utf8Decoder=new n.Utf8ToUtf32,M._workCell=new i.CellData,M._windowTitle="",M._iconName="",M._windowTitleStack=[],M._iconNameStack=[],M._curAttrData=e.DEFAULT_ATTR_DATA.clone(),M._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone(),M._onRequestBell=new s.EventEmitter,M._onRequestRefreshRows=new s.EventEmitter,M._onRequestReset=new s.EventEmitter,M._onRequestScroll=new s.EventEmitter,M._onRequestSyncScrollBar=new s.EventEmitter,M._onRequestWindowsOptionsReport=new s.EventEmitter,M._onA11yChar=new s.EventEmitter,M._onA11yTab=new s.EventEmitter,M._onCursorMove=new s.EventEmitter,M._onLineFeed=new s.EventEmitter,M._onScroll=new s.EventEmitter,M._onTitleChange=new s.EventEmitter,M.register(M._parser),M._parser.setCsiHandlerFallback(function(j,V){M._logService.debug("Unknown CSI code: ",{identifier:M._parser.identToString(j),params:V.toArray()})}),M._parser.setEscHandlerFallback(function(j){M._logService.debug("Unknown ESC code: ",{identifier:M._parser.identToString(j)})}),M._parser.setExecuteHandlerFallback(function(j){M._logService.debug("Unknown EXECUTE code: ",{code:j})}),M._parser.setOscHandlerFallback(function(j,V,z){M._logService.debug("Unknown OSC code: ",{identifier:j,action:V,data:z})}),M._parser.setDcsHandlerFallback(function(j,V,z){V==="HOOK"&&(z=z.toArray()),M._logService.debug("Unknown DCS code: ",{identifier:M._parser.identToString(j),action:V,payload:z})}),M._parser.setPrintHandler(function(j,V,z){return M.print(j,V,z)}),M._parser.setCsiHandler({final:"@"},function(j){return M.insertChars(j)}),M._parser.setCsiHandler({intermediates:" ",final:"@"},function(j){return M.scrollLeft(j)}),M._parser.setCsiHandler({final:"A"},function(j){return M.cursorUp(j)}),M._parser.setCsiHandler({intermediates:" ",final:"A"},function(j){return M.scrollRight(j)}),M._parser.setCsiHandler({final:"B"},function(j){return M.cursorDown(j)}),M._parser.setCsiHandler({final:"C"},function(j){return M.cursorForward(j)}),M._parser.setCsiHandler({final:"D"},function(j){return M.cursorBackward(j)}),M._parser.setCsiHandler({final:"E"},function(j){return M.cursorNextLine(j)}),M._parser.setCsiHandler({final:"F"},function(j){return M.cursorPrecedingLine(j)}),M._parser.setCsiHandler({final:"G"},function(j){return M.cursorCharAbsolute(j)}),M._parser.setCsiHandler({final:"H"},function(j){return M.cursorPosition(j)}),M._parser.setCsiHandler({final:"I"},function(j){return M.cursorForwardTab(j)}),M._parser.setCsiHandler({final:"J"},function(j){return M.eraseInDisplay(j)}),M._parser.setCsiHandler({prefix:"?",final:"J"},function(j){return M.eraseInDisplay(j)}),M._parser.setCsiHandler({final:"K"},function(j){return M.eraseInLine(j)}),M._parser.setCsiHandler({prefix:"?",final:"K"},function(j){return M.eraseInLine(j)}),M._parser.setCsiHandler({final:"L"},function(j){return M.insertLines(j)}),M._parser.setCsiHandler({final:"M"},function(j){return M.deleteLines(j)}),M._parser.setCsiHandler({final:"P"},function(j){return M.deleteChars(j)}),M._parser.setCsiHandler({final:"S"},function(j){return M.scrollUp(j)}),M._parser.setCsiHandler({final:"T"},function(j){return M.scrollDown(j)}),M._parser.setCsiHandler({final:"X"},function(j){return M.eraseChars(j)}),M._parser.setCsiHandler({final:"Z"},function(j){return M.cursorBackwardTab(j)}),M._parser.setCsiHandler({final:"`"},function(j){return M.charPosAbsolute(j)}),M._parser.setCsiHandler({final:"a"},function(j){return M.hPositionRelative(j)}),M._parser.setCsiHandler({final:"b"},function(j){return M.repeatPrecedingCharacter(j)}),M._parser.setCsiHandler({final:"c"},function(j){return M.sendDeviceAttributesPrimary(j)}),M._parser.setCsiHandler({prefix:">",final:"c"},function(j){return M.sendDeviceAttributesSecondary(j)}),M._parser.setCsiHandler({final:"d"},function(j){return M.linePosAbsolute(j)}),M._parser.setCsiHandler({final:"e"},function(j){return M.vPositionRelative(j)}),M._parser.setCsiHandler({final:"f"},function(j){return M.hVPosition(j)}),M._parser.setCsiHandler({final:"g"},function(j){return M.tabClear(j)}),M._parser.setCsiHandler({final:"h"},function(j){return M.setMode(j)}),M._parser.setCsiHandler({prefix:"?",final:"h"},function(j){return M.setModePrivate(j)}),M._parser.setCsiHandler({final:"l"},function(j){return M.resetMode(j)}),M._parser.setCsiHandler({prefix:"?",final:"l"},function(j){return M.resetModePrivate(j)}),M._parser.setCsiHandler({final:"m"},function(j){return M.charAttributes(j)}),M._parser.setCsiHandler({final:"n"},function(j){return M.deviceStatus(j)}),M._parser.setCsiHandler({prefix:"?",final:"n"},function(j){return M.deviceStatusPrivate(j)}),M._parser.setCsiHandler({intermediates:"!",final:"p"},function(j){return M.softReset(j)}),M._parser.setCsiHandler({intermediates:" ",final:"q"},function(j){return M.setCursorStyle(j)}),M._parser.setCsiHandler({final:"r"},function(j){return M.setScrollRegion(j)}),M._parser.setCsiHandler({final:"s"},function(j){return M.saveCursor(j)}),M._parser.setCsiHandler({final:"t"},function(j){return M.windowOptions(j)}),M._parser.setCsiHandler({final:"u"},function(j){return M.restoreCursor(j)}),M._parser.setCsiHandler({intermediates:"'",final:"}"},function(j){return M.insertColumns(j)}),M._parser.setCsiHandler({intermediates:"'",final:"~"},function(j){return M.deleteColumns(j)}),M._parser.setExecuteHandler(f.C0.BEL,function(){return M.bell()}),M._parser.setExecuteHandler(f.C0.LF,function(){return M.lineFeed()}),M._parser.setExecuteHandler(f.C0.VT,function(){return M.lineFeed()}),M._parser.setExecuteHandler(f.C0.FF,function(){return M.lineFeed()}),M._parser.setExecuteHandler(f.C0.CR,function(){return M.carriageReturn()}),M._parser.setExecuteHandler(f.C0.BS,function(){return M.backspace()}),M._parser.setExecuteHandler(f.C0.HT,function(){return M.tab()}),M._parser.setExecuteHandler(f.C0.SO,function(){return M.shiftOut()}),M._parser.setExecuteHandler(f.C0.SI,function(){return M.shiftIn()}),M._parser.setExecuteHandler(f.C1.IND,function(){return M.index()}),M._parser.setExecuteHandler(f.C1.NEL,function(){return M.nextLine()}),M._parser.setExecuteHandler(f.C1.HTS,function(){return M.tabSet()}),M._parser.setOscHandler(0,new u.OscHandler(function(j){M.setTitle(j),M.setIconName(j)})),M._parser.setOscHandler(1,new u.OscHandler(function(j){return M.setIconName(j)})),M._parser.setOscHandler(2,new u.OscHandler(function(j){return M.setTitle(j)})),M._parser.setEscHandler({final:"7"},function(){return M.saveCursor()}),M._parser.setEscHandler({final:"8"},function(){return M.restoreCursor()}),M._parser.setEscHandler({final:"D"},function(){return M.index()}),M._parser.setEscHandler({final:"E"},function(){return M.nextLine()}),M._parser.setEscHandler({final:"H"},function(){return M.tabSet()}),M._parser.setEscHandler({final:"M"},function(){return M.reverseIndex()}),M._parser.setEscHandler({final:"="},function(){return M.keypadApplicationMode()}),M._parser.setEscHandler({final:">"},function(){return M.keypadNumericMode()}),M._parser.setEscHandler({final:"c"},function(){return M.fullReset()}),M._parser.setEscHandler({final:"n"},function(){return M.setgLevel(2)}),M._parser.setEscHandler({final:"o"},function(){return M.setgLevel(3)}),M._parser.setEscHandler({final:"|"},function(){return M.setgLevel(3)}),M._parser.setEscHandler({final:"}"},function(){return M.setgLevel(2)}),M._parser.setEscHandler({final:"~"},function(){return M.setgLevel(1)}),M._parser.setEscHandler({intermediates:"%",final:"@"},function(){return M.selectDefaultCharset()}),M._parser.setEscHandler({intermediates:"%",final:"G"},function(){return M.selectDefaultCharset()});var H=function(V){F._parser.setEscHandler({intermediates:"(",final:V},function(){return M.selectCharset("("+V)}),F._parser.setEscHandler({intermediates:")",final:V},function(){return M.selectCharset(")"+V)}),F._parser.setEscHandler({intermediates:"*",final:V},function(){return M.selectCharset("*"+V)}),F._parser.setEscHandler({intermediates:"+",final:V},function(){return M.selectCharset("+"+V)}),F._parser.setEscHandler({intermediates:"-",final:V},function(){return M.selectCharset("-"+V)}),F._parser.setEscHandler({intermediates:".",final:V},function(){return M.selectCharset("."+V)}),F._parser.setEscHandler({intermediates:"/",final:V},function(){return M.selectCharset("/"+V)})},F=this;for(var K in c.CHARSETS)H(K);return M._parser.setEscHandler({intermediates:"#",final:"8"},function(){return M.screenAlignmentPattern()}),M._parser.setErrorHandler(function(j){return M._logService.error("Parsing error: ",j),j}),M._parser.setDcsHandler({intermediates:"$",final:"q"},new A(M._bufferService,M._coreService,M._logService,M._optionsService)),M}return S(C,E),Object.defineProperty(C.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),C.prototype.dispose=function(){E.prototype.dispose.call(this)},C.prototype.parse=function(w){var b=this._bufferService.buffer,I=b.x,_=b.y;if(this._logService.debug("parsing data",w),this._parseBuffer.length<w.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(w.length,131072))),this._dirtyRowService.clearRange(),w.length>131072)for(var L=0;L<w.length;L+=131072){var D=L+131072<w.length?L+131072:w.length,N=typeof w=="string"?this._stringDecoder.decode(w.substring(L,D),this._parseBuffer):this._utf8Decoder.decode(w.subarray(L,D),this._parseBuffer);this._parser.parse(this._parseBuffer,N)}else N=typeof w=="string"?this._stringDecoder.decode(w,this._parseBuffer):this._utf8Decoder.decode(w,this._parseBuffer),this._parser.parse(this._parseBuffer,N);(b=this._bufferService.buffer).x===I&&b.y===_||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},C.prototype.print=function(w,b,I){var _,L,D=this._bufferService.buffer,N=this._charsetService.charset,R=this._optionsService.options.screenReaderMode,B=this._bufferService.cols,M=this._coreService.decPrivateModes.wraparound,H=this._coreService.modes.insertMode,F=this._curAttrData,K=D.lines.get(D.ybase+D.y);this._dirtyRowService.markDirty(D.y),D.x&&I-b>0&&K.getWidth(D.x-1)===2&&K.setCellFromCodePoint(D.x-1,0,1,F.fg,F.bg,F.extended);for(var j=b;j<I;++j){if(_=w[j],L=this._unicodeService.wcwidth(_),_<127&&N){var V=N[String.fromCharCode(_)];V&&(_=V.charCodeAt(0))}if(R&&this._onA11yChar.fire(n.stringFromCodePoint(_)),L||!D.x){if(D.x+L-1>=B){if(M){for(;D.x<B;)K.setCellFromCodePoint(D.x++,0,1,F.fg,F.bg,F.extended);D.x=0,D.y++,D.y===D.scrollBottom+1?(D.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(D.y>=this._bufferService.rows&&(D.y=this._bufferService.rows-1),D.lines.get(D.ybase+D.y).isWrapped=!0),K=D.lines.get(D.ybase+D.y)}else if(D.x=B-1,L===2)continue}if(H&&(K.insertCells(D.x,L,D.getNullCell(F),F),K.getWidth(B-1)===2&&K.setCellFromCodePoint(B-1,t.NULL_CELL_CODE,t.NULL_CELL_WIDTH,F.fg,F.bg,F.extended)),K.setCellFromCodePoint(D.x++,_,L,F.fg,F.bg,F.extended),L>0)for(;--L;)K.setCellFromCodePoint(D.x++,0,0,F.fg,F.bg,F.extended)}else K.getWidth(D.x-1)?K.addCodepointToCell(D.x-1,_):K.addCodepointToCell(D.x-2,_)}I-b>0&&(K.loadCell(D.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),D.x<B&&I-b>0&&K.getWidth(D.x)===0&&!K.hasContent(D.x)&&K.setCellFromCodePoint(D.x,0,1,F.fg,F.bg,F.extended),this._dirtyRowService.markDirty(D.y)},C.prototype.addCsiHandler=function(w,b){var I=this;return w.final!=="t"||w.prefix||w.intermediates?this._parser.addCsiHandler(w,b):this._parser.addCsiHandler(w,function(_){return!g(_.params[0],I._optionsService.options.windowOptions)||b(_)})},C.prototype.addDcsHandler=function(w,b){return this._parser.addDcsHandler(w,new h.DcsHandler(b))},C.prototype.addEscHandler=function(w,b){return this._parser.addEscHandler(w,b)},C.prototype.addOscHandler=function(w,b){return this._parser.addOscHandler(w,new u.OscHandler(b))},C.prototype.bell=function(){this._onRequestBell.fire()},C.prototype.lineFeed=function(){var w=this._bufferService.buffer;this._dirtyRowService.markDirty(w.y),this._optionsService.options.convertEol&&(w.x=0),w.y++,w.y===w.scrollBottom+1?(w.y--,this._onRequestScroll.fire(this._eraseAttrData())):w.y>=this._bufferService.rows&&(w.y=this._bufferService.rows-1),w.x>=this._bufferService.cols&&w.x--,this._dirtyRowService.markDirty(w.y),this._onLineFeed.fire()},C.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},C.prototype.backspace=function(){var w,b=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(b.x>0&&b.x--);if(this._restrictCursor(this._bufferService.cols),b.x>0)b.x--;else if(b.x===0&&b.y>b.scrollTop&&b.y<=b.scrollBottom&&((w=b.lines.get(b.ybase+b.y))===null||w===void 0?void 0:w.isWrapped)){b.lines.get(b.ybase+b.y).isWrapped=!1,b.y--,b.x=this._bufferService.cols-1;var I=b.lines.get(b.ybase+b.y);I.hasWidth(b.x)&&!I.hasContent(b.x)&&b.x--}this._restrictCursor()},C.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var w=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-w)}},C.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},C.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},C.prototype._restrictCursor=function(w){w===void 0&&(w=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(w,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},C.prototype._setCursor=function(w,b){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=w,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+b):(this._bufferService.buffer.x=w,this._bufferService.buffer.y=b),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},C.prototype._moveCursor=function(w,b){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+w,this._bufferService.buffer.y+b)},C.prototype.cursorUp=function(w){var b=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;b>=0?this._moveCursor(0,-Math.min(b,w.params[0]||1)):this._moveCursor(0,-(w.params[0]||1))},C.prototype.cursorDown=function(w){var b=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;b>=0?this._moveCursor(0,Math.min(b,w.params[0]||1)):this._moveCursor(0,w.params[0]||1)},C.prototype.cursorForward=function(w){this._moveCursor(w.params[0]||1,0)},C.prototype.cursorBackward=function(w){this._moveCursor(-(w.params[0]||1),0)},C.prototype.cursorNextLine=function(w){this.cursorDown(w),this._bufferService.buffer.x=0},C.prototype.cursorPrecedingLine=function(w){this.cursorUp(w),this._bufferService.buffer.x=0},C.prototype.cursorCharAbsolute=function(w){this._setCursor((w.params[0]||1)-1,this._bufferService.buffer.y)},C.prototype.cursorPosition=function(w){this._setCursor(w.length>=2?(w.params[1]||1)-1:0,(w.params[0]||1)-1)},C.prototype.charPosAbsolute=function(w){this._setCursor((w.params[0]||1)-1,this._bufferService.buffer.y)},C.prototype.hPositionRelative=function(w){this._moveCursor(w.params[0]||1,0)},C.prototype.linePosAbsolute=function(w){this._setCursor(this._bufferService.buffer.x,(w.params[0]||1)-1)},C.prototype.vPositionRelative=function(w){this._moveCursor(0,w.params[0]||1)},C.prototype.hVPosition=function(w){this.cursorPosition(w)},C.prototype.tabClear=function(w){var b=w.params[0];b===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:b===3&&(this._bufferService.buffer.tabs={})},C.prototype.cursorForwardTab=function(w){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var b=w.params[0]||1;b--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},C.prototype.cursorBackwardTab=function(w){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var b=w.params[0]||1,I=this._bufferService.buffer;b--;)I.x=I.prevStop()},C.prototype._eraseInBufferLine=function(w,b,I,_){_===void 0&&(_=!1);var L=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+w);L.replaceCells(b,I,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),_&&(L.isWrapped=!1)},C.prototype._resetBufferLine=function(w){var b=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+w);b.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),b.isWrapped=!1},C.prototype.eraseInDisplay=function(w){var b;switch(this._restrictCursor(),w.params[0]){case 0:for(b=this._bufferService.buffer.y,this._dirtyRowService.markDirty(b),this._eraseInBufferLine(b++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);b<this._bufferService.rows;b++)this._resetBufferLine(b);this._dirtyRowService.markDirty(b);break;case 1:for(b=this._bufferService.buffer.y,this._dirtyRowService.markDirty(b),this._eraseInBufferLine(b,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(b+1).isWrapped=!1);b--;)this._resetBufferLine(b);this._dirtyRowService.markDirty(0);break;case 2:for(b=this._bufferService.rows,this._dirtyRowService.markDirty(b-1);b--;)this._resetBufferLine(b);this._dirtyRowService.markDirty(0);break;case 3:var I=this._bufferService.buffer.lines.length-this._bufferService.rows;I>0&&(this._bufferService.buffer.lines.trimStart(I),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-I,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-I,0),this._onScroll.fire(0))}},C.prototype.eraseInLine=function(w){switch(this._restrictCursor(),w.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},C.prototype.insertLines=function(w){this._restrictCursor();var b=w.params[0]||1,I=this._bufferService.buffer;if(!(I.y>I.scrollBottom||I.y<I.scrollTop)){for(var _=I.ybase+I.y,L=this._bufferService.rows-1-I.scrollBottom,D=this._bufferService.rows-1+I.ybase-L+1;b--;)I.lines.splice(D-1,1),I.lines.splice(_,0,I.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(I.y,I.scrollBottom),I.x=0}},C.prototype.deleteLines=function(w){this._restrictCursor();var b=w.params[0]||1,I=this._bufferService.buffer;if(!(I.y>I.scrollBottom||I.y<I.scrollTop)){var _,L=I.ybase+I.y;for(_=this._bufferService.rows-1-I.scrollBottom,_=this._bufferService.rows-1+I.ybase-_;b--;)I.lines.splice(L,1),I.lines.splice(_,0,I.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(I.y,I.scrollBottom),I.x=0}},C.prototype.insertChars=function(w){this._restrictCursor();var b=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);b&&(b.insertCells(this._bufferService.buffer.x,w.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},C.prototype.deleteChars=function(w){this._restrictCursor();var b=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);b&&(b.deleteCells(this._bufferService.buffer.x,w.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},C.prototype.scrollUp=function(w){for(var b=w.params[0]||1,I=this._bufferService.buffer;b--;)I.lines.splice(I.ybase+I.scrollTop,1),I.lines.splice(I.ybase+I.scrollBottom,0,I.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(I.scrollTop,I.scrollBottom)},C.prototype.scrollDown=function(w){for(var b=w.params[0]||1,I=this._bufferService.buffer;b--;)I.lines.splice(I.ybase+I.scrollBottom,1),I.lines.splice(I.ybase+I.scrollTop,0,I.getBlankLine(e.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(I.scrollTop,I.scrollBottom)},C.prototype.scrollLeft=function(w){var b=this._bufferService.buffer;if(!(b.y>b.scrollBottom||b.y<b.scrollTop)){for(var I=w.params[0]||1,_=b.scrollTop;_<=b.scrollBottom;++_){var L=b.lines.get(b.ybase+_);L.deleteCells(0,I,b.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom)}},C.prototype.scrollRight=function(w){var b=this._bufferService.buffer;if(!(b.y>b.scrollBottom||b.y<b.scrollTop)){for(var I=w.params[0]||1,_=b.scrollTop;_<=b.scrollBottom;++_){var L=b.lines.get(b.ybase+_);L.insertCells(0,I,b.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom)}},C.prototype.insertColumns=function(w){var b=this._bufferService.buffer;if(!(b.y>b.scrollBottom||b.y<b.scrollTop)){for(var I=w.params[0]||1,_=b.scrollTop;_<=b.scrollBottom;++_){var L=this._bufferService.buffer.lines.get(b.ybase+_);L.insertCells(b.x,I,b.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom)}},C.prototype.deleteColumns=function(w){var b=this._bufferService.buffer;if(!(b.y>b.scrollBottom||b.y<b.scrollTop)){for(var I=w.params[0]||1,_=b.scrollTop;_<=b.scrollBottom;++_){var L=b.lines.get(b.ybase+_);L.deleteCells(b.x,I,b.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom)}},C.prototype.eraseChars=function(w){this._restrictCursor();var b=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);b&&(b.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(w.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},C.prototype.repeatPrecedingCharacter=function(w){if(this._parser.precedingCodepoint){for(var b=w.params[0]||1,I=new Uint32Array(b),_=0;_<b;++_)I[_]=this._parser.precedingCodepoint;this.print(I,0,I.length)}},C.prototype.sendDeviceAttributesPrimary=function(w){w.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(f.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(f.C0.ESC+"[?6c"))},C.prototype.sendDeviceAttributesSecondary=function(w){w.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(f.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(f.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(w.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(f.C0.ESC+"[>83;40003;0c"))},C.prototype._is=function(w){return(this._optionsService.options.termName+"").indexOf(w)===0},C.prototype.setMode=function(w){for(var b=0;b<w.length;b++)switch(w.params[b]){case 4:this._coreService.modes.insertMode=!0}},C.prototype.setModePrivate=function(w){for(var b=0;b<w.length;b++)switch(w.params[b]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,c.DEFAULT_CHARSET),this._charsetService.setgCharset(1,c.DEFAULT_CHARSET),this._charsetService.setgCharset(2,c.DEFAULT_CHARSET),this._charsetService.setgCharset(3,c.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}},C.prototype.resetMode=function(w){for(var b=0;b<w.length;b++)switch(w.params[b]){case 4:this._coreService.modes.insertMode=!1}},C.prototype.resetModePrivate=function(w){for(var b=0;b<w.length;b++)switch(w.params[b]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),w.params[b]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},C.prototype._updateAttrColor=function(w,b,I,_,L){return b===2?(w|=50331648,w&=-16777216,w|=l.AttributeData.fromColorRGB([I,_,L])):b===5&&(w&=-50331904,w|=33554432|255&I),w},C.prototype._extractColor=function(w,b,I){var _=[0,0,-1,0,0,0],L=0,D=0;do{if(_[D+L]=w.params[b+D],w.hasSubParams(b+D)){var N=w.getSubParams(b+D),R=0;do _[1]===5&&(L=1),_[D+R+1+L]=N[R];while(++R<N.length&&R+D+1+L<_.length);break}if(_[1]===5&&D+L>=2||_[1]===2&&D+L>=5)break;_[1]&&(L=1)}while(++D+b<w.length&&D+L<_.length);for(R=2;R<_.length;++R)_[R]===-1&&(_[R]=0);switch(_[0]){case 38:I.fg=this._updateAttrColor(I.fg,_[1],_[3],_[4],_[5]);break;case 48:I.bg=this._updateAttrColor(I.bg,_[1],_[3],_[4],_[5]);break;case 58:I.extended=I.extended.clone(),I.extended.underlineColor=this._updateAttrColor(I.extended.underlineColor,_[1],_[3],_[4],_[5])}return D},C.prototype._processUnderline=function(w,b){b.extended=b.extended.clone(),(!~w||w>5)&&(w=1),b.extended.underlineStyle=w,b.fg|=268435456,w===0&&(b.fg&=-268435457),b.updateExtended()},C.prototype.charAttributes=function(w){if(w.length===1&&w.params[0]===0)return this._curAttrData.fg=e.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=e.DEFAULT_ATTR_DATA.bg);for(var b,I=w.length,_=this._curAttrData,L=0;L<I;L++)(b=w.params[L])>=30&&b<=37?(_.fg&=-50331904,_.fg|=16777216|b-30):b>=40&&b<=47?(_.bg&=-50331904,_.bg|=16777216|b-40):b>=90&&b<=97?(_.fg&=-50331904,_.fg|=16777224|b-90):b>=100&&b<=107?(_.bg&=-50331904,_.bg|=16777224|b-100):b===0?(_.fg=e.DEFAULT_ATTR_DATA.fg,_.bg=e.DEFAULT_ATTR_DATA.bg):b===1?_.fg|=134217728:b===3?_.bg|=67108864:b===4?(_.fg|=268435456,this._processUnderline(w.hasSubParams(L)?w.getSubParams(L)[0]:1,_)):b===5?_.fg|=536870912:b===7?_.fg|=67108864:b===8?_.fg|=1073741824:b===2?_.bg|=134217728:b===21?this._processUnderline(2,_):b===22?(_.fg&=-134217729,_.bg&=-134217729):b===23?_.bg&=-67108865:b===24?_.fg&=-268435457:b===25?_.fg&=-536870913:b===27?_.fg&=-67108865:b===28?_.fg&=-1073741825:b===39?(_.fg&=-67108864,_.fg|=16777215&e.DEFAULT_ATTR_DATA.fg):b===49?(_.bg&=-67108864,_.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):b===38||b===48||b===58?L+=this._extractColor(w,L,_):b===59?(_.extended=_.extended.clone(),_.extended.underlineColor=-1,_.updateExtended()):b===100?(_.fg&=-67108864,_.fg|=16777215&e.DEFAULT_ATTR_DATA.fg,_.bg&=-67108864,_.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",b)},C.prototype.deviceStatus=function(w){switch(w.params[0]){case 5:this._coreService.triggerDataEvent(f.C0.ESC+"[0n");break;case 6:var b=this._bufferService.buffer.y+1,I=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(f.C0.ESC+"["+b+";"+I+"R")}},C.prototype.deviceStatusPrivate=function(w){switch(w.params[0]){case 6:var b=this._bufferService.buffer.y+1,I=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(f.C0.ESC+"[?"+b+";"+I+"R")}},C.prototype.softReset=function(w){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},C.prototype.setCursorStyle=function(w){var b=w.params[0]||1;switch(b){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var I=b%2==1;this._optionsService.options.cursorBlink=I},C.prototype.setScrollRegion=function(w){var b,I=w.params[0]||1;(w.length<2||(b=w.params[1])>this._bufferService.rows||b===0)&&(b=this._bufferService.rows),b>I&&(this._bufferService.buffer.scrollTop=I-1,this._bufferService.buffer.scrollBottom=b-1,this._setCursor(0,0))},C.prototype.windowOptions=function(w){if(g(w.params[0],this._optionsService.options.windowOptions)){var b=w.length>1?w.params[1]:0;switch(w.params[0]){case 14:b!==2&&this._onRequestWindowsOptionsReport.fire(m.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(m.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(f.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:b!==0&&b!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),b!==0&&b!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:b!==0&&b!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),b!==0&&b!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},C.prototype.saveCursor=function(w){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},C.prototype.restoreCursor=function(w){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},C.prototype.setTitle=function(w){this._windowTitle=w,this._onTitleChange.fire(w)},C.prototype.setIconName=function(w){this._iconName=w},C.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},C.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},C.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},C.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,c.DEFAULT_CHARSET)},C.prototype.selectCharset=function(w){w.length===2?w[0]!=="/"&&this._charsetService.setgCharset(p[w[0]],c.CHARSETS[w[1]]||c.DEFAULT_CHARSET):this.selectDefaultCharset()},C.prototype.index=function(){this._restrictCursor();var w=this._bufferService.buffer;this._bufferService.buffer.y++,w.y===w.scrollBottom+1?(w.y--,this._onRequestScroll.fire(this._eraseAttrData())):w.y>=this._bufferService.rows&&(w.y=this._bufferService.rows-1),this._restrictCursor()},C.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},C.prototype.reverseIndex=function(){this._restrictCursor();var w=this._bufferService.buffer;if(w.y===w.scrollTop){var b=w.scrollBottom-w.scrollTop;w.lines.shiftElements(w.ybase+w.y,b,1),w.lines.set(w.ybase+w.y,w.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}else w.y--,this._restrictCursor()},C.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},C.prototype.reset=function(){this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone()},C.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},C.prototype.setgLevel=function(w){this._charsetService.setgLevel(w)},C.prototype.screenAlignmentPattern=function(){var w=new i.CellData;w.content=1<<22|"E".charCodeAt(0),w.fg=this._curAttrData.fg,w.bg=this._curAttrData.bg;var b=this._bufferService.buffer;this._setCursor(0,0);for(var I=0;I<this._bufferService.rows;++I){var _=b.ybase+b.y+I,L=b.lines.get(_);L&&(L.fill(w),L.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},C}(r.Disposable);x.InputHandler=y},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.DEFAULT_CHARSET=x.CHARSETS=void 0,x.CHARSETS={},x.DEFAULT_CHARSET=x.CHARSETS.B,x.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},x.CHARSETS.A={"#":"\xA3"},x.CHARSETS.B=void 0,x.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},x.CHARSETS.C=x.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},x.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},x.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},x.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},x.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},x.CHARSETS.E=x.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},x.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},x.CHARSETS.H=x.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},x.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.Params=void 0;var v=function(){function S(m,f){if(m===void 0&&(m=32),f===void 0&&(f=32),this.maxLength=m,this.maxSubParamsLength=f,f>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(m),this.length=0,this._subParams=new Int32Array(f),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(m),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return S.fromArray=function(m){var f=new S;if(!m.length)return f;for(var c=m[0]instanceof Array?1:0;c<m.length;++c){var o=m[c];if(o instanceof Array)for(var r=0;r<o.length;++r)f.addSubParam(o[r]);else f.addParam(o)}return f},S.prototype.clone=function(){var m=new S(this.maxLength,this.maxSubParamsLength);return m.params.set(this.params),m.length=this.length,m._subParams.set(this._subParams),m._subParamsLength=this._subParamsLength,m._subParamsIdx.set(this._subParamsIdx),m._rejectDigits=this._rejectDigits,m._rejectSubDigits=this._rejectSubDigits,m._digitIsSub=this._digitIsSub,m},S.prototype.toArray=function(){for(var m=[],f=0;f<this.length;++f){m.push(this.params[f]);var c=this._subParamsIdx[f]>>8,o=255&this._subParamsIdx[f];o-c>0&&m.push(Array.prototype.slice.call(this._subParams,c,o))}return m},S.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},S.prototype.addParam=function(m){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(m<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=m>2147483647?2147483647:m}},S.prototype.addSubParam=function(m){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(m<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=m>2147483647?2147483647:m,this._subParamsIdx[this.length-1]++}},S.prototype.hasSubParams=function(m){return(255&this._subParamsIdx[m])-(this._subParamsIdx[m]>>8)>0},S.prototype.getSubParams=function(m){var f=this._subParamsIdx[m]>>8,c=255&this._subParamsIdx[m];return c-f>0?this._subParams.subarray(f,c):null},S.prototype.getSubParamsAll=function(){for(var m={},f=0;f<this.length;++f){var c=this._subParamsIdx[f]>>8,o=255&this._subParamsIdx[f];o-c>0&&(m[f]=this._subParams.slice(c,o))}return m},S.prototype.addDigit=function(m){var f;if(!(this._rejectDigits||!(f=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var c=this._digitIsSub?this._subParams:this.params,o=c[f-1];c[f-1]=~o?Math.min(10*o+m,2147483647):m}},S}();x.Params=v},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.OscHandler=x.OscParser=void 0;var v=T(23),S=T(8),m=function(){function c(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return c.prototype.addHandler=function(o,r){this._handlers[o]===void 0&&(this._handlers[o]=[]);var a=this._handlers[o];return a.push(r),{dispose:function(){var e=a.indexOf(r);e!==-1&&a.splice(e,1)}}},c.prototype.setHandler=function(o,r){this._handlers[o]=[r]},c.prototype.clearHandler=function(o){this._handlers[o]&&delete this._handlers[o]},c.prototype.setHandlerFallback=function(o){this._handlerFb=o},c.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},c.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},c.prototype._start=function(){var o=this._handlers[this._id];if(o)for(var r=o.length-1;r>=0;r--)o[r].start();else this._handlerFb(this._id,"START")},c.prototype._put=function(o,r,a){var n=this._handlers[this._id];if(n)for(var e=n.length-1;e>=0;e--)n[e].put(o,r,a);else this._handlerFb(this._id,"PUT",S.utf32ToString(o,r,a))},c.prototype._end=function(o){var r=this._handlers[this._id];if(r){for(var a=r.length-1;a>=0&&r[a].end(o)===!1;a--);for(a--;a>=0;a--)r[a].end(!1)}else this._handlerFb(this._id,"END",o)},c.prototype.start=function(){this.reset(),this._id=-1,this._state=1},c.prototype.put=function(o,r,a){if(this._state!==3){if(this._state===1)for(;r<a;){var n=o[r++];if(n===59){this._state=2,this._start();break}if(n<48||57<n)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+n-48}this._state===2&&a-r>0&&this._put(o,r,a)}},c.prototype.end=function(o){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(o)),this._id=-1,this._state=0)},c}();x.OscParser=m;var f=function(){function c(o){this._handler=o,this._data="",this._hitLimit=!1}return c.prototype.start=function(){this._data="",this._hitLimit=!1},c.prototype.put=function(o,r,a){this._hitLimit||(this._data+=S.utf32ToString(o,r,a),this._data.length>v.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},c.prototype.end=function(o){var r;return this._hitLimit?r=!1:o&&(r=this._handler(this._data)),this._data="",this._hitLimit=!1,r},c}();x.OscHandler=f},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.PAYLOAD_LIMIT=void 0,x.PAYLOAD_LIMIT=1e7},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.DcsHandler=x.DcsParser=void 0;var v=T(8),S=T(21),m=T(23),f=[],c=function(){function r(){this._handlers=Object.create(null),this._active=f,this._ident=0,this._handlerFb=function(){}}return r.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},r.prototype.addHandler=function(a,n){this._handlers[a]===void 0&&(this._handlers[a]=[]);var e=this._handlers[a];return e.push(n),{dispose:function(){var t=e.indexOf(n);t!==-1&&e.splice(t,1)}}},r.prototype.setHandler=function(a,n){this._handlers[a]=[n]},r.prototype.clearHandler=function(a){this._handlers[a]&&delete this._handlers[a]},r.prototype.setHandlerFallback=function(a){this._handlerFb=a},r.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=f,this._ident=0},r.prototype.hook=function(a,n){if(this.reset(),this._ident=a,this._active=this._handlers[a]||f,this._active.length)for(var e=this._active.length-1;e>=0;e--)this._active[e].hook(n);else this._handlerFb(this._ident,"HOOK",n)},r.prototype.put=function(a,n,e){if(this._active.length)for(var s=this._active.length-1;s>=0;s--)this._active[s].put(a,n,e);else this._handlerFb(this._ident,"PUT",v.utf32ToString(a,n,e))},r.prototype.unhook=function(a){if(this._active.length){for(var n=this._active.length-1;n>=0&&this._active[n].unhook(a)===!1;n--);for(n--;n>=0;n--)this._active[n].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",a);this._active=f,this._ident=0},r}();x.DcsParser=c;var o=function(){function r(a){this._handler=a,this._data="",this._hitLimit=!1}return r.prototype.hook=function(a){this._params=a.clone(),this._data="",this._hitLimit=!1},r.prototype.put=function(a,n,e){this._hitLimit||(this._data+=v.utf32ToString(a,n,e),this._data.length>m.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},r.prototype.unhook=function(a){var n;return this._hitLimit?n=!1:a&&(n=this._handler(this._data,this._params||new S.Params)),this._params=void 0,this._data="",this._hitLimit=!1,n},r}();x.DcsHandler=o},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.removeTerminalFromCache=x.acquireCharAtlas=void 0;var v=T(26),S=T(43),m=[];x.acquireCharAtlas=function(f,c,o,r,a){for(var n=v.generateConfig(r,a,f,o),e=0;e<m.length;e++){var s=(t=m[e]).ownedBy.indexOf(c);if(s>=0){if(v.configEquals(t.config,n))return t.atlas;t.ownedBy.length===1?(t.atlas.dispose(),m.splice(e,1)):t.ownedBy.splice(s,1);break}}for(e=0;e<m.length;e++){var t=m[e];if(v.configEquals(t.config,n))return t.ownedBy.push(c),t.atlas}var i={atlas:new S.DynamicCharAtlas(document,n),config:n,ownedBy:[c]};return m.push(i),i.atlas},x.removeTerminalFromCache=function(f){for(var c=0;c<m.length;c++){var o=m[c].ownedBy.indexOf(f);if(o!==-1){m[c].ownedBy.length===1?(m[c].atlas.dispose(),m.splice(c,1)):m[c].ownedBy.splice(o,1);break}}}},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.is256Color=x.configEquals=x.generateConfig=void 0;var v=T(3);x.generateConfig=function(S,m,f,c){var o={foreground:c.foreground,background:c.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:c.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:S,scaledCharHeight:m,fontFamily:f.fontFamily,fontSize:f.fontSize,fontWeight:f.fontWeight,fontWeightBold:f.fontWeightBold,allowTransparency:f.allowTransparency,colors:o}},x.configEquals=function(S,m){for(var f=0;f<S.colors.ansi.length;f++)if(S.colors.ansi[f].rgba!==m.colors.ansi[f].rgba)return!1;return S.devicePixelRatio===m.devicePixelRatio&&S.fontFamily===m.fontFamily&&S.fontSize===m.fontSize&&S.fontWeight===m.fontWeight&&S.fontWeightBold===m.fontWeightBold&&S.allowTransparency===m.allowTransparency&&S.scaledCharWidth===m.scaledCharWidth&&S.scaledCharHeight===m.scaledCharHeight&&S.colors.foreground===m.colors.foreground&&S.colors.background===m.colors.background},x.is256Color=function(S){return S<v.DEFAULT_COLOR}},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.ColorManager=x.DEFAULT_ANSI_COLORS=void 0;var v=T(10),S=T(45),m=v.css.toColor("#ffffff"),f=v.css.toColor("#000000"),c=v.css.toColor("#ffffff"),o=v.css.toColor("#000000"),r={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};x.DEFAULT_ANSI_COLORS=function(){for(var n=[v.css.toColor("#2e3436"),v.css.toColor("#cc0000"),v.css.toColor("#4e9a06"),v.css.toColor("#c4a000"),v.css.toColor("#3465a4"),v.css.toColor("#75507b"),v.css.toColor("#06989a"),v.css.toColor("#d3d7cf"),v.css.toColor("#555753"),v.css.toColor("#ef2929"),v.css.toColor("#8ae234"),v.css.toColor("#fce94f"),v.css.toColor("#729fcf"),v.css.toColor("#ad7fa8"),v.css.toColor("#34e2e2"),v.css.toColor("#eeeeec")],e=[0,95,135,175,215,255],s=0;s<216;s++){var t=e[s/36%6|0],i=e[s/6%6|0],l=e[s%6];n.push({css:v.channels.toCss(t,i,l),rgba:v.channels.toRgba(t,i,l)})}for(s=0;s<24;s++){var u=8+10*s;n.push({css:v.channels.toCss(u,u,u),rgba:v.channels.toRgba(u,u,u)})}return n}();var a=function(){function n(e,s){this.allowTransparency=s;var t=e.createElement("canvas");t.width=1,t.height=1;var i=t.getContext("2d");if(!i)throw new Error("Could not get rendering context");this._ctx=i,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new S.ColorContrastCache,this.colors={foreground:m,background:f,cursor:c,cursorAccent:o,selectionTransparent:r,selectionOpaque:v.color.blend(f,r),ansi:x.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return n.prototype.onOptionsChange=function(e){e==="minimumContrastRatio"&&this._contrastCache.clear()},n.prototype.setTheme=function(e){(e===void 0&&(e={}),this.colors.foreground=this._parseColor(e.foreground,m),this.colors.background=this._parseColor(e.background,f),this.colors.cursor=this._parseColor(e.cursor,c,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,o,!0),this.colors.selectionTransparent=this._parseColor(e.selection,r,!0),this.colors.selectionOpaque=v.color.blend(this.colors.background,this.colors.selectionTransparent),v.color.isOpaque(this.colors.selectionTransparent))&&(this.colors.selectionTransparent=v.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(e.black,x.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,x.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,x.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,x.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,x.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,x.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,x.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,x.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,x.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,x.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,x.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,x.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,x.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,x.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,x.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,x.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},n.prototype._parseColor=function(e,s,t){if(t===void 0&&(t=this.allowTransparency),e===void 0)return s;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+e+" is invalid using fallback "+s.css),s;this._ctx.fillRect(0,0,1,1);var i=this._ctx.getImageData(0,0,1,1).data;if(i[3]!==255){if(!t)return console.warn("Color: "+e+" is using transparency, but allowTransparency is false. Using fallback "+s.css+"."),s;var l=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(y){return Number(y)}),u=l[0],h=l[1],p=l[2],g=l[3],A=Math.round(255*g);return{rgba:v.channels.toRgba(u,h,p,A),css:e}}return{css:this._ctx.fillStyle,rgba:v.channels.toRgba(i[0],i[1],i[2],i[3])}},n}();x.ColorManager=a},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.throwIfFalsy=void 0,x.throwIfFalsy=function(v){if(!v)throw new Error("value must not be falsy");return v}},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(n,e){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,t){s.__proto__=t}||function(s,t){for(var i in t)t.hasOwnProperty(i)&&(s[i]=t[i])})(n,e)},function(a,n){function e(){this.constructor=a}v(a,n),a.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(x,"__esModule",{value:!0}),x.CharacterJoinerRegistry=x.JoinedCellData=void 0;var m=T(6),f=T(3),c=T(4),o=function(a){function n(e,s,t){var i=a.call(this)||this;return i.content=0,i.combinedData="",i.fg=e.fg,i.bg=e.bg,i.combinedData=s,i._width=t,i}return S(n,a),n.prototype.isCombined=function(){return 2097152},n.prototype.getWidth=function(){return this._width},n.prototype.getChars=function(){return this.combinedData},n.prototype.getCode=function(){return 2097151},n.prototype.setFromCharData=function(e){throw new Error("not implemented")},n.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},n}(m.AttributeData);x.JoinedCellData=o;var r=function(){function a(n){this._bufferService=n,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new c.CellData}return a.prototype.registerCharacterJoiner=function(n){var e={id:this._nextCharacterJoinerId++,handler:n};return this._characterJoiners.push(e),e.id},a.prototype.deregisterCharacterJoiner=function(n){for(var e=0;e<this._characterJoiners.length;e++)if(this._characterJoiners[e].id===n)return this._characterJoiners.splice(e,1),!0;return!1},a.prototype.getJoinedCharacters=function(n){if(this._characterJoiners.length===0)return[];var e=this._bufferService.buffer.lines.get(n);if(!e||e.length===0)return[];for(var s=[],t=e.translateToString(!0),i=0,l=0,u=0,h=e.getFg(0),p=e.getBg(0),g=0;g<e.getTrimmedLength();g++)if(e.loadCell(g,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==h||this._workCell.bg!==p){if(g-i>1)for(var A=this._getJoinedRanges(t,u,l,e,i),y=0;y<A.length;y++)s.push(A[y]);i=g,u=l,h=this._workCell.fg,p=this._workCell.bg}l+=this._workCell.getChars().length||f.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-i>1)for(A=this._getJoinedRanges(t,u,l,e,i),y=0;y<A.length;y++)s.push(A[y]);return s},a.prototype._getJoinedRanges=function(n,e,s,t,i){for(var l=n.substring(e,s),u=this._characterJoiners[0].handler(l),h=1;h<this._characterJoiners.length;h++)for(var p=this._characterJoiners[h].handler(l),g=0;g<p.length;g++)a._mergeRanges(u,p[g]);return this._stringRangesToCellRanges(u,t,i),u},a.prototype._stringRangesToCellRanges=function(n,e,s){var t=0,i=!1,l=0,u=n[t];if(u){for(var h=s;h<this._bufferService.cols;h++){var p=e.getWidth(h),g=e.getString(h).length||f.WHITESPACE_CELL_CHAR.length;if(p!==0){if(!i&&u[0]<=l&&(u[0]=h,i=!0),u[1]<=l){if(u[1]=h,!(u=n[++t]))break;u[0]<=l?(u[0]=h,i=!0):i=!1}l+=g}}u&&(u[1]=this._bufferService.cols)}},a._mergeRanges=function(n,e){for(var s=!1,t=0;t<n.length;t++){var i=n[t];if(s){if(e[1]<=i[0])return n[t-1][1]=e[1],n;if(e[1]<=i[1])return n[t-1][1]=Math.max(e[1],i[1]),n.splice(t,1),n;n.splice(t,1),t--}else{if(e[1]<=i[0])return n.splice(t,0,e),n;if(e[1]<=i[1])return i[0]=Math.min(e[0],i[0]),n;e[0]<i[1]&&(i[0]=Math.min(e[0],i[0]),s=!0)}}return s?n[n.length-1][1]=e[1]:n.push(e),n},a}();x.CharacterJoinerRegistry=r},function(O,x,T){"use strict";function v(S,m){var f=m.getBoundingClientRect();return[S.clientX-f.left,S.clientY-f.top]}Object.defineProperty(x,"__esModule",{value:!0}),x.getRawByteCoords=x.getCoords=x.getCoordsRelativeToElement=void 0,x.getCoordsRelativeToElement=v,x.getCoords=function(S,m,f,c,o,r,a,n){if(o){var e=v(S,m);if(e)return e[0]=Math.ceil((e[0]+(n?r/2:0))/r),e[1]=Math.ceil(e[1]/a),e[0]=Math.min(Math.max(e[0],1),f+(n?1:0)),e[1]=Math.min(Math.max(e[1],1),c),e}},x.getRawByteCoords=function(S){if(S)return{x:S[0]+32,y:S[1]+32}}},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.RenderDebouncer=void 0;var v=function(){function S(m){this._renderCallback=m}return S.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},S.prototype.refresh=function(m,f,c){var o=this;this._rowCount=c,m=m!==void 0?m:0,f=f!==void 0?f:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,m):m,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,f):f,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return o._innerRefresh()}))},S.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var m=Math.max(this._rowStart,0),f=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(m,f)}},S}();x.RenderDebouncer=v},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(c,o){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var n in a)a.hasOwnProperty(n)&&(r[n]=a[n])})(c,o)},function(f,c){function o(){this.constructor=f}v(f,c),f.prototype=c===null?Object.create(c):(o.prototype=c.prototype,new o)});Object.defineProperty(x,"__esModule",{value:!0}),x.ScreenDprMonitor=void 0;var m=function(f){function c(){var o=f!==null&&f.apply(this,arguments)||this;return o._currentDevicePixelRatio=window.devicePixelRatio,o}return S(c,f),c.prototype.setListener=function(o){var r=this;this._listener&&this.clearListener(),this._listener=o,this._outerListener=function(){r._listener&&(r._listener(window.devicePixelRatio,r._currentDevicePixelRatio),r._updateDpr())},this._updateDpr()},c.prototype.dispose=function(){f.prototype.dispose.call(this),this.clearListener()},c.prototype._updateDpr=function(){var o;this._outerListener&&((o=this._resolutionMediaMatchList)===null||o===void 0||o.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},c.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},c}(T(2).Disposable);x.ScreenDprMonitor=m},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.clone=void 0,x.clone=function v(S,m){if(m===void 0&&(m=5),typeof S!="object")return S;var f=Array.isArray(S)?[]:{};for(var c in S)f[c]=m<=1?S[c]:S[c]?v(S[c],m-1):S[c];return f}},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.Terminal=void 0;var v=T(4),S=T(35),m=T(18),f=T(0),c=T(83),o=function(){function t(i){this._core=new S.Terminal(i),this._addonManager=new c.AddonManager}return t.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(t.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new e(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unicode",{get:function(){return this._checkProposedApi(),new s(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffer",{get:function(){return this._checkProposedApi(),new a(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),t.prototype.blur=function(){this._core.blur()},t.prototype.focus=function(){this._core.focus()},t.prototype.resize=function(i,l){this._verifyIntegers(i,l),this._core.resize(i,l)},t.prototype.open=function(i){this._core.open(i)},t.prototype.attachCustomKeyEventHandler=function(i){this._core.attachCustomKeyEventHandler(i)},t.prototype.registerLinkMatcher=function(i,l,u){return this._checkProposedApi(),this._core.registerLinkMatcher(i,l,u)},t.prototype.deregisterLinkMatcher=function(i){this._checkProposedApi(),this._core.deregisterLinkMatcher(i)},t.prototype.registerLinkProvider=function(i){return this._checkProposedApi(),this._core.registerLinkProvider(i)},t.prototype.registerCharacterJoiner=function(i){return this._checkProposedApi(),this._core.registerCharacterJoiner(i)},t.prototype.deregisterCharacterJoiner=function(i){this._checkProposedApi(),this._core.deregisterCharacterJoiner(i)},t.prototype.registerMarker=function(i){return this._checkProposedApi(),this._verifyIntegers(i),this._core.addMarker(i)},t.prototype.addMarker=function(i){return this.registerMarker(i)},t.prototype.hasSelection=function(){return this._core.hasSelection()},t.prototype.select=function(i,l,u){this._verifyIntegers(i,l,u),this._core.select(i,l,u)},t.prototype.getSelection=function(){return this._core.getSelection()},t.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},t.prototype.clearSelection=function(){this._core.clearSelection()},t.prototype.selectAll=function(){this._core.selectAll()},t.prototype.selectLines=function(i,l){this._verifyIntegers(i,l),this._core.selectLines(i,l)},t.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},t.prototype.scrollLines=function(i){this._verifyIntegers(i),this._core.scrollLines(i)},t.prototype.scrollPages=function(i){this._verifyIntegers(i),this._core.scrollPages(i)},t.prototype.scrollToTop=function(){this._core.scrollToTop()},t.prototype.scrollToBottom=function(){this._core.scrollToBottom()},t.prototype.scrollToLine=function(i){this._verifyIntegers(i),this._core.scrollToLine(i)},t.prototype.clear=function(){this._core.clear()},t.prototype.write=function(i,l){this._core.write(i,l)},t.prototype.writeUtf8=function(i,l){this._core.write(i,l)},t.prototype.writeln=function(i,l){this._core.write(i),this._core.write(`\r
|
|
|
`,l)},t.prototype.paste=function(i){this._core.paste(i)},t.prototype.getOption=function(i){return this._core.optionsService.getOption(i)},t.prototype.setOption=function(i,l){this._core.optionsService.setOption(i,l)},t.prototype.refresh=function(i,l){this._verifyIntegers(i,l),this._core.refresh(i,l)},t.prototype.reset=function(){this._core.reset()},t.prototype.loadAddon=function(i){return this._addonManager.loadAddon(this,i)},Object.defineProperty(t,"strings",{get:function(){return m},enumerable:!1,configurable:!0}),t.prototype._verifyIntegers=function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];for(var u=0,h=i;u<h.length;u++){var p=h[u];if(p===1/0||isNaN(p)||p%1!=0)throw new Error("This API only accepts integers")}},t}();x.Terminal=o;var r=function(){function t(i,l){this._buffer=i,this.type=l}return t.prototype.init=function(i){return this._buffer=i,this},Object.defineProperty(t.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),t.prototype.getLine=function(i){var l=this._buffer.lines.get(i);if(l)return new n(l)},t.prototype.getNullCell=function(){return new v.CellData},t}(),a=function(){function t(i){var l=this;this._buffers=i,this._onBufferChange=new f.EventEmitter,this._normal=new r(this._buffers.normal,"normal"),this._alternate=new r(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return l._onBufferChange.fire(l.active)})}return Object.defineProperty(t.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){if(this._buffers.active===this._buffers.normal)return this.normal;if(this._buffers.active===this._buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),t}(),n=function(){function t(i){this._line=i}return Object.defineProperty(t.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),t.prototype.getCell=function(i,l){if(!(i<0||i>=this._line.length))return l?(this._line.loadCell(i,l),l):this._line.loadCell(i,new v.CellData)},t.prototype.translateToString=function(i,l,u){return this._line.translateToString(i,l,u)},t}(),e=function(){function t(i){this._core=i}return t.prototype.registerCsiHandler=function(i,l){return this._core.addCsiHandler(i,function(u){return l(u.toArray())})},t.prototype.addCsiHandler=function(i,l){return this.registerCsiHandler(i,l)},t.prototype.registerDcsHandler=function(i,l){return this._core.addDcsHandler(i,function(u,h){return l(u,h.toArray())})},t.prototype.addDcsHandler=function(i,l){return this.registerDcsHandler(i,l)},t.prototype.registerEscHandler=function(i,l){return this._core.addEscHandler(i,l)},t.prototype.addEscHandler=function(i,l){return this.registerEscHandler(i,l)},t.prototype.registerOscHandler=function(i,l){return this._core.addOscHandler(i,l)},t.prototype.addOscHandler=function(i,l){return this.registerOscHandler(i,l)},t}(),s=function(){function t(i){this._core=i}return t.prototype.register=function(i){this._core.unicodeService.register(i)},Object.defineProperty(t.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(l){this._core.unicodeService.activeVersion=l},enumerable:!1,configurable:!0}),t}()},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(M,H){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,K){F.__proto__=K}||function(F,K){for(var j in K)K.hasOwnProperty(j)&&(F[j]=K[j])})(M,H)},function(B,M){function H(){this.constructor=B}v(B,M),B.prototype=M===null?Object.create(M):(H.prototype=M.prototype,new H)});Object.defineProperty(x,"__esModule",{value:!0}),x.Terminal=void 0;var m=T(36),f=T(37),c=T(38),o=T(12),r=T(19),a=T(40),n=T(50),e=T(51),s=T(11),t=T(7),i=T(18),l=T(54),u=T(55),h=T(56),p=T(57),g=T(59),A=T(0),y=T(16),E=T(27),C=T(60),w=T(5),b=T(61),I=T(62),_=T(63),L=T(64),D=T(65),N=typeof window!="undefined"?window.document:null,R=function(B){function M(H){H===void 0&&(H={});var F=B.call(this,H)||this;return F.browser=s,F._keyDownHandled=!1,F._onCursorMove=new A.EventEmitter,F._onKey=new A.EventEmitter,F._onRender=new A.EventEmitter,F._onSelectionChange=new A.EventEmitter,F._onTitleChange=new A.EventEmitter,F._onFocus=new A.EventEmitter,F._onBlur=new A.EventEmitter,F._onA11yCharEmitter=new A.EventEmitter,F._onA11yTabEmitter=new A.EventEmitter,F._setup(),F.linkifier=F._instantiationService.createInstance(n.Linkifier),F.linkifier2=F.register(F._instantiationService.createInstance(_.Linkifier2)),F.register(F._inputHandler.onRequestBell(function(){return F.bell()})),F.register(F._inputHandler.onRequestRefreshRows(function(K,j){return F.refresh(K,j)})),F.register(F._inputHandler.onRequestReset(function(){return F.reset()})),F.register(F._inputHandler.onRequestScroll(function(K,j){return F.scroll(K,j||void 0)})),F.register(F._inputHandler.onRequestWindowsOptionsReport(function(K){return F._reportWindowsOptions(K)})),F.register(A.forwardEvent(F._inputHandler.onCursorMove,F._onCursorMove)),F.register(A.forwardEvent(F._inputHandler.onTitleChange,F._onTitleChange)),F.register(A.forwardEvent(F._inputHandler.onA11yChar,F._onA11yCharEmitter)),F.register(A.forwardEvent(F._inputHandler.onA11yTab,F._onA11yTabEmitter)),F.register(F._bufferService.onResize(function(K){return F._afterResize(K.cols,K.rows)})),F}return S(M,B),Object.defineProperty(M.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),M.prototype.dispose=function(){var H,F,K;this._isDisposed||(B.prototype.dispose.call(this),(H=this._renderService)===null||H===void 0||H.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(K=(F=this.element)===null||F===void 0?void 0:F.parentNode)===null||K===void 0||K.removeChild(this.element))},M.prototype._setup=function(){B.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(M.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),M.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},M.prototype._updateOptions=function(H){var F,K,j,V;switch(B.prototype._updateOptions.call(this,H),H){case"fontFamily":case"fontSize":(F=this._renderService)===null||F===void 0||F.clear(),(K=this._charSizeService)===null||K===void 0||K.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(j=this.viewport)===null||j===void 0||j.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new h.AccessibilityManager(this,this._renderService)):((V=this._accessibilityManager)===null||V===void 0||V.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},M.prototype._onTextAreaFocus=function(H){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(o.C0.ESC+"[I"),this.updateCursorStyle(H),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},M.prototype.blur=function(){var H;return(H=this.textarea)===null||H===void 0?void 0:H.blur()},M.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(o.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},M.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var H=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),F=this._bufferService.buffer.y*H,K=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=K+"px",this.textarea.style.top=F+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=H+"px",this.textarea.style.lineHeight=H+"px",this.textarea.style.zIndex="-5"}},M.prototype._initGlobal=function(){var H=this;this._bindKeys(),this.register(t.addDisposableDomListener(this.element,"copy",function(K){H.hasSelection()&&c.copyHandler(K,H._selectionService)}));var F=function(j){return c.handlePasteEvent(j,H.textarea,H._coreService)};this.register(t.addDisposableDomListener(this.textarea,"paste",F)),this.register(t.addDisposableDomListener(this.element,"paste",F)),s.isFirefox?this.register(t.addDisposableDomListener(this.element,"mousedown",function(K){K.button===2&&c.rightClickHandler(K,H.textarea,H.screenElement,H._selectionService,H.options.rightClickSelectsWord)})):this.register(t.addDisposableDomListener(this.element,"contextmenu",function(K){c.rightClickHandler(K,H.textarea,H.screenElement,H._selectionService,H.options.rightClickSelectsWord)})),s.isLinux&&this.register(t.addDisposableDomListener(this.element,"auxclick",function(K){K.button===1&&c.moveTextAreaUnderMouseCursor(K,H.textarea,H.screenElement)}))},M.prototype._bindKeys=function(){var H=this;this.register(t.addDisposableDomListener(this.textarea,"keyup",function(F){return H._keyUp(F)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keydown",function(F){return H._keyDown(F)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keypress",function(F){return H._keyPress(F)},!0)),this.register(t.addDisposableDomListener(this.textarea,"compositionstart",function(){return H._compositionHelper.compositionstart()})),this.register(t.addDisposableDomListener(this.textarea,"compositionupdate",function(F){return H._compositionHelper.compositionupdate(F)})),this.register(t.addDisposableDomListener(this.textarea,"compositionend",function(){return H._compositionHelper.compositionend()})),this.register(this.onRender(function(){return H._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(F){return H._queueLinkification(F.start,F.end)}))},M.prototype.open=function(H){var F=this;if(!H)throw new Error("Terminal requires a parent element.");N.body.contains(H)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=H.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),H.appendChild(this.element);var K=N.createDocumentFragment();this._viewportElement=N.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),K.appendChild(this._viewportElement),this._viewportScrollArea=N.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=N.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=N.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),K.appendChild(this.screenElement),this.textarea=N.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",i.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(t.addDisposableDomListener(this.textarea,"focus",function(z){return F._onTextAreaFocus(z)})),this.register(t.addDisposableDomListener(this.textarea,"blur",function(){return F._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var j=this._instantiationService.createInstance(L.CoreBrowserService,this.textarea);this._instantiationService.setService(w.ICoreBrowserService,j),this._charSizeService=this._instantiationService.createInstance(b.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(w.ICharSizeService,this._charSizeService),this._compositionView=N.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(m.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(K),this._theme=this.options.theme||this._theme,this._colorManager=new E.ColorManager(N,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(z){return F._colorManager.onOptionsChange(z)})),this._colorManager.setTheme(this._theme);var V=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(C.RenderService,V,this.rows,this.screenElement)),this._instantiationService.setService(w.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(z){return F._onRender.fire(z)})),this.onResize(function(z){return F._renderService.resize(z.cols,z.rows)}),this._soundService=this._instantiationService.createInstance(l.SoundService),this._instantiationService.setService(w.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(I.MouseService),this._instantiationService.setService(w.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(f.Viewport,function(z,Y){return F.scrollLines(z,Y)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return F.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){F._renderService.onCursorMove(),F._syncTextArea()})),this.register(this.onResize(function(){return F._renderService.onResize(F.cols,F.rows)})),this.register(this.onBlur(function(){return F._renderService.onBlur()})),this.register(this.onFocus(function(){return F._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return F.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(e.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(w.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(z){return F.scrollLines(z.amount,z.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return F._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(z){return F._renderService.onSelectionChanged(z.start,z.end,z.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(z){F.textarea.value=z,F.textarea.focus(),F.textarea.select()})),this.register(this.onScroll(function(){F.viewport.syncScrollArea(),F._selectionService.refresh()})),this.register(t.addDisposableDomListener(this._viewportElement,"scroll",function(){return F._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(u.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return F._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(t.addDisposableDomListener(this.element,"mousedown",function(z){return F._selectionService.onMouseDown(z)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new h.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},M.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(a.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(p.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},M.prototype._setTheme=function(H){var F,K,j;this._theme=H,(F=this._colorManager)===null||F===void 0||F.setTheme(H),(K=this._renderService)===null||K===void 0||K.setColors(this._colorManager.colors),(j=this.viewport)===null||j===void 0||j.onThemeChange(this._colorManager.colors)},M.prototype.bindMouse=function(){var H=this,F=this,K=this.element;function j(ie){var we,Ce,Le=F._mouseService.getRawByteCoords(ie,F.screenElement,F.cols,F.rows);if(!Le)return!1;switch(ie.overrideType||ie.type){case"mousemove":Ce=32,ie.buttons===void 0?(we=3,ie.button!==void 0&&(we=ie.button<3?ie.button:3)):we=1&ie.buttons?0:4&ie.buttons?1:2&ie.buttons?2:3;break;case"mouseup":Ce=0,we=ie.button<3?ie.button:3;break;case"mousedown":Ce=1,we=ie.button<3?ie.button:3;break;case"wheel":ie.deltaY!==0&&(Ce=ie.deltaY<0?0:1),we=4;break;default:return!1}return!(Ce===void 0||we===void 0||we>4)&&F._coreMouseService.triggerMouseEvent({col:Le.x-33,row:Le.y-33,button:we,action:Ce,ctrl:ie.ctrlKey,alt:ie.altKey,shift:ie.shiftKey})}var V={mouseup:null,wheel:null,mousedrag:null,mousemove:null},z=function(we){return j(we),we.buttons||(H._document.removeEventListener("mouseup",V.mouseup),V.mousedrag&&H._document.removeEventListener("mousemove",V.mousedrag)),H.cancel(we)},Y=function(we){return j(we),we.preventDefault(),H.cancel(we)},ee=function(we){we.buttons&&j(we)},fe=function(we){we.buttons||j(we)};this.register(this._coreMouseService.onProtocolChange(function(ie){ie?(H.optionsService.options.logLevel==="debug"&&H._logService.debug("Binding to mouse events:",H._coreMouseService.explainEvents(ie)),H.element.classList.add("enable-mouse-events"),H._selectionService.disable()):(H._logService.debug("Unbinding from mouse events."),H.element.classList.remove("enable-mouse-events"),H._selectionService.enable()),8&ie?V.mousemove||(K.addEventListener("mousemove",fe),V.mousemove=fe):(K.removeEventListener("mousemove",V.mousemove),V.mousemove=null),16&ie?V.wheel||(K.addEventListener("wheel",Y,{passive:!1}),V.wheel=Y):(K.removeEventListener("wheel",V.wheel),V.wheel=null),2&ie?V.mouseup||(V.mouseup=z):(H._document.removeEventListener("mouseup",V.mouseup),V.mouseup=null),4&ie?V.mousedrag||(V.mousedrag=ee):(H._document.removeEventListener("mousemove",V.mousedrag),V.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(t.addDisposableDomListener(K,"mousedown",function(ie){if(ie.preventDefault(),H.focus(),H._coreMouseService.areMouseEventsActive&&!H._selectionService.shouldForceSelection(ie))return j(ie),V.mouseup&&H._document.addEventListener("mouseup",V.mouseup),V.mousedrag&&H._document.addEventListener("mousemove",V.mousedrag),H.cancel(ie)})),this.register(t.addDisposableDomListener(K,"wheel",function(ie){if(!V.wheel){if(!H.buffer.hasScrollback){var we=H.viewport.getLinesScrolled(ie);if(we===0)return;for(var Ce=o.C0.ESC+(H._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(ie.deltaY<0?"A":"B"),Le="",He=0;He<Math.abs(we);He++)Le+=Ce;H._coreService.triggerDataEvent(Le,!0)}}},{passive:!0})),this.register(t.addDisposableDomListener(K,"wheel",function(ie){if(!V.wheel)return H.viewport.onWheel(ie)?void 0:H.cancel(ie)},{passive:!1})),this.register(t.addDisposableDomListener(K,"touchstart",function(ie){if(!H._coreMouseService.areMouseEventsActive)return H.viewport.onTouchStart(ie),H.cancel(ie)},{passive:!0})),this.register(t.addDisposableDomListener(K,"touchmove",function(ie){if(!H._coreMouseService.areMouseEventsActive)return H.viewport.onTouchMove(ie)?void 0:H.cancel(ie)},{passive:!1}))},M.prototype.refresh=function(H,F){var K;(K=this._renderService)===null||K===void 0||K.refreshRows(H,F)},M.prototype._queueLinkification=function(H,F){var K;(K=this.linkifier)===null||K===void 0||K.linkifyRows(H,F)},M.prototype.updateCursorStyle=function(H){this._selectionService&&this._selectionService.shouldColumnSelect(H)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},M.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},M.prototype.scrollLines=function(H,F){B.prototype.scrollLines.call(this,H,F),this.refresh(0,this.rows-1)},M.prototype.paste=function(H){c.paste(H,this.textarea,this._coreService)},M.prototype.attachCustomKeyEventHandler=function(H){this._customKeyEventHandler=H},M.prototype.registerLinkMatcher=function(H,F,K){var j=this.linkifier.registerLinkMatcher(H,F,K);return this.refresh(0,this.rows-1),j},M.prototype.deregisterLinkMatcher=function(H){this.linkifier.deregisterLinkMatcher(H)&&this.refresh(0,this.rows-1)},M.prototype.registerLinkProvider=function(H){return this.linkifier2.registerLinkProvider(H)},M.prototype.registerCharacterJoiner=function(H){var F=this._renderService.registerCharacterJoiner(H);return this.refresh(0,this.rows-1),F},M.prototype.deregisterCharacterJoiner=function(H){this._renderService.deregisterCharacterJoiner(H)&&this.refresh(0,this.rows-1)},Object.defineProperty(M.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),M.prototype.addMarker=function(H){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+H)},M.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},M.prototype.select=function(H,F,K){this._selectionService.setSelection(H,F,K)},M.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},M.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},M.prototype.clearSelection=function(){var H;(H=this._selectionService)===null||H===void 0||H.clearSelection()},M.prototype.selectAll=function(){var H;(H=this._selectionService)===null||H===void 0||H.selectAll()},M.prototype.selectLines=function(H,F){var K;(K=this._selectionService)===null||K===void 0||K.selectLines(H,F)},M.prototype._keyDown=function(H){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(H)===!1)return!1;if(!this._compositionHelper.keydown(H))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var F=g.evaluateKeyboardEvent(H,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(H),F.type===3||F.type===2){var K=this.rows-1;return this.scrollLines(F.type===2?-K:K),this.cancel(H,!0)}return F.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,H)||(F.cancel&&this.cancel(H,!0),!F.key||(F.key!==o.C0.ETX&&F.key!==o.C0.CR||(this.textarea.value=""),this._onKey.fire({key:F.key,domEvent:H}),this._showCursor(),this._coreService.triggerDataEvent(F.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(H,!0)))},M.prototype._isThirdLevelShift=function(H,F){var K=H.isMac&&!this.options.macOptionIsMeta&&F.altKey&&!F.ctrlKey&&!F.metaKey||H.isWindows&&F.altKey&&F.ctrlKey&&!F.metaKey;return F.type==="keypress"?K:K&&(!F.keyCode||F.keyCode>47)},M.prototype._keyUp=function(H){this._customKeyEventHandler&&this._customKeyEventHandler(H)===!1||(function(F){return F.keyCode===16||F.keyCode===17||F.keyCode===18}(H)||this.focus(),this.updateCursorStyle(H))},M.prototype._keyPress=function(H){var F;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(H)===!1)return!1;if(this.cancel(H),H.charCode)F=H.charCode;else if(H.which===null||H.which===void 0)F=H.keyCode;else{if(H.which===0||H.charCode===0)return!1;F=H.which}return!(!F||(H.altKey||H.ctrlKey||H.metaKey)&&!this._isThirdLevelShift(this.browser,H))&&(F=String.fromCharCode(F),this._onKey.fire({key:F,domEvent:H}),this._showCursor(),this._coreService.triggerDataEvent(F,!0),!0)},M.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},M.prototype.resize=function(H,F){H!==this.cols||F!==this.rows?B.prototype.resize.call(this,H,F):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},M.prototype._afterResize=function(H,F){var K,j;(K=this._charSizeService)===null||K===void 0||K.measure(),(j=this.viewport)===null||j===void 0||j.syncScrollArea(!0)},M.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var H=1;H<this.rows;H++)this.buffer.lines.push(this.buffer.getBlankLine(y.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},M.prototype.reset=function(){var H,F;this.options.rows=this.rows,this.options.cols=this.cols;var K=this._customKeyEventHandler;this._setup(),B.prototype.reset.call(this),(H=this._selectionService)===null||H===void 0||H.reset(),this._customKeyEventHandler=K,this.refresh(0,this.rows-1),(F=this.viewport)===null||F===void 0||F.syncScrollArea()},M.prototype._reportWindowsOptions=function(H){if(this._renderService)switch(H){case r.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var F=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),K=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(o.C0.ESC+"[4;"+K+";"+F+"t");break;case r.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var j=this._renderService.dimensions.scaledCellWidth.toFixed(0),V=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(o.C0.ESC+"[6;"+V+";"+j+"t")}},M.prototype.cancel=function(H,F){if(this.options.cancelEvents||F)return H.preventDefault(),H.stopPropagation(),!1},M.prototype._visualBell=function(){return!1},M.prototype._soundBell=function(){return this.options.bellStyle==="sound"},M}(D.CoreTerminal);x.Terminal=R},function(O,x,T){"use strict";var v=this&&this.__decorate||function(o,r,a,n){var e,s=arguments.length,t=s<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,a):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,r,a,n);else for(var i=o.length-1;i>=0;i--)(e=o[i])&&(t=(s<3?e(t):s>3?e(r,a,t):e(r,a))||t);return s>3&&t&&Object.defineProperty(r,a,t),t},S=this&&this.__param||function(o,r){return function(a,n){r(a,n,o)}};Object.defineProperty(x,"__esModule",{value:!0}),x.CompositionHelper=void 0;var m=T(5),f=T(1),c=function(){function o(r,a,n,e,s,t){this._textarea=r,this._compositionView=a,this._bufferService=n,this._optionsService=e,this._charSizeService=s,this._coreService=t,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(o.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),o.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},o.prototype.compositionupdate=function(r){var a=this;this._compositionView.textContent=r.data,this.updateCompositionElements(),setTimeout(function(){a._compositionPosition.end=a._textarea.value.length},0)},o.prototype.compositionend=function(){this._finalizeComposition(!0)},o.prototype.keydown=function(r){if(this._isComposing||this._isSendingComposition){if(r.keyCode===229)return!1;if(r.keyCode===16||r.keyCode===17||r.keyCode===18)return!1;this._finalizeComposition(!1)}return r.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},o.prototype._finalizeComposition=function(r){var a=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,r){var n={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(a._isSendingComposition){a._isSendingComposition=!1;var s=void 0;s=a._isComposing?a._textarea.value.substring(n.start,n.end):a._textarea.value.substring(n.start),a._coreService.triggerDataEvent(s,!0)}},0)}else{this._isSendingComposition=!1;var e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}},o.prototype._handleAnyTextareaChanges=function(){var r=this,a=this._textarea.value;setTimeout(function(){if(!r._isComposing){var n=r._textarea.value.replace(a,"");n.length>0&&r._coreService.triggerDataEvent(n,!0)}},0)},o.prototype.updateCompositionElements=function(r){var a=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var n=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),e=this._bufferService.buffer.y*n,s=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=s+"px",this._compositionView.style.top=e+"px",this._compositionView.style.height=n+"px",this._compositionView.style.lineHeight=n+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var t=this._compositionView.getBoundingClientRect();this._textarea.style.left=s+"px",this._textarea.style.top=e+"px",this._textarea.style.width=t.width+"px",this._textarea.style.height=t.height+"px",this._textarea.style.lineHeight=t.height+"px"}r||setTimeout(function(){return a.updateCompositionElements(!0)},0)}},o=v([S(2,f.IBufferService),S(3,f.IOptionsService),S(4,m.ICharSizeService),S(5,f.ICoreService)],o)}();x.CompositionHelper=c},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(s,t){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var u in l)l.hasOwnProperty(u)&&(i[u]=l[u])})(s,t)},function(e,s){function t(){this.constructor=e}v(e,s),e.prototype=s===null?Object.create(s):(t.prototype=s.prototype,new t)}),m=this&&this.__decorate||function(e,s,t,i){var l,u=arguments.length,h=u<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,s,t,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(h=(u<3?l(h):u>3?l(s,t,h):l(s,t))||h);return u>3&&h&&Object.defineProperty(s,t,h),h},f=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(x,"__esModule",{value:!0}),x.Viewport=void 0;var c=T(2),o=T(7),r=T(5),a=T(1),n=function(e){function s(t,i,l,u,h,p,g){var A=e.call(this)||this;return A._scrollLines=t,A._viewportElement=i,A._scrollArea=l,A._bufferService=u,A._optionsService=h,A._charSizeService=p,A._renderService=g,A.scrollBarWidth=0,A._currentRowHeight=0,A._lastRecordedBufferLength=0,A._lastRecordedViewportHeight=0,A._lastRecordedBufferHeight=0,A._lastTouchY=0,A._lastScrollTop=0,A._wheelPartialScroll=0,A._refreshAnimationFrame=null,A._ignoreNextScrollEvent=!1,A.scrollBarWidth=A._viewportElement.offsetWidth-A._scrollArea.offsetWidth||15,A.register(o.addDisposableDomListener(A._viewportElement,"scroll",A._onScroll.bind(A))),setTimeout(function(){return A.syncScrollArea()},0),A}return S(s,e),s.prototype.onThemeChange=function(t){this._viewportElement.style.backgroundColor=t.background.css},s.prototype._refresh=function(t){var i=this;if(t)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return i._innerRefresh()}))},s.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var t=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==t&&(this._lastRecordedBufferHeight=t,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var i=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==i&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=i),this._refreshAnimationFrame=null},s.prototype.syncScrollArea=function(t){if(t===void 0&&(t=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(t);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var i=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===i&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(t)}else this._refresh(t)},s.prototype._onScroll=function(t){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var i=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(i,!0)}},s.prototype._bubbleScroll=function(t,i){var l=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(i<0&&this._viewportElement.scrollTop!==0||i>0&&l<this._lastRecordedBufferHeight)||(t.cancelable&&t.preventDefault(),!1)},s.prototype.onWheel=function(t){var i=this._getPixelsScrolled(t);return i!==0&&(this._viewportElement.scrollTop+=i,this._bubbleScroll(t,i))},s.prototype._getPixelsScrolled=function(t){if(t.deltaY===0)return 0;var i=this._applyScrollModifier(t.deltaY,t);return t.deltaMode===WheelEvent.DOM_DELTA_LINE?i*=this._currentRowHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(i*=this._currentRowHeight*this._bufferService.rows),i},s.prototype.getLinesScrolled=function(t){if(t.deltaY===0)return 0;var i=this._applyScrollModifier(t.deltaY,t);return t.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(i/=this._currentRowHeight+0,this._wheelPartialScroll+=i,i=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(i*=this._bufferService.rows),i},s.prototype._applyScrollModifier=function(t,i){var l=this._optionsService.options.fastScrollModifier;return l==="alt"&&i.altKey||l==="ctrl"&&i.ctrlKey||l==="shift"&&i.shiftKey?t*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:t*this._optionsService.options.scrollSensitivity},s.prototype.onTouchStart=function(t){this._lastTouchY=t.touches[0].pageY},s.prototype.onTouchMove=function(t){var i=this._lastTouchY-t.touches[0].pageY;return this._lastTouchY=t.touches[0].pageY,i!==0&&(this._viewportElement.scrollTop+=i,this._bubbleScroll(t,i))},s=m([f(3,a.IBufferService),f(4,a.IOptionsService),f(5,r.ICharSizeService),f(6,r.IRenderService)],s)}(c.Disposable);x.Viewport=n},function(O,x,T){"use strict";function v(c){return c.replace(/\r?\n/g,"\r")}function S(c,o){return o?"[200~"+c+"[201~":c}function m(c,o,r){c=S(c=v(c),r.decPrivateModes.bracketedPasteMode),r.triggerDataEvent(c,!0),o.value=""}function f(c,o,r){var a=r.getBoundingClientRect(),n=c.clientX-a.left-10,e=c.clientY-a.top-10;o.style.width="20px",o.style.height="20px",o.style.left=n+"px",o.style.top=e+"px",o.style.zIndex="1000",o.focus()}Object.defineProperty(x,"__esModule",{value:!0}),x.rightClickHandler=x.moveTextAreaUnderMouseCursor=x.paste=x.handlePasteEvent=x.copyHandler=x.bracketTextForPaste=x.prepareTextForTerminal=void 0,x.prepareTextForTerminal=v,x.bracketTextForPaste=S,x.copyHandler=function(c,o){c.clipboardData&&c.clipboardData.setData("text/plain",o.selectionText),c.preventDefault()},x.handlePasteEvent=function(c,o,r){c.stopPropagation(),c.clipboardData&&m(c.clipboardData.getData("text/plain"),o,r)},x.paste=m,x.moveTextAreaUnderMouseCursor=f,x.rightClickHandler=function(c,o,r,a,n){f(c,o,r),n&&!a.isClickInSelection(c)&&a.selectWordAtCursor(c),o.value=a.selectionText,o.select()}},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(s,t){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var u in l)l.hasOwnProperty(u)&&(i[u]=l[u])})(s,t)},function(e,s){function t(){this.constructor=e}v(e,s),e.prototype=s===null?Object.create(s):(t.prototype=s.prototype,new t)});Object.defineProperty(x,"__esModule",{value:!0}),x.EscapeSequenceParser=x.VT500_TRANSITION_TABLE=x.TransitionTable=void 0;var m=T(2),f=T(15),c=T(21),o=T(22),r=T(24),a=function(){function e(s){this.table=new Uint8Array(s)}return e.prototype.setDefault=function(s,t){f.fill(this.table,s<<4|t)},e.prototype.add=function(s,t,i,l){this.table[t<<8|s]=i<<4|l},e.prototype.addMany=function(s,t,i,l){for(var u=0;u<s.length;u++)this.table[t<<8|s[u]]=i<<4|l},e}();x.TransitionTable=a,x.VT500_TRANSITION_TABLE=function(){var e=new a(4095),s=Array.apply(null,Array(256)).map(function(p,g){return g}),t=function(g,A){return s.slice(g,A)},i=t(32,127),l=t(0,24);l.push(25),l.push.apply(l,t(28,32));var u,h=t(0,14);for(u in e.setDefault(1,0),e.addMany(i,0,2,0),h)e.addMany([24,26,153,154],u,3,0),e.addMany(t(128,144),u,3,0),e.addMany(t(144,152),u,3,0),e.add(156,u,0,0),e.add(27,u,11,1),e.add(157,u,4,8),e.addMany([152,158,159],u,0,7),e.add(155,u,11,3),e.add(144,u,11,9);return e.addMany(l,0,3,0),e.addMany(l,1,3,1),e.add(127,1,0,1),e.addMany(l,8,0,8),e.addMany(l,3,3,3),e.add(127,3,0,3),e.addMany(l,4,3,4),e.add(127,4,0,4),e.addMany(l,6,3,6),e.addMany(l,5,3,5),e.add(127,5,0,5),e.addMany(l,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(i,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(t(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(i,7,0,7),e.addMany(l,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(t(64,127),3,7,0),e.addMany(t(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(t(48,60),4,8,4),e.addMany(t(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(t(32,64),6,0,6),e.add(127,6,0,6),e.addMany(t(64,127),6,0,0),e.addMany(t(32,48),3,9,5),e.addMany(t(32,48),5,9,5),e.addMany(t(48,64),5,0,6),e.addMany(t(64,127),5,7,0),e.addMany(t(32,48),4,9,5),e.addMany(t(32,48),1,9,2),e.addMany(t(32,48),2,9,2),e.addMany(t(48,127),2,10,0),e.addMany(t(48,80),1,10,0),e.addMany(t(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(t(96,127),1,10,0),e.add(80,1,11,9),e.addMany(l,9,0,9),e.add(127,9,0,9),e.addMany(t(28,32),9,0,9),e.addMany(t(32,48),9,9,12),e.addMany(t(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(l,11,0,11),e.addMany(t(32,128),11,0,11),e.addMany(t(28,32),11,0,11),e.addMany(l,10,0,10),e.add(127,10,0,10),e.addMany(t(28,32),10,0,10),e.addMany(t(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(t(32,48),10,9,12),e.addMany(l,12,0,12),e.add(127,12,0,12),e.addMany(t(28,32),12,0,12),e.addMany(t(32,48),12,9,12),e.addMany(t(48,64),12,0,11),e.addMany(t(64,127),12,12,13),e.addMany(t(64,127),10,12,13),e.addMany(t(64,127),9,12,13),e.addMany(l,13,13,13),e.addMany(i,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(160,0,2,0),e.add(160,8,5,8),e.add(160,6,0,6),e.add(160,11,0,11),e.add(160,13,13,13),e}();var n=function(e){function s(t){t===void 0&&(t=x.VT500_TRANSITION_TABLE);var i=e.call(this)||this;return i._transitions=t,i.initialState=0,i.currentState=i.initialState,i._params=new c.Params,i._params.addParam(0),i._collect=0,i.precedingCodepoint=0,i._printHandlerFb=function(l,u,h){},i._executeHandlerFb=function(l){},i._csiHandlerFb=function(l,u){},i._escHandlerFb=function(l){},i._errorHandlerFb=function(l){return l},i._printHandler=i._printHandlerFb,i._executeHandlers=Object.create(null),i._csiHandlers=Object.create(null),i._escHandlers=Object.create(null),i._oscParser=new o.OscParser,i._dcsParser=new r.DcsParser,i._errorHandler=i._errorHandlerFb,i.setEscHandler({final:"\\"},function(){}),i}return S(s,e),s.prototype._identifier=function(t,i){i===void 0&&(i=[64,126]);var l=0;if(t.prefix){if(t.prefix.length>1)throw new Error("only one byte as prefix supported");if((l=t.prefix.charCodeAt(0))&&60>l||l>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(t.intermediates){if(t.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var u=0;u<t.intermediates.length;++u){var h=t.intermediates.charCodeAt(u);if(32>h||h>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");l<<=8,l|=h}}if(t.final.length!==1)throw new Error("final must be a single byte");var p=t.final.charCodeAt(0);if(i[0]>p||p>i[1])throw new Error("final must be in range "+i[0]+" .. "+i[1]);return l<<=8,l|=p},s.prototype.identToString=function(t){for(var i=[];t;)i.push(String.fromCharCode(255&t)),t>>=8;return i.reverse().join("")},s.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},s.prototype.setPrintHandler=function(t){this._printHandler=t},s.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},s.prototype.addEscHandler=function(t,i){var l=this._identifier(t,[48,126]);this._escHandlers[l]===void 0&&(this._escHandlers[l]=[]);var u=this._escHandlers[l];return u.push(i),{dispose:function(){var p=u.indexOf(i);p!==-1&&u.splice(p,1)}}},s.prototype.setEscHandler=function(t,i){this._escHandlers[this._identifier(t,[48,126])]=[i]},s.prototype.clearEscHandler=function(t){this._escHandlers[this._identifier(t,[48,126])]&&delete this._escHandlers[this._identifier(t,[48,126])]},s.prototype.setEscHandlerFallback=function(t){this._escHandlerFb=t},s.prototype.setExecuteHandler=function(t,i){this._executeHandlers[t.charCodeAt(0)]=i},s.prototype.clearExecuteHandler=function(t){this._executeHandlers[t.charCodeAt(0)]&&delete this._executeHandlers[t.charCodeAt(0)]},s.prototype.setExecuteHandlerFallback=function(t){this._executeHandlerFb=t},s.prototype.addCsiHandler=function(t,i){var l=this._identifier(t);this._csiHandlers[l]===void 0&&(this._csiHandlers[l]=[]);var u=this._csiHandlers[l];return u.push(i),{dispose:function(){var p=u.indexOf(i);p!==-1&&u.splice(p,1)}}},s.prototype.setCsiHandler=function(t,i){this._csiHandlers[this._identifier(t)]=[i]},s.prototype.clearCsiHandler=function(t){this._csiHandlers[this._identifier(t)]&&delete this._csiHandlers[this._identifier(t)]},s.prototype.setCsiHandlerFallback=function(t){this._csiHandlerFb=t},s.prototype.addDcsHandler=function(t,i){return this._dcsParser.addHandler(this._identifier(t),i)},s.prototype.setDcsHandler=function(t,i){this._dcsParser.setHandler(this._identifier(t),i)},s.prototype.clearDcsHandler=function(t){this._dcsParser.clearHandler(this._identifier(t))},s.prototype.setDcsHandlerFallback=function(t){this._dcsParser.setHandlerFallback(t)},s.prototype.addOscHandler=function(t,i){return this._oscParser.addHandler(t,i)},s.prototype.setOscHandler=function(t,i){this._oscParser.setHandler(t,i)},s.prototype.clearOscHandler=function(t){this._oscParser.clearHandler(t)},s.prototype.setOscHandlerFallback=function(t){this._oscParser.setHandlerFallback(t)},s.prototype.setErrorHandler=function(t){this._errorHandler=t},s.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},s.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},s.prototype.parse=function(t,i){for(var l=0,u=0,h=this.currentState,p=this._oscParser,g=this._dcsParser,A=this._collect,y=this._params,E=this._transitions.table,C=0;C<i;++C){switch((u=E[h<<8|((l=t[C])<160?l:160)])>>4){case 2:for(var w=C+1;;++w){if(w>=i||(l=t[w])<32||l>126&&l<160){this._printHandler(t,C,w),C=w-1;break}if(++w>=i||(l=t[w])<32||l>126&&l<160){this._printHandler(t,C,w),C=w-1;break}if(++w>=i||(l=t[w])<32||l>126&&l<160){this._printHandler(t,C,w),C=w-1;break}if(++w>=i||(l=t[w])<32||l>126&&l<160){this._printHandler(t,C,w),C=w-1;break}}break;case 3:this._executeHandlers[l]?this._executeHandlers[l]():this._executeHandlerFb(l),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:C,code:l,currentState:h,collect:A,params:y,abort:!1}).abort)return;break;case 7:for(var b=this._csiHandlers[A<<8|l],I=b?b.length-1:-1;I>=0&&b[I](y)===!1;I--);I<0&&this._csiHandlerFb(A<<8|l,y),this.precedingCodepoint=0;break;case 8:do switch(l){case 59:y.addParam(0);break;case 58:y.addSubParam(-1);break;default:y.addDigit(l-48)}while(++C<i&&(l=t[C])>47&&l<60);C--;break;case 9:A<<=8,A|=l;break;case 10:for(var _=this._escHandlers[A<<8|l],L=_?_.length-1:-1;L>=0&&_[L]()===!1;L--);L<0&&this._escHandlerFb(A<<8|l),this.precedingCodepoint=0;break;case 11:y.reset(),y.addParam(0),A=0;break;case 12:g.hook(A<<8|l,y);break;case 13:for(var D=C+1;;++D)if(D>=i||(l=t[D])===24||l===26||l===27||l>127&&l<160){g.put(t,C,D),C=D-1;break}break;case 14:g.unhook(l!==24&&l!==26),l===27&&(u|=1),y.reset(),y.addParam(0),A=0,this.precedingCodepoint=0;break;case 4:p.start();break;case 5:for(var N=C+1;;N++)if(N>=i||(l=t[N])<32||l>127&&l<=159){p.put(t,C,N),C=N-1;break}break;case 6:p.end(l!==24&&l!==26),l===27&&(u|=1),y.reset(),y.addParam(0),A=0,this.precedingCodepoint=0}h=15&u}this._collect=A,this.currentState=h},s}(m.Disposable);x.EscapeSequenceParser=n},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(g,A){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var C in E)E.hasOwnProperty(C)&&(y[C]=E[C])})(g,A)},function(p,g){function A(){this.constructor=p}v(p,g),p.prototype=g===null?Object.create(g):(A.prototype=g.prototype,new A)}),m=this&&this.__decorate||function(p,g,A,y){var E,C=arguments.length,w=C<3?g:y===null?y=Object.getOwnPropertyDescriptor(g,A):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(p,g,A,y);else for(var b=p.length-1;b>=0;b--)(E=p[b])&&(w=(C<3?E(w):C>3?E(g,A,w):E(g,A))||w);return C>3&&w&&Object.defineProperty(g,A,w),w},f=this&&this.__param||function(p,g){return function(A,y){g(A,y,p)}};Object.defineProperty(x,"__esModule",{value:!0}),x.Renderer=void 0;var c=T(41),o=T(47),r=T(48),a=T(49),n=T(29),e=T(2),s=T(5),t=T(1),i=T(25),l=T(0),u=1,h=function(p){function g(A,y,E,C,w,b,I,_,L){var D=p.call(this)||this;D._colors=A,D._screenElement=y,D._bufferService=w,D._charSizeService=b,D._optionsService=I,D._id=u++,D._onRequestRedraw=new l.EventEmitter;var N=D._optionsService.options.allowTransparency;return D._characterJoinerRegistry=new n.CharacterJoinerRegistry(D._bufferService),D._renderLayers=[new c.TextRenderLayer(D._screenElement,0,D._colors,D._characterJoinerRegistry,N,D._id,D._bufferService,I),new o.SelectionRenderLayer(D._screenElement,1,D._colors,D._id,D._bufferService,I),new a.LinkRenderLayer(D._screenElement,2,D._colors,D._id,E,C,D._bufferService,I),new r.CursorRenderLayer(D._screenElement,3,D._colors,D._id,D._onRequestRedraw,D._bufferService,I,_,L)],D.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},D._devicePixelRatio=window.devicePixelRatio,D._updateDimensions(),D.onOptionsChanged(),D}return S(g,p),Object.defineProperty(g.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),g.prototype.dispose=function(){for(var A=0,y=this._renderLayers;A<y.length;A++)y[A].dispose();p.prototype.dispose.call(this),i.removeTerminalFromCache(this._id)},g.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},g.prototype.setColors=function(A){this._colors=A;for(var y=0,E=this._renderLayers;y<E.length;y++){var C=E[y];C.setColors(this._colors),C.reset()}},g.prototype.onResize=function(A,y){this._updateDimensions();for(var E=0,C=this._renderLayers;E<C.length;E++)C[E].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},g.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},g.prototype.onBlur=function(){this._runOperation(function(A){return A.onBlur()})},g.prototype.onFocus=function(){this._runOperation(function(A){return A.onFocus()})},g.prototype.onSelectionChanged=function(A,y,E){E===void 0&&(E=!1),this._runOperation(function(C){return C.onSelectionChanged(A,y,E)})},g.prototype.onCursorMove=function(){this._runOperation(function(A){return A.onCursorMove()})},g.prototype.onOptionsChanged=function(){this._runOperation(function(A){return A.onOptionsChanged()})},g.prototype.clear=function(){this._runOperation(function(A){return A.reset()})},g.prototype._runOperation=function(A){for(var y=0,E=this._renderLayers;y<E.length;y++)A(E[y])},g.prototype.renderRows=function(A,y){for(var E=0,C=this._renderLayers;E<C.length;E++)C[E].onGridChanged(A,y)},g.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=this._optionsService.options.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},g.prototype.registerCharacterJoiner=function(A){return this._characterJoinerRegistry.registerCharacterJoiner(A)},g.prototype.deregisterCharacterJoiner=function(A){return this._characterJoinerRegistry.deregisterCharacterJoiner(A)},g=m([f(4,t.IBufferService),f(5,s.ICharSizeService),f(6,t.IOptionsService),f(7,t.ICoreService),f(8,s.ICoreBrowserService)],g)}(e.Disposable);x.Renderer=h},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(s,t){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var u in l)l.hasOwnProperty(u)&&(i[u]=l[u])})(s,t)},function(e,s){function t(){this.constructor=e}v(e,s),e.prototype=s===null?Object.create(s):(t.prototype=s.prototype,new t)});Object.defineProperty(x,"__esModule",{value:!0}),x.TextRenderLayer=void 0;var m=T(42),f=T(13),c=T(6),o=T(3),r=T(29),a=T(4),n=function(e){function s(t,i,l,u,h,p,g,A){var y=e.call(this,t,"text",i,h,l,p,g,A)||this;return y._characterWidth=0,y._characterFont="",y._characterOverlapCache={},y._workCell=new a.CellData,y._state=new m.GridCache,y._characterJoinerRegistry=u,y}return S(s,e),s.prototype.resize=function(t){e.prototype.resize.call(this,t);var i=this._getFont(!1,!1);this._characterWidth===t.scaledCharWidth&&this._characterFont===i||(this._characterWidth=t.scaledCharWidth,this._characterFont=i,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},s.prototype.reset=function(){this._state.clear(),this._clearAll()},s.prototype._forEachCell=function(t,i,l,u){for(var h=t;h<=i;h++)for(var p=h+this._bufferService.buffer.ydisp,g=this._bufferService.buffer.lines.get(p),A=l?l.getJoinedCharacters(p):[],y=0;y<this._bufferService.cols;y++){g.loadCell(y,this._workCell);var E=this._workCell,C=!1,w=y;if(E.getWidth()!==0){if(A.length>0&&y===A[0][0]){C=!0;var b=A.shift();E=new r.JoinedCellData(this._workCell,g.translateToString(!0,b[0],b[1]),b[1]-b[0]),w=b[1]-1}!C&&this._isOverlapping(E)&&w<g.length-1&&g.getCodePoint(w+1)===o.NULL_CELL_CODE&&(E.content&=-12582913,E.content|=2<<22),u(E,y,h),y=w}}},s.prototype._drawBackground=function(t,i){var l=this,u=this._ctx,h=this._bufferService.cols,p=0,g=0,A=null;u.save(),this._forEachCell(t,i,null,function(y,E,C){var w=null;y.isInverse()?w=y.isFgDefault()?l._colors.foreground.css:y.isFgRGB()?"rgb("+c.AttributeData.toColorRGB(y.getFgColor()).join(",")+")":l._colors.ansi[y.getFgColor()].css:y.isBgRGB()?w="rgb("+c.AttributeData.toColorRGB(y.getBgColor()).join(",")+")":y.isBgPalette()&&(w=l._colors.ansi[y.getBgColor()].css),A===null&&(p=E,g=C),C!==g?(u.fillStyle=A||"",l._fillCells(p,g,h-p,1),p=E,g=C):A!==w&&(u.fillStyle=A||"",l._fillCells(p,g,E-p,1),p=E,g=C),A=w}),A!==null&&(u.fillStyle=A,this._fillCells(p,g,h-p,1)),u.restore()},s.prototype._drawForeground=function(t,i){var l=this;this._forEachCell(t,i,this._characterJoinerRegistry,function(u,h,p){if(!u.isInvisible()&&(l._drawChars(u,h,p),u.isUnderline())){if(l._ctx.save(),u.isInverse())if(u.isBgDefault())l._ctx.fillStyle=l._colors.background.css;else if(u.isBgRGB())l._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(u.getBgColor()).join(",")+")";else{var g=u.getBgColor();l._optionsService.options.drawBoldTextInBrightColors&&u.isBold()&&g<8&&(g+=8),l._ctx.fillStyle=l._colors.ansi[g].css}else if(u.isFgDefault())l._ctx.fillStyle=l._colors.foreground.css;else if(u.isFgRGB())l._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(u.getFgColor()).join(",")+")";else{var A=u.getFgColor();l._optionsService.options.drawBoldTextInBrightColors&&u.isBold()&&A<8&&(A+=8),l._ctx.fillStyle=l._colors.ansi[A].css}l._fillBottomLineAtCells(h,p,u.getWidth()),l._ctx.restore()}})},s.prototype.onGridChanged=function(t,i){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,t,this._bufferService.cols,i-t+1),this._drawBackground(t,i),this._drawForeground(t,i))},s.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},s.prototype._isOverlapping=function(t){if(t.getWidth()!==1)return!1;if(t.getCode()<256)return!1;var i=t.getChars();if(this._characterOverlapCache.hasOwnProperty(i))return this._characterOverlapCache[i];this._ctx.save(),this._ctx.font=this._characterFont;var l=Math.floor(this._ctx.measureText(i).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[i]=l,l},s}(f.BaseRenderLayer);x.TextRenderLayer=n},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.GridCache=void 0;var v=function(){function S(){this.cache=[]}return S.prototype.resize=function(m,f){for(var c=0;c<m;c++){this.cache.length<=c&&this.cache.push([]);for(var o=this.cache[c].length;o<f;o++)this.cache[c].push(void 0);this.cache[c].length=f}this.cache.length=m},S.prototype.clear=function(){for(var m=0;m<this.cache.length;m++)for(var f=0;f<this.cache[m].length;f++)this.cache[m][f]=void 0},S}();x.GridCache=v},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(u,h){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var A in g)g.hasOwnProperty(A)&&(p[A]=g[A])})(u,h)},function(l,u){function h(){this.constructor=l}v(l,u),l.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)});Object.defineProperty(x,"__esModule",{value:!0}),x.NoneCharAtlas=x.DynamicCharAtlas=x.getGlyphCacheKey=void 0;var m=T(9),f=T(44),c=T(27),o=T(46),r=T(11),a=T(28),n=T(10),e={css:"rgba(0, 0, 0, 0)",rgba:0};function s(l){return l.code<<21|l.bg<<12|l.fg<<3|(l.bold?0:4)+(l.dim?0:2)+(l.italic?0:1)}x.getGlyphCacheKey=s;var t=function(l){function u(h,p){var g=l.call(this)||this;g._config=p,g._drawToCacheCount=0,g._glyphsWaitingOnBitmap=[],g._bitmapCommitTimeout=null,g._bitmap=null,g._cacheCanvas=h.createElement("canvas"),g._cacheCanvas.width=1024,g._cacheCanvas.height=1024,g._cacheCtx=a.throwIfFalsy(g._cacheCanvas.getContext("2d",{alpha:!0}));var A=h.createElement("canvas");A.width=g._config.scaledCharWidth,A.height=g._config.scaledCharHeight,g._tmpCtx=a.throwIfFalsy(A.getContext("2d",{alpha:g._config.allowTransparency})),g._width=Math.floor(1024/g._config.scaledCharWidth),g._height=Math.floor(1024/g._config.scaledCharHeight);var y=g._width*g._height;return g._cacheMap=new o.LRUMap(y),g._cacheMap.prealloc(y),g}return S(u,l),u.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},u.prototype.beginFrame=function(){this._drawToCacheCount=0},u.prototype.draw=function(h,p,g,A){if(p.code===32)return!0;if(!this._canCache(p))return!1;var y=s(p),E=this._cacheMap.get(y);if(E!=null)return this._drawFromCache(h,E,g,A),!0;if(this._drawToCacheCount<100){var C=void 0;C=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var w=this._drawToCache(p,C);return this._cacheMap.set(y,w),this._drawFromCache(h,w,g,A),!0}return!1},u.prototype._canCache=function(h){return h.code<256},u.prototype._toCoordinateX=function(h){return h%this._width*this._config.scaledCharWidth},u.prototype._toCoordinateY=function(h){return Math.floor(h/this._width)*this._config.scaledCharHeight},u.prototype._drawFromCache=function(h,p,g,A){if(!p.isEmpty){var y=this._toCoordinateX(p.index),E=this._toCoordinateY(p.index);h.drawImage(p.inBitmap?this._bitmap:this._cacheCanvas,y,E,this._config.scaledCharWidth,this._config.scaledCharHeight,g,A,this._config.scaledCharWidth,this._config.scaledCharHeight)}},u.prototype._getColorFromAnsiIndex=function(h){return h<this._config.colors.ansi.length?this._config.colors.ansi[h]:c.DEFAULT_ANSI_COLORS[h]},u.prototype._getBackgroundColor=function(h){return this._config.allowTransparency?e:h.bg===m.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:h.bg<256?this._getColorFromAnsiIndex(h.bg):this._config.colors.background},u.prototype._getForegroundColor=function(h){return h.fg===m.INVERTED_DEFAULT_COLOR?n.color.opaque(this._config.colors.background):h.fg<256?this._getColorFromAnsiIndex(h.fg):this._config.colors.foreground},u.prototype._drawToCache=function(h,p){this._drawToCacheCount++,this._tmpCtx.save();var g=this._getBackgroundColor(h);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=g.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var A=h.bold?this._config.fontWeightBold:this._config.fontWeight,y=h.italic?"italic":"";this._tmpCtx.font=y+" "+A+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(h).css,h.dim&&(this._tmpCtx.globalAlpha=m.DIM_OPACITY),this._tmpCtx.fillText(h.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var E=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),C=!1;this._config.allowTransparency||(C=function(_,L){for(var D=!0,N=L.rgba>>>24,R=L.rgba>>>16&255,B=L.rgba>>>8&255,M=0;M<_.data.length;M+=4)_.data[M]===N&&_.data[M+1]===R&&_.data[M+2]===B?_.data[M+3]=0:D=!1;return D}(E,g));var w=this._toCoordinateX(p),b=this._toCoordinateY(p);this._cacheCtx.putImageData(E,w,b);var I={index:p,isEmpty:C,inBitmap:!1};return this._addGlyphToBitmap(I),I},u.prototype._addGlyphToBitmap=function(h){var p=this;!("createImageBitmap"in window)||r.isFirefox||r.isSafari||(this._glyphsWaitingOnBitmap.push(h),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return p._generateBitmap()},100)))},u.prototype._generateBitmap=function(){var h=this,p=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(g){h._bitmap=g;for(var A=0;A<p.length;A++)p[A].inBitmap=!0}),this._bitmapCommitTimeout=null},u}(f.BaseCharAtlas);x.DynamicCharAtlas=t;var i=function(l){function u(h,p){return l.call(this)||this}return S(u,l),u.prototype.draw=function(h,p,g,A){return!1},u}(f.BaseCharAtlas);x.NoneCharAtlas=i},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.BaseCharAtlas=void 0;var v=function(){function S(){this._didWarmUp=!1}return S.prototype.dispose=function(){},S.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},S.prototype._doWarmUp=function(){},S.prototype.beginFrame=function(){},S}();x.BaseCharAtlas=v},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.ColorContrastCache=void 0;var v=function(){function S(){this._color={},this._rgba={}}return S.prototype.clear=function(){this._color={},this._rgba={}},S.prototype.setCss=function(m,f,c){this._rgba[m]||(this._rgba[m]={}),this._rgba[m][f]=c},S.prototype.getCss=function(m,f){return this._rgba[m]?this._rgba[m][f]:void 0},S.prototype.setColor=function(m,f,c){this._color[m]||(this._color[m]={}),this._color[m][f]=c},S.prototype.getColor=function(m,f){return this._color[m]?this._color[m][f]:void 0},S}();x.ColorContrastCache=v},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.LRUMap=void 0;var v=function(){function S(m){this.capacity=m,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return S.prototype._unlinkNode=function(m){var f=m.prev,c=m.next;m===this._head&&(this._head=c),m===this._tail&&(this._tail=f),f!==null&&(f.next=c),c!==null&&(c.prev=f)},S.prototype._appendNode=function(m){var f=this._tail;f!==null&&(f.next=m),m.prev=f,m.next=null,this._tail=m,this._head===null&&(this._head=m)},S.prototype.prealloc=function(m){for(var f=this._nodePool,c=0;c<m;c++)f.push({prev:null,next:null,key:null,value:null})},S.prototype.get=function(m){var f=this._map[m];return f!==void 0?(this._unlinkNode(f),this._appendNode(f),f.value):null},S.prototype.peekValue=function(m){var f=this._map[m];return f!==void 0?f.value:null},S.prototype.peek=function(){var m=this._head;return m===null?null:m.value},S.prototype.set=function(m,f){var c=this._map[m];if(c!==void 0)c=this._map[m],this._unlinkNode(c),c.value=f;else if(this.size>=this.capacity)c=this._head,this._unlinkNode(c),delete this._map[c.key],c.key=m,c.value=f,this._map[m]=c;else{var o=this._nodePool;o.length>0?((c=o.pop()).key=m,c.value=f):c={prev:null,next:null,key:m,value:f},this._map[m]=c,this.size++}this._appendNode(c)},S}();x.LRUMap=v},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(c,o){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var n in a)a.hasOwnProperty(n)&&(r[n]=a[n])})(c,o)},function(f,c){function o(){this.constructor=f}v(f,c),f.prototype=c===null?Object.create(c):(o.prototype=c.prototype,new o)});Object.defineProperty(x,"__esModule",{value:!0}),x.SelectionRenderLayer=void 0;var m=function(f){function c(o,r,a,n,e,s){var t=f.call(this,o,"selection",r,!0,a,n,e,s)||this;return t._clearState(),t}return S(c,f),c.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},c.prototype.resize=function(o){f.prototype.resize.call(this,o),this._clearState()},c.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},c.prototype.onSelectionChanged=function(o,r,a){if(this._didStateChange(o,r,a,this._bufferService.buffer.ydisp))if(this._clearAll(),o&&r){var n=o[1]-this._bufferService.buffer.ydisp,e=r[1]-this._bufferService.buffer.ydisp,s=Math.max(n,0),t=Math.min(e,this._bufferService.rows-1);if(!(s>=this._bufferService.rows||t<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,a){var i=o[0],l=r[0]-i,u=t-s+1;this._fillCells(i,s,l,u)}else{i=n===s?o[0]:0;var h=s===t?r[0]:this._bufferService.cols;this._fillCells(i,s,h-i,1);var p=Math.max(t-s-1,0);if(this._fillCells(0,s+1,this._bufferService.cols,p),s!==t){var g=e===t?r[0]:this._bufferService.cols;this._fillCells(0,t,g,1)}}this._state.start=[o[0],o[1]],this._state.end=[r[0],r[1]],this._state.columnSelectMode=a,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},c.prototype._didStateChange=function(o,r,a,n){return!this._areCoordinatesEqual(o,this._state.start)||!this._areCoordinatesEqual(r,this._state.end)||a!==this._state.columnSelectMode||n!==this._state.ydisp},c.prototype._areCoordinatesEqual=function(o,r){return!(!o||!r)&&o[0]===r[0]&&o[1]===r[1]},c}(T(13).BaseRenderLayer);x.SelectionRenderLayer=m},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(a,n){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var t in s)s.hasOwnProperty(t)&&(e[t]=s[t])})(a,n)},function(r,a){function n(){this.constructor=r}v(r,a),r.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)});Object.defineProperty(x,"__esModule",{value:!0}),x.CursorRenderLayer=void 0;var m=T(13),f=T(4),c=function(r){function a(n,e,s,t,i,l,u,h,p){var g=r.call(this,n,"cursor",e,!0,s,t,l,u)||this;return g._onRequestRedraw=i,g._coreService=h,g._coreBrowserService=p,g._cell=new f.CellData,g._state={x:0,y:0,isFocused:!1,style:"",width:0},g._cursorRenderers={bar:g._renderBarCursor.bind(g),block:g._renderBlockCursor.bind(g),underline:g._renderUnderlineCursor.bind(g)},g}return S(a,r),a.prototype.resize=function(n){r.prototype.resize.call(this,n),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},a.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},a.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},a.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},a.prototype.onOptionsChanged=function(){var n,e=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new o(this._coreBrowserService.isFocused,function(){e._render(!0)})):((n=this._cursorBlinkStateManager)===null||n===void 0||n.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},a.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},a.prototype.onGridChanged=function(n,e){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},a.prototype._render=function(n){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var e=this._bufferService.buffer.ybase+this._bufferService.buffer.y,s=e-this._bufferService.buffer.ydisp;if(s<0||s>=this._bufferService.rows)this._clearCursor();else{var t=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(e).loadCell(t,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var i=this._optionsService.options.cursorStyle;return i&&i!=="block"?this._cursorRenderers[i](t,s,this._cell):this._renderBlurCursor(t,s,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=s,this._state.isFocused=!1,this._state.style=i,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===t&&this._state.y===s&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](t,s,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=s,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},a.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},a.prototype._renderBarCursor=function(n,e,s){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(n,e,this._optionsService.options.cursorWidth),this._ctx.restore()},a.prototype._renderBlockCursor=function(n,e,s){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(n,e,s.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(s,n,e),this._ctx.restore()},a.prototype._renderUnderlineCursor=function(n,e,s){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(n,e),this._ctx.restore()},a.prototype._renderBlurCursor=function(n,e,s){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(n,e,s.getWidth(),1),this._ctx.restore()},a}(m.BaseRenderLayer);x.CursorRenderLayer=c;var o=function(){function r(a,n){this._renderCallback=n,this.isCursorVisible=!0,a&&this._restartInterval()}return Object.defineProperty(r.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),r.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},r.prototype.restartBlinkAnimation=function(){var a=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){a._renderCallback(),a._animationFrame=void 0})))},r.prototype._restartInterval=function(a){var n=this;a===void 0&&(a=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(n._animationTimeRestarted){var e=600-(Date.now()-n._animationTimeRestarted);if(n._animationTimeRestarted=void 0,e>0)return void n._restartInterval(e)}n.isCursorVisible=!1,n._animationFrame=window.requestAnimationFrame(function(){n._renderCallback(),n._animationFrame=void 0}),n._blinkInterval=window.setInterval(function(){if(n._animationTimeRestarted){var s=600-(Date.now()-n._animationTimeRestarted);return n._animationTimeRestarted=void 0,void n._restartInterval(s)}n.isCursorVisible=!n.isCursorVisible,n._animationFrame=window.requestAnimationFrame(function(){n._renderCallback(),n._animationFrame=void 0})},600)},a)},r.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},r.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},r}()},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(a,n){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var t in s)s.hasOwnProperty(t)&&(e[t]=s[t])})(a,n)},function(r,a){function n(){this.constructor=r}v(r,a),r.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)});Object.defineProperty(x,"__esModule",{value:!0}),x.LinkRenderLayer=void 0;var m=T(13),f=T(9),c=T(26),o=function(r){function a(n,e,s,t,i,l,u,h){var p=r.call(this,n,"link",e,!0,s,t,u,h)||this;return i.onShowLinkUnderline(function(g){return p._onShowLinkUnderline(g)}),i.onHideLinkUnderline(function(g){return p._onHideLinkUnderline(g)}),l.onShowLinkUnderline(function(g){return p._onShowLinkUnderline(g)}),l.onHideLinkUnderline(function(g){return p._onHideLinkUnderline(g)}),p}return S(a,r),a.prototype.resize=function(n){r.prototype.resize.call(this,n),this._state=void 0},a.prototype.reset=function(){this._clearCurrentLink()},a.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var n=this._state.y2-this._state.y1-1;n>0&&this._clearCells(0,this._state.y1+1,this._state.cols,n),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},a.prototype._onShowLinkUnderline=function(n){if(n.fg===f.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:n.fg&&c.is256Color(n.fg)?this._ctx.fillStyle=this._colors.ansi[n.fg].css:this._ctx.fillStyle=this._colors.foreground.css,n.y1===n.y2)this._fillBottomLineAtCells(n.x1,n.y1,n.x2-n.x1);else{this._fillBottomLineAtCells(n.x1,n.y1,n.cols-n.x1);for(var e=n.y1+1;e<n.y2;e++)this._fillBottomLineAtCells(0,e,n.cols);this._fillBottomLineAtCells(0,n.y2,n.x2)}this._state=n},a.prototype._onHideLinkUnderline=function(n){this._clearCurrentLink()},a}(m.BaseRenderLayer);x.LinkRenderLayer=o},function(O,x,T){"use strict";var v=this&&this.__decorate||function(r,a,n,e){var s,t=arguments.length,i=t<3?a:e===null?e=Object.getOwnPropertyDescriptor(a,n):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,a,n,e);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(i=(t<3?s(i):t>3?s(a,n,i):s(a,n))||i);return t>3&&i&&Object.defineProperty(a,n,i),i},S=this&&this.__param||function(r,a){return function(n,e){a(n,e,r)}};Object.defineProperty(x,"__esModule",{value:!0}),x.MouseZone=x.Linkifier=void 0;var m=T(0),f=T(1),c=function(){function r(a,n,e){this._bufferService=a,this._logService=n,this._unicodeService=e,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new m.EventEmitter,this._onHideLinkUnderline=new m.EventEmitter,this._onLinkTooltip=new m.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(r.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),r.prototype.attachToDom=function(a,n){this._element=a,this._mouseZoneManager=n},r.prototype.linkifyRows=function(a,n){var e=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=a,this._rowsToLinkify.end=n):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,a),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,n)),this._mouseZoneManager.clearAll(a,n),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return e._linkifyRows()},r._timeBeforeLatency))},r.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var a=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var n=a.ydisp+this._rowsToLinkify.start;if(!(n>=a.lines.length)){for(var e=a.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,s=Math.ceil(2e3/this._bufferService.cols),t=this._bufferService.buffer.iterator(!1,n,e,s,s);t.hasNext();)for(var i=t.next(),l=0;l<this._linkMatchers.length;l++)this._doLinkifyRow(i.range.first,i.content,this._linkMatchers[l]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},r.prototype.registerLinkMatcher=function(a,n,e){if(e===void 0&&(e={}),!n)throw new Error("handler must be defined");var s={id:this._nextLinkMatcherId++,regex:a,handler:n,matchIndex:e.matchIndex,validationCallback:e.validationCallback,hoverTooltipCallback:e.tooltipCallback,hoverLeaveCallback:e.leaveCallback,willLinkActivate:e.willLinkActivate,priority:e.priority||0};return this._addLinkMatcherToList(s),s.id},r.prototype._addLinkMatcherToList=function(a){if(this._linkMatchers.length!==0){for(var n=this._linkMatchers.length-1;n>=0;n--)if(a.priority<=this._linkMatchers[n].priority)return void this._linkMatchers.splice(n+1,0,a);this._linkMatchers.splice(0,0,a)}else this._linkMatchers.push(a)},r.prototype.deregisterLinkMatcher=function(a){for(var n=0;n<this._linkMatchers.length;n++)if(this._linkMatchers[n].id===a)return this._linkMatchers.splice(n,1),!0;return!1},r.prototype._doLinkifyRow=function(a,n,e){for(var s,t=this,i=new RegExp(e.regex.source,(e.regex.flags||"")+"g"),l=-1,u=function(){var g=s[typeof e.matchIndex!="number"?0:e.matchIndex];if(!g)return h._logService.debug("match found without corresponding matchIndex",s,e),"break";if(l=n.indexOf(g,l+1),i.lastIndex=l+g.length,l<0)return"break";var A=h._bufferService.buffer.stringIndexToBufferIndex(a,l);if(A[0]<0)return"break";var y=h._bufferService.buffer.lines.get(A[0]);if(!y)return"break";var E=y.getFg(A[1]),C=E?E>>9&511:void 0;e.validationCallback?e.validationCallback(g,function(w){t._rowsTimeoutId||w&&t._addLink(A[1],A[0]-t._bufferService.buffer.ydisp,g,e,C)}):h._addLink(A[1],A[0]-h._bufferService.buffer.ydisp,g,e,C)},h=this;(s=i.exec(n))!==null&&!(u()==="break"););},r.prototype._addLink=function(a,n,e,s,t){var i=this;if(this._mouseZoneManager&&this._element){var l=this._unicodeService.getStringCellWidth(e),u=a%this._bufferService.cols,h=n+Math.floor(a/this._bufferService.cols),p=(u+l)%this._bufferService.cols,g=h+Math.floor((u+l)/this._bufferService.cols);p===0&&(p=this._bufferService.cols,g--),this._mouseZoneManager.add(new o(u+1,h+1,p+1,g+1,function(A){if(s.handler)return s.handler(A,e);var y=window.open();y?(y.opener=null,y.location.href=e):console.warn("Opening link blocked as opener could not be cleared")},function(){i._onShowLinkUnderline.fire(i._createLinkHoverEvent(u,h,p,g,t)),i._element.classList.add("xterm-cursor-pointer")},function(A){i._onLinkTooltip.fire(i._createLinkHoverEvent(u,h,p,g,t)),s.hoverTooltipCallback&&s.hoverTooltipCallback(A,e,{start:{x:u,y:h},end:{x:p,y:g}})},function(){i._onHideLinkUnderline.fire(i._createLinkHoverEvent(u,h,p,g,t)),i._element.classList.remove("xterm-cursor-pointer"),s.hoverLeaveCallback&&s.hoverLeaveCallback()},function(A){return!s.willLinkActivate||s.willLinkActivate(A,e)}))}},r.prototype._createLinkHoverEvent=function(a,n,e,s,t){return{x1:a,y1:n,x2:e,y2:s,cols:this._bufferService.cols,fg:t}},r._timeBeforeLatency=200,r=v([S(0,f.IBufferService),S(1,f.ILogService),S(2,f.IUnicodeService)],r)}();x.Linkifier=c;var o=function(a,n,e,s,t,i,l,u,h){this.x1=a,this.y1=n,this.x2=e,this.y2=s,this.clickCallback=t,this.hoverCallback=i,this.tooltipCallback=l,this.leaveCallback=u,this.willLinkActivate=h};x.MouseZone=o},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(g,A){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var C in E)E.hasOwnProperty(C)&&(y[C]=E[C])})(g,A)},function(p,g){function A(){this.constructor=p}v(p,g),p.prototype=g===null?Object.create(g):(A.prototype=g.prototype,new A)}),m=this&&this.__decorate||function(p,g,A,y){var E,C=arguments.length,w=C<3?g:y===null?y=Object.getOwnPropertyDescriptor(g,A):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(p,g,A,y);else for(var b=p.length-1;b>=0;b--)(E=p[b])&&(w=(C<3?E(w):C>3?E(g,A,w):E(g,A))||w);return C>3&&w&&Object.defineProperty(g,A,w),w},f=this&&this.__param||function(p,g){return function(A,y){g(A,y,p)}};Object.defineProperty(x,"__esModule",{value:!0}),x.SelectionService=void 0;var c=T(11),o=T(52),r=T(4),a=T(0),n=T(5),e=T(1),s=T(30),t=T(53),i=T(2),l=String.fromCharCode(160),u=new RegExp(l,"g"),h=function(p){function g(A,y,E,C,w,b,I){var _=p.call(this)||this;return _._element=A,_._screenElement=y,_._bufferService=E,_._coreService=C,_._mouseService=w,_._optionsService=b,_._renderService=I,_._dragScrollAmount=0,_._enabled=!0,_._workCell=new r.CellData,_._mouseDownTimeStamp=0,_._onLinuxMouseSelection=_.register(new a.EventEmitter),_._onRedrawRequest=_.register(new a.EventEmitter),_._onSelectionChange=_.register(new a.EventEmitter),_._onRequestScrollLines=_.register(new a.EventEmitter),_._mouseMoveListener=function(L){return _._onMouseMove(L)},_._mouseUpListener=function(L){return _._onMouseUp(L)},_._coreService.onUserInput(function(){_.hasSelection&&_.clearSelection()}),_._trimListener=_._bufferService.buffer.lines.onTrim(function(L){return _._onTrim(L)}),_.register(_._bufferService.buffers.onBufferActivate(function(L){return _._onBufferActivate(L)})),_.enable(),_._model=new o.SelectionModel(_._bufferService),_._activeSelectionMode=0,_}return S(g,p),Object.defineProperty(g.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),g.prototype.dispose=function(){this._removeMouseDownListeners()},g.prototype.reset=function(){this.clearSelection()},g.prototype.disable=function(){this.clearSelection(),this._enabled=!1},g.prototype.enable=function(){this._enabled=!0},Object.defineProperty(g.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"hasSelection",{get:function(){var y=this._model.finalSelectionStart,E=this._model.finalSelectionEnd;return!(!y||!E)&&(y[0]!==E[0]||y[1]!==E[1])},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"selectionText",{get:function(){var y=this._model.finalSelectionStart,E=this._model.finalSelectionEnd;if(!y||!E)return"";var C=this._bufferService.buffer,w=[];if(this._activeSelectionMode===3){if(y[0]===E[0])return"";for(var b=y[1];b<=E[1];b++){var I=C.translateBufferLineToString(b,!0,y[0],E[0]);w.push(I)}}else{var _=y[1]===E[1]?E[0]:void 0;for(w.push(C.translateBufferLineToString(y[1],!0,y[0],_)),b=y[1]+1;b<=E[1]-1;b++){var L=C.lines.get(b);I=C.translateBufferLineToString(b,!0),L&&L.isWrapped?w[w.length-1]+=I:w.push(I)}y[1]!==E[1]&&(L=C.lines.get(E[1]),I=C.translateBufferLineToString(E[1],!0,0,E[0]),L&&L.isWrapped?w[w.length-1]+=I:w.push(I))}return w.map(function(D){return D.replace(u," ")}).join(c.isWindows?`\r
|
|
|
`:`
|
|
|
`)},enumerable:!1,configurable:!0}),g.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},g.prototype.refresh=function(A){var y=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return y._refresh()})),c.isLinux&&A)&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},g.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},g.prototype.isClickInSelection=function(A){var y=this._getMouseBufferCoords(A),E=this._model.finalSelectionStart,C=this._model.finalSelectionEnd;return!!(E&&C&&y)&&this._areCoordsInSelection(y,E,C)},g.prototype._areCoordsInSelection=function(A,y,E){return A[1]>y[1]&&A[1]<E[1]||y[1]===E[1]&&A[1]===y[1]&&A[0]>=y[0]&&A[0]<E[0]||y[1]<E[1]&&A[1]===E[1]&&A[0]<E[0]||y[1]<E[1]&&A[1]===y[1]&&A[0]>=y[0]},g.prototype.selectWordAtCursor=function(A){var y=this._getMouseBufferCoords(A);y&&(this._selectWordAt(y,!1),this._model.selectionEnd=void 0,this.refresh(!0))},g.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},g.prototype.selectLines=function(A,y){this._model.clearSelection(),A=Math.max(A,0),y=Math.min(y,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,A],this._model.selectionEnd=[this._bufferService.cols,y],this.refresh(),this._onSelectionChange.fire()},g.prototype._onTrim=function(A){this._model.onTrim(A)&&this.refresh()},g.prototype._getMouseBufferCoords=function(A){var y=this._mouseService.getCoords(A,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(y)return y[0]--,y[1]--,y[1]+=this._bufferService.buffer.ydisp,y},g.prototype._getMouseEventScrollAmount=function(A){var y=s.getCoordsRelativeToElement(A,this._screenElement)[1],E=this._renderService.dimensions.canvasHeight;return y>=0&&y<=E?0:(y>E&&(y-=E),y=Math.min(Math.max(y,-50),50),(y/=50)/Math.abs(y)+Math.round(14*y))},g.prototype.shouldForceSelection=function(A){return c.isMac?A.altKey&&this._optionsService.options.macOptionClickForcesSelection:A.shiftKey},g.prototype.onMouseDown=function(A){if(this._mouseDownTimeStamp=A.timeStamp,(A.button!==2||!this.hasSelection)&&A.button===0){if(!this._enabled){if(!this.shouldForceSelection(A))return;A.stopPropagation()}A.preventDefault(),this._dragScrollAmount=0,this._enabled&&A.shiftKey?this._onIncrementalClick(A):A.detail===1?this._onSingleClick(A):A.detail===2?this._onDoubleClick(A):A.detail===3&&this._onTripleClick(A),this._addMouseDownListeners(),this.refresh(!0)}},g.prototype._addMouseDownListeners=function(){var A=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return A._dragScroll()},50)},g.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},g.prototype._onIncrementalClick=function(A){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(A))},g.prototype._onSingleClick=function(A){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(A)?3:0,this._model.selectionStart=this._getMouseBufferCoords(A),this._model.selectionStart){this._model.selectionEnd=void 0;var y=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);y&&y.length!==this._model.selectionStart[0]&&y.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},g.prototype._onDoubleClick=function(A){var y=this._getMouseBufferCoords(A);y&&(this._activeSelectionMode=1,this._selectWordAt(y,!0))},g.prototype._onTripleClick=function(A){var y=this._getMouseBufferCoords(A);y&&(this._activeSelectionMode=2,this._selectLineAt(y[1]))},g.prototype.shouldColumnSelect=function(A){return A.altKey&&!(c.isMac&&this._optionsService.options.macOptionClickForcesSelection)},g.prototype._onMouseMove=function(A){if(A.stopImmediatePropagation(),this._model.selectionStart){var y=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(A),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(A),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var E=this._bufferService.buffer;if(this._model.selectionEnd[1]<E.lines.length){var C=E.lines.get(this._model.selectionEnd[1]);C&&C.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}y&&y[0]===this._model.selectionEnd[0]&&y[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},g.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var A=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(A.ydisp+this._bufferService.rows,A.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=A.ydisp),this.refresh()}},g.prototype._onMouseUp=function(A){var y=A.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&y<500&&A.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var E=this._mouseService.getCoords(A,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(E&&E[0]!==void 0&&E[1]!==void 0){var C=t.moveToCellSequence(E[0]-1,E[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(C,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},g.prototype._onBufferActivate=function(A){var y=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=A.activeBuffer.lines.onTrim(function(E){return y._onTrim(E)})},g.prototype._convertViewportColToCharacterIndex=function(A,y){for(var E=y[0],C=0;y[0]>=C;C++){var w=A.loadCell(C,this._workCell).getChars().length;this._workCell.getWidth()===0?E--:w>1&&y[0]!==C&&(E+=w-1)}return E},g.prototype.setSelection=function(A,y,E){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[A,y],this._model.selectionStartLength=E,this.refresh()},g.prototype._getWordAt=function(A,y,E,C){if(E===void 0&&(E=!0),C===void 0&&(C=!0),!(A[0]>=this._bufferService.cols)){var w=this._bufferService.buffer,b=w.lines.get(A[1]);if(b){var I=w.translateBufferLineToString(A[1],!1),_=this._convertViewportColToCharacterIndex(b,A),L=_,D=A[0]-_,N=0,R=0,B=0,M=0;if(I.charAt(_)===" "){for(;_>0&&I.charAt(_-1)===" ";)_--;for(;L<I.length&&I.charAt(L+1)===" ";)L++}else{var H=A[0],F=A[0];b.getWidth(H)===0&&(N++,H--),b.getWidth(F)===2&&(R++,F++);var K=b.getString(F).length;for(K>1&&(M+=K-1,L+=K-1);H>0&&_>0&&!this._isCharWordSeparator(b.loadCell(H-1,this._workCell));){b.loadCell(H-1,this._workCell);var j=this._workCell.getChars().length;this._workCell.getWidth()===0?(N++,H--):j>1&&(B+=j-1,_-=j-1),_--,H--}for(;F<b.length&&L+1<I.length&&!this._isCharWordSeparator(b.loadCell(F+1,this._workCell));){b.loadCell(F+1,this._workCell);var V=this._workCell.getChars().length;this._workCell.getWidth()===2?(R++,F++):V>1&&(M+=V-1,L+=V-1),L++,F++}}L++;var z=_+D-N+B,Y=Math.min(this._bufferService.cols,L-_+N+R-B-M);if(y||I.slice(_,L).trim()!==""){if(E&&z===0&&b.getCodePoint(0)!==32){var ee=w.lines.get(A[1]-1);if(ee&&b.isWrapped&&ee.getCodePoint(this._bufferService.cols-1)!==32){var fe=this._getWordAt([this._bufferService.cols-1,A[1]-1],!1,!0,!1);if(fe){var ie=this._bufferService.cols-fe.start;z-=ie,Y+=ie}}}if(C&&z+Y===this._bufferService.cols&&b.getCodePoint(this._bufferService.cols-1)!==32){var we=w.lines.get(A[1]+1);if(we&&we.isWrapped&&we.getCodePoint(0)!==32){var Ce=this._getWordAt([0,A[1]+1],!1,!1,!0);Ce&&(Y+=Ce.length)}}return{start:z,length:Y}}}}},g.prototype._selectWordAt=function(A,y){var E=this._getWordAt(A,y);if(E){for(;E.start<0;)E.start+=this._bufferService.cols,A[1]--;this._model.selectionStart=[E.start,A[1]],this._model.selectionStartLength=E.length}},g.prototype._selectToWordAt=function(A){var y=this._getWordAt(A,!0);if(y){for(var E=A[1];y.start<0;)y.start+=this._bufferService.cols,E--;if(!this._model.areSelectionValuesReversed())for(;y.start+y.length>this._bufferService.cols;)y.length-=this._bufferService.cols,E++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?y.start:y.start+y.length,E]}},g.prototype._isCharWordSeparator=function(A){return A.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(A.getChars())>=0},g.prototype._selectLineAt=function(A){var y=this._bufferService.buffer.getWrappedRangeForLine(A);this._model.selectionStart=[0,y.first],this._model.selectionEnd=[this._bufferService.cols,y.last],this._model.selectionStartLength=0},g=m([f(2,e.IBufferService),f(3,e.ICoreService),f(4,n.IMouseService),f(5,e.IOptionsService),f(6,n.IRenderService)],g)}(i.Disposable);x.SelectionService=h},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.SelectionModel=void 0;var v=function(){function S(m){this._bufferService=m,this.isSelectAllActive=!1,this.selectionStartLength=0}return S.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(S.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var f=this.selectionStart[0]+this.selectionStartLength;return f>this._bufferService.cols?[f%this._bufferService.cols,this.selectionStart[1]+Math.floor(f/this._bufferService.cols)]:[f,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),S.prototype.areSelectionValuesReversed=function(){var m=this.selectionStart,f=this.selectionEnd;return!(!m||!f)&&(m[1]>f[1]||m[1]===f[1]&&m[0]>f[0])},S.prototype.onTrim=function(m){return this.selectionStart&&(this.selectionStart[1]-=m),this.selectionEnd&&(this.selectionEnd[1]-=m),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},S}();x.SelectionModel=v},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.moveToCellSequence=void 0;var v=T(12);function S(a,n,e,s){var t=a-m(e,a),i=n-m(e,n);return r(Math.abs(t-i)-function(l,u,h){for(var p=0,g=l-m(h,l),A=u-m(h,u),y=0;y<Math.abs(g-A);y++){var E=f(l,u)==="A"?-1:1,C=h.buffer.lines.get(g+E*y);C&&C.isWrapped&&p++}return p}(a,n,e),o(f(a,n),s))}function m(a,n){for(var e=0,s=a.buffer.lines.get(n),t=s&&s.isWrapped;t&&n>=0&&n<a.rows;)e++,t=(s=a.buffer.lines.get(--n))&&s.isWrapped;return e}function f(a,n){return a>n?"A":"B"}function c(a,n,e,s,t,i){for(var l=a,u=n,h="";l!==e||u!==s;)l+=t?1:-1,t&&l>i.cols-1?(h+=i.buffer.translateBufferLineToString(u,!1,a,l),l=0,a=0,u++):!t&&l<0&&(h+=i.buffer.translateBufferLineToString(u,!1,0,a+1),a=l=i.cols-1,u--);return h+i.buffer.translateBufferLineToString(u,!1,a,l)}function o(a,n){var e=n?"O":"[";return v.C0.ESC+e+a}function r(a,n){a=Math.floor(a);for(var e="",s=0;s<a;s++)e+=n;return e}x.moveToCellSequence=function(a,n,e,s){var t,i=e.buffer.x,l=e.buffer.y;if(!e.buffer.hasScrollback)return function(h,p,g,A,y,E){return S(p,A,y,E).length===0?"":r(c(h,p,h,p-m(y,p),!1,y).length,o("D",E))}(i,l,0,n,e,s)+S(l,n,e,s)+function(h,p,g,A,y,E){var C;C=S(p,A,y,E).length>0?A-m(y,A):p;var w=A,b=function(I,_,L,D,N,R){var B;return B=S(L,D,N,R).length>0?D-m(N,D):_,I<L&&B<=D||I>=L&&B<D?"C":"D"}(h,p,g,A,y,E);return r(c(h,C,g,w,b==="C",y).length,o(b,E))}(i,l,a,n,e,s);if(l===n)return t=i>a?"D":"C",r(Math.abs(i-a),o(t,s));t=l>n?"D":"C";var u=Math.abs(l-n);return r(function(h,p){return p.cols-h}(l>n?a:i,e)+(u-1)*e.cols+1+((l>n?i:a)-1),o(t,s))}},function(O,x,T){"use strict";var v=this&&this.__decorate||function(c,o,r,a){var n,e=arguments.length,s=e<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,r):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(c,o,r,a);else for(var t=c.length-1;t>=0;t--)(n=c[t])&&(s=(e<3?n(s):e>3?n(o,r,s):n(o,r))||s);return e>3&&s&&Object.defineProperty(o,r,s),s},S=this&&this.__param||function(c,o){return function(r,a){o(r,a,c)}};Object.defineProperty(x,"__esModule",{value:!0}),x.SoundService=void 0;var m=T(1),f=function(){function c(o){this._optionsService=o}return Object.defineProperty(c,"audioContext",{get:function(){if(!c._audioContext){var r=window.AudioContext||window.webkitAudioContext;if(!r)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;c._audioContext=new r}return c._audioContext},enumerable:!1,configurable:!0}),c.prototype.playBellSound=function(){var o=c.audioContext;if(o){var r=o.createBufferSource();o.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(a){r.buffer=a,r.connect(o.destination),r.start(0)})}},c.prototype._base64ToArrayBuffer=function(o){for(var r=window.atob(o),a=r.length,n=new Uint8Array(a),e=0;e<a;e++)n[e]=r.charCodeAt(e);return n.buffer},c.prototype._removeMimeType=function(o){return o.split(",")[1]},c=v([S(0,m.IOptionsService)],c)}();x.SoundService=f},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(s,t){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var u in l)l.hasOwnProperty(u)&&(i[u]=l[u])})(s,t)},function(e,s){function t(){this.constructor=e}v(e,s),e.prototype=s===null?Object.create(s):(t.prototype=s.prototype,new t)}),m=this&&this.__decorate||function(e,s,t,i){var l,u=arguments.length,h=u<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,s,t,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(h=(u<3?l(h):u>3?l(s,t,h):l(s,t))||h);return u>3&&h&&Object.defineProperty(s,t,h),h},f=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(x,"__esModule",{value:!0}),x.MouseZoneManager=void 0;var c=T(2),o=T(7),r=T(5),a=T(1),n=function(e){function s(t,i,l,u,h,p){var g=e.call(this)||this;return g._element=t,g._screenElement=i,g._bufferService=l,g._mouseService=u,g._selectionService=h,g._optionsService=p,g._zones=[],g._areZonesActive=!1,g._lastHoverCoords=[void 0,void 0],g._initialSelectionLength=0,g.register(o.addDisposableDomListener(g._element,"mousedown",function(A){return g._onMouseDown(A)})),g._mouseMoveListener=function(A){return g._onMouseMove(A)},g._mouseLeaveListener=function(A){return g._onMouseLeave(A)},g._clickListener=function(A){return g._onClick(A)},g}return S(s,e),s.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},s.prototype.add=function(t){this._zones.push(t),this._zones.length===1&&this._activate()},s.prototype.clearAll=function(t,i){if(this._zones.length!==0){t&&i||(t=0,i=this._bufferService.rows-1);for(var l=0;l<this._zones.length;l++){var u=this._zones[l];(u.y1>t&&u.y1<=i+1||u.y2>t&&u.y2<=i+1||u.y1<t&&u.y2>i+1)&&(this._currentZone&&this._currentZone===u&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(l--,1))}this._zones.length===0&&this._deactivate()}},s.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},s.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},s.prototype._onMouseMove=function(t){this._lastHoverCoords[0]===t.pageX&&this._lastHoverCoords[1]===t.pageY||(this._onHover(t),this._lastHoverCoords=[t.pageX,t.pageY])},s.prototype._onHover=function(t){var i=this,l=this._findZoneEventAt(t);l!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),l&&(this._currentZone=l,l.hoverCallback&&l.hoverCallback(t),this._tooltipTimeout=window.setTimeout(function(){return i._onTooltip(t)},this._optionsService.options.linkTooltipHoverDuration)))},s.prototype._onTooltip=function(t){this._tooltipTimeout=void 0;var i=this._findZoneEventAt(t);i&&i.tooltipCallback&&i.tooltipCallback(t)},s.prototype._onMouseDown=function(t){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var i=this._findZoneEventAt(t);(i==null?void 0:i.willLinkActivate(t))&&(t.preventDefault(),t.stopImmediatePropagation())}},s.prototype._onMouseLeave=function(t){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},s.prototype._onClick=function(t){var i=this._findZoneEventAt(t),l=this._getSelectionLength();i&&l===this._initialSelectionLength&&(i.clickCallback(t),t.preventDefault(),t.stopImmediatePropagation())},s.prototype._getSelectionLength=function(){var t=this._selectionService.selectionText;return t?t.length:0},s.prototype._findZoneEventAt=function(t){var i=this._mouseService.getCoords(t,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(i)for(var l=i[0],u=i[1],h=0;h<this._zones.length;h++){var p=this._zones[h];if(p.y1===p.y2){if(u===p.y1&&l>=p.x1&&l<p.x2)return p}else if(u===p.y1&&l>=p.x1||u===p.y2&&l<p.x2||u>p.y1&&u<p.y2)return p}},s=m([f(2,a.IBufferService),f(3,r.IMouseService),f(4,r.ISelectionService),f(5,a.IOptionsService)],s)}(c.Disposable);x.MouseZoneManager=n},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(t,i){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var h in u)u.hasOwnProperty(h)&&(l[h]=u[h])})(t,i)},function(s,t){function i(){this.constructor=s}v(s,t),s.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(x,"__esModule",{value:!0}),x.AccessibilityManager=void 0;var m=T(18),f=T(11),c=T(31),o=T(7),r=T(2),a=T(32),n=T(17),e=function(s){function t(i,l){var u=s.call(this)||this;u._terminal=i,u._renderService=l,u._liveRegionLineCount=0,u._charsToConsume=[],u._charsToAnnounce="",u._accessibilityTreeRoot=document.createElement("div"),u._accessibilityTreeRoot.classList.add("xterm-accessibility"),u._rowContainer=document.createElement("div"),u._rowContainer.classList.add("xterm-accessibility-tree"),u._rowContainer.setAttribute("role","list"),u._rowElements=[];for(var h=0;h<u._terminal.rows;h++)u._rowElements[h]=u._createAccessibilityTreeNode(),u._rowContainer.appendChild(u._rowElements[h]);if(u._topBoundaryFocusListener=function(p){return u._onBoundaryFocus(p,0)},u._bottomBoundaryFocusListener=function(p){return u._onBoundaryFocus(p,1)},u._rowElements[0].addEventListener("focus",u._topBoundaryFocusListener),u._rowElements[u._rowElements.length-1].addEventListener("focus",u._bottomBoundaryFocusListener),u._refreshRowsDimensions(),u._accessibilityTreeRoot.appendChild(u._rowContainer),u._renderRowsDebouncer=new c.RenderDebouncer(u._renderRows.bind(u)),u._refreshRows(),u._liveRegion=document.createElement("div"),u._liveRegion.classList.add("live-region"),u._liveRegion.setAttribute("aria-live","assertive"),u._accessibilityTreeRoot.appendChild(u._liveRegion),!u._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return u._terminal.element.insertAdjacentElement("afterbegin",u._accessibilityTreeRoot),u.register(u._renderRowsDebouncer),u.register(u._terminal.onResize(function(p){return u._onResize(p.rows)})),u.register(u._terminal.onRender(function(p){return u._refreshRows(p.start,p.end)})),u.register(u._terminal.onScroll(function(){return u._refreshRows()})),u.register(u._terminal.onA11yChar(function(p){return u._onChar(p)})),u.register(u._terminal.onLineFeed(function(){return u._onChar(`
|
|
|
`)})),u.register(u._terminal.onA11yTab(function(p){return u._onTab(p)})),u.register(u._terminal.onKey(function(p){return u._onKey(p.key)})),u.register(u._terminal.onBlur(function(){return u._clearLiveRegion()})),u.register(u._renderService.onDimensionsChange(function(){return u._refreshRowsDimensions()})),u._screenDprMonitor=new a.ScreenDprMonitor,u.register(u._screenDprMonitor),u._screenDprMonitor.setListener(function(){return u._refreshRowsDimensions()}),u.register(o.addDisposableDomListener(window,"resize",function(){return u._refreshRowsDimensions()})),u}return S(t,s),t.prototype.dispose=function(){s.prototype.dispose.call(this),n.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},t.prototype._onBoundaryFocus=function(i,l){var u=i.target,h=this._rowElements[l===0?1:this._rowElements.length-2];if(u.getAttribute("aria-posinset")!==(l===0?"1":""+this._terminal.buffer.lines.length)&&i.relatedTarget===h){var p,g;if(l===0?(p=u,g=this._rowElements.pop(),this._rowContainer.removeChild(g)):(p=this._rowElements.shift(),g=u,this._rowContainer.removeChild(p)),p.removeEventListener("focus",this._topBoundaryFocusListener),g.removeEventListener("focus",this._bottomBoundaryFocusListener),l===0){var A=this._createAccessibilityTreeNode();this._rowElements.unshift(A),this._rowContainer.insertAdjacentElement("afterbegin",A)}else A=this._createAccessibilityTreeNode(),this._rowElements.push(A),this._rowContainer.appendChild(A);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(l===0?-1:1),this._rowElements[l===0?1:this._rowElements.length-2].focus(),i.preventDefault(),i.stopImmediatePropagation()}},t.prototype._onResize=function(i){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var l=this._rowContainer.children.length;l<this._terminal.rows;l++)this._rowElements[l]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[l]);for(;this._rowElements.length>i;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var i=document.createElement("div");return i.setAttribute("role","listitem"),i.tabIndex=-1,this._refreshRowDimensions(i),i},t.prototype._onTab=function(i){for(var l=0;l<i;l++)this._onChar(" ")},t.prototype._onChar=function(i){var l=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==i&&(this._charsToAnnounce+=i):this._charsToAnnounce+=i,i===`
|
|
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=m.tooMuchOutput)),f.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){l._accessibilityTreeRoot.appendChild(l._liveRegion)},0))},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,f.isMac&&n.removeElementFromParent(this._liveRegion)},t.prototype._onKey=function(i){this._clearLiveRegion(),this._charsToConsume.push(i)},t.prototype._refreshRows=function(i,l){this._renderRowsDebouncer.refresh(i,l,this._terminal.rows)},t.prototype._renderRows=function(i,l){for(var u=this._terminal.buffer,h=u.lines.length.toString(),p=i;p<=l;p++){var g=u.translateBufferLineToString(u.ydisp+p,!0),A=(u.ydisp+p+1).toString(),y=this._rowElements[p];y&&(g.length===0?y.innerHTML=" ":y.textContent=g,y.setAttribute("aria-posinset",A),y.setAttribute("aria-setsize",h))}this._announceCharacters()},t.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var i=0;i<this._terminal.rows;i++)this._refreshRowDimensions(this._rowElements[i])}},t.prototype._refreshRowDimensions=function(i){i.style.height=this._renderService.dimensions.actualCellHeight+"px"},t.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},t}(r.Disposable);x.AccessibilityManager=e},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(h,p){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,A){g.__proto__=A}||function(g,A){for(var y in A)A.hasOwnProperty(y)&&(g[y]=A[y])})(h,p)},function(u,h){function p(){this.constructor=u}v(u,h),u.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}),m=this&&this.__decorate||function(u,h,p,g){var A,y=arguments.length,E=y<3?h:g===null?g=Object.getOwnPropertyDescriptor(h,p):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(u,h,p,g);else for(var C=u.length-1;C>=0;C--)(A=u[C])&&(E=(y<3?A(E):y>3?A(h,p,E):A(h,p))||E);return y>3&&E&&Object.defineProperty(h,p,E),E},f=this&&this.__param||function(u,h){return function(p,g){h(p,g,u)}};Object.defineProperty(x,"__esModule",{value:!0}),x.DomRenderer=void 0;var c=T(58),o=T(9),r=T(2),a=T(5),n=T(1),e=T(0),s=T(10),t=T(17),i=1,l=function(u){function h(p,g,A,y,E,C,w,b,I){var _=u.call(this)||this;return _._colors=p,_._element=g,_._screenElement=A,_._viewportElement=y,_._linkifier=E,_._linkifier2=C,_._charSizeService=w,_._optionsService=b,_._bufferService=I,_._terminalClass=i++,_._rowElements=[],_._rowContainer=document.createElement("div"),_._rowContainer.classList.add("xterm-rows"),_._rowContainer.style.lineHeight="normal",_._rowContainer.setAttribute("aria-hidden","true"),_._refreshRowElements(_._bufferService.cols,_._bufferService.rows),_._selectionContainer=document.createElement("div"),_._selectionContainer.classList.add("xterm-selection"),_._selectionContainer.setAttribute("aria-hidden","true"),_.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},_._updateDimensions(),_._injectCss(),_._rowFactory=new c.DomRendererRowFactory(document,_._optionsService,_._colors),_._element.classList.add("xterm-dom-renderer-owner-"+_._terminalClass),_._screenElement.appendChild(_._rowContainer),_._screenElement.appendChild(_._selectionContainer),_._linkifier.onShowLinkUnderline(function(L){return _._onLinkHover(L)}),_._linkifier.onHideLinkUnderline(function(L){return _._onLinkLeave(L)}),_._linkifier2.onShowLinkUnderline(function(L){return _._onLinkHover(L)}),_._linkifier2.onHideLinkUnderline(function(L){return _._onLinkLeave(L)}),_}return S(h,u),Object.defineProperty(h.prototype,"onRequestRedraw",{get:function(){return new e.EventEmitter().event},enumerable:!1,configurable:!0}),h.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),t.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),u.prototype.dispose.call(this)},h.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var p=0,g=this._rowElements;p<g.length;p++){var A=g[p];A.style.width=this.dimensions.canvasWidth+"px",A.style.height=this.dimensions.actualCellHeight+"px",A.style.lineHeight=this.dimensions.actualCellHeight+"px",A.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var y=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=y,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},h.prototype.setColors=function(p){this._colors=p,this._injectCss()},h.prototype._injectCss=function(){var p=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var g=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";g+=this._terminalSelector+" span:not(."+c.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+c.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+c.ITALIC_CLASS+" { font-style: italic;}",g+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",g+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",g+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+c.CURSOR_CLASS+"."+c.CURSOR_BLINK_CLASS+":not(."+c.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+c.CURSOR_CLASS+"."+c.CURSOR_BLINK_CLASS+"."+c.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",g+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach(function(A,y){g+=p._terminalSelector+" .xterm-fg-"+y+" { color: "+A.css+"; }"+p._terminalSelector+" .xterm-bg-"+y+" { background-color: "+A.css+"; }"}),g+=this._terminalSelector+" .xterm-fg-"+o.INVERTED_DEFAULT_COLOR+" { color: "+s.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+o.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=g},h.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},h.prototype._refreshRowElements=function(p,g){for(var A=this._rowElements.length;A<=g;A++){var y=document.createElement("div");this._rowContainer.appendChild(y),this._rowElements.push(y)}for(;this._rowElements.length>g;)this._rowContainer.removeChild(this._rowElements.pop())},h.prototype.onResize=function(p,g){this._refreshRowElements(p,g),this._updateDimensions()},h.prototype.onCharSizeChanged=function(){this._updateDimensions()},h.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},h.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},h.prototype.onSelectionChanged=function(p,g,A){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(p&&g){var y=p[1]-this._bufferService.buffer.ydisp,E=g[1]-this._bufferService.buffer.ydisp,C=Math.max(y,0),w=Math.min(E,this._bufferService.rows-1);if(!(C>=this._bufferService.rows||w<0)){var b=document.createDocumentFragment();if(A)b.appendChild(this._createSelectionElement(C,p[0],g[0],w-C+1));else{var I=y===C?p[0]:0,_=C===w?g[0]:this._bufferService.cols;b.appendChild(this._createSelectionElement(C,I,_));var L=w-C-1;if(b.appendChild(this._createSelectionElement(C+1,0,this._bufferService.cols,L)),C!==w){var D=E===w?g[0]:this._bufferService.cols;b.appendChild(this._createSelectionElement(w,0,D))}}this._selectionContainer.appendChild(b)}}},h.prototype._createSelectionElement=function(p,g,A,y){y===void 0&&(y=1);var E=document.createElement("div");return E.style.height=y*this.dimensions.actualCellHeight+"px",E.style.top=p*this.dimensions.actualCellHeight+"px",E.style.left=g*this.dimensions.actualCellWidth+"px",E.style.width=this.dimensions.actualCellWidth*(A-g)+"px",E},h.prototype.onCursorMove=function(){},h.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},h.prototype.clear=function(){for(var p=0,g=this._rowElements;p<g.length;p++)g[p].innerHTML=""},h.prototype.renderRows=function(p,g){for(var A=this._bufferService.buffer.ybase+this._bufferService.buffer.y,y=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),E=this._optionsService.options.cursorBlink,C=p;C<=g;C++){var w=this._rowElements[C];w.innerHTML="";var b=C+this._bufferService.buffer.ydisp,I=this._bufferService.buffer.lines.get(b),_=this._optionsService.options.cursorStyle;w.appendChild(this._rowFactory.createRow(I,b===A,_,y,E,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(h.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),h.prototype.registerCharacterJoiner=function(p){return-1},h.prototype.deregisterCharacterJoiner=function(p){return!1},h.prototype._onLinkHover=function(p){this._setCellUnderline(p.x1,p.x2,p.y1,p.y2,p.cols,!0)},h.prototype._onLinkLeave=function(p){this._setCellUnderline(p.x1,p.x2,p.y1,p.y2,p.cols,!1)},h.prototype._setCellUnderline=function(p,g,A,y,E,C){for(;p!==g||A!==y;){var w=this._rowElements[A];if(!w)return;var b=w.children[p];b&&(b.style.textDecoration=C?"underline":"none"),++p>=E&&(p=0,A++)}},h=m([f(6,a.ICharSizeService),f(7,n.IOptionsService),f(8,n.IBufferService)],h)}(r.Disposable);x.DomRenderer=l},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.DomRendererRowFactory=x.CURSOR_STYLE_UNDERLINE_CLASS=x.CURSOR_STYLE_BAR_CLASS=x.CURSOR_STYLE_BLOCK_CLASS=x.CURSOR_BLINK_CLASS=x.CURSOR_CLASS=x.UNDERLINE_CLASS=x.ITALIC_CLASS=x.DIM_CLASS=x.BOLD_CLASS=void 0;var v=T(9),S=T(3),m=T(4),f=T(10);x.BOLD_CLASS="xterm-bold",x.DIM_CLASS="xterm-dim",x.ITALIC_CLASS="xterm-italic",x.UNDERLINE_CLASS="xterm-underline",x.CURSOR_CLASS="xterm-cursor",x.CURSOR_BLINK_CLASS="xterm-cursor-blink",x.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",x.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",x.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var c=function(){function r(a,n,e){this._document=a,this._optionsService=n,this._colors=e,this._workCell=new m.CellData}return r.prototype.setColors=function(a){this._colors=a},r.prototype.createRow=function(a,n,e,s,t,i,l){for(var u=this._document.createDocumentFragment(),h=0,p=Math.min(a.length,l)-1;p>=0;p--)if(a.loadCell(p,this._workCell).getCode()!==S.NULL_CELL_CODE||n&&p===s){h=p+1;break}for(p=0;p<h;p++){a.loadCell(p,this._workCell);var g=this._workCell.getWidth();if(g!==0){var A=this._document.createElement("span");if(g>1&&(A.style.width=i*g+"px"),n&&p===s)switch(A.classList.add(x.CURSOR_CLASS),t&&A.classList.add(x.CURSOR_BLINK_CLASS),e){case"bar":A.classList.add(x.CURSOR_STYLE_BAR_CLASS);break;case"underline":A.classList.add(x.CURSOR_STYLE_UNDERLINE_CLASS);break;default:A.classList.add(x.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&A.classList.add(x.BOLD_CLASS),this._workCell.isItalic()&&A.classList.add(x.ITALIC_CLASS),this._workCell.isDim()&&A.classList.add(x.DIM_CLASS),this._workCell.isUnderline()&&A.classList.add(x.UNDERLINE_CLASS),this._workCell.isInvisible()?A.textContent=S.WHITESPACE_CELL_CHAR:A.textContent=this._workCell.getChars()||S.WHITESPACE_CELL_CHAR;var y=this._workCell.getFgColor(),E=this._workCell.getFgColorMode(),C=this._workCell.getBgColor(),w=this._workCell.getBgColorMode(),b=!!this._workCell.isInverse();if(b){var I=y;y=C,C=I;var _=E;E=w,w=_}switch(E){case 16777216:case 33554432:this._workCell.isBold()&&y<8&&this._optionsService.options.drawBoldTextInBrightColors&&(y+=8),this._applyMinimumContrast(A,this._colors.background,this._colors.ansi[y])||A.classList.add("xterm-fg-"+y);break;case 50331648:var L=f.rgba.toColor(y>>16&255,y>>8&255,255&y);this._applyMinimumContrast(A,this._colors.background,L)||this._addStyle(A,"color:#"+o(y.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(A,this._colors.background,this._colors.foreground)||b&&A.classList.add("xterm-fg-"+v.INVERTED_DEFAULT_COLOR)}switch(w){case 16777216:case 33554432:A.classList.add("xterm-bg-"+C);break;case 50331648:this._addStyle(A,"background-color:#"+o(C.toString(16),"0",6));break;case 0:default:b&&A.classList.add("xterm-bg-"+v.INVERTED_DEFAULT_COLOR)}u.appendChild(A)}}return u},r.prototype._applyMinimumContrast=function(a,n,e){if(this._optionsService.options.minimumContrastRatio===1)return!1;var s=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return s===void 0&&(s=f.color.ensureContrastRatio(n,e,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,s!=null?s:null)),!!s&&(this._addStyle(a,"color:"+s.css),!0)},r.prototype._addStyle=function(a,n){a.setAttribute("style",""+(a.getAttribute("style")||"")+n+";")},r}();function o(r,a,n){for(;r.length<n;)r=a+r;return r}x.DomRendererRowFactory=c},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.evaluateKeyboardEvent=void 0;var v=T(12),S={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};x.evaluateKeyboardEvent=function(m,f,c,o){var r={type:0,cancel:!1,key:void 0},a=(m.shiftKey?1:0)|(m.altKey?2:0)|(m.ctrlKey?4:0)|(m.metaKey?8:0);switch(m.keyCode){case 0:m.key==="UIKeyInputUpArrow"?r.key=f?v.C0.ESC+"OA":v.C0.ESC+"[A":m.key==="UIKeyInputLeftArrow"?r.key=f?v.C0.ESC+"OD":v.C0.ESC+"[D":m.key==="UIKeyInputRightArrow"?r.key=f?v.C0.ESC+"OC":v.C0.ESC+"[C":m.key==="UIKeyInputDownArrow"&&(r.key=f?v.C0.ESC+"OB":v.C0.ESC+"[B");break;case 8:if(m.shiftKey){r.key=v.C0.BS;break}if(m.altKey){r.key=v.C0.ESC+v.C0.DEL;break}r.key=v.C0.DEL;break;case 9:if(m.shiftKey){r.key=v.C0.ESC+"[Z";break}r.key=v.C0.HT,r.cancel=!0;break;case 13:r.key=m.altKey?v.C0.ESC+v.C0.CR:v.C0.CR,r.cancel=!0;break;case 27:r.key=v.C0.ESC,m.altKey&&(r.key=v.C0.ESC+v.C0.ESC),r.cancel=!0;break;case 37:if(m.metaKey)break;a?(r.key=v.C0.ESC+"[1;"+(a+1)+"D",r.key===v.C0.ESC+"[1;3D"&&(r.key=v.C0.ESC+(c?"b":"[1;5D"))):r.key=f?v.C0.ESC+"OD":v.C0.ESC+"[D";break;case 39:if(m.metaKey)break;a?(r.key=v.C0.ESC+"[1;"+(a+1)+"C",r.key===v.C0.ESC+"[1;3C"&&(r.key=v.C0.ESC+(c?"f":"[1;5C"))):r.key=f?v.C0.ESC+"OC":v.C0.ESC+"[C";break;case 38:if(m.metaKey)break;a?(r.key=v.C0.ESC+"[1;"+(a+1)+"A",c||r.key!==v.C0.ESC+"[1;3A"||(r.key=v.C0.ESC+"[1;5A")):r.key=f?v.C0.ESC+"OA":v.C0.ESC+"[A";break;case 40:if(m.metaKey)break;a?(r.key=v.C0.ESC+"[1;"+(a+1)+"B",c||r.key!==v.C0.ESC+"[1;3B"||(r.key=v.C0.ESC+"[1;5B")):r.key=f?v.C0.ESC+"OB":v.C0.ESC+"[B";break;case 45:m.shiftKey||m.ctrlKey||(r.key=v.C0.ESC+"[2~");break;case 46:r.key=a?v.C0.ESC+"[3;"+(a+1)+"~":v.C0.ESC+"[3~";break;case 36:r.key=a?v.C0.ESC+"[1;"+(a+1)+"H":f?v.C0.ESC+"OH":v.C0.ESC+"[H";break;case 35:r.key=a?v.C0.ESC+"[1;"+(a+1)+"F":f?v.C0.ESC+"OF":v.C0.ESC+"[F";break;case 33:m.shiftKey?r.type=2:r.key=v.C0.ESC+"[5~";break;case 34:m.shiftKey?r.type=3:r.key=v.C0.ESC+"[6~";break;case 112:r.key=a?v.C0.ESC+"[1;"+(a+1)+"P":v.C0.ESC+"OP";break;case 113:r.key=a?v.C0.ESC+"[1;"+(a+1)+"Q":v.C0.ESC+"OQ";break;case 114:r.key=a?v.C0.ESC+"[1;"+(a+1)+"R":v.C0.ESC+"OR";break;case 115:r.key=a?v.C0.ESC+"[1;"+(a+1)+"S":v.C0.ESC+"OS";break;case 116:r.key=a?v.C0.ESC+"[15;"+(a+1)+"~":v.C0.ESC+"[15~";break;case 117:r.key=a?v.C0.ESC+"[17;"+(a+1)+"~":v.C0.ESC+"[17~";break;case 118:r.key=a?v.C0.ESC+"[18;"+(a+1)+"~":v.C0.ESC+"[18~";break;case 119:r.key=a?v.C0.ESC+"[19;"+(a+1)+"~":v.C0.ESC+"[19~";break;case 120:r.key=a?v.C0.ESC+"[20;"+(a+1)+"~":v.C0.ESC+"[20~";break;case 121:r.key=a?v.C0.ESC+"[21;"+(a+1)+"~":v.C0.ESC+"[21~";break;case 122:r.key=a?v.C0.ESC+"[23;"+(a+1)+"~":v.C0.ESC+"[23~";break;case 123:r.key=a?v.C0.ESC+"[24;"+(a+1)+"~":v.C0.ESC+"[24~";break;default:if(!m.ctrlKey||m.shiftKey||m.altKey||m.metaKey)if(c&&!o||!m.altKey||m.metaKey)c&&!m.altKey&&!m.ctrlKey&&m.metaKey?m.keyCode===65&&(r.type=1):m.key&&!m.ctrlKey&&!m.altKey&&!m.metaKey&&m.keyCode>=48&&m.key.length===1?r.key=m.key:m.key&&m.ctrlKey&&m.key==="_"&&(r.key=v.C0.US);else{var n=S[m.keyCode],e=n&&n[m.shiftKey?1:0];if(e)r.key=v.C0.ESC+e;else if(m.keyCode>=65&&m.keyCode<=90){var s=m.ctrlKey?m.keyCode-64:m.keyCode+32;r.key=v.C0.ESC+String.fromCharCode(s)}}else m.keyCode>=65&&m.keyCode<=90?r.key=String.fromCharCode(m.keyCode-64):m.keyCode===32?r.key=v.C0.NUL:m.keyCode>=51&&m.keyCode<=55?r.key=String.fromCharCode(m.keyCode-51+27):m.keyCode===56?r.key=v.C0.DEL:m.keyCode===219?r.key=v.C0.ESC:m.keyCode===220?r.key=v.C0.FS:m.keyCode===221&&(r.key=v.C0.GS)}return r}},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(l,u){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var g in p)p.hasOwnProperty(g)&&(h[g]=p[g])})(l,u)},function(i,l){function u(){this.constructor=i}v(i,l),i.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}),m=this&&this.__decorate||function(i,l,u,h){var p,g=arguments.length,A=g<3?l:h===null?h=Object.getOwnPropertyDescriptor(l,u):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(i,l,u,h);else for(var y=i.length-1;y>=0;y--)(p=i[y])&&(A=(g<3?p(A):g>3?p(l,u,A):p(l,u))||A);return g>3&&A&&Object.defineProperty(l,u,A),A},f=this&&this.__param||function(i,l){return function(u,h){l(u,h,i)}};Object.defineProperty(x,"__esModule",{value:!0}),x.RenderService=void 0;var c=T(31),o=T(0),r=T(2),a=T(32),n=T(7),e=T(1),s=T(5),t=function(i){function l(u,h,p,g,A,y){var E=i.call(this)||this;if(E._renderer=u,E._rowCount=h,E._isPaused=!1,E._needsFullRefresh=!1,E._isNextRenderRedrawOnly=!0,E._needsSelectionRefresh=!1,E._canvasWidth=0,E._canvasHeight=0,E._selectionState={start:void 0,end:void 0,columnSelectMode:!1},E._onDimensionsChange=new o.EventEmitter,E._onRender=new o.EventEmitter,E._onRefreshRequest=new o.EventEmitter,E.register({dispose:function(){return E._renderer.dispose()}}),E._renderDebouncer=new c.RenderDebouncer(function(w,b){return E._renderRows(w,b)}),E.register(E._renderDebouncer),E._screenDprMonitor=new a.ScreenDprMonitor,E._screenDprMonitor.setListener(function(){return E.onDevicePixelRatioChange()}),E.register(E._screenDprMonitor),E.register(y.onResize(function(w){return E._fullRefresh()})),E.register(g.onOptionChange(function(){return E._renderer.onOptionsChanged()})),E.register(A.onCharSizeChange(function(){return E.onCharSizeChanged()})),E._renderer.onRequestRedraw(function(w){return E.refreshRows(w.start,w.end,!0)}),E.register(n.addDisposableDomListener(window,"resize",function(){return E.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var C=new IntersectionObserver(function(w){return E._onIntersectionChange(w[w.length-1])},{threshold:0});C.observe(p),E.register({dispose:function(){return C.disconnect()}})}return E}return S(l,i),Object.defineProperty(l.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),l.prototype._onIntersectionChange=function(u){this._isPaused=u.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},l.prototype.refreshRows=function(u,h,p){p===void 0&&(p=!1),this._isPaused?this._needsFullRefresh=!0:(p||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(u,h,this._rowCount))},l.prototype._renderRows=function(u,h){this._renderer.renderRows(u,h),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:u,end:h}),this._isNextRenderRedrawOnly=!0},l.prototype.resize=function(u,h){this._rowCount=h,this._fireOnCanvasResize()},l.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},l.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},l.prototype.dispose=function(){i.prototype.dispose.call(this)},l.prototype.setRenderer=function(u){var h=this;this._renderer.dispose(),this._renderer=u,this._renderer.onRequestRedraw(function(p){return h.refreshRows(p.start,p.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},l.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},l.prototype.setColors=function(u){this._renderer.setColors(u),this._fullRefresh()},l.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},l.prototype.onResize=function(u,h){this._renderer.onResize(u,h),this._fullRefresh()},l.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},l.prototype.onBlur=function(){this._renderer.onBlur()},l.prototype.onFocus=function(){this._renderer.onFocus()},l.prototype.onSelectionChanged=function(u,h,p){this._selectionState.start=u,this._selectionState.end=h,this._selectionState.columnSelectMode=p,this._renderer.onSelectionChanged(u,h,p)},l.prototype.onCursorMove=function(){this._renderer.onCursorMove()},l.prototype.clear=function(){this._renderer.clear()},l.prototype.registerCharacterJoiner=function(u){return this._renderer.registerCharacterJoiner(u)},l.prototype.deregisterCharacterJoiner=function(u){return this._renderer.deregisterCharacterJoiner(u)},l=m([f(3,e.IOptionsService),f(4,s.ICharSizeService),f(5,e.IBufferService)],l)}(r.Disposable);x.RenderService=t},function(O,x,T){"use strict";var v=this&&this.__decorate||function(r,a,n,e){var s,t=arguments.length,i=t<3?a:e===null?e=Object.getOwnPropertyDescriptor(a,n):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,a,n,e);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(i=(t<3?s(i):t>3?s(a,n,i):s(a,n))||i);return t>3&&i&&Object.defineProperty(a,n,i),i},S=this&&this.__param||function(r,a){return function(n,e){a(n,e,r)}};Object.defineProperty(x,"__esModule",{value:!0}),x.CharSizeService=void 0;var m=T(1),f=T(0),c=function(){function r(a,n,e){this._optionsService=e,this.width=0,this.height=0,this._onCharSizeChange=new f.EventEmitter,this._measureStrategy=new o(a,n,this._optionsService)}return Object.defineProperty(r.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),r.prototype.measure=function(){var a=this._measureStrategy.measure();a.width===this.width&&a.height===this.height||(this.width=a.width,this.height=a.height,this._onCharSizeChange.fire())},r=v([S(2,m.IOptionsService)],r)}();x.CharSizeService=c;var o=function(){function r(a,n,e){this._document=a,this._parentElement=n,this._optionsService=e,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return r.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var a=this._measureElement.getBoundingClientRect();return a.width!==0&&a.height!==0&&(this._result.width=a.width,this._result.height=Math.ceil(a.height)),this._result},r}()},function(O,x,T){"use strict";var v=this&&this.__decorate||function(o,r,a,n){var e,s=arguments.length,t=s<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,a):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,r,a,n);else for(var i=o.length-1;i>=0;i--)(e=o[i])&&(t=(s<3?e(t):s>3?e(r,a,t):e(r,a))||t);return s>3&&t&&Object.defineProperty(r,a,t),t},S=this&&this.__param||function(o,r){return function(a,n){r(a,n,o)}};Object.defineProperty(x,"__esModule",{value:!0}),x.MouseService=void 0;var m=T(5),f=T(30),c=function(){function o(r,a){this._renderService=r,this._charSizeService=a}return o.prototype.getCoords=function(r,a,n,e,s){return f.getCoords(r,a,n,e,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,s)},o.prototype.getRawByteCoords=function(r,a,n,e){var s=this.getCoords(r,a,n,e);return f.getRawByteCoords(s)},o=v([S(0,m.IRenderService),S(1,m.ICharSizeService)],o)}();x.MouseService=c},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(s,t){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var u in l)l.hasOwnProperty(u)&&(i[u]=l[u])})(s,t)},function(e,s){function t(){this.constructor=e}v(e,s),e.prototype=s===null?Object.create(s):(t.prototype=s.prototype,new t)}),m=this&&this.__decorate||function(e,s,t,i){var l,u=arguments.length,h=u<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,s,t,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(h=(u<3?l(h):u>3?l(s,t,h):l(s,t))||h);return u>3&&h&&Object.defineProperty(s,t,h),h},f=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(x,"__esModule",{value:!0}),x.Linkifier2=void 0;var c=T(1),o=T(0),r=T(2),a=T(7),n=function(e){function s(t){var i=e.call(this)||this;return i._bufferService=t,i._linkProviders=[],i._linkCacheDisposables=[],i._isMouseOut=!0,i._activeLine=-1,i._onShowLinkUnderline=i.register(new o.EventEmitter),i._onHideLinkUnderline=i.register(new o.EventEmitter),i.register(r.getDisposeArrayDisposable(i._linkCacheDisposables)),i}return S(s,e),Object.defineProperty(s.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),s.prototype.registerLinkProvider=function(t){var i=this;return this._linkProviders.push(t),{dispose:function(){var u=i._linkProviders.indexOf(t);u!==-1&&i._linkProviders.splice(u,1)}}},s.prototype.attachToDom=function(t,i,l){var u=this;this._element=t,this._mouseService=i,this._renderService=l,this.register(a.addDisposableDomListener(this._element,"mouseleave",function(){u._isMouseOut=!0,u._clearCurrentLink()})),this.register(a.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(a.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},s.prototype._onMouseMove=function(t){if(this._lastMouseEvent=t,this._element&&this._mouseService){var i=this._positionFromMouseEvent(t,this._element,this._mouseService);if(i){this._isMouseOut=!1;for(var l=t.composedPath(),u=0;u<l.length;u++){var h=l[u];if(h.classList.contains("xterm"))break;if(h.classList.contains("xterm-hover"))return}this._lastBufferCell&&i.x===this._lastBufferCell.x&&i.y===this._lastBufferCell.y||(this._onHover(i),this._lastBufferCell=i)}}},s.prototype._onHover=function(t){if(this._activeLine!==t.y)return this._clearCurrentLink(),void this._askForLink(t,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,t)||(this._clearCurrentLink(),this._askForLink(t,!0))},s.prototype._askForLink=function(t,i){var l=this;this._activeProviderReplies&&i||(this._activeProviderReplies=new Map,this._activeLine=t.y);var u=!1;this._linkProviders.forEach(function(h,p){var g;i?((g=l._activeProviderReplies)===null||g===void 0?void 0:g.get(p))&&(u=l._checkLinkProviderResult(p,t,u)):h.provideLinks(t.y,function(A){var y,E;if(!l._isMouseOut){var C=A==null?void 0:A.map(function(w){return{link:w}});(y=l._activeProviderReplies)===null||y===void 0||y.set(p,C),u=l._checkLinkProviderResult(p,t,u),((E=l._activeProviderReplies)===null||E===void 0?void 0:E.size)===l._linkProviders.length&&l._removeIntersectingLinks(t.y,l._activeProviderReplies)}})})},s.prototype._removeIntersectingLinks=function(t,i){for(var l=new Set,u=0;u<i.size;u++){var h=i.get(u);if(h)for(var p=0;p<h.length;p++)for(var g=h[p],A=g.link.range.start.y<t?0:g.link.range.start.x,y=g.link.range.end.y>t?this._bufferService.cols:g.link.range.end.x,E=A;E<=y;E++){if(l.has(E)){h.splice(p--,1);break}l.add(E)}}},s.prototype._checkLinkProviderResult=function(t,i,l){var u,h=this;if(!this._activeProviderReplies)return l;for(var p=this._activeProviderReplies.get(t),g=!1,A=0;A<t;A++)this._activeProviderReplies.has(A)&&!this._activeProviderReplies.get(A)||(g=!0);if(!g&&p){var y=p.find(function(C){return h._linkAtPosition(C.link,i)});y&&(l=!0,this._handleNewLink(y))}if(this._activeProviderReplies.size===this._linkProviders.length&&!l)for(A=0;A<this._activeProviderReplies.size;A++){var E=(u=this._activeProviderReplies.get(A))===null||u===void 0?void 0:u.find(function(C){return h._linkAtPosition(C.link,i)});if(E){l=!0,this._handleNewLink(E);break}}return l},s.prototype._onClick=function(t){if(this._element&&this._mouseService&&this._currentLink){var i=this._positionFromMouseEvent(t,this._element,this._mouseService);i&&this._linkAtPosition(this._currentLink.link,i)&&this._currentLink.link.activate(t,this._currentLink.link.text)}},s.prototype._clearCurrentLink=function(t,i){this._element&&this._currentLink&&this._lastMouseEvent&&(!t||!i||this._currentLink.link.range.start.y>=t&&this._currentLink.link.range.end.y<=i)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,r.disposeArray(this._linkCacheDisposables))},s.prototype._handleNewLink=function(t){var i=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var l=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);l&&this._linkAtPosition(t.link,l)&&(this._currentLink=t,this._currentLink.state={decorations:{underline:t.link.decorations===void 0||t.link.decorations.underline,pointerCursor:t.link.decorations===void 0||t.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,t.link,this._lastMouseEvent),t.link.decorations={},Object.defineProperties(t.link.decorations,{pointerCursor:{get:function(){var h,p;return(p=(h=i._currentLink)===null||h===void 0?void 0:h.state)===null||p===void 0?void 0:p.decorations.pointerCursor},set:function(h){var p,g;((p=i._currentLink)===null||p===void 0?void 0:p.state)&&i._currentLink.state.decorations.pointerCursor!==h&&(i._currentLink.state.decorations.pointerCursor=h,i._currentLink.state.isHovered&&((g=i._element)===null||g===void 0||g.classList.toggle("xterm-cursor-pointer",h)))}},underline:{get:function(){var h,p;return(p=(h=i._currentLink)===null||h===void 0?void 0:h.state)===null||p===void 0?void 0:p.decorations.underline},set:function(h){var p,g,A;((p=i._currentLink)===null||p===void 0?void 0:p.state)&&((A=(g=i._currentLink)===null||g===void 0?void 0:g.state)===null||A===void 0?void 0:A.decorations.underline)!==h&&(i._currentLink.state.decorations.underline=h,i._currentLink.state.isHovered&&i._fireUnderlineEvent(t.link,h))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(u){var h=u.start===0?0:u.start+1+i._bufferService.buffer.ydisp;i._clearCurrentLink(h,u.end+1+i._bufferService.buffer.ydisp)})))}},s.prototype._linkHover=function(t,i,l){var u;((u=this._currentLink)===null||u===void 0?void 0:u.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(i,!0),this._currentLink.state.decorations.pointerCursor&&t.classList.add("xterm-cursor-pointer")),i.hover&&i.hover(l,i.text)},s.prototype._fireUnderlineEvent=function(t,i){var l=t.range,u=this._bufferService.buffer.ydisp,h=this._createLinkUnderlineEvent(l.start.x-1,l.start.y-u-1,l.end.x,l.end.y-u-1,void 0);(i?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(h)},s.prototype._linkLeave=function(t,i,l){var u;((u=this._currentLink)===null||u===void 0?void 0:u.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(i,!1),this._currentLink.state.decorations.pointerCursor&&t.classList.remove("xterm-cursor-pointer")),i.leave&&i.leave(l,i.text)},s.prototype._linkAtPosition=function(t,i){var l=t.range.start.y===t.range.end.y,u=t.range.start.y<i.y,h=t.range.end.y>i.y;return(l&&t.range.start.x<=i.x&&t.range.end.x>=i.x||u&&t.range.end.x>=i.x||h&&t.range.start.x<=i.x||u&&h)&&t.range.start.y<=i.y&&t.range.end.y>=i.y},s.prototype._positionFromMouseEvent=function(t,i,l){var u=l.getCoords(t,i,this._bufferService.cols,this._bufferService.rows);if(u)return{x:u[0],y:u[1]+this._bufferService.buffer.ydisp}},s.prototype._createLinkUnderlineEvent=function(t,i,l,u,h){return{x1:t,y1:i,x2:l,y2:u,cols:this._bufferService.cols,fg:h}},s=m([f(0,c.IBufferService)],s)}(r.Disposable);x.Linkifier2=n},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.CoreBrowserService=void 0;var v=function(){function S(m){this._textarea=m}return Object.defineProperty(S.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),S}();x.CoreBrowserService=v},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(y,E){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,w){C.__proto__=w}||function(C,w){for(var b in w)w.hasOwnProperty(b)&&(C[b]=w[b])})(y,E)},function(A,y){function E(){this.constructor=A}v(A,y),A.prototype=y===null?Object.create(y):(E.prototype=y.prototype,new E)});Object.defineProperty(x,"__esModule",{value:!0}),x.CoreTerminal=void 0;var m=T(2),f=T(1),c=T(66),o=T(67),r=T(68),a=T(74),n=T(75),e=T(0),s=T(76),t=T(77),i=T(78),l=T(80),u=T(81),h=T(19),p=T(82),g=function(A){function y(E){var C=A.call(this)||this;return C._onBinary=new e.EventEmitter,C._onData=new e.EventEmitter,C._onLineFeed=new e.EventEmitter,C._onResize=new e.EventEmitter,C._onScroll=new e.EventEmitter,C._instantiationService=new c.InstantiationService,C.optionsService=new a.OptionsService(E),C._instantiationService.setService(f.IOptionsService,C.optionsService),C._bufferService=C.register(C._instantiationService.createInstance(r.BufferService)),C._instantiationService.setService(f.IBufferService,C._bufferService),C._logService=C._instantiationService.createInstance(o.LogService),C._instantiationService.setService(f.ILogService,C._logService),C._coreService=C.register(C._instantiationService.createInstance(n.CoreService,function(){return C.scrollToBottom()})),C._instantiationService.setService(f.ICoreService,C._coreService),C._coreMouseService=C._instantiationService.createInstance(s.CoreMouseService),C._instantiationService.setService(f.ICoreMouseService,C._coreMouseService),C._dirtyRowService=C._instantiationService.createInstance(t.DirtyRowService),C._instantiationService.setService(f.IDirtyRowService,C._dirtyRowService),C.unicodeService=C._instantiationService.createInstance(i.UnicodeService),C._instantiationService.setService(f.IUnicodeService,C.unicodeService),C._charsetService=C._instantiationService.createInstance(l.CharsetService),C._instantiationService.setService(f.ICharsetService,C._charsetService),C._inputHandler=new h.InputHandler(C._bufferService,C._charsetService,C._coreService,C._dirtyRowService,C._logService,C.optionsService,C._coreMouseService,C.unicodeService),C.register(e.forwardEvent(C._inputHandler.onLineFeed,C._onLineFeed)),C.register(C._inputHandler),C.register(e.forwardEvent(C._bufferService.onResize,C._onResize)),C.register(e.forwardEvent(C._coreService.onData,C._onData)),C.register(e.forwardEvent(C._coreService.onBinary,C._onBinary)),C.register(C.optionsService.onOptionChange(function(w){return C._updateOptions(w)})),C._writeBuffer=new p.WriteBuffer(function(w){return C._inputHandler.parse(w)}),C}return S(y,A),Object.defineProperty(y.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),y.prototype.dispose=function(){var E;this._isDisposed||(A.prototype.dispose.call(this),(E=this._windowsMode)===null||E===void 0||E.dispose(),this._windowsMode=void 0)},y.prototype.write=function(E,C){this._writeBuffer.write(E,C)},y.prototype.writeSync=function(E){this._writeBuffer.writeSync(E)},y.prototype.resize=function(E,C){isNaN(E)||isNaN(C)||(E=Math.max(E,r.MINIMUM_COLS),C=Math.max(C,r.MINIMUM_ROWS),this._bufferService.resize(E,C))},y.prototype.scroll=function(E,C){C===void 0&&(C=!1);var w,b=this._bufferService.buffer;(w=this._cachedBlankLine)&&w.length===this.cols&&w.getFg(0)===E.fg&&w.getBg(0)===E.bg||(w=b.getBlankLine(E,C),this._cachedBlankLine=w),w.isWrapped=C;var I=b.ybase+b.scrollTop,_=b.ybase+b.scrollBottom;if(b.scrollTop===0){var L=b.lines.isFull;_===b.lines.length-1?L?b.lines.recycle().copyFrom(w):b.lines.push(w.clone()):b.lines.splice(_+1,0,w.clone()),L?this._bufferService.isUserScrolling&&(b.ydisp=Math.max(b.ydisp-1,0)):(b.ybase++,this._bufferService.isUserScrolling||b.ydisp++)}else{var D=_-I+1;b.lines.shiftElements(I+1,D-1,-1),b.lines.set(_,w.clone())}this._bufferService.isUserScrolling||(b.ydisp=b.ybase),this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom),this._onScroll.fire(b.ydisp)},y.prototype.scrollLines=function(E,C){var w=this._bufferService.buffer;if(E<0){if(w.ydisp===0)return;this._bufferService.isUserScrolling=!0}else E+w.ydisp>=w.ybase&&(this._bufferService.isUserScrolling=!1);var b=w.ydisp;w.ydisp=Math.max(Math.min(w.ydisp+E,w.ybase),0),b!==w.ydisp&&(C||this._onScroll.fire(w.ydisp))},y.prototype.scrollPages=function(E){this.scrollLines(E*(this.rows-1))},y.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},y.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},y.prototype.scrollToLine=function(E){var C=E-this._bufferService.buffer.ydisp;C!==0&&this.scrollLines(C)},y.prototype.addEscHandler=function(E,C){return this._inputHandler.addEscHandler(E,C)},y.prototype.addDcsHandler=function(E,C){return this._inputHandler.addDcsHandler(E,C)},y.prototype.addCsiHandler=function(E,C){return this._inputHandler.addCsiHandler(E,C)},y.prototype.addOscHandler=function(E,C){return this._inputHandler.addOscHandler(E,C)},y.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},y.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},y.prototype._updateOptions=function(E){var C;switch(E){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((C=this._windowsMode)===null||C===void 0||C.dispose(),this._windowsMode=void 0)}},y.prototype._enableWindowsMode=function(){var E=this;if(!this._windowsMode){var C=[];C.push(this.onLineFeed(u.updateWindowsModeWrappedState.bind(null,this._bufferService))),C.push(this.addCsiHandler({final:"H"},function(){return u.updateWindowsModeWrappedState(E._bufferService),!1})),this._windowsMode={dispose:function(){for(var b=0,I=C;b<I.length;b++)I[b].dispose()}}}},y}(m.Disposable);x.CoreTerminal=g},function(O,x,T){"use strict";var v=this&&this.__spreadArrays||function(){for(var o=0,r=0,a=arguments.length;r<a;r++)o+=arguments[r].length;var n=Array(o),e=0;for(r=0;r<a;r++)for(var s=arguments[r],t=0,i=s.length;t<i;t++,e++)n[e]=s[t];return n};Object.defineProperty(x,"__esModule",{value:!0}),x.InstantiationService=x.ServiceCollection=void 0;var S=T(1),m=T(14),f=function(){function o(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];this._entries=new Map;for(var n=0,e=r;n<e.length;n++){var s=e[n],t=s[0],i=s[1];this.set(t,i)}}return o.prototype.set=function(r,a){var n=this._entries.get(r);return this._entries.set(r,a),n},o.prototype.forEach=function(r){this._entries.forEach(function(a,n){return r(n,a)})},o.prototype.has=function(r){return this._entries.has(r)},o.prototype.get=function(r){return this._entries.get(r)},o}();x.ServiceCollection=f;var c=function(){function o(){this._services=new f,this._services.set(S.IInstantiationService,this)}return o.prototype.setService=function(r,a){this._services.set(r,a)},o.prototype.getService=function(r){return this._services.get(r)},o.prototype.createInstance=function(r){for(var a=[],n=1;n<arguments.length;n++)a[n-1]=arguments[n];for(var e=m.getServiceDependencies(r).sort(function(p,g){return p.index-g.index}),s=[],t=0,i=e;t<i.length;t++){var l=i[t],u=this._services.get(l.id);if(!u)throw new Error("[createInstance] "+r.name+" depends on UNKNOWN service "+l.id+".");s.push(u)}var h=e.length>0?e[0].index:a.length;if(a.length!==h)throw new Error("[createInstance] First service dependency of "+r.name+" at position "+(h+1)+" conflicts with "+a.length+" static arguments");return new(r.bind.apply(r,v([void 0],v(a,s))))},o}();x.InstantiationService=c},function(O,x,T){"use strict";var v=this&&this.__decorate||function(a,n,e,s){var t,i=arguments.length,l=i<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,e):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(a,n,e,s);else for(var u=a.length-1;u>=0;u--)(t=a[u])&&(l=(i<3?t(l):i>3?t(n,e,l):t(n,e))||l);return i>3&&l&&Object.defineProperty(n,e,l),l},S=this&&this.__param||function(a,n){return function(e,s){n(e,s,a)}},m=this&&this.__spreadArrays||function(){for(var a=0,n=0,e=arguments.length;n<e;n++)a+=arguments[n].length;var s=Array(a),t=0;for(n=0;n<e;n++)for(var i=arguments[n],l=0,u=i.length;l<u;l++,t++)s[t]=i[l];return s};Object.defineProperty(x,"__esModule",{value:!0}),x.LogService=x.LogLevel=void 0;var f,c=T(1);!function(a){a[a.DEBUG=0]="DEBUG",a[a.INFO=1]="INFO",a[a.WARN=2]="WARN",a[a.ERROR=3]="ERROR",a[a.OFF=4]="OFF"}(f=x.LogLevel||(x.LogLevel={}));var o={debug:f.DEBUG,info:f.INFO,warn:f.WARN,error:f.ERROR,off:f.OFF},r=function(){function a(n){var e=this;this._optionsService=n,this._updateLogLevel(),this._optionsService.onOptionChange(function(s){s==="logLevel"&&e._updateLogLevel()})}return a.prototype._updateLogLevel=function(){this._logLevel=o[this._optionsService.options.logLevel]},a.prototype._evalLazyOptionalParams=function(n){for(var e=0;e<n.length;e++)typeof n[e]=="function"&&(n[e]=n[e]())},a.prototype._log=function(n,e,s){this._evalLazyOptionalParams(s),n.call.apply(n,m([console,"xterm.js: "+e],s))},a.prototype.debug=function(n){for(var e=[],s=1;s<arguments.length;s++)e[s-1]=arguments[s];this._logLevel<=f.DEBUG&&this._log(console.log,n,e)},a.prototype.info=function(n){for(var e=[],s=1;s<arguments.length;s++)e[s-1]=arguments[s];this._logLevel<=f.INFO&&this._log(console.info,n,e)},a.prototype.warn=function(n){for(var e=[],s=1;s<arguments.length;s++)e[s-1]=arguments[s];this._logLevel<=f.WARN&&this._log(console.warn,n,e)},a.prototype.error=function(n){for(var e=[],s=1;s<arguments.length;s++)e[s-1]=arguments[s];this._logLevel<=f.ERROR&&this._log(console.error,n,e)},a=v([S(0,c.IOptionsService)],a)}();x.LogService=r},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(s,t){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var u in l)l.hasOwnProperty(u)&&(i[u]=l[u])})(s,t)},function(e,s){function t(){this.constructor=e}v(e,s),e.prototype=s===null?Object.create(s):(t.prototype=s.prototype,new t)}),m=this&&this.__decorate||function(e,s,t,i){var l,u=arguments.length,h=u<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,s,t,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(h=(u<3?l(h):u>3?l(s,t,h):l(s,t))||h);return u>3&&h&&Object.defineProperty(s,t,h),h},f=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(x,"__esModule",{value:!0}),x.BufferService=x.MINIMUM_ROWS=x.MINIMUM_COLS=void 0;var c=T(1),o=T(69),r=T(0),a=T(2);x.MINIMUM_COLS=2,x.MINIMUM_ROWS=1;var n=function(e){function s(t){var i=e.call(this)||this;return i._optionsService=t,i.isUserScrolling=!1,i._onResize=new r.EventEmitter,i.cols=Math.max(t.options.cols,x.MINIMUM_COLS),i.rows=Math.max(t.options.rows,x.MINIMUM_ROWS),i.buffers=new o.BufferSet(t,i),i}return S(s,e),Object.defineProperty(s.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),s.prototype.dispose=function(){e.prototype.dispose.call(this),this.buffers.dispose()},s.prototype.resize=function(t,i){this.cols=t,this.rows=i,this.buffers.resize(t,i),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:t,rows:i})},s.prototype.reset=function(){this.buffers.dispose(),this.buffers=new o.BufferSet(this._optionsService,this),this.isUserScrolling=!1},s=m([f(0,c.IOptionsService)],s)}(a.Disposable);x.BufferService=n},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(r,a){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var s in e)e.hasOwnProperty(s)&&(n[s]=e[s])})(r,a)},function(o,r){function a(){this.constructor=o}v(o,r),o.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)});Object.defineProperty(x,"__esModule",{value:!0}),x.BufferSet=void 0;var m=T(70),f=T(0),c=function(o){function r(a,n){var e=o.call(this)||this;return e._onBufferActivate=e.register(new f.EventEmitter),e._normal=new m.Buffer(!0,a,n),e._normal.fillViewportRows(),e._alt=new m.Buffer(!1,a,n),e._activeBuffer=e._normal,e.setupTabStops(),e}return S(r,o),Object.defineProperty(r.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),r.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},r.prototype.activateAltBuffer=function(a){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(a),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},r.prototype.resize=function(a,n){this._normal.resize(a,n),this._alt.resize(a,n)},r.prototype.setupTabStops=function(a){this._normal.setupTabStops(a),this._alt.setupTabStops(a)},r}(T(2).Disposable);x.BufferSet=c},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.BufferStringIterator=x.Buffer=x.MAX_BUFFER_SIZE=void 0;var v=T(71),S=T(16),m=T(4),f=T(3),c=T(72),o=T(73),r=T(20),a=T(6);x.MAX_BUFFER_SIZE=4294967295;var n=function(){function s(t,i,l){this._hasScrollback=t,this._optionsService=i,this._bufferService=l,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=S.DEFAULT_ATTR_DATA.clone(),this.savedCharset=r.DEFAULT_CHARSET,this.markers=[],this._nullCell=m.CellData.fromCharData([0,f.NULL_CELL_CHAR,f.NULL_CELL_WIDTH,f.NULL_CELL_CODE]),this._whitespaceCell=m.CellData.fromCharData([0,f.WHITESPACE_CELL_CHAR,f.WHITESPACE_CELL_WIDTH,f.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new v.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return s.prototype.getNullCell=function(t){return t?(this._nullCell.fg=t.fg,this._nullCell.bg=t.bg,this._nullCell.extended=t.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new a.ExtendedAttrs),this._nullCell},s.prototype.getWhitespaceCell=function(t){return t?(this._whitespaceCell.fg=t.fg,this._whitespaceCell.bg=t.bg,this._whitespaceCell.extended=t.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new a.ExtendedAttrs),this._whitespaceCell},s.prototype.getBlankLine=function(t,i){return new S.BufferLine(this._bufferService.cols,this.getNullCell(t),i)},Object.defineProperty(s.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isCursorInViewport",{get:function(){var i=this.ybase+this.y-this.ydisp;return i>=0&&i<this._rows},enumerable:!1,configurable:!0}),s.prototype._getCorrectBufferLength=function(t){if(!this._hasScrollback)return t;var i=t+this._optionsService.options.scrollback;return i>x.MAX_BUFFER_SIZE?x.MAX_BUFFER_SIZE:i},s.prototype.fillViewportRows=function(t){if(this.lines.length===0){t===void 0&&(t=S.DEFAULT_ATTR_DATA);for(var i=this._rows;i--;)this.lines.push(this.getBlankLine(t))}},s.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new v.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},s.prototype.resize=function(t,i){var l=this.getNullCell(S.DEFAULT_ATTR_DATA),u=this._getCorrectBufferLength(i);if(u>this.lines.maxLength&&(this.lines.maxLength=u),this.lines.length>0){if(this._cols<t)for(var h=0;h<this.lines.length;h++)this.lines.get(h).resize(t,l);var p=0;if(this._rows<i)for(var g=this._rows;g<i;g++)this.lines.length<i+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new S.BufferLine(t,l)):this.ybase>0&&this.lines.length<=this.ybase+this.y+p+1?(this.ybase--,p++,this.ydisp>0&&this.ydisp--):this.lines.push(new S.BufferLine(t,l)));else for(g=this._rows;g>i;g--)this.lines.length>i+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(u<this.lines.maxLength){var A=this.lines.length-u;A>0&&(this.lines.trimStart(A),this.ybase=Math.max(this.ybase-A,0),this.ydisp=Math.max(this.ydisp-A,0),this.savedY=Math.max(this.savedY-A,0)),this.lines.maxLength=u}this.x=Math.min(this.x,t-1),this.y=Math.min(this.y,i-1),p&&(this.y+=p),this.savedX=Math.min(this.savedX,t-1),this.scrollTop=0}if(this.scrollBottom=i-1,this._isReflowEnabled&&(this._reflow(t,i),this._cols>t))for(h=0;h<this.lines.length;h++)this.lines.get(h).resize(t,l);this._cols=t,this._rows=i},Object.defineProperty(s.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),s.prototype._reflow=function(t,i){this._cols!==t&&(t>this._cols?this._reflowLarger(t,i):this._reflowSmaller(t,i))},s.prototype._reflowLarger=function(t,i){var l=c.reflowLargerGetLinesToRemove(this.lines,this._cols,t,this.ybase+this.y,this.getNullCell(S.DEFAULT_ATTR_DATA));if(l.length>0){var u=c.reflowLargerCreateNewLayout(this.lines,l);c.reflowLargerApplyNewLayout(this.lines,u.layout),this._reflowLargerAdjustViewport(t,i,u.countRemoved)}},s.prototype._reflowLargerAdjustViewport=function(t,i,l){for(var u=this.getNullCell(S.DEFAULT_ATTR_DATA),h=l;h-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<i&&this.lines.push(new S.BufferLine(t,u))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-l,0)},s.prototype._reflowSmaller=function(t,i){for(var l=this.getNullCell(S.DEFAULT_ATTR_DATA),u=[],h=0,p=this.lines.length-1;p>=0;p--){var g=this.lines.get(p);if(!(!g||!g.isWrapped&&g.getTrimmedLength()<=t)){for(var A=[g];g.isWrapped&&p>0;)g=this.lines.get(--p),A.unshift(g);var y=this.ybase+this.y;if(!(y>=p&&y<p+A.length)){var E=A[A.length-1].getTrimmedLength(),C=c.reflowSmallerGetNewLineLengths(A,this._cols,t),w=C.length-A.length,b=void 0;b=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+w):Math.max(0,this.lines.length-this.lines.maxLength+w);for(var I=[],_=0;_<w;_++){var L=this.getBlankLine(S.DEFAULT_ATTR_DATA,!0);I.push(L)}I.length>0&&(u.push({start:p+A.length+h,newLines:I}),h+=I.length),A.push.apply(A,I);var D=C.length-1,N=C[D];N===0&&(N=C[--D]);for(var R=A.length-w-1,B=E;R>=0;){var M=Math.min(B,N);if(A[D].copyCellsFrom(A[R],B-M,N-M,M,!0),(N-=M)===0&&(N=C[--D]),(B-=M)===0){R--;var H=Math.max(R,0);B=c.getWrappedLineTrimmedLength(A,H,this._cols)}}for(_=0;_<A.length;_++)C[_]<t&&A[_].setCell(C[_],l);for(var F=w-b;F-- >0;)this.ybase===0?this.y<i-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+h)-i&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+w,this.ybase+i-1)}}}if(u.length>0){var K=[],j=[];for(_=0;_<this.lines.length;_++)j.push(this.lines.get(_));var V=this.lines.length,z=V-1,Y=0,ee=u[Y];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+h);var fe=0;for(_=Math.min(this.lines.maxLength-1,V+h-1);_>=0;_--)if(ee&&ee.start>z+fe){for(var ie=ee.newLines.length-1;ie>=0;ie--)this.lines.set(_--,ee.newLines[ie]);_++,K.push({index:z+1,amount:ee.newLines.length}),fe+=ee.newLines.length,ee=u[++Y]}else this.lines.set(_,j[z--]);var we=0;for(_=K.length-1;_>=0;_--)K[_].index+=we,this.lines.onInsertEmitter.fire(K[_]),we+=K[_].amount;var Ce=Math.max(0,V+h-this.lines.maxLength);Ce>0&&this.lines.onTrimEmitter.fire(Ce)}},s.prototype.stringIndexToBufferIndex=function(t,i,l){for(l===void 0&&(l=!1);i;){var u=this.lines.get(t);if(!u)return[-1,-1];for(var h=l?u.getTrimmedLength():u.length,p=0;p<h;++p)if(u.get(p)[f.CHAR_DATA_WIDTH_INDEX]&&(i-=u.get(p)[f.CHAR_DATA_CHAR_INDEX].length||1),i<0)return[t,p];t++}return[t,0]},s.prototype.translateBufferLineToString=function(t,i,l,u){l===void 0&&(l=0);var h=this.lines.get(t);return h?h.translateToString(i,l,u):""},s.prototype.getWrappedRangeForLine=function(t){for(var i=t,l=t;i>0&&this.lines.get(i).isWrapped;)i--;for(;l+1<this.lines.length&&this.lines.get(l+1).isWrapped;)l++;return{first:i,last:l}},s.prototype.setupTabStops=function(t){for(t!=null?this.tabs[t]||(t=this.prevStop(t)):(this.tabs={},t=0);t<this._cols;t+=this._optionsService.options.tabStopWidth)this.tabs[t]=!0},s.prototype.prevStop=function(t){for(t==null&&(t=this.x);!this.tabs[--t]&&t>0;);return t>=this._cols?this._cols-1:t<0?0:t},s.prototype.nextStop=function(t){for(t==null&&(t=this.x);!this.tabs[++t]&&t<this._cols;);return t>=this._cols?this._cols-1:t<0?0:t},s.prototype.addMarker=function(t){var i=this,l=new o.Marker(t);return this.markers.push(l),l.register(this.lines.onTrim(function(u){l.line-=u,l.line<0&&l.dispose()})),l.register(this.lines.onInsert(function(u){l.line>=u.index&&(l.line+=u.amount)})),l.register(this.lines.onDelete(function(u){l.line>=u.index&&l.line<u.index+u.amount&&l.dispose(),l.line>u.index&&(l.line-=u.amount)})),l.register(l.onDispose(function(){return i._removeMarker(l)})),l},s.prototype._removeMarker=function(t){this.markers.splice(this.markers.indexOf(t),1)},s.prototype.iterator=function(t,i,l,u,h){return new e(this,t,i,l,u,h)},s}();x.Buffer=n;var e=function(){function s(t,i,l,u,h,p){l===void 0&&(l=0),u===void 0&&(u=t.lines.length),h===void 0&&(h=0),p===void 0&&(p=0),this._buffer=t,this._trimRight=i,this._startIndex=l,this._endIndex=u,this._startOverscan=h,this._endOverscan=p,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return s.prototype.hasNext=function(){return this._current<this._endIndex},s.prototype.next=function(){var t=this._buffer.getWrappedRangeForLine(this._current);t.first<this._startIndex-this._startOverscan&&(t.first=this._startIndex-this._startOverscan),t.last>this._endIndex+this._endOverscan&&(t.last=this._endIndex+this._endOverscan),t.first=Math.max(t.first,0),t.last=Math.min(t.last,this._buffer.lines.length);for(var i="",l=t.first;l<=t.last;++l)i+=this._buffer.translateBufferLineToString(l,this._trimRight);return this._current=t.last+1,{range:t,content:i}},s}();x.BufferStringIterator=e},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.CircularList=void 0;var v=T(0),S=function(){function m(f){this._maxLength=f,this.onDeleteEmitter=new v.EventEmitter,this.onInsertEmitter=new v.EventEmitter,this.onTrimEmitter=new v.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(m.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"maxLength",{get:function(){return this._maxLength},set:function(c){if(this._maxLength!==c){for(var o=new Array(c),r=0;r<Math.min(c,this.length);r++)o[r]=this._array[this._getCyclicIndex(r)];this._array=o,this._maxLength=c,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"length",{get:function(){return this._length},set:function(c){if(c>this._length)for(var o=this._length;o<c;o++)this._array[o]=void 0;this._length=c},enumerable:!1,configurable:!0}),m.prototype.get=function(f){return this._array[this._getCyclicIndex(f)]},m.prototype.set=function(f,c){this._array[this._getCyclicIndex(f)]=c},m.prototype.push=function(f){this._array[this._getCyclicIndex(this._length)]=f,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},m.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(m.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),m.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},m.prototype.splice=function(f,c){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];if(c){for(var a=f;a<this._length-c;a++)this._array[this._getCyclicIndex(a)]=this._array[this._getCyclicIndex(a+c)];this._length-=c}for(a=this._length-1;a>=f;a--)this._array[this._getCyclicIndex(a+o.length)]=this._array[this._getCyclicIndex(a)];for(a=0;a<o.length;a++)this._array[this._getCyclicIndex(f+a)]=o[a];if(this._length+o.length>this._maxLength){var n=this._length+o.length-this._maxLength;this._startIndex+=n,this._length=this._maxLength,this.onTrimEmitter.fire(n)}else this._length+=o.length},m.prototype.trimStart=function(f){f>this._length&&(f=this._length),this._startIndex+=f,this._length-=f,this.onTrimEmitter.fire(f)},m.prototype.shiftElements=function(f,c,o){if(!(c<=0)){if(f<0||f>=this._length)throw new Error("start argument out of range");if(f+o<0)throw new Error("Cannot shift elements in list beyond index 0");if(o>0){for(var r=c-1;r>=0;r--)this.set(f+r+o,this.get(f+r));var a=f+c+o-this._length;if(a>0)for(this._length+=a;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(r=0;r<c;r++)this.set(f+r+o,this.get(f+r))}},m.prototype._getCyclicIndex=function(f){return(this._startIndex+f)%this._maxLength},m}();x.CircularList=S},function(O,x,T){"use strict";function v(S,m,f){if(m===S.length-1)return S[m].getTrimmedLength();var c=!S[m].hasContent(f-1)&&S[m].getWidth(f-1)===1,o=S[m+1].getWidth(0)===2;return c&&o?f-1:f}Object.defineProperty(x,"__esModule",{value:!0}),x.getWrappedLineTrimmedLength=x.reflowSmallerGetNewLineLengths=x.reflowLargerApplyNewLayout=x.reflowLargerCreateNewLayout=x.reflowLargerGetLinesToRemove=void 0,x.reflowLargerGetLinesToRemove=function(S,m,f,c,o){for(var r=[],a=0;a<S.length-1;a++){var n=a,e=S.get(++n);if(e.isWrapped){for(var s=[S.get(a)];n<S.length&&e.isWrapped;)s.push(e),e=S.get(++n);if(c>=a&&c<n)a+=s.length-1;else{for(var t=0,i=v(s,t,m),l=1,u=0;l<s.length;){var h=v(s,l,m),p=h-u,g=f-i,A=Math.min(p,g);s[t].copyCellsFrom(s[l],u,i,A,!1),(i+=A)===f&&(t++,i=0),(u+=A)===h&&(l++,u=0),i===0&&t!==0&&s[t-1].getWidth(f-1)===2&&(s[t].copyCellsFrom(s[t-1],f-1,i++,1,!1),s[t-1].setCell(f-1,o))}s[t].replaceCells(i,f,o);for(var y=0,E=s.length-1;E>0&&(E>t||s[E].getTrimmedLength()===0);E--)y++;y>0&&(r.push(a+s.length-y),r.push(y)),a+=s.length-1}}}return r},x.reflowLargerCreateNewLayout=function(S,m){for(var f=[],c=0,o=m[c],r=0,a=0;a<S.length;a++)if(o===a){var n=m[++c];S.onDeleteEmitter.fire({index:a-r,amount:n}),a+=n-1,r+=n,o=m[++c]}else f.push(a);return{layout:f,countRemoved:r}},x.reflowLargerApplyNewLayout=function(S,m){for(var f=[],c=0;c<m.length;c++)f.push(S.get(m[c]));for(c=0;c<f.length;c++)S.set(c,f[c]);S.length=m.length},x.reflowSmallerGetNewLineLengths=function(S,m,f){for(var c=[],o=S.map(function(i,l){return v(S,l,m)}).reduce(function(i,l){return i+l}),r=0,a=0,n=0;n<o;){if(o-n<f){c.push(o-n);break}r+=f;var e=v(S,a,m);r>e&&(r-=e,a++);var s=S[a].getWidth(r-1)===2;s&&r--;var t=s?f-1:f;c.push(t),n+=t}return c},x.getWrappedLineTrimmedLength=v},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(o,r){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var e in n)n.hasOwnProperty(e)&&(a[e]=n[e])})(o,r)},function(c,o){function r(){this.constructor=c}v(c,o),c.prototype=o===null?Object.create(o):(r.prototype=o.prototype,new r)});Object.defineProperty(x,"__esModule",{value:!0}),x.Marker=void 0;var m=T(0),f=function(c){function o(r){var a=c.call(this)||this;return a.line=r,a._id=o._nextId++,a.isDisposed=!1,a._onDispose=new m.EventEmitter,a}return S(o,c),Object.defineProperty(o.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),o.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},o._nextId=1,o}(T(2).Disposable);x.Marker=f},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.OptionsService=x.DEFAULT_OPTIONS=x.DEFAULT_BELL_SOUND=void 0;var v=T(0),S=T(11),m=T(33);x.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",x.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:x.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:S.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var f=["cols","rows"],c=function(){function o(r){this._onOptionChange=new v.EventEmitter,this.options=m.clone(x.DEFAULT_OPTIONS);for(var a=0,n=Object.keys(r);a<n.length;a++){var e=n[a];if(e in this.options){var s=r[e];this.options[e]=s}}}return Object.defineProperty(o.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),o.prototype.setOption=function(r,a){if(!(r in x.DEFAULT_OPTIONS))throw new Error('No option with key "'+r+'"');if(f.indexOf(r)!==-1)throw new Error('Option "'+r+'" can only be set in the constructor');this.options[r]!==a&&(a=this._sanitizeAndValidateOption(r,a),this.options[r]!==a&&(this.options[r]=a,this._onOptionChange.fire(r)))},o.prototype._sanitizeAndValidateOption=function(r,a){switch(r){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":a||(a=x.DEFAULT_OPTIONS[r]);break;case"cursorWidth":a=Math.floor(a);case"lineHeight":case"tabStopWidth":if(a<1)throw new Error(r+" cannot be less than 1, value: "+a);break;case"minimumContrastRatio":a=Math.max(1,Math.min(21,Math.round(10*a)/10));break;case"scrollback":if((a=Math.min(a,4294967295))<0)throw new Error(r+" cannot be less than 0, value: "+a);break;case"fastScrollSensitivity":case"scrollSensitivity":if(a<=0)throw new Error(r+" cannot be less than or equal to 0, value: "+a)}return a},o.prototype.getOption=function(r){if(!(r in x.DEFAULT_OPTIONS))throw new Error('No option with key "'+r+'"');return this.options[r]},o}();x.OptionsService=c},function(O,x,T){"use strict";var v,S=this&&this.__extends||(v=function(i,l){return(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var p in h)h.hasOwnProperty(p)&&(u[p]=h[p])})(i,l)},function(t,i){function l(){this.constructor=t}v(t,i),t.prototype=i===null?Object.create(i):(l.prototype=i.prototype,new l)}),m=this&&this.__decorate||function(t,i,l,u){var h,p=arguments.length,g=p<3?i:u===null?u=Object.getOwnPropertyDescriptor(i,l):u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(t,i,l,u);else for(var A=t.length-1;A>=0;A--)(h=t[A])&&(g=(p<3?h(g):p>3?h(i,l,g):h(i,l))||g);return p>3&&g&&Object.defineProperty(i,l,g),g},f=this&&this.__param||function(t,i){return function(l,u){i(l,u,t)}};Object.defineProperty(x,"__esModule",{value:!0}),x.CoreService=void 0;var c=T(1),o=T(0),r=T(33),a=T(2),n=Object.freeze({insertMode:!1}),e=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),s=function(t){function i(l,u,h,p){var g=t.call(this)||this;return g._bufferService=u,g._logService=h,g._optionsService=p,g.isCursorInitialized=!1,g.isCursorHidden=!1,g._onData=g.register(new o.EventEmitter),g._onUserInput=g.register(new o.EventEmitter),g._onBinary=g.register(new o.EventEmitter),g._scrollToBottom=l,g.register({dispose:function(){return g._scrollToBottom=void 0}}),g.modes=r.clone(n),g.decPrivateModes=r.clone(e),g}return S(i,t),Object.defineProperty(i.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),i.prototype.reset=function(){this.modes=r.clone(n),this.decPrivateModes=r.clone(e)},i.prototype.triggerDataEvent=function(l,u){if(u===void 0&&(u=!1),!this._optionsService.options.disableStdin){var h=this._bufferService.buffer;h.ybase!==h.ydisp&&this._scrollToBottom(),u&&this._onUserInput.fire(),this._logService.debug('sending data "'+l+'"',function(){return l.split("").map(function(p){return p.charCodeAt(0)})}),this._onData.fire(l)}},i.prototype.triggerBinaryEvent=function(l){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+l+'"',function(){return l.split("").map(function(u){return u.charCodeAt(0)})}),this._onBinary.fire(l))},i=m([f(1,c.IBufferService),f(2,c.ILogService),f(3,c.IOptionsService)],i)}(a.Disposable);x.CoreService=s},function(O,x,T){"use strict";var v=this&&this.__decorate||function(e,s,t,i){var l,u=arguments.length,h=u<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,s,t,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(h=(u<3?l(h):u>3?l(s,t,h):l(s,t))||h);return u>3&&h&&Object.defineProperty(s,t,h),h},S=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(x,"__esModule",{value:!0}),x.CoreMouseService=void 0;var m=T(1),f=T(0),c={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(s){return s.button!==4&&s.action===1&&(s.ctrl=!1,s.alt=!1,s.shift=!1,!0)}},VT200:{events:19,restrict:function(s){return s.action!==32}},DRAG:{events:23,restrict:function(s){return s.action!==32||s.button!==3}},ANY:{events:31,restrict:function(s){return!0}}};function o(e,s){var t=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return e.button===4?(t|=64,t|=e.action):(t|=3&e.button,4&e.button&&(t|=64),8&e.button&&(t|=128),e.action===32?t|=32:e.action!==0||s||(t|=3)),t}var r=String.fromCharCode,a={DEFAULT:function(s){var t=[o(s,!1)+32,s.col+32,s.row+32];return t[0]>255||t[1]>255||t[2]>255?"":"[M"+r(t[0])+r(t[1])+r(t[2])},SGR:function(s){var t=s.action===0&&s.button!==4?"m":"M";return"[<"+o(s,!0)+";"+s.col+";"+s.row+t}},n=function(){function e(s,t){this._bufferService=s,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new f.EventEmitter,this._lastEvent=null;for(var i=0,l=Object.keys(c);i<l.length;i++){var u=l[i];this.addProtocol(u,c[u])}for(var h=0,p=Object.keys(a);h<p.length;h++){var g=p[h];this.addEncoding(g,a[g])}this.reset()}return e.prototype.addProtocol=function(s,t){this._protocols[s]=t},e.prototype.addEncoding=function(s,t){this._encodings[s]=t},Object.defineProperty(e.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(t){if(!this._protocols[t])throw new Error('unknown protocol "'+t+'"');this._activeProtocol=t,this._onProtocolChange.fire(this._protocols[t].events)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(t){if(!this._encodings[t])throw new Error('unknown encoding "'+t+'"');this._activeEncoding=t},enumerable:!1,configurable:!0}),e.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(e.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),e.prototype.triggerMouseEvent=function(s){if(s.col<0||s.col>=this._bufferService.cols||s.row<0||s.row>=this._bufferService.rows)return!1;if(s.button===4&&s.action===32)return!1;if(s.button===3&&s.action!==32)return!1;if(s.button!==4&&(s.action===2||s.action===3))return!1;if(s.col++,s.row++,s.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,s))return!1;if(!this._protocols[this._activeProtocol].restrict(s))return!1;var t=this._encodings[this._activeEncoding](s);return t&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=s,!0},e.prototype.explainEvents=function(s){return{down:!!(1&s),up:!!(2&s),drag:!!(4&s),move:!!(8&s),wheel:!!(16&s)}},e.prototype._compareEvents=function(s,t){return s.col===t.col&&s.row===t.row&&s.button===t.button&&s.action===t.action&&s.ctrl===t.ctrl&&s.alt===t.alt&&s.shift===t.shift},e=v([S(0,m.IBufferService),S(1,m.ICoreService)],e)}();x.CoreMouseService=n},function(O,x,T){"use strict";var v=this&&this.__decorate||function(c,o,r,a){var n,e=arguments.length,s=e<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,r):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(c,o,r,a);else for(var t=c.length-1;t>=0;t--)(n=c[t])&&(s=(e<3?n(s):e>3?n(o,r,s):n(o,r))||s);return e>3&&s&&Object.defineProperty(o,r,s),s},S=this&&this.__param||function(c,o){return function(r,a){o(r,a,c)}};Object.defineProperty(x,"__esModule",{value:!0}),x.DirtyRowService=void 0;var m=T(1),f=function(){function c(o){this._bufferService=o,this.clearRange()}return Object.defineProperty(c.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),c.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},c.prototype.markDirty=function(o){o<this._start?this._start=o:o>this._end&&(this._end=o)},c.prototype.markRangeDirty=function(o,r){if(o>r){var a=o;o=r,r=a}o<this._start&&(this._start=o),r>this._end&&(this._end=r)},c.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},c=v([S(0,m.IBufferService)],c)}();x.DirtyRowService=f},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.UnicodeService=void 0;var v=T(0),S=T(79),m=function(){function f(){this._providers=Object.create(null),this._active="",this._onChange=new v.EventEmitter;var c=new S.UnicodeV6;this.register(c),this._active=c.version,this._activeProvider=c}return Object.defineProperty(f.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"activeVersion",{get:function(){return this._active},set:function(o){if(!this._providers[o])throw new Error('unknown Unicode version "'+o+'"');this._active=o,this._activeProvider=this._providers[o],this._onChange.fire(o)},enumerable:!1,configurable:!0}),f.prototype.register=function(c){this._providers[c.version]=c},f.prototype.wcwidth=function(c){return this._activeProvider.wcwidth(c)},f.prototype.getStringCellWidth=function(c){for(var o=0,r=c.length,a=0;a<r;++a){var n=c.charCodeAt(a);if(55296<=n&&n<=56319){if(++a>=r)return o+this.wcwidth(n);var e=c.charCodeAt(a);56320<=e&&e<=57343?n=1024*(n-55296)+e-56320+65536:o+=this.wcwidth(e)}o+=this.wcwidth(n)}return o},f}();x.UnicodeService=m},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.UnicodeV6=void 0;var v,S=T(15),m=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],f=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],c=function(){function o(){if(this.version="6",!v){v=new Uint8Array(65536),S.fill(v,1),v[0]=0,S.fill(v,0,1,32),S.fill(v,0,127,160),S.fill(v,2,4352,4448),v[9001]=2,v[9002]=2,S.fill(v,2,11904,42192),v[12351]=1,S.fill(v,2,44032,55204),S.fill(v,2,63744,64256),S.fill(v,2,65040,65050),S.fill(v,2,65072,65136),S.fill(v,2,65280,65377),S.fill(v,2,65504,65511);for(var r=0;r<m.length;++r)S.fill(v,0,m[r][0],m[r][1]+1)}}return o.prototype.wcwidth=function(r){return r<32?0:r<127?1:r<65536?v[r]:function(a,n){var e,s=0,t=n.length-1;if(a<n[0][0]||a>n[t][1])return!1;for(;t>=s;)if(a>n[e=s+t>>1][1])s=e+1;else{if(!(a<n[e][0]))return!0;t=e-1}return!1}(r,f)?0:r>=131072&&r<=196605||r>=196608&&r<=262141?2:1},o}();x.UnicodeV6=c},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.CharsetService=void 0;var v=function(){function S(){this.glevel=0,this._charsets=[]}return S.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},S.prototype.setgLevel=function(m){this.glevel=m,this.charset=this._charsets[m]},S.prototype.setgCharset=function(m,f){this._charsets[m]=f,this.glevel===m&&(this.charset=f)},S}();x.CharsetService=v},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.updateWindowsModeWrappedState=void 0;var v=T(3);x.updateWindowsModeWrappedState=function(S){var m=S.buffer.lines.get(S.buffer.ybase+S.buffer.y-1),f=m==null?void 0:m.get(S.cols-1),c=S.buffer.lines.get(S.buffer.ybase+S.buffer.y);c&&f&&(c.isWrapped=f[v.CHAR_DATA_CODE_INDEX]!==v.NULL_CELL_CODE&&f[v.CHAR_DATA_CODE_INDEX]!==v.WHITESPACE_CELL_CODE)}},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.WriteBuffer=void 0;var v=function(){function S(m){this._action=m,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return S.prototype.writeSync=function(m){if(this._writeBuffer.length){for(var f=this._bufferOffset;f<this._writeBuffer.length;++f){var c=this._writeBuffer[f],o=this._callbacks[f];this._action(c),o&&o()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(m)},S.prototype.write=function(m,f){var c=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return c._innerWrite()})),this._pendingData+=m.length,this._writeBuffer.push(m),this._callbacks.push(f)},S.prototype._innerWrite=function(){for(var m=this,f=Date.now();this._writeBuffer.length>this._bufferOffset;){var c=this._writeBuffer[this._bufferOffset],o=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(c),this._pendingData-=c.length,o&&o(),Date.now()-f>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return m._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},S}();x.WriteBuffer=v},function(O,x,T){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.AddonManager=void 0;var v=function(){function S(){this._addons=[]}return S.prototype.dispose=function(){for(var m=this._addons.length-1;m>=0;m--)this._addons[m].instance.dispose()},S.prototype.loadAddon=function(m,f){var c=this,o={instance:f,dispose:f.dispose,isDisposed:!1};this._addons.push(o),f.dispose=function(){return c._wrappedAddonDispose(o)},f.activate(m)},S.prototype._wrappedAddonDispose=function(m){if(!m.isDisposed){for(var f=-1,c=0;c<this._addons.length;c++)if(this._addons[c]===m){f=c;break}if(f===-1)throw new Error("Could not dispose an addon that has not been loaded");m.isDisposed=!0,m.dispose.apply(m.instance),this._addons.splice(f,1)}},S}();x.AddonManager=v}])})},"/SeX":function(U,P,d){var O=d("knOB"),x=d("qZFw"),T=function(S){this.name=S||"",this.cx=0,this.cy=0,this._radiusAxis=new O,this._angleAxis=new x,this._radiusAxis.polar=this._angleAxis.polar=this};T.prototype={type:"polar",axisPointerEnabled:!0,constructor:T,dimensions:["radius","angle"],model:null,containPoint:function(S){var m=this.pointToCoord(S);return this._radiusAxis.contain(m[0])&&this._angleAxis.contain(m[1])},containData:function(S){return this._radiusAxis.containData(S[0])&&this._angleAxis.containData(S[1])},getAxis:function(S){return this["_"+S+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(S){var m=[],f=this._angleAxis,c=this._radiusAxis;return f.scale.type===S&&m.push(f),c.scale.type===S&&m.push(c),m},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(S){var m=this._angleAxis;return S===m?this._radiusAxis:m},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(S){var m=S!=null&&S!=="auto"?this.getAxis(S):this.getBaseAxis();return{baseAxes:[m],otherAxes:[this.getOtherAxis(m)]}},dataToPoint:function(S,m){return this.coordToPoint([this._radiusAxis.dataToRadius(S[0],m),this._angleAxis.dataToAngle(S[1],m)])},pointToData:function(S,m){var f=this.pointToCoord(S);return[this._radiusAxis.radiusToData(f[0],m),this._angleAxis.angleToData(f[1],m)]},pointToCoord:function(S){var m=S[0]-this.cx,f=S[1]-this.cy,c=this.getAngleAxis(),o=c.getExtent(),r=Math.min(o[0],o[1]),a=Math.max(o[0],o[1]);c.inverse?r=a-360:a=r+360;var n=Math.sqrt(m*m+f*f);m/=n,f/=n;for(var e=Math.atan2(-f,m)/Math.PI*180,s=e<r?1:-1;e<r||e>a;)e+=s*360;return[n,e]},coordToPoint:function(S){var m=S[0],f=S[1]/180*Math.PI,c=Math.cos(f)*m+this.cx,o=-Math.sin(f)*m+this.cy;return[c,o]},getArea:function(){var S=this.getAngleAxis(),m=this.getRadiusAxis(),f=m.getExtent().slice();f[0]>f[1]&&f.reverse();var c=S.getExtent(),o=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:f[0],r:f[1],startAngle:-c[0]*o,endAngle:-c[1]*o,clockwise:S.inverse,contain:function(r,a){var n=r-this.cx,e=a-this.cy,s=n*n+e*e,t=this.r,i=this.r0;return s<=t*t&&s>=i*i}}}};var v=T;U.exports=v},"/WM3":function(U,P,d){var O=d("QuXc"),x=d("bYtY"),T=x.isFunction,v={createOnAllSeries:!0,performRawSeries:!0,reset:function(S,m){var f=S.getData(),c=(S.visualColorAccessPath||"itemStyle.color").split("."),o=S.get(c),r=T(o)&&!(o instanceof O)?o:null;(!o||r)&&(o=S.getColorFromPalette(S.name,null,m.getSeriesCount())),f.setVisual("color",o);var a=(S.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),n=S.get(a);if(f.setVisual("borderColor",n),!m.isSeriesFiltered(S)){r&&f.each(function(s){f.setItemVisual(s,"color",r(S.getDataParams(s)))});var e=function(s,t){var i=s.getItemModel(t),l=i.get(c,!0),u=i.get(a,!0);l!=null&&s.setItemVisual(t,"color",l),u!=null&&s.setItemVisual(t,"borderColor",u)};return{dataEach:f.hasItemOption?e:null}}}};U.exports=v},"/d5a":function(U,P){var d={average:function(T){for(var v=0,S=0,m=0;m<T.length;m++)isNaN(T[m])||(v+=T[m],S++);return S===0?NaN:v/S},sum:function(T){for(var v=0,S=0;S<T.length;S++)v+=T[S]||0;return v},max:function(T){for(var v=-Infinity,S=0;S<T.length;S++)T[S]>v&&(v=T[S]);return isFinite(v)?v:NaN},min:function(T){for(var v=Infinity,S=0;S<T.length;S++)T[S]<v&&(v=T[S]);return isFinite(v)?v:NaN},nearest:function(T){return T[0]}},O=function(T,v){return Math.round(T.length/2)};function x(T){return{seriesType:T,modifyOutputEnd:!0,reset:function(v,S,m){var f=v.getData(),c=v.get("sampling"),o=v.coordinateSystem;if(o.type==="cartesian2d"&&c){var r=o.getBaseAxis(),a=o.getOtherAxis(r),n=r.getExtent(),e=n[1]-n[0],s=Math.round(f.count()/e);if(s>1){var t;typeof c=="string"?t=d[c]:typeof c=="function"&&(t=c),t&&v.setData(f.downSample(f.mapDimension(a.dim),1/s,t,O))}}}}}U.exports=x},"/ezw":function(U,P,d){"use strict";var O=d("lSNA"),x=d.n(O),T=d("pVnL"),v=d.n(T),S=d("cDf5"),m=d.n(S),f=d("q1tI"),c=d("TSYQ"),o=d.n(c),r=function(F){var K=F.prefixCls,j=F.className,V=F.width,z=F.style;return f.createElement("h3",{className:o()(K,j),style:v()({width:V},z)})},a=r,n=d("RIqP"),e=d.n(n),s=function(F){var K=function(ie){var we=F.width,Ce=F.rows,Le=Ce===void 0?2:Ce;return Array.isArray(we)?we[ie]:Le-1===ie?we:void 0},j=F.prefixCls,V=F.className,z=F.style,Y=F.rows,ee=e()(Array(Y)).map(function(fe,ie){return f.createElement("li",{key:ie,style:{width:K(ie)}})});return f.createElement("ul",{className:o()(j,V),style:z},ee)},t=s,i=d("H84U"),l=function(F){var K,j,V=F.prefixCls,z=F.className,Y=F.style,ee=F.size,fe=F.shape,ie=o()((K={},x()(K,"".concat(V,"-lg"),ee==="large"),x()(K,"".concat(V,"-sm"),ee==="small"),K)),we=o()((j={},x()(j,"".concat(V,"-circle"),fe==="circle"),x()(j,"".concat(V,"-square"),fe==="square"),x()(j,"".concat(V,"-round"),fe==="round"),j)),Ce=typeof ee=="number"?{width:ee,height:ee,lineHeight:"".concat(ee,"px")}:{};return f.createElement("span",{className:o()(V,z,ie,we),style:v()(v()({},Ce),Y)})},u=l,h=d("BGR+"),p=function(F){var K=function(V){var z=V.getPrefixCls,Y=F.prefixCls,ee=F.className,fe=F.active,ie=z("skeleton",Y),we=Object(h.default)(F,["prefixCls"]),Ce=o()(ie,ee,"".concat(ie,"-element"),x()({},"".concat(ie,"-active"),fe));return f.createElement("div",{className:Ce},f.createElement(u,v()({prefixCls:"".concat(ie,"-avatar")},we)))};return f.createElement(i.a,null,K)};p.defaultProps={size:"default",shape:"circle"};var g=p,A=function(F){var K=function(V){var z=V.getPrefixCls,Y=F.prefixCls,ee=F.className,fe=F.active,ie=z("skeleton",Y),we=Object(h.default)(F,["prefixCls"]),Ce=o()(ie,ee,"".concat(ie,"-element"),x()({},"".concat(ie,"-active"),fe));return f.createElement("div",{className:Ce},f.createElement(u,v()({prefixCls:"".concat(ie,"-button")},we)))};return f.createElement(i.a,null,K)};A.defaultProps={size:"default"};var y=A,E=function(F){var K=function(V){var z=V.getPrefixCls,Y=F.prefixCls,ee=F.className,fe=F.active,ie=z("skeleton",Y),we=Object(h.default)(F,["prefixCls"]),Ce=o()(ie,ee,"".concat(ie,"-element"),x()({},"".concat(ie,"-active"),fe));return f.createElement("div",{className:Ce},f.createElement(u,v()({prefixCls:"".concat(ie,"-input")},we)))};return f.createElement(i.a,null,K)};E.defaultProps={size:"default"};var C=E,w="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",b=function(F){var K=function(V){var z=V.getPrefixCls,Y=F.prefixCls,ee=F.className,fe=F.style,ie=z("skeleton",Y),we=o()(ie,ee,"".concat(ie,"-element"));return f.createElement("div",{className:we},f.createElement("div",{className:o()("".concat(ie,"-image"),ee),style:fe},f.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(ie,"-image-svg")},f.createElement("path",{d:w,className:"".concat(ie,"-image-path")}))))};return f.createElement(i.a,null,K)},I=b;function _(H){return H&&m()(H)==="object"?H:{}}function L(H,F){return H&&!F?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function D(H,F){return!H&&F?{width:"38%"}:H&&F?{width:"50%"}:{}}function N(H,F){var K={};return(!H||!F)&&(K.width="61%"),!H&&F?K.rows=3:K.rows=2,K}var R=function(F){var K=function(V){var z=V.getPrefixCls,Y=V.direction,ee=F.prefixCls,fe=F.loading,ie=F.className,we=F.children,Ce=F.avatar,Le=F.title,He=F.paragraph,ce=F.active,Pe=F.round,Q=z("skeleton",ee);if(fe||!("loading"in F)){var me,Je=!!Ce,re=!!Le,G=!!He,X;if(Je){var J=v()(v()({prefixCls:"".concat(Q,"-avatar")},L(re,G)),_(Ce));X=f.createElement("div",{className:"".concat(Q,"-header")},f.createElement(u,J))}var Ae;if(re||G){var he;if(re){var Me=v()(v()({prefixCls:"".concat(Q,"-title")},D(Je,G)),_(Le));he=f.createElement(a,Me)}var Ie;if(G){var oe=v()(v()({prefixCls:"".concat(Q,"-paragraph")},N(Je,re)),_(He));Ie=f.createElement(t,oe)}Ae=f.createElement("div",{className:"".concat(Q,"-content")},he,Ie)}var pe=o()(Q,ie,(me={},x()(me,"".concat(Q,"-with-avatar"),Je),x()(me,"".concat(Q,"-active"),ce),x()(me,"".concat(Q,"-rtl"),Y==="rtl"),x()(me,"".concat(Q,"-round"),Pe),me));return f.createElement("div",{className:pe},X,Ae)}return we};return f.createElement(i.a,null,K)};R.defaultProps={avatar:!1,title:!0,paragraph:!0},R.Button=y,R.Avatar=g,R.Input=C,R.Image=I;var B=R,M=P.a=B},"/iHx":function(U,P,d){var O=d("6GrX"),x=d("IwbS"),T=["textStyle","color"],v={getTextColor:function(S){var m=this.ecModel;return this.getShallow("color")||(!S&&m?m.get(T):null)},getFont:function(){return x.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(S){return O.getBoundingRect(S,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};U.exports=v},"/ry/":function(U,P,d){var O=d("bYtY"),x=d("T4UG"),T=d("5GhG"),v=T.seriesModelMixin,S=x.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});O.mixin(S,v,!0);var m=S;U.exports=m},"/stD":function(U,P,d){var O=d("bYtY"),x=d("IUWy"),T=d("Kagy"),v=T.toolbox.brush;function S(c,o,r){this.model=c,this.ecModel=o,this.api=r,this._brushType,this._brushMode}S.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:O.clone(v.title)};var m=S.prototype;m.render=m.updateView=function(c,o,r){var a,n,e;o.eachComponent({mainType:"brush"},function(s){a=s.brushType,n=s.brushOption.brushMode||"single",e|=s.areas.length}),this._brushType=a,this._brushMode=n,O.each(c.get("type",!0),function(s){c.setIconStatus(s,(s==="keep"?n==="multiple":s==="clear"?e:s===a)?"emphasis":"normal")})},m.getIcons=function(){var c=this.model,o=c.get("icon",!0),r={};return O.each(c.get("type",!0),function(a){o[a]&&(r[a]=o[a])}),r},m.onclick=function(c,o,r){var a=this._brushType,n=this._brushMode;r==="clear"?(o.dispatchAction({type:"axisAreaSelect",intervals:[]}),o.dispatchAction({type:"brush",command:"clear",areas:[]})):o.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:r==="keep"?a:a===r?!1:r,brushMode:r==="keep"?n==="multiple"?"single":"multiple":n}})},x.register("brush",S);var f=S;U.exports=f},"/wGt":function(U,P,d){"use strict";var O=d("lSNA"),x=d.n(O),T=d("pVnL"),v=d.n(T),S=d("lwsE"),m=d.n(S),f=d("W8MJ"),c=d.n(f),o=d("PJYZ"),r=d.n(o),a=d("7W2i"),n=d.n(a),e=d("LQ03"),s=d.n(e),t=d("q1tI"),i=d("Ff2n"),l=d("1OyB"),u=d("vuIU"),h=d("Ji7U"),p=d("md7G"),g=d("foSv"),A=d("1W/9"),y=d("rePB"),E=d("JX7q"),C=d("TSYQ"),w=d.n(C),b=d("qx4F"),I=d("4IlW");function _(he){return Array.isArray(he)?he:[he]}var L={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},D=Object.keys(L).filter(function(he){if(typeof document=="undefined")return!1;var Me=document.getElementsByTagName("html")[0];return he in(Me?Me.style:{})})[0],N=L[D];function R(he,Me,Ie,oe){he.addEventListener?he.addEventListener(Me,Ie,oe):he.attachEvent&&he.attachEvent("on".concat(Me),Ie)}function B(he,Me,Ie,oe){he.removeEventListener?he.removeEventListener(Me,Ie,oe):he.attachEvent&&he.detachEvent("on".concat(Me),Ie)}function M(he,Me){var Ie=typeof he=="function"?he(Me):he;return Array.isArray(Ie)?Ie.length===2?Ie:[Ie[0],Ie[1]]:[Ie]}var H=function(Me){return!isNaN(parseFloat(Me))&&isFinite(Me)},F=!(typeof window!="undefined"&&window.document&&window.document.createElement),K=function he(Me,Ie,oe,pe){if(!Ie||Ie===document||Ie instanceof Document)return!1;if(Ie===Me.parentNode)return!0;var Oe=Math.max(Math.abs(oe),Math.abs(pe))===Math.abs(pe),Ye=Math.max(Math.abs(oe),Math.abs(pe))===Math.abs(oe),it=Ie.scrollHeight-Ie.clientHeight,et=Ie.scrollWidth-Ie.clientWidth,Te=document.defaultView.getComputedStyle(Ie),tt=Te.overflowY==="auto"||Te.overflowY==="scroll",ze=Te.overflowX==="auto"||Te.overflowX==="scroll",dt=it&&tt,Ot=et&&ze;return Oe&&(!dt||dt&&(Ie.scrollTop>=it&&pe<0||Ie.scrollTop<=0&&pe>0))||Ye&&(!Ot||Ot&&(Ie.scrollLeft>=et&&oe<0||Ie.scrollLeft<=0&&oe>0))?he(Me,Ie.parentNode,oe,pe):!1};function j(he){var Me=V();return function(){var oe=Object(g.a)(he),pe;if(Me){var Oe=Object(g.a)(this).constructor;pe=Reflect.construct(oe,arguments,Oe)}else pe=oe.apply(this,arguments);return Object(p.a)(this,pe)}}function V(){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(he){return!1}}var z={},Y=function(he){Object(h.a)(Ie,he);var Me=j(Ie);function Ie(oe){var pe;return Object(l.a)(this,Ie),pe=Me.call(this,oe),pe.domFocus=function(){pe.dom&&pe.dom.focus()},pe.removeStartHandler=function(Oe){if(Oe.touches.length>1)return;pe.startPos={x:Oe.touches[0].clientX,y:Oe.touches[0].clientY}},pe.removeMoveHandler=function(Oe){if(Oe.changedTouches.length>1)return;var Ye=Oe.currentTarget,it=Oe.changedTouches[0].clientX-pe.startPos.x,et=Oe.changedTouches[0].clientY-pe.startPos.y;(Ye===pe.maskDom||Ye===pe.handlerDom||Ye===pe.contentDom&&K(Ye,Oe.target,it,et))&&Oe.cancelable&&Oe.preventDefault()},pe.transitionEnd=function(Oe){var Ye=Oe.target;B(Ye,N,pe.transitionEnd),Ye.style.transition=""},pe.onKeyDown=function(Oe){if(Oe.keyCode===I.a.ESC){var Ye=pe.props.onClose;Oe.stopPropagation(),Ye&&Ye(Oe)}},pe.onWrapperTransitionEnd=function(Oe){var Ye=pe.props,it=Ye.open,et=Ye.afterVisibleChange;Oe.target===pe.contentWrapper&&Oe.propertyName.match(/transform$/)&&(pe.dom.style.transition="",!it&&pe.getCurrentDrawerSome()&&(document.body.style.overflowX="",pe.maskDom&&(pe.maskDom.style.left="",pe.maskDom.style.width="")),et&&et(!!it))},pe.openLevelTransition=function(){var Oe=pe.props,Ye=Oe.open,it=Oe.width,et=Oe.height,Te=pe.getHorizontalBoolAndPlacementName(),tt=Te.isHorizontal,ze=Te.placementName,dt=pe.contentDom?pe.contentDom.getBoundingClientRect()[tt?"width":"height"]:0,Ot=(tt?it:et)||dt;pe.setLevelAndScrolling(Ye,ze,Ot)},pe.setLevelTransform=function(Oe,Ye,it,et){var Te=pe.props,tt=Te.placement,ze=Te.levelMove,dt=Te.duration,Ot=Te.ease,Tt=Te.showMask;pe.levelDom.forEach(function(Ct){Ct.style.transition="transform ".concat(dt," ").concat(Ot),R(Ct,N,pe.transitionEnd);var Nt=Oe?it:0;if(ze){var Be=M(ze,{target:Ct,open:Oe});Nt=Oe?Be[0]:Be[1]||0}var $=typeof Nt=="number"?"".concat(Nt,"px"):Nt,Z=tt==="left"||tt==="top"?$:"-".concat($);Z=Tt&&tt==="right"&&et?"calc(".concat(Z," + ").concat(et,"px)"):Z,Ct.style.transform=Nt?"".concat(Ye,"(").concat(Z,")"):""})},pe.setLevelAndScrolling=function(Oe,Ye,it){var et=pe.props.onChange;if(!F){var Te=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(b.a)(!0):0;pe.setLevelTransform(Oe,Ye,it,Te),pe.toggleScrollingToDrawerAndBody(Te)}et&&et(Oe)},pe.toggleScrollingToDrawerAndBody=function(Oe){var Ye=pe.props,it=Ye.getOpenCount,et=Ye.getContainer,Te=Ye.showMask,tt=Ye.open,ze=et&&et(),dt=it&&it();if(ze&&ze.parentNode===document.body&&Te){var Ot=["touchstart"],Tt=[document.body,pe.maskDom,pe.handlerDom,pe.contentDom];tt&&document.body.style.overflow!=="hidden"?(Oe&&pe.addScrollingEffect(Oe),dt===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",Tt.forEach(function(Ct,Nt){if(!Ct)return;R(Ct,Ot[Nt]||"touchmove",Nt?pe.removeMoveHandler:pe.removeStartHandler,pe.passive)})):pe.getCurrentDrawerSome()&&(dt||(document.body.style.overflow=""),document.body.style.touchAction="",Oe&&pe.remScrollingEffect(Oe),Tt.forEach(function(Ct,Nt){if(!Ct)return;B(Ct,Ot[Nt]||"touchmove",Nt?pe.removeMoveHandler:pe.removeStartHandler,pe.passive)}))}},pe.addScrollingEffect=function(Oe){var Ye=pe.props,it=Ye.placement,et=Ye.duration,Te=Ye.ease,tt=Ye.getOpenCount,ze=Ye.switchScrollingEffect,dt=tt&&tt();dt===1&&ze();var Ot="width ".concat(et," ").concat(Te),Tt="transform ".concat(et," ").concat(Te);pe.dom.style.transition="none";switch(it){case"right":pe.dom.style.transform="translateX(-".concat(Oe,"px)");break;case"top":case"bottom":pe.dom.style.width="calc(100% - ".concat(Oe,"px)"),pe.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(pe.timeout),pe.timeout=setTimeout(function(){pe.dom&&(pe.dom.style.transition="".concat(Tt,",").concat(Ot),pe.dom.style.width="",pe.dom.style.transform="")})},pe.remScrollingEffect=function(Oe){var Ye=pe.props,it=Ye.placement,et=Ye.duration,Te=Ye.ease,tt=Ye.getOpenCount,ze=Ye.switchScrollingEffect,dt=tt&&tt();dt||ze(!0),D&&(document.body.style.overflowX="hidden"),pe.dom.style.transition="none";var Ot,Tt="width ".concat(et," ").concat(Te),Ct="transform ".concat(et," ").concat(Te);switch(it){case"left":{pe.dom.style.width="100%",Tt="width 0s ".concat(Te," ").concat(et);break}case"right":{pe.dom.style.transform="translateX(".concat(Oe,"px)"),pe.dom.style.width="100%",Tt="width 0s ".concat(Te," ").concat(et),pe.maskDom&&(pe.maskDom.style.left="-".concat(Oe,"px"),pe.maskDom.style.width="calc(100% + ".concat(Oe,"px)"));break}case"top":case"bottom":{pe.dom.style.width="calc(100% + ".concat(Oe,"px)"),pe.dom.style.height="100%",pe.dom.style.transform="translateZ(0)",Ot="height 0s ".concat(Te," ").concat(et);break}default:break}clearTimeout(pe.timeout),pe.timeout=setTimeout(function(){pe.dom&&(pe.dom.style.transition="".concat(Ct,",").concat(Ot?"".concat(Ot,","):"").concat(Tt),pe.dom.style.transform="",pe.dom.style.width="",pe.dom.style.height="")})},pe.getCurrentDrawerSome=function(){return!Object.keys(z).some(function(Oe){return z[Oe]})},pe.getLevelDom=function(Oe){var Ye=Oe.level,it=Oe.getContainer;if(F)return;var et=it&&it(),Te=et?et.parentNode:null;if(pe.levelDom=[],Ye==="all"){var tt=Te?Array.prototype.slice.call(Te.children):[];tt.forEach(function(ze){ze.nodeName!=="SCRIPT"&&ze.nodeName!=="STYLE"&&ze.nodeName!=="LINK"&&ze!==et&&pe.levelDom.push(ze)})}else Ye&&_(Ye).forEach(function(ze){document.querySelectorAll(ze).forEach(function(dt){pe.levelDom.push(dt)})})},pe.getHorizontalBoolAndPlacementName=function(){var Oe=pe.props.placement,Ye=Oe==="left"||Oe==="right",it="translate".concat(Ye?"X":"Y");return{isHorizontal:Ye,placementName:it}},pe.state={_self:Object(E.a)(pe)},pe}return Object(u.a)(Ie,[{key:"componentDidMount",value:function(){var pe=this;if(!F){var Oe=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Oe=!0,null}}))}catch(tt){}this.passive=Oe?{passive:!1}:!1}var Ye=this.props,it=Ye.open,et=Ye.getContainer,Te=et&&et();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),it&&(Te&&Te.parentNode===document.body&&(z[this.drawerId]=it),this.openLevelTransition(),this.forceUpdate(function(){pe.domFocus()}))}},{key:"componentDidUpdate",value:function(pe){var Oe=this.props,Ye=Oe.open,it=Oe.getContainer,et=it&&it();Ye!==pe.open&&(Ye&&this.domFocus(),et&&et.parentNode===document.body&&(z[this.drawerId]=!!Ye),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var pe=this.props,Oe=pe.getOpenCount,Ye=pe.open,it=pe.switchScrollingEffect,et=typeof Oe=="function"&&Oe();delete z[this.drawerId],Ye&&(this.setLevelTransform(!1),document.body.style.touchAction=""),et||(document.body.style.overflow="",it(!0))}},{key:"render",value:function(){var pe,Oe=this,Ye=this.props,it=Ye.className,et=Ye.children,Te=Ye.style,tt=Ye.width,ze=Ye.height,dt=Ye.defaultOpen,Ot=Ye.open,Tt=Ye.prefixCls,Ct=Ye.placement,Nt=Ye.level,Be=Ye.levelMove,$=Ye.ease,Z=Ye.duration,Re=Ye.getContainer,De=Ye.handler,ae=Ye.onChange,gt=Ye.afterVisibleChange,jt=Ye.showMask,ut=Ye.maskClosable,rr=Ye.maskStyle,pr=Ye.onClose,nn=Ye.onHandleClick,mr=Ye.keyboard,vr=Ye.getOpenCount,$t=Ye.switchScrollingEffect,Xt=Object(i.a)(Ye,["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"]),ft=this.dom?Ot:!1,Ur=w()(Tt,(pe={},Object(y.a)(pe,"".concat(Tt,"-").concat(Ct),!0),Object(y.a)(pe,"".concat(Tt,"-open"),ft),Object(y.a)(pe,it||"",!!it),Object(y.a)(pe,"no-mask",!jt),pe)),yn=this.getHorizontalBoolAndPlacementName(),Dn=yn.placementName,Un=Ct==="left"||Ct==="top"?"-100%":"100%",wi=ft?"":"".concat(Dn,"(").concat(Un,")"),Rn=De&&t.cloneElement(De,{onClick:function(Vn){De.props.onClick&&De.props.onClick(),nn&&nn(Vn)},ref:function(Vn){Oe.handlerDom=Vn}});return t.createElement("div",Object.assign({},Xt,{tabIndex:-1,className:Ur,style:Te,ref:function(Vn){Oe.dom=Vn},onKeyDown:ft&&mr?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),jt&&t.createElement("div",{className:"".concat(Tt,"-mask"),onClick:ut?pr:void 0,style:rr,ref:function(Vn){Oe.maskDom=Vn}}),t.createElement("div",{className:"".concat(Tt,"-content-wrapper"),style:{transform:wi,msTransform:wi,width:H(tt)?"".concat(tt,"px"):tt,height:H(ze)?"".concat(ze,"px"):ze},ref:function(Vn){Oe.contentWrapper=Vn}},t.createElement("div",{className:"".concat(Tt,"-content"),ref:function(Vn){Oe.contentDom=Vn},onTouchStart:ft&&jt?this.removeStartHandler:void 0,onTouchMove:ft&&jt?this.removeMoveHandler:void 0},et),Rn))}}],[{key:"getDerivedStateFromProps",value:function(pe,Oe){var Ye=Oe.prevProps,it=Oe._self,et={prevProps:pe};if(Ye!==void 0){var Te=pe.placement,tt=pe.level;Te!==Ye.placement&&(it.contentDom=null),tt!==Ye.level&&it.getLevelDom(pe)}return et}}]),Ie}(t.Component);Y.defaultProps={switchScrollingEffect:function(){}};var ee=Y;function fe(he){var Me=ie();return function(){var oe=Object(g.a)(he),pe;if(Me){var Oe=Object(g.a)(this).constructor;pe=Reflect.construct(oe,arguments,Oe)}else pe=oe.apply(this,arguments);return Object(p.a)(this,pe)}}function ie(){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(he){return!1}}var we=function(he){Object(h.a)(Ie,he);var Me=fe(Ie);function Ie(oe){var pe;Object(l.a)(this,Ie),pe=Me.call(this,oe),pe.onHandleClick=function(Ye){var it=pe.props,et=it.onHandleClick,Te=it.open;if(et&&et(Ye),typeof Te=="undefined"){var tt=pe.state.open;pe.setState({open:!tt})}},pe.onClose=function(Ye){var it=pe.props,et=it.onClose,Te=it.open;et&&et(Ye),typeof Te=="undefined"&&pe.setState({open:!1})};var Oe=typeof oe.open!="undefined"?oe.open:!!oe.defaultOpen;return pe.state={open:Oe},"onMaskClick"in oe&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),pe}return Object(u.a)(Ie,[{key:"render",value:function(){var pe=this,Oe=this.props,Ye=Oe.defaultOpen,it=Oe.getContainer,et=Oe.wrapperClassName,Te=Oe.forceRender,tt=Oe.handler,ze=Object(i.a)(Oe,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),dt=this.state.open;if(!it)return t.createElement("div",{className:et,ref:function(Ct){pe.dom=Ct}},t.createElement(ee,Object.assign({},ze,{open:dt,handler:tt,getContainer:function(){return pe.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var Ot=!!tt||Te;return t.createElement(A.a,{visible:dt,forceRender:Ot,getContainer:it,wrapperClassName:et},function(Tt){var Ct=Tt.visible,Nt=Tt.afterClose,Be=Object(i.a)(Tt,["visible","afterClose"]);return t.createElement(ee,Object.assign({},ze,Be,{open:Ct!==void 0?Ct:dt,afterVisibleChange:Nt!==void 0?Nt:ze.afterVisibleChange,handler:tt,onClose:pe.onClose,onHandleClick:pe.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(pe,Oe){var Ye=Oe.prevProps,it={prevProps:pe};return typeof Ye!="undefined"&&pe.open!==Ye.open&&(it.open=pe.open),it}}]),Ie}(t.Component);we.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 Ce=we,Le=Ce,He=d("V/uB"),ce=d.n(He),Pe=d("BGR+"),Q=d("H84U"),me=d("CWQg"),Je=function(he,Me){var Ie={};for(var oe in he)Object.prototype.hasOwnProperty.call(he,oe)&&Me.indexOf(oe)<0&&(Ie[oe]=he[oe]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,oe=Object.getOwnPropertySymbols(he);pe<oe.length;pe++)Me.indexOf(oe[pe])<0&&Object.prototype.propertyIsEnumerable.call(he,oe[pe])&&(Ie[oe[pe]]=he[oe[pe]]);return Ie},re=t.createContext(null),G=Object(me.a)("top","right","bottom","left"),X={distance:180},J=function(he){n()(Ie,he);var Me=s()(Ie);function Ie(){var oe;return m()(this,Ie),oe=Me.apply(this,arguments),oe.state={push:!1},oe.push=function(){oe.props.push&&oe.setState({push:!0})},oe.pull=function(){oe.props.push&&oe.setState({push:!1})},oe.onDestroyTransitionEnd=function(){var pe=oe.getDestroyOnClose();if(!pe)return;oe.props.visible||(oe.destroyClose=!0,oe.forceUpdate())},oe.getDestroyOnClose=function(){return oe.props.destroyOnClose&&!oe.props.visible},oe.getPushDistance=function(){var pe=oe.props.push,Oe;return typeof pe=="boolean"?Oe=pe?X.distance:0:Oe=pe.distance,parseFloat(String(Oe||0))},oe.getPushTransform=function(pe){var Oe=oe.getPushDistance();if(pe==="left"||pe==="right")return"translateX(".concat(pe==="left"?Oe:-Oe,"px)");if(pe==="top"||pe==="bottom")return"translateY(".concat(pe==="top"?Oe:-Oe,"px)")},oe.getRcDrawerStyle=function(){var pe=oe.props,Oe=pe.zIndex,Ye=pe.placement,it=pe.mask,et=pe.style,Te=oe.state.push,tt=it?{}:oe.getOffsetStyle();return v()(v()({zIndex:Oe,transform:Te?oe.getPushTransform(Ye):void 0},tt),et)},oe.renderBody=function(){var pe=oe.props,Oe=pe.bodyStyle,Ye=pe.drawerStyle,it=pe.prefixCls,et=pe.visible;if(oe.destroyClose&&!et)return null;oe.destroyClose=!1;var Te={},tt=oe.getDestroyOnClose();return tt&&(Te.opacity=0,Te.transition="opacity .3s"),t.createElement("div",{className:"".concat(it,"-wrapper-body"),style:v()(v()({},Te),Ye),onTransitionEnd:oe.onDestroyTransitionEnd},oe.renderHeader(),t.createElement("div",{className:"".concat(it,"-body"),style:Oe},oe.props.children),oe.renderFooter())},oe.renderProvider=function(pe){return oe.parentDrawer=pe,t.createElement(Q.a,null,function(Oe){var Ye=Oe.getPopupContainer,it=Oe.getPrefixCls,et=oe.props,Te=et.prefixCls,tt=et.placement,ze=et.className,dt=et.mask,Ot=et.direction,Tt=et.visible,Ct=Je(et,["prefixCls","placement","className","mask","direction","visible"]),Nt=it("select",Te),Be=w()(ze,x()({"no-mask":!dt},"".concat(Nt,"-rtl"),Ot==="rtl")),$=dt?oe.getOffsetStyle():{};return t.createElement(re.Provider,{value:r()(oe)},t.createElement(Le,v()({handler:!1},Object(Pe.default)(Ct,["zIndex","style","closable","closeIcon","destroyOnClose","drawerStyle","headerStyle","bodyStyle","footerStyle","footer","locale","title","push","visible","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","pageHeader","autoInsertSpaceInButton","width","height","dropdownMatchSelectWidth","getTargetContainer"]),{getContainer:Ct.getContainer===void 0&&Ye?function(){return Ye(document.body)}:Ct.getContainer},$,{prefixCls:Nt,open:Tt,showMask:dt,placement:tt,style:oe.getRcDrawerStyle(),className:Be}),oe.renderBody()))})},oe}return c()(Ie,[{key:"componentDidMount",value:function(){var pe=this.props.visible;pe&&this.parentDrawer&&this.parentDrawer.push()}},{key:"componentDidUpdate",value:function(pe){var Oe=this.props.visible;pe.visible!==Oe&&this.parentDrawer&&(Oe?this.parentDrawer.push():this.parentDrawer.pull())}},{key:"componentWillUnmount",value:function(){this.parentDrawer&&(this.parentDrawer.pull(),this.parentDrawer=null)}},{key:"getOffsetStyle",value:function(){var pe=this.props,Oe=pe.placement,Ye=pe.width,it=pe.height,et=pe.visible,Te=pe.mask;if(!et&&!Te)return{};var tt={};return Oe==="left"||Oe==="right"?tt.width=Ye:tt.height=it,tt}},{key:"renderHeader",value:function(){var pe=this.props,Oe=pe.title,Ye=pe.prefixCls,it=pe.closable,et=pe.headerStyle;if(!Oe&&!it)return null;var Te=Oe?"".concat(Ye,"-header"):"".concat(Ye,"-header-no-title");return t.createElement("div",{className:Te,style:et},Oe&&t.createElement("div",{className:"".concat(Ye,"-title")},Oe),it&&this.renderCloseIcon())}},{key:"renderFooter",value:function(){var pe=this.props,Oe=pe.footer,Ye=pe.footerStyle,it=pe.prefixCls;if(!Oe)return null;var et="".concat(it,"-footer");return t.createElement("div",{className:et,style:Ye},Oe)}},{key:"renderCloseIcon",value:function(){var pe=this.props,Oe=pe.closable,Ye=pe.closeIcon,it=Ye===void 0?t.createElement(ce.a,null):Ye,et=pe.prefixCls,Te=pe.onClose;return Oe&&t.createElement("button",{onClick:Te,"aria-label":"Close",className:"".concat(et,"-close"),style:{"--scroll-bar":"".concat(Object(b.a)(),"px")}},it)}},{key:"render",value:function(){return t.createElement(re.Consumer,null,this.renderProvider)}}]),Ie}(t.Component);J.defaultProps={width:256,height:256,closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:X};var Ae=P.a=Object(Q.c)({prefixCls:"drawer"})(J)},"/y7N":function(U,P,d){var O=d("bYtY"),x=d("IwbS"),T=d("6GrX"),v=d("7aKB"),S=d("Fofx"),m=d("aX7z"),f=d("+rIm");function c(l){var u=l.get("type"),h=l.getModel(u+"Style"),p;return u==="line"?(p=h.getLineStyle(),p.fill=null):u==="shadow"&&(p=h.getAreaStyle(),p.stroke=null),p}function o(l,u,h,p,g){var A=h.get("value"),y=a(A,u.axis,u.ecModel,h.get("seriesDataIndices"),{precision:h.get("label.precision"),formatter:h.get("label.formatter")}),E=h.getModel("label"),C=v.normalizeCssArray(E.get("padding")||0),w=E.getFont(),b=T.getBoundingRect(y,w),I=g.position,_=b.width+C[1]+C[3],L=b.height+C[0]+C[2],D=g.align;D==="right"&&(I[0]-=_),D==="center"&&(I[0]-=_/2);var N=g.verticalAlign;N==="bottom"&&(I[1]-=L),N==="middle"&&(I[1]-=L/2),r(I,_,L,p);var R=E.get("backgroundColor");(!R||R==="auto")&&(R=u.get("axisLine.lineStyle.color")),l.label={shape:{x:0,y:0,width:_,height:L,r:E.get("borderRadius")},position:I.slice(),style:{text:y,textFont:w,textFill:E.getTextColor(),textPosition:"inside",textPadding:C,fill:R,stroke:E.get("borderColor")||"transparent",lineWidth:E.get("borderWidth")||0,shadowBlur:E.get("shadowBlur"),shadowColor:E.get("shadowColor"),shadowOffsetX:E.get("shadowOffsetX"),shadowOffsetY:E.get("shadowOffsetY")},z2:10}}function r(l,u,h,p){var g=p.getWidth(),A=p.getHeight();l[0]=Math.min(l[0]+u,g)-u,l[1]=Math.min(l[1]+h,A)-h,l[0]=Math.max(l[0],0),l[1]=Math.max(l[1],0)}function a(l,u,h,p,g){l=u.scale.parse(l);var A=u.scale.getLabel(l,{precision:g.precision}),y=g.formatter;if(y){var E={value:m.getAxisRawValue(u,l),axisDimension:u.dim,axisIndex:u.index,seriesData:[]};O.each(p,function(C){var w=h.getSeriesByIndex(C.seriesIndex),b=C.dataIndexInside,I=w&&w.getDataParams(b);I&&E.seriesData.push(I)}),O.isString(y)?A=y.replace("{value}",A):O.isFunction(y)&&(A=y(E))}return A}function n(l,u,h){var p=S.create();return S.rotate(p,p,h.rotation),S.translate(p,p,h.position),x.applyTransform([l.dataToCoord(u),(h.labelOffset||0)+(h.labelDirection||1)*(h.labelMargin||0)],p)}function e(l,u,h,p,g,A){var y=f.innerTextLayout(h.rotation,0,h.labelDirection);h.labelMargin=g.get("label.margin"),o(u,p,g,A,{position:n(p.axis,l,h),align:y.textAlign,verticalAlign:y.textVerticalAlign})}function s(l,u,h){return h=h||0,{x1:l[h],y1:l[1-h],x2:u[h],y2:u[1-h]}}function t(l,u,h){return h=h||0,{x:l[h],y:l[1-h],width:u[h],height:u[1-h]}}function i(l,u,h,p,g,A){return{cx:l,cy:u,r0:h,r:p,startAngle:g,endAngle:A,clockwise:!0}}P.buildElStyle=c,P.buildLabelElOption=o,P.getValueLabel=a,P.getTransformedPosition=n,P.buildCartesianSingleLabelElOption=e,P.makeLineShape=s,P.makeRectShape=t,P.makeSectorShape=i},"/zsF":function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("bE4E"),v=d.n(T)},"0/Rx":function(U,P){function d(O){return{seriesType:O,reset:function(x,T){var v=T.findComponents({mainType:"legend"});if(!v||!v.length)return;var S=x.getData();S.filterSelf(function(m){for(var f=S.getName(m),c=0;c<v.length;c++)if(!v[c].isSelected(f))return!1;return!0})}}}U.exports=d},"01d+":function(U,P,d){var O=d("bYtY"),x=O.each,T=d("HF/U"),v=T.simpleLayout,S=T.simpleLayoutEdge;function m(f,c){f.eachSeriesByType("graph",function(o){var r=o.get("layout"),a=o.coordinateSystem;if(a&&a.type!=="view"){var n=o.getData(),e=[];x(a.dimensions,function(h){e=e.concat(n.mapDimension(h,!0))});for(var s=0;s<n.count();s++){for(var t=[],i=!1,l=0;l<e.length;l++){var u=n.get(e[l],s);isNaN(u)||(i=!0),t.push(u)}i?n.setItemLayout(s,a.dataToPoint(t)):n.setItemLayout(s,[NaN,NaN])}S(n.graph)}else(!r||r==="none")&&v(o)})}U.exports=m},"06DH":function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("Kagy"),v=d("IUWy"),S=T.toolbox.magicType,m="__ec_magicType_stack__";function f(n){this.model=n}f.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:x.clone(S.title),option:{},seriesIndex:{}};var c=f.prototype;c.getIcons=function(){var n=this.model,e=n.get("icon"),s={};return x.each(n.get("type"),function(t){e[t]&&(s[t]=e[t])}),s};var o={line:function(n,e,s,t){if(n==="bar")return x.merge({id:e,type:"line",data:s.get("data"),stack:s.get("stack"),markPoint:s.get("markPoint"),markLine:s.get("markLine")},t.get("option.line")||{},!0)},bar:function(n,e,s,t){if(n==="line")return x.merge({id:e,type:"bar",data:s.get("data"),stack:s.get("stack"),markPoint:s.get("markPoint"),markLine:s.get("markLine")},t.get("option.bar")||{},!0)},stack:function(n,e,s,t){var i=s.get("stack")===m;if(n==="line"||n==="bar")return t.setIconStatus("stack",i?"normal":"emphasis"),x.merge({id:e,stack:i?"":m},t.get("option.stack")||{},!0)}},r=[["line","bar"],["stack"]];c.onclick=function(n,e,s){var t=this.model,i=t.get("seriesIndex."+s);if(!o[s])return;var l={series:[]},u=function(g){var A=g.subType,y=g.id,E=o[s](A,y,g,t);E&&(x.defaults(E,g.option),l.series.push(E));var C=g.coordinateSystem;if(C&&C.type==="cartesian2d"&&(s==="line"||s==="bar")){var w=C.getAxesByScale("ordinal")[0];if(w){var b=w.dim,I=b+"Axis",_=n.queryComponents({mainType:I,index:g.get(name+"Index"),id:g.get(name+"Id")})[0],L=_.componentIndex;l[I]=l[I]||[];for(var D=0;D<=L;D++)l[I][L]=l[I][L]||{};l[I][L].boundaryGap=s==="bar"}}};x.each(r,function(g){x.indexOf(g,s)>=0&&x.each(g,function(A){t.setIconStatus(A,"normal")})}),t.setIconStatus(s,"emphasis"),n.eachComponent({mainType:"series",query:i==null?null:{seriesIndex:i}},u);var h;if(s==="stack"){var p=l.series&&l.series[0]&&l.series[0].stack===m;h=p?x.merge({stack:S.title.tiled},S.title):x.clone(S.title)}e.dispatchAction({type:"changeMagicType",currentType:s,newOption:l,newTitle:h,featureName:"magicType"})},O.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)}),v.register("magicType",f);var a=f;U.exports=a},"06Qe":function(U,P,d){var O=d("ItGF"),x="urn:schemas-microsoft-com:vml",T=typeof window=="undefined"?null:window,v=!1,S=T&&T.document;function m(o){return f(o)}var f;if(S&&!O.canvasSupported)try{!S.namespaces.zrvml&&S.namespaces.add("zrvml",x),f=function(r){return S.createElement("<zrvml:"+r+' class="zrvml">')}}catch(o){f=function(a){return S.createElement("<"+a+' xmlns="'+x+'" class="zrvml">')}}function c(){if(v||!S)return;v=!0;var o=S.styleSheets;o.length<31?S.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):o[0].addRule(".zrvml","behavior:url(#default#VML)")}P.doc=S,P.createNode=m,P.initVML=c},"09Wf":function(U,P,d){"use strict";d.d(P,"b",function(){return x}),d.d(P,"a",function(){return T});var O=d("CWQg"),x=Object(O.a)("success","processing","error","default","warning"),T=Object(O.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},"0Bwj":function(U,P,d){var O=d("T4UG"),x=d("I3/A"),T=d("7aKB"),v=T.encodeHTML,S=d("Qxkt"),m=d("Tghj"),f=m.__DEV__,c=O.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(r,a){for(var n=r.edges||r.links,e=r.data||r.nodes,s=r.levels,t=this.levelModels={},i=0;i<s.length;i++)s[i].depth!=null&&s[i].depth>=0&&(t[s[i].depth]=new S(s[i],this,a));if(e&&n){var l=x(e,n,this,!0,u);return l.data}function u(h,p){h.wrapMethod("getItemModel",function(g,A){return g.customizeGetParent(function(y){var E=this.parentModel,C=E.getData().getItemLayout(A).depth,w=E.levelModels[C];return w||this.parentModel}),g}),p.wrapMethod("getItemModel",function(g,A){return g.customizeGetParent(function(y){var E=this.parentModel,C=E.getGraph().getEdgeByIndex(A),w=C.node1.getLayout().depth,b=E.levelModels[w];return b||this.parentModel}),g})}},setNodePosition:function(r,a){var n=this.option.data[r];n.localX=a[0],n.localY=a[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(r,a,n){if(n==="edge"){var e=this.getDataParams(r,n),s=e.data,t=s.source+" -- "+s.target;return e.value&&(t+=" : "+e.value),v(t)}else if(n==="node"){var i=this.getGraph().getNodeByIndex(r),l=i.getLayout().value,u=this.getDataParams(r,n).data.name;if(l)var t=u+" : "+l;return v(t)}return c.superCall(this,"formatTooltip",r,a)},optionUpdated:function(){var r=this.option;r.focusNodeAdjacency===!0&&(r.focusNodeAdjacency="allEdges")},getDataParams:function(r,a){var n=c.superCall(this,"getDataParams",r,a);if(n.value==null&&a==="node"){var e=this.getGraph().getNodeByIndex(r),s=e.getLayout().value;n.value=s}return n},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}}),o=c;U.exports=o},"0HBW":function(U,P,d){var O=d("ProS"),x=d("bYtY");d("Hxpc"),d("7uqq"),d("dmGj"),d("SehX");function T(v,S){S.update="updateView",O.registerAction(S,function(m,f){var c={};return f.eachComponent({mainType:"geo",query:m},function(o){o[v](m.name);var r=o.coordinateSystem;x.each(r.regions,function(a){c[a.name]=o.isSelected(a.name)||!1})}),{selected:c,name:m.name}})}T("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),T("select",{type:"geoSelect",event:"geoselected"}),T("unSelect",{type:"geoUnSelect",event:"geounselected"})},"0JAE":function(U,P,d){var O=d("bYtY"),x=d("+TT/"),T=d("OELB"),v=d("IDmD"),S=864e5;function m(o,r,a){this._model=o}m.prototype={constructor:m,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(o){o=T.parseDate(o);var r=o.getFullYear(),a=o.getMonth()+1;a=a<10?"0"+a:a;var n=o.getDate();n=n<10?"0"+n:n;var e=o.getDay();return e=Math.abs((e+7-this.getFirstDayOfWeek())%7),{y:r,m:a,d:n,day:e,time:o.getTime(),formatedDate:r+"-"+a+"-"+n,date:o}},getNextNDay:function(o,r){return r=r||0,r===0?this.getDateInfo(o):(o=new Date(this.getDateInfo(o).time),o.setDate(o.getDate()+r),this.getDateInfo(o))},update:function(o,r){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,n=["width","height"],e=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),t=this._orient==="horizontal"?[a,7]:[7,a];O.each([0,1],function(h){u(e,h)&&(s[n[h]]=e[h]*t[h])});var i={width:r.getWidth(),height:r.getHeight()},l=this._rect=x.getLayoutRect(s,i);O.each([0,1],function(h){u(e,h)||(e[h]=l[n[h]]/t[h])});function u(h,p){return h[p]!=null&&h[p]!=="auto"}this._sw=e[0],this._sh=e[1]},dataToPoint:function(o,r){O.isArray(o)&&(o=o[0]),r==null&&(r=!0);var a=this.getDateInfo(o),n=this._rangeInfo,e=a.formatedDate;if(r&&!(a.time>=n.start.time&&a.time<n.end.time+S))return[NaN,NaN];var s=a.day,t=this._getRangeInfo([n.start.time,e]).nthWeek;return this._orient==="vertical"?[this._rect.x+s*this._sw+this._sw/2,this._rect.y+t*this._sh+this._sh/2]:[this._rect.x+t*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]},pointToData:function(o){var r=this.pointToDate(o);return r&&r.time},dataToRect:function(o,r){var a=this.dataToPoint(o,r);return{contentShape:{x:a[0]-(this._sw-this._lineWidth)/2,y:a[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},pointToDate:function(o){var r=Math.floor((o[0]-this._rect.x)/this._sw)+1,a=Math.floor((o[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,r-1,n):this._getDateByWeeksAndDay(r,a-1,n)},convertToPixel:O.curry(f,"dataToPoint"),convertFromPixel:O.curry(f,"pointToData"),_initRangeOption:function(){var o=this._model.get("range"),r=o;if(O.isArray(r)&&r.length===1&&(r=r[0]),/^\d{4}$/.test(r)&&(o=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var a=this.getDateInfo(r),n=a.date;n.setMonth(n.getMonth()+1);var e=this.getNextNDay(n,-1);o=[a.formatedDate,e.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(o=[r,r]);var s=this._getRangeInfo(o);return s.start.time>s.end.time&&o.reverse(),o},_getRangeInfo:function(o){o=[this.getDateInfo(o[0]),this.getDateInfo(o[1])];var r;o[0].time>o[1].time&&(r=!0,o.reverse());var a=Math.floor(o[1].time/S)-Math.floor(o[0].time/S)+1,n=new Date(o[0].time),e=n.getDate(),s=o[1].date.getDate();n.setDate(e+a-1);var t=n.getDate();if(t!==s)for(var i=n.getTime()-o[1].time>0?1:-1;(t=n.getDate())!==s&&(n.getTime()-o[1].time)*i>0;)a-=i,n.setDate(t-i);var l=Math.floor((a+o[0].day+6)/7),u=r?-l+1:l-1;return r&&o.reverse(),{range:[o[0].formatedDate,o[1].formatedDate],start:o[0],end:o[1],allDay:a,weeks:l,nthWeek:u,fweek:o[0].day,lweek:o[1].day}},_getDateByWeeksAndDay:function(o,r,a){var n=this._getRangeInfo(a);if(o>n.weeks||o===0&&r<n.fweek||o===n.weeks&&r>n.lweek)return!1;var e=(o-1)*7-n.fweek+r,s=new Date(n.start.time);return s.setDate(n.start.d+e),this.getDateInfo(s)}},m.dimensions=m.prototype.dimensions,m.getDimensionsInfo=m.prototype.getDimensionsInfo,m.create=function(o,r){var a=[];return o.eachComponent("calendar",function(n){var e=new m(n,o,r);a.push(e),n.coordinateSystem=e}),o.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=a[n.get("calendarIndex")||0])}),a};function f(o,r,a,n){var e=a.calendarModel,s=a.seriesModel,t=e?e.coordinateSystem:s?s.coordinateSystem:null;return t===this?t[o](n):null}v.register("calendar",m);var c=m;U.exports=c},"0JQy":function(U,P){var d="\\ud800-\\udfff",O="\\u0300-\\u036f",x="\\ufe20-\\ufe2f",T="\\u20d0-\\u20ff",v=O+x+T,S="\\ufe0e\\ufe0f",m="["+d+"]",f="["+v+"]",c="\\ud83c[\\udffb-\\udfff]",o="(?:"+f+"|"+c+")",r="[^"+d+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",n="[\\ud800-\\udbff][\\udc00-\\udfff]",e="\\u200d",s=o+"?",t="["+S+"]?",i="(?:"+e+"(?:"+[r,a,n].join("|")+")"+t+s+")*",l=t+s+i,u="(?:"+[r+f+"?",f,a,n,m].join("|")+")",h=RegExp(c+"(?="+c+")|"+u+l,"g");function p(g){return g.match(h)||[]}U.exports=p},"0NbB":function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="CaretDownOutlined";var f=P.a=x.forwardRef(m)},"0V0F":function(U,P,d){var O=d("bYtY"),x=O.createHashMap,T=O.each;function v(m){var f=x();m.eachSeries(function(c){var o=c.get("stack");if(o){var r=f.get(o)||f.set(o,[]),a=c.getData(),n={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:c};if(!n.stackedDimension||!(n.isStackedByIndex||n.stackedByDimension))return;r.length&&a.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(n)}}),f.each(S)}function S(m){T(m,function(f,c){var o=[],r=[NaN,NaN],a=[f.stackResultDimension,f.stackedOverDimension],n=f.data,e=f.isStackedByIndex,s=n.map(a,function(t,i,l){var u=n.get(f.stackedDimension,l);if(isNaN(u))return r;var h,p;e?p=n.getRawIndex(l):h=n.get(f.stackedByDimension,l);for(var g=NaN,A=c-1;A>=0;A--){var y=m[A];if(e||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var E=y.data.getByRawIndex(y.stackResultDimension,p);if(u>=0&&E>0||u<=0&&E<0){u+=E,g=E;break}}}return o[0]=u,o[1]=g,o});n.hostModel.setData(s),f.data=s})}U.exports=v},"0XgM":function(U,P,d){},"0fbx":function(U,P,d){},"0o9m":function(U,P,d){var O=d("ProS");d("hNWo"),d("RlCK"),d("XpcN");var x=d("kDyi"),T=d("bLfw");O.registerProcessor(O.PRIORITY.PROCESSOR.SERIES_FILTER,x),T.registerSubTypeDefaulter("legend",function(){return"plain"})},"0qV/":function(U,P,d){var O=d("ProS");O.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),O.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){})},"0r65":function(U,P){var d=arguments[3],O=arguments[4],x=arguments[5],T=JSON.stringify;U.exports=function(v,S){for(var m,f=Object.keys(x),c=0,o=f.length;c<o;c++){var r=f[c],a=x[r].exports;if(a===v||a&&a.default===v){m=r;break}}if(!m){m=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var n={},c=0,o=f.length;c<o;c++){var r=f[c];n[r]=r}O[m]=["function(require,module,exports){"+v+"(self); }",n]}var e=Math.floor(Math.pow(16,8)*Math.random()).toString(16),s={};s[m]=m,O[e]=["function(require,module,exports){var f = require("+T(m)+");(f.default ? f.default : f)(self);}",s];var t={};i(e);function i(A){t[A]=!0;for(var y in O[A][1]){var E=O[A][1][y];t[E]||i(E)}}var l="("+d+")({"+Object.keys(t).map(function(A){return T(A)+":["+O[A][0]+","+T(O[A][1])+"]"}).join(",")+"},{},["+T(e)+"])",u=window.URL||window.webkitURL||window.mozURL||window.msURL,h=new Blob([l],{type:"text/javascript"});if(S&&S.bare)return h;var p=u.createObjectURL(h),g=new Worker(p);return g.objectURL=p,g}},"0s+r":function(U,P,d){var O=d("bYtY"),x=d("QBsz"),T=d("y23F"),v=d("H6uX"),S=d("YH21"),m=d("C0SR"),f="silent";function c(i,l,u){return{type:i,event:u,target:l.target,topTarget:l.topTarget,cancelBubble:!1,offsetX:u.zrX,offsetY:u.zrY,gestureEvent:u.gestureEvent,pinchX:u.pinchX,pinchY:u.pinchY,pinchScale:u.pinchScale,wheelDelta:u.zrDelta,zrByTouch:u.zrByTouch,which:u.which,stop:o}}function o(){S.stop(this.event)}function r(){}r.prototype.dispose=function(){};var a=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],n=function(l,u,h,p){v.call(this),this.storage=l,this.painter=u,this.painterRoot=p,h=h||new r,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,T.call(this),this.setHandlerProxy(h)};n.prototype={constructor:n,setHandlerProxy:function(l){this.proxy&&this.proxy.dispose(),l&&(O.each(a,function(u){l.on&&l.on(u,this[u],this)},this),l.handler=this),this.proxy=l},mousemove:function(l){var u=l.zrX,h=l.zrY,p=s(this,u,h),g=this._hovered,A=g.target;A&&!A.__zr&&(g=this.findHover(g.x,g.y),A=g.target);var y=this._hovered=p?{x:u,y:h}:this.findHover(u,h),E=y.target,C=this.proxy;C.setCursor&&C.setCursor(E?E.cursor:"default"),A&&E!==A&&this.dispatchToElement(g,"mouseout",l),this.dispatchToElement(y,"mousemove",l),E&&E!==A&&this.dispatchToElement(y,"mouseover",l)},mouseout:function(l){var u=l.zrEventControl,h=l.zrIsToLocalDOM;u!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",l),u!=="no_globalout"&&(!h&&this.trigger("globalout",{type:"globalout",event:l}))},resize:function(l){this._hovered={}},dispatch:function(l,u){var h=this[l];h&&h.call(this,u)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(l){var u=this.proxy;u.setCursor&&u.setCursor(l)},dispatchToElement:function(l,u,h){l=l||{};var p=l.target;if(p&&p.silent)return;for(var g="on"+u,A=c(u,l,h);p&&!(p[g]&&(A.cancelBubble=p[g].call(p,A)),p.trigger(u,A),p=p.parent,A.cancelBubble););A.cancelBubble||(this.trigger(u,A),this.painter&&this.painter.eachOtherLayer(function(y){typeof y[g]=="function"&&y[g].call(y,A),y.trigger&&y.trigger(u,A)}))},findHover:function(l,u,h){for(var p=this.storage.getDisplayList(),g={x:l,y:u},A=p.length-1;A>=0;A--){var y;if(p[A]!==h&&!p[A].ignore&&(y=e(p[A],l,u))&&(!g.topTarget&&(g.topTarget=p[A]),y!==f)){g.target=p[A];break}}return g},processGesture:function(l,u){this._gestureMgr||(this._gestureMgr=new m);var h=this._gestureMgr;u==="start"&&h.clear();var p=h.recognize(l,this.findHover(l.zrX,l.zrY,null).target,this.proxy.dom);if(u==="end"&&h.clear(),p){var g=p.type;l.gestureEvent=g,this.dispatchToElement({target:p.target},g,p.event)}}},O.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(i){n.prototype[i]=function(l){var u=l.zrX,h=l.zrY,p=s(this,u,h),g,A;if((i!=="mouseup"||!p)&&(g=this.findHover(u,h),A=g.target),i==="mousedown")this._downEl=A,this._downPoint=[l.zrX,l.zrY],this._upEl=A;else if(i==="mouseup")this._upEl=A;else if(i==="click"){if(this._downEl!==this._upEl||!this._downPoint||x.dist(this._downPoint,[l.zrX,l.zrY])>4)return;this._downPoint=null}this.dispatchToElement(g,i,l)}});function e(i,l,u){if(i[i.rectHover?"rectContain":"contain"](l,u)){for(var h=i,p;h;){if(h.clipPath&&!h.clipPath.contain(l,u))return!1;h.silent&&(p=!0),h=h.parent}return p?f:!0}return!1}function s(i,l,u){var h=i.painter;return l<0||l>h.getWidth()||u<0||u>h.getHeight()}O.mixin(n,v),O.mixin(n,T);var t=n;U.exports=t},"10cm":function(U,P,d){var O=d("ProS"),x=d("2B6p"),T=x.updateCenterAndZoom;d("0qV/");var v={type:"graphRoam",event:"graphRoam",update:"none"};O.registerAction(v,function(S,m){m.eachComponent({mainType:"series",query:S},function(f){var c=f.coordinateSystem,o=T(c,S);f.setCenter&&f.setCenter(o.center),f.setZoom&&f.setZoom(o.zoom)})})},"15/o":function(U,P,d){},"19Vz":function(U,P,d){(function(O){O(d("VrN/"))})(function(O){O.defineOption("placeholder","",function(c,o,r){var a=r&&r!=O.Init;if(o&&!a)c.on("blur",S),c.on("change",m),c.on("swapDoc",m),O.on(c.getInputField(),"compositionupdate",c.state.placeholderCompose=function(){v(c)}),m(c);else if(!o&&a){c.off("blur",S),c.off("change",m),c.off("swapDoc",m),O.off(c.getInputField(),"compositionupdate",c.state.placeholderCompose),x(c);var n=c.getWrapperElement();n.className=n.className.replace(" CodeMirror-empty","")}o&&!c.hasFocus()&&S(c)});function x(c){c.state.placeholder&&(c.state.placeholder.parentNode.removeChild(c.state.placeholder),c.state.placeholder=null)}function T(c){x(c);var o=c.state.placeholder=document.createElement("pre");o.style.cssText="height: 0; overflow: visible",o.style.direction=c.getOption("direction"),o.className="CodeMirror-placeholder CodeMirror-line-like";var r=c.getOption("placeholder");typeof r=="string"&&(r=document.createTextNode(r)),o.appendChild(r),c.display.lineSpace.insertBefore(o,c.display.lineSpace.firstChild)}function v(c){setTimeout(function(){var o=!1,r=c.getInputField();r.nodeName=="TEXTAREA"?o=!r.value:c.lineCount()==1&&(o=!/[^\u200b]/.test(r.querySelector(".CodeMirror-line").textContent)),o?T(c):x(c)},20)}function S(c){f(c)&&T(c)}function m(c){var o=c.getWrapperElement(),r=f(c);o.className=o.className.replace(" CodeMirror-empty","")+(r?" CodeMirror-empty":""),r?T(c):x(c)}function f(c){return c.lineCount()===1&&c.getLine(0)===""}})},"1Jh7":function(U,P,d){var O=d("y+Vt"),x=d("T6xi"),T=O.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(S,m){x.buildPath(S,m,!1)}});U.exports=T},"1LEl":function(U,P,d){var O=d("ProS"),x=d("F9bG"),T=O.extendComponentView({type:"axisPointer",render:function(S,m,f){var c=m.getComponent("tooltip"),o=S.get("triggerOn")||c&&c.get("triggerOn")||"mousemove|click";x.register("axisPointer",f,function(r,a,n){o!=="none"&&(r==="leave"||o.indexOf(r)>=0)&&n({type:"updateAxisPointer",currTrigger:r,x:a&&a.offsetX,y:a&&a.offsetY})})},remove:function(S,m){x.unregister(m.getZr(),"axisPointer"),T.superApply(this._model,"remove",arguments)},dispose:function(S,m){x.unregister("axisPointer",m),T.superApply(this._model,"dispose",arguments)}}),v=T;U.exports=v},"1MYJ":function(U,P,d){var O=d("y+Vt"),x=O.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var v=this.__dirtyPath,S=this.shape.paths,m=0;m<S.length;m++)v=v||S[m].__dirtyPath;this.__dirtyPath=v,this.__dirty=this.__dirty||v},beforeBrush:function(){this._updatePathDirty();for(var v=this.shape.paths||[],S=this.getGlobalScale(),m=0;m<v.length;m++)v[m].path||v[m].createPathProxy(),v[m].path.setScale(S[0],S[1],v[m].segmentIgnoreThreshold)},buildPath:function(v,S){for(var m=S.paths||[],f=0;f<m.length;f++)m[f].buildPath(v,m[f].shape,!0)},afterBrush:function(){for(var v=this.shape.paths||[],S=0;S<v.length;S++)v[S].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),O.prototype.getBoundingRect.call(this)}});U.exports=x},"1NG9":function(U,P,d){var O=d("y+Vt"),x=d("QBsz"),T=d("iXp4"),v=x.min,S=x.max,m=x.scaleAndAdd,f=x.copy,c=[],o=[],r=[];function a(u){return isNaN(u[0])||isNaN(u[1])}function n(u,h,p,g,A,y,E,C,w,b,I){return b==="none"||!b?s.apply(this,arguments):e.apply(this,arguments)}function e(u,h,p,g,A,y,E,C,w,b,I){for(var _=0,L=p,D=0;D<g;D++){var N=h[L];if(L>=A||L<0)break;if(a(N)){if(I){L+=y;continue}break}if(L===p)u[y>0?"moveTo":"lineTo"](N[0],N[1]);else if(w>0){var R=h[_],B=b==="y"?1:0,M=(N[B]-R[B])*w;f(o,R),o[B]=R[B]+M,f(r,N),r[B]=N[B]-M,u.bezierCurveTo(o[0],o[1],r[0],r[1],N[0],N[1])}else u.lineTo(N[0],N[1]);_=L,L+=y}return D}function s(u,h,p,g,A,y,E,C,w,b,I){for(var _=0,L=p,D=0;D<g;D++){var N=h[L];if(L>=A||L<0)break;if(a(N)){if(I){L+=y;continue}break}if(L===p)u[y>0?"moveTo":"lineTo"](N[0],N[1]),f(o,N);else if(w>0){var R=L+y,B=h[R];if(I)for(;B&&a(h[R]);)R+=y,B=h[R];var M=.5,H=h[_],B=h[R];if(!B||a(B))f(r,N);else{a(B)&&!I&&(B=N),x.sub(c,B,H);var F,K;if(b==="x"||b==="y"){var j=b==="x"?0:1;F=Math.abs(N[j]-H[j]),K=Math.abs(N[j]-B[j])}else F=x.dist(N,H),K=x.dist(N,B);M=K/(K+F),m(r,N,c,-w*(1-M))}v(o,o,C),S(o,o,E),v(r,r,C),S(r,r,E),u.bezierCurveTo(o[0],o[1],r[0],r[1],N[0],N[1]),m(o,N,c,w*M)}else u.lineTo(N[0],N[1]);_=L,L+=y}return D}function t(u,h){var p=[Infinity,Infinity],g=[-Infinity,-Infinity];if(h)for(var A=0;A<u.length;A++){var y=u[A];y[0]<p[0]&&(p[0]=y[0]),y[1]<p[1]&&(p[1]=y[1]),y[0]>g[0]&&(g[0]=y[0]),y[1]>g[1]&&(g[1]=y[1])}return{min:h?p:g,max:h?g:p}}var i=O.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:T(O.prototype.brush),buildPath:function(u,h){var p=h.points,g=0,A=p.length,y=t(p,h.smoothConstraint);if(h.connectNulls){for(;A>0&&a(p[A-1]);A--);for(;g<A&&a(p[g]);g++);}for(;g<A;)g+=n(u,p,g,A,A,1,y.min,y.max,h.smooth,h.smoothMonotone,h.connectNulls)+1}}),l=O.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:T(O.prototype.brush),buildPath:function(u,h){var p=h.points,g=h.stackedOnPoints,A=0,y=p.length,E=h.smoothMonotone,C=t(p,h.smoothConstraint),w=t(g,h.smoothConstraint);if(h.connectNulls){for(;y>0&&a(p[y-1]);y--);for(;A<y&&a(p[A]);A++);}for(;A<y;){var b=n(u,p,A,y,y,1,C.min,C.max,h.smooth,E,h.connectNulls);n(u,g,A+b-1,b,y,-1,w.min,w.max,h.stackedOnSmooth,E,h.connectNulls),A+=b+1,u.closePath()}}});P.Polyline=i,P.Polygon=l},"1RvN":function(U,P){var d=function(){this.head=null,this.tail=null,this._len=0},O=d.prototype;O.insert=function(m){var f=new x(m);return this.insertEntry(f),f},O.insertEntry=function(m){this.head?(this.tail.next=m,m.prev=this.tail,m.next=null,this.tail=m):this.head=this.tail=m,this._len++},O.remove=function(m){var f=m.prev,c=m.next;f?f.next=c:this.head=c,c?c.prev=f:this.tail=f,m.next=m.prev=null,this._len--},O.len=function(){return this._len},O.clear=function(){this.head=this.tail=null,this._len=0};var x=function(f){this.value=f,this.next,this.prev},T=function(f){this._list=new d,this._map={},this._maxSize=f||10,this._lastRemovedEntry=null},v=T.prototype;v.put=function(m,f){var c=this._list,o=this._map,r=null;if(o[m]==null){var a=c.len(),n=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var e=c.head;c.remove(e),delete o[e.key],r=e.value,this._lastRemovedEntry=e}n?n.value=f:n=new x(f),n.key=m,c.insertEntry(n),o[m]=n}return r},v.get=function(m){var f=this._map[m],c=this._list;if(f!=null)return f!==c.tail&&(c.remove(f),c.insertEntry(f)),f.value},v.clear=function(){this._list.clear(),this._map={}};var S=T;U.exports=S},"1bdT":function(U,P,d){var O=d("3gBT"),x=d("H6uX"),T=d("DN4a"),v=d("vWvF"),S=d("bYtY"),m=function(o){T.call(this,o),x.call(this,o),v.call(this,o),this.id=o.id||O()};m.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(o,r){switch(this.draggable){case"horizontal":r=0;break;case"vertical":o=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=o,a[5]+=r,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(o,r){},attrKV:function(o,r){if(o==="position"||o==="scale"||o==="origin"){if(r){var a=this[o];a||(a=this[o]=[]),a[0]=r[0],a[1]=r[1]}}else this[o]=r},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(o,r){if(typeof o=="string")this.attrKV(o,r);else if(S.isObject(o))for(var a in o)o.hasOwnProperty(a)&&this.attrKV(a,o[a]);return this.dirty(!1),this},setClipPath:function(o){var r=this.__zr;r&&o.addSelfToZr(r),this.clipPath&&this.clipPath!==o&&this.removeClipPath(),this.clipPath=o,o.__zr=r,o.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var o=this.clipPath;o&&(o.__zr&&o.removeSelfFromZr(o.__zr),o.__zr=null,o.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(o){this.__zr=o;var r=this.animators;if(r)for(var a=0;a<r.length;a++)o.animation.addAnimator(r[a]);this.clipPath&&this.clipPath.addSelfToZr(o)},removeSelfFromZr:function(o){this.__zr=null;var r=this.animators;if(r)for(var a=0;a<r.length;a++)o.animation.removeAnimator(r[a]);this.clipPath&&this.clipPath.removeSelfFromZr(o)}},S.mixin(m,v),S.mixin(m,T),S.mixin(m,x);var f=m;U.exports=f},"1dTM":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=d("GQ8N"),x=b(d("Lo0S")),T=d("VSMT"),v=d("GdRQ"),S=d("SZEN"),m=d("vewr"),f=C(d("YJ9k")),c=C(d("MZdM")),o=C(d("ItS6")),r=C(d("whVF")),a=C(d("Fv0C")),n=C(d("LCi9")),e=C(d("rwxt")),s=C(d("Mmt2")),t=C(d("iUHT")),i=C(d("mHUz")),l=C(d("P2ho")),u=d("NBmB");d("mdZa");var h=C(d("34/K")),p=C(d("hXwI")),g=C(d("SgaC")),A=C(d("3690")),y=C(d("8K/p")),E=C(d("xO64"));function C(Ae){return Ae&&Ae.__esModule?Ae:{default:Ae}}function w(){if(typeof WeakMap!="function")return null;var Ae=new WeakMap;return w=function(){return Ae},Ae}function b(Ae){if(Ae&&Ae.__esModule)return Ae;if(Ae===null||I(Ae)!=="object"&&typeof Ae!="function")return{default:Ae};var he=w();if(he&&he.has(Ae))return he.get(Ae);var Me={},Ie=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var oe in Ae)if(Object.prototype.hasOwnProperty.call(Ae,oe)){var pe=Ie?Object.getOwnPropertyDescriptor(Ae,oe):null;pe&&(pe.get||pe.set)?Object.defineProperty(Me,oe,pe):Me[oe]=Ae[oe]}return Me.default=Ae,he&&he.set(Ae,Me),Me}function I(Ae){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(Me){return typeof Me}:I=function(Me){return Me&&typeof Symbol=="function"&&Me.constructor===Symbol&&Me!==Symbol.prototype?"symbol":typeof Me},I(Ae)}function _(Ae,he){if(!(Ae instanceof he))throw new TypeError("Cannot call a class as a function")}function L(Ae,he){for(var Me=0;Me<he.length;Me++){var Ie=he[Me];Ie.enumerable=Ie.enumerable||!1,Ie.configurable=!0,"value"in Ie&&(Ie.writable=!0),Object.defineProperty(Ae,Ie.key,Ie)}}function D(Ae,he,Me){return he&&L(Ae.prototype,he),Me&&L(Ae,Me),Ae}function N(Ae,he){if(typeof he!="function"&&he!==null)throw new TypeError("Super expression must either be null or a function");Ae.prototype=Object.create(he&&he.prototype,{constructor:{value:Ae,writable:!0,configurable:!0}}),he&&R(Ae,he)}function R(Ae,he){return R=Object.setPrototypeOf||function(Ie,oe){return Ie.__proto__=oe,Ie},R(Ae,he)}function B(Ae){var he=F();return function(){var Ie=K(Ae),oe;if(he){var pe=K(this).constructor;oe=Reflect.construct(Ie,arguments,pe)}else oe=Ie.apply(this,arguments);return M(this,oe)}}function M(Ae,he){return he&&(I(he)==="object"||typeof he=="function")?he:H(Ae)}function H(Ae){if(Ae===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ae}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(Ae){return!1}}function K(Ae){return K=Object.setPrototypeOf?Object.getPrototypeOf:function(Me){return Me.__proto__||Object.getPrototypeOf(Me)},K(Ae)}var j=3,V="rgb(40, 40, 40)",z=17,Y=50,ee=19,fe=75,ie=50,we=1e3,Ce=50,Le=1,He=1<<1,ce=1<<2,Pe=1<<3,Q=1<<4,me=1<<24,Je=1<<25,re=1<<26,G=1<<27,X=1<<28,J=function(Ae){N(Me,Ae);var he=B(Me);function Me(Ie,oe,pe){var Oe;if(_(this,Me),!Ie)throw new Error("Must specify target");if(!oe)throw new Error("Must specify URL");Oe=he.call(this),Oe._target=Ie,Oe._url=oe,pe=pe||{},Oe._rfbCredentials=pe.credentials||{},Oe._shared="shared"in pe?!!pe.shared:!0,Oe._repeaterID=pe.repeaterID||"",Oe._wsProtocols=pe.wsProtocols||[],Oe._rfbConnectionState="",Oe._rfbInitState="",Oe._rfbAuthScheme=-1,Oe._rfbCleanDisconnect=!0,Oe._rfbVersion=0,Oe._rfbMaxVersion=3.8,Oe._rfbTightVNC=!1,Oe._rfbVeNCryptState=0,Oe._rfbXvpVer=0,Oe._fbWidth=0,Oe._fbHeight=0,Oe._fbName="",Oe._capabilities={power:!1},Oe._supportsFence=!1,Oe._supportsContinuousUpdates=!1,Oe._enabledContinuousUpdates=!1,Oe._supportsSetDesktopSize=!1,Oe._screenID=0,Oe._screenFlags=0,Oe._qemuExtKeyEventSupported=!1,Oe._clipboardText=null,Oe._clipboardServerCapabilitiesActions={},Oe._clipboardServerCapabilitiesFormats={},Oe._sock=null,Oe._display=null,Oe._flushing=!1,Oe._keyboard=null,Oe._gestures=null,Oe._disconnTimer=null,Oe._resizeTimeout=null,Oe._mouseMoveTimer=null,Oe._decoders={},Oe._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},Oe._mousePos={},Oe._mouseButtonMask=0,Oe._mouseLastMoveTime=0,Oe._viewportDragging=!1,Oe._viewportDragPos={},Oe._viewportHasMoved=!1,Oe._accumulatedWheelDeltaX=0,Oe._accumulatedWheelDeltaY=0,Oe._gestureLastTapTime=null,Oe._gestureFirstDoubleTapEv=null,Oe._gestureLastMagnitudeX=0,Oe._gestureLastMagnitudeY=0,Oe._eventHandlers={focusCanvas:Oe._focusCanvas.bind(H(Oe)),windowResize:Oe._windowResize.bind(H(Oe)),handleMouse:Oe._handleMouse.bind(H(Oe)),handleWheel:Oe._handleWheel.bind(H(Oe)),handleGesture:Oe._handleGesture.bind(H(Oe))},x.Debug(">> RFB.constructor"),Oe._screen=document.createElement("div"),Oe._screen.style.display="flex",Oe._screen.style.width="100%",Oe._screen.style.height="100%",Oe._screen.style.overflow="auto",Oe._screen.style.background=V,Oe._canvas=document.createElement("canvas"),Oe._canvas.style.margin="auto",Oe._canvas.style.outline="none",Oe._canvas.style.flexShrink="0",Oe._canvas.width=0,Oe._canvas.height=0,Oe._canvas.tabIndex=-1,Oe._screen.appendChild(Oe._canvas),Oe._cursor=new e.default,Oe._cursorImage=Me.cursors.none,Oe._decoders[u.encodings.encodingRaw]=new h.default,Oe._decoders[u.encodings.encodingCopyRect]=new p.default,Oe._decoders[u.encodings.encodingRRE]=new g.default,Oe._decoders[u.encodings.encodingHextile]=new A.default,Oe._decoders[u.encodings.encodingTight]=new y.default,Oe._decoders[u.encodings.encodingTightPNG]=new E.default;try{Oe._display=new c.default(Oe._canvas)}catch(Ye){throw x.Error("Display exception: "+Ye),Ye}return Oe._display.onflush=Oe._onFlush.bind(H(Oe)),Oe._keyboard=new a.default(Oe._canvas),Oe._keyboard.onkeyevent=Oe._handleKeyEvent.bind(H(Oe)),Oe._gestures=new n.default,Oe._sock=new s.default,Oe._sock.on("message",function(){Oe._handleMessage()}),Oe._sock.on("open",function(){Oe._rfbConnectionState==="connecting"&&Oe._rfbInitState===""?(Oe._rfbInitState="ProtocolVersion",x.Debug("Starting VNC handshake")):Oe._fail("Unexpected server connection while "+Oe._rfbConnectionState)}),Oe._sock.on("close",function(Ye){x.Debug("WebSocket on-close event");var it="";Ye.code&&(it="(code: "+Ye.code,Ye.reason&&(it+=", reason: "+Ye.reason),it+=")");switch(Oe._rfbConnectionState){case"connecting":Oe._fail("Connection closed "+it);break;case"connected":Oe._updateConnectionState("disconnecting"),Oe._updateConnectionState("disconnected");break;case"disconnecting":Oe._updateConnectionState("disconnected");break;case"disconnected":Oe._fail("Unexpected server disconnect when already disconnected "+it);break;default:Oe._fail("Unexpected server disconnect before connecting "+it);break}Oe._sock.off("close")}),Oe._sock.on("error",function(Ye){return x.Warn("WebSocket on-error event")}),setTimeout(Oe._updateConnectionState.bind(H(Oe),"connecting")),x.Debug("<< RFB.constructor"),Oe.dragViewport=!1,Oe.focusOnClick=!0,Oe._viewOnly=!1,Oe._clipViewport=!1,Oe._scaleViewport=!1,Oe._resizeSession=!1,Oe._showDotCursor=!1,pe.showDotCursor!==void 0&&(x.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),Oe._showDotCursor=pe.showDotCursor),Oe._qualityLevel=6,Oe._compressionLevel=2,Oe}return D(Me,[{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}},{key:"sendCredentials",value:function(oe){this._rfbCredentials=oe,setTimeout(this._initMsg.bind(this),0)}},{key:"sendCtrlAltDel",value:function(){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;x.Info("Sending Ctrl-Alt-Del"),this.sendKey(i.default.XK_Control_L,"ControlLeft",!0),this.sendKey(i.default.XK_Alt_L,"AltLeft",!0),this.sendKey(i.default.XK_Delete,"Delete",!0),this.sendKey(i.default.XK_Delete,"Delete",!1),this.sendKey(i.default.XK_Alt_L,"AltLeft",!1),this.sendKey(i.default.XK_Control_L,"ControlLeft",!1)}},{key:"machineShutdown",value:function(){this._xvpOp(1,2)}},{key:"machineReboot",value:function(){this._xvpOp(1,3)}},{key:"machineReset",value:function(){this._xvpOp(1,4)}},{key:"sendKey",value:function(oe,pe,Oe){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(Oe===void 0){this.sendKey(oe,pe,!0),this.sendKey(oe,pe,!1);return}var Ye=l.default[pe];if(this._qemuExtKeyEventSupported&&Ye)oe=oe||0,x.Info("Sending key ("+(Oe?"down":"up")+"): keysym "+oe+", scancode "+Ye),Me.messages.QEMUExtendedKeyEvent(this._sock,oe,Oe,Ye);else{if(!oe)return;x.Info("Sending keysym ("+(Oe?"down":"up")+"): "+oe),Me.messages.keyEvent(this._sock,oe,Oe?1:0)}}},{key:"focus",value:function(){this._canvas.focus()}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(oe){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(this._clipboardServerCapabilitiesFormats[Le]&&this._clipboardServerCapabilitiesActions[G])this._clipboardText=oe,Me.messages.extendedClipboardNotify(this._sock,[Le]);else{for(var pe=new Uint8Array(oe.length),Oe=0;Oe<oe.length;Oe++)pe[Oe]=oe.charCodeAt(Oe);Me.messages.clientCutText(this._sock,pe)}}},{key:"_connect",value:function(){x.Debug(">> RFB.connect"),x.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(oe){oe.name==="SyntaxError"?this._fail("Invalid host or port ("+oe+")"):this._fail("Error when opening socket ("+oe+")")}this._target.appendChild(this._screen),this._gestures.attach(this._canvas),this._cursor.attach(this._canvas),this._refreshCursor(),window.addEventListener("resize",this._eventHandlers.windowResize),this._canvas.addEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.addEventListener("touchstart",this._eventHandlers.focusCanvas),this._canvas.addEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.addEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.addEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.addEventListener("click",this._eventHandlers.handleMouse),this._canvas.addEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.addEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.addEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.addEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.addEventListener("gestureend",this._eventHandlers.handleGesture),x.Debug("<< RFB.connect")}},{key:"_disconnect",value:function(){x.Debug(">> RFB.disconnect"),this._cursor.detach(),this._canvas.removeEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gestureend",this._eventHandlers.handleGesture),this._canvas.removeEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.removeEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.removeEventListener("click",this._eventHandlers.handleMouse),this._canvas.removeEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.removeEventListener("touchstart",this._eventHandlers.focusCanvas),window.removeEventListener("resize",this._eventHandlers.windowResize),this._keyboard.ungrab(),this._gestures.detach(),this._sock.close();try{this._target.removeChild(this._screen)}catch(oe){if(!(oe.name==="NotFoundError"))throw oe}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),x.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(oe){if(!this.focusOnClick)return;this.focus()}},{key:"_setDesktopName",value:function(oe){this._fbName=oe,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(oe){var pe=this;window.requestAnimationFrame(function(){pe._updateClip(),pe._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var oe=this._display.clipViewport,pe=this._clipViewport;if(this._scaleViewport&&(pe=!1),oe!==pe&&(this._display.clipViewport=pe),pe){var Oe=this._screenSize();this._display.viewportChangeSize(Oe.w,Oe.h),this._fixScrollbars()}}},{key:"_updateScale",value:function(){if(!this._scaleViewport)this._display.scale=1;else{var oe=this._screenSize();this._display.autoscale(oe.w,oe.h)}this._fixScrollbars()}},{key:"_requestRemoteResize",value:function(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;var oe=this._screenSize();Me.messages.setDesktopSize(this._sock,Math.floor(oe.w),Math.floor(oe.h),this._screenID,this._screenFlags),x.Debug("Requested new desktop size: "+oe.w+"x"+oe.h)}},{key:"_screenSize",value:function(){var oe=this._screen.getBoundingClientRect();return{w:oe.width,h:oe.height}}},{key:"_fixScrollbars",value:function(){var oe=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=oe}},{key:"_updateConnectionState",value:function(oe){var pe=this,Oe=this._rfbConnectionState;if(oe===Oe){x.Debug("Already in state '"+oe+"', ignoring");return}if(Oe==="disconnected"){x.Error("Tried changing state of a disconnected RFB object");return}switch(oe){case"connected":if(Oe!=="connecting"){x.Error("Bad transition to connected state, previous connection state: "+Oe);return}break;case"disconnected":if(Oe!=="disconnecting"){x.Error("Bad transition to disconnected state, previous connection state: "+Oe);return}break;case"connecting":if(Oe!==""){x.Error("Bad transition to connecting state, previous connection state: "+Oe);return}break;case"disconnecting":if(Oe!=="connected"&&Oe!=="connecting"){x.Error("Bad transition to disconnecting state, previous connection state: "+Oe);return}break;default:x.Error("Unknown connection state: "+oe);return}this._rfbConnectionState=oe,x.Debug("New state '"+oe+"', was '"+Oe+"'."),this._disconnTimer&&oe!=="disconnecting"&&(x.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close"));switch(oe){case"connecting":this._connect();break;case"connected":this.dispatchEvent(new CustomEvent("connect",{detail:{}}));break;case"disconnecting":this._disconnect(),this._disconnTimer=setTimeout(function(){x.Error("Disconnection timed out."),pe._updateConnectionState("disconnected")},j*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}},{key:"_fail",value:function(oe){switch(this._rfbConnectionState){case"disconnecting":x.Error("Failed when disconnecting: "+oe);break;case"connected":x.Error("Failed while connected: "+oe);break;case"connecting":x.Error("Failed when connecting: "+oe);break;default:x.Error("RFB failure: "+oe);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(oe,pe){this._capabilities[oe]=pe,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}},{key:"_handleMessage",value:function(){if(this._sock.rQlen===0){x.Warn("handleMessage called on an empty receive queue");return}switch(this._rfbConnectionState){case"disconnected":x.Error("Got data while disconnected");break;case"connected":for(;!this._flushing;){if(!this._normalMsg())break;if(this._sock.rQlen===0)break}break;default:this._initMsg();break}}},{key:"_handleKeyEvent",value:function(oe,pe,Oe){this.sendKey(oe,pe,Oe)}},{key:"_handleMouse",value:function(oe){if(oe.type==="click"&&oe.target!==this._canvas)return;if(oe.stopPropagation(),oe.preventDefault(),oe.type==="click"||oe.type==="contextmenu")return;var pe=(0,S.clientToElement)(oe.clientX,oe.clientY,this._canvas);switch(oe.type){case"mousedown":(0,m.setCapture)(this._canvas),this._handleMouseButton(pe.x,pe.y,!0,1<<oe.button);break;case"mouseup":this._handleMouseButton(pe.x,pe.y,!1,1<<oe.button);break;case"mousemove":this._handleMouseMove(pe.x,pe.y);break}}},{key:"_handleMouseButton",value:function(oe,pe,Oe,Ye){if(this.dragViewport)if(Oe&&!this._viewportDragging){this._viewportDragging=!0,this._viewportDragPos={x:oe,y:pe},this._viewportHasMoved=!1;return}else{if(this._viewportDragging=!1,this._viewportHasMoved)return;this._sendMouse(oe,pe,Ye)}this._mouseMoveTimer!==null&&(clearTimeout(this._mouseMoveTimer),this._mouseMoveTimer=null,this._sendMouse(oe,pe,this._mouseButtonMask)),Oe?this._mouseButtonMask|=Ye:this._mouseButtonMask&=~Ye,this._sendMouse(oe,pe,this._mouseButtonMask)}},{key:"_handleMouseMove",value:function(oe,pe){var Oe=this;if(this._viewportDragging){var Ye=this._viewportDragPos.x-oe,it=this._viewportDragPos.y-pe;(this._viewportHasMoved||Math.abs(Ye)>v.dragThreshold||Math.abs(it)>v.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:oe,y:pe},this._display.viewportChangePos(Ye,it));return}if(this._mousePos={x:oe,y:pe},this._mouseMoveTimer==null){var et=Date.now()-this._mouseLastMoveTime;et>z?(this._sendMouse(oe,pe,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){Oe._handleDelayedMouseMove()},z-et)}}},{key:"_handleDelayedMouseMove",value:function(){this._mouseMoveTimer=null,this._sendMouse(this._mousePos.x,this._mousePos.y,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()}},{key:"_sendMouse",value:function(oe,pe,Oe){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;Me.messages.pointerEvent(this._sock,this._display.absX(oe),this._display.absY(pe),Oe)}},{key:"_handleWheel",value:function(oe){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;oe.stopPropagation(),oe.preventDefault();var pe=(0,S.clientToElement)(oe.clientX,oe.clientY,this._canvas),Oe=oe.deltaX,Ye=oe.deltaY;oe.deltaMode!==0&&(Oe*=ee,Ye*=ee),this._accumulatedWheelDeltaX+=Oe,this._accumulatedWheelDeltaY+=Ye,Math.abs(this._accumulatedWheelDeltaX)>=Y&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(pe.x,pe.y,!0,1<<5),this._handleMouseButton(pe.x,pe.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(pe.x,pe.y,!0,1<<6),this._handleMouseButton(pe.x,pe.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=Y&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(pe.x,pe.y,!0,1<<3),this._handleMouseButton(pe.x,pe.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(pe.x,pe.y,!0,1<<4),this._handleMouseButton(pe.x,pe.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(oe,pe,Oe){this._handleMouseMove(pe,Oe),this._cursor.move(oe.detail.clientX,oe.detail.clientY)}},{key:"_handleTapEvent",value:function(oe,pe){var Oe=(0,S.clientToElement)(oe.detail.clientX,oe.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTime<we&&this._gestureFirstDoubleTapEv.detail.type===oe.detail.type){var Ye=this._gestureFirstDoubleTapEv.detail.clientX-oe.detail.clientX,it=this._gestureFirstDoubleTapEv.detail.clientY-oe.detail.clientY,et=Math.hypot(Ye,it);et<Ce?Oe=(0,S.clientToElement)(this._gestureFirstDoubleTapEv.detail.clientX,this._gestureFirstDoubleTapEv.detail.clientY,this._canvas):this._gestureFirstDoubleTapEv=oe}else this._gestureFirstDoubleTapEv=oe;this._gestureLastTapTime=Date.now(),this._fakeMouseMove(this._gestureFirstDoubleTapEv,Oe.x,Oe.y),this._handleMouseButton(Oe.x,Oe.y,!0,pe),this._handleMouseButton(Oe.x,Oe.y,!1,pe)}},{key:"_handleGesture",value:function(oe){var pe,Oe=(0,S.clientToElement)(oe.detail.clientX,oe.detail.clientY,this._canvas);switch(oe.type){case"gesturestart":switch(oe.detail.type){case"onetap":this._handleTapEvent(oe,1);break;case"twotap":this._handleTapEvent(oe,4);break;case"threetap":this._handleTapEvent(oe,2);break;case"drag":this._fakeMouseMove(oe,Oe.x,Oe.y),this._handleMouseButton(Oe.x,Oe.y,!0,1);break;case"longpress":this._fakeMouseMove(oe,Oe.x,Oe.y),this._handleMouseButton(Oe.x,Oe.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=oe.detail.magnitudeX,this._gestureLastMagnitudeY=oe.detail.magnitudeY,this._fakeMouseMove(oe,Oe.x,Oe.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(oe.detail.magnitudeX,oe.detail.magnitudeY),this._fakeMouseMove(oe,Oe.x,Oe.y);break}break;case"gesturemove":switch(oe.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(oe,Oe.x,Oe.y);break;case"twodrag":for(this._fakeMouseMove(oe,Oe.x,Oe.y);oe.detail.magnitudeY-this._gestureLastMagnitudeY>ie;)this._handleMouseButton(Oe.x,Oe.y,!0,8),this._handleMouseButton(Oe.x,Oe.y,!1,8),this._gestureLastMagnitudeY+=ie;for(;oe.detail.magnitudeY-this._gestureLastMagnitudeY<-ie;)this._handleMouseButton(Oe.x,Oe.y,!0,16),this._handleMouseButton(Oe.x,Oe.y,!1,16),this._gestureLastMagnitudeY-=ie;for(;oe.detail.magnitudeX-this._gestureLastMagnitudeX>ie;)this._handleMouseButton(Oe.x,Oe.y,!0,32),this._handleMouseButton(Oe.x,Oe.y,!1,32),this._gestureLastMagnitudeX+=ie;for(;oe.detail.magnitudeX-this._gestureLastMagnitudeX<-ie;)this._handleMouseButton(Oe.x,Oe.y,!0,64),this._handleMouseButton(Oe.x,Oe.y,!1,64),this._gestureLastMagnitudeX-=ie;break;case"pinch":if(this._fakeMouseMove(oe,Oe.x,Oe.y),pe=Math.hypot(oe.detail.magnitudeX,oe.detail.magnitudeY),Math.abs(pe-this._gestureLastMagnitudeX)>fe){for(this._handleKeyEvent(i.default.XK_Control_L,"ControlLeft",!0);pe-this._gestureLastMagnitudeX>fe;)this._handleMouseButton(Oe.x,Oe.y,!0,8),this._handleMouseButton(Oe.x,Oe.y,!1,8),this._gestureLastMagnitudeX+=fe;for(;pe-this._gestureLastMagnitudeX<-fe;)this._handleMouseButton(Oe.x,Oe.y,!0,16),this._handleMouseButton(Oe.x,Oe.y,!1,16),this._gestureLastMagnitudeX-=fe}this._handleKeyEvent(i.default.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(oe.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(oe,Oe.x,Oe.y),this._handleMouseButton(Oe.x,Oe.y,!1,1);break;case"longpress":this._fakeMouseMove(oe,Oe.x,Oe.y),this._handleMouseButton(Oe.x,Oe.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var oe=this._sock.rQshiftStr(12).substr(4,7);x.Info("Server ProtocolVersion: "+oe);var pe=0;switch(oe){case"000.000":pe=1;break;case"003.003":case"003.006":case"003.889":this._rfbVersion=3.3;break;case"003.007":this._rfbVersion=3.7;break;case"003.008":case"004.000":case"004.001":case"005.000":this._rfbVersion=3.8;break;default:return this._fail("Invalid server version "+oe)}if(pe){for(var Oe="ID:"+this._repeaterID;Oe.length<250;)Oe+="\0";return this._sock.sendString(Oe),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var Ye="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+Ye+`
|
|
|
`),x.Debug("Sent ProtocolVersion: "+Ye),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function oe(Ye,it){for(var et=0;et<it.length;et++)if(it[et]===Ye)return!0;return!1}if(this._rfbVersion>=3.7){var pe=this._sock.rQshift8();if(this._sock.rQwait("security type",pe,1))return!1;if(pe===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var Oe=this._sock.rQshiftBytes(pe);if(x.Debug("Server security types: "+Oe),oe(1,Oe))this._rfbAuthScheme=1;else if(oe(22,Oe))this._rfbAuthScheme=22;else if(oe(16,Oe))this._rfbAuthScheme=16;else if(oe(2,Oe))this._rfbAuthScheme=2;else if(oe(19,Oe))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+Oe+")");this._sock.send([this._rfbAuthScheme])}else{if(this._sock.rQwait("security scheme",4))return!1;if(this._rfbAuthScheme=this._sock.rQshift32(),this._rfbAuthScheme==0)return this._rfbInitState="SecurityReason",this._securityContext="authentication scheme",this._securityStatus=1,this._initMsg()}return this._rfbInitState="Authentication",x.Debug("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}},{key:"_handleSecurityReason",value:function(){if(this._sock.rQwait("reason length",4))return!1;var oe=this._sock.rQshift32(),pe="";if(oe>0){if(this._sock.rQwait("reason",oe,4))return!1;pe=this._sock.rQshiftStr(oe)}return pe!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:pe}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+pe+")")):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus}})),this._fail("Security negotiation failed on "+this._securityContext))}},{key:"_negotiateXvpAuth",value:function(){if(this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0||this._rfbCredentials.target===void 0)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password","target"]}})),!1;var oe=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(oe),this._rfbAuthScheme=2,this._negotiateAuthentication()}},{key:"_negotiateVeNCryptAuth",value:function(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;var oe=this._sock.rQshift8(),pe=this._sock.rQshift8();if(!(oe==0&&pe==2))return this._fail("Unsupported VeNCrypt version "+oe+"."+pe);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;var Oe=this._sock.rQshift8();if(Oe!=0)return this._fail("VeNCrypt failure "+Oe);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var Ye=this._sock.rQshift8();if(Ye<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=Ye,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var it=[],et=0;et<this._rfbVeNCryptSubtypesLength;et++)it.push(this._sock.rQshift32());if(it.indexOf(256)!=-1)this._sock.send([0,0,1,0]),this._rfbVeNCryptState=4;else return this._fail("VeNCrypt Plain subtype not offered by server")}if(this._rfbVeNCryptState==4){if(!this._rfbCredentials.username||!this._rfbCredentials.password)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1;var Te=(0,T.encodeUTF8)(this._rfbCredentials.username),tt=(0,T.encodeUTF8)(this._rfbCredentials.password);return this._sock.send([0,0,0,Te.length]),this._sock.send([0,0,0,tt.length]),this._sock.sendString(Te),this._sock.sendString(tt),this._rfbInitState="SecurityResult",!0}}},{key:"_negotiateStdVNCAuth",value:function(){if(this._sock.rQwait("auth challenge",16))return!1;if(this._rfbCredentials.password===void 0)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["password"]}})),!1;var oe=Array.prototype.slice.call(this._sock.rQshiftBytes(16)),pe=Me.genDES(this._rfbCredentials.password,oe);return this._sock.send(pe),this._rfbInitState="SecurityResult",!0}},{key:"_negotiateTightUnixAuth",value:function(){return this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0?(this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1):(this._sock.send([0,0,0,this._rfbCredentials.username.length]),this._sock.send([0,0,0,this._rfbCredentials.password.length]),this._sock.sendString(this._rfbCredentials.username),this._sock.sendString(this._rfbCredentials.password),this._rfbInitState="SecurityResult",!0)}},{key:"_negotiateTightTunnels",value:function(oe){for(var pe={0:{vendor:"TGHT",signature:"NOTUNNEL"}},Oe={},Ye=0;Ye<oe;Ye++){var it=this._sock.rQshift32(),et=this._sock.rQshiftStr(4),Te=this._sock.rQshiftStr(8);Oe[it]={vendor:et,signature:Te}}return x.Debug("Server Tight tunnel types: "+Oe),Oe[1]&&Oe[1].vendor==="SICR"&&Oe[1].signature==="SCHANNEL"&&(x.Debug("Detected Siemens server. Assuming NOTUNNEL support."),Oe[0]={vendor:"TGHT",signature:"NOTUNNEL"}),Oe[0]?Oe[0].vendor!=pe[0].vendor||Oe[0].signature!=pe[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(x.Debug("Selected tunnel type: "+pe[0]),this._sock.send([0,0,0,0]),!1):this._fail("Server wanted tunnels, but doesn't support the notunnel type")}},{key:"_negotiateTightAuth",value:function(){if(!this._rfbTightVNC){if(this._sock.rQwait("num tunnels",4))return!1;var oe=this._sock.rQshift32();if(oe>0&&this._sock.rQwait("tunnel capabilities",16*oe,4))return!1;if(this._rfbTightVNC=!0,oe>0)return this._negotiateTightTunnels(oe),!1}if(this._sock.rQwait("sub auth count",4))return!1;var pe=this._sock.rQshift32();if(pe===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*pe,4))return!1;for(var Oe={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},Ye=[],it=0;it<pe;it++){this._sock.rQshift32();var et=this._sock.rQshiftStr(12);Ye.push(et)}x.Debug("Server Tight authentication types: "+Ye);for(var Te in Oe)if(Ye.indexOf(Te)!=-1){this._sock.send([0,0,0,Oe[Te]]),x.Debug("Selected authentication type: "+Te);switch(Te){case"STDVNOAUTH__":return this._rfbInitState="SecurityResult",!0;case"STDVVNCAUTH_":return this._rfbAuthScheme=2,this._initMsg();case"TGHTULGNAUTH":return this._rfbAuthScheme=129,this._initMsg();default:return this._fail("Unsupported tiny auth scheme (scheme: "+Te+")")}}return this._fail("No supported sub-auth types!")}},{key:"_negotiateAuthentication",value:function(){switch(this._rfbAuthScheme){case 1:return this._rfbVersion>=3.8?(this._rfbInitState="SecurityResult",!0):(this._rfbInitState="ClientInitialisation",this._initMsg());case 22:return this._negotiateXvpAuth();case 2:return this._negotiateStdVNCAuth();case 16:return this._negotiateTightAuth();case 19:return this._negotiateVeNCryptAuth();case 129:return this._negotiateTightUnixAuth();default:return this._fail("Unsupported auth scheme (scheme: "+this._rfbAuthScheme+")")}}},{key:"_handleSecurityResult",value:function(){if(this._sock.rQwait("VNC auth response ",4))return!1;var oe=this._sock.rQshift32();return oe===0?(this._rfbInitState="ClientInitialisation",x.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=oe,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:oe}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var oe=this._sock.rQshift16(),pe=this._sock.rQshift16(),Oe=this._sock.rQshift8(),Ye=this._sock.rQshift8(),it=this._sock.rQshift8(),et=this._sock.rQshift8(),Te=this._sock.rQshift16(),tt=this._sock.rQshift16(),ze=this._sock.rQshift16(),dt=this._sock.rQshift8(),Ot=this._sock.rQshift8(),Tt=this._sock.rQshift8();this._sock.rQskipBytes(3);var Ct=this._sock.rQshift32();if(this._sock.rQwait("server init name",Ct,24))return!1;var Nt=this._sock.rQshiftStr(Ct);if(Nt=(0,T.decodeUTF8)(Nt,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+Ct))return!1;var Be=this._sock.rQshift16(),$=this._sock.rQshift16(),Z=this._sock.rQshift16();this._sock.rQskipBytes(2);var Re=(Be+$+Z)*16;if(this._sock.rQwait("TightVNC extended server init header",Re,32+Ct))return!1;this._sock.rQskipBytes(16*Be),this._sock.rQskipBytes(16*$),this._sock.rQskipBytes(16*Z)}return x.Info("Screen: "+oe+"x"+pe+", bpp: "+Oe+", depth: "+Ye+", bigEndian: "+it+", trueColor: "+et+", redMax: "+Te+", greenMax: "+tt+", blueMax: "+ze+", redShift: "+dt+", greenShift: "+Ot+", blueShift: "+Tt),this._setDesktopName(Nt),this._resize(oe,pe),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,this._fbName==="Intel(r) AMT KVM"&&(x.Warn("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),Me.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),Me.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}},{key:"_sendEncodings",value:function(){var oe=[];oe.push(u.encodings.encodingCopyRect),this._fbDepth==24&&(oe.push(u.encodings.encodingTight),oe.push(u.encodings.encodingTightPNG),oe.push(u.encodings.encodingHextile),oe.push(u.encodings.encodingRRE)),oe.push(u.encodings.encodingRaw),oe.push(u.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),oe.push(u.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),oe.push(u.encodings.pseudoEncodingDesktopSize),oe.push(u.encodings.pseudoEncodingLastRect),oe.push(u.encodings.pseudoEncodingQEMUExtendedKeyEvent),oe.push(u.encodings.pseudoEncodingExtendedDesktopSize),oe.push(u.encodings.pseudoEncodingXvp),oe.push(u.encodings.pseudoEncodingFence),oe.push(u.encodings.pseudoEncodingContinuousUpdates),oe.push(u.encodings.pseudoEncodingDesktopName),oe.push(u.encodings.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(oe.push(u.encodings.pseudoEncodingVMwareCursor),oe.push(u.encodings.pseudoEncodingCursor)),Me.messages.clientEncodings(this._sock,oe)}},{key:"_initMsg",value:function(){switch(this._rfbInitState){case"ProtocolVersion":return this._negotiateProtocolVersion();case"Security":return this._negotiateSecurity();case"Authentication":return this._negotiateAuthentication();case"SecurityResult":return this._handleSecurityResult();case"SecurityReason":return this._handleSecurityReason();case"ClientInitialisation":return this._sock.send([this._shared?1:0]),this._rfbInitState="ServerInitialisation",!0;case"ServerInitialisation":return this._negotiateServerInit();default:return this._fail("Unknown init state (state: "+this._rfbInitState+")")}}},{key:"_handleSetColourMapMsg",value:function(){return x.Debug("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}},{key:"_handleServerCutText",value:function(){if(x.Debug("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);var oe=this._sock.rQshift32();if(oe=(0,O.toSigned32bit)(oe),this._sock.rQwait("ServerCutText content",Math.abs(oe),8))return!1;if(oe>=0){var pe=this._sock.rQshiftStr(oe);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:pe}}))}else{oe=Math.abs(oe);var Oe=this._sock.rQshift32(),Ye=Oe&65535,it=Oe&4278190080,et=!!(it&me);if(et){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var Te=0;Te<=15;Te++){var tt=1<<Te;Ye&tt&&(this._clipboardServerCapabilitiesFormats[tt]=!0,this._sock.rQshift32())}for(var ze=24;ze<=31;ze++){var dt=1<<ze;this._clipboardServerCapabilitiesActions[dt]=!!(it&dt)}var Ot=[me,Je,re,G,X];Me.messages.extendedClipboardCaps(this._sock,Ot,{extendedClipboardFormatText:0})}else if(it===Je){if(this._viewOnly)return!0;this._clipboardText!=null&&this._clipboardServerCapabilitiesActions[X]&&(Ye&Le&&Me.messages.extendedClipboardProvide(this._sock,[Le],[this._clipboardText]))}else if(it===re){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[G]&&(this._clipboardText!=null?Me.messages.extendedClipboardNotify(this._sock,[Le]):Me.messages.extendedClipboardNotify(this._sock,[]))}else if(it===G){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[Je]&&(Ye&Le&&Me.messages.extendedClipboardRequest(this._sock,[Le]))}else if(it===X){if(this._viewOnly)return!0;if(!(Ye&Le))return!0;this._clipboardText=null;var Tt=this._sock.rQshiftBytes(oe-4),Ct=new o.default,Nt=null;Ct.setInput(Tt);for(var Be=0;Be<=15;Be++){var $=1<<Be;if(Ye&$){var Z=0,Re=Ct.inflate(4);Z|=Re[0]<<24,Z|=Re[1]<<16,Z|=Re[2]<<8,Z|=Re[3];var De=Ct.inflate(Z);$===Le&&(Nt=De)}}if(Ct.setInput(null),Nt!==null){for(var ae="",gt=0;gt<Nt.length;gt++)ae+=String.fromCharCode(Nt[gt]);Nt=ae,Nt=(0,T.decodeUTF8)(Nt),Nt.length>0&&Nt.charAt(Nt.length-1)==="\0"&&(Nt=Nt.slice(0,-1)),Nt=Nt.replace(`\r
|
|
|
`,`
|
|
|
`),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:Nt}}))}}else return this._fail("Unexpected action in extended clipboard message: "+it)}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var oe=this._sock.rQshift32(),pe=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",pe,9))return!1;pe>64&&(x.Warn("Bad payload length ("+pe+") in fence response"),pe=64);var Oe=this._sock.rQshiftStr(pe);return this._supportsFence=!0,oe&1<<31?(oe&=1<<0|1<<1,Me.messages.clientFence(this._sock,oe,Oe),!0):this._fail("Unexpected fence response")}},{key:"_handleXvpMsg",value:function(){if(this._sock.rQwait("XVP version and message",3,1))return!1;this._sock.rQskipBytes(1);var oe=this._sock.rQshift8(),pe=this._sock.rQshift8();switch(pe){case 0:x.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=oe,x.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+pe+")");break}return!0}},{key:"_normalMsg",value:function(){var oe;this._FBU.rects>0?oe=0:oe=this._sock.rQshift8();var pe,Oe;switch(oe){case 0:return Oe=this._framebufferUpdate(),Oe&&!this._enabledContinuousUpdates&&Me.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),Oe;case 1:return this._handleSetColourMapMsg();case 2:return x.Debug("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return pe=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,pe&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),x.Info("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+oe+")"),x.Debug("sock.rQslice(0, 30): "+this._sock.rQslice(0,30)),!0}}},{key:"_onFlush",value:function(){this._flushing=!1,this._sock.rQlen>0&&this._handleMessage()}},{key:"_framebufferUpdate",value:function(){if(this._FBU.rects===0){if(this._sock.rQwait("FBU header",3,1))return!1;if(this._sock.rQskipBytes(1),this._FBU.rects=this._sock.rQshift16(),this._display.pending())return this._flushing=!0,this._display.flush(),!1}for(;this._FBU.rects>0;){if(this._FBU.encoding===null){if(this._sock.rQwait("rect header",12))return!1;var oe=this._sock.rQshiftBytes(12);this._FBU.x=(oe[0]<<8)+oe[1],this._FBU.y=(oe[2]<<8)+oe[3],this._FBU.width=(oe[4]<<8)+oe[5],this._FBU.height=(oe[6]<<8)+oe[7],this._FBU.encoding=parseInt((oe[8]<<24)+(oe[9]<<16)+(oe[10]<<8)+oe[11],10)}if(!this._handleRect())return!1;this._FBU.rects--,this._FBU.encoding=null}return this._display.flip(),!0}},{key:"_handleRect",value:function(){switch(this._FBU.encoding){case u.encodings.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case u.encodings.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case u.encodings.pseudoEncodingCursor:return this._handleCursor();case u.encodings.pseudoEncodingQEMUExtendedKeyEvent:try{var oe=document.createEvent("keyboardEvent");oe.code!==void 0&&(this._qemuExtKeyEventSupported=!0)}catch(pe){}return!0;case u.encodings.pseudoEncodingDesktopName:return this._handleDesktopName();case u.encodings.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case u.encodings.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}},{key:"_handleVMwareCursor",value:function(){var oe=this._FBU.x,pe=this._FBU.y,Oe=this._FBU.width,Ye=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var it=this._sock.rQshift8();this._sock.rQshift8();var et,Te=4;if(it==0){var tt=4294967040|0;if(et=new Array(Oe*Ye*Te),this._sock.rQwait("VMware cursor classic encoding",Oe*Ye*Te*2,2))return!1;for(var ze=new Array(Oe*Ye),dt=0;dt<Oe*Ye;dt++)ze[dt]=this._sock.rQshift32();for(var Ot=new Array(Oe*Ye),Tt=0;Tt<Oe*Ye;Tt++)Ot[Tt]=this._sock.rQshift32();for(var Ct=0;Ct<Oe*Ye;Ct++)if(ze[Ct]==0){var Nt=Ot[Ct],Be=Nt>>8&255,$=Nt>>16&255,Z=Nt>>24&255;et[Ct*Te]=Be,et[Ct*Te+1]=$,et[Ct*Te+2]=Z,et[Ct*Te+3]=255}else(ze[Ct]&tt)==tt?Ot[Ct]==0?(et[Ct*Te]=0,et[Ct*Te+1]=0,et[Ct*Te+2]=0,et[Ct*Te+3]=0):((Ot[Ct]&tt)==tt,et[Ct*Te]=0,et[Ct*Te+1]=0,et[Ct*Te+2]=0,et[Ct*Te+3]=255):(et[Ct*Te]=0,et[Ct*Te+1]=0,et[Ct*Te+2]=0,et[Ct*Te+3]=255)}else if(it==1){if(this._sock.rQwait("VMware cursor alpha encoding",Oe*Ye*4,2))return!1;et=new Array(Oe*Ye*Te);for(var Re=0;Re<Oe*Ye;Re++){var De=this._sock.rQshift32();et[Re*4]=De>>24&255,et[Re*4+1]=De>>16&255,et[Re*4+2]=De>>8&255,et[Re*4+3]=De&255}}else return x.Warn("The given cursor type is not supported: "+it+" given."),!1;return this._updateCursor(et,oe,pe,Oe,Ye),!0}},{key:"_handleCursor",value:function(){var oe=this._FBU.x,pe=this._FBU.y,Oe=this._FBU.width,Ye=this._FBU.height,it=Oe*Ye*4,et=Math.ceil(Oe/8)*Ye,Te=it+et;if(this._sock.rQwait("cursor encoding",Te))return!1;for(var tt=this._sock.rQshiftBytes(it),ze=this._sock.rQshiftBytes(et),dt=new Uint8Array(Oe*Ye*4),Ot=0,Tt=0;Tt<Ye;Tt++)for(var Ct=0;Ct<Oe;Ct++){var Nt=Tt*Math.ceil(Oe/8)+Math.floor(Ct/8),Be=ze[Nt]<<Ct%8&128?255:0;dt[Ot]=tt[Ot+2],dt[Ot+1]=tt[Ot+1],dt[Ot+2]=tt[Ot],dt[Ot+3]=Be,Ot+=4}return this._updateCursor(dt,oe,pe,Oe,Ye),!0}},{key:"_handleDesktopName",value:function(){if(this._sock.rQwait("DesktopName",4))return!1;var oe=this._sock.rQshift32();if(this._sock.rQwait("DesktopName",oe,4))return!1;var pe=this._sock.rQshiftStr(oe);return pe=(0,T.decodeUTF8)(pe,!0),this._setDesktopName(pe),!0}},{key:"_handleExtendedDesktopSize",value:function(){if(this._sock.rQwait("ExtendedDesktopSize",4))return!1;var oe=this._sock.rQpeek8(),pe=4+oe*16;if(this._sock.rQwait("ExtendedDesktopSize",pe))return!1;var Oe=!this._supportsSetDesktopSize;this._supportsSetDesktopSize=!0,Oe&&this._requestRemoteResize(),this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(var Ye=0;Ye<oe;Ye+=1)Ye===0?(this._screenID=this._sock.rQshiftBytes(4),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._screenFlags=this._sock.rQshiftBytes(4)):this._sock.rQskipBytes(16);if(this._FBU.x===1&&this._FBU.y!==0){var it="";switch(this._FBU.y){case 1:it="Resize is administratively prohibited";break;case 2:it="Out of resources";break;case 3:it="Invalid screen layout";break;default:it="Unknown reason";break}x.Warn("Server did not accept the resize request: "+it)}else this._resize(this._FBU.width,this._FBU.height);return!0}},{key:"_handleDataRect",value:function(){var oe=this._decoders[this._FBU.encoding];if(!oe)return this._fail("Unsupported encoding (encoding: "+this._FBU.encoding+")"),!1;try{return oe.decodeRect(this._FBU.x,this._FBU.y,this._FBU.width,this._FBU.height,this._sock,this._display,this._fbDepth)}catch(pe){return this._fail("Error decoding rect: "+pe),!1}}},{key:"_updateContinuousUpdates",value:function(){if(!this._enabledContinuousUpdates)return;Me.messages.enableContinuousUpdates(this._sock,!0,0,0,this._fbWidth,this._fbHeight)}},{key:"_resize",value:function(oe,pe){this._fbWidth=oe,this._fbHeight=pe,this._display.resize(this._fbWidth,this._fbHeight),this._updateClip(),this._updateScale(),this._updateContinuousUpdates()}},{key:"_xvpOp",value:function(oe,pe){if(this._rfbXvpVer<oe)return;x.Info("Sending XVP operation "+pe+" (version "+oe+")"),Me.messages.xvpOp(this._sock,oe,pe)}},{key:"_updateCursor",value:function(oe,pe,Oe,Ye,it){this._cursorImage={rgbaPixels:oe,hotx:pe,hoty:Oe,w:Ye,h:it},this._refreshCursor()}},{key:"_shouldShowDotCursor",value:function(){if(!this._showDotCursor)return!1;for(var oe=3;oe<this._cursorImage.rgbaPixels.length;oe+=4)if(this._cursorImage.rgbaPixels[oe])return!1;return!0}},{key:"_refreshCursor",value:function(){if(this._rfbConnectionState!=="connecting"&&this._rfbConnectionState!=="connected")return;var oe=this._shouldShowDotCursor()?Me.cursors.dot:this._cursorImage;this._cursor.change(oe.rgbaPixels,oe.hotx,oe.hoty,oe.w,oe.h)}},{key:"viewOnly",get:function(){return this._viewOnly},set:function(oe){this._viewOnly=oe,(this._rfbConnectionState==="connecting"||this._rfbConnectionState==="connected")&&(oe?this._keyboard.ungrab():this._keyboard.grab())}},{key:"capabilities",get:function(){return this._capabilities}},{key:"touchButton",get:function(){return 0},set:function(oe){x.Warn("Using old API!")}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(oe){this._clipViewport=oe,this._updateClip()}},{key:"scaleViewport",get:function(){return this._scaleViewport},set:function(oe){this._scaleViewport=oe,oe&&this._clipViewport&&this._updateClip(),this._updateScale(),!oe&&this._clipViewport&&this._updateClip()}},{key:"resizeSession",get:function(){return this._resizeSession},set:function(oe){this._resizeSession=oe,oe&&this._requestRemoteResize()}},{key:"showDotCursor",get:function(){return this._showDotCursor},set:function(oe){this._showDotCursor=oe,this._refreshCursor()}},{key:"background",get:function(){return this._screen.style.background},set:function(oe){this._screen.style.background=oe}},{key:"qualityLevel",get:function(){return this._qualityLevel},set:function(oe){if(!Number.isInteger(oe)||oe<0||oe>9){x.Error("qualityLevel must be an integer between 0 and 9");return}if(this._qualityLevel===oe)return;this._qualityLevel=oe,this._rfbConnectionState==="connected"&&this._sendEncodings()}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(oe){if(!Number.isInteger(oe)||oe<0||oe>9){x.Error("compressionLevel must be an integer between 0 and 9");return}if(this._compressionLevel===oe)return;this._compressionLevel=oe,this._rfbConnectionState==="connected"&&this._sendEncodings()}}],[{key:"genDES",value:function(oe,pe){var Oe=oe.split("").map(function(Ye){return Ye.charCodeAt(0)});return new t.default(Oe).encrypt(pe)}}]),Me}(f.default);P.default=J,J.messages={keyEvent:function(he,Me,Ie){var oe=he._sQ,pe=he._sQlen;oe[pe]=4,oe[pe+1]=Ie,oe[pe+2]=0,oe[pe+3]=0,oe[pe+4]=Me>>24,oe[pe+5]=Me>>16,oe[pe+6]=Me>>8,oe[pe+7]=Me,he._sQlen+=8,he.flush()},QEMUExtendedKeyEvent:function(he,Me,Ie,oe){function pe(et){var Te=oe>>8,tt=oe&255;return Te===224&&tt<127?tt|128:et}var Oe=he._sQ,Ye=he._sQlen;Oe[Ye]=255,Oe[Ye+1]=0,Oe[Ye+2]=Ie>>8,Oe[Ye+3]=Ie,Oe[Ye+4]=Me>>24,Oe[Ye+5]=Me>>16,Oe[Ye+6]=Me>>8,Oe[Ye+7]=Me;var it=pe(oe);Oe[Ye+8]=it>>24,Oe[Ye+9]=it>>16,Oe[Ye+10]=it>>8,Oe[Ye+11]=it,he._sQlen+=12,he.flush()},pointerEvent:function(he,Me,Ie,oe){var pe=he._sQ,Oe=he._sQlen;pe[Oe]=5,pe[Oe+1]=oe,pe[Oe+2]=Me>>8,pe[Oe+3]=Me,pe[Oe+4]=Ie>>8,pe[Oe+5]=Ie,he._sQlen+=6,he.flush()},_buildExtendedClipboardFlags:function(he,Me){for(var Ie=new Uint8Array(4),oe=0,pe=0,Oe=0;Oe<he.length;Oe++)pe|=he[Oe];for(var Ye=0;Ye<Me.length;Ye++)oe|=Me[Ye];return Ie[0]=pe>>24,Ie[1]=0,Ie[2]=0,Ie[3]=oe,Ie},extendedClipboardProvide:function(he,Me,Ie){for(var oe=new r.default,pe=[],Oe=0;Oe<Me.length;Oe++){if(Me[Oe]!=Le)throw new Error("Unsupported extended clipboard format for Provide message.");Ie[Oe]=Ie[Oe].replace(/\r\n|\r|\n/gm,`\r
|
|
|
`);var Ye=(0,T.encodeUTF8)(Ie[Oe]+"\0");pe.push(Ye.length>>24&255,Ye.length>>16&255,Ye.length>>8&255,Ye.length&255);for(var it=0;it<Ye.length;it++)pe.push(Ye.charCodeAt(it))}var et=oe.deflate(new Uint8Array(pe)),Te=new Uint8Array(4+et.length);Te.set(J.messages._buildExtendedClipboardFlags([X],Me)),Te.set(et,4),J.messages.clientCutText(he,Te,!0)},extendedClipboardNotify:function(he,Me){var Ie=J.messages._buildExtendedClipboardFlags([G],Me);J.messages.clientCutText(he,Ie,!0)},extendedClipboardRequest:function(he,Me){var Ie=J.messages._buildExtendedClipboardFlags([Je],Me);J.messages.clientCutText(he,Ie,!0)},extendedClipboardCaps:function(he,Me,Ie){var oe=Object.keys(Ie),pe=new Uint8Array(4+4*oe.length);oe.map(function(it){return parseInt(it)}),oe.sort(function(it,et){return it-et}),pe.set(J.messages._buildExtendedClipboardFlags(Me,[]));for(var Oe=4,Ye=0;Ye<oe.length;Ye++)pe[Oe]=Ie[oe[Ye]]>>24,pe[Oe+1]=Ie[oe[Ye]]>>16,pe[Oe+2]=Ie[oe[Ye]]>>8,pe[Oe+3]=Ie[oe[Ye]]>>0,Oe+=4,pe[3]|=1<<oe[Ye];J.messages.clientCutText(he,pe,!0)},clientCutText:function(he,Me){var Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,oe=he._sQ,pe=he._sQlen;oe[pe]=6,oe[pe+1]=0,oe[pe+2]=0,oe[pe+3]=0;var Oe;Ie?Oe=(0,O.toUnsigned32bit)(-Me.length):Oe=Me.length,oe[pe+4]=Oe>>24,oe[pe+5]=Oe>>16,oe[pe+6]=Oe>>8,oe[pe+7]=Oe,he._sQlen+=8;for(var Ye=0,it=Me.length;it>0;){for(var et=Math.min(it,he._sQbufferSize-he._sQlen),Te=0;Te<et;Te++)oe[he._sQlen+Te]=Me[Ye+Te];he._sQlen+=et,he.flush(),it-=et,Ye+=et}},setDesktopSize:function(he,Me,Ie,oe,pe){var Oe=he._sQ,Ye=he._sQlen;Oe[Ye]=251,Oe[Ye+1]=0,Oe[Ye+2]=Me>>8,Oe[Ye+3]=Me,Oe[Ye+4]=Ie>>8,Oe[Ye+5]=Ie,Oe[Ye+6]=1,Oe[Ye+7]=0,Oe[Ye+8]=oe>>24,Oe[Ye+9]=oe>>16,Oe[Ye+10]=oe>>8,Oe[Ye+11]=oe,Oe[Ye+12]=0,Oe[Ye+13]=0,Oe[Ye+14]=0,Oe[Ye+15]=0,Oe[Ye+16]=Me>>8,Oe[Ye+17]=Me,Oe[Ye+18]=Ie>>8,Oe[Ye+19]=Ie,Oe[Ye+20]=pe>>24,Oe[Ye+21]=pe>>16,Oe[Ye+22]=pe>>8,Oe[Ye+23]=pe,he._sQlen+=24,he.flush()},clientFence:function(he,Me,Ie){var oe=he._sQ,pe=he._sQlen;oe[pe]=248,oe[pe+1]=0,oe[pe+2]=0,oe[pe+3]=0,oe[pe+4]=Me>>24,oe[pe+5]=Me>>16,oe[pe+6]=Me>>8,oe[pe+7]=Me;var Oe=Ie.length;oe[pe+8]=Oe;for(var Ye=0;Ye<Oe;Ye++)oe[pe+9+Ye]=Ie.charCodeAt(Ye);he._sQlen+=9+Oe,he.flush()},enableContinuousUpdates:function(he,Me,Ie,oe,pe,Oe){var Ye=he._sQ,it=he._sQlen;Ye[it]=150,Ye[it+1]=Me,Ye[it+2]=Ie>>8,Ye[it+3]=Ie,Ye[it+4]=oe>>8,Ye[it+5]=oe,Ye[it+6]=pe>>8,Ye[it+7]=pe,Ye[it+8]=Oe>>8,Ye[it+9]=Oe,he._sQlen+=10,he.flush()},pixelFormat:function(he,Me,Ie){var oe=he._sQ,pe=he._sQlen,Oe;Me>16?Oe=32:Me>8?Oe=16:Oe=8;var Ye=Math.floor(Me/3);oe[pe]=0,oe[pe+1]=0,oe[pe+2]=0,oe[pe+3]=0,oe[pe+4]=Oe,oe[pe+5]=Me,oe[pe+6]=0,oe[pe+7]=Ie?1:0,oe[pe+8]=0,oe[pe+9]=(1<<Ye)-1,oe[pe+10]=0,oe[pe+11]=(1<<Ye)-1,oe[pe+12]=0,oe[pe+13]=(1<<Ye)-1,oe[pe+14]=Ye*2,oe[pe+15]=Ye*1,oe[pe+16]=Ye*0,oe[pe+17]=0,oe[pe+18]=0,oe[pe+19]=0,he._sQlen+=20,he.flush()},clientEncodings:function(he,Me){var Ie=he._sQ,oe=he._sQlen;Ie[oe]=2,Ie[oe+1]=0,Ie[oe+2]=Me.length>>8,Ie[oe+3]=Me.length;for(var pe=oe+4,Oe=0;Oe<Me.length;Oe++){var Ye=Me[Oe];Ie[pe]=Ye>>24,Ie[pe+1]=Ye>>16,Ie[pe+2]=Ye>>8,Ie[pe+3]=Ye,pe+=4}he._sQlen+=pe-oe,he.flush()},fbUpdateRequest:function(he,Me,Ie,oe,pe,Oe){var Ye=he._sQ,it=he._sQlen;typeof Ie=="undefined"&&(Ie=0),typeof oe=="undefined"&&(oe=0),Ye[it]=3,Ye[it+1]=Me?1:0,Ye[it+2]=Ie>>8&255,Ye[it+3]=Ie&255,Ye[it+4]=oe>>8&255,Ye[it+5]=oe&255,Ye[it+6]=pe>>8&255,Ye[it+7]=pe&255,Ye[it+8]=Oe>>8&255,Ye[it+9]=Oe&255,he._sQlen+=10,he.flush()},xvpOp:function(he,Me,Ie){var oe=he._sQ,pe=he._sQlen;oe[pe]=250,oe[pe+1]=0,oe[pe+2]=Me,oe[pe+3]=Ie,he._sQlen+=4,he.flush()}},J.cursors={none:{rgbaPixels:new Uint8Array,w:0,h:0,hotx:0,hoty:0},dot:{rgbaPixels:new Uint8Array([255,255,255,255,0,0,0,255,255,255,255,255,0,0,0,255,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,255,255,255,255,255]),w:3,h:3,hotx:1,hoty:1}}},"1eCo":function(U,P,d){(function(O){O(d("VrN/"))})(function(O){"use strict";var x={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},T={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};O.defineMode("xml",function(v,S){var m=v.indentUnit,f={},c=S.htmlMode?x:T;for(var o in c)f[o]=c[o];for(var o in S)f[o]=S[o];var r,a;function n(_,L){function D(B){return L.tokenize=B,B(_,L)}var N=_.next();if(N=="<")return _.eat("!")?_.eat("[")?_.match("CDATA[")?D(t("atom","]]>")):null:_.match("--")?D(t("comment","-->")):_.match("DOCTYPE",!0,!0)?(_.eatWhile(/[\w\._\-]/),D(i(1))):null:_.eat("?")?(_.eatWhile(/[\w\._\-]/),L.tokenize=t("meta","?>"),"meta"):(r=_.eat("/")?"closeTag":"openTag",L.tokenize=e,"tag bracket");if(N=="&"){var R;return _.eat("#")?_.eat("x")?R=_.eatWhile(/[a-fA-F\d]/)&&_.eat(";"):R=_.eatWhile(/[\d]/)&&_.eat(";"):R=_.eatWhile(/[\w\.\-:]/)&&_.eat(";"),R?"atom":"error"}else return _.eatWhile(/[^&<]/),null}n.isInText=!0;function e(_,L){var D=_.next();if(D==">"||D=="/"&&_.eat(">"))return L.tokenize=n,r=D==">"?"endTag":"selfcloseTag","tag bracket";if(D=="=")return r="equals",null;if(D=="<"){L.tokenize=n,L.state=p,L.tagName=L.tagStart=null;var N=L.tokenize(_,L);return N?N+" tag error":"tag error"}else return/[\'\"]/.test(D)?(L.tokenize=s(D),L.stringStartCol=_.column(),L.tokenize(_,L)):(_.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function s(_){var L=function(N,R){for(;!N.eol();)if(N.next()==_){R.tokenize=e;break}return"string"};return L.isInAttribute=!0,L}function t(_,L){return function(D,N){for(;!D.eol();){if(D.match(L)){N.tokenize=n;break}D.next()}return _}}function i(_){return function(L,D){for(var N;(N=L.next())!=null;){if(N=="<")return D.tokenize=i(_+1),D.tokenize(L,D);if(N==">")if(_==1){D.tokenize=n;break}else return D.tokenize=i(_-1),D.tokenize(L,D)}return"meta"}}function l(_,L,D){this.prev=_.context,this.tagName=L,this.indent=_.indented,this.startOfLine=D,(f.doNotIndent.hasOwnProperty(L)||_.context&&_.context.noIndent)&&(this.noIndent=!0)}function u(_){_.context&&(_.context=_.context.prev)}function h(_,L){for(var D;;){if(!_.context)return;if(D=_.context.tagName,!f.contextGrabbers.hasOwnProperty(D)||!f.contextGrabbers[D].hasOwnProperty(L))return;u(_)}}function p(_,L,D){return _=="openTag"?(D.tagStart=L.column(),g):_=="closeTag"?A:p}function g(_,L,D){return _=="word"?(D.tagName=L.current(),a="tag",C):f.allowMissingTagName&&_=="endTag"?(a="tag bracket",C(_,L,D)):(a="error",g)}function A(_,L,D){if(_=="word"){var N=L.current();return D.context&&D.context.tagName!=N&&f.implicitlyClosed.hasOwnProperty(D.context.tagName)&&u(D),D.context&&D.context.tagName==N||f.matchClosing===!1?(a="tag",y):(a="tag error",E)}else return f.allowMissingTagName&&_=="endTag"?(a="tag bracket",y(_,L,D)):(a="error",E)}function y(_,L,D){return _!="endTag"?(a="error",y):(u(D),p)}function E(_,L,D){return a="error",y(_,L,D)}function C(_,L,D){if(_=="word")return a="attribute",w;if(_=="endTag"||_=="selfcloseTag"){var N=D.tagName,R=D.tagStart;return D.tagName=D.tagStart=null,_=="selfcloseTag"||f.autoSelfClosers.hasOwnProperty(N)?h(D,N):(h(D,N),D.context=new l(D,N,R==D.indented)),p}return a="error",C}function w(_,L,D){return _=="equals"?b:(f.allowMissing||(a="error"),C(_,L,D))}function b(_,L,D){return _=="string"?I:_=="word"&&f.allowUnquoted?(a="string",C):(a="error",C(_,L,D))}function I(_,L,D){return _=="string"?I:C(_,L,D)}return{startState:function(L){var D={tokenize:n,state:p,indented:L||0,tagName:null,tagStart:null,context:null};return L!=null&&(D.baseIndent=L),D},token:function(L,D){if(!D.tagName&&L.sol()&&(D.indented=L.indentation()),L.eatSpace())return null;r=null;var N=D.tokenize(L,D);return(N||r)&&N!="comment"&&(a=null,D.state=D.state(r||N,L,D),a&&(N=a=="error"?N+" error":a)),N},indent:function(L,D,N){var R=L.context;if(L.tokenize.isInAttribute)return L.tagStart==L.indented?L.stringStartCol+1:L.indented+m;if(R&&R.noIndent)return O.Pass;if(L.tokenize!=e&&L.tokenize!=n)return N?N.match(/^(\s*)/)[0].length:0;if(L.tagName)return f.multilineTagIndentPastTag!==!1?L.tagStart+L.tagName.length+2:L.tagStart+m*(f.multilineTagIndentFactor||1);if(f.alignCDATA&&/<!\[CDATA\[/.test(D))return 0;var B=D&&/^<(\/)?([\w_:\.-]*)/.exec(D);if(B&&B[1])for(;R;)if(R.tagName==B[2]){R=R.prev;break}else if(f.implicitlyClosed.hasOwnProperty(R.tagName))R=R.prev;else break;else if(B)for(;R;){var M=f.contextGrabbers[R.tagName];if(M&&M.hasOwnProperty(B[2]))R=R.prev;else break}for(;R&&R.prev&&!R.startOfLine;)R=R.prev;return R?R.indent+m:L.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:f.htmlMode?"html":"xml",helperType:f.htmlMode?"html":"xml",skipAttribute:function(L){L.state==b&&(L.state=C)},xmlCurrentTag:function(L){return L.tagName?{name:L.tagName,close:L.type=="closeTag"}:null},xmlCurrentContext:function(L){for(var D=[],N=L.context;N;N=N.prev)N.tagName&&D.push(N.tagName);return D.reverse()}}}),O.defineMIME("text/xml","xml"),O.defineMIME("application/xml","xml"),O.mimeModes.hasOwnProperty("text/html")||O.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1n7x":function(U,P,d){(function(O,x){/*!
|
|
|
* html2pdf.js v0.10.1
|
|
|
* Copyright (c) 2021 Erik Koopmans
|
|
|
* Released under the MIT License.
|
|
|
*/(function(v,S){U.exports=S(d("dtIV"),d("wOnQ"))})(self,function(T,v){return function(){var S={"./src/plugin/hyperlinks.js":function(r,a,n){"use strict";n.r(a);var e=n("./node_modules/core-js/modules/web.dom-collections.for-each.js"),s=n.n(e),t=n("./node_modules/core-js/modules/es.string.link.js"),i=n.n(t),l=n("./src/worker.js"),u=n("./src/utils.js"),h=[],p={toContainer:l.default.prototype.toContainer,toPdf:l.default.prototype.toPdf};l.default.prototype.toContainer=function(){return p.toContainer.call(this).then(function(){if(this.opt.enableLinks){var y=this.prop.container,E=y.querySelectorAll("a"),C=(0,u.unitConvert)(y.getBoundingClientRect(),this.prop.pageSize.k);h=[],Array.prototype.forEach.call(E,function(w){for(var b=w.getClientRects(),I=0;I<b.length;I++){var _=(0,u.unitConvert)(b[I],this.prop.pageSize.k);_.left-=C.left,_.top-=C.top;var L=Math.floor(_.top/this.prop.pageSize.inner.height)+1,D=this.opt.margin[0]+_.top%this.prop.pageSize.inner.height,N=this.opt.margin[1]+_.left;h.push({page:L,top:D,left:N,clientRect:_,link:w})}},this)}})},l.default.prototype.toPdf=function(){return p.toPdf.call(this).then(function(){if(this.opt.enableLinks){h.forEach(function(E){this.prop.pdf.setPage(E.page),this.prop.pdf.link(E.left,E.top,E.clientRect.width,E.clientRect.height,{url:E.link.href})},this);var y=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(y)}})}},"./src/plugin/jspdf-plugin.js":function(r,a,n){"use strict";n.r(a);var e=n("./node_modules/core-js/modules/es.symbol.js"),s=n.n(e),t=n("./node_modules/core-js/modules/es.symbol.description.js"),i=n.n(t),l=n("./node_modules/core-js/modules/es.object.to-string.js"),u=n.n(l),h=n("./node_modules/core-js/modules/es.symbol.iterator.js"),p=n.n(h),g=n("./node_modules/core-js/modules/es.array.iterator.js"),A=n.n(g),y=n("./node_modules/core-js/modules/es.string.iterator.js"),E=n.n(y),C=n("./node_modules/core-js/modules/web.dom-collections.iterator.js"),w=n.n(C),b=n("jspdf"),I=n.n(b);function _(L){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(N){return typeof N}:_=function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},_(L)}b.jsPDF.getPageSize=function(L,D,N){if(_(L)==="object"){var R=L;L=R.orientation,D=R.unit||D,N=R.format||N}D=D||"mm",N=N||"a4",L=(""+(L||"P")).toLowerCase();var B=(""+N).toLowerCase(),M={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(D){case"pt":var H=1;break;case"mm":var H=72/25.4;break;case"cm":var H=72/2.54;break;case"in":var H=72;break;case"px":var H=72/96;break;case"pc":var H=12;break;case"em":var H=12;break;case"ex":var H=6;break;default:throw"Invalid unit: "+D}if(M.hasOwnProperty(B))var F=M[B][1]/H,K=M[B][0]/H;else try{var F=N[1],K=N[0]}catch(z){throw new Error("Invalid format: "+N)}if(L==="p"||L==="portrait"){if(L="p",K>F){var j=K;K=F,F=j}}else if(L==="l"||L==="landscape"){if(L="l",F>K){var j=K;K=F,F=j}}else throw"Invalid orientation: "+L;var V={width:K,height:F,unit:D,k:H};return V},a.default=b.jsPDF},"./src/plugin/pagebreaks.js":function(r,a,n){"use strict";n.r(a);var e=n("./node_modules/core-js/modules/es.array.concat.js"),s=n.n(e),t=n("./node_modules/core-js/modules/es.array.slice.js"),i=n.n(t),l=n("./node_modules/core-js/modules/es.array.join.js"),u=n.n(l),h=n("./node_modules/core-js/modules/web.dom-collections.for-each.js"),p=n.n(h),g=n("./node_modules/core-js/modules/es.object.keys.js"),A=n.n(g),y=n("./src/worker.js"),E=n("./src/utils.js"),C={toContainer:y.default.prototype.toContainer};y.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},y.default.prototype.toContainer=function(){return C.toContainer.call(this).then(function(){var I=this.prop.container,_=this.prop.pageSize.inner.px.height,L=[].concat(this.opt.pagebreak.mode),D={avoidAll:L.indexOf("avoid-all")!==-1,css:L.indexOf("css")!==-1,legacy:L.indexOf("legacy")!==-1},N={},R=this;["before","after","avoid"].forEach(function(H){var F=D.avoidAll&&H==="avoid";N[H]=F?[]:[].concat(R.opt.pagebreak[H]||[]),N[H].length>0&&(N[H]=Array.prototype.slice.call(I.querySelectorAll(N[H].join(", "))))});var B=I.querySelectorAll(".html2pdf__page-break");B=Array.prototype.slice.call(B);var M=I.querySelectorAll("*");Array.prototype.forEach.call(M,function(F){var K={before:!1,after:D.legacy&&B.indexOf(F)!==-1,avoid:D.avoidAll};if(D.css){var j=window.getComputedStyle(F),V=["always","page","left","right"],z=["avoid","avoid-page"];K={before:K.before||V.indexOf(j.breakBefore||j.pageBreakBefore)!==-1,after:K.after||V.indexOf(j.breakAfter||j.pageBreakAfter)!==-1,avoid:K.avoid||z.indexOf(j.breakInside||j.pageBreakInside)!==-1}}Object.keys(K).forEach(function(Ce){K[Ce]=K[Ce]||N[Ce].indexOf(F)!==-1});var Y=F.getBoundingClientRect();if(K.avoid&&!K.before){var ee=Math.floor(Y.top/_),fe=Math.floor(Y.bottom/_),ie=Math.abs(Y.bottom-Y.top)/_;fe!==ee&&ie<=1&&(K.before=!0)}if(K.before){var we=(0,E.createElement)("div",{style:{display:"block",height:_-Y.top%_+"px"}});F.parentNode.insertBefore(we,F)}if(K.after){var we=(0,E.createElement)("div",{style:{display:"block",height:_-Y.bottom%_+"px"}});F.parentNode.insertBefore(we,F.nextSibling)}})})}},"./src/utils.js":function(r,a,n){"use strict";n.r(a),n.d(a,{objType:function(){return L},createElement:function(){return D},cloneNode:function(){return N},unitConvert:function(){return R},toPx:function(){return B}});var e=n("./node_modules/core-js/modules/es.number.constructor.js"),s=n.n(e),t=n("./node_modules/core-js/modules/es.symbol.js"),i=n.n(t),l=n("./node_modules/core-js/modules/es.symbol.description.js"),u=n.n(l),h=n("./node_modules/core-js/modules/es.object.to-string.js"),p=n.n(h),g=n("./node_modules/core-js/modules/es.symbol.iterator.js"),A=n.n(g),y=n("./node_modules/core-js/modules/es.array.iterator.js"),E=n.n(y),C=n("./node_modules/core-js/modules/es.string.iterator.js"),w=n.n(C),b=n("./node_modules/core-js/modules/web.dom-collections.iterator.js"),I=n.n(b);function _(M){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(F){return typeof F}:_=function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},_(M)}var L=function(H){var F=_(H);return F==="undefined"?"undefined":F==="string"||H instanceof String?"string":F==="number"||H instanceof Number?"number":F==="function"||H instanceof Function?"function":!!H&&H.constructor===Array?"array":H&&H.nodeType===1?"element":F==="object"?"object":"unknown"},D=function(H,F){var K=document.createElement(H);if(F.className&&(K.className=F.className),F.innerHTML){K.innerHTML=F.innerHTML;for(var j=K.getElementsByTagName("script"),V=j.length;V-- >0;null)j[V].parentNode.removeChild(j[V])}for(var z in F.style)K.style[z]=F.style[z];return K},N=function M(H,F){for(var K=H.nodeType===3?document.createTextNode(H.nodeValue):H.cloneNode(!1),j=H.firstChild;j;j=j.nextSibling)(F===!0||j.nodeType!==1||j.nodeName!=="SCRIPT")&&K.appendChild(M(j,F));return H.nodeType===1&&(H.nodeName==="CANVAS"?(K.width=H.width,K.height=H.height,K.getContext("2d").drawImage(H,0,0)):(H.nodeName==="TEXTAREA"||H.nodeName==="SELECT")&&(K.value=H.value),K.addEventListener("load",function(){K.scrollTop=H.scrollTop,K.scrollLeft=H.scrollLeft},!0)),K},R=function(H,F){if(L(H)==="number")return H*72/96/F;var K={};for(var j in H)K[j]=H[j]*72/96/F;return K},B=function(H,F){return Math.floor(H*F/72*96)}},"./src/worker.js":function(r,a,n){"use strict";n.r(a);var e=n("./node_modules/core-js/modules/es.object.assign.js"),s=n.n(e),t=n("./node_modules/core-js/modules/es.array.map.js"),i=n.n(t),l=n("./node_modules/core-js/modules/es.object.keys.js"),u=n.n(l),h=n("./node_modules/core-js/modules/es.array.concat.js"),p=n.n(h),g=n("./node_modules/core-js/modules/es.object.to-string.js"),A=n.n(g),y=n("./node_modules/core-js/modules/es.regexp.to-string.js"),E=n.n(y),C=n("./node_modules/core-js/modules/es.function.name.js"),w=n.n(C),b=n("./node_modules/core-js/modules/web.dom-collections.for-each.js"),I=n.n(b),_=n("jspdf"),L=n.n(_),D=n("html2canvas"),N=n.n(D),R=n("./src/utils.js"),B=n("./node_modules/es6-promise/dist/es6-promise.js"),M=n.n(B),H=M().Promise,F=function K(j){var V=Object.assign(K.convert(H.resolve()),JSON.parse(JSON.stringify(K.template))),z=K.convert(H.resolve(),V);return z=z.setProgress(1,K,1,[K]),z=z.set(j),z};F.prototype=Object.create(H.prototype),F.prototype.constructor=F,F.convert=function(j,V){return j.__proto__=V||F.prototype,j},F.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},F.prototype.from=function(j,V){function z(Y){switch((0,R.objType)(Y)){case"string":return"string";case"element":return Y.nodeName.toLowerCase==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){V=V||z(j);switch(V){case"string":return this.set({src:(0,R.createElement)("div",{innerHTML:j})});case"element":return this.set({src:j});case"canvas":return this.set({canvas:j});case"img":return this.set({img:j});default:return this.error("Unknown source type.")}})},F.prototype.to=function(j){switch(j){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},F.prototype.toContainer=function(){var j=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(j).then(function(){var z={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},Y={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};z.opacity=0;var ee=(0,R.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,R.createElement)("div",{className:"html2pdf__overlay",style:z}),this.prop.container=(0,R.createElement)("div",{className:"html2pdf__container",style:Y}),this.prop.container.appendChild(ee),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},F.prototype.toCanvas=function(){var j=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(j).then(function(){var z=Object.assign({},this.opt.html2canvas);return delete z.onrendered,D(this.prop.container,z)}).then(function(z){var Y=this.opt.html2canvas.onrendered||function(){};Y(z),this.prop.canvas=z,document.body.removeChild(this.prop.overlay)})},F.prototype.toImg=function(){var j=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(j).then(function(){var z=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=z})},F.prototype.toPdf=function(){var j=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(j).then(function(){var z=this.prop.canvas,Y=this.opt,ee=z.height,fe=Math.floor(z.width*this.prop.pageSize.inner.ratio),ie=Math.ceil(ee/fe),we=this.prop.pageSize.inner.height,Ce=document.createElement("canvas"),Le=Ce.getContext("2d");Ce.width=z.width,Ce.height=fe,this.prop.pdf=this.prop.pdf||new _.jsPDF(Y.jsPDF);for(var He=0;He<ie;He++){He===ie-1&&ee%fe!==0&&(Ce.height=ee%fe,we=Ce.height*this.prop.pageSize.inner.width/Ce.width);var ce=Ce.width,Pe=Ce.height;Le.fillStyle="white",Le.fillRect(0,0,ce,Pe),Le.drawImage(z,0,He*fe,ce,Pe,0,0,ce,Pe),He&&this.prop.pdf.addPage();var Q=Ce.toDataURL("image/"+Y.image.type,Y.image.quality);this.prop.pdf.addImage(Q,Y.image.type,Y.margin[1],Y.margin[0],this.prop.pageSize.inner.width,we)}})},F.prototype.output=function(j,V,z){return z=z||"pdf",z.toLowerCase()==="img"||z.toLowerCase()==="image"?this.outputImg(j,V):this.outputPdf(j,V)},F.prototype.outputPdf=function(j,V){var z=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(z).then(function(){return this.prop.pdf.output(j,V)})},F.prototype.outputImg=function(j,V){var z=[function(){return this.prop.img||this.toImg()}];return this.thenList(z).then(function(){switch(j){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+j+'" is not supported.'}})},F.prototype.save=function(j){var V=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(V).set(j?{filename:j}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},F.prototype.set=function(j){if((0,R.objType)(j)!=="object")return this;var V=Object.keys(j||{}).map(function(z){switch(z){case"margin":return this.setMargin.bind(this,j.margin);case"jsPDF":return function(){return this.opt.jsPDF=j.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,j.pageSize);default:return z in F.template.prop?function(){this.prop[z]=j[z]}:function(){this.opt[z]=j[z]}}},this);return this.then(function(){return this.thenList(V)})},F.prototype.get=function(j,V){return this.then(function(){var Y=j in F.template.prop?this.prop[j]:this.opt[j];return V?V(Y):Y})},F.prototype.setMargin=function(j){return this.then(function(){switch((0,R.objType)(j)){case"number":j=[j,j,j,j];case"array":if(j.length===2&&(j=[j[0],j[1],j[0],j[1]]),j.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=j}).then(this.setPageSize)},F.prototype.setPageSize=function(j){return this.then(function(){j=j||_.jsPDF.getPageSize(this.opt.jsPDF),j.hasOwnProperty("inner")||(j.inner={width:j.width-this.opt.margin[1]-this.opt.margin[3],height:j.height-this.opt.margin[0]-this.opt.margin[2]},j.inner.px={width:(0,R.toPx)(j.inner.width,j.k),height:(0,R.toPx)(j.inner.height,j.k)},j.inner.ratio=j.inner.height/j.inner.width),this.prop.pageSize=j})},F.prototype.setProgress=function(j,V,z,Y){return j!=null&&(this.progress.val=j),V!=null&&(this.progress.state=V),z!=null&&(this.progress.n=z),Y!=null&&(this.progress.stack=Y),this.progress.ratio=this.progress.val/this.progress.state,this},F.prototype.updateProgress=function(j,V,z,Y){return this.setProgress(j?this.progress.val+j:null,V||null,z?this.progress.n+z:null,Y?this.progress.stack.concat(Y):null)},F.prototype.then=function(j,V){var z=this;return this.thenCore(j,V,function(ee,fe){return z.updateProgress(null,null,1,[ee]),H.prototype.then.call(this,function(we){return z.updateProgress(null,ee),we}).then(ee,fe).then(function(we){return z.updateProgress(1),we})})},F.prototype.thenCore=function(j,V,z){z=z||H.prototype.then;var Y=this;j&&(j=j.bind(Y)),V&&(V=V.bind(Y));var ee=H.toString().indexOf("[native code]")!==-1&&H.name==="Promise",fe=ee?Y:F.convert(Object.assign({},Y),H.prototype),ie=z.call(fe,j,V);return F.convert(ie,Y.__proto__)},F.prototype.thenExternal=function(j,V){return H.prototype.then.call(this,j,V)},F.prototype.thenList=function(j){var V=this;return j.forEach(function(Y){V=V.thenCore(Y)}),V},F.prototype.catch=function(K){K&&(K=K.bind(this));var j=H.prototype.catch.call(this,K);return F.convert(j,this)},F.prototype.catchExternal=function(j){return H.prototype.catch.call(this,j)},F.prototype.error=function(j){return this.then(function(){throw new Error(j)})},F.prototype.using=F.prototype.set,F.prototype.saveAs=F.prototype.save,F.prototype.export=F.prototype.output,F.prototype.run=F.prototype.then,a.default=F},"./node_modules/core-js/internals/a-function.js":function(r){r.exports=function(a){if(typeof a!="function")throw TypeError(String(a)+" is not a function");return a}},"./node_modules/core-js/internals/a-possible-prototype.js":function(r,a,n){var e=n("./node_modules/core-js/internals/is-object.js");r.exports=function(s){if(!e(s)&&s!==null)throw TypeError("Can't set "+String(s)+" as a prototype");return s}},"./node_modules/core-js/internals/add-to-unscopables.js":function(r,a,n){var e=n("./node_modules/core-js/internals/well-known-symbol.js"),s=n("./node_modules/core-js/internals/object-create.js"),t=n("./node_modules/core-js/internals/object-define-property.js"),i=e("unscopables"),l=Array.prototype;l[i]==null&&t.f(l,i,{configurable:!0,value:s(null)}),r.exports=function(u){l[i][u]=!0}},"./node_modules/core-js/internals/an-object.js":function(r,a,n){var e=n("./node_modules/core-js/internals/is-object.js");r.exports=function(s){if(!e(s))throw TypeError(String(s)+" is not an object");return s}},"./node_modules/core-js/internals/array-for-each.js":function(r,a,n){"use strict";var e=n("./node_modules/core-js/internals/array-iteration.js").forEach,s=n("./node_modules/core-js/internals/array-method-is-strict.js"),t=s("forEach");r.exports=t?[].forEach:function(l){return e(this,l,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(r,a,n){var e=n("./node_modules/core-js/internals/to-indexed-object.js"),s=n("./node_modules/core-js/internals/to-length.js"),t=n("./node_modules/core-js/internals/to-absolute-index.js"),i=function(u){return function(h,p,g){var A=e(h),y=s(A.length),E=t(g,y),C;if(u&&p!=p){for(;y>E;)if(C=A[E++],C!=C)return!0}else for(;y>E;E++)if((u||E in A)&&A[E]===p)return u||E||0;return!u&&-1}};r.exports={includes:i(!0),indexOf:i(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(r,a,n){var e=n("./node_modules/core-js/internals/function-bind-context.js"),s=n("./node_modules/core-js/internals/indexed-object.js"),t=n("./node_modules/core-js/internals/to-object.js"),i=n("./node_modules/core-js/internals/to-length.js"),l=n("./node_modules/core-js/internals/array-species-create.js"),u=[].push,h=function(g){var A=g==1,y=g==2,E=g==3,C=g==4,w=g==6,b=g==7,I=g==5||w;return function(_,L,D,N){for(var R=t(_),B=s(R),M=e(L,D,3),H=i(B.length),F=0,K=N||l,j=A?K(_,H):y||b?K(_,0):void 0,V,z;H>F;F++)if((I||F in B)&&(V=B[F],z=M(V,F,R),g))if(A)j[F]=z;else if(z)switch(g){case 3:return!0;case 5:return V;case 6:return F;case 2:u.call(j,V)}else switch(g){case 4:return!1;case 7:u.call(j,V)}return w?-1:E||C?C:j}};r.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6),filterReject:h(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(r,a,n){var e=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/well-known-symbol.js"),t=n("./node_modules/core-js/internals/engine-v8-version.js"),i=s("species");r.exports=function(l){return t>=51||!e(function(){var u=[],h=u.constructor={};return h[i]=function(){return{foo:1}},u[l](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(r,a,n){"use strict";var e=n("./node_modules/core-js/internals/fails.js");r.exports=function(s,t){var i=[][s];return!!i&&e(function(){i.call(null,t||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(r,a,n){var e=n("./node_modules/core-js/internals/is-object.js"),s=n("./node_modules/core-js/internals/is-array.js"),t=n("./node_modules/core-js/internals/well-known-symbol.js"),i=t("species");r.exports=function(l){var u;return s(l)&&(u=l.constructor,typeof u=="function"&&(u===Array||s(u.prototype))?u=void 0:e(u)&&(u=u[i],u===null&&(u=void 0))),u===void 0?Array:u}},"./node_modules/core-js/internals/array-species-create.js":function(r,a,n){var e=n("./node_modules/core-js/internals/array-species-constructor.js");r.exports=function(s,t){return new(e(s))(t===0?0:t)}},"./node_modules/core-js/internals/classof-raw.js":function(r){var a={}.toString;r.exports=function(n){return a.call(n).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(r,a,n){var e=n("./node_modules/core-js/internals/to-string-tag-support.js"),s=n("./node_modules/core-js/internals/classof-raw.js"),t=n("./node_modules/core-js/internals/well-known-symbol.js"),i=t("toStringTag"),l=s(function(){return arguments}())=="Arguments",u=function(p,g){try{return p[g]}catch(A){}};r.exports=e?s:function(h){var p,g,A;return h===void 0?"Undefined":h===null?"Null":typeof(g=u(p=Object(h),i))=="string"?g:l?s(p):(A=s(p))=="Object"&&typeof p.callee=="function"?"Arguments":A}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(r,a,n){var e=n("./node_modules/core-js/internals/has.js"),s=n("./node_modules/core-js/internals/own-keys.js"),t=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),i=n("./node_modules/core-js/internals/object-define-property.js");r.exports=function(l,u){for(var h=s(u),p=i.f,g=t.f,A=0;A<h.length;A++){var y=h[A];e(l,y)||p(l,y,g(u,y))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(r,a,n){var e=n("./node_modules/core-js/internals/fails.js");r.exports=!e(function(){function s(){}return s.prototype.constructor=null,Object.getPrototypeOf(new s)!==s.prototype})},"./node_modules/core-js/internals/create-html.js":function(r,a,n){var e=n("./node_modules/core-js/internals/require-object-coercible.js"),s=n("./node_modules/core-js/internals/to-string.js"),t=/"/g;r.exports=function(i,l,u,h){var p=s(e(i)),g="<"+l;return u!==""&&(g+=" "+u+'="'+s(h).replace(t,""")+'"'),g+">"+p+"</"+l+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(r,a,n){"use strict";var e=n("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,s=n("./node_modules/core-js/internals/object-create.js"),t=n("./node_modules/core-js/internals/create-property-descriptor.js"),i=n("./node_modules/core-js/internals/set-to-string-tag.js"),l=n("./node_modules/core-js/internals/iterators.js"),u=function(){return this};r.exports=function(h,p,g){var A=p+" Iterator";return h.prototype=s(e,{next:t(1,g)}),i(h,A,!1,!0),l[A]=u,h}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(r,a,n){var e=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/object-define-property.js"),t=n("./node_modules/core-js/internals/create-property-descriptor.js");r.exports=e?function(i,l,u){return s.f(i,l,t(1,u))}:function(i,l,u){return i[l]=u,i}},"./node_modules/core-js/internals/create-property-descriptor.js":function(r){r.exports=function(a,n){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:n}}},"./node_modules/core-js/internals/create-property.js":function(r,a,n){"use strict";var e=n("./node_modules/core-js/internals/to-property-key.js"),s=n("./node_modules/core-js/internals/object-define-property.js"),t=n("./node_modules/core-js/internals/create-property-descriptor.js");r.exports=function(i,l,u){var h=e(l);h in i?s.f(i,h,t(0,u)):i[h]=u}},"./node_modules/core-js/internals/define-iterator.js":function(r,a,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/create-iterator-constructor.js"),t=n("./node_modules/core-js/internals/object-get-prototype-of.js"),i=n("./node_modules/core-js/internals/object-set-prototype-of.js"),l=n("./node_modules/core-js/internals/set-to-string-tag.js"),u=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),h=n("./node_modules/core-js/internals/redefine.js"),p=n("./node_modules/core-js/internals/well-known-symbol.js"),g=n("./node_modules/core-js/internals/is-pure.js"),A=n("./node_modules/core-js/internals/iterators.js"),y=n("./node_modules/core-js/internals/iterators-core.js"),E=y.IteratorPrototype,C=y.BUGGY_SAFARI_ITERATORS,w=p("iterator"),b="keys",I="values",_="entries",L=function(){return this};r.exports=function(D,N,R,B,M,H,F){s(R,N,B);var K=function(He){if(He===M&&ee)return ee;if(!C&&He in z)return z[He];switch(He){case b:return function(){return new R(this,He)};case I:return function(){return new R(this,He)};case _:return function(){return new R(this,He)}}return function(){return new R(this)}},j=N+" Iterator",V=!1,z=D.prototype,Y=z[w]||z["@@iterator"]||M&&z[M],ee=!C&&Y||K(M),fe=N=="Array"&&z.entries||Y,ie,we,Ce;if(fe&&(ie=t(fe.call(new D)),E!==Object.prototype&&ie.next&&(!g&&t(ie)!==E&&(i?i(ie,E):typeof ie[w]!="function"&&u(ie,w,L)),l(ie,j,!0,!0),g&&(A[j]=L))),M==I&&Y&&Y.name!==I&&(V=!0,ee=function(){return Y.call(this)}),(!g||F)&&z[w]!==ee&&u(z,w,ee),A[N]=ee,M)if(we={values:K(I),keys:H?ee:K(b),entries:K(_)},F)for(Ce in we)(C||V||!(Ce in z))&&h(z,Ce,we[Ce]);else e({target:N,proto:!0,forced:C||V},we);return we}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(r,a,n){var e=n("./node_modules/core-js/internals/path.js"),s=n("./node_modules/core-js/internals/has.js"),t=n("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),i=n("./node_modules/core-js/internals/object-define-property.js").f;r.exports=function(l){var u=e.Symbol||(e.Symbol={});s(u,l)||i(u,l,{value:t.f(l)})}},"./node_modules/core-js/internals/descriptors.js":function(r,a,n){var e=n("./node_modules/core-js/internals/fails.js");r.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(r,a,n){var e=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/is-object.js"),t=e.document,i=s(t)&&s(t.createElement);r.exports=function(l){return i?t.createElement(l):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(r){r.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(r,a,n){var e=n("./node_modules/core-js/internals/get-built-in.js");r.exports=e("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(r,a,n){var e=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/engine-user-agent.js"),t=e.process,i=e.Deno,l=t&&t.versions||i&&i.version,u=l&&l.v8,h,p;u?(h=u.split("."),p=h[0]<4?1:h[0]+h[1]):s&&(h=s.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=s.match(/Chrome\/(\d+)/),h&&(p=h[1]))),r.exports=p&&+p},"./node_modules/core-js/internals/enum-bug-keys.js":function(r){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(r,a,n){var e=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,t=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),i=n("./node_modules/core-js/internals/redefine.js"),l=n("./node_modules/core-js/internals/set-global.js"),u=n("./node_modules/core-js/internals/copy-constructor-properties.js"),h=n("./node_modules/core-js/internals/is-forced.js");r.exports=function(p,g){var A=p.target,y=p.global,E=p.stat,C,w,b,I,_,L;if(y?w=e:E?w=e[A]||l(A,{}):w=(e[A]||{}).prototype,w)for(b in g){if(_=g[b],p.noTargetGet?(L=s(w,b),I=L&&L.value):I=w[b],C=h(y?b:A+(E?".":"#")+b,p.forced),!C&&I!==void 0){if(typeof _===typeof I)continue;u(_,I)}(p.sham||I&&I.sham)&&t(_,"sham",!0),i(w,b,_,p)}}},"./node_modules/core-js/internals/fails.js":function(r){r.exports=function(a){try{return!!a()}catch(n){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(r,a,n){var e=n("./node_modules/core-js/internals/a-function.js");r.exports=function(s,t,i){if(e(s),t===void 0)return s;switch(i){case 0:return function(){return s.call(t)};case 1:return function(l){return s.call(t,l)};case 2:return function(l,u){return s.call(t,l,u)};case 3:return function(l,u,h){return s.call(t,l,u,h)}}return function(){return s.apply(t,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(r,a,n){var e=n("./node_modules/core-js/internals/global.js"),s=function(i){return typeof i=="function"?i:void 0};r.exports=function(t,i){return arguments.length<2?s(e[t]):e[t]&&e[t][i]}},"./node_modules/core-js/internals/global.js":function(r){var a=function(e){return e&&e.Math==Math&&e};r.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof O=="object"&&O)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(r,a,n){var e=n("./node_modules/core-js/internals/to-object.js"),s={}.hasOwnProperty;r.exports=Object.hasOwn||function(i,l){return s.call(e(i),l)}},"./node_modules/core-js/internals/hidden-keys.js":function(r){r.exports={}},"./node_modules/core-js/internals/html.js":function(r,a,n){var e=n("./node_modules/core-js/internals/get-built-in.js");r.exports=e("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(r,a,n){var e=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/fails.js"),t=n("./node_modules/core-js/internals/document-create-element.js");r.exports=!e&&!s(function(){return Object.defineProperty(t("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(r,a,n){var e=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/classof-raw.js"),t="".split;r.exports=e(function(){return!Object("z").propertyIsEnumerable(0)})?function(i){return s(i)=="String"?t.call(i,""):Object(i)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(r,a,n){var e=n("./node_modules/core-js/internals/is-object.js"),s=n("./node_modules/core-js/internals/object-set-prototype-of.js");r.exports=function(t,i,l){var u,h;return s&&typeof(u=i.constructor)=="function"&&u!==l&&e(h=u.prototype)&&h!==l.prototype&&s(t,h),t}},"./node_modules/core-js/internals/inspect-source.js":function(r,a,n){var e=n("./node_modules/core-js/internals/shared-store.js"),s=Function.toString;typeof e.inspectSource!="function"&&(e.inspectSource=function(t){return s.call(t)}),r.exports=e.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(r,a,n){var e=n("./node_modules/core-js/internals/native-weak-map.js"),s=n("./node_modules/core-js/internals/global.js"),t=n("./node_modules/core-js/internals/is-object.js"),i=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),l=n("./node_modules/core-js/internals/has.js"),u=n("./node_modules/core-js/internals/shared-store.js"),h=n("./node_modules/core-js/internals/shared-key.js"),p=n("./node_modules/core-js/internals/hidden-keys.js"),g="Object already initialized",A=s.WeakMap,y,E,C,w=function(B){return C(B)?E(B):y(B,{})},b=function(B){return function(M){var H;if(!t(M)||(H=E(M)).type!==B)throw TypeError("Incompatible receiver, "+B+" required");return H}};if(e||u.state){var I=u.state||(u.state=new A),_=I.get,L=I.has,D=I.set;y=function(B,M){if(L.call(I,B))throw new TypeError(g);return M.facade=B,D.call(I,B,M),M},E=function(B){return _.call(I,B)||{}},C=function(B){return L.call(I,B)}}else{var N=h("state");p[N]=!0,y=function(B,M){if(l(B,N))throw new TypeError(g);return M.facade=B,i(B,N,M),M},E=function(B){return l(B,N)?B[N]:{}},C=function(B){return l(B,N)}}r.exports={set:y,get:E,has:C,enforce:w,getterFor:b}},"./node_modules/core-js/internals/is-array.js":function(r,a,n){var e=n("./node_modules/core-js/internals/classof-raw.js");r.exports=Array.isArray||function(t){return e(t)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(r,a,n){var e=n("./node_modules/core-js/internals/fails.js"),s=/#|\.prototype\./,t=function(g,A){var y=l[i(g)];return y==h?!0:y==u?!1:typeof A=="function"?e(A):!!A},i=t.normalize=function(p){return String(p).replace(s,".").toLowerCase()},l=t.data={},u=t.NATIVE="N",h=t.POLYFILL="P";r.exports=t},"./node_modules/core-js/internals/is-object.js":function(r){r.exports=function(a){return typeof a=="object"?a!==null:typeof a=="function"}},"./node_modules/core-js/internals/is-pure.js":function(r){r.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(r,a,n){var e=n("./node_modules/core-js/internals/get-built-in.js"),s=n("./node_modules/core-js/internals/use-symbol-as-uid.js");r.exports=s?function(t){return typeof t=="symbol"}:function(t){var i=e("Symbol");return typeof i=="function"&&Object(t)instanceof i}},"./node_modules/core-js/internals/iterators-core.js":function(r,a,n){"use strict";var e=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/object-get-prototype-of.js"),t=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),i=n("./node_modules/core-js/internals/has.js"),l=n("./node_modules/core-js/internals/well-known-symbol.js"),u=n("./node_modules/core-js/internals/is-pure.js"),h=l("iterator"),p=!1,g=function(){return this},A,y,E;[].keys&&(E=[].keys(),"next"in E?(y=s(s(E)),y!==Object.prototype&&(A=y)):p=!0);var C=A==null||e(function(){var w={};return A[h].call(w)!==w});C&&(A={}),(!u||C)&&!i(A,h)&&t(A,h,g),r.exports={IteratorPrototype:A,BUGGY_SAFARI_ITERATORS:p}},"./node_modules/core-js/internals/iterators.js":function(r){r.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(r,a,n){var e=n("./node_modules/core-js/internals/engine-v8-version.js"),s=n("./node_modules/core-js/internals/fails.js");r.exports=!!Object.getOwnPropertySymbols&&!s(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})},"./node_modules/core-js/internals/native-weak-map.js":function(r,a,n){var e=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/inspect-source.js"),t=e.WeakMap;r.exports=typeof t=="function"&&/native code/.test(s(t))},"./node_modules/core-js/internals/object-assign.js":function(r,a,n){"use strict";var e=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/fails.js"),t=n("./node_modules/core-js/internals/object-keys.js"),i=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),l=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),u=n("./node_modules/core-js/internals/to-object.js"),h=n("./node_modules/core-js/internals/indexed-object.js"),p=Object.assign,g=Object.defineProperty;r.exports=!p||s(function(){if(e&&p({b:1},p(g({},"a",{enumerable:!0,get:function(){g(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var A={},y={},E=Symbol(),C="abcdefghijklmnopqrst";return A[E]=7,C.split("").forEach(function(w){y[w]=w}),p({},A)[E]!=7||t(p({},y)).join("")!=C})?function(y,E){for(var C=u(y),w=arguments.length,b=1,I=i.f,_=l.f;w>b;)for(var L=h(arguments[b++]),D=I?t(L).concat(I(L)):t(L),N=D.length,R=0,B;N>R;)B=D[R++],(!e||_.call(L,B))&&(C[B]=L[B]);return C}:p},"./node_modules/core-js/internals/object-create.js":function(r,a,n){var e=n("./node_modules/core-js/internals/an-object.js"),s=n("./node_modules/core-js/internals/object-define-properties.js"),t=n("./node_modules/core-js/internals/enum-bug-keys.js"),i=n("./node_modules/core-js/internals/hidden-keys.js"),l=n("./node_modules/core-js/internals/html.js"),u=n("./node_modules/core-js/internals/document-create-element.js"),h=n("./node_modules/core-js/internals/shared-key.js"),p=">",g="<",A="prototype",y="script",E=h("IE_PROTO"),C=function(){},w=function(N){return g+y+p+N+g+"/"+y+p},b=function(N){N.write(w("")),N.close();var R=N.parentWindow.Object;return N=null,R},I=function(){var N=u("iframe"),R="java"+y+":",B;if(N.style)return N.style.display="none",l.appendChild(N),N.src=String(R),B=N.contentWindow.document,B.open(),B.write(w("document.F=Object")),B.close(),B.F},_,L=function(){try{_=new ActiveXObject("htmlfile")}catch(R){}L=document.domain&&_?b(_):I()||b(_);for(var N=t.length;N--;)delete L[A][t[N]];return L()};i[E]=!0,r.exports=Object.create||function(N,R){var B;return N!==null?(C[A]=e(N),B=new C,C[A]=null,B[E]=N):B=L(),R===void 0?B:s(B,R)}},"./node_modules/core-js/internals/object-define-properties.js":function(r,a,n){var e=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/object-define-property.js"),t=n("./node_modules/core-js/internals/an-object.js"),i=n("./node_modules/core-js/internals/object-keys.js");r.exports=e?Object.defineProperties:function(u,h){t(u);for(var p=i(h),g=p.length,A=0,y;g>A;)s.f(u,y=p[A++],h[y]);return u}},"./node_modules/core-js/internals/object-define-property.js":function(r,a,n){var e=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/ie8-dom-define.js"),t=n("./node_modules/core-js/internals/an-object.js"),i=n("./node_modules/core-js/internals/to-property-key.js"),l=Object.defineProperty;a.f=e?l:function(h,p,g){if(t(h),p=i(p),t(g),s)try{return l(h,p,g)}catch(A){}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(h[p]=g.value),h}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(r,a,n){var e=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),t=n("./node_modules/core-js/internals/create-property-descriptor.js"),i=n("./node_modules/core-js/internals/to-indexed-object.js"),l=n("./node_modules/core-js/internals/to-property-key.js"),u=n("./node_modules/core-js/internals/has.js"),h=n("./node_modules/core-js/internals/ie8-dom-define.js"),p=Object.getOwnPropertyDescriptor;a.f=e?p:function(A,y){if(A=i(A),y=l(y),h)try{return p(A,y)}catch(E){}if(u(A,y))return t(!s.f.call(A,y),A[y])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(r,a,n){var e=n("./node_modules/core-js/internals/to-indexed-object.js"),s=n("./node_modules/core-js/internals/object-get-own-property-names.js").f,t={}.toString,i=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(h){try{return s(h)}catch(p){return i.slice()}};r.exports.f=function(h){return i&&t.call(h)=="[object Window]"?l(h):s(e(h))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(r,a,n){var e=n("./node_modules/core-js/internals/object-keys-internal.js"),s=n("./node_modules/core-js/internals/enum-bug-keys.js"),t=s.concat("length","prototype");a.f=Object.getOwnPropertyNames||function(l){return e(l,t)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(r,a){a.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(r,a,n){var e=n("./node_modules/core-js/internals/has.js"),s=n("./node_modules/core-js/internals/to-object.js"),t=n("./node_modules/core-js/internals/shared-key.js"),i=n("./node_modules/core-js/internals/correct-prototype-getter.js"),l=t("IE_PROTO"),u=Object.prototype;r.exports=i?Object.getPrototypeOf:function(h){return h=s(h),e(h,l)?h[l]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?u:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(r,a,n){var e=n("./node_modules/core-js/internals/has.js"),s=n("./node_modules/core-js/internals/to-indexed-object.js"),t=n("./node_modules/core-js/internals/array-includes.js").indexOf,i=n("./node_modules/core-js/internals/hidden-keys.js");r.exports=function(l,u){var h=s(l),p=0,g=[],A;for(A in h)!e(i,A)&&e(h,A)&&g.push(A);for(;u.length>p;)e(h,A=u[p++])&&(~t(g,A)||g.push(A));return g}},"./node_modules/core-js/internals/object-keys.js":function(r,a,n){var e=n("./node_modules/core-js/internals/object-keys-internal.js"),s=n("./node_modules/core-js/internals/enum-bug-keys.js");r.exports=Object.keys||function(i){return e(i,s)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(r,a){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,s=e&&!n.call({1:2},1);a.f=s?function(i){var l=e(this,i);return!!l&&l.enumerable}:n},"./node_modules/core-js/internals/object-set-prototype-of.js":function(r,a,n){var e=n("./node_modules/core-js/internals/an-object.js"),s=n("./node_modules/core-js/internals/a-possible-prototype.js");r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,i={},l;try{l=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,l.call(i,[]),t=i instanceof Array}catch(u){}return function(h,p){return e(h),s(p),t?l.call(h,p):h.__proto__=p,h}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(r,a,n){"use strict";var e=n("./node_modules/core-js/internals/to-string-tag-support.js"),s=n("./node_modules/core-js/internals/classof.js");r.exports=e?{}.toString:function(){return"[object "+s(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(r,a,n){var e=n("./node_modules/core-js/internals/is-object.js");r.exports=function(s,t){var i,l;if(t==="string"&&typeof(i=s.toString)=="function"&&!e(l=i.call(s)))return l;if(typeof(i=s.valueOf)=="function"&&!e(l=i.call(s)))return l;if(t!=="string"&&typeof(i=s.toString)=="function"&&!e(l=i.call(s)))return l;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(r,a,n){var e=n("./node_modules/core-js/internals/get-built-in.js"),s=n("./node_modules/core-js/internals/object-get-own-property-names.js"),t=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),i=n("./node_modules/core-js/internals/an-object.js");r.exports=e("Reflect","ownKeys")||function(u){var h=s.f(i(u)),p=t.f;return p?h.concat(p(u)):h}},"./node_modules/core-js/internals/path.js":function(r,a,n){var e=n("./node_modules/core-js/internals/global.js");r.exports=e},"./node_modules/core-js/internals/redefine.js":function(r,a,n){var e=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),t=n("./node_modules/core-js/internals/has.js"),i=n("./node_modules/core-js/internals/set-global.js"),l=n("./node_modules/core-js/internals/inspect-source.js"),u=n("./node_modules/core-js/internals/internal-state.js"),h=u.get,p=u.enforce,g=String(String).split("String");(r.exports=function(A,y,E,C){var w=C?!!C.unsafe:!1,b=C?!!C.enumerable:!1,I=C?!!C.noTargetGet:!1,_;if(typeof E=="function"&&(typeof y=="string"&&!t(E,"name")&&s(E,"name",y),_=p(E),_.source||(_.source=g.join(typeof y=="string"?y:""))),A===e){b?A[y]=E:i(y,E);return}else w?!I&&A[y]&&(b=!0):delete A[y];b?A[y]=E:s(A,y,E)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||l(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(r,a,n){"use strict";var e=n("./node_modules/core-js/internals/an-object.js");r.exports=function(){var s=e(this),t="";return s.global&&(t+="g"),s.ignoreCase&&(t+="i"),s.multiline&&(t+="m"),s.dotAll&&(t+="s"),s.unicode&&(t+="u"),s.sticky&&(t+="y"),t}},"./node_modules/core-js/internals/require-object-coercible.js":function(r){r.exports=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a}},"./node_modules/core-js/internals/set-global.js":function(r,a,n){var e=n("./node_modules/core-js/internals/global.js");r.exports=function(s,t){try{Object.defineProperty(e,s,{value:t,configurable:!0,writable:!0})}catch(i){e[s]=t}return t}},"./node_modules/core-js/internals/set-to-string-tag.js":function(r,a,n){var e=n("./node_modules/core-js/internals/object-define-property.js").f,s=n("./node_modules/core-js/internals/has.js"),t=n("./node_modules/core-js/internals/well-known-symbol.js"),i=t("toStringTag");r.exports=function(l,u,h){l&&!s(l=h?l:l.prototype,i)&&e(l,i,{configurable:!0,value:u})}},"./node_modules/core-js/internals/shared-key.js":function(r,a,n){var e=n("./node_modules/core-js/internals/shared.js"),s=n("./node_modules/core-js/internals/uid.js"),t=e("keys");r.exports=function(i){return t[i]||(t[i]=s(i))}},"./node_modules/core-js/internals/shared-store.js":function(r,a,n){var e=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/set-global.js"),t="__core-js_shared__",i=e[t]||s(t,{});r.exports=i},"./node_modules/core-js/internals/shared.js":function(r,a,n){var e=n("./node_modules/core-js/internals/is-pure.js"),s=n("./node_modules/core-js/internals/shared-store.js");(r.exports=function(t,i){return s[t]||(s[t]=i!==void 0?i:{})})("versions",[]).push({version:"3.16.0",mode:e?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(r,a,n){var e=n("./node_modules/core-js/internals/fails.js");r.exports=function(s){return e(function(){var t=""[s]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(r,a,n){var e=n("./node_modules/core-js/internals/to-integer.js"),s=n("./node_modules/core-js/internals/to-string.js"),t=n("./node_modules/core-js/internals/require-object-coercible.js"),i=function(u){return function(h,p){var g=s(t(h)),A=e(p),y=g.length,E,C;return A<0||A>=y?u?"":void 0:(E=g.charCodeAt(A),E<55296||E>56319||A+1===y||(C=g.charCodeAt(A+1))<56320||C>57343?u?g.charAt(A):E:u?g.slice(A,A+2):(E-55296<<10)+(C-56320)+65536)}};r.exports={codeAt:i(!1),charAt:i(!0)}},"./node_modules/core-js/internals/string-trim.js":function(r,a,n){var e=n("./node_modules/core-js/internals/require-object-coercible.js"),s=n("./node_modules/core-js/internals/to-string.js"),t=n("./node_modules/core-js/internals/whitespaces.js"),i="["+t+"]",l=RegExp("^"+i+i+"*"),u=RegExp(i+i+"*$"),h=function(g){return function(A){var y=s(e(A));return g&1&&(y=y.replace(l,"")),g&2&&(y=y.replace(u,"")),y}};r.exports={start:h(1),end:h(2),trim:h(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(r,a,n){var e=n("./node_modules/core-js/internals/to-integer.js"),s=Math.max,t=Math.min;r.exports=function(i,l){var u=e(i);return u<0?s(u+l,0):t(u,l)}},"./node_modules/core-js/internals/to-indexed-object.js":function(r,a,n){var e=n("./node_modules/core-js/internals/indexed-object.js"),s=n("./node_modules/core-js/internals/require-object-coercible.js");r.exports=function(t){return e(s(t))}},"./node_modules/core-js/internals/to-integer.js":function(r){var a=Math.ceil,n=Math.floor;r.exports=function(e){return isNaN(e=+e)?0:(e>0?n:a)(e)}},"./node_modules/core-js/internals/to-length.js":function(r,a,n){var e=n("./node_modules/core-js/internals/to-integer.js"),s=Math.min;r.exports=function(t){return t>0?s(e(t),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(r,a,n){var e=n("./node_modules/core-js/internals/require-object-coercible.js");r.exports=function(s){return Object(e(s))}},"./node_modules/core-js/internals/to-primitive.js":function(r,a,n){var e=n("./node_modules/core-js/internals/is-object.js"),s=n("./node_modules/core-js/internals/is-symbol.js"),t=n("./node_modules/core-js/internals/ordinary-to-primitive.js"),i=n("./node_modules/core-js/internals/well-known-symbol.js"),l=i("toPrimitive");r.exports=function(u,h){if(!e(u)||s(u))return u;var p=u[l],g;if(p!==void 0){if(h===void 0&&(h="default"),g=p.call(u,h),!e(g)||s(g))return g;throw TypeError("Can't convert object to primitive value")}return h===void 0&&(h="number"),t(u,h)}},"./node_modules/core-js/internals/to-property-key.js":function(r,a,n){var e=n("./node_modules/core-js/internals/to-primitive.js"),s=n("./node_modules/core-js/internals/is-symbol.js");r.exports=function(t){var i=e(t,"string");return s(i)?i:String(i)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(r,a,n){var e=n("./node_modules/core-js/internals/well-known-symbol.js"),s=e("toStringTag"),t={};t[s]="z",r.exports=String(t)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(r,a,n){var e=n("./node_modules/core-js/internals/is-symbol.js");r.exports=function(s){if(e(s))throw TypeError("Cannot convert a Symbol value to a string");return String(s)}},"./node_modules/core-js/internals/uid.js":function(r){var a=0,n=Math.random();r.exports=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++a+n).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(r,a,n){var e=n("./node_modules/core-js/internals/native-symbol.js");r.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(r,a,n){var e=n("./node_modules/core-js/internals/well-known-symbol.js");a.f=e},"./node_modules/core-js/internals/well-known-symbol.js":function(r,a,n){var e=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/shared.js"),t=n("./node_modules/core-js/internals/has.js"),i=n("./node_modules/core-js/internals/uid.js"),l=n("./node_modules/core-js/internals/native-symbol.js"),u=n("./node_modules/core-js/internals/use-symbol-as-uid.js"),h=s("wks"),p=e.Symbol,g=u?p:p&&p.withoutSetter||i;r.exports=function(A){return(!t(h,A)||!(l||typeof h[A]=="string"))&&(l&&t(p,A)?h[A]=p[A]:h[A]=g("Symbol."+A)),h[A]}},"./node_modules/core-js/internals/whitespaces.js":function(r){r.exports=`
|
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"./node_modules/core-js/modules/es.array.concat.js":function(r,a,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/fails.js"),t=n("./node_modules/core-js/internals/is-array.js"),i=n("./node_modules/core-js/internals/is-object.js"),l=n("./node_modules/core-js/internals/to-object.js"),u=n("./node_modules/core-js/internals/to-length.js"),h=n("./node_modules/core-js/internals/create-property.js"),p=n("./node_modules/core-js/internals/array-species-create.js"),g=n("./node_modules/core-js/internals/array-method-has-species-support.js"),A=n("./node_modules/core-js/internals/well-known-symbol.js"),y=n("./node_modules/core-js/internals/engine-v8-version.js"),E=A("isConcatSpreadable"),C=9007199254740991,w="Maximum allowed index exceeded",b=y>=51||!s(function(){var D=[];return D[E]=!1,D.concat()[0]!==D}),I=g("concat"),_=function(N){if(!i(N))return!1;var R=N[E];return R!==void 0?!!R:t(N)},L=!b||!I;e({target:"Array",proto:!0,forced:L},{concat:function(N){var R=l(this),B=p(R,0),M=0,H,F,K,j,V;for(H=-1,K=arguments.length;H<K;H++)if(V=H===-1?R:arguments[H],_(V)){if(j=u(V.length),M+j>C)throw TypeError(w);for(F=0;F<j;F++,M++)F in V&&h(B,M,V[F])}else{if(M>=C)throw TypeError(w);h(B,M++,V)}return B.length=M,B}})},"./node_modules/core-js/modules/es.array.iterator.js":function(r,a,n){"use strict";var e=n("./node_modules/core-js/internals/to-indexed-object.js"),s=n("./node_modules/core-js/internals/add-to-unscopables.js"),t=n("./node_modules/core-js/internals/iterators.js"),i=n("./node_modules/core-js/internals/internal-state.js"),l=n("./node_modules/core-js/internals/define-iterator.js"),u="Array Iterator",h=i.set,p=i.getterFor(u);r.exports=l(Array,"Array",function(g,A){h(this,{type:u,target:e(g),index:0,kind:A})},function(){var g=p(this),A=g.target,y=g.kind,E=g.index++;return!A||E>=A.length?(g.target=void 0,{value:void 0,done:!0}):y=="keys"?{value:E,done:!1}:y=="values"?{value:A[E],done:!1}:{value:[E,A[E]],done:!1}},"values"),t.Arguments=t.Array,s("keys"),s("values"),s("entries")},"./node_modules/core-js/modules/es.array.join.js":function(r,a,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/indexed-object.js"),t=n("./node_modules/core-js/internals/to-indexed-object.js"),i=n("./node_modules/core-js/internals/array-method-is-strict.js"),l=[].join,u=s!=Object,h=i("join",",");e({target:"Array",proto:!0,forced:u||!h},{join:function(g){return l.call(t(this),g===void 0?",":g)}})},"./node_modules/core-js/modules/es.array.map.js":function(r,a,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/array-iteration.js").map,t=n("./node_modules/core-js/internals/array-method-has-species-support.js"),i=t("map");e({target:"Array",proto:!0,forced:!i},{map:function(u){return s(this,u,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(r,a,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/is-object.js"),t=n("./node_modules/core-js/internals/is-array.js"),i=n("./node_modules/core-js/internals/to-absolute-index.js"),l=n("./node_modules/core-js/internals/to-length.js"),u=n("./node_modules/core-js/internals/to-indexed-object.js"),h=n("./node_modules/core-js/internals/create-property.js"),p=n("./node_modules/core-js/internals/well-known-symbol.js"),g=n("./node_modules/core-js/internals/array-method-has-species-support.js"),A=g("slice"),y=p("species"),E=[].slice,C=Math.max;e({target:"Array",proto:!0,forced:!A},{slice:function(b,I){var _=u(this),L=l(_.length),D=i(b,L),N=i(I===void 0?L:I,L),R,B,M;if(t(_)&&(R=_.constructor,typeof R=="function"&&(R===Array||t(R.prototype))?R=void 0:s(R)&&(R=R[y],R===null&&(R=void 0)),R===Array||R===void 0))return E.call(_,D,N);for(B=new(R===void 0?Array:R)(C(N-D,0)),M=0;D<N;D++,M++)D in _&&h(B,M,_[D]);return B.length=M,B}})},"./node_modules/core-js/modules/es.function.name.js":function(r,a,n){var e=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/object-define-property.js").f,t=Function.prototype,i=t.toString,l=/^\s*function ([^ (]*)/,u="name";e&&!(u in t)&&s(t,u,{configurable:!0,get:function(){try{return i.call(this).match(l)[1]}catch(p){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(r,a,n){"use strict";var e=n("./node_modules/core-js/internals/descriptors.js"),s=n("./node_modules/core-js/internals/global.js"),t=n("./node_modules/core-js/internals/is-forced.js"),i=n("./node_modules/core-js/internals/redefine.js"),l=n("./node_modules/core-js/internals/has.js"),u=n("./node_modules/core-js/internals/classof-raw.js"),h=n("./node_modules/core-js/internals/inherit-if-required.js"),p=n("./node_modules/core-js/internals/is-symbol.js"),g=n("./node_modules/core-js/internals/to-primitive.js"),A=n("./node_modules/core-js/internals/fails.js"),y=n("./node_modules/core-js/internals/object-create.js"),E=n("./node_modules/core-js/internals/object-get-own-property-names.js").f,C=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,w=n("./node_modules/core-js/internals/object-define-property.js").f,b=n("./node_modules/core-js/internals/string-trim.js").trim,I="Number",_=s[I],L=_.prototype,D=u(y(L))==I,N=function(K){if(p(K))throw TypeError("Cannot convert a Symbol value to a number");var j=g(K,"number"),V,z,Y,ee,fe,ie,we,Ce;if(typeof j=="string"&&j.length>2){if(j=b(j),V=j.charCodeAt(0),V===43||V===45){if(z=j.charCodeAt(2),z===88||z===120)return NaN}else if(V===48){switch(j.charCodeAt(1)){case 66:case 98:Y=2,ee=49;break;case 79:case 111:Y=8,ee=55;break;default:return+j}for(fe=j.slice(2),ie=fe.length,we=0;we<ie;we++)if(Ce=fe.charCodeAt(we),Ce<48||Ce>ee)return NaN;return parseInt(fe,Y)}}return+j};if(t(I,!_(" 0o1")||!_("0b1")||_("+0x1"))){for(var R=function(K){var j=arguments.length<1?0:K,V=this;return V instanceof R&&(D?A(function(){L.valueOf.call(V)}):u(V)!=I)?h(new _(N(j)),V,R):N(j)},B=e?E(_):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),M=0,H;B.length>M;M++)l(_,H=B[M])&&!l(R,H)&&w(R,H,C(_,H));R.prototype=L,L.constructor=R,i(s,I,R)}},"./node_modules/core-js/modules/es.object.assign.js":function(r,a,n){var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/object-assign.js");e({target:"Object",stat:!0,forced:Object.assign!==s},{assign:s})},"./node_modules/core-js/modules/es.object.keys.js":function(r,a,n){var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/to-object.js"),t=n("./node_modules/core-js/internals/object-keys.js"),i=n("./node_modules/core-js/internals/fails.js"),l=i(function(){t(1)});e({target:"Object",stat:!0,forced:l},{keys:function(h){return t(s(h))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(r,a,n){var e=n("./node_modules/core-js/internals/to-string-tag-support.js"),s=n("./node_modules/core-js/internals/redefine.js"),t=n("./node_modules/core-js/internals/object-to-string.js");e||s(Object.prototype,"toString",t,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(r,a,n){"use strict";var e=n("./node_modules/core-js/internals/redefine.js"),s=n("./node_modules/core-js/internals/an-object.js"),t=n("./node_modules/core-js/internals/to-string.js"),i=n("./node_modules/core-js/internals/fails.js"),l=n("./node_modules/core-js/internals/regexp-flags.js"),u="toString",h=RegExp.prototype,p=h[u],g=i(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),A=p.name!=u;(g||A)&&e(RegExp.prototype,u,function(){var E=s(this),C=t(E.source),w=E.flags,b=t(w===void 0&&E instanceof RegExp&&!("flags"in h)?l.call(E):w);return"/"+C+"/"+b},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(r,a,n){"use strict";var e=n("./node_modules/core-js/internals/string-multibyte.js").charAt,s=n("./node_modules/core-js/internals/to-string.js"),t=n("./node_modules/core-js/internals/internal-state.js"),i=n("./node_modules/core-js/internals/define-iterator.js"),l="String Iterator",u=t.set,h=t.getterFor(l);i(String,"String",function(p){u(this,{type:l,string:s(p),index:0})},function(){var g=h(this),A=g.string,y=g.index,E;return y>=A.length?{value:void 0,done:!0}:(E=e(A,y),g.index+=E.length,{value:E,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(r,a,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/create-html.js"),t=n("./node_modules/core-js/internals/string-html-forced.js");e({target:"String",proto:!0,forced:t("link")},{link:function(l){return s(this,"a","href",l)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(r,a,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/descriptors.js"),t=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/has.js"),l=n("./node_modules/core-js/internals/is-object.js"),u=n("./node_modules/core-js/internals/object-define-property.js").f,h=n("./node_modules/core-js/internals/copy-constructor-properties.js"),p=t.Symbol;if(s&&typeof p=="function"&&(!("description"in p.prototype)||p().description!==void 0)){var g={},A=function(){var I=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),_=this instanceof A?new p(I):I===void 0?p():p(I);return I===""&&(g[_]=!0),_};h(A,p);var y=A.prototype=p.prototype;y.constructor=A;var E=y.toString,C=String(p("test"))=="Symbol(test)",w=/^Symbol\((.*)\)[^)]+$/;u(y,"description",{configurable:!0,get:function(){var I=l(this)?this.valueOf():this,_=E.call(I);if(i(g,I))return"";var L=C?_.slice(7,-1):_.replace(w,"$1");return L===""?void 0:L}}),e({global:!0,forced:!0},{Symbol:A})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(r,a,n){var e=n("./node_modules/core-js/internals/define-well-known-symbol.js");e("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(r,a,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),s=n("./node_modules/core-js/internals/global.js"),t=n("./node_modules/core-js/internals/get-built-in.js"),i=n("./node_modules/core-js/internals/is-pure.js"),l=n("./node_modules/core-js/internals/descriptors.js"),u=n("./node_modules/core-js/internals/native-symbol.js"),h=n("./node_modules/core-js/internals/fails.js"),p=n("./node_modules/core-js/internals/has.js"),g=n("./node_modules/core-js/internals/is-array.js"),A=n("./node_modules/core-js/internals/is-object.js"),y=n("./node_modules/core-js/internals/is-symbol.js"),E=n("./node_modules/core-js/internals/an-object.js"),C=n("./node_modules/core-js/internals/to-object.js"),w=n("./node_modules/core-js/internals/to-indexed-object.js"),b=n("./node_modules/core-js/internals/to-property-key.js"),I=n("./node_modules/core-js/internals/to-string.js"),_=n("./node_modules/core-js/internals/create-property-descriptor.js"),L=n("./node_modules/core-js/internals/object-create.js"),D=n("./node_modules/core-js/internals/object-keys.js"),N=n("./node_modules/core-js/internals/object-get-own-property-names.js"),R=n("./node_modules/core-js/internals/object-get-own-property-names-external.js"),B=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),M=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),H=n("./node_modules/core-js/internals/object-define-property.js"),F=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),K=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),j=n("./node_modules/core-js/internals/redefine.js"),V=n("./node_modules/core-js/internals/shared.js"),z=n("./node_modules/core-js/internals/shared-key.js"),Y=n("./node_modules/core-js/internals/hidden-keys.js"),ee=n("./node_modules/core-js/internals/uid.js"),fe=n("./node_modules/core-js/internals/well-known-symbol.js"),ie=n("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),we=n("./node_modules/core-js/internals/define-well-known-symbol.js"),Ce=n("./node_modules/core-js/internals/set-to-string-tag.js"),Le=n("./node_modules/core-js/internals/internal-state.js"),He=n("./node_modules/core-js/internals/array-iteration.js").forEach,ce=z("hidden"),Pe="Symbol",Q="prototype",me=fe("toPrimitive"),Je=Le.set,re=Le.getterFor(Pe),G=Object[Q],X=s.Symbol,J=t("JSON","stringify"),Ae=M.f,he=H.f,Me=R.f,Ie=F.f,oe=V("symbols"),pe=V("op-symbols"),Oe=V("string-to-symbol-registry"),Ye=V("symbol-to-string-registry"),it=V("wks"),et=s.QObject,Te=!et||!et[Q]||!et[Q].findChild,tt=l&&h(function(){return L(he({},"a",{get:function(){return he(this,"a",{value:7}).a}})).a!=7})?function(Re,De,ae){var gt=Ae(G,De);gt&&delete G[De],he(Re,De,ae),gt&&Re!==G&&he(G,De,gt)}:he,ze=function(De,ae){var gt=oe[De]=L(X[Q]);return Je(gt,{type:Pe,tag:De,description:ae}),l||(gt.description=ae),gt},dt=function(De,ae,gt){De===G&&dt(pe,ae,gt),E(De);var jt=b(ae);return E(gt),p(oe,jt)?(gt.enumerable?(p(De,ce)&&De[ce][jt]&&(De[ce][jt]=!1),gt=L(gt,{enumerable:_(0,!1)})):(p(De,ce)||he(De,ce,_(1,{})),De[ce][jt]=!0),tt(De,jt,gt)):he(De,jt,gt)},Ot=function(De,ae){E(De);var gt=w(ae),jt=D(gt).concat($(gt));return He(jt,function(ut){(!l||Ct.call(gt,ut))&&dt(De,ut,gt[ut])}),De},Tt=function(De,ae){return ae===void 0?L(De):Ot(L(De),ae)},Ct=function(De){var ae=b(De),gt=Ie.call(this,ae);return this===G&&p(oe,ae)&&!p(pe,ae)?!1:gt||!p(this,ae)||!p(oe,ae)||p(this,ce)&&this[ce][ae]?gt:!0},Nt=function(De,ae){var gt=w(De),jt=b(ae);if(gt===G&&p(oe,jt)&&!p(pe,jt))return;var ut=Ae(gt,jt);return ut&&p(oe,jt)&&!(p(gt,ce)&>[ce][jt])&&(ut.enumerable=!0),ut},Be=function(De){var ae=Me(w(De)),gt=[];return He(ae,function(jt){!p(oe,jt)&&!p(Y,jt)&>.push(jt)}),gt},$=function(De){var ae=De===G,gt=Me(ae?pe:w(De)),jt=[];return He(gt,function(ut){p(oe,ut)&&(!ae||p(G,ut))&&jt.push(oe[ut])}),jt};if(u||(X=function(){if(this instanceof X)throw TypeError("Symbol is not a constructor");var De=!arguments.length||arguments[0]===void 0?void 0:I(arguments[0]),ae=ee(De),gt=function jt(ut){this===G&&jt.call(pe,ut),p(this,ce)&&p(this[ce],ae)&&(this[ce][ae]=!1),tt(this,ae,_(1,ut))};return l&&Te&&tt(G,ae,{configurable:!0,set:gt}),ze(ae,De)},j(X[Q],"toString",function(){return re(this).tag}),j(X,"withoutSetter",function(Re){return ze(ee(Re),Re)}),F.f=Ct,H.f=dt,M.f=Nt,N.f=R.f=Be,B.f=$,ie.f=function(Re){return ze(fe(Re),Re)},l&&(he(X[Q],"description",{configurable:!0,get:function(){return re(this).description}}),i||j(G,"propertyIsEnumerable",Ct,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:X}),He(D(it),function(Re){we(Re)}),e({target:Pe,stat:!0,forced:!u},{for:function(De){var ae=I(De);if(p(Oe,ae))return Oe[ae];var gt=X(ae);return Oe[ae]=gt,Ye[gt]=ae,gt},keyFor:function(De){if(!y(De))throw TypeError(De+" is not a symbol");if(p(Ye,De))return Ye[De]},useSetter:function(){Te=!0},useSimple:function(){Te=!1}}),e({target:"Object",stat:!0,forced:!u,sham:!l},{create:Tt,defineProperty:dt,defineProperties:Ot,getOwnPropertyDescriptor:Nt}),e({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:Be,getOwnPropertySymbols:$}),e({target:"Object",stat:!0,forced:h(function(){B.f(1)})},{getOwnPropertySymbols:function(De){return B.f(C(De))}}),J){var Z=!u||h(function(){var Re=X();return J([Re])!="[null]"||J({a:Re})!="{}"||J(Object(Re))!="{}"});e({target:"JSON",stat:!0,forced:Z},{stringify:function(De,ae,gt){for(var jt=[De],ut=1,rr;arguments.length>ut;)jt.push(arguments[ut++]);return rr=ae,!A(ae)&&De===void 0||y(De)?void 0:(g(ae)||(ae=function(nn,mr){if(typeof rr=="function"&&(mr=rr.call(this,nn,mr)),!y(mr))return mr}),jt[1]=ae,J.apply(null,jt))}})}X[Q][me]||K(X[Q],me,X[Q].valueOf),Ce(X,Pe),Y[ce]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(r,a,n){var e=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/dom-iterables.js"),t=n("./node_modules/core-js/internals/array-for-each.js"),i=n("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var l in s){var u=e[l],h=u&&u.prototype;if(h&&h.forEach!==t)try{i(h,"forEach",t)}catch(p){h.forEach=t}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(r,a,n){var e=n("./node_modules/core-js/internals/global.js"),s=n("./node_modules/core-js/internals/dom-iterables.js"),t=n("./node_modules/core-js/modules/es.array.iterator.js"),i=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),l=n("./node_modules/core-js/internals/well-known-symbol.js"),u=l("iterator"),h=l("toStringTag"),p=t.values;for(var g in s){var A=e[g],y=A&&A.prototype;if(y){if(y[u]!==p)try{i(y,u,p)}catch(C){y[u]=p}if(y[h]||i(y,h,g),s[g]){for(var E in t)if(y[E]!==t[E])try{i(y,E,t[E])}catch(C){y[E]=t[E]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(r){/*!
|
|
|
* @overview es6-promise - a tiny implementation of Promises/A+.
|
|
|
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
|
|
* @license Licensed under MIT license
|
|
|
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
|
|
|
* @version v4.2.8+1e68dce6
|
|
|
*/(function(a,n){r.exports=n()})(this,function(){"use strict";function a(et){var Te=typeof et;return et!==null&&(Te==="object"||Te==="function")}function n(et){return typeof et=="function"}var e=void 0;Array.isArray?e=Array.isArray:e=function(Te){return Object.prototype.toString.call(Te)==="[object Array]"};var s=e,t=0,i=void 0,l=void 0,u=function(Te,tt){D[t]=Te,D[t+1]=tt,t+=2,t===2&&(l?l(N):B())};function h(et){l=et}function p(et){u=et}var g=typeof window!="undefined"?window:void 0,A=g||{},y=A.MutationObserver||A.WebKitMutationObserver,E=typeof self=="undefined"&&typeof x!="undefined"&&{}.toString.call(x)==="[object process]",C=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function w(){return function(){return x.nextTick(N)}}function b(){return typeof i!="undefined"?function(){i(N)}:L()}function I(){var et=0,Te=new y(N),tt=document.createTextNode("");return Te.observe(tt,{characterData:!0}),function(){tt.data=et=++et%2}}function _(){var et=new MessageChannel;return et.port1.onmessage=N,function(){return et.port2.postMessage(0)}}function L(){var et=setTimeout;return function(){return et(N,1)}}var D=new Array(1e3);function N(){for(var et=0;et<t;et+=2){var Te=D[et],tt=D[et+1];Te(tt),D[et]=void 0,D[et+1]=void 0}t=0}function R(){try{var et=Function("return this")().require("vertx");return i=et.runOnLoop||et.runOnContext,b()}catch(Te){return L()}}var B=void 0;E?B=w():y?B=I():C?B=_():g===void 0&&!0?B=R():B=L();function M(et,Te){var tt=this,ze=new this.constructor(K);ze[F]===void 0&&J(ze);var dt=tt._state;if(dt){var Ot=arguments[dt-1];u(function(){return Je(dt,ze,Ot,tt._result)})}else Q(tt,ze,et,Te);return ze}function H(et){var Te=this;if(et&&typeof et=="object"&&et.constructor===Te)return et;var tt=new Te(K);return Le(tt,et),tt}var F=Math.random().toString(36).substring(2);function K(){}var j=void 0,V=1,z=2;function Y(){return new TypeError("You cannot resolve a promise with itself")}function ee(){return new TypeError("A promises callback cannot return that same promise.")}function fe(et,Te,tt,ze){try{et.call(Te,tt,ze)}catch(dt){return dt}}function ie(et,Te,tt){u(function(ze){var dt=!1,Ot=fe(tt,Te,function(Tt){if(dt)return;dt=!0,Te!==Tt?Le(ze,Tt):ce(ze,Tt)},function(Tt){if(dt)return;dt=!0,Pe(ze,Tt)},"Settle: "+(ze._label||" unknown promise"));!dt&&Ot&&(dt=!0,Pe(ze,Ot))},et)}function we(et,Te){Te._state===V?ce(et,Te._result):Te._state===z?Pe(et,Te._result):Q(Te,void 0,function(tt){return Le(et,tt)},function(tt){return Pe(et,tt)})}function Ce(et,Te,tt){Te.constructor===et.constructor&&tt===M&&Te.constructor.resolve===H?we(et,Te):tt===void 0?ce(et,Te):n(tt)?ie(et,Te,tt):ce(et,Te)}function Le(et,Te){if(et===Te)Pe(et,Y());else if(a(Te)){var tt=void 0;try{tt=Te.then}catch(ze){Pe(et,ze);return}Ce(et,Te,tt)}else ce(et,Te)}function He(et){et._onerror&&et._onerror(et._result),me(et)}function ce(et,Te){if(et._state!==j)return;et._result=Te,et._state=V,et._subscribers.length!==0&&u(me,et)}function Pe(et,Te){if(et._state!==j)return;et._state=z,et._result=Te,u(He,et)}function Q(et,Te,tt,ze){var dt=et._subscribers,Ot=dt.length;et._onerror=null,dt[Ot]=Te,dt[Ot+V]=tt,dt[Ot+z]=ze,Ot===0&&et._state&&u(me,et)}function me(et){var Te=et._subscribers,tt=et._state;if(Te.length===0)return;for(var ze=void 0,dt=void 0,Ot=et._result,Tt=0;Tt<Te.length;Tt+=3)ze=Te[Tt],dt=Te[Tt+tt],ze?Je(tt,ze,dt,Ot):dt(Ot);et._subscribers.length=0}function Je(et,Te,tt,ze){var dt=n(tt),Ot=void 0,Tt=void 0,Ct=!0;if(dt){try{Ot=tt(ze)}catch(Nt){Ct=!1,Tt=Nt}if(Te===Ot){Pe(Te,ee());return}}else Ot=ze;Te._state!==j||(dt&&Ct?Le(Te,Ot):Ct===!1?Pe(Te,Tt):et===V?ce(Te,Ot):et===z&&Pe(Te,Ot))}function re(et,Te){try{Te(function(ze){Le(et,ze)},function(ze){Pe(et,ze)})}catch(tt){Pe(et,tt)}}var G=0;function X(){return G++}function J(et){et[F]=G++,et._state=void 0,et._result=void 0,et._subscribers=[]}function Ae(){return new Error("Array Methods must be provided an Array")}var he=function(){function et(Te,tt){this._instanceConstructor=Te,this.promise=new Te(K),this.promise[F]||J(this.promise),s(tt)?(this.length=tt.length,this._remaining=tt.length,this._result=new Array(this.length),this.length===0?ce(this.promise,this._result):(this.length=this.length||0,this._enumerate(tt),this._remaining===0&&ce(this.promise,this._result))):Pe(this.promise,Ae())}return et.prototype._enumerate=function(tt){for(var ze=0;this._state===j&&ze<tt.length;ze++)this._eachEntry(tt[ze],ze)},et.prototype._eachEntry=function(tt,ze){var dt=this._instanceConstructor,Ot=dt.resolve;if(Ot===H){var Tt=void 0,Ct=void 0,Nt=!1;try{Tt=tt.then}catch($){Nt=!0,Ct=$}if(Tt===M&&tt._state!==j)this._settledAt(tt._state,ze,tt._result);else if(typeof Tt!="function")this._remaining--,this._result[ze]=tt;else if(dt===Ye){var Be=new dt(K);Nt?Pe(Be,Ct):Ce(Be,tt,Tt),this._willSettleAt(Be,ze)}else this._willSettleAt(new dt(function($){return $(tt)}),ze)}else this._willSettleAt(Ot(tt),ze)},et.prototype._settledAt=function(tt,ze,dt){var Ot=this.promise;Ot._state===j&&(this._remaining--,tt===z?Pe(Ot,dt):this._result[ze]=dt),this._remaining===0&&ce(Ot,this._result)},et.prototype._willSettleAt=function(tt,ze){var dt=this;Q(tt,void 0,function(Ot){return dt._settledAt(V,ze,Ot)},function(Ot){return dt._settledAt(z,ze,Ot)})},et}();function Me(et){return new he(this,et).promise}function Ie(et){var Te=this;return s(et)?new Te(function(tt,ze){for(var dt=et.length,Ot=0;Ot<dt;Ot++)Te.resolve(et[Ot]).then(tt,ze)}):new Te(function(tt,ze){return ze(new TypeError("You must pass an array to race."))})}function oe(et){var Te=this,tt=new Te(K);return Pe(tt,et),tt}function pe(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Oe(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Ye=function(){function et(Te){this[F]=X(),this._result=this._state=void 0,this._subscribers=[],K!==Te&&(typeof Te!="function"&&pe(),this instanceof et?re(this,Te):Oe())}return et.prototype.catch=function(tt){return this.then(null,tt)},et.prototype.finally=function(tt){var ze=this,dt=ze.constructor;return n(tt)?ze.then(function(Ot){return dt.resolve(tt()).then(function(){return Ot})},function(Ot){return dt.resolve(tt()).then(function(){throw Ot})}):ze.then(tt,tt)},et}();Ye.prototype.then=M,Ye.all=Me,Ye.race=Ie,Ye.resolve=H,Ye.reject=oe,Ye._setScheduler=h,Ye._setAsap=p,Ye._asap=u;function it(){var et=void 0;if(typeof O!="undefined")et=O;else if(typeof self!="undefined")et=self;else try{et=Function("return this")()}catch(ze){throw new Error("polyfill failed because global object is unavailable in this environment")}var Te=et.Promise;if(Te){var tt=null;try{tt=Object.prototype.toString.call(Te.resolve())}catch(ze){}if(tt==="[object Promise]"&&!Te.cast)return}et.Promise=Ye}return Ye.polyfill=it,Ye.Promise=Ye,Ye})},html2canvas:function(r){"use strict";r.exports=v},jspdf:function(r){"use strict";r.exports=T}},m={};function f(o){var r=m[o];if(r!==void 0)return r.exports;var a=m[o]={exports:{}};return S[o].call(a.exports,a,a.exports,f),a.exports}!function(){f.n=function(o){var r=o&&o.__esModule?function(){return o.default}:function(){return o};return f.d(r,{a:r}),r}}(),!function(){f.d=function(o,r){for(var a in r)f.o(r,a)&&!f.o(o,a)&&Object.defineProperty(o,a,{enumerable:!0,get:r[a]})}}(),!function(){f.o=function(o,r){return Object.prototype.hasOwnProperty.call(o,r)}}(),!function(){f.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}}();var c={};return!function(){"use strict";/*!**********************!*\
|
|
|
!*** ./src/index.js ***!
|
|
|
\**********************/f.r(c);var o=f("./src/worker.js"),r=f("./src/plugin/jspdf-plugin.js"),a=f("./src/plugin/pagebreaks.js"),n=f("./src/plugin/hyperlinks.js"),e=function s(t,i){var l=new s.Worker(i);return t?l.from(t).save():l};e.Worker=o.default,c.default=e}(),c=c.default,c}()})}).call(this,d("yLpj"),d("Q2Ig"))},"1q3G":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=O;function O(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},"1tlw":function(U,P,d){var O=d("MBQ8"),x=O.extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(v){return v.stack=null,x.superApply(this,"getInitialData",arguments)}}),T=x;U.exports=T},"1u/T":function(U,P,d){var O=d("ProS"),x={type:"selectDataRange",event:"dataRangeSelected",update:"update"};O.registerAction(x,function(T,v){v.eachComponent({mainType:"visualMap",query:T},function(S){S.setSelected(T.selected)})})},"1uat":function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("MlIO"))})(this,function(O){return function(){var x=O,T=x.lib,v=T.Hasher,S=x.x64,m=S.Word,f=S.WordArray,c=x.algo;function o(){return m.create.apply(m,arguments)}var r=[o(1116352408,3609767458),o(1899447441,602891725),o(3049323471,3964484399),o(3921009573,2173295548),o(961987163,4081628472),o(1508970993,3053834265),o(2453635748,2937671579),o(2870763221,3664609560),o(3624381080,2734883394),o(310598401,1164996542),o(607225278,1323610764),o(1426881987,3590304994),o(1925078388,4068182383),o(2162078206,991336113),o(2614888103,633803317),o(3248222580,3479774868),o(3835390401,2666613458),o(4022224774,944711139),o(264347078,2341262773),o(604807628,2007800933),o(770255983,1495990901),o(1249150122,1856431235),o(1555081692,3175218132),o(1996064986,2198950837),o(2554220882,3999719339),o(2821834349,766784016),o(2952996808,2566594879),o(3210313671,3203337956),o(3336571891,1034457026),o(3584528711,2466948901),o(113926993,3758326383),o(338241895,168717936),o(666307205,1188179964),o(773529912,1546045734),o(1294757372,1522805485),o(1396182291,2643833823),o(1695183700,2343527390),o(1986661051,1014477480),o(2177026350,1206759142),o(2456956037,344077627),o(2730485921,1290863460),o(2820302411,3158454273),o(3259730800,3505952657),o(3345764771,106217008),o(3516065817,3606008344),o(3600352804,1432725776),o(4094571909,1467031594),o(275423344,851169720),o(430227734,3100823752),o(506948616,1363258195),o(659060556,3750685593),o(883997877,3785050280),o(958139571,3318307427),o(1322822218,3812723403),o(1537002063,2003034995),o(1747873779,3602036899),o(1955562222,1575990012),o(2024104815,1125592928),o(2227730452,2716904306),o(2361852424,442776044),o(2428436474,593698344),o(2756734187,3733110249),o(3204031479,2999351573),o(3329325298,3815920427),o(3391569614,3928383900),o(3515267271,566280711),o(3940187606,3454069534),o(4118630271,4000239992),o(116418474,1914138554),o(174292421,2731055270),o(289380356,3203993006),o(460393269,320620315),o(685471733,587496836),o(852142971,1086792851),o(1017036298,365543100),o(1126000580,2618297676),o(1288033470,3409855158),o(1501505948,4234509866),o(1607167915,987167468),o(1816402316,1246189591)],a=[];(function(){for(var e=0;e<80;e++)a[e]=o()})();var n=c.SHA512=v.extend({_doReset:function(){this._hash=new f.init([new m.init(1779033703,4089235720),new m.init(3144134277,2227873595),new m.init(1013904242,4271175723),new m.init(2773480762,1595750129),new m.init(1359893119,2917565137),new m.init(2600822924,725511199),new m.init(528734635,4215389547),new m.init(1541459225,327033209)])},_doProcessBlock:function(s,t){for(var i=this._hash.words,l=i[0],u=i[1],h=i[2],p=i[3],g=i[4],A=i[5],y=i[6],E=i[7],C=l.high,w=l.low,b=u.high,I=u.low,_=h.high,L=h.low,D=p.high,N=p.low,R=g.high,B=g.low,M=A.high,H=A.low,F=y.high,K=y.low,j=E.high,V=E.low,z=C,Y=w,ee=b,fe=I,ie=_,we=L,Ce=D,Le=N,He=R,ce=B,Pe=M,Q=H,me=F,Je=K,re=j,G=V,X=0;X<80;X++){var J,Ae,he=a[X];if(X<16)Ae=he.high=s[t+X*2]|0,J=he.low=s[t+X*2+1]|0;else{var Me=a[X-15],Ie=Me.high,oe=Me.low,pe=(Ie>>>1|oe<<31)^(Ie>>>8|oe<<24)^Ie>>>7,Oe=(oe>>>1|Ie<<31)^(oe>>>8|Ie<<24)^(oe>>>7|Ie<<25),Ye=a[X-2],it=Ye.high,et=Ye.low,Te=(it>>>19|et<<13)^(it<<3|et>>>29)^it>>>6,tt=(et>>>19|it<<13)^(et<<3|it>>>29)^(et>>>6|it<<26),ze=a[X-7],dt=ze.high,Ot=ze.low,Tt=a[X-16],Ct=Tt.high,Nt=Tt.low;J=Oe+Ot,Ae=pe+dt+(J>>>0<Oe>>>0?1:0),J=J+tt,Ae=Ae+Te+(J>>>0<tt>>>0?1:0),J=J+Nt,Ae=Ae+Ct+(J>>>0<Nt>>>0?1:0),he.high=Ae,he.low=J}var Be=He&Pe^~He&me,$=ce&Q^~ce&Je,Z=z&ee^z&ie^ee&ie,Re=Y&fe^Y&we^fe&we,De=(z>>>28|Y<<4)^(z<<30|Y>>>2)^(z<<25|Y>>>7),ae=(Y>>>28|z<<4)^(Y<<30|z>>>2)^(Y<<25|z>>>7),gt=(He>>>14|ce<<18)^(He>>>18|ce<<14)^(He<<23|ce>>>9),jt=(ce>>>14|He<<18)^(ce>>>18|He<<14)^(ce<<23|He>>>9),ut=r[X],rr=ut.high,pr=ut.low,nn=G+jt,mr=re+gt+(nn>>>0<G>>>0?1:0),nn=nn+$,mr=mr+Be+(nn>>>0<$>>>0?1:0),nn=nn+pr,mr=mr+rr+(nn>>>0<pr>>>0?1:0),nn=nn+J,mr=mr+Ae+(nn>>>0<J>>>0?1:0),vr=ae+Re,$t=De+Z+(vr>>>0<ae>>>0?1:0);re=me,G=Je,me=Pe,Je=Q,Pe=He,Q=ce,ce=Le+nn|0,He=Ce+mr+(ce>>>0<Le>>>0?1:0)|0,Ce=ie,Le=we,ie=ee,we=fe,ee=z,fe=Y,Y=nn+vr|0,z=mr+$t+(Y>>>0<nn>>>0?1:0)|0}w=l.low=w+Y,l.high=C+z+(w>>>0<Y>>>0?1:0),I=u.low=I+fe,u.high=b+ee+(I>>>0<fe>>>0?1:0),L=h.low=L+we,h.high=_+ie+(L>>>0<we>>>0?1:0),N=p.low=N+Le,p.high=D+Ce+(N>>>0<Le>>>0?1:0),B=g.low=B+ce,g.high=R+He+(B>>>0<ce>>>0?1:0),H=A.low=H+Q,A.high=M+Pe+(H>>>0<Q>>>0?1:0),K=y.low=K+Je,y.high=F+me+(K>>>0<Je>>>0?1:0),V=E.low=V+G,E.high=j+re+(V>>>0<G>>>0?1:0)},_doFinalize:function(){var s=this._data,t=s.words,i=this._nDataBytes*8,l=s.sigBytes*8;t[l>>>5]|=128<<24-l%32,t[(l+128>>>10<<5)+30]=Math.floor(i/4294967296),t[(l+128>>>10<<5)+31]=i,s.sigBytes=t.length*4,this._process();var u=this._hash.toX32();return u},clone:function(){var s=v.clone.call(this);return s._hash=this._hash.clone(),s},blockSize:1024/32});x.SHA512=v._createHelper(n),x.HmacSHA512=v._createHmacHelper(n)}(),O.SHA512})},"1vzs":function(U,P,d){"use strict";d.d(P,"a",function(){return t});var O=d("q1tI"),x=d.n(O),T=d("HQEm"),v=d.n(T),S=d("gZBC"),m=d.n(S),f=d("NAnI"),c=d.n(f),o=d("V/uB"),r=d.n(o),a=d("kbBi"),n=d.n(a),e=d("w6Tc"),s=d.n(e);function t(i){var l=i.suffixIcon,u=i.clearIcon,h=i.menuItemSelectedIcon,p=i.removeIcon,g=i.loading,A=i.multiple,y=i.prefixCls,E=u;u||(E=O.createElement(n.a,null));var C=null;if(l!==void 0)C=l;else if(g)C=O.createElement(m.a,{spin:!0});else{var w="".concat(y,"-suffix");C=function(L){var D=L.open,N=L.showSearch;return D&&N?O.createElement(s.a,{className:w}):O.createElement(v.a,{className:w})}}var b=null;h!==void 0?b=h:A?b=O.createElement(c.a,null):b=null;var I=null;return p!==void 0?I=p:I=O.createElement(r.a,null),{clearIcon:E,suffixIcon:C,itemIcon:b,removeIcon:I}}},"1xaR":function(U,P,d){var O=d("ProS"),x=d("bYtY");d("qgGe"),d("NA0q"),d("RPvy");var T=d("mOdp"),v=d("y3NT"),S=d("0/Rx");O.registerVisual(x.curry(T,"sunburst")),O.registerLayout(x.curry(v,"sunburst")),O.registerProcessor(x.curry(S,"sunburst"))},"24YM":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.SensorTabIndex=P.SensorClassName=P.SizeSensorId=void 0;var O="size-sensor-id";P.SizeSensorId=O;var x="size-sensor-object";P.SensorClassName=x;var T="-1";P.SensorTabIndex=T},"2548":function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("6GrX"),v=d("IUWy"),S=d("IwbS"),m=d("Qxkt"),f=d("gPAo"),c=d("eRkO"),o=O.extendComponentView({type:"toolbox",render:function(a,n,e,s){var t=this.group;if(t.removeAll(),!a.get("show"))return;var i=+a.get("itemSize"),l=a.get("feature")||{},u=this._features||(this._features={}),h=[];x.each(l,function(A,y){h.push(y)}),new f(this._featureNames||[],h).add(p).update(p).remove(x.curry(p,null)).execute(),this._featureNames=h;function p(A,y){var E=h[A],C=h[y],w=l[E],b=new m(w,a,a.ecModel),I;if(s&&s.newTitle!=null&&s.featureName===E&&(w.title=s.newTitle),E&&!C){if(r(E))I={model:b,onclick:b.option.onclick,featureName:E};else{var _=v.get(E);if(!_)return;I=new _(b,n,e)}u[E]=I}else{if(I=u[C],!I)return;I.model=b,I.ecModel=n,I.api=e}if(!E&&C){I.dispose&&I.dispose(n,e);return}if(!b.get("show")||I.unusable){I.remove&&I.remove(n,e);return}g(b,I,E),b.setIconStatus=function(L,D){var N=this.option,R=this.iconPaths;N.iconStatus=N.iconStatus||{},N.iconStatus[L]=D,R[L]&&R[L].trigger(D)},I.render&&I.render(b,n,e,s)}function g(A,y,E){var C=A.getModel("iconStyle"),w=A.getModel("emphasis.iconStyle"),b=y.getIcons?y.getIcons():A.get("icon"),I=A.get("title")||{};if(typeof b=="string"){var _=b,L=I;b={},I={},b[E]=_,I[E]=L}var D=A.iconPaths={};x.each(b,function(N,R){var B=S.createIcon(N,{},{x:-i/2,y:-i/2,width:i,height:i});B.setStyle(C.getItemStyle()),B.hoverStyle=w.getItemStyle(),B.setStyle({text:I[R],textAlign:w.get("textAlign"),textBorderRadius:w.get("textBorderRadius"),textPadding:w.get("textPadding"),textFill:null});var M=a.getModel("tooltip");M&&M.get("show")&&B.attr("tooltip",x.extend({content:I[R],formatter:M.get("formatter",!0)||function(){return I[R]},formatterParams:{componentType:"toolbox",name:R,title:I[R],$vars:["name","title"]},position:M.get("position",!0)||"bottom"},M.option)),S.setHoverStyle(B),a.get("showTitle")&&(B.__title=I[R],B.on("mouseover",function(){var H=w.getItemStyle(),F=a.get("orient")==="vertical"?a.get("right")==null?"right":"left":a.get("bottom")==null?"bottom":"top";B.setStyle({textFill:w.get("textFill")||H.fill||H.stroke||"#000",textBackgroundColor:w.get("textBackgroundColor"),textPosition:w.get("textPosition")||F})}).on("mouseout",function(){B.setStyle({textFill:null,textBackgroundColor:null})})),B.trigger(A.get("iconStatus."+R)||"normal"),t.add(B),B.on("click",x.bind(y.onclick,y,n,e,R)),D[R]=B})}c.layout(t,a,e),t.add(c.makeBackground(t.getBoundingRect(),a)),t.eachChild(function(A){var y=A.__title,E=A.hoverStyle;if(E&&y){var C=T.getBoundingRect(y,T.makeFont(E)),w=A.position[0]+t.position[0],b=A.position[1]+t.position[1]+i,I=!1;b+C.height>e.getHeight()&&(E.textPosition="top",I=!0);var _=I?-5-C.height:i+8;w+C.width/2>e.getWidth()?(E.textPosition=["100%",_],E.textAlign="right"):w-C.width/2<0&&(E.textPosition=[0,_],E.textAlign="left")}})},updateView:function(a,n,e,s){x.each(this._features,function(t){t.updateView&&t.updateView(t.model,n,e,s)})},remove:function(a,n){x.each(this._features,function(e){e.remove&&e.remove(a,n)}),this.group.removeAll()},dispose:function(a,n){x.each(this._features,function(e){e.dispose&&e.dispose(a,n)})}});function r(a){return a.indexOf("my")===0}U.exports=o},"2B6p":function(U,P){function d(O,x,T){var v=O.getZoom(),S=O.getCenter(),m=x.zoom,f=O.dataToPoint(S);if(x.dx!=null&&x.dy!=null){f[0]-=x.dx,f[1]-=x.dy;var S=O.pointToData(f);O.setCenter(S)}if(m!=null){if(T){var c=T.min||0,o=T.max||Infinity;m=Math.max(Math.min(v*m,o),c)/v}O.scale[0]*=m,O.scale[1]*=m;var r=O.position,a=(x.originX-r[0])*(m-1),n=(x.originY-r[1])*(m-1);r[0]-=a,r[1]-=n,O.updateTransform();var S=O.pointToData(f);O.setCenter(S),O.setZoom(m*v)}return{center:O.getCenter(),zoom:O.getZoom()}}P.updateCenterAndZoom=d},"2BaD":function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="CloseCircleOutlined";var f=P.a=x.forwardRef(m)},"2DNl":function(U,P,d){var O=d("IMiH"),x=d("loD1"),T=d("59Ip"),v=d("aKvl"),S=d("n1HI"),m=d("hX1E"),f=m.normalizeRadian,c=d("Sj9i"),o=d("hyiK"),r=O.CMD,a=Math.PI*2,n=1e-4;function e(y,E){return Math.abs(y-E)<n}var s=[-1,-1,-1],t=[-1,-1];function i(){var y=t[0];t[0]=t[1],t[1]=y}function l(y,E,C,w,b,I,_,L,D,N){if(N>E&&N>w&&N>I&&N>L||N<E&&N<w&&N<I&&N<L)return 0;var R=c.cubicRootAt(E,w,I,L,N,s);if(R===0)return 0;for(var B=0,M=-1,H,F,K=0;K<R;K++){var j=s[K],V=j===0||j===1?.5:1,z=c.cubicAt(y,C,b,_,j);if(z<D)continue;M<0&&(M=c.cubicExtrema(E,w,I,L,t),t[1]<t[0]&&M>1&&i(),H=c.cubicAt(E,w,I,L,t[0]),M>1&&(F=c.cubicAt(E,w,I,L,t[1]))),M===2?j<t[0]?B+=H<E?V:-V:j<t[1]?B+=F<H?V:-V:B+=L<F?V:-V:j<t[0]?B+=H<E?V:-V:B+=L<H?V:-V}return B}function u(y,E,C,w,b,I,_,L){if(L>E&&L>w&&L>I||L<E&&L<w&&L<I)return 0;var D=c.quadraticRootAt(E,w,I,L,s);if(D===0)return 0;var N=c.quadraticExtremum(E,w,I);if(N>=0&&N<=1){for(var R=0,B=c.quadraticAt(E,w,I,N),M=0;M<D;M++){var H=s[M]===0||s[M]===1?.5:1,F=c.quadraticAt(y,C,b,s[M]);if(F<_)continue;s[M]<N?R+=B<E?H:-H:R+=I<B?H:-H}return R}else{var H=s[0]===0||s[0]===1?.5:1,F=c.quadraticAt(y,C,b,s[0]);return F<_?0:I<E?H:-H}}function h(y,E,C,w,b,I,_,L){if(L-=E,L>C||L<-C)return 0;var D=Math.sqrt(C*C-L*L);s[0]=-D,s[1]=D;var N=Math.abs(w-b);if(N<1e-4)return 0;if(N%a<1e-4){w=0,b=a;var R=I?1:-1;return _>=s[0]+y&&_<=s[1]+y?R:0}if(I){var D=w;w=f(b),b=f(D)}else w=f(w),b=f(b);w>b&&(b+=a);for(var B=0,M=0;M<2;M++){var H=s[M];if(H+y>_){var F=Math.atan2(L,H),R=I?1:-1;F<0&&(F=a+F),(F>=w&&F<=b||F+a>=w&&F+a<=b)&&(F>Math.PI/2&&F<Math.PI*1.5&&(R=-R),B+=R)}}return B}function p(y,E,C,w,b){for(var I=0,_=0,L=0,D=0,N=0,R=0;R<y.length;){var B=y[R++];B===r.M&&R>1&&(C||(I+=o(_,L,D,N,w,b))),R===1&&(_=y[R],L=y[R+1],D=_,N=L);switch(B){case r.M:D=y[R++],N=y[R++],_=D,L=N;break;case r.L:if(C){if(x.containStroke(_,L,y[R],y[R+1],E,w,b))return!0}else I+=o(_,L,y[R],y[R+1],w,b)||0;_=y[R++],L=y[R++];break;case r.C:if(C){if(T.containStroke(_,L,y[R++],y[R++],y[R++],y[R++],y[R],y[R+1],E,w,b))return!0}else I+=l(_,L,y[R++],y[R++],y[R++],y[R++],y[R],y[R+1],w,b)||0;_=y[R++],L=y[R++];break;case r.Q:if(C){if(v.containStroke(_,L,y[R++],y[R++],y[R],y[R+1],E,w,b))return!0}else I+=u(_,L,y[R++],y[R++],y[R],y[R+1],w,b)||0;_=y[R++],L=y[R++];break;case r.A:var M=y[R++],H=y[R++],F=y[R++],K=y[R++],j=y[R++],V=y[R++];R+=1;var z=1-y[R++],Y=Math.cos(j)*F+M,ee=Math.sin(j)*K+H;R>1?I+=o(_,L,Y,ee,w,b):(D=Y,N=ee);var fe=(w-M)*K/F+M;if(C){if(S.containStroke(M,H,K,j,j+V,z,E,fe,b))return!0}else I+=h(M,H,K,j,j+V,z,fe,b);_=Math.cos(j+V)*F+M,L=Math.sin(j+V)*K+H;break;case r.R:D=_=y[R++],N=L=y[R++];var ie=y[R++],we=y[R++],Y=D+ie,ee=N+we;if(C){if(x.containStroke(D,N,Y,N,E,w,b)||x.containStroke(Y,N,Y,ee,E,w,b)||x.containStroke(Y,ee,D,ee,E,w,b)||x.containStroke(D,ee,D,N,E,w,b))return!0}else I+=o(Y,N,Y,ee,w,b),I+=o(D,ee,D,N,w,b);break;case r.Z:if(C){if(x.containStroke(_,L,D,N,E,w,b))return!0}else I+=o(_,L,D,N,w,b);_=D,L=N;break}}return!C&&!e(L,N)&&(I+=o(_,L,D,N,w,b)||0),I!==0}function g(y,E,C){return p(y,0,!1,E,C)}function A(y,E,C,w){return p(y,E,!0,C,w)}P.contain=g,P.containStroke=A},"2dDv":function(U,P,d){var O=d("bYtY"),x=d("Fofx"),T=d("+TT/"),v=d("aX7z"),S=d("D1WM"),m=d("IwbS"),f=d("OELB"),c=d("72pK"),o=O.each,r=Math.min,a=Math.max,n=Math.floor,e=Math.ceil,s=f.round,t=Math.PI;function i(g,A,y){this._axesMap=O.createHashMap(),this._axesLayout={},this.dimensions=g.dimensions,this._rect,this._model=g,this._init(g,A,y)}i.prototype={type:"parallel",constructor:i,_init:function(g,A,y){var E=g.dimensions,C=g.parallelAxisIndex;o(E,function(w,b){var I=C[b],_=A.getComponent("parallelAxis",I),L=this._axesMap.set(w,new S(w,v.createScaleByModel(_),[0,0],_.get("type"),I)),D=L.type==="category";L.onBand=D&&_.get("boundaryGap"),L.inverse=_.get("inverse"),_.axis=L,L.model=_,L.coordinateSystem=_.coordinateSystem=this},this)},update:function(g,A){this._updateAxesFromSeries(this._model,g)},containPoint:function(g){var A=this._makeLayoutInfo(),y=A.axisBase,E=A.layoutBase,C=A.pixelDimIndex,w=g[1-C],b=g[C];return w>=y&&w<=y+A.axisLength&&b>=E&&b<=E+A.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(g,A){A.eachSeries(function(y){if(!g.contains(y,A))return;var E=y.getData();o(this.dimensions,function(C){var w=this._axesMap.get(C);w.scale.unionExtentFromData(E,E.mapDimension(C)),v.niceScaleExtent(w.scale,w.model)},this)},this)},resize:function(g,A){this._rect=T.getLayoutRect(g.getBoxLayoutParams(),{width:A.getWidth(),height:A.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var g=this._model,A=this._rect,y=["x","y"],E=["width","height"],C=g.get("layout"),w=C==="horizontal"?0:1,b=A[E[w]],I=[0,b],_=this.dimensions.length,L=l(g.get("axisExpandWidth"),I),D=l(g.get("axisExpandCount")||0,[0,_]),N=g.get("axisExpandable")&&_>3&&_>D&&D>1&&L>0&&b>0,R=g.get("axisExpandWindow"),B;if(R)B=l(R[1]-R[0],I),R[1]=R[0]+B;else{B=l(L*(D-1),I);var M=g.get("axisExpandCenter")||n(_/2);R=[L*M-B/2],R[1]=R[0]+B}var H=(b-B)/(_-D);H<3&&(H=0);var F=[n(s(R[0]/L,1))+1,e(s(R[1]/L,1))-1],K=H/L*R[0];return{layout:C,pixelDimIndex:w,layoutBase:A[y[w]],layoutLength:b,axisBase:A[y[1-w]],axisLength:A[E[1-w]],axisExpandable:N,axisExpandWidth:L,axisCollapseWidth:H,axisExpandWindow:R,axisCount:_,winInnerIndices:F,axisExpandWindow0Pos:K}},_layoutAxes:function(){var g=this._rect,A=this._axesMap,y=this.dimensions,E=this._makeLayoutInfo(),C=E.layout;A.each(function(w){var b=[0,E.axisLength],I=w.inverse?1:0;w.setExtent(b[I],b[1-I])}),o(y,function(w,b){var I=(E.axisExpandable?h:u)(b,E),_={horizontal:{x:I.position,y:E.axisLength},vertical:{x:0,y:I.position}},L={horizontal:t/2,vertical:0},D=[_[C].x+g.x,_[C].y+g.y],N=L[C],R=x.create();x.rotate(R,R,N),x.translate(R,R,D),this._axesLayout[w]={position:D,rotation:N,transform:R,axisNameAvailableWidth:I.axisNameAvailableWidth,axisLabelShow:I.axisLabelShow,nameTruncateMaxWidth:I.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(g){return this._axesMap.get(g)},dataToPoint:function(g,A){return this.axisCoordToPoint(this._axesMap.get(A).dataToCoord(g),A)},eachActiveState:function(g,A,y,E){y==null&&(y=0),E==null&&(E=g.count());var C=this._axesMap,w=this.dimensions,b=[],I=[];O.each(w,function(H){b.push(g.mapDimension(H)),I.push(C.get(H).model)});for(var _=this.hasAxisBrushed(),L=y;L<E;L++){var D;if(!_)D="normal";else{D="active";for(var N=g.getValues(b,L),R=0,B=w.length;R<B;R++){var M=I[R].getActiveState(N[R]);if(M==="inactive"){D="inactive";break}}}A(D,L)}},hasAxisBrushed:function(){for(var g=this.dimensions,A=this._axesMap,y=!1,E=0,C=g.length;E<C;E++)A.get(g[E]).model.getActiveState()!=="normal"&&(y=!0);return y},axisCoordToPoint:function(g,A){var y=this._axesLayout[A];return m.applyTransform([g,0],y.transform)},getAxisLayout:function(g){return O.clone(this._axesLayout[g])},getSlidedAxisExpandWindow:function(g){var A=this._makeLayoutInfo(),y=A.pixelDimIndex,E=A.axisExpandWindow.slice(),C=E[1]-E[0],w=[0,A.axisExpandWidth*(A.axisCount-1)];if(!this.containPoint(g))return{behavior:"none",axisExpandWindow:E};var b=g[y]-A.layoutBase-A.axisExpandWindow0Pos,I,_="slide",L=A.axisCollapseWidth,D=this._model.get("axisExpandSlideTriggerArea"),N=D[0]!=null;if(L)N&&L&&b<C*D[0]?(_="jump",I=b-C*D[2]):N&&L&&b>C*(1-D[0])?(_="jump",I=b-C*(1-D[2])):(I=b-C*D[1])>=0&&(I=b-C*(1-D[1]))<=0&&(I=0),I*=A.axisExpandWidth/L,I?c(I,E,w,"all"):_="none";else{var C=E[1]-E[0],R=w[1]*b/C;E=[a(0,R-C/2)],E[1]=r(w[1],E[0]+C),E[0]=E[1]-C}return{axisExpandWindow:E,behavior:_}}};function l(g,A){return r(a(g,A[0]),A[1])}function u(g,A){var y=A.layoutLength/(A.axisCount-1);return{position:y*g,axisNameAvailableWidth:y,axisLabelShow:!0}}function h(g,A){var y=A.layoutLength,E=A.axisExpandWidth,C=A.axisCount,w=A.axisCollapseWidth,b=A.winInnerIndices,I,_=w,L=!1,D;return g<b[0]?(I=g*w,D=w):g<=b[1]?(I=A.axisExpandWindow0Pos+g*E-A.axisExpandWindow[0],_=E,L=!0):(I=y-(C-1-g)*w,D=w),{position:I,axisNameAvailableWidth:_,axisLabelShow:L,nameTruncateMaxWidth:D}}var p=i;U.exports=p},"2fGM":function(U,P,d){var O=d("bYtY"),x=d("bLfw"),T=d("nkfE"),v=d("ICMv"),S=x.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});O.merge(S.prototype,v);var m={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function f(c,o){return o.type||(o.data?"category":"value")}T("angle",S,f,m.angle),T("radius",S,f,m.radius)},"2fM7":function(U,P,d){"use strict";var O=d("lSNA"),x=d.n(O),T=d("pVnL"),v=d.n(T),S=d("lwsE"),m=d.n(S),f=d("W8MJ"),c=d.n(f),o=d("7W2i"),r=d.n(o),a=d("LQ03"),n=d.n(a),e=d("q1tI"),s=d("BGR+"),t=d("TSYQ"),i=d.n(t),l=d("1OyB"),u=d("vuIU"),h=d("Ji7U"),p=d("LK+K"),g=d("rePB"),A=d("Ff2n"),y=d("ODXe"),E=d("4IlW"),C=d("bX4T"),w=d("YrtM"),b=d("+nKL"),I=function(ue){var Ee=ue.className,je=ue.customizeIcon,Ve=ue.customizeIconProps,$e=ue.onMouseDown,wt=ue.onClick,qt=ue.children,Mr;return typeof je=="function"?Mr=je(Ve):Mr=je,e.createElement("span",{className:Ee,onMouseDown:function(_t){_t.preventDefault(),$e&&$e(_t)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:wt,"aria-hidden":!0},Mr!==void 0?Mr:e.createElement("span",{className:i()(Ee.split(/\s+/).map(function(an){return"".concat(an,"-icon")}))},qt))},_=I,L=function(ue,Ee){var je=ue.prefixCls,Ve=ue.id,$e=ue.flattenOptions,wt=ue.childrenAsData,qt=ue.values,Mr=ue.searchValue,an=ue.multiple,_t=ue.defaultActiveFirstOption,at=ue.height,bt=ue.itemHeight,kt=ue.notFoundContent,Pt=ue.open,Et=ue.menuItemSelectedIcon,Ht=ue.virtual,ot=ue.onSelect,Mt=ue.onToggleOpen,xr=ue.onActiveValue,ur=ue.onScroll,gr=ue.onMouseEnter,Qr="".concat(je,"-item"),ln=Object(w.a)(function(){return $e},[Pt,$e],function(Xe,qe){return qe[0]&&Xe[1]!==qe[1]}),_n=e.useRef(null),Mn=function(qe){qe.preventDefault()},li=function(qe){_n.current&&_n.current.scrollTo({index:qe})},ai=function(qe){for(var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ht=ln.length,Jt=0;Jt<ht;Jt+=1){var kr=(qe+Jt*yt+ht)%ht,_r=ln[kr],Xr=_r.group,Bt=_r.data;if(!Xr&&!Bt.disabled)return kr}return-1},pi=e.useState(function(){return ai(0)}),Oi=Object(y.a)(pi,2),Ze=Oi[0],be=Oi[1],Ne=function(qe){be(qe);var yt=ln[qe];if(!yt){xr(null,-1);return}xr(yt.data.value,qe)};e.useEffect(function(){Ne(_t!==!1?ai(0):-1)},[ln.length,Mr]),e.useEffect(function(){var Xe=setTimeout(function(){if(!an&&Pt&&qt.size===1){var qe=Array.from(qt)[0],yt=ln.findIndex(function(ht){var Jt=ht.data;return Jt.value===qe});Ne(yt),li(yt)}});return function(){return clearTimeout(Xe)}},[Pt]);var Ue=function(qe){qe!==void 0&&ot(qe,{selected:!qt.has(qe)}),an||Mt(!1)};if(e.useImperativeHandle(Ee,function(){return{onKeyDown:function(qe){var yt=qe.which;switch(yt){case E.a.UP:case E.a.DOWN:{var ht=0;if(yt===E.a.UP?ht=-1:yt===E.a.DOWN&&(ht=1),ht!==0){var Jt=ai(Ze+ht,ht);li(Jt),Ne(Jt)}break}case E.a.ENTER:{var kr=ln[Ze];kr&&!kr.data.disabled?Ue(kr.data.value):Ue(void 0),Pt&&qe.preventDefault();break}case E.a.ESC:Mt(!1)}},onKeyUp:function(){},scrollTo:function(qe){li(qe)}}}),ln.length===0)return e.createElement("div",{role:"listbox",id:"".concat(Ve,"_list"),className:"".concat(Qr,"-empty"),onMouseDown:Mn},kt);function Qe(Xe){var qe=ln[Xe];if(!qe)return null;var yt=qe.data||{},ht=yt.value,Jt=yt.label,kr=yt.children,_r=Object(C.a)(yt,!0),Xr=wt?kr:Jt;return qe?e.createElement("div",Object.assign({"aria-label":typeof Xr=="string"?Xr:null},_r,{key:Xe,role:"option",id:"".concat(Ve,"_list_").concat(Xe),"aria-selected":qt.has(ht)}),ht):null}return e.createElement(e.Fragment,null,e.createElement("div",{role:"listbox",id:"".concat(Ve,"_list"),style:{height:0,width:0,overflow:"hidden"}},Qe(Ze-1),Qe(Ze),Qe(Ze+1)),e.createElement(b.a,{itemKey:"key",ref:_n,data:ln,height:at,itemHeight:bt,fullHeight:!1,onMouseDown:Mn,onScroll:ur,virtual:Ht,onMouseEnter:gr},function(Xe,qe){var yt,ht=Xe.group,Jt=Xe.groupOption,kr=Xe.data,_r=kr.label,Xr=kr.key;if(ht)return e.createElement("div",{className:i()(Qr,"".concat(Qr,"-group"))},_r!==void 0?_r:Xr);var Bt=kr.disabled,gn=kr.value,hr=kr.title,vn=kr.children,en=kr.style,Dt=kr.className,jr=Object(A.a)(kr,["disabled","value","title","children","style","className"]),un=qt.has(gn),Hr="".concat(Qr,"-option"),Wt=i()(Qr,Hr,Dt,(yt={},Object(g.a)(yt,"".concat(Hr,"-grouped"),Jt),Object(g.a)(yt,"".concat(Hr,"-active"),Ze===qe&&!Bt),Object(g.a)(yt,"".concat(Hr,"-disabled"),Bt),Object(g.a)(yt,"".concat(Hr,"-selected"),un),yt)),wr=wt?vn:_r,fn=!Et||typeof Et=="function"||un;return e.createElement("div",Object.assign({},jr,{"aria-selected":un,className:Wt,title:hr,onMouseMove:function(){if(Ze===qe||Bt)return;Ne(qe)},onClick:function(){Bt||Ue(gn)},style:en}),e.createElement("div",{className:"".concat(Hr,"-content")},wr||gn),e.isValidElement(Et)||un,fn&&e.createElement(_,{className:"".concat(Qr,"-option-state"),customizeIcon:Et,customizeIconProps:{isSelected:un}},un?"\u2713":null))}))},D=e.forwardRef(L);D.displayName="OptionList";var N=D,R=function(){return null};R.isSelectOption=!0;var B=R,M=function(){return null};M.isSelectOptGroup=!0;var H=M,F=d("VTBJ"),K=d("Zm9Q");function j(st){var ue=st.key,Ee=st.props,je=Ee.children,Ve=Ee.value,$e=Object(A.a)(Ee,["children","value"]);return Object(F.a)({key:ue,value:Ve!==void 0?Ve:ue,children:je},$e)}function V(st){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(K.a)(st).map(function(Ee,je){if(!e.isValidElement(Ee)||!Ee.type)return null;var Ve=Ee.type.isSelectOptGroup,$e=Ee.key,wt=Ee.props,qt=wt.children,Mr=Object(A.a)(wt,["children"]);return ue||!Ve?j(Ee):Object(F.a)(Object(F.a)({key:"__RC_SELECT_GRP__".concat($e===null?je:$e,"__"),label:$e},Mr),{},{options:V(qt)})}).filter(function(Ee){return Ee})}var z=d("KQm4"),Y=d("T5bk"),ee=d("U8pU"),fe=d("Kwbf");function ie(st){return Array.isArray(st)?st:st!==void 0?[st]:[]}function we(st,ue){var Ee=ue.labelInValue,je=ue.combobox;if(st===void 0||st===""&&je)return[];var Ve=Array.isArray(st)?st:[st];return Ee?Ve.map(function($e){var wt=$e.key,qt=$e.value;return qt!==void 0?qt:wt}):Ve}function Ce(st,ue){var Ee=ue.optionLabelProp,je=ue.labelInValue,Ve=ue.prevValue,$e=ue.options,wt=ue.getLabeledValue,qt=st;return je&&(qt=qt.map(function(Mr){return wt(Mr,{options:$e,prevValue:Ve,labelInValue:je,optionLabelProp:Ee})})),qt}function Le(st,ue){var Ee=Object(z.a)(ue),je;for(je=st.length-1;je>=0&&st[je].disabled;je-=1);var Ve=null;return je!==-1&&(Ve=Ee[je],Ee.splice(je,1)),{values:Ee,removedValue:Ve}}var He=typeof window!="undefined"&&window.document&&window.document.documentElement,ce=He,Pe=0;function Q(){var st;return ce?(st=Pe,Pe+=1):st="TEST_OR_SSR",st}function me(st,ue){var Ee=st.key,je;return"value"in st&&(je=st.value),Ee!=null?Ee:je!==void 0?je:"rc-index-key-".concat(ue)}function Je(st){var ue=[];function Ee(je,Ve){je.forEach(function($e){Ve||!("options"in $e)?ue.push({key:me($e,ue.length),groupOption:Ve,data:$e}):(ue.push({key:me($e,ue.length),group:!0,data:$e}),Ee($e.options,!0))})}return Ee(st,!1),ue}function re(st){var ue=Object(F.a)({},st);return"props"in ue||Object.defineProperty(ue,"props",{get:function(){return Object(fe.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ue}}),ue}function G(st,ue){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},je=Ee.prevValueOptions,Ve=je===void 0?[]:je,$e=new Map;return ue.forEach(function(wt){if(!wt.group){var qt=wt.data;$e.set(qt.value,qt)}}),st.map(function(wt){var qt=$e.get(wt);return qt||(qt=Object(F.a)({},Ve.find(function(Mr){return Mr._INTERNAL_OPTION_VALUE_===wt}))),re(qt)})}var X=function(ue,Ee){var je=Ee.options,Ve=Ee.prevValue,$e=Ee.labelInValue,wt=Ee.optionLabelProp,qt=G([ue],je)[0],Mr={value:ue},an,_t=ie(Ve);return $e&&(an=_t.find(function(at){return Object(ee.a)(at)==="object"&&"value"in at?at.value===ue:at.key===ue})),an&&Object(ee.a)(an)==="object"&&"label"in an?(Mr.label=an.label,qt&&typeof an.label=="string"&&typeof qt[wt]=="string"&&an.label.trim()!==qt[wt].trim()&&Object(fe.a)(!1,"`label` of `value` is not same as `label` in Select options.")):qt&&wt in qt?Mr.label=qt[wt]:Mr.label=ue,Mr.key=Mr.value,Mr};function J(st){return ie(st).join("")}function Ae(st){return function(ue,Ee){var je=ue.toLowerCase();if("options"in Ee)return J(Ee.label).toLowerCase().includes(je);var Ve=Ee[st],$e=J(Ve).toLowerCase();return $e.includes(je)}}function he(st,ue,Ee){var je=Ee.optionFilterProp,Ve=Ee.filterOption,$e=[],wt;return Ve===!1?ue:(typeof Ve=="function"?wt=Ve:wt=Ae(je),ue.forEach(function(qt){if("options"in qt){var Mr=wt(st,qt);if(Mr)$e.push(qt);else{var an=qt.options.filter(function(_t){return wt(st,_t)});an.length&&$e.push(Object(F.a)(Object(F.a)({},qt),{},{options:an}))}return}wt(st,re(qt))&&$e.push(qt)}),$e)}function Me(st,ue){if(!ue||!ue.length)return null;var Ee=!1;function je($e,wt){var qt=Object(Y.a)(wt),Mr=qt[0],an=qt.slice(1);if(!Mr)return[$e];var _t=$e.split(Mr);return Ee=Ee||_t.length>1,_t.reduce(function(at,bt){return[].concat(Object(z.a)(at),Object(z.a)(je(bt,an)))},[]).filter(function(at){return at})}var Ve=je(st,ue);return Ee?Ve:null}function Ie(st,ue){var Ee=G([st],ue)[0];return Ee.disabled}function oe(st,ue,Ee,je){var Ve=ie(ue).slice().sort(),$e=Object(z.a)(st),wt=new Set;return st.forEach(function(qt){qt.options?qt.options.forEach(function(Mr){wt.add(Mr.value)}):wt.add(qt.value)}),Ve.forEach(function(qt){var Mr=je?qt.value:qt;if(!wt.has(Mr)){var an;$e.push(je?(an={},Object(g.a)(an,Ee,qt.label),Object(g.a)(an,"value",Mr),an):{value:Mr})}}),$e}var pe=d("6cGi"),Oe=d("HTfv"),Ye=d("c+Xe"),it=function(ue,Ee){var je=ue.prefixCls,Ve=ue.id,$e=ue.inputElement,wt=ue.disabled,qt=ue.tabIndex,Mr=ue.autoFocus,an=ue.autoComplete,_t=ue.editable,at=ue.accessibilityIndex,bt=ue.value,kt=ue.onKeyDown,Pt=ue.onMouseDown,Et=ue.onChange,Ht=ue.onPaste,ot=ue.onCompositionStart,Mt=ue.onCompositionEnd,xr=ue.open,ur=ue.attrs,gr=$e||e.createElement("input",null),Qr=gr,ln=Qr.ref,_n=Qr.props,Mn=_n.onKeyDown,li=_n.onChange,ai=_n.onMouseDown,pi=_n.onCompositionStart,Oi=_n.onCompositionEnd,Ze=_n.style;return gr=e.cloneElement(gr,Object(F.a)(Object(F.a)({id:Ve,ref:Object(Ye.a)(Ee,ln),disabled:wt,tabIndex:qt,autoComplete:an||"off",autoFocus:Mr,className:"".concat(je,"-selection-search-input"),style:Object(F.a)(Object(F.a)({},Ze),{},{opacity:_t?null:0}),role:"combobox","aria-expanded":xr,"aria-haspopup":"listbox","aria-owns":"".concat(Ve,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ve,"_list"),"aria-activedescendant":"".concat(Ve,"_list_").concat(at)},ur),{},{value:_t?bt:"",readOnly:!_t,unselectable:_t?null:"on",onKeyDown:function(Ne){kt(Ne),Mn&&Mn(Ne)},onMouseDown:function(Ne){Pt(Ne),ai&&ai(Ne)},onChange:function(Ne){Et(Ne),li&&li(Ne)},onCompositionStart:function(Ne){ot(Ne),pi&&pi(Ne)},onCompositionEnd:function(Ne){Mt(Ne),Oi&&Oi(Ne)},onPaste:Ht})),gr},et=e.forwardRef(it);et.displayName="Input";var Te=et;function tt(st,ue){ce?e.useLayoutEffect(st,ue):e.useEffect(st,ue)}var ze="__RC_SELECT_MAX_REST_COUNT__",dt=function(ue){var Ee=ue.id,je=ue.prefixCls,Ve=ue.values,$e=ue.open,wt=ue.searchValue,qt=ue.inputRef,Mr=ue.placeholder,an=ue.disabled,_t=ue.mode,at=ue.showSearch,bt=ue.autoFocus,kt=ue.autoComplete,Pt=ue.accessibilityIndex,Et=ue.tabIndex,Ht=ue.removeIcon,ot=ue.choiceTransitionName,Mt=ue.maxTagCount,xr=ue.maxTagTextLength,ur=ue.maxTagPlaceholder,gr=ur===void 0?function(gn){return"+ ".concat(gn.length," ...")}:ur,Qr=ue.tagRender,ln=ue.onSelect,_n=ue.onInputChange,Mn=ue.onInputPaste,li=ue.onInputKeyDown,ai=ue.onInputMouseDown,pi=ue.onInputCompositionStart,Oi=ue.onInputCompositionEnd,Ze=e.useState(!1),be=Object(y.a)(Ze,2),Ne=be[0],Ue=be[1],Qe=e.useRef(null),Xe=e.useState(0),qe=Object(y.a)(Xe,2),yt=qe[0],ht=qe[1];e.useEffect(function(){Ue(!0)},[]);var Jt=$e||_t==="tags"?wt:"",kr=_t==="tags"||$e&&at;tt(function(){ht(Qe.current.scrollWidth)},[Jt]);var _r=Ve,Xr;typeof Mt=="number"&&(Xr=Ve.length-Mt,_r=Ve.slice(0,Mt)),typeof xr=="number"&&(_r=_r.map(function(gn){var hr=gn.label,vn=Object(A.a)(gn,["label"]),en=hr;if(typeof hr=="string"||typeof hr=="number"){var Dt=String(en);Dt.length>xr&&(en="".concat(Dt.slice(0,xr),"..."))}return Object(F.a)(Object(F.a)({},vn),{},{label:en})})),Xr>0&&_r.push({key:ze,label:typeof gr=="function"?gr(Ve.slice(Mt)):gr});var Bt=e.createElement(Oe.CSSMotionList,{component:!1,keys:_r,motionName:ot,motionAppear:Ne},function(gn){var hr=gn.key,vn=gn.label,en=gn.value,Dt=gn.disabled,jr=gn.className,un=gn.style,Hr=hr||en,Wt=hr!==ze&&!Dt,wr=function(Dr){Dr.preventDefault(),Dr.stopPropagation()},fn=function(Dr){Dr&&Dr.stopPropagation(),ln(en,{selected:!1})};return typeof Qr=="function"?e.createElement("span",{key:Hr,onMouseDown:wr,className:jr,style:un},Qr({label:vn,value:en,disabled:Dt,closable:Wt,onClose:fn})):e.createElement("span",{key:Hr,className:i()(jr,"".concat(je,"-selection-item"),Object(g.a)({},"".concat(je,"-selection-item-disabled"),Dt)),style:un},e.createElement("span",{className:"".concat(je,"-selection-item-content")},vn),Wt&&e.createElement(_,{className:"".concat(je,"-selection-item-remove"),onMouseDown:wr,onClick:fn,customizeIcon:Ht},"\xD7"))});return e.createElement(e.Fragment,null,Bt,e.createElement("span",{className:"".concat(je,"-selection-search"),style:{width:yt}},e.createElement(Te,{ref:qt,open:$e,prefixCls:je,id:Ee,inputElement:null,disabled:an,autoFocus:bt,autoComplete:kt,editable:kr,accessibilityIndex:Pt,value:Jt,onKeyDown:li,onMouseDown:ai,onChange:_n,onPaste:Mn,onCompositionStart:pi,onCompositionEnd:Oi,tabIndex:Et,attrs:Object(C.a)(ue,!0)}),e.createElement("span",{ref:Qe,className:"".concat(je,"-selection-search-mirror"),"aria-hidden":!0},Jt,"\xA0")),!Ve.length&&!Jt&&e.createElement("span",{className:"".concat(je,"-selection-placeholder")},Mr))},Ot=dt,Tt=function(ue){var Ee=ue.inputElement,je=ue.prefixCls,Ve=ue.id,$e=ue.inputRef,wt=ue.disabled,qt=ue.autoFocus,Mr=ue.autoComplete,an=ue.accessibilityIndex,_t=ue.mode,at=ue.open,bt=ue.values,kt=ue.placeholder,Pt=ue.tabIndex,Et=ue.showSearch,Ht=ue.searchValue,ot=ue.activeValue,Mt=ue.onInputKeyDown,xr=ue.onInputMouseDown,ur=ue.onInputChange,gr=ue.onInputPaste,Qr=ue.onInputCompositionStart,ln=ue.onInputCompositionEnd,_n=e.useState(!1),Mn=Object(y.a)(_n,2),li=Mn[0],ai=Mn[1],pi=_t==="combobox",Oi=pi||Et&&at,Ze=bt[0],be=Ht||"";pi&&ot&&!li&&(be=ot),e.useEffect(function(){pi&&ai(!1)},[pi,ot]);var Ne=_t!=="combobox"&&!at?!1:!!be,Ue=Ze&&(typeof Ze.label=="string"||typeof Ze.label=="number")?Ze.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(je,"-selection-search")},e.createElement(Te,{ref:$e,prefixCls:je,id:Ve,open:at,inputElement:Ee,disabled:wt,autoFocus:qt,autoComplete:Mr,editable:Oi,accessibilityIndex:an,value:be,onKeyDown:Mt,onMouseDown:xr,onChange:function(Xe){ai(!0),ur(Xe)},onPaste:gr,onCompositionStart:Qr,onCompositionEnd:ln,tabIndex:Pt,attrs:Object(C.a)(ue,!0)})),!pi&&Ze&&!Ne&&e.createElement("span",{className:"".concat(je,"-selection-item"),title:Ue},Ze.label),!Ze&&!Ne&&e.createElement("span",{className:"".concat(je,"-selection-placeholder")},kt))},Ct=Tt;function Nt(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ue=e.useRef(null),Ee=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(Ee.current)}},[]);function je(Ve){(Ve||ue.current===null)&&(ue.current=Ve),window.clearTimeout(Ee.current),Ee.current=window.setTimeout(function(){ue.current=null},st)}return[function(){return ue.current},je]}var Be=function(ue,Ee){var je=Object(e.useRef)(null),Ve=Object(e.useRef)(!1),$e=ue.prefixCls,wt=ue.multiple,qt=ue.open,Mr=ue.mode,an=ue.showSearch,_t=ue.tokenWithEnter,at=ue.onSearch,bt=ue.onSearchSubmit,kt=ue.onToggleOpen,Pt=ue.onInputKeyDown,Et=ue.domRef;e.useImperativeHandle(Ee,function(){return{focus:function(){je.current.focus()},blur:function(){je.current.blur()}}});var Ht=Nt(0),ot=Object(y.a)(Ht,2),Mt=ot[0],xr=ot[1],ur=function(Ne){var Ue=Ne.which;(Ue===E.a.UP||Ue===E.a.DOWN)&&Ne.preventDefault(),Pt&&Pt(Ne),Ue===E.a.ENTER&&Mr==="tags"&&!Ve.current&&!qt&&bt(Ne.target.value),[E.a.SHIFT,E.a.TAB,E.a.BACKSPACE,E.a.ESC].includes(Ue)||kt(!0)},gr=function(){xr(!0)},Qr=Object(e.useRef)(null),ln=function(Ne){at(Ne,!0,Ve.current)!==!1&&kt(!0)},_n=function(){Ve.current=!0},Mn=function(){Ve.current=!1},li=function(Ne){var Ue=Ne.target.value;if(_t&&Qr.current&&/[\r\n]/.test(Qr.current)){var Qe=Qr.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ue=Ue.replace(Qe,Qr.current)}Qr.current=null,ln(Ue)},ai=function(Ne){var Ue=Ne.clipboardData,Qe=Ue.getData("text");Qr.current=Qe},pi=function(Ne){var Ue=Mt();if(Ne.target!==je.current){Ue||Ne.preventDefault();var Qe=document.body.style.msTouchAction!==void 0;Qe?setTimeout(function(){je.current.focus()}):je.current.focus()}(Mr!=="combobox"&&(!an||!Ue)||!qt)&&(qt&&at("",!0,!1),kt())},Oi={inputRef:je,onInputKeyDown:ur,onInputMouseDown:gr,onInputChange:li,onInputPaste:ai,onInputCompositionStart:_n,onInputCompositionEnd:Mn},Ze=wt?e.createElement(Ot,Object.assign({},ue,Oi)):e.createElement(Ct,Object.assign({},ue,Oi));return e.createElement("div",{ref:Et,className:"".concat($e,"-selector"),onMouseDown:pi},Ze)},$=e.forwardRef(Be);$.displayName="Selector";var Z=$,Re=d("Uaa1"),De=function(ue){var Ee=typeof ue!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Ee,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Ee,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Ee,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Ee,adjustY:1}}}},ae=function(ue,Ee){var je=ue.prefixCls,Ve=ue.disabled,$e=ue.visible,wt=ue.children,qt=ue.popupElement,Mr=ue.containerWidth,an=ue.animation,_t=ue.transitionName,at=ue.dropdownStyle,bt=ue.dropdownClassName,kt=ue.direction,Pt=kt===void 0?"ltr":kt,Et=ue.dropdownMatchSelectWidth,Ht=Et===void 0?!0:Et,ot=ue.dropdownRender,Mt=ue.dropdownAlign,xr=ue.getPopupContainer,ur=ue.empty,gr=ue.getTriggerDOMNode,Qr=Object(A.a)(ue,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),ln="".concat(je,"-dropdown"),_n=qt;ot&&(_n=ot(qt));var Mn=e.useMemo(function(){return De(Ht)},[Ht]),li=an?"".concat(ln,"-").concat(an):_t,ai=e.useRef(null);e.useImperativeHandle(Ee,function(){return{getPopupElement:function(){return ai.current}}});var pi=Object(F.a)({minWidth:Mr},at);return typeof Ht=="number"?pi.width=Ht:Ht&&(pi.width=Mr),e.createElement(Re.a,Object.assign({},Qr,{showAction:[],hideAction:[],popupPlacement:Pt==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:Mn,prefixCls:ln,popupTransitionName:li,popup:e.createElement("div",{ref:ai},_n),popupAlign:Mt,popupVisible:$e,getPopupContainer:xr,popupClassName:i()(bt,Object(g.a)({},"".concat(ln,"-empty"),ur)),popupStyle:pi,getTriggerDOMNode:gr}),wt)},gt=e.forwardRef(ae);gt.displayName="SelectTrigger";var jt=gt,ut="RC_SELECT_INTERNAL_PROPS_MARK";function rr(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ue=e.useState(!1),Ee=Object(y.a)(ue,2),je=Ee[0],Ve=Ee[1],$e=e.useRef(null),wt=function(){window.clearTimeout($e.current)};e.useEffect(function(){return wt},[]);var qt=function(an,_t){wt(),$e.current=window.setTimeout(function(){Ve(an),_t&&_t()},st)};return[je,qt,wt]}function pr(st,ue,Ee){var je=e.useRef(null);je.current={elements:st.filter(function(Ve){return Ve}),open:ue,triggerOpen:Ee},e.useEffect(function(){function Ve($e){var wt=$e.target;je.current.open&&je.current.elements.every(function(qt){return!qt.contains(wt)&&qt!==wt})&&je.current.triggerOpen(!1)}return window.addEventListener("mousedown",Ve),function(){return window.removeEventListener("mousedown",Ve)}},[])}function nn(st){var ue=e.useRef(st),Ee=e.useMemo(function(){var je=new Map;ue.current.forEach(function($e){var wt=$e.value,qt=$e.label;wt!==qt&&je.set(wt,qt)});var Ve=st.map(function($e){var wt=je.get($e.value);return $e.value===$e.label&&wt?Object(F.a)(Object(F.a)({},$e),{},{label:wt}):$e});return ue.current=Ve,Ve},[st]);return Ee}function mr(st,ue){var Ee=e.useRef(null),je=e.useMemo(function(){var $e=new Map;return ue.forEach(function(wt){var qt=wt.data.value;$e.set(qt,wt)}),$e},[st,ue]);Ee.current=je;var Ve=function(wt){return wt.map(function(qt){return Ee.current.get(qt)}).filter(Boolean)};return Ve}var vr=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function $t(st){var ue=st.prefixCls,Ee=st.components.optionList,je=st.convertChildrenToData,Ve=st.flattenOptions,$e=st.getLabeledValue,wt=st.filterOptions,qt=st.isValueDisabled,Mr=st.findValueOption,an=st.warningProps,_t=st.fillOptionsWithMissingValue,at=st.omitDOMProps;function bt(Pt,Et){var Ht,ot=Pt.prefixCls,Mt=ot===void 0?ue:ot,xr=Pt.className,ur=Pt.id,gr=Pt.open,Qr=Pt.defaultOpen,ln=Pt.options,_n=Pt.children,Mn=Pt.mode,li=Pt.value,ai=Pt.defaultValue,pi=Pt.labelInValue,Oi=Pt.showSearch,Ze=Pt.inputValue,be=Pt.searchValue,Ne=Pt.filterOption,Ue=Pt.optionFilterProp,Qe=Ue===void 0?"value":Ue,Xe=Pt.autoClearSearchValue,qe=Xe===void 0?!0:Xe,yt=Pt.onSearch,ht=Pt.allowClear,Jt=Pt.clearIcon,kr=Pt.showArrow,_r=Pt.inputIcon,Xr=Pt.menuItemSelectedIcon,Bt=Pt.disabled,gn=Pt.loading,hr=Pt.defaultActiveFirstOption,vn=Pt.notFoundContent,en=vn===void 0?"Not Found":vn,Dt=Pt.optionLabelProp,jr=Pt.backfill,un=Pt.getInputElement,Hr=Pt.getPopupContainer,Wt=Pt.listHeight,wr=Wt===void 0?200:Wt,fn=Pt.listItemHeight,zt=fn===void 0?20:fn,Dr=Pt.animation,ir=Pt.transitionName,Lt=Pt.virtual,Qt=Pt.dropdownStyle,It=Pt.dropdownClassName,or=Pt.dropdownMatchSelectWidth,Cr=Pt.dropdownRender,Er=Pt.dropdownAlign,Kr=Pt.showAction,jn=Kr===void 0?[]:Kr,Nn=Pt.direction,ei=Pt.tokenSeparators,Zr=Pt.tagRender,br=Pt.onPopupScroll,dn=Pt.onDropdownVisibleChange,Ln=Pt.onFocus,Fn=Pt.onBlur,zn=Pt.onKeyUp,ui=Pt.onKeyDown,ii=Pt.onMouseDown,qn=Pt.onChange,Li=Pt.onSelect,zi=Pt.onDeselect,Ri=Pt.onClear,ga=Pt.internalProps,oi=ga===void 0?{}:ga,hn=Object(A.a)(Pt,["prefixCls","className","id","open","defaultOpen","options","children","mode","value","defaultValue","labelInValue","showSearch","inputValue","searchValue","filterOption","optionFilterProp","autoClearSearchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","menuItemSelectedIcon","disabled","loading","defaultActiveFirstOption","notFoundContent","optionLabelProp","backfill","getInputElement","getPopupContainer","listHeight","listItemHeight","animation","transitionName","virtual","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown","onChange","onSelect","onDeselect","onClear","internalProps"]),Ei=oi.mark===ut,Hi=at?at(hn):hn;vr.forEach(function(Wi){delete Hi[Wi]});var ki=Object(e.useRef)(null),ji=Object(e.useRef)(null),dr=Object(e.useRef)(null),sr=Object(e.useRef)(null),cn=Object(e.useMemo)(function(){return(ei||[]).some(function(Wi){return[`
|
|
|
`,`\r
|
|
|
`].includes(Wi)})},[ei]),Zt=rr(),Ar=Object(y.a)(Zt,3),Nr=Ar[0],tn=Ar[1],pn=Ar[2],St=Object(e.useState)(),cr=Object(y.a)(St,2),fr=cr[0],Br=cr[1];Object(e.useEffect)(function(){Br("rc_select_".concat(Q()))},[]);var $r=ur||fr,wn=Dt;wn===void 0&&(wn=ln?"label":"children");var rn=Mn==="combobox"?!1:pi,On=Mn==="tags"||Mn==="multiple",In=Oi!==void 0?Oi:On||Mn==="combobox",Gn=Object(e.useRef)(null);e.useImperativeHandle(Et,function(){return{focus:dr.current.focus,blur:dr.current.blur}});var fi=Object(pe.a)(ai,{value:li}),Yn=Object(y.a)(fi,2),gi=Yn[0],vi=Yn[1],Di=Object(e.useMemo)(function(){return we(gi,{labelInValue:rn,combobox:Mn==="combobox"})},[gi,rn]),Mi=Object(e.useMemo)(function(){return new Set(Di)},[Di]),xi=Object(e.useState)(null),bi=Object(y.a)(xi,2),Ci=bi[0],$i=bi[1],qi=Object(e.useState)(""),Ti=Object(y.a)(qi,2),ia=Ti[0],na=Ti[1],Ui=ia;Mn==="combobox"&&gi!==void 0?Ui=gi:be!==void 0?Ui=be:Ze&&(Ui=Ze);var Ki=Object(e.useMemo)(function(){var Wi=ln;return Wi===void 0&&(Wi=je(_n)),Mn==="tags"&&_t&&(Wi=_t(Wi,gi,wn,pi)),Wi||[]},[ln,_n,Mn,gi]),ra=Object(e.useMemo)(function(){return Ve(Ki,Pt)},[Ki]),ea=mr(Di,ra),va=Object(e.useMemo)(function(){if(!Ui||!In)return Object(z.a)(Ki);var Wi=wt(Ui,Ki,{optionFilterProp:Qe,filterOption:Mn==="combobox"&&Ne===void 0?function(){return!0}:Ne});return Mn==="tags"&&Wi.every(function(Gi){return Gi[Qe]!==Ui})&&Wi.unshift({value:Ui,label:Ui,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),Wi},[Ki,Ui,Mn,In]),sa=Object(e.useMemo)(function(){return Ve(va,Pt)},[va]);Object(e.useEffect)(function(){sr.current&&sr.current.scrollTo&&sr.current.scrollTo(0)},[Ui]);var Pa=Object(e.useMemo)(function(){var Wi=Di.map(function(Gi){var ca=ea([Gi]),ya=$e(Gi,{options:ca,prevValue:gi,labelInValue:rn,optionLabelProp:wn});return Object(F.a)(Object(F.a)({},ya),{},{disabled:qt(Gi,ca)})});return!Mn&&Wi.length===1&&Wi[0].value===null&&Wi[0].label===null?[]:Wi},[gi,Ki,Mn]);Pa=nn(Pa);var ka=function(Gi,ca,ya){var Xa=ea([Gi]),_a=Mr([Gi],Xa)[0];if(!oi.skipTriggerSelect){var qa=rn?$e(Gi,{options:Xa,prevValue:gi,labelInValue:rn,optionLabelProp:wn}):Gi;ca&&Li?Li(qa,_a):!ca&&zi&&zi(qa,_a)}Ei&&(ca&&oi.onRawSelect?oi.onRawSelect(Gi,_a,ya):!ca&&oi.onRawDeselect&&oi.onRawDeselect(Gi,_a,ya))},Ia=Object(e.useState)([]),Ea=Object(y.a)(Ia,2),So=Ea[0],Ga=Ea[1],Va=function(Gi){if(Ei&&oi.skipTriggerChange)return;var ca=ea(Gi),ya=Ce(Array.from(Gi),{labelInValue:rn,options:ca,getLabeledValue:$e,prevValue:gi,optionLabelProp:wn}),Xa=On?ya:ya[0];if(qn&&(Di.length!==0||ya.length!==0)){var _a=Mr(Gi,ca,{prevValueOptions:So});Ga(_a.map(function(qa,ro){var Uo=Object(F.a)({},qa);return Object.defineProperty(Uo,"_INTERNAL_OPTION_VALUE_",{get:function(){return Gi[ro]}}),Uo})),qn(Xa,On?_a:_a[0])}vi(Xa)},Ra=function(Gi,ca){var ya=ca.selected,Xa=ca.source;if(Bt)return;var _a;On?(_a=new Set(Di),ya?_a.add(Gi):_a.delete(Gi)):(_a=new Set,_a.add(Gi)),(On||!On&&Array.from(Di)[0]!==Gi)&&Va(Array.from(_a)),ka(Gi,!On||ya,Xa),Mn==="combobox"?(na(String(Gi)),$i("")):(!On||qe)&&(na(""),$i(""))},po=function(Gi,ca){Ra(Gi,Object(F.a)(Object(F.a)({},ca),{},{source:"option"}))},mo=function(Gi,ca){Ra(Gi,Object(F.a)(Object(F.a)({},ca),{},{source:"selection"}))},Aa=Mn==="combobox"&&un&&un()||null,Io=Object(pe.a)(void 0,{defaultValue:Qr,value:gr}),go=Object(y.a)(Io,2),Qa=go[0],wo=go[1],pa=Qa,to=!en&&!va.length;(Bt||to&&pa&&Mn==="combobox")&&(pa=!1);var ao=to?!1:pa,Bo=function(Gi){var ca=Gi!==void 0?Gi:!pa;Qa!==ca&&!Bt&&(wo(ca),dn&&dn(ca))};pr([ki.current,ji.current&&ji.current.getPopupElement()],ao,Bo);var Ja=function(Gi,ca,ya){var Xa=!0,_a=Gi;$i(null);var qa=ya?null:Me(Gi,ei),ro=qa;if(Mn==="combobox")ca&&Va([_a]);else if(qa){_a="",Mn!=="tags"&&(ro=qa.map(function(zo){var hs=ra.find(function(Po){var Mo=Po.data;return Mo[wn]===zo});return hs?hs.data.value:null}).filter(function(zo){return zo!==null}));var Uo=Array.from(new Set([].concat(Object(z.a)(Di),Object(z.a)(ro))));Va(Uo),Uo.forEach(function(zo){ka(zo,!0,"input")}),Bo(!1),Xa=!1}return na(_a),yt&&Ui!==_a&&yt(_a),Xa},_o=function(Gi){var ca=Array.from(new Set([].concat(Object(z.a)(Di),[Gi])));Va(ca),ca.forEach(function(ya){ka(ya,!0,"input")}),na("")};Object(e.useEffect)(function(){Qa&&!!Bt&&wo(!1)},[Bt]),Object(e.useEffect)(function(){!pa&&!On&&Mn!=="combobox"&&Ja("",!1,!1)},[pa]);var Ao=Nt(),za=Object(y.a)(Ao,2),ja=za[0],da=za[1],rt=function(Gi){var ca=ja(),ya=Gi.which;if(!pa&&ya===E.a.ENTER&&Bo(!0),da(!!Ui),ya===E.a.BACKSPACE&&!ca&&On&&!Ui&&Di.length){var Xa=Le(Pa,Di);Xa.removedValue!==null&&(Va(Xa.values),ka(Xa.removedValue,!1,"input"))}for(var _a=arguments.length,qa=new Array(_a>1?_a-1:0),ro=1;ro<_a;ro++)qa[ro-1]=arguments[ro];if(pa&&sr.current){var Uo;(Uo=sr.current).onKeyDown.apply(Uo,[Gi].concat(qa))}ui&&ui.apply(void 0,[Gi].concat(qa))},ar=function(Gi){for(var ca=arguments.length,ya=new Array(ca>1?ca-1:0),Xa=1;Xa<ca;Xa++)ya[Xa-1]=arguments[Xa];if(pa&&sr.current){var _a;(_a=sr.current).onKeyUp.apply(_a,[Gi].concat(ya))}zn&&zn.apply(void 0,[Gi].concat(ya))},Fr=Object(e.useRef)(!1),Ir=function(){tn(!0),Bt||(Ln&&!Fr.current&&Ln.apply(void 0,arguments),jn.includes("focus")&&Bo(!0)),Fr.current=!0},En=function(){if(tn(!1,function(){Fr.current=!1,Bo(!1)}),Bt)return;Ui&&(Mn==="tags"?(Ja("",!1,!1),Va(Array.from(new Set([].concat(Object(z.a)(Di),[Ui]))))):Mn==="multiple"&&na("")),Fn&&Fn.apply(void 0,arguments)},zr=[];Object(e.useEffect)(function(){return function(){zr.forEach(function(Wi){return clearTimeout(Wi)}),zr.splice(0,zr.length)}},[]);var yr=function(Gi){var ca=Gi.target,ya=ji.current&&ji.current.getPopupElement();if(ya&&ya.contains(ca)){var Xa=setTimeout(function(){var Uo=zr.indexOf(Xa);Uo!==-1&&zr.splice(Uo,1),pn(),ya.contains(document.activeElement)||dr.current.focus()});zr.push(Xa)}if(ii){for(var _a=arguments.length,qa=new Array(_a>1?_a-1:0),ro=1;ro<_a;ro++)qa[ro-1]=arguments[ro];ii.apply(void 0,[Gi].concat(qa))}},Cn=Object(e.useState)(0),Pr=Object(y.a)(Cn,2),xn=Pr[0],Qn=Pr[1],$n=hr!==void 0?hr:Mn!=="combobox",Kn=function(Gi,ca){Qn(ca),jr&&Mn==="combobox"&&Gi!==null&&$i(String(Gi))},si=Object(e.useState)(null),Xn=Object(y.a)(si,2),ti=Xn[0],di=Xn[1],Bi=Object(e.useState)({}),yi=Object(y.a)(Bi,2),Xi=yi[1];function ba(){Xi({})}tt(function(){if(ao){var Wi=Math.ceil(ki.current.offsetWidth);ti!==Wi&&di(Wi)}},[ao]);var ta=e.createElement(Ee,{ref:sr,prefixCls:Mt,id:$r,open:pa,childrenAsData:!ln,options:va,flattenOptions:sa,multiple:On,values:Mi,height:wr,itemHeight:zt,onSelect:po,onToggleOpen:Bo,onActiveValue:Kn,defaultActiveFirstOption:$n,notFoundContent:en,onScroll:br,searchValue:Ui,menuItemSelectedIcon:Xr,virtual:Lt!==!1&&or!==!1,onMouseEnter:ba}),Qi,aa=function(){Ei&&oi.onClear&&oi.onClear(),Ri&&Ri(),Va([]),Ja("",!1,!1)};!Bt&&ht&&(Di.length||Ui)&&(Qi=e.createElement(_,{className:"".concat(Mt,"-clear"),onMouseDown:aa,customizeIcon:Jt},"\xD7"));var fa=kr!==void 0?kr:gn||!On&&Mn!=="combobox",xo;fa&&(xo=e.createElement(_,{className:i()("".concat(Mt,"-arrow"),Object(g.a)({},"".concat(Mt,"-arrow-loading"),gn)),customizeIcon:_r,customizeIconProps:{loading:gn,searchValue:Ui,open:pa,focused:Nr,showSearch:In}}));var Za=i()(Mt,xr,(Ht={},Object(g.a)(Ht,"".concat(Mt,"-focused"),Nr),Object(g.a)(Ht,"".concat(Mt,"-multiple"),On),Object(g.a)(Ht,"".concat(Mt,"-single"),!On),Object(g.a)(Ht,"".concat(Mt,"-allow-clear"),ht),Object(g.a)(Ht,"".concat(Mt,"-show-arrow"),fa),Object(g.a)(Ht,"".concat(Mt,"-disabled"),Bt),Object(g.a)(Ht,"".concat(Mt,"-loading"),gn),Object(g.a)(Ht,"".concat(Mt,"-open"),pa),Object(g.a)(Ht,"".concat(Mt,"-customize-input"),Aa),Object(g.a)(Ht,"".concat(Mt,"-show-search"),In),Ht));return e.createElement("div",Object.assign({className:Za},Hi,{ref:ki,onMouseDown:yr,onKeyDown:rt,onKeyUp:ar,onFocus:Ir,onBlur:En}),Nr&&!pa&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Di.join(", "))),e.createElement(jt,{ref:ji,disabled:Bt,prefixCls:Mt,visible:ao,popupElement:ta,containerWidth:ti,animation:Dr,transitionName:ir,dropdownStyle:Qt,dropdownClassName:It,direction:Nn,dropdownMatchSelectWidth:or,dropdownRender:Cr,dropdownAlign:Er,getPopupContainer:Hr,empty:!Ki.length,getTriggerDOMNode:function(){return Gn.current}},e.createElement(Z,Object.assign({},Pt,{domRef:Gn,prefixCls:Mt,inputElement:Aa,ref:dr,id:$r,showSearch:In,mode:Mn,accessibilityIndex:xn,multiple:On,tagRender:Zr,values:Pa,open:pa,onToggleOpen:Bo,searchValue:Ui,activeValue:Ci,onSearch:Ja,onSearchSubmit:_o,onSelect:mo,tokenWithEnter:cn}))),xo,Qi)}var kt=e.forwardRef(bt);return kt}function Xt(st){var ue=st.mode,Ee=st.options,je=st.children,Ve=st.backfill,$e=st.allowClear,wt=st.placeholder,qt=st.getInputElement,Mr=st.showSearch,an=st.onSearch,_t=st.defaultOpen,at=st.autoFocus,bt=st.labelInValue,kt=st.value,Pt=st.inputValue,Et=st.optionLabelProp,Ht=ue==="multiple"||ue==="tags",ot=Mr!==void 0?Mr:Ht||ue==="combobox",Mt=Ee||V(je);if(Object(fe.a)(ue!=="tags"||Mt.every(function(Qr){return!Qr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ue==="tags"||ue==="combobox"){var xr=Mt.some(function(Qr){return Qr.options?Qr.options.some(function(ln){return typeof("value"in ln?ln.value:ln.key)=="number"}):typeof("value"in Qr?Qr.value:Qr.key)=="number"});Object(fe.a)(!xr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(fe.a)(ue!=="combobox"||!Et,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(fe.a)(ue==="combobox"||!Ve,"`backfill` only works with `combobox` mode."),Object(fe.a)(ue==="combobox"||!qt,"`getInputElement` only work with `combobox` mode."),Object(fe.b)(ue!=="combobox"||!qt||!$e||!wt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),an&&!ot&&ue!=="combobox"&&ue!=="tags"&&Object(fe.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(fe.b)(!_t||at,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),kt!=null){var ur=ie(kt);Object(fe.a)(!bt||ur.every(function(Qr){return Object(ee.a)(Qr)==="object"&&("key"in Qr||"value"in Qr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(fe.a)(!Ht||Array.isArray(kt),"`value` should be array when `mode` is `multiple` or `tags`")}if(je){var gr=null;Object(K.a)(je).some(function(Qr){if(!e.isValidElement(Qr)||!Qr.type)return!1;var ln=Qr.type;if(ln.isSelectOption)return!1;if(ln.isSelectOptGroup){var _n=Object(K.a)(Qr.props.children).every(function(Mn){return!e.isValidElement(Mn)||!Qr.type||Mn.type.isSelectOption?!0:(gr=Mn.type,!1)});return!_n}return gr=ln,!0}),gr&&Object(fe.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(gr.displayName||gr.name||gr,"`.")),Object(fe.a)(Pt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var ft=Xt,Ur=$t({prefixCls:"rc-select",components:{optionList:N},convertChildrenToData:V,flattenOptions:Je,getLabeledValue:X,filterOptions:he,isValueDisabled:Ie,findValueOption:G,warningProps:ft,fillOptionsWithMissingValue:oe}),yn=function(st){Object(h.a)(Ee,st);var ue=Object(p.a)(Ee);function Ee(){var je;return Object(l.a)(this,Ee),je=ue.apply(this,arguments),je.selectRef=e.createRef(),je.focus=function(){je.selectRef.current.focus()},je.blur=function(){je.selectRef.current.blur()},je}return Object(u.a)(Ee,[{key:"render",value:function(){return e.createElement(Ur,Object.assign({ref:this.selectRef},this.props))}}]),Ee}(e.Component);yn.Option=B,yn.OptGroup=H;var Dn=yn,Un=Dn,wi=d("H84U"),Rn=d("1vzs"),kn=d("3Nzz"),Vn=function(st){r()(Ee,st);var ue=n()(Ee);function Ee(){var je;return m()(this,Ee),je=ue.apply(this,arguments),je.selectRef=e.createRef(),je.focus=function(){je.selectRef.current&&je.selectRef.current.focus()},je.blur=function(){je.selectRef.current&&je.selectRef.current.blur()},je.getMode=function(){var Ve=je.props.mode;return Ve==="combobox"?void 0:Ve===Ee.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":Ve},je.renderSelect=function(Ve){var $e=Ve.getPopupContainer,wt=Ve.getPrefixCls,qt=Ve.renderEmpty,Mr=Ve.direction,an=Ve.virtual,_t=Ve.dropdownMatchSelectWidth,at=je.props,bt=at.prefixCls,kt=at.notFoundContent,Pt=at.className,Et=at.size,Ht=at.listHeight,ot=Ht===void 0?256:Ht,Mt=at.listItemHeight,xr=Mt===void 0?24:Mt,ur=at.getPopupContainer,gr=at.dropdownClassName,Qr=at.bordered,ln=wt("select",bt),_n=je.getMode(),Mn=_n==="multiple"||_n==="tags",li;kt!==void 0?li=kt:_n==="combobox"?li=null:li=qt("Select");var ai=Object(Rn.a)(v()(v()({},je.props),{multiple:Mn,prefixCls:ln})),pi=ai.suffixIcon,Oi=ai.itemIcon,Ze=ai.removeIcon,be=ai.clearIcon,Ne=Object(s.default)(je.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),Ue=i()(gr,x()({},"".concat(ln,"-dropdown-").concat(Mr),Mr==="rtl"));return e.createElement(kn.b.Consumer,null,function(Qe){var Xe,qe=Et||Qe,yt=i()(Pt,(Xe={},x()(Xe,"".concat(ln,"-lg"),qe==="large"),x()(Xe,"".concat(ln,"-sm"),qe==="small"),x()(Xe,"".concat(ln,"-rtl"),Mr==="rtl"),x()(Xe,"".concat(ln,"-borderless"),!Qr),Xe));return e.createElement(Un,v()({ref:je.selectRef,virtual:an,dropdownMatchSelectWidth:_t},Ne,{listHeight:ot,listItemHeight:xr,mode:_n,prefixCls:ln,direction:Mr,inputIcon:pi,menuItemSelectedIcon:Oi,removeIcon:Ze,clearIcon:be,notFoundContent:li,className:yt,getPopupContainer:ur||$e,dropdownClassName:Ue}))})},je}return c()(Ee,[{key:"render",value:function(){return e.createElement(wi.a,null,this.renderSelect)}}]),Ee}(e.Component);Vn.Option=B,Vn.OptGroup=H,Vn.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",Vn.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var Gt=P.a=Vn},"2fw6":function(U,P,d){var O=d("y+Vt"),x=O.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(v,S,m){m&&v.moveTo(S.cx+S.r,S.cy),v.arc(S.cx,S.cy,S.r,0,Math.PI*2,!0)}});U.exports=x},"2jpz":function(U,P,d){"use strict";d.d(P,"a",function(){return u});var O=d("cDf5"),x=d.n(O),T=d("q1tI"),v=d.n(T),S=d("TSYQ"),m=d.n(S),f=d("gZBC"),c=d.n(f),o=d("vk+C"),r=d.n(o),a=d("pG52"),n=d.n(a),e=d("Csr3"),s=d.n(e),t=d("e5VY"),i=d.n(t),l=d("0n0R");function u(h,p,g,A){var y=A.isLeaf,E=A.expanded,C=A.loading;if(C)return T.createElement(c.a,{className:"".concat(h,"-switcher-loading-icon")});var w;if(g&&x()(g)==="object"&&(w=g.showLeafIcon),y)return g?x()(g)==="object"&&!w?T.createElement("span",{className:"".concat(h,"-switcher-leaf-line")}):T.createElement(r.a,{className:"".concat(h,"-switcher-line-icon")}):null;var b="".concat(h,"-switcher-icon");return Object(l.b)(p)?Object(l.a)(p,{className:m()(p.props.className||"",b)}):p||(g?E?T.createElement(n.a,{className:"".concat(h,"-switcher-line-icon")}):T.createElement(s.a,{className:"".concat(h,"-switcher-line-icon")}):T.createElement(i.a,{className:b}))}},"2oIt":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};P.default=O},"2uGb":function(U,P,d){var O=d("ProS");d("ko1b"),d("s2lz"),d("RBEP");var x=d("kMLO"),T=d("nKiI");O.registerVisual(x),O.registerLayout(T)},"2w7y":function(U,P,d){var O=d("ProS");d("qMZE"),d("g0SD"),O.registerPreprocessor(function(x){x.markPoint=x.markPoint||{}})},"33Ds":function(U,P,d){var O=d("ProS"),x=d("b9oc"),T=d("Kagy"),v=d("IUWy"),S=T.toolbox.restore;function m(o){this.model=o}m.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:S.title};var f=m.prototype;f.onclick=function(o,r,a){x.clear(o),r.dispatchAction({type:"restore",from:this.uid})},v.register("restore",m),O.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(o,r){r.resetOption("recreate")});var c=m;U.exports=c},"34/K":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;function O(S,m){if(!(S instanceof m))throw new TypeError("Cannot call a class as a function")}function x(S,m){for(var f=0;f<m.length;f++){var c=m[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(S,c.key,c)}}function T(S,m,f){return m&&x(S.prototype,m),f&&x(S,f),S}var v=function(){function S(){O(this,S),this._lines=0}return T(S,[{key:"decodeRect",value:function(f,c,o,r,a,n,e){this._lines===0&&(this._lines=r);var s=e==8?1:4,t=o*s;if(a.rQwait("RAW",t))return!1;var i=c+(r-this._lines),l=Math.min(this._lines,Math.floor(a.rQlen/t)),u=a.rQ,h=a.rQi;if(e==8){for(var p=o*l,g=new Uint8Array(p*4),A=0;A<p;A++)g[A*4+0]=(u[h+A]>>0&3)*255/3,g[A*4+1]=(u[h+A]>>2&3)*255/3,g[A*4+2]=(u[h+A]>>4&3)*255/3,g[A*4+4]=0;u=g,h=0}return n.blitImage(f,i,o,l,u,h),a.rQskipBytes(l*t),this._lines-=l,!(this._lines>0)}}]),S}();P.default=v},"3690":function(U,P,d){"use strict";function O(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(a){return typeof a}:O=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},O(o)}Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var x=v(d("Lo0S"));function T(){if(typeof WeakMap!="function")return null;var o=new WeakMap;return T=function(){return o},o}function v(o){if(o&&o.__esModule)return o;if(o===null||O(o)!=="object"&&typeof o!="function")return{default:o};var r=T();if(r&&r.has(o))return r.get(o);var a={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in o)if(Object.prototype.hasOwnProperty.call(o,e)){var s=n?Object.getOwnPropertyDescriptor(o,e):null;s&&(s.get||s.set)?Object.defineProperty(a,e,s):a[e]=o[e]}return a.default=o,r&&r.set(o,a),a}function S(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function m(o,r){for(var a=0;a<r.length;a++){var n=r[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}function f(o,r,a){return r&&m(o.prototype,r),a&&m(o,a),o}var c=function(){function o(){S(this,o),this._tiles=0,this._lastsubencoding=0}return f(o,[{key:"decodeRect",value:function(a,n,e,s,t,i,l){for(this._tiles===0&&(this._tilesX=Math.ceil(e/16),this._tilesY=Math.ceil(s/16),this._totalTiles=this._tilesX*this._tilesY,this._tiles=this._totalTiles);this._tiles>0;){var u=1;if(t.rQwait("HEXTILE",u))return!1;var h=t.rQ,p=t.rQi,g=h[p];if(g>30)throw new Error("Illegal hextile subencoding (subencoding: "+g+")");var A=this._totalTiles-this._tiles,y=A%this._tilesX,E=Math.floor(A/this._tilesX),C=a+y*16,w=n+E*16,b=Math.min(16,a+e-C),I=Math.min(16,n+s-w);if(g&1)u+=b*I*4;else if(g&2&&(u+=4),g&4&&(u+=4),g&8){if(u++,t.rQwait("HEXTILE",u))return!1;var _=h[p+u-1];g&16?u+=_*(4+2):u+=_*2}if(t.rQwait("HEXTILE",u))return!1;if(p++,g===0)this._lastsubencoding&1?x.Debug(" Ignoring blank after RAW"):i.fillRect(C,w,b,I,this._background);else if(g&1)i.blitImage(C,w,b,I,h,p),p+=u-1;else{if(g&2&&(this._background=[h[p],h[p+1],h[p+2],h[p+3]],p+=4),g&4&&(this._foreground=[h[p],h[p+1],h[p+2],h[p+3]],p+=4),i.startTile(C,w,b,I,this._background),g&8){var L=h[p];p++;for(var D=0;D<L;D++){var N=void 0;g&16?(N=[h[p],h[p+1],h[p+2],h[p+3]],p+=4):N=this._foreground;var R=h[p];p++;var B=R>>4,M=R&15,H=h[p];p++;var F=(H>>4)+1,K=(H&15)+1;i.subTile(B,M,F,K,N)}}i.finishTile()}t.rQi=p,this._lastsubencoding=g,this._tiles--}return!0}}]),o}();P.default=c},"3C/r":function(U,P){var d=function(T,v){this.image=T,this.repeat=v,this.type="pattern"};d.prototype.getCanvasPattern=function(x){return x.createPattern(this.image,this.repeat||"repeat")};var O=d;U.exports=O},"3CBa":function(U,P,d){var O=d("hydK"),x=O.createElement,T=d("bYtY"),v=d("SUKs"),S=d("y+Vt"),m=d("Dagg"),f=d("dqUG"),c=d("DBLp"),o=d("sW+o"),r=d("n6Mw"),a=d("vKoX"),n=d("P47w"),e=n.path,s=n.image,t=n.text;function i(b){return parseInt(b,10)}function l(b){return b instanceof S?e:b instanceof m?s:b instanceof f?t:e}function u(b,I){return I&&b&&I.parentNode!==b}function h(b,I,_){if(u(b,I)&&_){var L=_.nextSibling;L?b.insertBefore(I,L):b.appendChild(I)}}function p(b,I){if(u(b,I)){var _=b.firstChild;_?b.insertBefore(I,_):b.appendChild(I)}}function g(b,I){I&&b&&I.parentNode===b&&b.removeChild(I)}function A(b){return b.__textSvgEl}function y(b){return b.__svgEl}var E=function(I,_,L,D){this.root=I,this.storage=_,this._opts=L=T.extend({},L||{});var N=x("svg");N.setAttribute("xmlns","http://www.w3.org/2000/svg"),N.setAttribute("version","1.1"),N.setAttribute("baseProfile","full"),N.style.cssText="user-select:none;position:absolute;left:0;top:0;";var R=x("g");N.appendChild(R);var B=x("g");N.appendChild(B),this.gradientManager=new o(D,B),this.clipPathManager=new r(D,B),this.shadowManager=new a(D,B);var M=document.createElement("div");M.style.cssText="overflow:hidden;position:relative",this._svgDom=N,this._svgRoot=B,this._backgroundRoot=R,this._viewport=M,I.appendChild(M),M.appendChild(N),this.resize(L.width,L.height),this._visibleList=[]};E.prototype={constructor:E,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var I=this.getViewportRoot();if(I)return{offsetLeft:I.offsetLeft||0,offsetTop:I.offsetTop||0}},refresh:function(){var I=this.storage.getDisplayList(!0);this._paintList(I)},setBackgroundColor:function(I){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var _=x("rect");_.setAttribute("width",this.getWidth()),_.setAttribute("height",this.getHeight()),_.setAttribute("x",0),_.setAttribute("y",0),_.setAttribute("id",0),_.style.fill=I,this._backgroundRoot.appendChild(_),this._backgroundNode=_},_paintList:function(I){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var _=this._svgRoot,L=this._visibleList,D=I.length,N=[],R;for(R=0;R<D;R++){var B=I[R],M=l(B),H=y(B)||A(B);B.invisible||(B.__dirty&&(M&&M.brush(B),this.clipPathManager.update(B),B.style&&(this.gradientManager.update(B.style.fill),this.gradientManager.update(B.style.stroke),this.shadowManager.update(H,B)),B.__dirty=!1),N.push(B))}var F=c(L,N),K;for(R=0;R<F.length;R++){var j=F[R];if(j.removed)for(var V=0;V<j.count;V++){var B=L[j.indices[V]],H=y(B),z=A(B);g(_,H),g(_,z)}}for(R=0;R<F.length;R++){var j=F[R];if(j.added)for(var V=0;V<j.count;V++){var B=N[j.indices[V]],H=y(B),z=A(B);K?h(_,H,K):p(_,H),H?h(_,z,H):K?h(_,z,K):p(_,z),h(_,z,H),K=z||H||K,this.gradientManager.addWithoutUpdate(H||z,B),this.shadowManager.addWithoutUpdate(H||z,B),this.clipPathManager.markUsed(B)}else if(!j.removed)for(var V=0;V<j.count;V++){var B=N[j.indices[V]],H=y(B),z=A(B),H=y(B),z=A(B);this.gradientManager.markUsed(B),this.gradientManager.addWithoutUpdate(H||z,B),this.shadowManager.markUsed(B),this.shadowManager.addWithoutUpdate(H||z,B),this.clipPathManager.markUsed(B),z&&h(_,z,H),K=H||z||K}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=N},_getDefs:function(I){var _=this._svgDom,L=_.getElementsByTagName("defs");if(L.length===0)if(I){var L=_.insertBefore(x("defs"),_.firstChild);return L.contains||(L.contains=function(N){var R=L.children;if(!R)return!1;for(var B=R.length-1;B>=0;--B)if(R[B]===N)return!0;return!1}),L}else return null;else return L[0]},resize:function(I,_){var L=this._viewport;L.style.display="none";var D=this._opts;if(I!=null&&(D.width=I),_!=null&&(D.height=_),I=this._getSize(0),_=this._getSize(1),L.style.display="",this._width!==I||this._height!==_){this._width=I,this._height=_;var N=L.style;N.width=I+"px",N.height=_+"px";var R=this._svgDom;R.setAttribute("width",I),R.setAttribute("height",_)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",I),this._backgroundNode.setAttribute("height",_))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(I){var _=this._opts,L=["width","height"][I],D=["clientWidth","clientHeight"][I],N=["paddingLeft","paddingTop"][I],R=["paddingRight","paddingBottom"][I];if(_[L]!=null&&_[L]!=="auto")return parseFloat(_[L]);var B=this.root,M=document.defaultView.getComputedStyle(B);return(B[D]||i(M[L])||i(B.style[L]))-(i(M[N])||0)-(i(M[R])||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 I=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,`>
|
|
|
\r<`));return"data:image/svg+xml;charset=UTF-8,"+I}};function C(b){return function(){v('In SVG mode painter not support method "'+b+'"')}}T.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(b){E.prototype[b]=C(b)});var w=E;U.exports=w},"3LNs":function(U,P,d){var O=d("bYtY"),x=d("Yl7c"),T=d("IwbS"),v=d("zTMp"),S=d("YH21"),m=d("iLNv"),f=d("4NO4"),c=f.makeInner,o=c(),r=O.clone,a=O.bind;function n(){}n.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(h,p,g,A){var y=p.get("value"),E=p.get("status");if(this._axisModel=h,this._axisPointerModel=p,this._api=g,!A&&this._lastValue===y&&this._lastStatus===E)return;this._lastValue=y,this._lastStatus=E;var C=this._group,w=this._handle;if(!E||E==="hide"){C&&C.hide(),w&&w.hide();return}C&&C.show(),w&&w.show();var b={};this.makeElOption(b,y,h,p,g);var I=b.graphicKey;I!==this._lastGraphicKey&&this.clear(g),this._lastGraphicKey=I;var _=this._moveAnimation=this.determineAnimation(h,p);if(!C)C=this._group=new T.Group,this.createPointerEl(C,b,h,p),this.createLabelEl(C,b,h,p),g.getZr().add(C);else{var L=O.curry(e,p,_);this.updatePointerEl(C,b,L,p),this.updateLabelEl(C,b,L,p)}l(C,p,!0),this._renderHandle(y)},remove:function(h){this.clear(h)},dispose:function(h){this.clear(h)},determineAnimation:function(h,p){var g=p.get("animation"),A=h.axis,y=A.type==="category",E=p.get("snap");if(!E&&!y)return!1;if(g==="auto"||g==null){var C=this.animationThreshold;if(y&&A.getBandWidth()>C)return!0;if(E){var w=v.getAxisInfo(h).seriesDataCount,b=A.getExtent();return Math.abs(b[0]-b[1])/w>C}return!1}return g===!0},makeElOption:function(h,p,g,A,y){},createPointerEl:function(h,p,g,A){var y=p.pointer;if(y){var E=o(h).pointerEl=new T[y.type](r(p.pointer));h.add(E)}},createLabelEl:function(h,p,g,A){if(p.label){var y=o(h).labelEl=new T.Rect(r(p.label));h.add(y),t(y,A)}},updatePointerEl:function(h,p,g){var A=o(h).pointerEl;A&&p.pointer&&(A.setStyle(p.pointer.style),g(A,{shape:p.pointer.shape}))},updateLabelEl:function(h,p,g,A){var y=o(h).labelEl;y&&(y.setStyle(p.label.style),g(y,{shape:p.label.shape,position:p.label.position}),t(y,A))},_renderHandle:function(h){if(this._dragging||!this.updateHandleTransform)return;var p=this._axisPointerModel,g=this._api.getZr(),A=this._handle,y=p.getModel("handle"),E=p.get("status");if(!y.get("show")||!E||E==="hide"){A&&g.remove(A),this._handle=null;return}var C;this._handle||(C=!0,A=this._handle=T.createIcon(y.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(I){S.stop(I.event)},onmousedown:a(this._onHandleDragMove,this,0,0),drift:a(this._onHandleDragMove,this),ondragend:a(this._onHandleDragEnd,this)}),g.add(A)),l(A,p,!1);var w=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];A.setStyle(y.getItemStyle(null,w));var b=y.get("size");O.isArray(b)||(b=[b,b]),A.attr("scale",[b[0]/2,b[1]/2]),m.createOrUpdate(this,"_doDispatchAxisPointer",y.get("throttle")||0,"fixRate"),this._moveHandleToValue(h,C)},_moveHandleToValue:function(h,p){e(this._axisPointerModel,!p&&this._moveAnimation,this._handle,i(this.getHandleTransform(h,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(h,p){var g=this._handle;if(!g)return;this._dragging=!0;var A=this.updateHandleTransform(i(g),[h,p],this._axisModel,this._axisPointerModel);this._payloadInfo=A,g.stopAnimation(),g.attr(i(A)),o(g).lastProp=null,this._doDispatchAxisPointer()},_doDispatchAxisPointer:function(){var h=this._handle;if(!h)return;var p=this._payloadInfo,g=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:p.cursorPoint[0],y:p.cursorPoint[1],tooltipOption:p.tooltipOption,axesInfo:[{axisDim:g.axis.dim,axisIndex:g.componentIndex}]})},_onHandleDragEnd:function(h){this._dragging=!1;var p=this._handle;if(!p)return;var g=this._axisPointerModel.get("value");this._moveHandleToValue(g),this._api.dispatchAction({type:"hideTip"})},getHandleTransform:null,updateHandleTransform:null,clear:function(h){this._lastValue=null,this._lastStatus=null;var p=h.getZr(),g=this._group,A=this._handle;p&&g&&(this._lastGraphicKey=null,g&&p.remove(g),A&&p.remove(A),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(h,p,g){return g=g||0,{x:h[g],y:h[1-g],width:p[g],height:p[1-g]}}},n.prototype.constructor=n;function e(h,p,g,A){s(o(g).lastProp,A)||(o(g).lastProp=A,p?T.updateProps(g,A,h):(g.stopAnimation(),g.attr(A)))}function s(h,p){if(O.isObject(h)&&O.isObject(p)){var g=!0;return O.each(p,function(A,y){g=g&&s(h[y],A)}),!!g}else return h===p}function t(h,p){h[p.get("label.show")?"show":"hide"]()}function i(h){return{position:h.position.slice(),rotation:h.rotation||0}}function l(h,p,g){var A=p.get("z"),y=p.get("zlevel");h&&h.traverse(function(E){E.type!=="group"&&(A!=null&&(E.z=A),y!=null&&(E.zlevel=y),E.silent=g)})}x.enableClassExtend(n);var u=n;U.exports=u},"3OrL":function(U,P,d){var O=d("bYtY"),x=d("6Ic6"),T=d("IwbS"),v=d("y+Vt"),S=["itemStyle"],m=["emphasis","itemStyle"],f=x.extend({type:"boxplot",render:function(e,s,t){var i=e.getData(),l=this.group,u=this._data;this._data||l.removeAll();var h=e.get("layout")==="horizontal"?1:0;i.diff(u).add(function(p){if(i.hasValue(p)){var g=i.getItemLayout(p),A=o(g,i,p,h,!0);i.setItemGraphicEl(p,A),l.add(A)}}).update(function(p,g){var A=u.getItemGraphicEl(g);if(!i.hasValue(p)){l.remove(A);return}var y=i.getItemLayout(p);A?r(y,A,i,p):A=o(y,i,p,h),l.add(A),i.setItemGraphicEl(p,A)}).remove(function(p){var g=u.getItemGraphicEl(p);g&&l.remove(g)}).execute(),this._data=i},remove:function(e){var s=this.group,t=this._data;this._data=null,t&&t.eachItemGraphicEl(function(i){i&&s.remove(i)})},dispose:O.noop}),c=v.extend({type:"boxplotBoxPath",shape:{},buildPath:function(e,s){var t=s.points,i=0;for(e.moveTo(t[i][0],t[i][1]),i++;i<4;i++)e.lineTo(t[i][0],t[i][1]);for(e.closePath();i<t.length;i++)e.moveTo(t[i][0],t[i][1]),i++,e.lineTo(t[i][0],t[i][1])}});function o(e,s,t,i,l){var u=e.ends,h=new c({shape:{points:l?a(u,i,e):u}});return r(e,h,s,t,l),h}function r(e,s,t,i,l){var u=t.hostModel,h=T[l?"initProps":"updateProps"];h(s,{shape:{points:e.ends}},u,i);var p=t.getItemModel(i),g=p.getModel(S),A=t.getItemVisual(i,"color"),y=g.getItemStyle(["borderColor"]);y.stroke=A,y.strokeNoScale=!0,s.useStyle(y),s.z2=100;var E=p.getModel(m).getItemStyle();T.setHoverStyle(s,E)}function a(e,s,t){return O.map(e,function(i){return i=i.slice(),i[s]=t.initBaseline,i})}var n=f;U.exports=n},"3S7+":function(U,P,d){"use strict";var O=d("lSNA"),x=d.n(O),T=d("J4zp"),v=d.n(T),S=d("pVnL"),m=d.n(S),f=d("q1tI"),c=d.n(f),o=d("U8pU"),r=d("VTBJ"),a=d("Ff2n"),n=d("1OyB"),e=d("vuIU"),s=d("JX7q"),t=d("Ji7U"),i=d("LK+K"),l=d("i8i4"),u=d.n(l),h=d("l4aY"),p=d("m+aA"),g=d("c+Xe"),A=d("zT1h"),y=d("QC+M"),E=d("TSYQ"),C=d.n(E);function w(Rn,kn,Vn){return Vn?Rn[0]===kn[0]:Rn[0]===kn[0]&&Rn[1]===kn[1]}function b(Rn,kn,Vn){var Gt=Rn[kn]||{};return Object(r.a)(Object(r.a)({},Gt),Vn)}function I(Rn,kn,Vn,Gt){for(var st=Vn.points,ue=Object.keys(Rn),Ee=0;Ee<ue.length;Ee+=1){var je=ue[Ee];if(w(Rn[je].points,st,Gt))return"".concat(kn,"-placement-").concat(je)}return""}var _=d("xEkU"),L=d.n(_),D=d("9mu1"),N=d("rePB"),R=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function B(Rn,kn){var Vn={};return Vn[Rn.toLowerCase()]=kn.toLowerCase(),Vn["Webkit".concat(Rn)]="webkit".concat(kn),Vn["Moz".concat(Rn)]="moz".concat(kn),Vn["ms".concat(Rn)]="MS".concat(kn),Vn["O".concat(Rn)]="o".concat(kn.toLowerCase()),Vn}function M(Rn,kn){var Vn={animationend:B("Animation","AnimationEnd"),transitionend:B("Transition","TransitionEnd")};return Rn&&("AnimationEvent"in kn||delete Vn.animationend.animation,"TransitionEvent"in kn||delete Vn.transitionend.transition),Vn}var H=M(R,typeof window!="undefined"?window:{}),F={};if(R){var K=document.createElement("div");F=K.style}var j={};function V(Rn){if(j[Rn])return j[Rn];var kn=H[Rn];if(kn)for(var Vn=Object.keys(kn),Gt=Vn.length,st=0;st<Gt;st+=1){var ue=Vn[st];if(Object.prototype.hasOwnProperty.call(kn,ue)&&ue in F)return j[Rn]=kn[ue],j[Rn]}return""}var z=V("animationend"),Y=V("transitionend"),ee=!!(z&&Y);function fe(Rn,kn){if(!Rn)return null;if(Object(o.a)(Rn)==="object"){var Vn=kn.replace(/-\w/g,function(Gt){return Gt[1].toUpperCase()});return Rn[Vn]}return"".concat(Rn,"-").concat(kn)}var ie="none",we="appear",Ce="enter",Le="leave";function He(Rn){var kn=Rn,Vn=!!f.forwardRef;Object(o.a)(Rn)==="object"&&(kn=Rn.transitionSupport,Vn="forwardRef"in Rn?Rn.forwardRef:Vn);function Gt(ue){return!!(ue.motionName&&kn)}var st=function(ue){Object(t.a)(je,ue);var Ee=Object(i.a)(je);function je(){var Ve;return Object(n.a)(this,je),Ve=Ee.apply(this,arguments),Ve.$cacheEle=null,Ve.node=null,Ve.raf=null,Ve.destroyed=!1,Ve.deadlineId=null,Ve.state={status:ie,statusActive:!1,newStatus:!1,statusStyle:null},Ve.onDomUpdate=function(){var $e=Ve.state,wt=$e.status,qt=$e.newStatus,Mr=Ve.props,an=Mr.onAppearStart,_t=Mr.onEnterStart,at=Mr.onLeaveStart,bt=Mr.onAppearActive,kt=Mr.onEnterActive,Pt=Mr.onLeaveActive,Et=Mr.motionAppear,Ht=Mr.motionEnter,ot=Mr.motionLeave;if(!Gt(Ve.props))return;var Mt=Ve.getElement();Ve.$cacheEle!==Mt&&(Ve.removeEventListener(Ve.$cacheEle),Ve.addEventListener(Mt),Ve.$cacheEle=Mt),qt&&wt===we&&Et?Ve.updateStatus(an,null,null,function(){Ve.updateActiveStatus(bt,we)}):qt&&wt===Ce&&Ht?Ve.updateStatus(_t,null,null,function(){Ve.updateActiveStatus(kt,Ce)}):qt&&wt===Le&&ot&&Ve.updateStatus(at,null,null,function(){Ve.updateActiveStatus(Pt,Le)})},Ve.onMotionEnd=function($e){if($e&&!$e.deadline&&$e.target!==Ve.getElement())return;var wt=Ve.state,qt=wt.status,Mr=wt.statusActive,an=Ve.props,_t=an.onAppearEnd,at=an.onEnterEnd,bt=an.onLeaveEnd;qt===we&&Mr?Ve.updateStatus(_t,{status:ie},$e):qt===Ce&&Mr?Ve.updateStatus(at,{status:ie},$e):qt===Le&&Mr&&Ve.updateStatus(bt,{status:ie},$e)},Ve.setNodeRef=function($e){var wt=Ve.props.internalRef;Ve.node=$e,Object(g.b)(wt,$e)},Ve.getElement=function(){try{return Object(p.a)(Ve.node||Object(s.a)(Ve))}catch($e){return Ve.$cacheEle}},Ve.addEventListener=function($e){if(!$e)return;$e.addEventListener(Y,Ve.onMotionEnd),$e.addEventListener(z,Ve.onMotionEnd)},Ve.removeEventListener=function($e){if(!$e)return;$e.removeEventListener(Y,Ve.onMotionEnd),$e.removeEventListener(z,Ve.onMotionEnd)},Ve.updateStatus=function($e,wt,qt,Mr){var an=$e?$e(Ve.getElement(),qt):null;if(an===!1||Ve.destroyed)return;var _t;Mr&&(_t=function(){Ve.nextFrame(Mr)}),Ve.setState(Object(r.a)({statusStyle:Object(o.a)(an)==="object"?an:null,newStatus:!1},wt),_t)},Ve.updateActiveStatus=function($e,wt){Ve.nextFrame(function(){var qt=Ve.state.status;if(qt!==wt)return;var Mr=Ve.props.motionDeadline;Ve.updateStatus($e,{statusActive:!0}),Mr>0&&(Ve.deadlineId=setTimeout(function(){Ve.onMotionEnd({deadline:!0})},Mr))})},Ve.nextFrame=function($e){Ve.cancelNextFrame(),Ve.raf=L()($e)},Ve.cancelNextFrame=function(){Ve.raf&&(L.a.cancel(Ve.raf),Ve.raf=null)},Ve}return Object(e.a)(je,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var $e,wt=this.state,qt=wt.status,Mr=wt.statusActive,an=wt.statusStyle,_t=this.props,at=_t.children,bt=_t.motionName,kt=_t.visible,Pt=_t.removeOnLeave,Et=_t.leavedClassName,Ht=_t.eventProps;return at?qt===ie||!Gt(this.props)?kt?at(Object(r.a)({},Ht),this.setNodeRef):Pt?null:at(Object(r.a)(Object(r.a)({},Ht),{},{className:Et}),this.setNodeRef):at(Object(r.a)(Object(r.a)({},Ht),{},{className:C()(fe(bt,qt),($e={},Object(N.a)($e,fe(bt,"".concat(qt,"-active")),Mr),Object(N.a)($e,bt,typeof bt=="string"),$e)),style:an}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function($e,wt){var qt=wt.prevProps,Mr=wt.status;if(!Gt($e))return{};var an=$e.visible,_t=$e.motionAppear,at=$e.motionEnter,bt=$e.motionLeave,kt=$e.motionLeaveImmediately,Pt={prevProps:$e};return(Mr===we&&!_t||Mr===Ce&&!at||Mr===Le&&!bt)&&(Pt.status=ie,Pt.statusActive=!1,Pt.newStatus=!1),!qt&&an&&_t&&(Pt.status=we,Pt.statusActive=!1,Pt.newStatus=!0),qt&&!qt.visible&&an&&at&&(Pt.status=Ce,Pt.statusActive=!1,Pt.newStatus=!0),(qt&&qt.visible&&!an&&bt||!qt&&kt&&!an&&bt)&&(Pt.status=Le,Pt.statusActive=!1,Pt.newStatus=!0),Pt}}]),je}(f.Component);return st.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Vn?f.forwardRef(function(ue,Ee){return f.createElement(st,Object.assign({internalRef:Ee},ue))}):st}var ce=He(ee),Pe="add",Q="keep",me="remove",Je="removed";function re(Rn){var kn;return Rn&&Object(o.a)(Rn)==="object"&&"key"in Rn?kn=Rn:kn={key:Rn},Object(r.a)(Object(r.a)({},kn),{},{key:String(kn.key)})}function G(){var Rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Rn.map(re)}function X(){var Rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Vn=[],Gt=0,st=kn.length,ue=G(Rn),Ee=G(kn);ue.forEach(function($e){for(var wt=!1,qt=Gt;qt<st;qt+=1){var Mr=Ee[qt];if(Mr.key===$e.key){Gt<qt&&(Vn=Vn.concat(Ee.slice(Gt,qt).map(function(an){return Object(r.a)(Object(r.a)({},an),{},{status:Pe})})),Gt=qt),Vn.push(Object(r.a)(Object(r.a)({},Mr),{},{status:Q})),Gt+=1,wt=!0;break}}wt||Vn.push(Object(r.a)(Object(r.a)({},$e),{},{status:me}))}),Gt<st&&(Vn=Vn.concat(Ee.slice(Gt).map(function($e){return Object(r.a)(Object(r.a)({},$e),{},{status:Pe})})));var je={};Vn.forEach(function($e){var wt=$e.key;je[wt]=(je[wt]||0)+1});var Ve=Object.keys(je).filter(function($e){return je[$e]>1});return Ve.forEach(function($e){Vn=Vn.filter(function(wt){var qt=wt.key,Mr=wt.status;return qt!==$e||Mr!==me}),Vn.forEach(function(wt){wt.key===$e&&(wt.status=Q)})}),Vn}var J=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ae(Rn){var kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ce,Vn=function(Gt){Object(t.a)(ue,Gt);var st=Object(i.a)(ue);function ue(){var Ee;return Object(n.a)(this,ue),Ee=st.apply(this,arguments),Ee.state={keyEntities:[]},Ee.removeKey=function(je){Ee.setState(function(Ve){var $e=Ve.keyEntities;return{keyEntities:$e.map(function(wt){return wt.key!==je?wt:Object(r.a)(Object(r.a)({},wt),{},{status:Je})})}})},Ee}return Object(e.a)(ue,[{key:"render",value:function(){var je=this,Ve=this.state.keyEntities,$e=this.props,wt=$e.component,qt=$e.children,Mr=Object(a.a)($e,["component","children"]),an=wt||f.Fragment,_t={};return J.forEach(function(at){_t[at]=Mr[at],delete Mr[at]}),delete Mr.keys,f.createElement(an,Object.assign({},Mr),Ve.map(function(at){var bt=at.status,kt=Object(a.a)(at,["status"]),Pt=bt===Pe||bt===Q;return f.createElement(kn,Object.assign({},_t,{key:kt.key,visible:Pt,eventProps:kt,onLeaveEnd:function(){_t.onLeaveEnd&&_t.onLeaveEnd.apply(_t,arguments),je.removeKey(kt.key)}}),qt)}))}}],[{key:"getDerivedStateFromProps",value:function(je,Ve){var $e=je.keys,wt=Ve.keyEntities,qt=G($e);if(!Rn)return{keyEntities:qt.map(function(_t){return Object(r.a)(Object(r.a)({},_t),{},{status:Q})})};var Mr=X(wt,qt),an=wt.length;return{keyEntities:Mr.filter(function(_t){for(var at=null,bt=0;bt<an;bt+=1){var kt=wt[bt];if(kt.key===_t.key){at=kt;break}}return!(at&&at.status===Je&&_t.status===me)})}}}]),ue}(f.Component);return Vn.defaultProps={component:"div"},Vn}var he=Ae(ee),Me=ce,Ie=function(kn,Vn){var Gt=kn.prefixCls,st=kn.className,ue=kn.style,Ee=kn.children,je=kn.onMouseEnter,Ve=kn.onMouseLeave,$e=kn.onMouseDown,wt=kn.onTouchStart,qt=Ee;return f.Children.count(Ee)>1&&(qt=f.createElement("div",{className:"".concat(Gt,"-content")},Ee)),f.createElement("div",{ref:Vn,className:st,onMouseEnter:je,onMouseLeave:Ve,onMouseDown:$e,onTouchStart:wt,style:ue},qt)},oe=f.forwardRef(Ie);oe.displayName="PopupInner";var pe=oe;function Oe(Rn){var kn=Rn.prefixCls,Vn=Rn.motion,Gt=Rn.animation,st=Rn.transitionName;return Vn||(Gt?{motionName:"".concat(kn,"-").concat(Gt)}:st?{motionName:st}:null)}function Ye(Rn){return Rn&&Rn.motionName}var it=function(Rn){Object(t.a)(Vn,Rn);var kn=Object(i.a)(Vn);function Vn(){var Gt;return Object(n.a)(this,Vn),Gt=kn.apply(this,arguments),Gt.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Gt.popupRef=c.a.createRef(),Gt.alignRef=c.a.createRef(),Gt.nextFrameState=null,Gt.nextFrameId=null,Gt.onAlign=function(st,ue){var Ee=Gt.state.status,je=Gt.props,Ve=je.getClassNameFromAlign,$e=je.onAlign,wt=Ve(ue);Ee==="align"?Gt.setState({alignClassName:wt,status:"aligned"},function(){Gt.alignRef.current.forceAlign()}):Ee==="aligned"?(Gt.setState({alignClassName:wt,status:"afterAlign"}),$e(st,ue)):Gt.setState({alignClassName:wt})},Gt.onMotionEnd=function(){var st=Gt.props.visible;Gt.setState({status:st?"AfterMotion":"stable",inMotion:!1})},Gt.setStateOnNextFrame=function(st){Gt.cancelFrameState(),Gt.nextFrameState=Object(r.a)(Object(r.a)({},Gt.nextFrameState),st),Gt.nextFrameId=L()(function(){var ue=Object(r.a)({},Gt.nextFrameState);Gt.nextFrameState=null,Gt.setState(ue)})},Gt.getMotion=function(){return Object(r.a)({},Oe(Gt.props))},Gt.getAlignTarget=function(){var st=Gt.props,ue=st.point,Ee=st.getRootDomNode;return ue||Ee},Gt.cancelFrameState=function(){L.a.cancel(Gt.nextFrameId)},Gt.renderPopupElement=function(){var st=Gt.state,ue=st.status,Ee=st.targetHeight,je=st.targetWidth,Ve=st.alignClassName,$e=Gt.props,wt=$e.prefixCls,qt=$e.className,Mr=$e.style,an=$e.stretch,_t=$e.visible,at=$e.align,bt=$e.destroyPopupOnHide,kt=$e.onMouseEnter,Pt=$e.onMouseLeave,Et=$e.onMouseDown,Ht=$e.onTouchStart,ot=$e.children,Mt=C()(wt,qt,Ve),xr="".concat(wt,"-hidden"),ur={};an&&(an.indexOf("height")!==-1?ur.height=Ee:an.indexOf("minHeight")!==-1&&(ur.minHeight=Ee),an.indexOf("width")!==-1?ur.width=je:an.indexOf("minWidth")!==-1&&(ur.minWidth=je));var gr=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},ur),Gt.getZIndexStyle()),Mr),{},{opacity:ue==="stable"||!_t?void 0:0,pointerEvents:ue==="stable"||!_t?void 0:"none"}),Qr=Gt.getMotion(),ln=_t;_t&&ue!=="beforeMotion"&&ue!=="motion"&&ue!=="stable"&&(Qr.motionAppear=!1,Qr.motionEnter=!1,Qr.motionLeave=!1),(ue==="afterAlign"||ue==="beforeMotion")&&(ln=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(li){var ai=Qr==null?void 0:Qr[li];Qr[li]=function(){for(var pi=arguments.length,Oi=new Array(pi),Ze=0;Ze<pi;Ze++)Oi[Ze]=arguments[Ze];ai==null||ai.apply(void 0,Oi),Gt.setState({inMotion:!0})}});var _n=!_t||ue!=="align"&&ue!=="aligned"&&ue!=="stable",Mn=!0;return ue==="stable"&&(Mn=_t),bt&&!Mn?null:c.a.createElement(Me,Object.assign({visible:ln},Qr,{removeOnLeave:!1,onEnterEnd:Gt.onMotionEnd,onLeaveEnd:Gt.onMotionEnd,leavedClassName:xr}),function(li,ai){var pi=li.style,Oi=li.className;return c.a.createElement(D.a,{target:Gt.getAlignTarget(),key:"popup",ref:Gt.alignRef,monitorWindowResize:!0,disabled:_n,align:at,onAlign:Gt.onAlign},c.a.createElement(pe,{prefixCls:wt,className:C()(Mt,Oi),ref:Object(g.a)(ai,Gt.popupRef),onMouseEnter:kt,onMouseLeave:Pt,onMouseDown:Et,onTouchStart:Ht,style:Object(r.a)(Object(r.a)({},gr),pi)},ot))})},Gt.renderMaskElement=function(){var st=Gt.props,ue=st.mask,Ee=st.maskMotion,je=st.maskTransitionName,Ve=st.maskAnimation,$e=st.prefixCls,wt=st.visible;if(!ue)return null;var qt={};return Ee&&Ee.motionName&&(qt=Object(r.a)({motionAppear:!0},Oe({motion:Ee,prefixCls:$e,transitionName:je,animation:Ve}))),c.a.createElement(Me,Object.assign({},qt,{visible:wt,removeOnLeave:!0}),function(Mr){var an=Mr.className;return c.a.createElement("div",{style:Gt.getZIndexStyle(),key:"mask",className:C()("".concat($e,"-mask"),an)})})},Gt}return Object(e.a)(Vn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var st=this.state.status,ue=this.props,Ee=ue.getRootDomNode,je=ue.visible,Ve=ue.stretch;if(this.cancelFrameState(),je&&st!=="stable")switch(st){case null:{this.setStateOnNextFrame({status:Ve?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Ye(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var $e=["measure","align",null,"beforeMotion","motion"],wt=$e.indexOf(st),qt=$e[wt+1];wt!==-1&&qt&&this.setStateOnNextFrame({status:qt})}}if(st==="measure"){var Mr=Ee();Mr&&this.setStateOnNextFrame({targetHeight:Mr.offsetHeight,targetWidth:Mr.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var st=this.props.zIndex;return{zIndex:st}}},{key:"render",value:function(){return c.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(st,ue){var Ee=st.visible,je=Object(a.a)(st,["visible"]),Ve=ue.prevVisible,$e=ue.status,wt=ue.inMotion,qt={prevVisible:Ee,status:$e},Mr=Oe(je);return Ve===null&&Ee===!1?(qt.status="stable",qt.inMotion=!1):Ee!==Ve&&(qt.inMotion=!1,Ee||Ye(Mr)&&wt?qt.status=null:qt.status="stable",Ee&&(qt.alignClassName=null)),qt}}]),Vn}(f.Component),et=it,Te=f.createContext(null),tt=Te;function ze(){}function dt(){return""}function Ot(){return window.document}var Tt=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ct(Rn){var kn=function(Vn){Object(t.a)(st,Vn);var Gt=Object(i.a)(st);function st(ue){var Ee;Object(n.a)(this,st),Ee=Gt.call(this,ue),Ee.popupRef=c.a.createRef(),Ee.triggerRef=c.a.createRef(),Ee.onMouseEnter=function(Ve){var $e=Ee.props.mouseEnterDelay;Ee.fireEvents("onMouseEnter",Ve),Ee.delaySetPopupVisible(!0,$e,$e?null:Ve)},Ee.onMouseMove=function(Ve){Ee.fireEvents("onMouseMove",Ve),Ee.setPoint(Ve)},Ee.onMouseLeave=function(Ve){Ee.fireEvents("onMouseLeave",Ve),Ee.delaySetPopupVisible(!1,Ee.props.mouseLeaveDelay)},Ee.onPopupMouseEnter=function(){Ee.clearDelayTimer()},Ee.onPopupMouseLeave=function(Ve){if(Ve.relatedTarget&&!Ve.relatedTarget.setTimeout&&Ee.popupRef.current&&Ee.popupRef.current.popupRef.current&&Object(h.a)(Ee.popupRef.current.popupRef.current,Ve.relatedTarget))return;Ee.delaySetPopupVisible(!1,Ee.props.mouseLeaveDelay)},Ee.onFocus=function(Ve){Ee.fireEvents("onFocus",Ve),Ee.clearDelayTimer(),Ee.isFocusToShow()&&(Ee.focusTime=Date.now(),Ee.delaySetPopupVisible(!0,Ee.props.focusDelay))},Ee.onMouseDown=function(Ve){Ee.fireEvents("onMouseDown",Ve),Ee.preClickTime=Date.now()},Ee.onTouchStart=function(Ve){Ee.fireEvents("onTouchStart",Ve),Ee.preTouchTime=Date.now()},Ee.onBlur=function(Ve){Ee.fireEvents("onBlur",Ve),Ee.clearDelayTimer(),Ee.isBlurToHide()&&Ee.delaySetPopupVisible(!1,Ee.props.blurDelay)},Ee.onContextMenu=function(Ve){Ve.preventDefault(),Ee.fireEvents("onContextMenu",Ve),Ee.setPopupVisible(!0,Ve)},Ee.onContextMenuClose=function(){Ee.isContextMenuToShow()&&Ee.close()},Ee.onClick=function(Ve){if(Ee.fireEvents("onClick",Ve),Ee.focusTime){var $e;if(Ee.preClickTime&&Ee.preTouchTime?$e=Math.min(Ee.preClickTime,Ee.preTouchTime):Ee.preClickTime?$e=Ee.preClickTime:Ee.preTouchTime&&($e=Ee.preTouchTime),Math.abs($e-Ee.focusTime)<20)return;Ee.focusTime=0}Ee.preClickTime=0,Ee.preTouchTime=0,Ee.isClickToShow()&&(Ee.isClickToHide()||Ee.isBlurToHide())&&Ve&&Ve.preventDefault&&Ve.preventDefault();var wt=!Ee.state.popupVisible;(Ee.isClickToHide()&&!wt||wt&&Ee.isClickToShow())&&Ee.setPopupVisible(!Ee.state.popupVisible,Ve)},Ee.onPopupMouseDown=function(){if(Ee.hasPopupMouseDown=!0,clearTimeout(Ee.mouseDownTimeout),Ee.mouseDownTimeout=window.setTimeout(function(){Ee.hasPopupMouseDown=!1},0),Ee.context){var Ve;(Ve=Ee.context).onPopupMouseDown.apply(Ve,arguments)}},Ee.onDocumentClick=function(Ve){if(Ee.props.mask&&!Ee.props.maskClosable)return;var $e=Ve.target,wt=Ee.getRootDomNode(),qt=Ee.getPopupDomNode();!Object(h.a)(wt,$e)&&!Object(h.a)(qt,$e)&&!Ee.hasPopupMouseDown&&Ee.close()},Ee.getRootDomNode=function(){var Ve=Ee.props.getTriggerDOMNode;if(Ve)return Ve(Ee.triggerRef.current);try{var $e=Object(p.a)(Ee.triggerRef.current);if($e)return $e}catch(wt){}return u.a.findDOMNode(Object(s.a)(Ee))},Ee.getPopupClassNameFromAlign=function(Ve){var $e=[],wt=Ee.props,qt=wt.popupPlacement,Mr=wt.builtinPlacements,an=wt.prefixCls,_t=wt.alignPoint,at=wt.getPopupClassNameFromAlign;return qt&&Mr&&$e.push(I(Mr,an,Ve,_t)),at&&$e.push(at(Ve)),$e.join(" ")},Ee.getComponent=function(){var Ve=Ee.props,$e=Ve.prefixCls,wt=Ve.destroyPopupOnHide,qt=Ve.popupClassName,Mr=Ve.onPopupAlign,an=Ve.popupMotion,_t=Ve.popupAnimation,at=Ve.popupTransitionName,bt=Ve.popupStyle,kt=Ve.mask,Pt=Ve.maskAnimation,Et=Ve.maskTransitionName,Ht=Ve.maskMotion,ot=Ve.zIndex,Mt=Ve.popup,xr=Ve.stretch,ur=Ve.alignPoint,gr=Ee.state,Qr=gr.popupVisible,ln=gr.point,_n=Ee.getPopupAlign(),Mn={};return Ee.isMouseEnterToShow()&&(Mn.onMouseEnter=Ee.onPopupMouseEnter),Ee.isMouseLeaveToHide()&&(Mn.onMouseLeave=Ee.onPopupMouseLeave),Mn.onMouseDown=Ee.onPopupMouseDown,Mn.onTouchStart=Ee.onPopupMouseDown,c.a.createElement(et,Object.assign({prefixCls:$e,destroyPopupOnHide:wt,visible:Qr,point:ur&&ln,className:qt,align:_n,onAlign:Mr,animation:_t,getClassNameFromAlign:Ee.getPopupClassNameFromAlign},Mn,{stretch:xr,getRootDomNode:Ee.getRootDomNode,style:bt,mask:kt,zIndex:ot,transitionName:at,maskAnimation:Pt,maskTransitionName:Et,maskMotion:Ht,ref:Ee.popupRef,motion:an}),typeof Mt=="function"?Mt():Mt)},Ee.getContainer=function(){var Ve=Object(s.a)(Ee),$e=Ve.props,wt=document.createElement("div");wt.style.position="absolute",wt.style.top="0",wt.style.left="0",wt.style.width="100%";var qt=$e.getPopupContainer?$e.getPopupContainer(Ee.getRootDomNode()):$e.getDocument().body;return qt.appendChild(wt),wt},Ee.setPoint=function(Ve){var $e=Ee.props.alignPoint;if(!$e||!Ve)return;Ee.setState({point:{pageX:Ve.pageX,pageY:Ve.pageY}})},Ee.handlePortalUpdate=function(){Ee.state.prevPopupVisible!==Ee.state.popupVisible&&Ee.props.afterPopupVisibleChange(Ee.state.popupVisible)};var je;return"popupVisible"in ue?je=!!ue.popupVisible:je=!!ue.defaultPopupVisible,Ee.state={prevPopupVisible:je,popupVisible:je},Tt.forEach(function(Ve){Ee["fire".concat(Ve)]=function($e){Ee.fireEvents(Ve,$e)}}),Ee}return Object(e.a)(st,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ee=this.props,je=this.state;if(je.popupVisible){var Ve;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Ve=Ee.getDocument(),this.clickOutsideHandler=Object(A.a)(Ve,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Ve=Ve||Ee.getDocument(),this.touchOutsideHandler=Object(A.a)(Ve,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Ve=Ve||Ee.getDocument(),this.contextMenuOutsideHandler1=Object(A.a)(Ve,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(A.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var Ee=this.props,je=Ee.popupPlacement,Ve=Ee.popupAlign,$e=Ee.builtinPlacements;return je&&$e?b($e,je,Ve):Ve}},{key:"setPopupVisible",value:function(Ee,je){var Ve=this.props.alignPoint,$e=this.state.popupVisible;this.clearDelayTimer(),$e!==Ee&&("popupVisible"in this.props||this.setState({popupVisible:Ee,prevPopupVisible:$e}),this.props.onPopupVisibleChange(Ee)),Ve&&je&&this.setPoint(je)}},{key:"delaySetPopupVisible",value:function(Ee,je,Ve){var $e=this,wt=je*1e3;if(this.clearDelayTimer(),wt){var qt=Ve?{pageX:Ve.pageX,pageY:Ve.pageY}:null;this.delayTimer=window.setTimeout(function(){$e.setPopupVisible(Ee,qt),$e.clearDelayTimer()},wt)}else this.setPopupVisible(Ee,Ve)}},{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(Ee){var je=this.props.children.props,Ve=this.props;return je[Ee]&&Ve[Ee]?this["fire".concat(Ee)]:je[Ee]||Ve[Ee]}},{key:"isClickToShow",value:function(){var Ee=this.props,je=Ee.action,Ve=Ee.showAction;return je.indexOf("click")!==-1||Ve.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Ee=this.props,je=Ee.action,Ve=Ee.showAction;return je.indexOf("contextMenu")!==-1||Ve.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Ee=this.props,je=Ee.action,Ve=Ee.hideAction;return je.indexOf("click")!==-1||Ve.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Ee=this.props,je=Ee.action,Ve=Ee.showAction;return je.indexOf("hover")!==-1||Ve.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Ee=this.props,je=Ee.action,Ve=Ee.hideAction;return je.indexOf("hover")!==-1||Ve.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Ee=this.props,je=Ee.action,Ve=Ee.showAction;return je.indexOf("focus")!==-1||Ve.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Ee=this.props,je=Ee.action,Ve=Ee.hideAction;return je.indexOf("focus")!==-1||Ve.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(Ee,je){var Ve=this.props.children.props[Ee];Ve&&Ve(je);var $e=this.props[Ee];$e&&$e(je)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Ee=this.state.popupVisible,je=this.props,Ve=je.children,$e=je.forceRender,wt=je.alignPoint,qt=je.className,Mr=je.autoDestroy,an=c.a.Children.only(Ve),_t={key:"trigger"};this.isContextMenuToShow()?_t.onContextMenu=this.onContextMenu:_t.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(_t.onClick=this.onClick,_t.onMouseDown=this.onMouseDown,_t.onTouchStart=this.onTouchStart):(_t.onClick=this.createTwoChains("onClick"),_t.onMouseDown=this.createTwoChains("onMouseDown"),_t.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(_t.onMouseEnter=this.onMouseEnter,wt&&(_t.onMouseMove=this.onMouseMove)):_t.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?_t.onMouseLeave=this.onMouseLeave:_t.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(_t.onFocus=this.onFocus,_t.onBlur=this.onBlur):(_t.onFocus=this.createTwoChains("onFocus"),_t.onBlur=this.createTwoChains("onBlur"));var at=C()(an&&an.props&&an.props.className,qt);at&&(_t.className=at);var bt=Object(r.a)({},_t);Object(g.c)(an)&&(bt.ref=Object(g.a)(this.triggerRef,an.ref));var kt=c.a.cloneElement(an,bt),Pt;return(Ee||this.popupRef.current||$e)&&(Pt=c.a.createElement(Rn,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Ee&&Mr&&(Pt=null),c.a.createElement(tt.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},kt,Pt)}}],[{key:"getDerivedStateFromProps",value:function(Ee,je){var Ve=Ee.popupVisible,$e={};return Ve!==void 0&&je.popupVisible!==Ve&&($e.popupVisible=Ve,$e.prevPopupVisible=je.popupVisible),$e}}]),st}(c.a.Component);return kn.contextType=tt,kn.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:dt,getDocument:Ot,onPopupVisibleChange:ze,afterPopupVisibleChange:ze,onPopupAlign:ze,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},kn}var Nt=Ct(y.a),Be={adjustX:1,adjustY:1},$=[0,0],Z={left:{points:["cr","cl"],overflow:Be,offset:[-4,0],targetOffset:$},right:{points:["cl","cr"],overflow:Be,offset:[4,0],targetOffset:$},top:{points:["bc","tc"],overflow:Be,offset:[0,-4],targetOffset:$},bottom:{points:["tc","bc"],overflow:Be,offset:[0,4],targetOffset:$},topLeft:{points:["bl","tl"],overflow:Be,offset:[0,-4],targetOffset:$},leftTop:{points:["tr","tl"],overflow:Be,offset:[-4,0],targetOffset:$},topRight:{points:["br","tr"],overflow:Be,offset:[0,-4],targetOffset:$},rightTop:{points:["tl","tr"],overflow:Be,offset:[4,0],targetOffset:$},bottomRight:{points:["tr","br"],overflow:Be,offset:[0,4],targetOffset:$},rightBottom:{points:["bl","br"],overflow:Be,offset:[4,0],targetOffset:$},bottomLeft:{points:["tl","bl"],overflow:Be,offset:[0,4],targetOffset:$},leftBottom:{points:["br","bl"],overflow:Be,offset:[-4,0],targetOffset:$}},Re=Z,De=function(kn){var Vn=kn.overlay,Gt=kn.prefixCls,st=kn.id,ue=kn.overlayInnerStyle;return f.createElement("div",{className:"".concat(Gt,"-inner"),id:st,role:"tooltip",style:ue},typeof Vn=="function"?Vn():Vn)},ae=De,gt=function(kn,Vn){var Gt=kn.overlayClassName,st=kn.trigger,ue=st===void 0?["hover"]:st,Ee=kn.mouseEnterDelay,je=Ee===void 0?0:Ee,Ve=kn.mouseLeaveDelay,$e=Ve===void 0?.1:Ve,wt=kn.overlayStyle,qt=kn.prefixCls,Mr=qt===void 0?"rc-tooltip":qt,an=kn.children,_t=kn.onVisibleChange,at=kn.afterVisibleChange,bt=kn.transitionName,kt=kn.animation,Pt=kn.placement,Et=Pt===void 0?"right":Pt,Ht=kn.align,ot=Ht===void 0?{}:Ht,Mt=kn.destroyTooltipOnHide,xr=Mt===void 0?!1:Mt,ur=kn.defaultVisible,gr=kn.getTooltipContainer,Qr=kn.overlayInnerStyle,ln=Object(a.a)(kn,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),_n=Object(f.useRef)(null);Object(f.useImperativeHandle)(Vn,function(){return _n.current});var Mn=Object(r.a)({},ln);"visible"in kn&&(Mn.popupVisible=kn.visible);var li=function(){var be=kn.arrowContent,Ne=be===void 0?null:be,Ue=kn.overlay,Qe=kn.id;return[f.createElement("div",{className:"".concat(Mr,"-arrow"),key:"arrow"},Ne),f.createElement(ae,{key:"content",prefixCls:Mr,id:Qe,overlay:Ue,overlayInnerStyle:Qr})]},ai=!1,pi=!1;if(typeof xr=="boolean")ai=xr;else if(xr&&Object(o.a)(xr)==="object"){var Oi=xr.keepParent;ai=Oi===!0,pi=Oi===!1}return f.createElement(Nt,Object.assign({popupClassName:Gt,prefixCls:Mr,popup:li,action:ue,builtinPlacements:Z,popupPlacement:Et,ref:_n,popupAlign:ot,getPopupContainer:gr,onPopupVisibleChange:_t,afterPopupVisibleChange:at,popupTransitionName:bt,popupAnimation:kt,defaultPopupVisible:ur,destroyPopupOnHide:ai,autoDestroy:pi,mouseLeaveDelay:$e,popupStyle:wt,mouseEnterDelay:je},Mn),an)},jt=Object(f.forwardRef)(gt),ut=jt,rr={adjustX:1,adjustY:1},pr={adjustX:0,adjustY:0},nn=[0,0];function mr(Rn){return typeof Rn=="boolean"?Rn?rr:pr:m()(m()({},pr),Rn)}function vr(Rn){var kn=Rn.arrowWidth,Vn=kn===void 0?5:kn,Gt=Rn.horizontalArrowShift,st=Gt===void 0?16:Gt,ue=Rn.verticalArrowShift,Ee=ue===void 0?8:ue,je=Rn.autoAdjustOverflow,Ve={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(st+Vn),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(Ee+Vn)]},topRight:{points:["br","tc"],offset:[st+Vn,-4]},rightTop:{points:["tl","cr"],offset:[4,-(Ee+Vn)]},bottomRight:{points:["tr","bc"],offset:[st+Vn,4]},rightBottom:{points:["bl","cr"],offset:[4,Ee+Vn]},bottomLeft:{points:["tl","bc"],offset:[-(st+Vn),4]},leftBottom:{points:["br","cl"],offset:[-4,Ee+Vn]}};return Object.keys(Ve).forEach(function($e){Ve[$e]=Rn.arrowPointAtCenter?m()(m()({},Ve[$e]),{overflow:mr(je),targetOffset:nn}):m()(m()({},Z[$e]),{overflow:mr(je)}),Ve[$e].ignoreShake=!0}),Ve}var $t=d("0n0R"),Xt=d("H84U"),ft=d("09Wf"),Ur=function(kn,Vn){var Gt={},st=m()({},kn);return Vn.forEach(function(ue){kn&&ue in kn&&(Gt[ue]=kn[ue],delete st[ue])}),{picked:Gt,omitted:st}},yn=new RegExp("^(".concat(ft.a.join("|"),")(-inverse)?$"));function Dn(Rn,kn){var Vn=Rn.type;if((Vn.__ANT_BUTTON===!0||Vn.__ANT_SWITCH===!0||Vn.__ANT_CHECKBOX===!0||Rn.type==="button")&&Rn.props.disabled){var Gt=Ur(Rn.props.style,["position","left","right","top","bottom","float","display","zIndex"]),st=Gt.picked,ue=Gt.omitted,Ee=m()(m()({display:"inline-block"},st),{cursor:"not-allowed",width:Rn.props.block?"100%":null}),je=m()(m()({},ue),{pointerEvents:"none"}),Ve=Object($t.a)(Rn,{style:je,className:null});return f.createElement("span",{style:Ee,className:C()(Rn.props.className,"".concat(kn,"-disabled-compatible-wrapper"))},Ve)}return Rn}var Un=f.forwardRef(function(Rn,kn){var Vn,Gt=f.useContext(Xt.b),st=Gt.getPopupContainer,ue=Gt.getPrefixCls,Ee=Gt.direction,je=f.useState(!!Rn.visible||!!Rn.defaultVisible),Ve=v()(je,2),$e=Ve[0],wt=Ve[1];f.useEffect(function(){"visible"in Rn&&wt(Rn.visible)},[Rn.visible]);var qt=function(){var Oi=Rn.title,Ze=Rn.overlay;return!Oi&&!Ze&&Oi!==0},Mr=function(Oi){"visible"in Rn||wt(qt()?!1:Oi),Rn.onVisibleChange&&!qt()&&Rn.onVisibleChange(Oi)},an=function(){var Oi=Rn.builtinPlacements,Ze=Rn.arrowPointAtCenter,be=Rn.autoAdjustOverflow;return Oi||vr({arrowPointAtCenter:Ze,autoAdjustOverflow:be})},_t=function(Oi,Ze){var be=an(),Ne=Object.keys(be).filter(function(Xe){return be[Xe].points[0]===Ze.points[0]&&be[Xe].points[1]===Ze.points[1]})[0];if(!Ne)return;var Ue=Oi.getBoundingClientRect(),Qe={top:"50%",left:"50%"};Ne.indexOf("top")>=0||Ne.indexOf("Bottom")>=0?Qe.top="".concat(Ue.height-Ze.offset[1],"px"):(Ne.indexOf("Top")>=0||Ne.indexOf("bottom")>=0)&&(Qe.top="".concat(-Ze.offset[1],"px")),Ne.indexOf("left")>=0||Ne.indexOf("Right")>=0?Qe.left="".concat(Ue.width-Ze.offset[0],"px"):(Ne.indexOf("right")>=0||Ne.indexOf("Left")>=0)&&(Qe.left="".concat(-Ze.offset[0],"px")),Oi.style.transformOrigin="".concat(Qe.left," ").concat(Qe.top)},at=function(){var Oi=Rn.title,Ze=Rn.overlay;return Oi===0?Oi:Ze||Oi||""},bt=Rn.prefixCls,kt=Rn.openClassName,Pt=Rn.getPopupContainer,Et=Rn.getTooltipContainer,Ht=Rn.overlayClassName,ot=Rn.color,Mt=Rn.overlayInnerStyle,xr=Rn.children,ur=ue("tooltip",bt),gr=$e;!("visible"in Rn)&&qt()&&(gr=!1);var Qr=Dn(Object($t.b)(xr)?xr:f.createElement("span",null,xr),ur),ln=Qr.props,_n=C()(ln.className,x()({},kt||"".concat(ur,"-open"),!0)),Mn=C()(Ht,(Vn={},x()(Vn,"".concat(ur,"-rtl"),Ee==="rtl"),x()(Vn,"".concat(ur,"-").concat(ot),ot&&yn.test(ot)),Vn)),li,ai;return ot&&!yn.test(ot)&&(li=m()(m()({},Mt),{background:ot}),ai={background:ot}),f.createElement(ut,m()({},Rn,{prefixCls:ur,overlayClassName:Mn,getTooltipContainer:Pt||Et||st,ref:kn,builtinPlacements:an(),overlay:at(),visible:gr,onVisibleChange:Mr,onPopupAlign:_t,overlayInnerStyle:li,arrowContent:f.createElement("span",{className:"".concat(ur,"-arrow-content"),style:ai})}),gr?Object($t.a)(Qr,{className:_n}):Qr)});Un.displayName="Tooltip",Un.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var wi=P.a=Un},"3TkU":function(U,P,d){d("aTJb"),d("OlYY"),d("fc+c"),d("QUw5"),d("Swgg"),d("LBfv"),d("noeP")},"3X6L":function(U,P,d){var O=d("bYtY"),x=d("7a+S"),T=d("OKJ2"),v=x.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});O.mixin(v,T);var S=v;U.exports=S},"3e3G":function(U,P,d){var O=d("bYtY"),x=d("QuXc"),T=function(m,f,c,o,r){this.x=m==null?.5:m,this.y=f==null?.5:f,this.r=c==null?.5:c,this.type="radial",this.global=r||!1,x.call(this,o)};T.prototype={constructor:T},O.inherits(T,x);var v=T;U.exports=v},"3gBT":function(U,P){var d=2311;function O(){return d++}U.exports=O},"3hzK":function(U,P){var d={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}};U.exports=d},"3m61":function(U,P){function d(x){return x instanceof Array||(x=[x,x]),x}function O(x){x.eachSeriesByType("graph",function(T){var v=T.getGraph(),S=T.getEdgeData(),m=d(T.get("edgeSymbol")),f=d(T.get("edgeSymbolSize")),c="lineStyle.color".split("."),o="lineStyle.opacity".split(".");S.setVisual("fromSymbol",m&&m[0]),S.setVisual("toSymbol",m&&m[1]),S.setVisual("fromSymbolSize",f&&f[0]),S.setVisual("toSymbolSize",f&&f[1]),S.setVisual("color",T.get(c)),S.setVisual("opacity",T.get(o)),S.each(function(r){var a=S.getItemModel(r),n=v.getEdgeByIndex(r),e=d(a.getShallow("symbol",!0)),s=d(a.getShallow("symbolSize",!0)),t=a.get(c),i=a.get(o);switch(t){case"source":t=n.node1.getVisual("color");break;case"target":t=n.node2.getVisual("color");break}e[0]&&n.setVisual("fromSymbol",e[0]),e[1]&&n.setVisual("toSymbol",e[1]),s[0]&&n.setVisual("fromSymbolSize",s[0]),s[1]&&n.setVisual("toSymbolSize",s[1]),n.setVisual("color",t),n.setVisual("opacity",i)})})}U.exports=O},"3ouR":function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M354 671h58.9c4.7 0 9.2-2.1 12.3-5.7L512 561.8l86.8 103.5c3 3.6 7.5 5.7 12.3 5.7H670c6.8 0 10.5-7.9 6.1-13.1L553.8 512l122.4-145.9c4.4-5.2.7-13.1-6.1-13.1h-58.9c-4.7 0-9.2 2.1-12.3 5.7L512 462.2l-86.8-103.5c-3-3.6-7.5-5.7-12.3-5.7H354c-6.8 0-10.5 7.9-6.1 13.1L470.2 512 347.9 657.9A7.95 7.95 0 00354 671z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"close-square",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="CloseSquareOutlined";var f=P.a=x.forwardRef(m)},"3y9D":function(U,P,d){(function(O,x){U.exports=P=x(d("Ib8C"))})(this,function(O){return function(){var x=O,T=x.lib,v=T.WordArray,S=T.Hasher,m=x.algo,f=[],c=m.SHA1=S.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,a){for(var n=this._hash.words,e=n[0],s=n[1],t=n[2],i=n[3],l=n[4],u=0;u<80;u++){if(u<16)f[u]=r[a+u]|0;else{var h=f[u-3]^f[u-8]^f[u-14]^f[u-16];f[u]=h<<1|h>>>31}var p=(e<<5|e>>>27)+l+f[u];u<20?p+=(s&t|~s&i)+1518500249:u<40?p+=(s^t^i)+1859775393:u<60?p+=(s&t|s&i|t&i)-1894007588:p+=(s^t^i)-899497514,l=i,i=t,t=s<<30|s>>>2,s=e,e=p}n[0]=n[0]+e|0,n[1]=n[1]+s|0,n[2]=n[2]+t|0,n[3]=n[3]+i|0,n[4]=n[4]+l|0},_doFinalize:function(){var r=this._data,a=r.words,n=this._nDataBytes*8,e=r.sigBytes*8;return a[e>>>5]|=128<<24-e%32,a[(e+64>>>9<<4)+14]=Math.floor(n/4294967296),a[(e+64>>>9<<4)+15]=n,r.sigBytes=a.length*4,this._process(),this._hash},clone:function(){var r=S.clone.call(this);return r._hash=this._hash.clone(),r}});x.SHA1=S._createHelper(c),x.HmacSHA1=S._createHmacHelper(c)}(),O.SHA1})},"3zoK":function(U,P,d){var O=d("bYtY"),x=d("bLfw"),T=d("KCsZ"),v=d("nkfE"),S=d("OELB"),m=d("ICMv"),f=x.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return T([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(a){var n=this.activeIntervals=O.clone(a);if(n)for(var e=n.length-1;e>=0;e--)S.asc(n[e])},getActiveState:function(a){var n=this.activeIntervals;if(!n.length)return"normal";if(a==null||isNaN(a))return"inactive";if(n.length===1){var e=n[0];if(e[0]<=a&&a<=e[1])return"active"}else for(var s=0,t=n.length;s<t;s++)if(n[s][0]<=a&&a<=n[s][1])return"active";return"inactive"}}),c={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};O.merge(f.prototype,m);function o(a,n){return n.type||(n.data?"category":"value")}v("parallel",f,o,c);var r=f;U.exports=r},"49sm":function(U,P){var d={}.toString;U.exports=Array.isArray||function(O){return d.call(O)=="[object Array]"}},"4Feb":function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("bYtY"),v=d("IwbS"),S=d("x3X8"),m=S.getDefaultLabel,f=d("MwEJ"),c=d("nVfU"),o=c.getLayoutOnAxis,r=d("gPAo"),a=d("T4UG"),n=d("Qxkt"),e=d("6Ic6"),s=d("sK/D"),t=s.createClipPath,i=d("qj72"),l=d("ANjR"),u=d("MHtr"),h=d("6usn"),p=d("Rx6q"),g=v.CACHED_LABEL_STYLE_PROPERTIES,A=["itemStyle"],y=["emphasis","itemStyle"],E=["label"],C=["emphasis","label"],w="e\0\0",b={cartesian2d:i,geo:l,singleAxis:u,polar:h,calendar:p};a.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(ie,we){return f(this.getSource(),this)},getDataParams:function(ie,we,Ce){var Le=a.prototype.getDataParams.apply(this,arguments);return Ce&&(Le.info=Ce.info),Le}}),e.extend({type:"custom",_data:null,render:function(ie,we,Ce,Le){var He=this._data,ce=ie.getData(),Pe=this.group,Q=D(ie,ce,we,Ce);ce.diff(He).add(function(Je){R(null,Je,Q(Je,Le),ie,Pe,ce)}).update(function(Je,re){var G=He.getItemGraphicEl(re);R(G,Je,Q(Je,Le),ie,Pe,ce)}).remove(function(Je){var re=He.getItemGraphicEl(Je);re&&Pe.remove(re)}).execute();var me=ie.get("clip",!0)?t(ie.coordinateSystem,!1,ie):null;me?Pe.setClipPath(me):Pe.removeClipPath(),this._data=ce},incrementalPrepareRender:function(ie,we,Ce){this.group.removeAll(),this._data=null},incrementalRender:function(ie,we,Ce,Le,He){var ce=we.getData(),Pe=D(we,ce,Ce,Le);function Q(re){re.isGroup||(re.incremental=!0,re.useHoverLayer=!0)}for(var me=ie.start;me<ie.end;me++){var Je=R(null,me,Pe(me,He),we,this.group,ce);Je.traverse(Q)}},dispose:T.noop,filterForExposedEvent:function(ie,we,Ce,Le){var He=we.element;if(He==null||Ce.name===He)return!0;for(;(Ce=Ce.parent)&&Ce!==this.group;)if(Ce.name===He)return!0;return!1}});function I(ie){var we=ie.type,Ce;if(we==="path"){var Le=ie.shape,He=Le.width!=null&&Le.height!=null?{x:Le.x||0,y:Le.y||0,width:Le.width,height:Le.height}:null,ce=Y(Le);Ce=v.makePath(ce,null,He,Le.layout||"center"),Ce.__customPathData=ce}else if(we==="image")Ce=new v.Image({}),Ce.__customImagePath=ie.style.image;else if(we==="text")Ce=new v.Text({}),Ce.__customText=ie.style.text;else if(we==="group")Ce=new v.Group;else{if(we==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var Pe=v.getShapeClass(we);Ce=new Pe}return Ce.__customGraphicType=we,Ce.name=ie.name,Ce}function _(ie,we,Ce,Le,He,ce,Pe){var Q={},me=Ce.style||{};if(Ce.shape&&(Q.shape=T.clone(Ce.shape)),Ce.position&&(Q.position=Ce.position.slice()),Ce.scale&&(Q.scale=Ce.scale.slice()),Ce.origin&&(Q.origin=Ce.origin.slice()),Ce.rotation&&(Q.rotation=Ce.rotation),ie.type==="image"&&Ce.style){var Je=Q.style={};T.each(["x","y","width","height"],function(X){L(X,Je,me,ie.style,ce)})}if(ie.type==="text"&&Ce.style){var Je=Q.style={};T.each(["x","y"],function(J){L(J,Je,me,ie.style,ce)}),!me.hasOwnProperty("textFill")&&me.fill&&(me.textFill=me.fill),!me.hasOwnProperty("textStroke")&&me.stroke&&(me.textStroke=me.stroke)}if(ie.type!=="group"&&(ie.useStyle(me),ce)){ie.style.opacity=0;var re=me.opacity;re==null&&(re=1),v.initProps(ie,{style:{opacity:re}},Le,we)}ce?ie.attr(Q):v.updateProps(ie,Q,Le,we),Ce.hasOwnProperty("z2")&&ie.attr("z2",Ce.z2||0),Ce.hasOwnProperty("silent")&&ie.attr("silent",Ce.silent),Ce.hasOwnProperty("invisible")&&ie.attr("invisible",Ce.invisible),Ce.hasOwnProperty("ignore")&&ie.attr("ignore",Ce.ignore),Ce.hasOwnProperty("info")&&ie.attr("info",Ce.info);var G=Ce.styleEmphasis;v.setElementHoverStyle(ie,G),Pe&&v.setAsHighDownDispatcher(ie,G!==!1)}function L(ie,we,Ce,Le,He){Ce[ie]!=null&&!He&&(we[ie]=Ce[ie],Ce[ie]=Le[ie])}function D(ie,we,Ce,Le){var He=ie.get("renderItem"),ce=ie.coordinateSystem,Pe={};ce&&(Pe=ce.prepareCustoms?ce.prepareCustoms():b[ce.type](ce));var Q=T.defaults({getWidth:Le.getWidth,getHeight:Le.getHeight,getZr:Le.getZr,getDevicePixelRatio:Le.getDevicePixelRatio,value:Me,style:Ie,styleEmphasis:oe,visual:pe,barLayout:Oe,currentSeriesIndices:Ye,font:it},Pe.api||{}),me={context:{},seriesId:ie.id,seriesName:ie.name,seriesIndex:ie.seriesIndex,coordSys:Pe.coordSys,dataInsideLength:we.count(),encode:N(ie.getData())},Je,re=!0,G,X,J,Ae;return function(et,Te){return Je=et,re=!0,He&&He(T.defaults({dataIndexInside:et,dataIndex:we.getRawIndex(et),actionType:Te?Te.type:null},me),Q)};function he(et){et==null&&(et=Je),re&&(G=we.getItemModel(et),X=G.getModel(E),J=G.getModel(C),Ae=we.getItemVisual(et,"color"),re=!1)}function Me(et,Te){return Te==null&&(Te=Je),we.get(we.getDimension(et||0),Te)}function Ie(et,Te){Te==null&&(Te=Je),he(Te);var tt=G.getModel(A).getItemStyle();Ae!=null&&(tt.fill=Ae);var ze=we.getItemVisual(Te,"opacity");ze!=null&&(tt.opacity=ze);var dt=et?j(et,X):X;return v.setTextStyle(tt,dt,null,{autoColor:Ae,isRectText:!0}),tt.text=dt.getShallow("show")?T.retrieve2(ie.getFormattedLabel(Te,"normal"),m(we,Te)):null,et&&V(tt,et),tt}function oe(et,Te){Te==null&&(Te=Je),he(Te);var tt=G.getModel(y).getItemStyle(),ze=et?j(et,J):J;return v.setTextStyle(tt,ze,null,{isRectText:!0},!0),tt.text=ze.getShallow("show")?T.retrieve3(ie.getFormattedLabel(Te,"emphasis"),ie.getFormattedLabel(Te,"normal"),m(we,Te)):null,et&&V(tt,et),tt}function pe(et,Te){return Te==null&&(Te=Je),we.getItemVisual(Te,et)}function Oe(et){if(ce.getBaseAxis){var Te=ce.getBaseAxis();return o(T.defaults({axis:Te},et),Le)}}function Ye(){return Ce.getCurrentSeriesIndices()}function it(et){return v.getFont(et,Ce)}}function N(ie){var we={};return T.each(ie.dimensions,function(Ce,Le){var He=ie.getDimensionInfo(Ce);if(!He.isExtraCoord){var ce=He.coordDim,Pe=we[ce]=we[ce]||[];Pe[He.coordDimIndex]=Le}}),we}function R(ie,we,Ce,Le,He,ce){return ie=B(ie,we,Ce,Le,He,ce,!0),ie&&ce.setItemGraphicEl(we,ie),ie}function B(ie,we,Ce,Le,He,ce,Pe){var Q=!Ce;Ce=Ce||{};var me=Ce.type,Je=Ce.shape,re=Ce.style;if(ie&&(Q||me!=null&&me!==ie.__customGraphicType||me==="path"&&ee(Je)&&Y(Je)!==ie.__customPathData||me==="image"&&fe(re,"image")&&re.image!==ie.__customImagePath||me==="text"&&fe(Je,"text")&&re.text!==ie.__customText)&&(He.remove(ie),ie=null),Q)return;var G=!ie;return!ie&&(ie=I(Ce)),_(ie,we,Ce,Le,ce,G,Pe),me==="group"&&M(ie,we,Ce,Le,ce),He.add(ie),ie}function M(ie,we,Ce,Le,He){var ce=Ce.children,Pe=ce?ce.length:0,Q=Ce.$mergeChildren,me=Q==="byName"||Ce.diffChildrenByName,Je=Q===!1;if(!Pe&&!me&&!Je)return;if(me){H({oldChildren:ie.children()||[],newChildren:ce||[],dataIndex:we,animatableModel:Le,group:ie,data:He});return}Je&&ie.removeAll();for(var re=0;re<Pe;re++)ce[re]&&B(ie.childAt(re),we,ce[re],Le,ie,He)}function H(ie){new r(ie.oldChildren,ie.newChildren,F,F,ie).add(K).update(K).remove(z).execute()}function F(ie,we){var Ce=ie&&ie.name;return Ce!=null?Ce:w+we}function K(ie,we){var Ce=this.context,Le=ie!=null?Ce.newChildren[ie]:null,He=we!=null?Ce.oldChildren[we]:null;B(He,Ce.dataIndex,Le,Ce.animatableModel,Ce.group,Ce.data)}function j(ie,we){var Ce=new n({},we);return T.each(g,function(Le,He){ie.hasOwnProperty(Le)&&(Ce.option[He]=ie[Le])}),Ce}function V(ie,we){for(var Ce in we)(we.hasOwnProperty(Ce)||!g.hasOwnProperty(Ce))&&(ie[Ce]=we[Ce])}function z(ie){var we=this.context,Ce=we.oldChildren[ie];Ce&&we.group.remove(Ce)}function Y(ie){return ie&&(ie.pathData||ie.d)}function ee(ie){return ie&&(ie.hasOwnProperty("pathData")||ie.hasOwnProperty("d"))}function fe(ie,we){return ie&&ie.hasOwnProperty(we)}},"4HMb":function(U,P,d){var O=d("bYtY"),x=d("6GrX"),T=d("4NO4"),v=T.makeInner,S=d("aX7z"),m=S.makeLabelFormatter,f=S.getOptionCategoryInterval,c=S.shouldShowAllLabels,o=v();function r(E){return E.type==="category"?n(E):t(E)}function a(E,C){return E.type==="category"?s(E,C):{ticks:E.scale.getTicks()}}function n(E){var C=E.getLabelModel(),w=e(E,C);return!C.get("show")||E.scale.isBlank()?{labels:[],labelCategoryInterval:w.labelCategoryInterval}:w}function e(E,C){var w=i(E,"labels"),b=f(C),I=l(w,b);if(I)return I;var _,L;return O.isFunction(b)?_=y(E,b):(L=b==="auto"?h(E):b,_=A(E,L)),u(w,b,{labels:_,labelCategoryInterval:L})}function s(E,C){var w=i(E,"ticks"),b=f(C),I=l(w,b);if(I)return I;var _,L;if((!C.get("show")||E.scale.isBlank())&&(_=[]),O.isFunction(b))_=y(E,b,!0);else if(b==="auto"){var D=e(E,E.getLabelModel());L=D.labelCategoryInterval,_=O.map(D.labels,function(N){return N.tickValue})}else L=b,_=A(E,L,!0);return u(w,b,{ticks:_,tickCategoryInterval:L})}function t(E){var C=E.scale.getTicks(),w=m(E);return{labels:O.map(C,function(b,I){return{formattedLabel:w(b,I),rawLabel:E.scale.getLabel(b),tickValue:b}})}}function i(E,C){return o(E)[C]||(o(E)[C]=[])}function l(E,C){for(var w=0;w<E.length;w++)if(E[w].key===C)return E[w].value}function u(E,C,w){return E.push({key:C,value:w}),w}function h(E){var C=o(E).autoInterval;return C!=null?C:o(E).autoInterval=E.calculateCategoryInterval()}function p(E){var C=g(E),w=m(E),b=(C.axisRotate-C.labelRotate)/180*Math.PI,I=E.scale,_=I.getExtent(),L=I.count();if(_[1]-_[0]<1)return 0;var D=1;L>40&&(D=Math.max(1,Math.floor(L/40)));for(var N=_[0],R=E.dataToCoord(N+1)-E.dataToCoord(N),B=Math.abs(R*Math.cos(b)),M=Math.abs(R*Math.sin(b)),H=0,F=0;N<=_[1];N+=D){var K=0,j=0,V=x.getBoundingRect(w(N),C.font,"center","top");K=V.width*1.3,j=V.height*1.3,H=Math.max(H,K,7),F=Math.max(F,j,7)}var z=H/B,Y=F/M;isNaN(z)&&(z=Infinity),isNaN(Y)&&(Y=Infinity);var ee=Math.max(0,Math.floor(Math.min(z,Y))),fe=o(E.model),ie=E.getExtent(),we=fe.lastAutoInterval,Ce=fe.lastTickCount;return we!=null&&Ce!=null&&Math.abs(we-ee)<=1&&Math.abs(Ce-L)<=1&&we>ee&&fe.axisExtend0===ie[0]&&fe.axisExtend1===ie[1]?ee=we:(fe.lastTickCount=L,fe.lastAutoInterval=ee,fe.axisExtend0=ie[0],fe.axisExtend1=ie[1]),ee}function g(E){var C=E.getLabelModel();return{axisRotate:E.getRotate?E.getRotate():E.isHorizontal&&!E.isHorizontal()?90:0,labelRotate:C.get("rotate")||0,font:C.getFont()}}function A(E,C,w){var b=m(E),I=E.scale,_=I.getExtent(),L=E.getLabelModel(),D=[],N=Math.max((C||0)+1,1),R=_[0],B=I.count();R!==0&&N>1&&B/N>2&&(R=Math.round(Math.ceil(R/N)*N));var M=c(E),H=L.get("showMinLabel")||M,F=L.get("showMaxLabel")||M;H&&R!==_[0]&&j(_[0]);for(var K=R;K<=_[1];K+=N)j(K);F&&K-N!==_[1]&&j(_[1]);function j(V){D.push(w?V:{formattedLabel:b(V),rawLabel:I.getLabel(V),tickValue:V})}return D}function y(E,C,w){var b=E.scale,I=m(E),_=[];return O.each(b.getTicks(),function(L){var D=b.getLabel(L);C(L,D)&&_.push(w?L:{formattedLabel:I(L),rawLabel:D,tickValue:L})}),_}P.createAxisLabels=r,P.createAxisTicks=a,P.calculateCategoryInterval=p},"4NO4":function(U,P,d){var O=d("bYtY"),x=d("ItGF"),T=O.each,v=O.isObject,S=O.isArray,m="series\0";function f(w){return w instanceof Array?w:w==null?[]:[w]}function c(w,b,I){if(w){w[b]=w[b]||{},w.emphasis=w.emphasis||{},w.emphasis[b]=w.emphasis[b]||{};for(var _=0,L=I.length;_<L;_++){var D=I[_];!w.emphasis[b].hasOwnProperty(D)&&w[b].hasOwnProperty(D)&&(w.emphasis[b][D]=w[b][D])}}}var o=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function r(w){return v(w)&&!S(w)&&!(w instanceof Date)?w.value:w}function a(w){return v(w)&&!(w instanceof Array)}function n(w,b){b=(b||[]).slice();var I=O.map(w||[],function(_,L){return{exist:_}});return T(b,function(_,L){if(!v(_))return;for(var D=0;D<I.length;D++)if(!I[D].option&&_.id!=null&&I[D].exist.id===_.id+""){I[D].option=_,b[L]=null;return}for(var D=0;D<I.length;D++){var N=I[D].exist;if(!I[D].option&&(N.id==null||_.id==null)&&_.name!=null&&!t(_)&&!t(N)&&N.name===_.name+""){I[D].option=_,b[L]=null;return}}}),T(b,function(_,L){if(!v(_))return;for(var D=0;D<I.length;D++){var N=I[D].exist;if(!I[D].option&&!t(N)&&_.id==null){I[D].option=_;break}}D>=I.length&&I.push({option:_})}),I}function e(w){var b=O.createHashMap();T(w,function(I,_){var L=I.exist;L&&b.set(L.id,I)}),T(w,function(I,_){var L=I.option;O.assert(!L||L.id==null||!b.get(L.id)||b.get(L.id)===I,"id duplicates: "+(L&&L.id)),L&&L.id!=null&&b.set(L.id,I),!I.keyInfo&&(I.keyInfo={})}),T(w,function(I,_){var L=I.exist,D=I.option,N=I.keyInfo;if(!v(D))return;if(N.name=D.name!=null?D.name+"":L?L.name:m+_,L)N.id=L.id;else if(D.id!=null)N.id=D.id+"";else{var R=0;do N.id="\0"+N.name+"\0"+R++;while(b.get(N.id))}b.set(N.id,I)})}function s(w){var b=w.name;return!!(b&&b.indexOf(m))}function t(w){return v(w)&&w.id&&(w.id+"").indexOf("\0_ec_\0")===0}function i(w,b){var I={},_={};return L(w||[],I),L(b||[],_,I),[D(I),D(_)];function L(N,R,B){for(var M=0,H=N.length;M<H;M++)for(var F=N[M].seriesId,K=f(N[M].dataIndex),j=B&&B[F],V=0,z=K.length;V<z;V++){var Y=K[V];j&&j[Y]?j[Y]=null:(R[F]||(R[F]={}))[Y]=1}}function D(N,R){var B=[];for(var M in N)if(N.hasOwnProperty(M)&&N[M]!=null)if(R)B.push(+M);else{var H=D(N[M],!0);H.length&&B.push({seriesId:M,dataIndex:H})}return B}}function l(w,b){if(b.dataIndexInside!=null)return b.dataIndexInside;if(b.dataIndex!=null)return O.isArray(b.dataIndex)?O.map(b.dataIndex,function(I){return w.indexOfRawIndex(I)}):w.indexOfRawIndex(b.dataIndex);if(b.name!=null)return O.isArray(b.name)?O.map(b.name,function(I){return w.indexOfName(I)}):w.indexOfName(b.name)}function u(){var w="__\0ec_inner_"+h+++"_"+Math.random().toFixed(5);return function(b){return b[w]||(b[w]={})}}var h=0;function p(w,b,I){if(O.isString(b)){var _={};_[b+"Index"]=0,b=_}var L=I&&I.defaultMainType;L&&!g(b,L+"Index")&&!g(b,L+"Id")&&!g(b,L+"Name")&&(b[L+"Index"]=0);var D={};return T(b,function(N,R){var N=b[R];if(R==="dataIndex"||R==="dataIndexInside"){D[R]=N;return}var B=R.match(/^(\w+)(Index|Id|Name)$/)||[],M=B[1],H=(B[2]||"").toLowerCase();if(!M||!H||N==null||H==="index"&&N==="none"||I&&I.includeMainTypes&&O.indexOf(I.includeMainTypes,M)<0)return;var F={mainType:M};(H!=="index"||N!=="all")&&(F[H]=N);var K=w.queryComponents(F);D[M+"Models"]=K,D[M+"Model"]=K[0]}),D}function g(w,b){return w&&w.hasOwnProperty(b)}function A(w,b,I){w.setAttribute?w.setAttribute(b,I):w[b]=I}function y(w,b){return w.getAttribute?w.getAttribute(b):w[b]}function E(w){return w==="auto"?x.domSupported?"html":"richText":w||"html"}function C(w,b){var I=O.createHashMap(),_=[];return O.each(w,function(L){var D=b(L);(I.get(D)||(_.push(D),I.set(D,[]))).push(L)}),{keys:_,buckets:I}}P.normalizeToArray=f,P.defaultEmphasis=c,P.TEXT_STYLE_OPTIONS=o,P.getDataItemValue=r,P.isDataItemOption=a,P.mappingToExists=n,P.makeIdAndName=e,P.isNameSpecified=s,P.isIdInner=t,P.compressBatches=i,P.queryDataIndex=l,P.makeInner=u,P.parseFinder=p,P.setAttribute=A,P.getAttribute=y,P.getTooltipRenderMode=E,P.groupData=C},"4NgU":function(U,P,d){var O=d("Yl7c");function x(v){this._setting=v||{},this._extent=[Infinity,-Infinity],this._interval=0,this.init&&this.init.apply(this,arguments)}x.prototype.parse=function(v){return v},x.prototype.getSetting=function(v){return this._setting[v]},x.prototype.contain=function(v){var S=this._extent;return v>=S[0]&&v<=S[1]},x.prototype.normalize=function(v){var S=this._extent;return S[1]===S[0]?.5:(v-S[0])/(S[1]-S[0])},x.prototype.scale=function(v){var S=this._extent;return v*(S[1]-S[0])+S[0]},x.prototype.unionExtent=function(v){var S=this._extent;v[0]<S[0]&&(S[0]=v[0]),v[1]>S[1]&&(S[1]=v[1])},x.prototype.unionExtentFromData=function(v,S){this.unionExtent(v.getApproximateExtent(S))},x.prototype.getExtent=function(){return this._extent.slice()},x.prototype.setExtent=function(v,S){var m=this._extent;isNaN(v)||(m[0]=v),isNaN(S)||(m[1]=S)},x.prototype.isBlank=function(){return this._isBlank},x.prototype.setBlank=function(v){this._isBlank=v},x.prototype.getLabel=null,O.enableClassExtend(x),O.enableClassManagement(x,{registerWhenExtend:!0});var T=x;U.exports=T},"4fz+":function(U,P,d){var O=d("bYtY"),x=d("1bdT"),T=d("mFDi"),v=function(f){f=f||{},x.call(this,f);for(var c in f)f.hasOwnProperty(c)&&(this[c]=f[c]);this._children=[],this.__storage=null,this.__dirty=!0};v.prototype={constructor:v,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(f){return this._children[f]},childOfName:function(f){for(var c=this._children,o=0;o<c.length;o++)if(c[o].name===f)return c[o]},childCount:function(){return this._children.length},add:function(f){return f&&f!==this&&f.parent!==this&&(this._children.push(f),this._doAdd(f)),this},addBefore:function(f,c){if(f&&f!==this&&f.parent!==this&&c&&c.parent===this){var o=this._children,r=o.indexOf(c);r>=0&&(o.splice(r,0,f),this._doAdd(f))}return this},_doAdd:function(f){f.parent&&f.parent.remove(f),f.parent=this;var c=this.__storage,o=this.__zr;c&&c!==f.__storage&&(c.addToStorage(f),f instanceof v&&f.addChildrenToStorage(c)),o&&o.refresh()},remove:function(f){var c=this.__zr,o=this.__storage,r=this._children,a=O.indexOf(r,f);return a<0?this:(r.splice(a,1),f.parent=null,o&&(o.delFromStorage(f),f instanceof v&&f.delChildrenFromStorage(o)),c&&c.refresh(),this)},removeAll:function(){var f=this._children,c=this.__storage,o,r;for(r=0;r<f.length;r++)o=f[r],c&&(c.delFromStorage(o),o instanceof v&&o.delChildrenFromStorage(c)),o.parent=null;return f.length=0,this},eachChild:function(f,c){for(var o=this._children,r=0;r<o.length;r++){var a=o[r];f.call(c,a,r)}return this},traverse:function(f,c){for(var o=0;o<this._children.length;o++){var r=this._children[o];f.call(c,r),r.type==="group"&&r.traverse(f,c)}return this},addChildrenToStorage:function(f){for(var c=0;c<this._children.length;c++){var o=this._children[c];f.addToStorage(o),o instanceof v&&o.addChildrenToStorage(f)}},delChildrenFromStorage:function(f){for(var c=0;c<this._children.length;c++){var o=this._children[c];f.delFromStorage(o),o instanceof v&&o.delChildrenFromStorage(f)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(f){for(var c=null,o=new T(0,0,0,0),r=f||this._children,a=[],n=0;n<r.length;n++){var e=r[n];if(e.ignore||e.invisible)continue;var s=e.getBoundingRect(),t=e.getLocalTransform(a);t?(o.copy(s),o.applyTransform(t),c=c||o.clone(),c.union(o)):(c=c||s.clone(),c.union(s))}return c||o}},O.inherits(v,x);var S=v;U.exports=S},"4i/N":function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="CloseOutlined";var f=P.a=x.forwardRef(m)},"4mN7":function(U,P,d){var O=d("QBsz"),x=d("Sj9i"),T=Math.min,v=Math.max,S=Math.sin,m=Math.cos,f=Math.PI*2,c=O.create(),o=O.create(),r=O.create();function a(u,h,p){if(u.length===0)return;var g=u[0],A=g[0],y=g[0],E=g[1],C=g[1],w;for(w=1;w<u.length;w++)g=u[w],A=T(A,g[0]),y=v(y,g[0]),E=T(E,g[1]),C=v(C,g[1]);h[0]=A,h[1]=E,p[0]=y,p[1]=C}function n(u,h,p,g,A,y){A[0]=T(u,p),A[1]=T(h,g),y[0]=v(u,p),y[1]=v(h,g)}var e=[],s=[];function t(u,h,p,g,A,y,E,C,w,b){var I=x.cubicExtrema,_=x.cubicAt,L,D=I(u,p,A,E,e);for(w[0]=Infinity,w[1]=Infinity,b[0]=-Infinity,b[1]=-Infinity,L=0;L<D;L++){var N=_(u,p,A,E,e[L]);w[0]=T(N,w[0]),b[0]=v(N,b[0])}for(D=I(h,g,y,C,s),L=0;L<D;L++){var R=_(h,g,y,C,s[L]);w[1]=T(R,w[1]),b[1]=v(R,b[1])}w[0]=T(u,w[0]),b[0]=v(u,b[0]),w[0]=T(E,w[0]),b[0]=v(E,b[0]),w[1]=T(h,w[1]),b[1]=v(h,b[1]),w[1]=T(C,w[1]),b[1]=v(C,b[1])}function i(u,h,p,g,A,y,E,C){var w=x.quadraticExtremum,b=x.quadraticAt,I=v(T(w(u,p,A),1),0),_=v(T(w(h,g,y),1),0),L=b(u,p,A,I),D=b(h,g,y,_);E[0]=T(u,A,L),E[1]=T(h,y,D),C[0]=v(u,A,L),C[1]=v(h,y,D)}function l(u,h,p,g,A,y,E,C,w){var b=O.min,I=O.max,_=Math.abs(A-y);if(_%f<1e-4&&_>1e-4){C[0]=u-p,C[1]=h-g,w[0]=u+p,w[1]=h+g;return}if(c[0]=m(A)*p+u,c[1]=S(A)*g+h,o[0]=m(y)*p+u,o[1]=S(y)*g+h,b(C,c,o),I(w,c,o),A=A%f,A<0&&(A=A+f),y=y%f,y<0&&(y=y+f),A>y&&!E?y+=f:A<y&&E&&(A+=f),E){var L=y;y=A,A=L}for(var D=0;D<y;D+=Math.PI/2)D>A&&(r[0]=m(D)*p+u,r[1]=S(D)*g+h,b(C,r,C),I(w,r,w))}P.fromPoints=a,P.fromLine=n,P.fromCubic=t,P.fromQuadratic=i,P.fromArc=l},"4vCz":function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("X2/X")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="PlusSquareOutlined";var c=v.forwardRef(f);P.default=c},"4xFK":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};P.default=O},"56rv":function(U,P,d){var O=d("IwbS"),x=d("x3X8"),T=x.getDefaultLabel;function v(m,f,c,o,r,a,n){var e=c.getModel("label"),s=c.getModel("emphasis.label");O.setLabelStyle(m,f,e,s,{labelFetcher:r,labelDataIndex:a,defaultText:T(r.getData(),a),isRectText:!0,autoColor:o}),S(m),S(f)}function S(m,f){m.textPosition==="outside"&&(m.textPosition=f)}P.setLabel=v},"59Ip":function(U,P,d){var O=d("Sj9i");function x(T,v,S,m,f,c,o,r,a,n,e){if(a===0)return!1;var s=a;if(e>v+s&&e>m+s&&e>c+s&&e>r+s||e<v-s&&e<m-s&&e<c-s&&e<r-s||n>T+s&&n>S+s&&n>f+s&&n>o+s||n<T-s&&n<S-s&&n<f-s&&n<o-s)return!1;var t=O.cubicProjectPoint(T,v,S,m,f,c,o,r,n,e,null);return t<=s/2}P.containStroke=x},"5Dmo":function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("5YgA"),v=d.n(T)},"5GOC":function(U,P,d){"use strict";var O=d("cIOH"),x=d("b56q"),T=d("15/o")},"5GhG":function(U,P,d){var O=d("5GtS"),x=d("bYtY"),T=d("L0Ub"),v=T.getDimensionTypeByAxis,S=d("D5nY"),m=S.makeSeriesEncodeForAxisCoordSys,f={_baseAxisDim:null,getInitialData:function(c,o){var r,a=o.getComponent("xAxis",this.get("xAxisIndex")),n=o.getComponent("yAxis",this.get("yAxisIndex")),e=a.get("type"),s=n.get("type"),t;e==="category"?(c.layout="horizontal",r=a.getOrdinalMeta(),t=!0):s==="category"?(c.layout="vertical",r=n.getOrdinalMeta(),t=!0):c.layout=c.layout||"horizontal";var i=["x","y"],l=c.layout==="horizontal"?0:1,u=this._baseAxisDim=i[l],h=i[1-l],p=[a,n],g=p[l].get("type"),A=p[1-l].get("type"),y=c.data;if(y&&t){var E=[];x.each(y,function(b,I){var _;b.value&&x.isArray(b.value)?(_=b.value.slice(),b.value.unshift(I)):x.isArray(b)?(_=b.slice(),b.unshift(I)):_=b,E.push(_)}),c.data=E}var C=this.defaultValueDimensions,w=[{name:u,type:v(g),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:v(A),dimsDef:C.slice()}];return O(this,{coordDimensions:w,dimensionsCount:C.length+1,encodeDefaulter:x.curry(m,w,this)})},getBaseAxis:function(){var c=this._baseAxisDim;return this.ecModel.getComponent(c+"Axis",this.get(c+"AxisIndex")).axis}};P.seriesModelMixin=f},"5GtS":function(U,P,d){var O=d("sdST"),x=d("YXkt"),T=d("bYtY"),v=T.extend,S=T.isArray;function m(f,c,o){c=S(c)&&{coordDimensions:c}||v({},c);var r=f.getSource(),a=O(r,c),n=new x(a,f);return n.initData(r,o),n}U.exports=m},"5Hur":function(U,P,d){var O=d("4NO4"),x=O.makeInner,T=O.normalizeToArray,v=x();function S(f,c){for(var o=f.length,r=0;r<o;r++)if(f[r].length>c)return f[r];return f[o-1]}var m={clearColorPalette:function(){v(this).colorIdx=0,v(this).colorNameMap={}},getColorFromPalette:function(f,c,o){c=c||this;var r=v(c),a=r.colorIdx||0,n=r.colorNameMap=r.colorNameMap||{};if(n.hasOwnProperty(f))return n[f];var e=T(this.get("color",!0)),s=this.get("colorLayer",!0),t=o==null||!s?e:S(s,o);if(t=t||e,!t||!t.length)return;var i=t[a];return f&&(n[f]=i),r.colorIdx=(a+1)%t.length,i}};U.exports=m},"5NDa":function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("OnYD"),v=d.n(T),S=d("+L6B")},"5NHt":function(U,P,d){d("aTJb"),d("OlYY"),d("fc+c"),d("N5BQ"),d("IyUQ"),d("LBfv"),d("noeP")},"5OYt":function(U,P,d){"use strict";var O=d("J4zp"),x=d.n(O),T=d("q1tI"),v=d.n(T),S=d("ACnJ");function m(){var f=Object(T.useState)({}),c=x()(f,2),o=c[0],r=c[1];return Object(T.useEffect)(function(){var a=S.a.subscribe(function(n){r(n)});return function(){return S.a.unsubscribe(a)}},[]),o}P.a=m},"5RzL":function(U,P,d){"use strict";var O=d("pVnL"),x=d.n(O),T=d("lSNA"),v=d.n(T),S=d("lwsE"),m=d.n(S),f=d("W8MJ"),c=d.n(f),o=d("7W2i"),r=d.n(o),a=d("LQ03"),n=d.n(a),e=d("q1tI"),s=d.n(e),t=d("1OyB"),i=d("vuIU"),l=d("Ji7U"),u=d("LK+K"),h=d("KQm4"),p=d("U8pU"),g=d("ODXe"),A=d("VTBJ"),y=d("rePB"),E=d("Ff2n"),C=d("4IlW"),w=d("TSYQ"),b=d.n(w),I=d("6cGi"),_=d("bX4T"),L=d("8XRh"),D=function(sr){var cn=sr.className,Zt=sr.customizeIcon,Ar=sr.customizeIconProps,Nr=sr.onMouseDown,tn=sr.onClick,pn=sr.children,St;return typeof Zt=="function"?St=Zt(Ar):St=Zt,e.createElement("span",{className:cn,onMouseDown:function(fr){fr.preventDefault(),Nr&&Nr(fr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:tn,"aria-hidden":!0},St!==void 0?St:e.createElement("span",{className:b()(cn.split(/\s+/).map(function(cr){return"".concat(cr,"-icon")}))},pn))},N=D,R=d("c+Xe"),B=function(sr,cn){var Zt=sr.prefixCls,Ar=sr.id,Nr=sr.inputElement,tn=sr.disabled,pn=sr.tabIndex,St=sr.autoFocus,cr=sr.autoComplete,fr=sr.editable,Br=sr.accessibilityIndex,$r=sr.value,wn=sr.maxLength,rn=sr.onKeyDown,On=sr.onMouseDown,In=sr.onChange,Gn=sr.onPaste,fi=sr.onCompositionStart,Yn=sr.onCompositionEnd,gi=sr.open,vi=sr.attrs,Di=Nr||e.createElement("input",null),Mi=Di,xi=Mi.ref,bi=Mi.props,Ci=bi.onKeyDown,$i=bi.onChange,qi=bi.onMouseDown,Ti=bi.onCompositionStart,ia=bi.onCompositionEnd,na=bi.style;return Di=e.cloneElement(Di,Object(A.a)(Object(A.a)({id:Ar,ref:Object(R.a)(cn,xi),disabled:tn,tabIndex:pn,autoComplete:cr||"off",type:"search",autoFocus:St,className:"".concat(Zt,"-selection-search-input"),style:Object(A.a)(Object(A.a)({},na),{},{opacity:fr?null:0}),role:"combobox","aria-expanded":gi,"aria-haspopup":"listbox","aria-owns":"".concat(Ar,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ar,"_list"),"aria-activedescendant":"".concat(Ar,"_list_").concat(Br)},vi),{},{value:fr?$r:"",maxLength:wn,readOnly:!fr,unselectable:fr?null:"on",onKeyDown:function(Ki){rn(Ki),Ci&&Ci(Ki)},onMouseDown:function(Ki){On(Ki),qi&&qi(Ki)},onChange:function(Ki){In(Ki),$i&&$i(Ki)},onCompositionStart:function(Ki){fi(Ki),Ti&&Ti(Ki)},onCompositionEnd:function(Ki){Yn(Ki),ia&&ia(Ki)},onPaste:Gn})),Di},M=e.forwardRef(B);M.displayName="Input";var H=M;function F(dr){return Array.isArray(dr)?dr:dr!==void 0?[dr]:[]}function K(dr,sr){var cn=sr.labelInValue,Zt=sr.combobox;if(dr===void 0||dr===""&&Zt)return[];var Ar=Array.isArray(dr)?dr:[dr];return cn?Ar.map(function(Nr){var tn=Nr.key,pn=Nr.value;return pn!==void 0?pn:tn}):Ar}function j(dr,sr){var cn=sr.optionLabelProp,Zt=sr.labelInValue,Ar=sr.prevValue,Nr=sr.options,tn=sr.getLabeledValue,pn=dr;return Zt&&(pn=pn.map(function(St){return tn(St,{options:Nr,prevValue:Ar,labelInValue:Zt,optionLabelProp:cn})})),pn}function V(dr,sr){var cn=Object(h.a)(sr),Zt;for(Zt=dr.length-1;Zt>=0&&dr[Zt].disabled;Zt-=1);var Ar=null;return Zt!==-1&&(Ar=cn[Zt],cn.splice(Zt,1)),{values:cn,removedValue:Ar}}var z=typeof window!="undefined"&&window.document&&window.document.documentElement,Y=z,ee=0;function fe(){var dr;return Y?(dr=ee,ee+=1):dr="TEST_OR_SSR",dr}function ie(dr,sr){Y?e.useLayoutEffect(dr,sr):e.useEffect(dr,sr)}var we="__RC_SELECT_MAX_REST_COUNT__",Ce=function(sr){var cn=sr.id,Zt=sr.prefixCls,Ar=sr.values,Nr=sr.open,tn=sr.searchValue,pn=sr.inputRef,St=sr.placeholder,cr=sr.disabled,fr=sr.mode,Br=sr.showSearch,$r=sr.autoFocus,wn=sr.autoComplete,rn=sr.accessibilityIndex,On=sr.tabIndex,In=sr.removeIcon,Gn=sr.choiceTransitionName,fi=sr.maxTagCount,Yn=sr.maxTagTextLength,gi=sr.maxTagPlaceholder,vi=gi===void 0?function(Aa){return"+ ".concat(Aa.length," ...")}:gi,Di=sr.tagRender,Mi=sr.onSelect,xi=sr.onInputChange,bi=sr.onInputPaste,Ci=sr.onInputKeyDown,$i=sr.onInputMouseDown,qi=sr.onInputCompositionStart,Ti=sr.onInputCompositionEnd,ia=Object(e.useState)(!1),na=Object(g.a)(ia,2),Ui=na[0],Ki=na[1],ra=e.useRef(null),ea=Object(e.useState)(0),va=Object(g.a)(ea,2),sa=va[0],Pa=va[1],ka=Object(e.useState)(!1),Ia=Object(g.a)(ka,2),Ea=Ia[0],So=Ia[1];e.useEffect(function(){Ki(!0)},[]);var Ga=Nr||fr==="tags"?tn:"",Va=fr==="tags"||Br&&(Nr||Ea);ie(function(){Pa(ra.current.scrollWidth)},[Ga]);var Ra=Ar,po;typeof fi=="number"&&(po=Ar.length-fi,Ra=Ar.slice(0,fi)),typeof Yn=="number"&&(Ra=Ra.map(function(Aa){var Io=Aa.label,go=Object(E.a)(Aa,["label"]),Qa=Io;if(typeof Io=="string"||typeof Io=="number"){var wo=String(Qa);wo.length>Yn&&(Qa="".concat(wo.slice(0,Yn),"..."))}return Object(A.a)(Object(A.a)({},go),{},{label:Qa})})),po>0&&Ra.push({key:we,label:typeof vi=="function"?vi(Ar.slice(fi)):vi});var mo=e.createElement(L.a,{component:!1,keys:Ra,motionName:Gn,motionAppear:Ui},function(Aa){var Io=Aa.key,go=Aa.label,Qa=Aa.value,wo=Aa.disabled,pa=Aa.className,to=Aa.style,ao=Io||Qa,Bo=!cr&&Io!==we&&!wo,Ja=function(za){za.preventDefault(),za.stopPropagation()},_o=function(za){za&&za.stopPropagation(),Mi(Qa,{selected:!1})};return typeof Di=="function"?e.createElement("span",{key:ao,onMouseDown:Ja,className:pa,style:to},Di({label:go,value:Qa,disabled:wo,closable:Bo,onClose:_o})):e.createElement("span",{key:ao,className:b()(pa,"".concat(Zt,"-selection-item"),Object(y.a)({},"".concat(Zt,"-selection-item-disabled"),wo)),style:to},e.createElement("span",{className:"".concat(Zt,"-selection-item-content")},go),Bo&&e.createElement(N,{className:"".concat(Zt,"-selection-item-remove"),onMouseDown:Ja,onClick:_o,customizeIcon:In},"\xD7"))});return e.createElement(e.Fragment,null,mo,e.createElement("span",{className:"".concat(Zt,"-selection-search"),style:{width:sa},onFocus:function(){So(!0)},onBlur:function(){So(!1)}},e.createElement(H,{ref:pn,open:Nr,prefixCls:Zt,id:cn,inputElement:null,disabled:cr,autoFocus:$r,autoComplete:wn,editable:Va,accessibilityIndex:rn,value:Ga,onKeyDown:Ci,onMouseDown:$i,onChange:xi,onPaste:bi,onCompositionStart:qi,onCompositionEnd:Ti,tabIndex:On,attrs:Object(_.a)(sr,!0)}),e.createElement("span",{ref:ra,className:"".concat(Zt,"-selection-search-mirror"),"aria-hidden":!0},Ga,"\xA0")),!Ar.length&&!Ga&&e.createElement("span",{className:"".concat(Zt,"-selection-placeholder")},St))},Le=Ce,He=function(sr){var cn=sr.inputElement,Zt=sr.prefixCls,Ar=sr.id,Nr=sr.inputRef,tn=sr.disabled,pn=sr.autoFocus,St=sr.autoComplete,cr=sr.accessibilityIndex,fr=sr.mode,Br=sr.open,$r=sr.values,wn=sr.placeholder,rn=sr.tabIndex,On=sr.showSearch,In=sr.searchValue,Gn=sr.activeValue,fi=sr.maxLength,Yn=sr.onInputKeyDown,gi=sr.onInputMouseDown,vi=sr.onInputChange,Di=sr.onInputPaste,Mi=sr.onInputCompositionStart,xi=sr.onInputCompositionEnd,bi=e.useState(!1),Ci=Object(g.a)(bi,2),$i=Ci[0],qi=Ci[1],Ti=fr==="combobox",ia=Ti||On,na=$r[0],Ui=In||"";Ti&&Gn&&!$i&&(Ui=Gn),e.useEffect(function(){Ti&&qi(!1)},[Ti,Gn]);var Ki=fr!=="combobox"&&!Br?!1:!!Ui,ra=na&&(typeof na.label=="string"||typeof na.label=="number")?na.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(Zt,"-selection-search")},e.createElement(H,{ref:Nr,prefixCls:Zt,id:Ar,open:Br,inputElement:cn,disabled:tn,autoFocus:pn,autoComplete:St,editable:ia,accessibilityIndex:cr,value:Ui,onKeyDown:Yn,onMouseDown:gi,onChange:function(va){qi(!0),vi(va)},onPaste:Di,onCompositionStart:Mi,onCompositionEnd:xi,tabIndex:rn,attrs:Object(_.a)(sr,!0),maxLength:Ti?fi:void 0})),!Ti&&na&&!Ki&&e.createElement("span",{className:"".concat(Zt,"-selection-item"),title:ra},na.label),!na&&!Ki&&e.createElement("span",{className:"".concat(Zt,"-selection-placeholder")},wn))},ce=He;function Pe(){var dr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,sr=e.useRef(null),cn=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(cn.current)}},[]);function Zt(Ar){(Ar||sr.current===null)&&(sr.current=Ar),window.clearTimeout(cn.current),cn.current=window.setTimeout(function(){sr.current=null},dr)}return[function(){return sr.current},Zt]}var Q=function(sr,cn){var Zt=Object(e.useRef)(null),Ar=Object(e.useRef)(!1),Nr=sr.prefixCls,tn=sr.multiple,pn=sr.open,St=sr.mode,cr=sr.showSearch,fr=sr.tokenWithEnter,Br=sr.onSearch,$r=sr.onSearchSubmit,wn=sr.onToggleOpen,rn=sr.onInputKeyDown,On=sr.domRef;e.useImperativeHandle(cn,function(){return{focus:function(){Zt.current.focus()},blur:function(){Zt.current.blur()}}});var In=Pe(0),Gn=Object(g.a)(In,2),fi=Gn[0],Yn=Gn[1],gi=function(Ki){var ra=Ki.which;(ra===C.a.UP||ra===C.a.DOWN)&&Ki.preventDefault(),rn&&rn(Ki),ra===C.a.ENTER&&St==="tags"&&!Ar.current&&!pn&&$r(Ki.target.value),[C.a.SHIFT,C.a.TAB,C.a.BACKSPACE,C.a.ESC].includes(ra)||wn(!0)},vi=function(){Yn(!0)},Di=Object(e.useRef)(null),Mi=function(Ki){Br(Ki,!0,Ar.current)!==!1&&wn(!0)},xi=function(){Ar.current=!0},bi=function(){Ar.current=!1},Ci=function(Ki){var ra=Ki.target.value;if(fr&&Di.current&&/[\r\n]/.test(Di.current)){var ea=Di.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");ra=ra.replace(ea,Di.current)}Di.current=null,Mi(ra)},$i=function(Ki){var ra=Ki.clipboardData,ea=ra.getData("text");Di.current=ea},qi=function(Ki){var ra=Ki.target;if(ra!==Zt.current){var ea=document.body.style.msTouchAction!==void 0;ea?setTimeout(function(){Zt.current.focus()}):Zt.current.focus()}},Ti=function(Ki){var ra=fi();Ki.target!==Zt.current&&!ra&&Ki.preventDefault(),(St!=="combobox"&&(!cr||!ra)||!pn)&&(pn&&Br("",!0,!1),wn())},ia={inputRef:Zt,onInputKeyDown:gi,onInputMouseDown:vi,onInputChange:Ci,onInputPaste:$i,onInputCompositionStart:xi,onInputCompositionEnd:bi},na=tn?e.createElement(Le,Object.assign({},sr,ia)):e.createElement(ce,Object.assign({},sr,ia));return e.createElement("div",{ref:On,className:"".concat(Nr,"-selector"),onClick:qi,onMouseDown:Ti},na)},me=e.forwardRef(Q);me.displayName="Selector";var Je=me,re=d("uciX"),G=function(sr){var cn=typeof sr!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:cn,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:cn,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:cn,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:cn,adjustY:1}}}},X=function(sr,cn){var Zt=sr.prefixCls,Ar=sr.disabled,Nr=sr.visible,tn=sr.children,pn=sr.popupElement,St=sr.containerWidth,cr=sr.animation,fr=sr.transitionName,Br=sr.dropdownStyle,$r=sr.dropdownClassName,wn=sr.direction,rn=wn===void 0?"ltr":wn,On=sr.dropdownMatchSelectWidth,In=On===void 0?!0:On,Gn=sr.dropdownRender,fi=sr.dropdownAlign,Yn=sr.getPopupContainer,gi=sr.empty,vi=sr.getTriggerDOMNode,Di=Object(E.a)(sr,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),Mi="".concat(Zt,"-dropdown"),xi=pn;Gn&&(xi=Gn(pn));var bi=e.useMemo(function(){return G(In)},[In]),Ci=cr?"".concat(Mi,"-").concat(cr):fr,$i=e.useRef(null);e.useImperativeHandle(cn,function(){return{getPopupElement:function(){return $i.current}}});var qi=Object(A.a)({minWidth:St},Br);return typeof In=="number"?qi.width=In:In&&(qi.width=St),e.createElement(re.a,Object.assign({},Di,{showAction:[],hideAction:[],popupPlacement:rn==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:bi,prefixCls:Mi,popupTransitionName:Ci,popup:e.createElement("div",{ref:$i},xi),popupAlign:fi,popupVisible:Nr,getPopupContainer:Yn,popupClassName:b()($r,Object(y.a)({},"".concat(Mi,"-empty"),gi)),popupStyle:qi,getTriggerDOMNode:vi}),tn)},J=e.forwardRef(X);J.displayName="SelectTrigger";var Ae=J,he="RC_SELECT_INTERNAL_PROPS_MARK";function Me(){var dr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,sr=e.useState(!1),cn=Object(g.a)(sr,2),Zt=cn[0],Ar=cn[1],Nr=e.useRef(null),tn=function(){window.clearTimeout(Nr.current)};e.useEffect(function(){return tn},[]);var pn=function(cr,fr){tn(),Nr.current=window.setTimeout(function(){Ar(cr),fr&&fr()},dr)};return[Zt,pn,tn]}var Ie=d("T5bk"),oe=d("Kwbf");function pe(dr,sr){var cn=dr.key,Zt;return"value"in dr&&(Zt=dr.value),cn!=null?cn:Zt!==void 0?Zt:"rc-index-key-".concat(sr)}function Oe(dr){var sr=[];function cn(Zt,Ar){Zt.forEach(function(Nr){Ar||!("options"in Nr)?sr.push({key:pe(Nr,sr.length),groupOption:Ar,data:Nr}):(sr.push({key:pe(Nr,sr.length),group:!0,data:Nr}),cn(Nr.options,!0))})}return cn(dr,!1),sr}function Ye(dr){var sr=Object(A.a)({},dr);return"props"in sr||Object.defineProperty(sr,"props",{get:function(){return Object(oe.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),sr}}),sr}function it(dr,sr){var cn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Zt=cn.prevValueOptions,Ar=Zt===void 0?[]:Zt,Nr=new Map;return sr.forEach(function(tn){if(!tn.group){var pn=tn.data;Nr.set(pn.value,pn)}}),dr.map(function(tn){var pn=Nr.get(tn);return pn||(pn=Object(A.a)({},Ar.find(function(St){return St._INTERNAL_OPTION_VALUE_===tn}))),Ye(pn)})}var et=function(sr,cn){var Zt=cn.options,Ar=cn.prevValue,Nr=cn.labelInValue,tn=cn.optionLabelProp,pn=it([sr],Zt)[0],St={value:sr},cr,fr=F(Ar);return Nr&&(cr=fr.find(function(Br){return Object(p.a)(Br)==="object"&&"value"in Br?Br.value===sr:Br.key===sr})),cr&&Object(p.a)(cr)==="object"&&"label"in cr?(St.label=cr.label,pn&&typeof cr.label=="string"&&typeof pn[tn]=="string"&&cr.label.trim()!==pn[tn].trim()&&Object(oe.a)(!1,"`label` of `value` is not same as `label` in Select options.")):pn&&tn in pn?St.label=pn[tn]:St.label=sr,St.key=St.value,St};function Te(dr){return F(dr).join("")}function tt(dr){return function(sr,cn){var Zt=sr.toLowerCase();if("options"in cn)return Te(cn.label).toLowerCase().includes(Zt);var Ar=cn[dr],Nr=Te(Ar).toLowerCase();return Nr.includes(Zt)}}function ze(dr,sr,cn){var Zt=cn.optionFilterProp,Ar=cn.filterOption,Nr=[],tn;return Ar===!1?Object(h.a)(sr):(typeof Ar=="function"?tn=Ar:tn=tt(Zt),sr.forEach(function(pn){if("options"in pn){var St=tn(dr,pn);if(St)Nr.push(pn);else{var cr=pn.options.filter(function(fr){return tn(dr,fr)});cr.length&&Nr.push(Object(A.a)(Object(A.a)({},pn),{},{options:cr}))}return}tn(dr,Ye(pn))&&Nr.push(pn)}),Nr)}function dt(dr,sr){if(!sr||!sr.length)return null;var cn=!1;function Zt(Nr,tn){var pn=Object(Ie.a)(tn),St=pn[0],cr=pn.slice(1);if(!St)return[Nr];var fr=Nr.split(St);return cn=cn||fr.length>1,fr.reduce(function(Br,$r){return[].concat(Object(h.a)(Br),Object(h.a)(Zt($r,cr)))},[]).filter(function(Br){return Br})}var Ar=Zt(dr,sr);return cn?Ar:null}function Ot(dr,sr){var cn=it([dr],sr)[0];return cn.disabled}function Tt(dr,sr,cn,Zt){var Ar=F(sr).slice().sort(),Nr=Object(h.a)(dr),tn=new Set;return dr.forEach(function(pn){pn.options?pn.options.forEach(function(St){tn.add(St.value)}):tn.add(pn.value)}),Ar.forEach(function(pn){var St=Zt?pn.value:pn;if(!tn.has(St)){var cr;Nr.push(Zt?(cr={},Object(y.a)(cr,cn,pn.label),Object(y.a)(cr,"value",St),cr):{value:St})}}),Nr}function Ct(dr,sr,cn){var Zt=e.useRef(null);Zt.current={elements:dr.filter(function(Ar){return Ar}),open:sr,triggerOpen:cn},e.useEffect(function(){function Ar(Nr){var tn=Nr.target;Zt.current.open&&Zt.current.elements.every(function(pn){return!pn.contains(tn)&&pn!==tn})&&Zt.current.triggerOpen(!1)}return window.addEventListener("mousedown",Ar),function(){return window.removeEventListener("mousedown",Ar)}},[])}function Nt(dr){var sr=e.useRef(dr),cn=e.useMemo(function(){var Zt=new Map;sr.current.forEach(function(Nr){var tn=Nr.value,pn=Nr.label;tn!==pn&&Zt.set(tn,pn)});var Ar=dr.map(function(Nr){var tn=Zt.get(Nr.value);return Nr.value===Nr.label&&tn?Object(A.a)(Object(A.a)({},Nr),{},{label:tn}):Nr});return sr.current=Ar,Ar},[dr]);return cn}function Be(dr,sr){var cn=e.useRef(null),Zt=e.useMemo(function(){var Nr=new Map;return sr.forEach(function(tn){var pn=tn.data.value;Nr.set(pn,tn)}),Nr},[dr,sr]);cn.current=Zt;var Ar=function(tn){return tn.map(function(pn){return cn.current.get(pn)}).filter(Boolean)};return Ar}var $=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function Z(dr){var sr=dr.prefixCls,cn=dr.components.optionList,Zt=dr.convertChildrenToData,Ar=dr.flattenOptions,Nr=dr.getLabeledValue,tn=dr.filterOptions,pn=dr.isValueDisabled,St=dr.findValueOption,cr=dr.warningProps,fr=dr.fillOptionsWithMissingValue,Br=dr.omitDOMProps;function $r(rn,On){var In,Gn=rn.prefixCls,fi=Gn===void 0?sr:Gn,Yn=rn.className,gi=rn.id,vi=rn.open,Di=rn.defaultOpen,Mi=rn.options,xi=rn.children,bi=rn.mode,Ci=rn.value,$i=rn.defaultValue,qi=rn.labelInValue,Ti=rn.showSearch,ia=rn.inputValue,na=rn.searchValue,Ui=rn.filterOption,Ki=rn.filterSort,ra=rn.optionFilterProp,ea=ra===void 0?"value":ra,va=rn.autoClearSearchValue,sa=va===void 0?!0:va,Pa=rn.onSearch,ka=rn.allowClear,Ia=rn.clearIcon,Ea=rn.showArrow,So=rn.inputIcon,Ga=rn.menuItemSelectedIcon,Va=rn.disabled,Ra=rn.loading,po=rn.defaultActiveFirstOption,mo=rn.notFoundContent,Aa=mo===void 0?"Not Found":mo,Io=rn.optionLabelProp,go=rn.backfill,Qa=rn.getInputElement,wo=rn.getPopupContainer,pa=rn.listHeight,to=pa===void 0?200:pa,ao=rn.listItemHeight,Bo=ao===void 0?20:ao,Ja=rn.animation,_o=rn.transitionName,Ao=rn.virtual,za=rn.dropdownStyle,ja=rn.dropdownClassName,da=rn.dropdownMatchSelectWidth,rt=rn.dropdownRender,ar=rn.dropdownAlign,Fr=rn.showAction,Ir=Fr===void 0?[]:Fr,En=rn.direction,zr=rn.tokenSeparators,yr=rn.tagRender,Cn=rn.onPopupScroll,Pr=rn.onDropdownVisibleChange,xn=rn.onFocus,Qn=rn.onBlur,$n=rn.onKeyUp,Kn=rn.onKeyDown,si=rn.onMouseDown,Xn=rn.onChange,ti=rn.onSelect,di=rn.onDeselect,Bi=rn.onClear,yi=rn.internalProps,Xi=yi===void 0?{}:yi,ba=Object(E.a)(rn,["prefixCls","className","id","open","defaultOpen","options","children","mode","value","defaultValue","labelInValue","showSearch","inputValue","searchValue","filterOption","filterSort","optionFilterProp","autoClearSearchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","menuItemSelectedIcon","disabled","loading","defaultActiveFirstOption","notFoundContent","optionLabelProp","backfill","getInputElement","getPopupContainer","listHeight","listItemHeight","animation","transitionName","virtual","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown","onChange","onSelect","onDeselect","onClear","internalProps"]),ta=Xi.mark===he,Qi=Br?Br(ba):ba;$.forEach(function(lo){delete Qi[lo]});var aa=Object(e.useRef)(null),fa=Object(e.useRef)(null),xo=Object(e.useRef)(null),Za=Object(e.useRef)(null),Wi=Object(e.useMemo)(function(){return(zr||[]).some(function(lo){return[`
|
|
|
`,`\r
|
|
|
`].includes(lo)})},[zr]),Gi=Me(),ca=Object(g.a)(Gi,3),ya=ca[0],Xa=ca[1],_a=ca[2],qa=Object(e.useState)(),ro=Object(g.a)(qa,2),Uo=ro[0],zo=ro[1];Object(e.useEffect)(function(){zo("rc_select_".concat(fe()))},[]);var hs=gi||Uo,Po=Io;Po===void 0&&(Po=Mi?"label":"children");var Mo=bi==="combobox"?!1:qi,Fa=bi==="tags"||bi==="multiple",$a=Ti!==void 0?Ti:Fa||bi==="combobox",Ca=Object(e.useRef)(null);e.useImperativeHandle(On,function(){return{focus:xo.current.focus,blur:xo.current.blur}});var Eo=Object(I.a)($i,{value:Ci}),qo=Object(g.a)(Eo,2),vo=qo[0],rs=qo[1],ho=Object(e.useMemo)(function(){return K(vo,{labelInValue:Mo,combobox:bi==="combobox"})},[vo,Mo]),No=Object(e.useMemo)(function(){return new Set(ho)},[ho]),us=Object(e.useState)(null),jo=Object(g.a)(us,2),Qo=jo[0],on=jo[1],Fi=Object(e.useState)(""),Bs=Object(g.a)(Fi,2),ws=Bs[0],cs=Bs[1],Vo=ws;bi==="combobox"&&vo!==void 0?Vo=vo:na!==void 0?Vo=na:ia&&(Vo=ia);var vs=Object(e.useMemo)(function(){var lo=Mi;return lo===void 0&&(lo=Zt(xi)),bi==="tags"&&fr&&(lo=fr(lo,vo,Po,qi)),lo||[]},[Mi,xi,bi,vo]),Ss=Object(e.useMemo)(function(){return Ar(vs,rn)},[vs]),ns=Be(ho,Ss),es=Object(e.useMemo)(function(){if(!Vo||!$a)return Object(h.a)(vs);var lo=tn(Vo,vs,{optionFilterProp:ea,filterOption:bi==="combobox"&&Ui===void 0?function(){return!0}:Ui});return bi==="tags"&&lo.every(function(Ka){return Ka[ea]!==Vo})&&lo.unshift({value:Vo,label:Vo,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),Ki&&Array.isArray(lo)?Object(h.a)(lo).sort(Ki):lo},[vs,Vo,bi,$a,Ki]),fs=Object(e.useMemo)(function(){return Ar(es,rn)},[es]);Object(e.useEffect)(function(){Za.current&&Za.current.scrollTo&&Za.current.scrollTo(0)},[Vo]);var ys=Object(e.useMemo)(function(){var lo=ho.map(function(Ka){var Fo=ns([Ka]),Ko=Nr(Ka,{options:Fo,prevValue:vo,labelInValue:Mo,optionLabelProp:Po});return Object(A.a)(Object(A.a)({},Ko),{},{disabled:pn(Ka,Fo)})});return!bi&&lo.length===1&&lo[0].value===null&&lo[0].label===null?[]:lo},[vo,vs,bi]);ys=Nt(ys);var ds=function(Ka,Fo,Ko){var Wo=ns([Ka]),Co=St([Ka],Wo)[0];if(!Xi.skipTriggerSelect){var is=Mo?Nr(Ka,{options:Wo,prevValue:vo,labelInValue:Mo,optionLabelProp:Po}):Ka;Fo&&ti?ti(is,Co):!Fo&&di&&di(is,Co)}ta&&(Fo&&Xi.onRawSelect?Xi.onRawSelect(Ka,Co,Ko):!Fo&&Xi.onRawDeselect&&Xi.onRawDeselect(Ka,Co,Ko))},yo=Object(e.useState)([]),no=Object(g.a)(yo,2),Jo=no[0],Go=no[1],xt=function(Ka){if(ta&&Xi.skipTriggerChange)return;var Fo=ns(Ka),Ko=j(Array.from(Ka),{labelInValue:Mo,options:Fo,getLabeledValue:Nr,prevValue:vo,optionLabelProp:Po}),Wo=Fa?Ko:Ko[0];if(Xn&&(ho.length!==0||Ko.length!==0)){var Co=St(Ka,Fo,{prevValueOptions:Jo});Go(Co.map(function(is,ms){var Rs=Object(A.a)({},is);return Object.defineProperty(Rs,"_INTERNAL_OPTION_VALUE_",{get:function(){return Ka[ms]}}),Rs})),Xn(Wo,Fa?Co:Co[0])}rs(Wo)},Ft=function(Ka,Fo){var Ko=Fo.selected,Wo=Fo.source;if(Va)return;var Co;Fa?(Co=new Set(ho),Ko?Co.add(Ka):Co.delete(Ka)):(Co=new Set,Co.add(Ka)),(Fa||!Fa&&Array.from(ho)[0]!==Ka)&&xt(Array.from(Co)),ds(Ka,!Fa||Ko,Wo),bi==="combobox"?(cs(String(Ka)),on("")):(!Fa||sa)&&(cs(""),on(""))},An=function(Ka,Fo){Ft(Ka,Object(A.a)(Object(A.a)({},Fo),{},{source:"option"}))},Hn=function(Ka,Fo){Ft(Ka,Object(A.a)(Object(A.a)({},Fo),{},{source:"selection"}))},hi=bi==="combobox"&&Qa&&Qa()||null,At=Object(I.a)(void 0,{defaultValue:Di,value:vi}),se=Object(g.a)(At,2),ge=se[0],Se=se[1],We=ge,vt=!Aa&&!es.length;(Va||vt&&We&&bi==="combobox")&&(We=!1);var Yt=vt?!1:We,Rr=function(Ka){var Fo=Ka!==void 0?Ka:!We;ge!==Fo&&!Va&&(Se(Fo),Pr&&Pr(Fo))};Ct([aa.current,fa.current&&fa.current.getPopupElement()],Yt,Rr);var Yr=function(Ka,Fo,Ko){var Wo=!0,Co=Ka;on(null);var is=Ko?null:dt(Ka,zr),ms=is;if(bi==="combobox")Fo&&xt([Co]);else if(is){Co="",bi!=="tags"&&(ms=is.map(function(Us){var el=Ss.find(function(Qs){var tl=Qs.data;return tl[Po]===Us});return el?el.data.value:null}).filter(function(Us){return Us!==null}));var Rs=Array.from(new Set([].concat(Object(h.a)(ho),Object(h.a)(ms))));xt(Rs),Rs.forEach(function(Us){ds(Us,!0,"input")}),Rr(!1),Wo=!1}return cs(Co),Pa&&Vo!==Co&&Pa(Co),Wo},mn=function(Ka){var Fo=Array.from(new Set([].concat(Object(h.a)(ho),[Ka])));xt(Fo),Fo.forEach(function(Ko){ds(Ko,!0,"input")}),cs("")};Object(e.useEffect)(function(){ge&&!!Va&&Se(!1)},[Va]),Object(e.useEffect)(function(){!We&&!Fa&&bi!=="combobox"&&Yr("",!1,!1)},[We]);var Wn=Pe(),Jn=Object(g.a)(Wn,2),ri=Jn[0],Ii=Jn[1],Yi=function(Ka){var Fo=ri(),Ko=Ka.which;if(!We&&Ko===C.a.ENTER&&Rr(!0),Ii(!!Vo),Ko===C.a.BACKSPACE&&!Fo&&Fa&&!Vo&&ho.length){var Wo=V(ys,ho);Wo.removedValue!==null&&(xt(Wo.values),ds(Wo.removedValue,!1,"input"))}for(var Co=arguments.length,is=new Array(Co>1?Co-1:0),ms=1;ms<Co;ms++)is[ms-1]=arguments[ms];if(We&&Za.current){var Rs;(Rs=Za.current).onKeyDown.apply(Rs,[Ka].concat(is))}Kn&&Kn.apply(void 0,[Ka].concat(is))},ma=function(Ka){for(var Fo=arguments.length,Ko=new Array(Fo>1?Fo-1:0),Wo=1;Wo<Fo;Wo++)Ko[Wo-1]=arguments[Wo];if(We&&Za.current){var Co;(Co=Za.current).onKeyUp.apply(Co,[Ka].concat(Ko))}$n&&$n.apply(void 0,[Ka].concat(Ko))},Ta=Object(e.useRef)(!1),uo=function(){Xa(!0),Va||(xn&&!Ta.current&&xn.apply(void 0,arguments),Ir.includes("focus")&&Rr(!0)),Ta.current=!0},bo=function(){if(Xa(!1,function(){Ta.current=!1,Rr(!1)}),Va)return;Vo&&(bi==="tags"?(Yr("",!1,!1),xt(Array.from(new Set([].concat(Object(h.a)(ho),[Vo]))))):bi==="multiple"&&cs("")),Qn&&Qn.apply(void 0,arguments)},co=[];Object(e.useEffect)(function(){return function(){co.forEach(function(lo){return clearTimeout(lo)}),co.splice(0,co.length)}},[]);var Zo=function(Ka){var Fo=Ka.target,Ko=fa.current&&fa.current.getPopupElement();if(Ko&&Ko.contains(Fo)){var Wo=setTimeout(function(){var Rs=co.indexOf(Wo);Rs!==-1&&co.splice(Rs,1),_a(),Ko.contains(document.activeElement)||xo.current.focus()});co.push(Wo)}if(si){for(var Co=arguments.length,is=new Array(Co>1?Co-1:0),ms=1;ms<Co;ms++)is[ms-1]=arguments[ms];si.apply(void 0,[Ka].concat(is))}},Oo=Object(e.useState)(0),Do=Object(g.a)(Oo,2),Ha=Do[0],Ya=Do[1],ps=po!==void 0?po:bi!=="combobox",ts=function(Ka,Fo){var Ko=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Wo=Ko.source,Co=Wo===void 0?"keyboard":Wo;Ya(Fo),go&&bi==="combobox"&&Ka!==null&&Co==="keyboard"&&on(String(Ka))},$o=Object(e.useState)(null),Ds=Object(g.a)($o,2),Hs=Ds[0],xs=Ds[1],Xo=Object(e.useState)({}),Js=Object(g.a)(Xo,2),Cs=Js[1];function fl(){Cs({})}ie(function(){if(Yt){var lo=Math.ceil(aa.current.offsetWidth);Hs!==lo&&xs(lo)}},[Yt]);var sl=e.createElement(cn,{ref:Za,prefixCls:fi,id:hs,open:We,childrenAsData:!Mi,options:es,flattenOptions:fs,multiple:Fa,values:No,height:to,itemHeight:Bo,onSelect:An,onToggleOpen:Rr,onActiveValue:ts,defaultActiveFirstOption:ps,notFoundContent:Aa,onScroll:Cn,searchValue:Vo,menuItemSelectedIcon:Ga,virtual:Ao!==!1&&da!==!1,onMouseEnter:fl}),Ks,as=function(){ta&&Xi.onClear&&Xi.onClear(),Bi&&Bi(),xt([]),Yr("",!1,!1)};!Va&&ka&&(ho.length||Vo)&&(Ks=e.createElement(N,{className:"".concat(fi,"-clear"),onMouseDown:as,customizeIcon:Ia},"\xD7"));var ha=Ea!==void 0?Ea:Ra||!Fa&&bi!=="combobox",Zs;ha&&(Zs=e.createElement(N,{className:b()("".concat(fi,"-arrow"),Object(y.a)({},"".concat(fi,"-arrow-loading"),Ra)),customizeIcon:So,customizeIconProps:{loading:Ra,searchValue:Vo,open:We,focused:ya,showSearch:$a}}));var ll=b()(fi,Yn,(In={},Object(y.a)(In,"".concat(fi,"-focused"),ya),Object(y.a)(In,"".concat(fi,"-multiple"),Fa),Object(y.a)(In,"".concat(fi,"-single"),!Fa),Object(y.a)(In,"".concat(fi,"-allow-clear"),ka),Object(y.a)(In,"".concat(fi,"-show-arrow"),ha),Object(y.a)(In,"".concat(fi,"-disabled"),Va),Object(y.a)(In,"".concat(fi,"-loading"),Ra),Object(y.a)(In,"".concat(fi,"-open"),We),Object(y.a)(In,"".concat(fi,"-customize-input"),hi),Object(y.a)(In,"".concat(fi,"-show-search"),$a),In));return e.createElement("div",Object.assign({className:ll},Qi,{ref:aa,onMouseDown:Zo,onKeyDown:Yi,onKeyUp:ma,onFocus:uo,onBlur:bo}),ya&&!We&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(ho.join(", "))),e.createElement(Ae,{ref:fa,disabled:Va,prefixCls:fi,visible:Yt,popupElement:sl,containerWidth:Hs,animation:Ja,transitionName:_o,dropdownStyle:za,dropdownClassName:ja,direction:En,dropdownMatchSelectWidth:da,dropdownRender:rt,dropdownAlign:ar,getPopupContainer:wo,empty:!vs.length,getTriggerDOMNode:function(){return Ca.current}},e.createElement(Je,Object.assign({},rn,{domRef:Ca,prefixCls:fi,inputElement:hi,ref:xo,id:hs,showSearch:$a,mode:bi,accessibilityIndex:Ha,multiple:Fa,tagRender:yr,values:ys,open:We,onToggleOpen:Rr,searchValue:Vo,activeValue:Qo,onSearch:Yr,onSearchSubmit:mn,onSelect:Hn,tokenWithEnter:Wi}))),Zs,Ks)}var wn=e.forwardRef($r);return wn}var Re=d("Zm9Q"),De=d("JX7q"),ae=e.createContext(null),gt=function(sr){var cn=sr.prefixCls,Zt=sr.level,Ar=sr.isStart,Nr=sr.isEnd;if(!Zt)return null;for(var tn="".concat(cn,"-indent-unit"),pn=[],St=0;St<Zt;St+=1){var cr;pn.push(e.createElement("span",{key:St,className:b()(tn,(cr={},Object(y.a)(cr,"".concat(tn,"-start"),Ar[St]),Object(y.a)(cr,"".concat(tn,"-end"),Nr[St]),cr))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(cn,"-indent")},pn)},jt=gt,ut="open",rr="close",pr="---",nn=function(dr){Object(l.a)(cn,dr);var sr=Object(u.a)(cn);function cn(){var Zt;return Object(t.a)(this,cn),Zt=sr.apply(this,arguments),Zt.state={dragNodeHighlight:!1},Zt.onSelectorClick=function(Ar){var Nr=Zt.props.context.onNodeClick;Nr(Ar,_t(Zt.props)),Zt.isSelectable()?Zt.onSelect(Ar):Zt.onCheck(Ar)},Zt.onSelectorDoubleClick=function(Ar){var Nr=Zt.props.context.onNodeDoubleClick;Nr(Ar,_t(Zt.props))},Zt.onSelect=function(Ar){if(Zt.isDisabled())return;var Nr=Zt.props.context.onNodeSelect;Ar.preventDefault(),Nr(Ar,_t(Zt.props))},Zt.onCheck=function(Ar){if(Zt.isDisabled())return;var Nr=Zt.props,tn=Nr.disableCheckbox,pn=Nr.checked,St=Zt.props.context.onNodeCheck;if(!Zt.isCheckable()||tn)return;Ar.preventDefault();var cr=!pn;St(Ar,_t(Zt.props),cr)},Zt.onMouseEnter=function(Ar){var Nr=Zt.props.context.onNodeMouseEnter;Nr(Ar,_t(Zt.props))},Zt.onMouseLeave=function(Ar){var Nr=Zt.props.context.onNodeMouseLeave;Nr(Ar,_t(Zt.props))},Zt.onContextMenu=function(Ar){var Nr=Zt.props.context.onNodeContextMenu;Nr(Ar,_t(Zt.props))},Zt.onDragStart=function(Ar){var Nr=Zt.props.context.onNodeDragStart;Ar.stopPropagation(),Zt.setState({dragNodeHighlight:!0}),Nr(Ar,Object(De.a)(Zt));try{Ar.dataTransfer.setData("text/plain","")}catch(tn){}},Zt.onDragEnter=function(Ar){var Nr=Zt.props.context.onNodeDragEnter;Ar.preventDefault(),Ar.stopPropagation(),Nr(Ar,Object(De.a)(Zt))},Zt.onDragOver=function(Ar){var Nr=Zt.props.context.onNodeDragOver;Ar.preventDefault(),Ar.stopPropagation(),Nr(Ar,Object(De.a)(Zt))},Zt.onDragLeave=function(Ar){var Nr=Zt.props.context.onNodeDragLeave;Ar.stopPropagation(),Nr(Ar,Object(De.a)(Zt))},Zt.onDragEnd=function(Ar){var Nr=Zt.props.context.onNodeDragEnd;Ar.stopPropagation(),Zt.setState({dragNodeHighlight:!1}),Nr(Ar,Object(De.a)(Zt))},Zt.onDrop=function(Ar){var Nr=Zt.props.context.onNodeDrop;Ar.preventDefault(),Ar.stopPropagation(),Zt.setState({dragNodeHighlight:!1}),Nr(Ar,Object(De.a)(Zt))},Zt.onExpand=function(Ar){var Nr=Zt.props.context.onNodeExpand;Nr(Ar,_t(Zt.props))},Zt.setSelectHandle=function(Ar){Zt.selectHandle=Ar},Zt.getNodeState=function(){var Ar=Zt.props.expanded;return Zt.isLeaf()?null:Ar?ut:rr},Zt.hasChildren=function(){var Ar=Zt.props.eventKey,Nr=Zt.props.context.keyEntities,tn=Nr[Ar]||{},pn=tn.children;return!!(pn||[]).length},Zt.isLeaf=function(){var Ar=Zt.props,Nr=Ar.isLeaf,tn=Ar.loaded,pn=Zt.props.context.loadData,St=Zt.hasChildren();return Nr===!1?!1:Nr||!pn&&!St||pn&&tn&&!St},Zt.isDisabled=function(){var Ar=Zt.props.disabled,Nr=Zt.props.context.disabled;return!!(Nr||Ar)},Zt.isCheckable=function(){var Ar=Zt.props.checkable,Nr=Zt.props.context.checkable;return!Nr||Ar===!1?!1:Nr},Zt.syncLoadData=function(Ar){var Nr=Ar.expanded,tn=Ar.loading,pn=Ar.loaded,St=Zt.props.context,cr=St.loadData,fr=St.onNodeLoad;if(tn)return;cr&&Nr&&!Zt.isLeaf()&&(!Zt.hasChildren()&&!pn&&fr(_t(Zt.props)))},Zt.renderSwitcher=function(){var Ar=Zt.props,Nr=Ar.expanded,tn=Ar.switcherIcon,pn=Zt.props.context,St=pn.prefixCls,cr=pn.switcherIcon,fr=tn||cr;if(Zt.isLeaf())return e.createElement("span",{className:b()("".concat(St,"-switcher"),"".concat(St,"-switcher-noop"))},typeof fr=="function"?fr(Object(A.a)(Object(A.a)({},Zt.props),{},{isLeaf:!0})):fr);var Br=b()("".concat(St,"-switcher"),"".concat(St,"-switcher_").concat(Nr?ut:rr));return e.createElement("span",{onClick:Zt.onExpand,className:Br},typeof fr=="function"?fr(Object(A.a)(Object(A.a)({},Zt.props),{},{isLeaf:!1})):fr)},Zt.renderCheckbox=function(){var Ar=Zt.props,Nr=Ar.checked,tn=Ar.halfChecked,pn=Ar.disableCheckbox,St=Zt.props.context.prefixCls,cr=Zt.isDisabled(),fr=Zt.isCheckable();if(!fr)return null;var Br=typeof fr!="boolean"?fr:null;return e.createElement("span",{className:b()("".concat(St,"-checkbox"),Nr&&"".concat(St,"-checkbox-checked"),!Nr&&tn&&"".concat(St,"-checkbox-indeterminate"),(cr||pn)&&"".concat(St,"-checkbox-disabled")),onClick:Zt.onCheck},Br)},Zt.renderIcon=function(){var Ar=Zt.props.loading,Nr=Zt.props.context.prefixCls;return e.createElement("span",{className:b()("".concat(Nr,"-iconEle"),"".concat(Nr,"-icon__").concat(Zt.getNodeState()||"docu"),Ar&&"".concat(Nr,"-icon_loading"))})},Zt.renderSelector=function(){var Ar=Zt.state.dragNodeHighlight,Nr=Zt.props,tn=Nr.title,pn=Nr.selected,St=Nr.icon,cr=Nr.loading,fr=Nr.data,Br=Zt.props.context,$r=Br.prefixCls,wn=Br.showIcon,rn=Br.icon,On=Br.draggable,In=Br.loadData,Gn=Br.titleRender,fi=Zt.isDisabled(),Yn="".concat($r,"-node-content-wrapper"),gi;if(wn){var vi=St||rn;gi=vi?e.createElement("span",{className:b()("".concat($r,"-iconEle"),"".concat($r,"-icon__customize"))},typeof vi=="function"?vi(Zt.props):vi):Zt.renderIcon()}else In&&cr&&(gi=Zt.renderIcon());var Di;typeof tn=="function"?Di=tn(fr):Gn?Di=Gn(fr):Di=tn;var Mi=e.createElement("span",{className:"".concat($r,"-title")},Di);return e.createElement("span",{ref:Zt.setSelectHandle,title:typeof tn=="string"?tn:"",className:b()("".concat(Yn),"".concat(Yn,"-").concat(Zt.getNodeState()||"normal"),!fi&&(pn||Ar)&&"".concat($r,"-node-selected"),!fi&&On&&"draggable"),draggable:!fi&&On||void 0,"aria-grabbed":!fi&&On||void 0,onMouseEnter:Zt.onMouseEnter,onMouseLeave:Zt.onMouseLeave,onContextMenu:Zt.onContextMenu,onClick:Zt.onSelectorClick,onDoubleClick:Zt.onSelectorDoubleClick,onDragStart:On?Zt.onDragStart:void 0},gi,Mi)},Zt}return Object(i.a)(cn,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Ar=this.props.selectable,Nr=this.props.context.selectable;return typeof Ar=="boolean"?Ar:Nr}},{key:"render",value:function(){var Ar,Nr=this.props,tn=Nr.eventKey,pn=Nr.className,St=Nr.style,cr=Nr.dragOver,fr=Nr.dragOverGapTop,Br=Nr.dragOverGapBottom,$r=Nr.isLeaf,wn=Nr.isStart,rn=Nr.isEnd,On=Nr.expanded,In=Nr.selected,Gn=Nr.checked,fi=Nr.halfChecked,Yn=Nr.loading,gi=Nr.domRef,vi=Nr.active,Di=Nr.onMouseMove,Mi=Object(E.a)(Nr,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),xi=this.props.context,bi=xi.prefixCls,Ci=xi.filterTreeNode,$i=xi.draggable,qi=xi.keyEntities,Ti=this.isDisabled(),ia=Ee(Mi),na=qi[tn]||{},Ui=na.level,Ki=rn[rn.length-1];return e.createElement("div",Object.assign({ref:gi,className:b()(pn,"".concat(bi,"-treenode"),(Ar={},Object(y.a)(Ar,"".concat(bi,"-treenode-disabled"),Ti),Object(y.a)(Ar,"".concat(bi,"-treenode-switcher-").concat(On?"open":"close"),!$r),Object(y.a)(Ar,"".concat(bi,"-treenode-checkbox-checked"),Gn),Object(y.a)(Ar,"".concat(bi,"-treenode-checkbox-indeterminate"),fi),Object(y.a)(Ar,"".concat(bi,"-treenode-selected"),In),Object(y.a)(Ar,"".concat(bi,"-treenode-loading"),Yn),Object(y.a)(Ar,"".concat(bi,"-treenode-active"),vi),Object(y.a)(Ar,"".concat(bi,"-treenode-leaf-last"),Ki),Object(y.a)(Ar,"drag-over",!Ti&&cr),Object(y.a)(Ar,"drag-over-gap-top",!Ti&&fr),Object(y.a)(Ar,"drag-over-gap-bottom",!Ti&&Br),Object(y.a)(Ar,"filter-node",Ci&&Ci(_t(this.props))),Ar)),style:St,onDragEnter:$i?this.onDragEnter:void 0,onDragOver:$i?this.onDragOver:void 0,onDragLeave:$i?this.onDragLeave:void 0,onDrop:$i?this.onDrop:void 0,onDragEnd:$i?this.onDragEnd:void 0,onMouseMove:Di},ia),e.createElement(jt,{prefixCls:bi,level:Ui,isStart:wn,isEnd:rn}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),cn}(e.Component),mr=function(sr){return e.createElement(ae.Consumer,null,function(cn){return e.createElement(nn,Object.assign({},sr,{context:cn}))})};mr.displayName="TreeNode",mr.defaultProps={title:pr},mr.isTreeNode=1;var vr=mr,$t=.25,Xt=2;function ft(dr,sr){var cn=dr.slice(),Zt=cn.indexOf(sr);return Zt>=0&&cn.splice(Zt,1),cn}function Ur(dr,sr){var cn=dr.slice();return cn.indexOf(sr)===-1&&cn.push(sr),cn}function yn(dr){return dr.split("-")}function Dn(dr,sr){return"".concat(dr,"-").concat(sr)}function Un(dr){return dr&&dr.type&&dr.type.isTreeNode}function wi(dr,sr){var cn=[dr],Zt=sr[dr];function Ar(){var Nr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Nr.forEach(function(tn){var pn=tn.key,St=tn.children;cn.push(pn),Ar(St)})}return Ar(Zt.children),cn}function Rn(dr,sr){var cn=dr.clientY,Zt=sr.selectHandle.getBoundingClientRect(),Ar=Zt.top,Nr=Zt.bottom,tn=Zt.height,pn=Math.max(tn*$t,Xt);return cn<=Ar+pn?-1:cn>=Nr-pn?1:0}function kn(dr,sr){if(!dr)return;var cn=sr.multiple;return cn?dr.slice():dr.length?[dr[0]]:dr}var Vn=function(sr){return sr};function Gt(dr,sr){if(!dr)return[];var cn=sr||{},Zt=cn.processProps,Ar=Zt===void 0?Vn:Zt,Nr=Array.isArray(dr)?dr:[dr];return Nr.map(function(tn){var pn=tn.children,St=Object(E.a)(tn,["children"]),cr=Gt(pn,sr);return s.a.createElement(vr,Object.assign({},Ar(St)),cr)})}function st(dr){if(!dr)return null;var sr;if(Array.isArray(dr))sr={checkedKeys:dr,halfCheckedKeys:void 0};else if(Object(p.a)(dr)==="object")sr={checkedKeys:dr.checked||void 0,halfCheckedKeys:dr.halfChecked||void 0};else return Object(oe.a)(!1,"`checkedKeys` is not an array or an object"),null;return sr}function ue(dr,sr){var cn=new Set;function Zt(Ar){if(cn.has(Ar))return;var Nr=sr[Ar];if(!Nr)return;cn.add(Ar);var tn=Nr.parent,pn=Nr.node;if(pn.disabled)return;tn&&Zt(tn.key)}return(dr||[]).forEach(function(Ar){Zt(Ar)}),Object(h.a)(cn)}function Ee(dr){var sr={};return Object.keys(dr).forEach(function(cn){(cn.startsWith("data-")||cn.startsWith("aria-"))&&(sr[cn]=dr[cn])}),sr}function je(dr,sr){return dr!=null?dr:sr}function Ve(){var dr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],sr=new Map;function cn(Zt){var Ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Zt||[]).forEach(function(Nr){var tn=Nr.key,pn=Nr.children;Object(oe.a)(tn!=null,"Tree node must have a certain key: [".concat(Ar).concat(tn,"]"));var St=String(tn);Object(oe.a)(!sr.has(St)||tn===null||tn===void 0,"Same 'key' exist in the Tree: ".concat(St)),sr.set(St,!0),cn(pn,"".concat(Ar).concat(St," > "))})}cn(dr)}function $e(dr){function sr(cn){var Zt=Object(Re.a)(cn);return Zt.map(function(Ar){if(!Un(Ar))return Object(oe.a)(!Ar,"Tree/TreeNode can only accept TreeNode as children."),null;var Nr=Ar.key,tn=Ar.props,pn=tn.children,St=Object(E.a)(tn,["children"]),cr=Object(A.a)({key:Nr},St),fr=sr(pn);return fr.length&&(cr.children=fr),cr}).filter(function(Ar){return Ar})}return sr(dr)}function wt(){var dr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],cn=new Set(sr===!0?[]:sr),Zt=[];function Ar(Nr){var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Nr.map(function(pn,St){var cr=Dn(tn?tn.pos:"0",St),fr=je(pn.key,cr),Br=Object(A.a)(Object(A.a)({},pn),{},{parent:tn,pos:cr,children:null,data:pn,isStart:[].concat(Object(h.a)(tn?tn.isStart:[]),[St===0]),isEnd:[].concat(Object(h.a)(tn?tn.isEnd:[]),[St===Nr.length-1])});return Zt.push(Br),sr===!0||cn.has(fr)?Br.children=Ar(pn.children||[],Br):Br.children=[],Br})}return Ar(dr),Zt}function qt(dr,sr,cn){var Zt;cn?typeof cn=="string"?Zt=function(tn){return tn[cn]}:typeof cn=="function"&&(Zt=function(tn){return cn(tn)}):Zt=function(tn,pn){return je(tn.key,pn)};function Ar(Nr,tn,pn){var St=Nr?Nr.children:dr,cr=Nr?Dn(pn.pos,tn):"0";if(Nr){var fr=Zt(Nr,cr),Br={node:Nr,index:tn,pos:cr,key:fr,parentPos:pn.node?pn.pos:null,level:pn.level+1};sr(Br)}St&&St.forEach(function($r,wn){Ar($r,wn,{node:Nr,pos:cr,level:pn?pn.level+1:-1})})}Ar(null)}function Mr(dr){var sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},cn=sr.initWrapper,Zt=sr.processEntity,Ar=sr.onProcessFinished,Nr=arguments.length>2?arguments[2]:void 0,tn={},pn={},St={posEntities:tn,keyEntities:pn};return cn&&(St=cn(St)||St),qt(dr,function(cr){var fr=cr.node,Br=cr.index,$r=cr.pos,wn=cr.key,rn=cr.parentPos,On=cr.level,In={node:fr,index:Br,key:wn,pos:$r,level:On},Gn=je(wn,$r);tn[$r]=In,pn[Gn]=In,In.parent=tn[rn],In.parent&&(In.parent.children=In.parent.children||[],In.parent.children.push(In)),Zt&&Zt(In,St)},Nr),Ar&&Ar(St),St}function an(dr,sr){var cn=sr.expandedKeys,Zt=sr.selectedKeys,Ar=sr.loadedKeys,Nr=sr.loadingKeys,tn=sr.checkedKeys,pn=sr.halfCheckedKeys,St=sr.dragOverNodeKey,cr=sr.dropPosition,fr=sr.keyEntities,Br=fr[dr],$r={eventKey:dr,expanded:cn.indexOf(dr)!==-1,selected:Zt.indexOf(dr)!==-1,loaded:Ar.indexOf(dr)!==-1,loading:Nr.indexOf(dr)!==-1,checked:tn.indexOf(dr)!==-1,halfChecked:pn.indexOf(dr)!==-1,pos:String(Br?Br.pos:""),dragOver:St===dr&&cr===0,dragOverGapTop:St===dr&&cr===-1,dragOverGapBottom:St===dr&&cr===1};return $r}function _t(dr){var sr=dr.data,cn=dr.expanded,Zt=dr.selected,Ar=dr.checked,Nr=dr.loaded,tn=dr.loading,pn=dr.halfChecked,St=dr.dragOver,cr=dr.dragOverGapTop,fr=dr.dragOverGapBottom,Br=dr.pos,$r=dr.active,wn=Object(A.a)(Object(A.a)({},sr),{},{expanded:cn,selected:Zt,checked:Ar,loaded:Nr,loading:tn,halfChecked:pn,dragOver:St,dragOverGapTop:cr,dragOverGapBottom:fr,pos:Br,active:$r});return"props"in wn||Object.defineProperty(wn,"props",{get:function(){return Object(oe.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),dr}}),wn}function at(dr,sr){var cn=new Set;return dr.forEach(function(Zt){sr.has(Zt)||cn.add(Zt)}),cn}function bt(dr){var sr=dr||{},cn=sr.disabled,Zt=sr.disableCheckbox,Ar=sr.checkable;return!!(cn||Zt)||Ar===!1}function kt(dr,sr,cn,Zt){for(var Ar=new Set(dr),Nr=new Set,tn=0;tn<=cn;tn+=1){var pn=sr.get(tn)||new Set;pn.forEach(function(Br){var $r=Br.key,wn=Br.node,rn=Br.children,On=rn===void 0?[]:rn;Ar.has($r)&&!Zt(wn)&&On.filter(function(In){return!Zt(In.node)}).forEach(function(In){Ar.add(In.key)})})}for(var St=new Set,cr=cn;cr>=0;cr-=1){var fr=sr.get(cr)||new Set;fr.forEach(function(Br){var $r=Br.parent,wn=Br.node;if(Zt(wn)||!Br.parent||St.has(Br.parent.key))return;if(Zt(Br.parent.node)){St.add($r.key);return}var rn=!0,On=!1;($r.children||[]).filter(function(In){return!Zt(In.node)}).forEach(function(In){var Gn=In.key,fi=Ar.has(Gn);rn&&!fi&&(rn=!1),!On&&(fi||Nr.has(Gn))&&(On=!0)}),rn&&Ar.add($r.key),On&&Nr.add($r.key),St.add($r.key)})}return{checkedKeys:Array.from(Ar),halfCheckedKeys:Array.from(at(Nr,Ar))}}function Pt(dr,sr,cn,Zt,Ar){for(var Nr=new Set(dr),tn=new Set(sr),pn=0;pn<=Zt;pn+=1){var St=cn.get(pn)||new Set;St.forEach(function($r){var wn=$r.key,rn=$r.node,On=$r.children,In=On===void 0?[]:On;!Nr.has(wn)&&!tn.has(wn)&&!Ar(rn)&&In.filter(function(Gn){return!Ar(Gn.node)}).forEach(function(Gn){Nr.delete(Gn.key)})})}tn=new Set;for(var cr=new Set,fr=Zt;fr>=0;fr-=1){var Br=cn.get(fr)||new Set;Br.forEach(function($r){var wn=$r.parent,rn=$r.node;if(Ar(rn)||!$r.parent||cr.has($r.parent.key))return;if(Ar($r.parent.node)){cr.add(wn.key);return}var On=!0,In=!1;(wn.children||[]).filter(function(Gn){return!Ar(Gn.node)}).forEach(function(Gn){var fi=Gn.key,Yn=Nr.has(fi);On&&!Yn&&(On=!1),!In&&(Yn||tn.has(fi))&&(In=!0)}),On||Nr.delete(wn.key),In&&tn.add(wn.key),cr.add(wn.key)})}return{checkedKeys:Array.from(Nr),halfCheckedKeys:Array.from(at(tn,Nr))}}function Et(dr,sr,cn,Zt){var Ar=[],Nr;Zt?Nr=Zt:Nr=bt;var tn=new Set(dr.filter(function(fr){var Br=!!cn[fr];return Br||Ar.push(fr),Br})),pn=new Map,St=0;Object.keys(cn).forEach(function(fr){var Br=cn[fr],$r=Br.level,wn=pn.get($r);wn||(wn=new Set,pn.set($r,wn)),wn.add(Br),St=Math.max(St,$r)}),Object(oe.a)(!Ar.length,"Tree missing follow keys: ".concat(Ar.slice(0,100).map(function(fr){return"'".concat(fr,"'")}).join(", ")));var cr;return sr===!0?cr=kt(tn,pn,St,Nr):cr=Pt(tn,sr.halfCheckedKeys,pn,St,Nr),cr}var Ht=d("YrtM"),ot=d("+nKL"),Mt=function(sr,cn){var Zt=sr.className,Ar=sr.style,Nr=sr.motion,tn=sr.motionNodes,pn=sr.motionType,St=sr.onMotionStart,cr=sr.onMotionEnd,fr=sr.active,Br=sr.treeNodeRequiredProps,$r=Object(E.a)(sr,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),wn=e.useState(!0),rn=Object(g.a)(wn,2),On=rn[0],In=rn[1],Gn=e.useContext(ae),fi=Gn.prefixCls,Yn=e.useRef(!1),gi=function(){Yn.current||cr(),Yn.current=!0};return Object(e.useEffect)(function(){tn&&pn==="hide"&&On&&In(!1)},[tn]),Object(e.useEffect)(function(){return tn&&St(),function(){tn&&gi()}},[]),tn?e.createElement(L.b,Object.assign({ref:cn,visible:On},Nr,{motionAppear:pn==="show",onAppearEnd:gi,onLeaveEnd:gi}),function(vi,Di){var Mi=vi.className,xi=vi.style;return e.createElement("div",{ref:Di,className:b()("".concat(fi,"-treenode-motion"),Mi),style:xi},tn.map(function(bi){var Ci=bi.data,$i=Ci.key,qi=Object(E.a)(Ci,["key"]),Ti=bi.isStart,ia=bi.isEnd;delete qi.children;var na=an($i,Br);return e.createElement(vr,Object.assign({},qi,na,{active:fr,data:bi.data,key:$i,isStart:Ti,isEnd:ia}))}))}):e.createElement(vr,Object.assign({domRef:cn,className:Zt,style:Ar},$r,{active:fr}))};Mt.displayName="MotionTreeNode";var xr=e.forwardRef(Mt),ur=xr;function gr(){var dr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],cn=dr.length,Zt=sr.length;if(Math.abs(cn-Zt)!==1)return{add:!1,key:null};function Ar(Nr,tn){var pn=new Map;Nr.forEach(function(cr){pn.set(cr,!0)});var St=tn.filter(function(cr){return!pn.has(cr)});return St.length===1?St[0]:null}return cn<Zt?{add:!0,key:Ar(dr,sr)}:{add:!1,key:Ar(sr,dr)}}function Qr(dr,sr,cn){var Zt=dr.findIndex(function(pn){var St=pn.data;return St.key===cn}),Ar=dr[Zt+1],Nr=sr.findIndex(function(pn){var St=pn.data;return St.key===cn});if(Ar){var tn=sr.findIndex(function(pn){var St=pn.data;return St.key===Ar.data.key});return sr.slice(Nr+1,tn)}return sr.slice(Nr+1)}var ln={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},_n=function(){},Mn="RC_TREE_MOTION_".concat(Math.random()),li={key:Mn},ai={key:Mn,level:0,index:0,pos:"0",node:li},pi={parent:null,children:[],pos:ai.pos,data:li,isStart:[],isEnd:[]};function Oi(dr,sr,cn,Zt){return sr===!1||!cn?dr:dr.slice(0,Math.ceil(cn/Zt)+1)}function Ze(dr){var sr=dr.data.key,cn=dr.pos;return je(sr,cn)}function be(dr){for(var sr=String(dr.data.key),cn=dr;cn.parent;)cn=cn.parent,sr="".concat(cn.data.key," > ").concat(sr);return sr}var Ne=function(sr,cn){var Zt=sr.prefixCls,Ar=sr.data,Nr=sr.selectable,tn=sr.checkable,pn=sr.expandedKeys,St=sr.selectedKeys,cr=sr.checkedKeys,fr=sr.loadedKeys,Br=sr.loadingKeys,$r=sr.halfCheckedKeys,wn=sr.keyEntities,rn=sr.disabled,On=sr.dragging,In=sr.dragOverNodeKey,Gn=sr.dropPosition,fi=sr.motion,Yn=sr.height,gi=sr.itemHeight,vi=sr.virtual,Di=sr.focusable,Mi=sr.activeItem,xi=sr.focused,bi=sr.tabIndex,Ci=sr.onKeyDown,$i=sr.onFocus,qi=sr.onBlur,Ti=sr.onActiveChange,ia=sr.onListChangeStart,na=sr.onListChangeEnd,Ui=Object(E.a)(sr,["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"]),Ki=e.useRef(null);e.useImperativeHandle(cn,function(){return{scrollTo:function(_o){Ki.current.scrollTo(_o)}}});var ra=e.useState(pn),ea=Object(g.a)(ra,2),va=ea[0],sa=ea[1],Pa=e.useState(Ar),ka=Object(g.a)(Pa,2),Ia=ka[0],Ea=ka[1],So=e.useState(Ar),Ga=Object(g.a)(So,2),Va=Ga[0],Ra=Ga[1],po=e.useState([]),mo=Object(g.a)(po,2),Aa=mo[0],Io=mo[1],go=e.useState(null),Qa=Object(g.a)(go,2),wo=Qa[0],pa=Qa[1];function to(){Ea(Ar),Ra(Ar),Io([]),pa(null),na()}e.useEffect(function(){sa(pn);var Ja=gr(va,pn);if(Ja.key!==null)if(Ja.add){var _o=Ia.findIndex(function(ar){var Fr=ar.data.key;return Fr===Ja.key}),Ao=Oi(Qr(Ia,Ar,Ja.key),vi,Yn,gi),za=Ia.slice();za.splice(_o+1,0,pi),Ra(za),Io(Ao),pa("show")}else{var ja=Ar.findIndex(function(ar){var Fr=ar.data.key;return Fr===Ja.key}),da=Oi(Qr(Ar,Ia,Ja.key),vi,Yn,gi),rt=Ar.slice();rt.splice(ja+1,0,pi),Ra(rt),Io(da),pa("hide")}else Ia!==Ar&&(Ea(Ar),Ra(Ar))},[pn,Ar]),e.useEffect(function(){On||to()},[On]);var ao=fi?Va:Ar,Bo={expandedKeys:pn,selectedKeys:St,loadedKeys:fr,loadingKeys:Br,checkedKeys:cr,halfCheckedKeys:$r,dragOverNodeKey:In,dropPosition:Gn,keyEntities:wn};return e.createElement(e.Fragment,null,xi&&Mi&&e.createElement("span",{style:ln,"aria-live":"assertive"},be(Mi)),e.createElement("div",{role:"tree"},e.createElement("input",{style:ln,disabled:Di===!1||rn,tabIndex:Di!==!1?bi:null,onKeyDown:Ci,onFocus:$i,onBlur:qi,value:"",onChange:_n})),e.createElement(ot.a,Object.assign({},Ui,{data:ao,itemKey:Ze,height:Yn,fullHeight:!1,virtual:vi,itemHeight:gi,prefixCls:"".concat(Zt,"-list"),ref:Ki}),function(Ja){var _o=Ja.pos,Ao=Ja.data,za=Ao.key,ja=Object(E.a)(Ao,["key"]),da=Ja.isStart,rt=Ja.isEnd,ar=je(za,_o);delete ja.children;var Fr=an(ar,Bo);return e.createElement(ur,Object.assign({},ja,Fr,{active:Mi&&za===Mi.data.key,pos:_o,data:Ja.data,isStart:da,isEnd:rt,motion:fi,motionNodes:za===Mn?Aa:null,motionType:wo,onMotionStart:ia,onMotionEnd:to,treeNodeRequiredProps:Bo,onMouseMove:function(){Ti(null)}}))}))},Ue=e.forwardRef(Ne);Ue.displayName="NodeList";var Qe=Ue,Xe=function(dr){Object(l.a)(cn,dr);var sr=Object(u.a)(cn);function cn(){var Zt;return Object(t.a)(this,cn),Zt=sr.apply(this,arguments),Zt.destroyed=!1,Zt.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},Zt.listRef=e.createRef(),Zt.onNodeDragStart=function(Ar,Nr){var tn=Zt.state,pn=tn.expandedKeys,St=tn.keyEntities,cr=Zt.props.onDragStart,fr=Nr.props.eventKey;Zt.dragNode=Nr;var Br=ft(pn,fr);Zt.setState({dragging:!0,dragNodesKeys:wi(fr,St)}),Zt.setExpandedKeys(Br),cr&&cr({event:Ar,node:_t(Nr.props)})},Zt.onNodeDragEnter=function(Ar,Nr){var tn=Zt.state,pn=tn.expandedKeys,St=tn.keyEntities,cr=tn.dragNodesKeys,fr=Zt.props.onDragEnter,Br=Nr.props,$r=Br.pos,wn=Br.eventKey;if(!Zt.dragNode||cr.indexOf(wn)!==-1)return;var rn=Rn(Ar,Nr);if(Zt.dragNode.props.eventKey===wn&&rn===0){Zt.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){Zt.setState({dragOverNodeKey:wn,dropPosition:rn}),Zt.delayedDragEnterLogic||(Zt.delayedDragEnterLogic={}),Object.keys(Zt.delayedDragEnterLogic).forEach(function(On){clearTimeout(Zt.delayedDragEnterLogic[On])}),Zt.delayedDragEnterLogic[$r]=window.setTimeout(function(){if(!Zt.state.dragging)return;var On=Object(h.a)(pn),In=St[wn];In&&(In.children||[]).length&&(On=Ur(pn,wn)),"expandedKeys"in Zt.props||Zt.setExpandedKeys(On),fr&&fr({event:Ar,node:_t(Nr.props),expandedKeys:On})},400)},0)},Zt.onNodeDragOver=function(Ar,Nr){var tn=Zt.state.dragNodesKeys,pn=Zt.props.onDragOver,St=Nr.props.eventKey;if(tn.indexOf(St)!==-1)return;if(Zt.dragNode&&St===Zt.state.dragOverNodeKey){var cr=Rn(Ar,Nr);if(cr===Zt.state.dropPosition)return;Zt.setState({dropPosition:cr})}pn&&pn({event:Ar,node:_t(Nr.props)})},Zt.onNodeDragLeave=function(Ar,Nr){var tn=Zt.props.onDragLeave;Zt.setState({dragOverNodeKey:""}),tn&&tn({event:Ar,node:_t(Nr.props)})},Zt.onNodeDragEnd=function(Ar,Nr){var tn=Zt.props.onDragEnd;Zt.setState({dragOverNodeKey:""}),Zt.cleanDragState(),tn&&tn({event:Ar,node:_t(Nr.props)}),Zt.dragNode=null},Zt.onNodeDrop=function(Ar,Nr){var tn=Zt.state,pn=tn.dragNodesKeys,St=pn===void 0?[]:pn,cr=tn.dropPosition,fr=Zt.props.onDrop,Br=Nr.props,$r=Br.eventKey,wn=Br.pos;if(Zt.setState({dragOverNodeKey:""}),Zt.cleanDragState(),St.indexOf($r)!==-1){Object(oe.a)(!1,"Can not drop to dragNode(include it's children node)");return}var rn=yn(wn),On={event:Ar,node:_t(Nr.props),dragNode:Zt.dragNode?_t(Zt.dragNode.props):null,dragNodesKeys:St.slice(),dropPosition:cr+Number(rn[rn.length-1]),dropToGap:!1};cr!==0&&(On.dropToGap=!0),fr&&fr(On),Zt.dragNode=null},Zt.cleanDragState=function(){var Ar=Zt.state.dragging;Ar&&Zt.setState({dragging:!1})},Zt.onNodeClick=function(Ar,Nr){var tn=Zt.props.onClick;tn&&tn(Ar,Nr)},Zt.onNodeDoubleClick=function(Ar,Nr){var tn=Zt.props.onDoubleClick;tn&&tn(Ar,Nr)},Zt.onNodeSelect=function(Ar,Nr){var tn=Zt.state.selectedKeys,pn=Zt.state.keyEntities,St=Zt.props,cr=St.onSelect,fr=St.multiple,Br=Nr.selected,$r=Nr.key,wn=!Br;wn?fr?tn=Ur(tn,$r):tn=[$r]:tn=ft(tn,$r);var rn=tn.map(function(On){var In=pn[On];return In?In.node:null}).filter(function(On){return On});Zt.setUncontrolledState({selectedKeys:tn}),cr&&cr(tn,{event:"select",selected:wn,node:Nr,selectedNodes:rn,nativeEvent:Ar.nativeEvent})},Zt.onNodeCheck=function(Ar,Nr,tn){var pn=Zt.state,St=pn.keyEntities,cr=pn.checkedKeys,fr=pn.halfCheckedKeys,Br=Zt.props,$r=Br.checkStrictly,wn=Br.onCheck,rn=Nr.key,On,In={event:"check",node:Nr,checked:tn,nativeEvent:Ar.nativeEvent};if($r){var Gn=tn?Ur(cr,rn):ft(cr,rn),fi=ft(fr,rn);On={checked:Gn,halfChecked:fi},In.checkedNodes=Gn.map(function(xi){return St[xi]}).filter(function(xi){return xi}).map(function(xi){return xi.node}),Zt.setUncontrolledState({checkedKeys:Gn})}else{var Yn=Et([].concat(Object(h.a)(cr),[rn]),!0,St),gi=Yn.checkedKeys,vi=Yn.halfCheckedKeys;if(!tn){var Di=new Set(gi);Di.delete(rn);var Mi=Et(Array.from(Di),{checked:!1,halfCheckedKeys:vi},St);gi=Mi.checkedKeys,vi=Mi.halfCheckedKeys}On=gi,In.checkedNodes=[],In.checkedNodesPositions=[],In.halfCheckedKeys=vi,gi.forEach(function(xi){var bi=St[xi];if(!bi)return;var Ci=bi.node,$i=bi.pos;In.checkedNodes.push(Ci),In.checkedNodesPositions.push({node:Ci,pos:$i})}),Zt.setUncontrolledState({checkedKeys:gi},!1,{halfCheckedKeys:vi})}wn&&wn(On,In)},Zt.onNodeLoad=function(Ar){return new Promise(function(Nr){Zt.setState(function(tn){var pn=tn.loadedKeys,St=pn===void 0?[]:pn,cr=tn.loadingKeys,fr=cr===void 0?[]:cr,Br=Zt.props,$r=Br.loadData,wn=Br.onLoad,rn=Ar.key;if(!$r||St.indexOf(rn)!==-1||fr.indexOf(rn)!==-1)return{};var On=$r(Ar);return On.then(function(){var In=Zt.state,Gn=In.loadedKeys,fi=In.loadingKeys,Yn=Ur(Gn,rn),gi=ft(fi,rn);wn&&wn(Yn,{event:"load",node:Ar}),Zt.setUncontrolledState({loadedKeys:Yn}),Zt.setState({loadingKeys:gi}),Nr()}),{loadingKeys:Ur(fr,rn)}})})},Zt.onNodeMouseEnter=function(Ar,Nr){var tn=Zt.props.onMouseEnter;tn&&tn({event:Ar,node:Nr})},Zt.onNodeMouseLeave=function(Ar,Nr){var tn=Zt.props.onMouseLeave;tn&&tn({event:Ar,node:Nr})},Zt.onNodeContextMenu=function(Ar,Nr){var tn=Zt.props.onRightClick;tn&&(Ar.preventDefault(),tn({event:Ar,node:Nr}))},Zt.onFocus=function(){var Ar=Zt.props.onFocus;Zt.setState({focused:!0}),Ar&&Ar.apply(void 0,arguments)},Zt.onBlur=function(){var Ar=Zt.props.onBlur;Zt.setState({focused:!1}),Zt.onActiveChange(null),Ar&&Ar.apply(void 0,arguments)},Zt.getTreeNodeRequiredProps=function(){var Ar=Zt.state,Nr=Ar.expandedKeys,tn=Ar.selectedKeys,pn=Ar.loadedKeys,St=Ar.loadingKeys,cr=Ar.checkedKeys,fr=Ar.halfCheckedKeys,Br=Ar.dragOverNodeKey,$r=Ar.dropPosition,wn=Ar.keyEntities;return{expandedKeys:Nr||[],selectedKeys:tn||[],loadedKeys:pn||[],loadingKeys:St||[],checkedKeys:cr||[],halfCheckedKeys:fr||[],dragOverNodeKey:Br,dropPosition:$r,keyEntities:wn}},Zt.setExpandedKeys=function(Ar){var Nr=Zt.state.treeData,tn=wt(Nr,Ar);Zt.setUncontrolledState({expandedKeys:Ar,flattenNodes:tn},!0)},Zt.onNodeExpand=function(Ar,Nr){var tn=Zt.state.expandedKeys,pn=Zt.state.listChanging,St=Zt.props,cr=St.onExpand,fr=St.loadData,Br=Nr.key,$r=Nr.expanded;if(pn)return;var wn=tn.indexOf(Br),rn=!$r;if(Object(oe.a)($r&&wn!==-1||!$r&&wn===-1,"Expand state not sync with index check"),rn?tn=Ur(tn,Br):tn=ft(tn,Br),Zt.setExpandedKeys(tn),cr&&cr(tn,{node:Nr,expanded:rn,nativeEvent:Ar.nativeEvent}),rn&&fr){var On=Zt.onNodeLoad(Nr);On&&On.then(function(){var In=wt(Zt.state.treeData,tn);Zt.setUncontrolledState({flattenNodes:In})})}},Zt.onListChangeStart=function(){Zt.setUncontrolledState({listChanging:!0})},Zt.onListChangeEnd=function(){setTimeout(function(){Zt.setUncontrolledState({listChanging:!1})})},Zt.onActiveChange=function(Ar){var Nr=Zt.state.activeKey,tn=Zt.props.onActiveChange;if(Nr===Ar)return;Zt.setState({activeKey:Ar}),Ar!==null&&Zt.scrollTo({key:Ar}),tn&&tn(Ar)},Zt.getActiveItem=function(){var Ar=Zt.state,Nr=Ar.activeKey,tn=Ar.flattenNodes;return Nr===null?null:tn.find(function(pn){var St=pn.data.key;return St===Nr})||null},Zt.offsetActiveKey=function(Ar){var Nr=Zt.state,tn=Nr.flattenNodes,pn=Nr.activeKey,St=tn.findIndex(function(Br){var $r=Br.data.key;return $r===pn});St===-1&&Ar<0&&(St=tn.length),St=(St+Ar+tn.length)%tn.length;var cr=tn[St];if(cr){var fr=cr.data.key;Zt.onActiveChange(fr)}else Zt.onActiveChange(null)},Zt.onKeyDown=function(Ar){var Nr=Zt.state,tn=Nr.activeKey,pn=Nr.expandedKeys,St=Nr.checkedKeys,cr=Zt.props,fr=cr.onKeyDown,Br=cr.checkable,$r=cr.selectable;switch(Ar.which){case C.a.UP:{Zt.offsetActiveKey(-1),Ar.preventDefault();break}case C.a.DOWN:{Zt.offsetActiveKey(1),Ar.preventDefault();break}}var wn=Zt.getActiveItem();if(wn&&wn.data){var rn=Zt.getTreeNodeRequiredProps(),On=wn.data.isLeaf===!1||!!(wn.data.children||[]).length,In=_t(Object(A.a)(Object(A.a)({},an(tn,rn)),{},{data:wn.data,active:!0}));switch(Ar.which){case C.a.LEFT:{On&&pn.includes(tn)?Zt.onNodeExpand({},In):wn.parent&&Zt.onActiveChange(wn.parent.data.key),Ar.preventDefault();break}case C.a.RIGHT:{On&&!pn.includes(tn)?Zt.onNodeExpand({},In):wn.children&&wn.children.length&&Zt.onActiveChange(wn.children[0].data.key),Ar.preventDefault();break}case C.a.ENTER:case C.a.SPACE:{Br&&!In.disabled&&In.checkable!==!1&&!In.disableCheckbox?Zt.onNodeCheck({},In,!St.includes(tn)):!Br&&$r&&!In.disabled&&In.selectable!==!1&&Zt.onNodeSelect({},In);break}}}fr&&fr(Ar)},Zt.setUncontrolledState=function(Ar){var Nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(Zt.destroyed)return;var pn=!1,St=!0,cr={};Object.keys(Ar).forEach(function(fr){if(fr in Zt.props){St=!1;return}pn=!0,cr[fr]=Ar[fr]}),pn&&(!Nr||St)&&Zt.setState(Object(A.a)(Object(A.a)({},cr),tn))},Zt.scrollTo=function(Ar){Zt.listRef.current.scrollTo(Ar)},Zt}return Object(i.a)(cn,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var Ar,Nr=this.state,tn=Nr.focused,pn=Nr.flattenNodes,St=Nr.keyEntities,cr=Nr.dragging,fr=Nr.activeKey,Br=this.props,$r=Br.prefixCls,wn=Br.className,rn=Br.style,On=Br.showLine,In=Br.focusable,Gn=Br.tabIndex,fi=Gn===void 0?0:Gn,Yn=Br.selectable,gi=Br.showIcon,vi=Br.icon,Di=Br.switcherIcon,Mi=Br.draggable,xi=Br.checkable,bi=Br.checkStrictly,Ci=Br.disabled,$i=Br.motion,qi=Br.loadData,Ti=Br.filterTreeNode,ia=Br.height,na=Br.itemHeight,Ui=Br.virtual,Ki=Br.titleRender,ra=Br.onContextMenu,ea=Ee(this.props);return e.createElement(ae.Provider,{value:{prefixCls:$r,selectable:Yn,showIcon:gi,icon:vi,switcherIcon:Di,draggable:Mi,checkable:xi,checkStrictly:bi,disabled:Ci,keyEntities:St,loadData:qi,filterTreeNode:Ti,titleRender:Ki,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}},e.createElement("div",{className:b()($r,wn,(Ar={},Object(y.a)(Ar,"".concat($r,"-show-line"),On),Object(y.a)(Ar,"".concat($r,"-focused"),tn),Object(y.a)(Ar,"".concat($r,"-active-focused"),fr!==null),Ar))},e.createElement(Qe,Object.assign({ref:this.listRef,prefixCls:$r,style:rn,data:pn,disabled:Ci,selectable:Yn,checkable:!!xi,motion:$i,dragging:cr,height:ia,itemHeight:na,virtual:Ui,focusable:In,focused:tn,tabIndex:fi,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ra},this.getTreeNodeRequiredProps(),ea))))}}],[{key:"getDerivedStateFromProps",value:function(Ar,Nr){var tn=Nr.prevProps,pn={prevProps:Ar};function St(vi){return!tn&&vi in Ar||tn&&tn[vi]!==Ar[vi]}var cr;if(St("treeData")?cr=Ar.treeData:St("children")&&(Object(oe.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),cr=$e(Ar.children)),cr){pn.treeData=cr;var fr=Mr(cr);pn.keyEntities=Object(A.a)(Object(y.a)({},Mn,ai),fr.keyEntities)}var Br=pn.keyEntities||Nr.keyEntities;if(St("expandedKeys")||tn&&St("autoExpandParent"))pn.expandedKeys=Ar.autoExpandParent||!tn&&Ar.defaultExpandParent?ue(Ar.expandedKeys,Br):Ar.expandedKeys;else if(!tn&&Ar.defaultExpandAll){var $r=Object(A.a)({},Br);delete $r[Mn],pn.expandedKeys=Object.keys($r).map(function(vi){return $r[vi].key})}else!tn&&Ar.defaultExpandedKeys&&(pn.expandedKeys=Ar.autoExpandParent||Ar.defaultExpandParent?ue(Ar.defaultExpandedKeys,Br):Ar.defaultExpandedKeys);if(pn.expandedKeys||delete pn.expandedKeys,cr||pn.expandedKeys){var wn=wt(cr||Nr.treeData,pn.expandedKeys||Nr.expandedKeys);pn.flattenNodes=wn}if(Ar.selectable&&(St("selectedKeys")?pn.selectedKeys=kn(Ar.selectedKeys,Ar):!tn&&Ar.defaultSelectedKeys&&(pn.selectedKeys=kn(Ar.defaultSelectedKeys,Ar))),Ar.checkable){var rn;if(St("checkedKeys")?rn=st(Ar.checkedKeys)||{}:!tn&&Ar.defaultCheckedKeys?rn=st(Ar.defaultCheckedKeys)||{}:cr&&(rn=st(Ar.checkedKeys)||{checkedKeys:Nr.checkedKeys,halfCheckedKeys:Nr.halfCheckedKeys}),rn){var On=rn,In=On.checkedKeys,Gn=In===void 0?[]:In,fi=On.halfCheckedKeys,Yn=fi===void 0?[]:fi;if(!Ar.checkStrictly){var gi=Et(Gn,!0,Br);Gn=gi.checkedKeys,Yn=gi.halfCheckedKeys}pn.checkedKeys=Gn,pn.halfCheckedKeys=Yn}}return St("loadedKeys")&&(pn.loadedKeys=Ar.loadedKeys),pn}}]),cn}(e.Component);Xe.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:[]},Xe.TreeNode=vr;var qe=Xe,yt=qe,ht=e.createContext(null);function Jt(dr,sr){if(!dr)return!0;var cn=dr.data,Zt=cn.disabled,Ar=cn.disableCheckbox;switch(sr){case"select":return Zt;case"checkbox":return Zt||Ar}return!1}function kr(dr,sr){var cn=e.useCallback(function(Ar){var Nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",tn=arguments.length>2?arguments[2]:void 0,pn=dr.get(Ar);return!tn&&Jt(pn,Nr)?null:pn},[dr]),Zt=e.useCallback(function(Ar){var Nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",tn=arguments.length>2?arguments[2]:void 0,pn=sr.get(Ar);return!tn&&Jt(pn,Nr)?null:pn},[sr]);return[cn,Zt]}function _r(dr){return e.useMemo(function(){var sr=new Map,cn=new Map;return dr.forEach(function(Zt){sr.set(Zt.key,Zt),cn.set(Zt.data.value,Zt)}),[sr,cn]},[dr])}var Xr={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Bt=function(sr,cn){var Zt=sr.prefixCls,Ar=sr.height,Nr=sr.itemHeight,tn=sr.virtual,pn=sr.options,St=sr.flattenOptions,cr=sr.multiple,fr=sr.searchValue,Br=sr.onSelect,$r=sr.onToggleOpen,wn=sr.open,rn=sr.notFoundContent,On=sr.onMouseEnter,In=e.useContext(ht),Gn=In.checkable,fi=In.checkedKeys,Yn=In.halfCheckedKeys,gi=In.treeExpandedKeys,vi=In.treeDefaultExpandAll,Di=In.treeDefaultExpandedKeys,Mi=In.onTreeExpand,xi=In.treeIcon,bi=In.showTreeIcon,Ci=In.switcherIcon,$i=In.treeLine,qi=In.treeNodeFilterProp,Ti=In.loadData,ia=In.treeLoadedKeys,na=In.treeMotion,Ui=In.onTreeLoad,Ki=e.useRef(),ra=Object(Ht.a)(function(){return pn},[wn,pn],function(Fr,Ir){return Ir[0]&&Fr[1]!==Ir[1]}),ea=_r(St),va=Object(g.a)(ea,2),sa=va[0],Pa=va[1],ka=kr(sa,Pa),Ia=Object(g.a)(ka,2),Ea=Ia[0],So=Ia[1],Ga=e.useMemo(function(){return fi.map(function(Fr){var Ir=So(Fr);return Ir?Ir.key:null})},[fi]),Va=e.useMemo(function(){return Gn?{checked:Ga,halfChecked:Yn}:null},[Ga,Yn,Gn]);e.useEffect(function(){if(wn&&!cr&&Ga.length){var Fr;(Fr=Ki.current)===null||Fr===void 0||Fr.scrollTo({key:Ga[0]})}},[wn]);var Ra=String(fr).toLowerCase(),po=function(Ir){return Ra?String(Ir[qi]).toLowerCase().includes(Ra):!1},mo=e.useState(Di),Aa=Object(g.a)(mo,2),Io=Aa[0],go=Aa[1],Qa=e.useState(null),wo=Object(g.a)(Qa,2),pa=wo[0],to=wo[1],ao=e.useMemo(function(){return gi?Object(h.a)(gi):fr?pa:Io},[Io,pa,Ra,gi]);e.useEffect(function(){fr&&to(St.map(function(Fr){return Fr.key}))},[fr]);var Bo=function(Ir){go(Ir),to(Ir),Mi&&Mi(Ir)},Ja=function(Ir){Ir.preventDefault()},_o=function(Ir,En){var zr=En.node.key,yr=Ea(zr,Gn?"checkbox":"select");yr!==null&&Br(yr.data.value,{selected:!fi.includes(yr.data.value)}),cr||$r(!1)},Ao=e.useState(null),za=Object(g.a)(Ao,2),ja=za[0],da=za[1],rt=Ea(ja);if(e.useImperativeHandle(cn,function(){return{onKeyDown:function(Ir){var En,zr=Ir.which;switch(zr){case C.a.UP:case C.a.DOWN:case C.a.LEFT:case C.a.RIGHT:(En=Ki.current)===null||En===void 0||En.onKeyDown(Ir);break;case C.a.ENTER:{rt!==null&&_o(null,{node:{key:ja},selected:!fi.includes(rt.data.value)});break}case C.a.ESC:$r(!1)}},onKeyUp:function(){}}}),ra.length===0)return e.createElement("div",{role:"listbox",className:"".concat(Zt,"-empty"),onMouseDown:Ja},rn);var ar={};return ia&&(ar.loadedKeys=ia),ao&&(ar.expandedKeys=ao),e.createElement("div",{onMouseDown:Ja,onMouseEnter:On},rt&&wn&&e.createElement("span",{style:Xr,"aria-live":"assertive"},rt.data.value),e.createElement(yt,Object.assign({ref:Ki,focusable:!1,prefixCls:"".concat(Zt,"-tree"),treeData:ra,height:Ar,itemHeight:Nr,virtual:tn,multiple:cr,icon:xi,showIcon:bi,switcherIcon:Ci,showLine:$i,loadData:fr?null:Ti,motion:na,checkable:Gn,checkStrictly:!0,checkedKeys:Va,selectedKeys:Gn?[]:Ga,defaultExpandAll:vi},ar,{onActiveChange:da,onSelect:_o,onCheck:_o,onExpand:Bo,onLoad:Ui,filterTreeNode:po})))},gn=e.forwardRef(Bt);gn.displayName="OptionList";var hr=gn,vn=function(){return null},en=vn;function Dt(dr){return Object(Re.a)(dr).map(function(sr){if(!e.isValidElement(sr)||!sr.type)return null;var cn=sr.key,Zt=sr.props,Ar=Zt.children,Nr=Zt.value,tn=Object(E.a)(Zt,["children","value"]),pn=Object(A.a)({key:cn,value:Nr},tn),St=Dt(Ar);return St.length&&(pn.children=St),pn}).filter(function(sr){return sr})}function jr(dr){if(!dr)return dr;var sr=Object(A.a)({},dr);return"props"in sr||Object.defineProperty(sr,"props",{get:function(){return Object(oe.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),sr}}),sr}function un(dr,sr,cn,Zt,Ar){var Nr=null,tn=null;function pn(){function St(cr){var fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Br=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return cr.map(function($r,wn){var rn="".concat(fr,"-").concat(wn),On=cn.includes($r.value),In=St($r.children||[],rn,On),Gn=e.createElement(en,Object.assign({},$r),In.map(function(Yn){return Yn.node}));if(sr===$r.value&&(Nr=Gn),On){var fi={pos:rn,node:Gn,children:In};return Br||tn.push(fi),fi}return null}).filter(function($r){return $r})}tn||(tn=[],St(Zt),tn.sort(function(cr,fr){var Br=cr.node.props.value,$r=fr.node.props.value,wn=cn.indexOf(Br),rn=cn.indexOf($r);return wn-rn}))}Object.defineProperty(dr,"triggerNode",{get:function(){return Object(oe.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),pn(),Nr}}),Object.defineProperty(dr,"allCheckedNodes",{get:function(){return Object(oe.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),pn(),Ar?tn:tn.map(function(cr){var fr=cr.node;return fr})}})}function Hr(dr){return Array.isArray(dr)?dr:dr!==void 0?[dr]:[]}function Wt(dr,sr){var cn=new Map;return sr.forEach(function(Zt){var Ar=Zt.data;cn.set(Ar.value,Ar)}),dr.map(function(Zt){return jr(cn.get(Zt))})}function wr(dr,sr){var cn=Wt([dr],sr)[0];return cn?cn.disabled:!1}function fn(dr){return dr.disabled||dr.disableCheckbox||dr.checkable===!1}function zt(dr){for(var sr=dr.parent,cn=0,Zt=sr;Zt;)Zt=Zt.parent,cn+=1;return cn}function Dr(dr){function sr(Zt){return(Zt||[]).map(function(Ar){var Nr=Ar.value,tn=Ar.key,pn=Ar.children,St=Object(A.a)(Object(A.a)({},Ar),{},{key:"key"in Ar?tn:Nr});return pn&&(St.children=sr(pn)),St})}var cn=wt(sr(dr),!0);return cn.map(function(Zt){return{key:Zt.data.key,data:Zt.data,level:zt(Zt)}})}function ir(dr){return function(sr,cn){var Zt=cn[dr];return String(Zt).toLowerCase().includes(String(sr).toLowerCase())}}function Lt(dr,sr,cn){var Zt=cn.optionFilterProp,Ar=cn.filterOption;if(Ar===!1)return sr;var Nr;typeof Ar=="function"?Nr=Ar:Nr=ir(Zt);function tn(pn){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return pn.map(function(cr){var fr=cr.children,Br=St||Nr(dr,jr(cr)),$r=tn(fr||[],Br);return Br||$r.length?Object(A.a)(Object(A.a)({},cr),{},{children:$r}):null}).filter(function(cr){return cr})}return tn(sr)}function Qt(dr,sr,cn,Zt){var Ar=new Map;return Hr(sr).forEach(function(Nr){Nr&&Object(p.a)(Nr)==="object"&&"value"in Nr&&Ar.set(Nr.value,Nr)}),dr.map(function(Nr){var tn={value:Nr},pn=cn(Nr,"select",!0),St=pn?Zt(pn.data):Nr;if(Ar.has(Nr)){var cr=Ar.get(Nr);tn.label="label"in cr?cr.label:St,"halfChecked"in cr&&(tn.halfChecked=cr.halfChecked)}else tn.label=St;return tn})}function It(dr,sr){var cn=new Set(dr);return cn.add(sr),Array.from(cn)}function or(dr,sr){var cn=new Set(dr);return cn.delete(sr),Array.from(cn)}function Cr(dr){var sr=dr.searchPlaceholder,cn=dr.treeCheckStrictly,Zt=dr.treeCheckable,Ar=dr.labelInValue,Nr=dr.value,tn=dr.multiple;Object(oe.a)(!sr,"`searchPlaceholder` has been removed."),cn&&Ar===!1&&Object(oe.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Ar||cn)&&Object(oe.a)(Hr(Nr).every(function(pn){return pn&&Object(p.a)(pn)==="object"&&"value"in pn}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),cn||tn||Zt?Object(oe.a)(!Nr||Array.isArray(Nr),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(oe.a)(!Array.isArray(Nr),"`value` should not be array when `TreeSelect` is single mode.")}var Er=Cr,Kr=10;function jn(dr,sr){var cn=sr.id,Zt=sr.pId,Ar=sr.rootPId,Nr={},tn=[],pn=dr.map(function(St){var cr=Object(A.a)({},St),fr=cr[cn];return Nr[fr]=cr,cr.key=cr.key||fr,cr});return pn.forEach(function(St){var cr=St[Zt],fr=Nr[cr];fr&&(fr.children=fr.children||[],fr.children.push(St)),(cr===Ar||!fr&&Ar===null)&&tn.push(St)}),tn}function Nn(dr,sr){var cn=0,Zt=new Set;function Ar(Nr){return(Nr||[]).map(function(tn){var pn=tn.key,St=tn.value,cr=tn.children,fr=Object(E.a)(tn,["key","value","children"]),Br="value"in tn?St:pn,$r=Object(A.a)(Object(A.a)({},fr),{},{key:pn!=null?pn:Br,value:Br,title:sr(tn)});return"children"in tn&&($r.children=Ar(cr)),$r})}return Ar(dr)}function ei(dr,sr,cn){var Zt=cn.getLabelProp,Ar=cn.simpleMode,Nr=e.useRef({});return dr?(Nr.current.formatTreeData=Nr.current.treeData===dr?Nr.current.formatTreeData:Nn(Ar?jn(dr,Object(A.a)({id:"id",pId:"pId",rootPId:null},Ar!==!0?Ar:{})):dr,Zt),Nr.current.treeData=dr):Nr.current.formatTreeData=Nr.current.children===sr?Nr.current.formatTreeData:Nn(Dt(sr),Zt),Nr.current.formatTreeData}var Zr="SHOW_ALL",br="SHOW_PARENT",dn="SHOW_CHILD";function Ln(dr,sr,cn){var Zt=new Set(dr);return sr===dn?dr.filter(function(Ar){var Nr=cn[Ar];return!(Nr&&Nr.children&&Nr.children.every(function(tn){var pn=tn.node;return fn(pn)||Zt.has(pn.key)}))}):sr===br?dr.filter(function(Ar){var Nr=cn[Ar],tn=Nr?Nr.parent:null;return!(tn&&!fn(tn.node)&&Zt.has(tn.node.key))}):dr}function Fn(dr,sr){var cn=sr.value,Zt=sr.getEntityByValue,Ar=sr.getEntityByKey,Nr=sr.treeConduction,tn=sr.showCheckedStrategy,pn=sr.conductKeyEntities,St=sr.getLabelProp;return e.useMemo(function(){var cr=dr;if(Nr){var fr=Ln(dr.map(function(Br){var $r=Zt(Br);return $r?$r.key:Br}),tn,pn);cr=fr.map(function(Br){var $r=Ar(Br);return $r?$r.data.value:Br})}return Qt(cr,cn,Zt,St)},[dr,cn,Nr,tn,Zt])}var zn=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],ui=Z({prefixCls:"rc-tree-select",components:{optionList:hr},convertChildrenToData:function(){return null},flattenOptions:Dr,getLabeledValue:et,filterOptions:Lt,isValueDisabled:wr,findValueOption:Wt,omitDOMProps:function(sr){var cn=Object(A.a)({},sr);return zn.forEach(function(Zt){delete cn[Zt]}),cn}});ui.displayName="Select";var ii=e.forwardRef(function(dr,sr){var cn=dr.multiple,Zt=dr.treeCheckable,Ar=dr.treeCheckStrictly,Nr=dr.showCheckedStrategy,tn=Nr===void 0?"SHOW_CHILD":Nr,pn=dr.labelInValue,St=dr.loadData,cr=dr.treeLoadedKeys,fr=dr.treeNodeFilterProp,Br=fr===void 0?"value":fr,$r=dr.treeNodeLabelProp,wn=dr.treeDataSimpleMode,rn=dr.treeData,On=dr.treeExpandedKeys,In=dr.treeDefaultExpandedKeys,Gn=dr.treeDefaultExpandAll,fi=dr.children,Yn=dr.treeIcon,gi=dr.showTreeIcon,vi=dr.switcherIcon,Di=dr.treeLine,Mi=dr.treeMotion,xi=dr.filterTreeNode,bi=dr.dropdownPopupAlign,Ci=dr.onChange,$i=dr.onTreeExpand,qi=dr.onTreeLoad,Ti=dr.onDropdownVisibleChange,ia=dr.onSelect,na=dr.onDeselect,Ui=Zt||Ar,Ki=cn||Ui,ra=Zt&&!Ar,ea=Ar||pn,va=e.useRef(null);e.useImperativeHandle(sr,function(){return{focus:va.current.focus,blur:va.current.blur}});var sa=function(zr){return rn&&zr.label||zr.title},Pa=function(zr){return $r?zr[$r]:sa(zr)},ka=ei(rn,fi,{getLabelProp:sa,simpleMode:wn}),Ia=Object(e.useMemo)(function(){return Dr(ka)},[ka]),Ea=_r(Ia),So=Object(g.a)(Ea,2),Ga=So[0],Va=So[1],Ra=kr(Ga,Va),po=Object(g.a)(Ra,2),mo=po[0],Aa=po[1],Io=Object(e.useMemo)(function(){return ra?Mr(ka):{keyEntities:null}},[ka,Zt,Ar]),go=Io.keyEntities,Qa=Object(I.a)(dr.defaultValue,{value:dr.value}),wo=Object(g.a)(Qa,2),pa=wo[0],to=wo[1],ao=function(zr){var yr=[],Cn=[];return zr.forEach(function(Pr){Aa(Pr)?Cn.push(Pr):yr.push(Pr)}),{missingRawValues:yr,existRawValues:Cn}},Bo=Object(e.useMemo)(function(){var En=[],zr=[];if(Hr(pa).forEach(function(si){if(si&&Object(p.a)(si)==="object"&&"value"in si)if(si.halfChecked&&Ar){var Xn=Aa(si.value);En.push(Xn?Xn.key:si.value)}else zr.push(si.value);else zr.push(si)}),ra){var yr=ao(zr),Cn=yr.missingRawValues,Pr=yr.existRawValues,xn=Pr.map(function(si){return Aa(si).key}),Qn=Et(xn,!0,go),$n=Qn.checkedKeys,Kn=Qn.halfCheckedKeys;return[[].concat(Object(h.a)(Cn),Object(h.a)($n.map(function(si){return mo(si).data.value}))),Kn]}return[zr,En]},[pa,Ki,ea,Zt,Ar]),Ja=Object(g.a)(Bo,2),_o=Ja[0],Ao=Ja[1],za=Fn(_o,{treeConduction:ra,value:pa,showCheckedStrategy:tn,conductKeyEntities:go,getEntityByValue:Aa,getEntityByKey:mo,getLabelProp:Pa}),ja=function(zr,yr,Cn){if(to(Ki?zr:zr[0]),Ci){var Pr=zr;if(ra&&tn!=="SHOW_ALL"){var xn=zr.map(function(yi){var Xi=Aa(yi);return Xi?Xi.key:yi}),Qn=Ln(xn,tn,go);Pr=Qn.map(function(yi){var Xi=mo(yi);return Xi?Xi.data.value:yi})}var $n=yr||{triggerValue:void 0,selected:void 0},Kn=$n.triggerValue,si=$n.selected,Xn=ea?Qt(Pr,pa,Aa,Pa):Pr;if(Ar){var ti=Ao.map(function(yi){var Xi=mo(yi);return Xi?Xi.data.value:yi}).filter(function(yi){return!Pr.includes(yi)});Xn=[].concat(Object(h.a)(Xn),Object(h.a)(Qt(ti,pa,Aa,Pa)))}var di={preValue:za,triggerValue:Kn},Bi=!0;(Ar||Cn==="selection"&&!si)&&(Bi=!1),un(di,Kn,zr,ka,Bi),Ui?di.checked=si:di.selected=si,Ci(Ki?Xn:Xn[0],ea?null:Pr.map(function(yi){var Xi=Aa(yi);return Xi?Pa(Xi.data):null}),di)}},da=function(zr,yr,Cn){var Pr=zr;if(!Ki)ja([zr],{selected:!0,triggerValue:zr},Cn);else{var xn=It(_o,zr);if(ra){var Qn=ao(xn),$n=Qn.missingRawValues,Kn=Qn.existRawValues,si=Kn.map(function(di){return Aa(di).key}),Xn=Et(si,!0,go),ti=Xn.checkedKeys;xn=[].concat(Object(h.a)($n),Object(h.a)(ti.map(function(di){return mo(di).data.value})))}ja(xn,{selected:!0,triggerValue:zr},Cn)}ia&&ia(Pr,yr)},rt=function(zr,yr,Cn){var Pr=zr,xn=or(_o,zr);if(ra){var Qn=ao(xn),$n=Qn.missingRawValues,Kn=Qn.existRawValues,si=Kn.map(function(di){return Aa(di).key}),Xn=Et(si,{checked:!1,halfCheckedKeys:Ao},go),ti=Xn.checkedKeys;xn=[].concat(Object(h.a)($n),Object(h.a)(ti.map(function(di){return mo(di).data.value})))}ja(xn,{selected:!1,triggerValue:zr},Cn),na&&na(Pr,yr)},ar=function(){ja([],null,"clear")},Fr=e.useCallback(function(En){if(Ti){var zr={};Object.defineProperty(zr,"documentClickClose",{get:function(){return Object(oe.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Ti(En,zr)}},[Ti]),Ir={optionLabelProp:null,optionFilterProp:Br,dropdownAlign:bi,internalProps:{mark:he,onClear:ar,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:da,onRawDeselect:rt}};return"filterTreeNode"in dr&&(Ir.filterOption=xi),e.createElement(ht.Provider,{value:{checkable:Ui,loadData:St,treeLoadedKeys:cr,onTreeLoad:qi,checkedKeys:_o,halfCheckedKeys:Ao,treeDefaultExpandAll:Gn,treeExpandedKeys:On,treeDefaultExpandedKeys:In,onTreeExpand:$i,treeIcon:Yn,treeMotion:Mi,showTreeIcon:gi,switcherIcon:vi,treeLine:Di,treeNodeFilterProp:Br}},e.createElement(ui,Object.assign({ref:va,mode:Ki?"multiple":null},dr,Ir,{value:za,labelInValue:!0,options:ka,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:Fr})))}),qn=function(dr){Object(l.a)(cn,dr);var sr=Object(u.a)(cn);function cn(){var Zt;return Object(t.a)(this,cn),Zt=sr.apply(this,arguments),Zt.selectRef=e.createRef(),Zt.focus=function(){Zt.selectRef.current.focus()},Zt.blur=function(){Zt.selectRef.current.blur()},Zt}return Object(i.a)(cn,[{key:"render",value:function(){return e.createElement(ii,Object.assign({ref:this.selectRef},this.props))}}]),cn}(e.Component);qn.TreeNode=en,qn.SHOW_ALL=Zr,qn.SHOW_PARENT=br,qn.SHOW_CHILD=dn;var Li=qn,zi=Li,Ri=d("BGR+"),ga=d("H84U"),oi=d("uaoM"),hn=d("1vzs"),Ei=d("2jpz"),Hi=d("3Nzz"),ki=function(dr){r()(cn,dr);var sr=n()(cn);function cn(Zt){var Ar;return m()(this,cn),Ar=sr.call(this,Zt),Ar.selectRef=e.createRef(),Ar.renderTreeSelect=function(Nr){var tn=Nr.getPopupContainer,pn=Nr.getPrefixCls,St=Nr.renderEmpty,cr=Nr.direction,fr=Nr.virtual,Br=Nr.dropdownMatchSelectWidth,$r=Ar.props,wn=$r.prefixCls,rn=$r.size,On=$r.className,In=$r.treeCheckable,Gn=$r.multiple,fi=$r.listHeight,Yn=fi===void 0?256:fi,gi=$r.listItemHeight,vi=gi===void 0?26:gi,Di=$r.notFoundContent,Mi=$r.switcherIcon,xi=$r.treeLine,bi=$r.getPopupContainer,Ci=$r.dropdownClassName,$i=$r.bordered,qi=$r.treeIcon,Ti=qi===void 0?!1:qi,ia=pn("select",wn),na=pn("select-tree",wn),Ui=pn("tree-select",wn),Ki=b()(Ci,"".concat(Ui,"-dropdown"),v()({},"".concat(Ui,"-dropdown-rtl"),cr==="rtl")),ra=!!(In||Gn),ea=Object(hn.a)(x()(x()({},Ar.props),{multiple:ra,prefixCls:ia})),va=ea.suffixIcon,sa=ea.itemIcon,Pa=ea.removeIcon,ka=ea.clearIcon,Ia;Di!==void 0?Ia=Di:Ia=St("Select");var Ea=Object(Ri.default)(Ar.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","size","bordered"]);return e.createElement(Hi.b.Consumer,null,function(So){var Ga,Va=rn||So,Ra=b()(!wn&&Ui,(Ga={},v()(Ga,"".concat(ia,"-lg"),Va==="large"),v()(Ga,"".concat(ia,"-sm"),Va==="small"),v()(Ga,"".concat(ia,"-rtl"),cr==="rtl"),v()(Ga,"".concat(ia,"-borderless"),!$i),Ga),On);return e.createElement(zi,x()({virtual:fr,dropdownMatchSelectWidth:Br},Ea,{ref:Ar.selectRef,prefixCls:ia,className:Ra,listHeight:Yn,listItemHeight:vi,treeCheckable:In&&e.createElement("span",{className:"".concat(ia,"-tree-checkbox-inner")}),inputIcon:va,menuItemSelectedIcon:sa,removeIcon:Pa,clearIcon:ka,switcherIcon:function(mo){return Object(Ei.a)(na,Mi,xi,mo)},showTreeIcon:Ti,notFoundContent:Ia,getPopupContainer:bi||tn,treeMotion:null,dropdownClassName:Ki}))})},Object(oi.a)(Zt.multiple!==!1||!Zt.treeCheckable,"TreeSelect","`multiple` will alway be `true` when `treeCheckable` is true"),Ar}return c()(cn,[{key:"focus",value:function(){this.selectRef.current&&this.selectRef.current.focus()}},{key:"blur",value:function(){this.selectRef.current&&this.selectRef.current.blur()}},{key:"render",value:function(){return e.createElement(ga.a,null,this.renderTreeSelect)}}]),cn}(e.Component);ki.TreeNode=en,ki.SHOW_ALL=Zr,ki.SHOW_PARENT=br,ki.SHOW_CHILD=dn,ki.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var ji=P.a=ki},"5Uyt":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("KmBX"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},"5YOS":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("xb2K"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},"5YgA":function(U,P,d){},"5bA4":function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="LeftOutlined";var f=P.a=x.forwardRef(m)},"5hvy":function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("MlIO"))})(this,function(O){return function(x){var T=O,v=T.lib,S=v.WordArray,m=v.Hasher,f=T.x64,c=f.Word,o=T.algo,r=[],a=[],n=[];(function(){for(var t=1,i=0,l=0;l<24;l++){r[t+5*i]=(l+1)*(l+2)/2%64;var u=i%5,h=(2*t+3*i)%5;t=u,i=h}for(var t=0;t<5;t++)for(var i=0;i<5;i++)a[t+5*i]=i+(2*t+3*i)%5*5;for(var p=1,g=0;g<24;g++){for(var A=0,y=0,E=0;E<7;E++){if(p&1){var C=(1<<E)-1;C<32?y^=1<<C:A^=1<<C-32}p&128?p=p<<1^113:p<<=1}n[g]=c.create(A,y)}})();var e=[];(function(){for(var t=0;t<25;t++)e[t]=c.create()})();var s=o.SHA3=m.extend({cfg:m.cfg.extend({outputLength:512}),_doReset:function(){for(var i=this._state=[],l=0;l<25;l++)i[l]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(i,l){for(var u=this._state,h=this.blockSize/2,p=0;p<h;p++){var g=i[l+2*p],A=i[l+2*p+1];g=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360;var y=u[p];y.high^=A,y.low^=g}for(var E=0;E<24;E++){for(var C=0;C<5;C++){for(var w=0,b=0,I=0;I<5;I++){var y=u[C+5*I];w^=y.high,b^=y.low}var _=e[C];_.high=w,_.low=b}for(var C=0;C<5;C++)for(var L=e[(C+4)%5],D=e[(C+1)%5],N=D.high,R=D.low,w=L.high^(N<<1|R>>>31),b=L.low^(R<<1|N>>>31),I=0;I<5;I++){var y=u[C+5*I];y.high^=w,y.low^=b}for(var B=1;B<25;B++){var w,b,y=u[B],M=y.high,H=y.low,F=r[B];F<32?(w=M<<F|H>>>32-F,b=H<<F|M>>>32-F):(w=H<<F-32|M>>>64-F,b=M<<F-32|H>>>64-F);var K=e[a[B]];K.high=w,K.low=b}var j=e[0],V=u[0];j.high=V.high,j.low=V.low;for(var C=0;C<5;C++)for(var I=0;I<5;I++){var B=C+5*I,y=u[B],z=e[B],Y=e[(C+1)%5+5*I],ee=e[(C+2)%5+5*I];y.high=z.high^~Y.high&ee.high,y.low=z.low^~Y.low&ee.low}var y=u[0],fe=n[E];y.high^=fe.high,y.low^=fe.low}},_doFinalize:function(){var i=this._data,l=i.words,u=this._nDataBytes*8,h=i.sigBytes*8,p=this.blockSize*32;l[h>>>5]|=1<<24-h%32,l[(x.ceil((h+1)/p)*p>>>5)-1]|=128,i.sigBytes=l.length*4,this._process();for(var g=this._state,A=this.cfg.outputLength/8,y=A/8,E=[],C=0;C<y;C++){var w=g[C],b=w.high,I=w.low;b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,E.push(I),E.push(b)}return new S.init(E,A)},clone:function(){for(var i=m.clone.call(this),l=i._state=this._state.slice(0),u=0;u<25;u++)l[u]=l[u].clone();return i}});T.SHA3=m._createHelper(s),T.HmacSHA3=m._createHmacHelper(s)}(Math),O.SHA3})},"5nXd":function(U,P,d){var O=d("MFOe"),x=O.slice,T=O.pluck,v=O.each,S=O.bind,m=O.create,f=O.isList,c=O.isFunction,o=O.isObject;U.exports={createStore:n};var r={version:"2.0.12",enabled:!1,get:function(s,t){var i=this.storage.read(this._namespacePrefix+s);return this._deserialize(i,t)},set:function(s,t){return t===void 0?this.remove(s):(this.storage.write(this._namespacePrefix+s,this._serialize(t)),t)},remove:function(s){this.storage.remove(this._namespacePrefix+s)},each:function(s){var t=this;this.storage.each(function(i,l){s.call(t,t._deserialize(i),(l||"").replace(t._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(s){return this._namespacePrefix=="__storejs_"+s+"_"},createStore:function(){return n.apply(this,arguments)},addPlugin:function(s){this._addPlugin(s)},namespace:function(s){return n(this.storage,this.plugins,s)}};function a(){var e=typeof console=="undefined"?null:console;if(!e)return;var s=e.warn?e.warn:e.log;s.apply(e,arguments)}function n(e,s,t){t||(t=""),e&&!f(e)&&(e=[e]),s&&!f(s)&&(s=[s]);var i=t?"__storejs_"+t+"_":"",l=t?new RegExp("^"+i):null,u=/^[a-zA-Z0-9_\-]*$/;if(!u.test(t))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var h={_namespacePrefix:i,_namespaceRegexp:l,_testStorage:function(A){try{var y="__storejs__test__";A.write(y,y);var E=A.read(y)===y;return A.remove(y),E}catch(C){return!1}},_assignPluginFnProp:function(A,y){var E=this[y];this[y]=function(){var w=x(arguments,0),b=this;function I(){return E?(v(arguments,function(L,D){w[D]=L}),E.apply(b,w)):void 0}var _=[I].concat(w);return A.apply(b,_)}},_serialize:function(A){return JSON.stringify(A)},_deserialize:function(A,y){if(!A)return y;var E="";try{E=JSON.parse(A)}catch(C){E=A}return E!==void 0?E:y},_addStorage:function(A){if(this.enabled)return;this._testStorage(A)&&(this.storage=A,this.enabled=!0)},_addPlugin:function(A){var y=this;if(f(A)){v(A,function(w){y._addPlugin(w)});return}var E=T(this.plugins,function(w){return A===w});if(E)return;if(this.plugins.push(A),!c(A))throw new Error("Plugins must be function values that return objects");var C=A.call(this);if(!o(C))throw new Error("Plugins must return an object of function properties");v(C,function(w,b){if(!c(w))throw new Error("Bad plugin property: "+b+" from plugin "+A.name+". Plugins should only return functions.");y._assignPluginFnProp(w,b)})},addStorage:function(A){a("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(A)}},p=m(h,r,{plugins:[]});return p.raw={},v(p,function(g,A){c(g)&&(p.raw[A]=S(p,g))}),v(e,function(g){p._addStorage(g)}),v(s,function(g){p._addPlugin(g)}),p}},"5rEg":function(U,P,d){"use strict";var O=d("pVnL"),x=d.n(O),T=d("lwsE"),v=d.n(T),S=d("W8MJ"),m=d.n(S),f=d("7W2i"),c=d.n(f),o=d("LQ03"),r=d.n(o),a=d("lSNA"),n=d.n(a),e=d("q1tI"),s=d("TSYQ"),t=d.n(s),i=d("BGR+"),l=d("kbBi"),u=d.n(l),h=d("CWQg"),p=d("0n0R"),g=Object(h.a)("text","input");function A(J){return!!(J.prefix||J.suffix||J.allowClear)}var y=function(J){c()(he,J);var Ae=r()(he);function he(){var Me;return v()(this,he),Me=Ae.apply(this,arguments),Me.containerRef=e.createRef(),Me.onInputMouseUp=function(Ie){var oe;if((oe=Me.containerRef.current)===null||oe===void 0?void 0:oe.contains(Ie.target)){var pe=Me.props.triggerFocus;pe()}},Me}return m()(he,[{key:"renderClearIcon",value:function(Ie){var oe=this.props,pe=oe.allowClear,Oe=oe.value,Ye=oe.disabled,it=oe.readOnly,et=oe.inputType,Te=oe.handleReset;if(!pe)return null;var tt=!Ye&&!it&&Oe,ze=et===g[0]?"".concat(Ie,"-textarea-clear-icon"):"".concat(Ie,"-clear-icon");return e.createElement(u.a,{onClick:Te,className:t()(ze,n()({},"".concat(ze,"-hidden"),!tt)),role:"button"})}},{key:"renderSuffix",value:function(Ie){var oe=this.props,pe=oe.suffix,Oe=oe.allowClear;return pe||Oe?e.createElement("span",{className:"".concat(Ie,"-suffix")},this.renderClearIcon(Ie),pe):null}},{key:"renderLabeledIcon",value:function(Ie,oe){var pe,Oe=this.props,Ye=Oe.focused,it=Oe.value,et=Oe.prefix,Te=Oe.className,tt=Oe.size,ze=Oe.suffix,dt=Oe.disabled,Ot=Oe.allowClear,Tt=Oe.direction,Ct=Oe.style,Nt=Oe.readOnly,Be=Oe.bordered,$=this.renderSuffix(Ie);if(!A(this.props))return Object(p.a)(oe,{value:it});var Z=et?e.createElement("span",{className:"".concat(Ie,"-prefix")},et):null,Re=t()(Te,"".concat(Ie,"-affix-wrapper"),(pe={},n()(pe,"".concat(Ie,"-affix-wrapper-focused"),Ye),n()(pe,"".concat(Ie,"-affix-wrapper-disabled"),dt),n()(pe,"".concat(Ie,"-affix-wrapper-sm"),tt==="small"),n()(pe,"".concat(Ie,"-affix-wrapper-lg"),tt==="large"),n()(pe,"".concat(Ie,"-affix-wrapper-input-with-clear-btn"),ze&&Ot&&it),n()(pe,"".concat(Ie,"-affix-wrapper-rtl"),Tt==="rtl"),n()(pe,"".concat(Ie,"-affix-wrapper-readonly"),Nt),n()(pe,"".concat(Ie,"-affix-wrapper-borderless"),!Be),pe));return e.createElement("span",{ref:this.containerRef,className:Re,style:Ct,onMouseUp:this.onInputMouseUp},Z,Object(p.a)(oe,{style:null,value:it,className:L(Ie,Be,tt,dt)}),$)}},{key:"renderInputWithLabel",value:function(Ie,oe){var pe,Oe,Ye=this.props,it=Ye.addonBefore,et=Ye.addonAfter,Te=Ye.style,tt=Ye.size,ze=Ye.className,dt=Ye.direction;if(!it&&!et)return oe;var Ot="".concat(Ie,"-group"),Tt="".concat(Ot,"-addon"),Ct=it?e.createElement("span",{className:Tt},it):null,Nt=et?e.createElement("span",{className:Tt},et):null,Be=t()("".concat(Ie,"-wrapper"),(pe={},n()(pe,Ot,it||et),n()(pe,"".concat(Ot,"-rtl"),dt==="rtl"),pe)),$=t()(ze,"".concat(Ie,"-group-wrapper"),(Oe={},n()(Oe,"".concat(Ie,"-group-wrapper-sm"),tt==="small"),n()(Oe,"".concat(Ie,"-group-wrapper-lg"),tt==="large"),n()(Oe,"".concat(Ie,"-group-wrapper-rtl"),dt==="rtl"),Oe));return e.createElement("span",{className:$,style:Te},e.createElement("span",{className:Be},Ct,Object(p.a)(oe,{style:null}),Nt))}},{key:"renderTextAreaWithClearIcon",value:function(Ie,oe){var pe,Oe=this.props,Ye=Oe.value,it=Oe.allowClear,et=Oe.className,Te=Oe.style,tt=Oe.direction,ze=Oe.bordered;if(!it)return Object(p.a)(oe,{value:Ye});var dt=t()(et,"".concat(Ie,"-affix-wrapper"),"".concat(Ie,"-affix-wrapper-textarea-with-clear-btn"),(pe={},n()(pe,"".concat(Ie,"-affix-wrapper-rtl"),tt==="rtl"),n()(pe,"".concat(Ie,"-affix-wrapper-borderless"),!ze),pe));return e.createElement("span",{className:dt,style:Te},Object(p.a)(oe,{style:null,value:Ye}),this.renderClearIcon(Ie))}},{key:"render",value:function(){var Ie=this.props,oe=Ie.prefixCls,pe=Ie.inputType,Oe=Ie.element;return pe===g[0]?this.renderTextAreaWithClearIcon(oe,Oe):this.renderInputWithLabel(oe,this.renderLabeledIcon(oe,Oe))}}]),he}(e.Component),E=y,C=d("H84U"),w=d("3Nzz"),b=d("uaoM");function I(J){return typeof J=="undefined"||J===null?"":J}function _(J,Ae,he){if(he){var Me=Ae;if(Ae.type==="click"){Me=Object.create(Ae),Me.target=J,Me.currentTarget=J;var Ie=J.value;J.value="",he(Me),J.value=Ie;return}he(Me)}}function L(J,Ae,he,Me,Ie){var oe;return t()(J,(oe={},n()(oe,"".concat(J,"-sm"),he==="small"),n()(oe,"".concat(J,"-lg"),he==="large"),n()(oe,"".concat(J,"-disabled"),Me),n()(oe,"".concat(J,"-rtl"),Ie==="rtl"),n()(oe,"".concat(J,"-borderless"),!Ae),oe))}var D=function(J){c()(he,J);var Ae=r()(he);function he(Me){var Ie;v()(this,he),Ie=Ae.call(this,Me),Ie.direction="ltr",Ie.focus=function(){Ie.input.focus()},Ie.saveClearableInput=function(pe){Ie.clearableInput=pe},Ie.saveInput=function(pe){Ie.input=pe},Ie.onFocus=function(pe){var Oe=Ie.props.onFocus;Ie.setState({focused:!0},Ie.clearPasswordValueAttribute),Oe&&Oe(pe)},Ie.onBlur=function(pe){var Oe=Ie.props.onBlur;Ie.setState({focused:!1},Ie.clearPasswordValueAttribute),Oe&&Oe(pe)},Ie.handleReset=function(pe){Ie.setValue("",function(){Ie.focus()}),_(Ie.input,pe,Ie.props.onChange)},Ie.renderInput=function(pe,Oe,Ye){var it=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},et=Ie.props,Te=et.className,tt=et.addonBefore,ze=et.addonAfter,dt=et.size,Ot=et.disabled,Tt=Object(i.default)(Ie.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return e.createElement("input",x()({autoComplete:it.autoComplete},Tt,{onChange:Ie.handleChange,onFocus:Ie.onFocus,onBlur:Ie.onBlur,onKeyDown:Ie.handleKeyDown,className:t()(L(pe,Ye,dt||Oe,Ot,Ie.direction),n()({},Te,Te&&!tt&&!ze)),ref:Ie.saveInput}))},Ie.clearPasswordValueAttribute=function(){Ie.removePasswordTimeout=setTimeout(function(){Ie.input&&Ie.input.getAttribute("type")==="password"&&Ie.input.hasAttribute("value")&&Ie.input.removeAttribute("value")})},Ie.handleChange=function(pe){Ie.setValue(pe.target.value,Ie.clearPasswordValueAttribute),_(Ie.input,pe,Ie.props.onChange)},Ie.handleKeyDown=function(pe){var Oe=Ie.props,Ye=Oe.onPressEnter,it=Oe.onKeyDown;pe.keyCode===13&&Ye&&Ye(pe),it&&it(pe)},Ie.renderComponent=function(pe){var Oe=pe.getPrefixCls,Ye=pe.direction,it=pe.input,et=Ie.state,Te=et.value,tt=et.focused,ze=Ie.props,dt=ze.prefixCls,Ot=ze.bordered,Tt=Ot===void 0?!0:Ot,Ct=Oe("input",dt);return Ie.direction=Ye,e.createElement(w.b.Consumer,null,function(Nt){return e.createElement(E,x()({size:Nt},Ie.props,{prefixCls:Ct,inputType:"input",value:I(Te),element:Ie.renderInput(Ct,Nt,Tt,it),handleReset:Ie.handleReset,ref:Ie.saveClearableInput,direction:Ye,focused:tt,triggerFocus:Ie.focus,bordered:Tt}))})};var oe=typeof Me.value=="undefined"?Me.defaultValue:Me.value;return Ie.state={value:oe,focused:!1,prevValue:Me.value},Ie}return m()(he,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(Ie){return A(Ie)!==A(this.props)&&Object(b.a)(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(Ie,oe){this.props.value===void 0&&this.setState({value:Ie},oe)}},{key:"render",value:function(){return e.createElement(C.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(Ie,oe){var pe=oe.prevValue,Oe={prevValue:Ie.value};return(Ie.value!==void 0||pe!==Ie.value)&&(Oe.value=Ie.value),Oe}}]),he}(e.Component);D.defaultProps={type:"text"};var N=D,R=function(Ae){return e.createElement(C.a,null,function(he){var Me,Ie=he.getPrefixCls,oe=he.direction,pe=Ae.prefixCls,Oe=Ae.className,Ye=Oe===void 0?"":Oe,it=Ie("input-group",pe),et=t()(it,(Me={},n()(Me,"".concat(it,"-lg"),Ae.size==="large"),n()(Me,"".concat(it,"-sm"),Ae.size==="small"),n()(Me,"".concat(it,"-compact"),Ae.compact),n()(Me,"".concat(it,"-rtl"),oe==="rtl"),Me),Ye);return e.createElement("span",{className:et,style:Ae.style,onMouseEnter:Ae.onMouseEnter,onMouseLeave:Ae.onMouseLeave,onFocus:Ae.onFocus,onBlur:Ae.onBlur},Ae.children)})},B=R,M=d("c+Xe"),H=d("w6Tc"),F=d.n(H),K=d("gZBC"),j=d.n(K),V=d("2/Rp"),z=function(J,Ae){var he={};for(var Me in J)Object.prototype.hasOwnProperty.call(J,Me)&&Ae.indexOf(Me)<0&&(he[Me]=J[Me]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Me=Object.getOwnPropertySymbols(J);Ie<Me.length;Ie++)Ae.indexOf(Me[Ie])<0&&Object.prototype.propertyIsEnumerable.call(J,Me[Ie])&&(he[Me[Ie]]=J[Me[Ie]]);return he},Y=e.forwardRef(function(J,Ae){var he=e.useRef(null),Me=function(Te){var tt=J.onChange,ze=J.onSearch;Te&&Te.target&&Te.type==="click"&&ze&&ze(Te.target.value,Te),tt&&tt(Te)},Ie=function(Te){var tt;document.activeElement===((tt=he.current)===null||tt===void 0?void 0:tt.input)&&Te.preventDefault()},oe=function(Te){var tt,ze=J.onSearch,dt=J.loading,Ot=J.disabled;if(dt||Ot)return;ze&&ze((tt=he.current)===null||tt===void 0?void 0:tt.input.value,Te)},pe=function(Te){var tt=J.enterButton,ze=J.size;return tt?e.createElement(w.b.Consumer,{key:"enterButton"},function(dt){return e.createElement(V.a,{className:"".concat(Te,"-button"),type:"primary",size:ze||dt},e.createElement(j.a,null))}):e.createElement(j.a,{className:"".concat(Te,"-icon"),key:"loadingIcon"})},Oe=function(Te){var tt=J.suffix,ze=J.enterButton,dt=J.loading;if(dt&&!ze)return[tt,pe(Te)];if(ze)return tt;var Ot=e.createElement(F.a,{className:"".concat(Te,"-icon"),key:"searchIcon",onClick:oe});return tt?[Object(p.c)(tt,null,{key:"suffix"}),Ot]:Ot},Ye=function(Te,tt){var ze=J.enterButton,dt=J.disabled,Ot=J.addonAfter,Tt=J.loading,Ct="".concat(Te,"-button");if(Tt&&ze)return[pe(Te),Ot];if(!ze)return Ot;var Nt,Be=ze,$=Be.type&&Be.type.__ANT_BUTTON===!0;return $||Be.type==="button"?Nt=Object(p.a)(Be,x()({onMouseDown:Ie,onClick:oe,key:"enterButton"},$?{className:Ct,size:tt}:{})):Nt=e.createElement(V.a,{className:Ct,type:"primary",size:tt,disabled:dt,key:"enterButton",onMouseDown:Ie,onClick:oe},ze===!0?e.createElement(F.a,null):ze),Ot?[Nt,Object(p.c)(Ot,null,{key:"addonAfter"})]:Nt},it=function(Te){var tt=Te.getPrefixCls,ze=Te.direction,dt=J.prefixCls,Ot=J.inputPrefixCls,Tt=J.enterButton,Ct=J.className,Nt=J.size,Be=z(J,["prefixCls","inputPrefixCls","enterButton","className","size"]);delete Be.onSearch,delete Be.loading;var $=tt("input-search",dt),Z=tt("input",Ot),Re=function(ae){var gt;if(Tt){var jt;gt=t()($,Ct,(jt={},n()(jt,"".concat($,"-rtl"),ze==="rtl"),n()(jt,"".concat($,"-enter-button"),!!Tt),n()(jt,"".concat($,"-").concat(ae),!!ae),jt))}else gt=t()($,Ct,n()({},"".concat($,"-rtl"),ze==="rtl"));return gt};return e.createElement(w.b.Consumer,null,function(De){return e.createElement(N,x()({ref:Object(M.a)(he,Ae),onPressEnter:oe},Be,{size:Nt||De,prefixCls:Z,addonAfter:Ye($,Nt||De),suffix:Oe($),onChange:Me,className:Re(Nt||De)}))})};return e.createElement(C.a,null,it)});Y.defaultProps={enterButton:!1},Y.displayName="Search";var ee=Y,fe=d("Y1PL"),ie=function(J){c()(he,J);var Ae=r()(he);function he(Me){var Ie;v()(this,he),Ie=Ae.call(this,Me),Ie.focus=function(){Ie.resizableTextArea.textArea.focus()},Ie.saveTextArea=function(pe){Ie.resizableTextArea=pe==null?void 0:pe.resizableTextArea},Ie.saveClearableInput=function(pe){Ie.clearableInput=pe},Ie.handleChange=function(pe){Ie.setValue(pe.target.value),_(Ie.resizableTextArea.textArea,pe,Ie.props.onChange)},Ie.handleReset=function(pe){Ie.setValue("",function(){Ie.focus()}),_(Ie.resizableTextArea.textArea,pe,Ie.props.onChange)},Ie.renderTextArea=function(pe,Oe){return e.createElement(fe.default,x()({},Object(i.default)(Ie.props,["allowClear","bordered"]),{className:t()(Ie.props.className,n()({},"".concat(pe,"-borderless"),!Oe)),prefixCls:pe,onChange:Ie.handleChange,ref:Ie.saveTextArea}))},Ie.renderComponent=function(pe){var Oe=pe.getPrefixCls,Ye=pe.direction,it=Ie.state.value,et=Ie.props,Te=et.prefixCls,tt=et.bordered,ze=tt===void 0?!0:tt,dt=Oe("input",Te);return e.createElement(E,x()({},Ie.props,{prefixCls:dt,direction:Ye,inputType:"text",value:I(it),element:Ie.renderTextArea(dt,ze),handleReset:Ie.handleReset,ref:Ie.saveClearableInput,triggerFocus:Ie.focus,bordered:ze}))};var oe=typeof Me.value=="undefined"?Me.defaultValue:Me.value;return Ie.state={value:oe},Ie}return m()(he,[{key:"setValue",value:function(Ie,oe){this.props.value===void 0&&this.setState({value:Ie},oe)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return e.createElement(C.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(Ie){return Ie.value!==void 0?{value:Ie.value}:null}}]),he}(e.Component),we=ie,Ce=d("J4zp"),Le=d.n(Ce),He=d("qPY4"),ce=d.n(He),Pe=d("fUL4"),Q=d.n(Pe),me=function(J,Ae){var he={};for(var Me in J)Object.prototype.hasOwnProperty.call(J,Me)&&Ae.indexOf(Me)<0&&(he[Me]=J[Me]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Me=Object.getOwnPropertySymbols(J);Ie<Me.length;Ie++)Ae.indexOf(Me[Ie])<0&&Object.prototype.propertyIsEnumerable.call(J,Me[Ie])&&(he[Me[Ie]]=J[Me[Ie]]);return he},Je={click:"onClick",hover:"onMouseOver"},re=e.forwardRef(function(J,Ae){var he=Object(e.useState)(!1),Me=Le()(he,2),Ie=Me[0],oe=Me[1],pe=function(){var et=J.disabled;if(et)return;oe(!Ie)},Oe=function(et){var Te,tt=J.action,ze=J.iconRender,dt=ze===void 0?function(){return null}:ze,Ot=Je[tt]||"",Tt=dt(Ie),Ct=(Te={},n()(Te,Ot,pe),n()(Te,"className","".concat(et,"-icon")),n()(Te,"key","passwordIcon"),n()(Te,"onMouseDown",function(Be){Be.preventDefault()}),n()(Te,"onMouseUp",function(Be){Be.preventDefault()}),Te);return e.cloneElement(e.isValidElement(Tt)?Tt:e.createElement("span",null,Tt),Ct)},Ye=function(et){var Te=et.getPrefixCls,tt=J.className,ze=J.prefixCls,dt=J.inputPrefixCls,Ot=J.size,Tt=J.visibilityToggle,Ct=me(J,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),Nt=Te("input",dt),Be=Te("input-password",ze),$=Tt&&Oe(Be),Z=t()(Be,tt,n()({},"".concat(Be,"-").concat(Ot),!!Ot)),Re=x()(x()({},Object(i.default)(Ct,["suffix","iconRender"])),{type:Ie?"text":"password",className:Z,prefixCls:Nt,suffix:$});return Ot&&(Re.size=Ot),e.createElement(N,x()({ref:Ae},Re))};return e.createElement(C.a,null,Ye)});re.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(Ae){return Ae?e.createElement(ce.a,null):e.createElement(Q.a,null)}},re.displayName="Password";var G=re;N.Group=B,N.Search=ee,N.TextArea=we,N.Password=G;var X=P.a=N},"5s0K":function(U,P,d){var O=d("bYtY");function x(){var T=[],v={},S;return{add:function(m,f,c,o,r){return O.isString(o)&&(r=o,o=0),v[m.id]?!1:(v[m.id]=1,T.push({el:m,target:f,time:c,delay:o,easing:r}),!0)},done:function(m){return S=m,this},start:function(){for(var m=T.length,f=0,c=T.length;f<c;f++){var o=T[f];o.el.animateTo(o.target,o.time,o.delay,o.easing,r)}return this;function r(){m--,m||(T.length=0,v={},S&&S())}}}}P.createWrap=x},"5yev":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"};P.default=O},"6/nd":function(U,P,d){var O=d("ProS");O.registerAction("legendScroll","legendscroll",function(x,T){var v=x.scrollDataIndex;v!=null&&T.eachComponent({mainType:"legend",subType:"scroll",query:x},function(S){S.setScrollDataIndex(v)})})},"62sa":function(U,P,d){var O=d("bYtY"),x=d("4NO4"),T=x.makeInner,v=d("zTMp"),S=d("Ez2D"),m=O.each,f=O.curry,c=T();function o(p,g,A){var y=p.currTrigger,E=[p.x,p.y],C=p,w=p.dispatchAction||O.bind(A.dispatchAction,A),b=g.getComponent("axisPointer").coordSysAxesInfo;if(!b)return;h(E)&&(E=S({seriesIndex:C.seriesIndex,dataIndex:C.dataIndex},g).point);var I=h(E),_=C.axesInfo,L=b.axesInfo,D=y==="leave"||h(E),N={},R={},B={list:[],map:{}},M={showPointer:f(n,R),showTooltip:f(e,B)};m(b.coordSysMap,function(F,K){var j=I||F.containPoint(E);m(b.coordSysAxesInfo[K],function(V,z){var Y=V.axis,ee=l(_,V);if(!D&&j&&(!_||ee)){var fe=ee&&ee.value;fe==null&&!I&&(fe=Y.pointToData(E)),fe!=null&&r(V,fe,M,!1,N)}})});var H={};return m(L,function(F,K){var j=F.linkGroup;j&&!R[K]&&m(j.axesInfo,function(V,z){var Y=R[z];if(V!==F&&Y){var ee=Y.value;j.mapper&&(ee=F.axis.scale.parse(j.mapper(ee,u(V),u(F)))),H[F.key]=ee}})}),m(H,function(F,K){r(L[K],F,M,!0,N)}),s(R,L,N),t(B,E,p,w),i(L,w,A),N}function r(p,g,A,y,E){var C=p.axis;if(C.scale.isBlank()||!C.containData(g))return;if(!p.involveSeries){A.showPointer(p,g);return}var w=a(g,p),b=w.payloadBatch,I=w.snapToValue;b[0]&&E.seriesIndex==null&&O.extend(E,b[0]),!y&&p.snap&&(C.containData(I)&&I!=null&&(g=I)),A.showPointer(p,g,b,E),A.showTooltip(p,w,I)}function a(p,g){var A=g.axis,y=A.dim,E=p,C=[],w=Number.MAX_VALUE,b=-1;return m(g.seriesModels,function(I,_){var L=I.getData().mapDimension(y,!0),D,N;if(I.getAxisTooltipData){var R=I.getAxisTooltipData(L,p,A);N=R.dataIndices,D=R.nestestValue}else{if(N=I.getData().indicesOfNearest(L[0],p,A.type==="category"?.5:null),!N.length)return;D=I.getData().get(L[0],N[0])}if(D==null||!isFinite(D))return;var B=p-D,M=Math.abs(B);M<=w&&((M<w||B>=0&&b<0)&&(w=M,b=B,E=D,C.length=0),m(N,function(H){C.push({seriesIndex:I.seriesIndex,dataIndexInside:H,dataIndex:I.getData().getRawIndex(H)})}))}),{payloadBatch:C,snapToValue:E}}function n(p,g,A,y){p[g.key]={value:A,payloadBatch:y}}function e(p,g,A,y){var E=A.payloadBatch,C=g.axis,w=C.model,b=g.axisPointerModel;if(!g.triggerTooltip||!E.length)return;var I=g.coordSys.model,_=v.makeKey(I),L=p.map[_];L||(L=p.map[_]={coordSysId:I.id,coordSysIndex:I.componentIndex,coordSysType:I.type,coordSysMainType:I.mainType,dataByAxis:[]},p.list.push(L)),L.dataByAxis.push({axisDim:C.dim,axisIndex:w.componentIndex,axisType:w.type,axisId:w.id,value:y,valueLabelOpt:{precision:b.get("label.precision"),formatter:b.get("label.formatter")},seriesDataIndices:E.slice()})}function s(p,g,A){var y=A.axesInfo=[];m(g,function(E,C){var w=E.axisPointerModel.option,b=p[C];b?(!E.useHandle&&(w.status="show"),w.value=b.value,w.seriesDataIndices=(b.payloadBatch||[]).slice()):!E.useHandle&&(w.status="hide"),w.status==="show"&&y.push({axisDim:E.axis.dim,axisIndex:E.axis.model.componentIndex,value:w.value})})}function t(p,g,A,y){if(h(g)||!p.list.length){y({type:"hideTip"});return}var E=((p.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};y({type:"showTip",escapeConnect:!0,x:g[0],y:g[1],tooltipOption:A.tooltipOption,position:A.position,dataIndexInside:E.dataIndexInside,dataIndex:E.dataIndex,seriesIndex:E.seriesIndex,dataByCoordSys:p.list})}function i(p,g,A){var y=A.getZr(),E="axisPointerLastHighlights",C=c(y)[E]||{},w=c(y)[E]={};m(p,function(_,L){var D=_.axisPointerModel.option;D.status==="show"&&m(D.seriesDataIndices,function(N){var R=N.seriesIndex+" | "+N.dataIndex;w[R]=N})});var b=[],I=[];O.each(C,function(_,L){!w[L]&&I.push(_)}),O.each(w,function(_,L){!C[L]&&b.push(_)}),I.length&&A.dispatchAction({type:"downplay",escapeConnect:!0,batch:I}),b.length&&A.dispatchAction({type:"highlight",escapeConnect:!0,batch:b})}function l(p,g){for(var A=0;A<(p||[]).length;A++){var y=p[A];if(g.axis.dim===y.axisDim&&g.axis.model.componentIndex===y.axisIndex)return y}}function u(p){var g=p.axis.model,A={},y=A.axisDim=p.axis.dim;return A.axisIndex=A[y+"AxisIndex"]=g.componentIndex,A.axisName=A[y+"AxisName"]=g.name,A.axisId=A[y+"AxisId"]=g.id,A}function h(p){return!p||p[0]==null||isNaN(p[0])||p[1]==null||isNaN(p[1])}U.exports=o},"6BzB":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.shrinkBuf=O,P.arraySet=x,P.flattenChunks=T,P.Buf32=P.Buf16=P.Buf8=void 0;function O(f,c){return f.length===c?f:f.subarray?f.subarray(0,c):(f.length=c,f)}function x(f,c,o,r,a){if(c.subarray&&f.subarray){f.set(c.subarray(o,o+r),a);return}for(var n=0;n<r;n++)f[a+n]=c[o+n]}function T(f){var c,o,r,a,n,e;for(r=0,c=0,o=f.length;c<o;c++)r+=f[c].length;for(e=new Uint8Array(r),a=0,c=0,o=f.length;c<o;c++)n=f[c],e.set(n,a),a+=n.length;return e}var v=Uint8Array;P.Buf8=v;var S=Uint16Array;P.Buf16=S;var m=Int32Array;P.Buf32=m},"6D9b":function(U,P,d){},"6GrX":function(U,P,d){var O=d("mFDi"),x=d("Xnb7"),T=d("bYtY"),v=T.getContext,S=T.extend,m=T.retrieve2,f=T.retrieve3,c=T.trim,o={},r=0,a=5e3,n=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,e="12px sans-serif",s={};function t(B,M){s[B]=M}function i(B,M){M=M||e;var H=B+":"+M;if(o[H])return o[H];for(var F=(B+"").split(`
|
|
|
`),K=0,j=0,V=F.length;j<V;j++)K=Math.max(_(F[j],M).width,K);return r>a&&(r=0,o={}),r++,o[H]=K,K}function l(B,M,H,F,K,j,V,z){return V?h(B,M,H,F,K,j,V,z):u(B,M,H,F,K,j,z)}function u(B,M,H,F,K,j,V){var z=L(B,M,K,j,V),Y=i(B,M);K&&(Y+=K[1]+K[3]);var ee=z.outerHeight,fe=p(0,Y,H),ie=g(0,ee,F),we=new O(fe,ie,Y,ee);return we.lineHeight=z.lineHeight,we}function h(B,M,H,F,K,j,V,z){var Y=D(B,{rich:V,truncate:z,font:M,textAlign:H,textPadding:K,textLineHeight:j}),ee=Y.outerWidth,fe=Y.outerHeight,ie=p(0,ee,H),we=g(0,fe,F);return new O(ie,we,ee,fe)}function p(B,M,H){return H==="right"?B-=M:H==="center"&&(B-=M/2),B}function g(B,M,H){return H==="middle"?B-=M/2:H==="bottom"&&(B-=M),B}function A(B,M,H){var F=M.textPosition,K=M.textDistance,j=H.x,V=H.y;K=K||0;var z=H.height,Y=H.width,ee=z/2,fe="left",ie="top";switch(F){case"left":j-=K,V+=ee,fe="right",ie="middle";break;case"right":j+=K+Y,V+=ee,ie="middle";break;case"top":j+=Y/2,V-=K,fe="center",ie="bottom";break;case"bottom":j+=Y/2,V+=z+K,fe="center";break;case"inside":j+=Y/2,V+=ee,fe="center",ie="middle";break;case"insideLeft":j+=K,V+=ee,ie="middle";break;case"insideRight":j+=Y-K,V+=ee,fe="right",ie="middle";break;case"insideTop":j+=Y/2,V+=K,fe="center";break;case"insideBottom":j+=Y/2,V+=z-K,fe="center",ie="bottom";break;case"insideTopLeft":j+=K,V+=K;break;case"insideTopRight":j+=Y-K,V+=K,fe="right";break;case"insideBottomLeft":j+=K,V+=z-K,ie="bottom";break;case"insideBottomRight":j+=Y-K,V+=z-K,fe="right",ie="bottom";break}return B=B||{},B.x=j,B.y=V,B.textAlign=fe,B.textVerticalAlign=ie,B}function y(B,M,H){var F={textPosition:B,textDistance:H};return A({},F,M)}function E(B,M,H,F,K){if(!M)return"";var j=(B+"").split(`
|
|
|
`);K=C(M,H,F,K);for(var V=0,z=j.length;V<z;V++)j[V]=w(j[V],K);return j.join(`
|
|
|
`)}function C(B,M,H,F){F=S({},F),F.font=M;var H=m(H,"...");F.maxIterations=m(F.maxIterations,2);var K=F.minChar=m(F.minChar,0);F.cnCharWidth=i("\u56FD",M);var j=F.ascCharWidth=i("a",M);F.placeholder=m(F.placeholder,"");for(var V=B=Math.max(0,B-1),z=0;z<K&&V>=j;z++)V-=j;var Y=i(H,M);return Y>V&&(H="",Y=0),V=B-Y,F.ellipsis=H,F.ellipsisWidth=Y,F.contentWidth=V,F.containerWidth=B,F}function w(B,M){var H=M.containerWidth,F=M.font,K=M.contentWidth;if(!H)return"";var j=i(B,F);if(j<=H)return B;for(var V=0;;V++){if(j<=K||V>=M.maxIterations){B+=M.ellipsis;break}var z=V===0?b(B,K,M.ascCharWidth,M.cnCharWidth):j>0?Math.floor(B.length*K/j):0;B=B.substr(0,z),j=i(B,F)}return B===""&&(B=M.placeholder),B}function b(B,M,H,F){for(var K=0,j=0,V=B.length;j<V&&K<M;j++){var z=B.charCodeAt(j);K+=0<=z&&z<=127?H:F}return j}function I(B){return i("\u56FD",B)}function _(B,M){return s.measureText(B,M)}s.measureText=function(B,M){var H=v();return H.font=M||e,H.measureText(B)};function L(B,M,H,F,K){B!=null&&(B+="");var j=m(F,I(M)),V=B?B.split(`
|
|
|
`):[],z=V.length*j,Y=z,ee=!0;if(H&&(Y+=H[0]+H[2]),B&&K){ee=!1;var fe=K.outerHeight,ie=K.outerWidth;if(fe!=null&&Y>fe)B="",V=[];else if(ie!=null)for(var we=C(ie-(H?H[1]+H[3]:0),M,K.ellipsis,{minChar:K.minChar,placeholder:K.placeholder}),Ce=0,Le=V.length;Ce<Le;Ce++)V[Ce]=w(V[Ce],we)}return{lines:V,height:z,outerHeight:Y,lineHeight:j,canCacheByTextString:ee}}function D(B,M){var H={lines:[],width:0,height:0};if(B!=null&&(B+=""),!B)return H;for(var F=n.lastIndex=0,K;(K=n.exec(B))!=null;){var j=K.index;j>F&&N(H,B.substring(F,j)),N(H,K[2],K[1]),F=n.lastIndex}F<B.length&&N(H,B.substring(F,B.length));var V=H.lines,z=0,Y=0,ee=[],fe=M.textPadding,ie=M.truncate,we=ie&&ie.outerWidth,Ce=ie&&ie.outerHeight;fe&&(we!=null&&(we-=fe[1]+fe[3]),Ce!=null&&(Ce-=fe[0]+fe[2]));for(var Le=0;Le<V.length;Le++){for(var He=V[Le],ce=0,Pe=0,Q=0;Q<He.tokens.length;Q++){var me=He.tokens[Q],Je=me.styleName&&M.rich[me.styleName]||{},re=me.textPadding=Je.textPadding,G=me.font=Je.font||M.font,X=me.textHeight=m(Je.textHeight,I(G));if(re&&(X+=re[0]+re[2]),me.height=X,me.lineHeight=f(Je.textLineHeight,M.textLineHeight,X),me.textAlign=Je&&Je.textAlign||M.textAlign,me.textVerticalAlign=Je&&Je.textVerticalAlign||"middle",Ce!=null&&z+me.lineHeight>Ce)return{lines:[],width:0,height:0};me.textWidth=i(me.text,G);var J=Je.textWidth,Ae=J==null||J==="auto";if(typeof J=="string"&&J.charAt(J.length-1)==="%")me.percentWidth=J,ee.push(me),J=0;else{if(Ae){J=me.textWidth;var he=Je.textBackgroundColor,Me=he&&he.image;Me&&(Me=x.findExistImage(Me),x.isImageReady(Me)&&(J=Math.max(J,Me.width*X/Me.height)))}var Ie=re?re[1]+re[3]:0;J+=Ie;var oe=we!=null?we-Pe:null;oe!=null&&oe<J&&(!Ae||oe<Ie?(me.text="",me.textWidth=J=0):(me.text=E(me.text,oe-Ie,G,ie.ellipsis,{minChar:ie.minChar}),me.textWidth=i(me.text,G),J=me.textWidth+Ie))}Pe+=me.width=J,Je&&(ce=Math.max(ce,me.lineHeight))}He.width=Pe,He.lineHeight=ce,z+=ce,Y=Math.max(Y,Pe)}H.outerWidth=H.width=m(M.textWidth,Y),H.outerHeight=H.height=m(M.textHeight,z),fe&&(H.outerWidth+=fe[1]+fe[3],H.outerHeight+=fe[0]+fe[2]);for(var Le=0;Le<ee.length;Le++){var me=ee[Le],pe=me.percentWidth;me.width=parseInt(pe,10)/100*Y}return H}function N(B,M,H){for(var F=M==="",K=M.split(`
|
|
|
`),j=B.lines,V=0;V<K.length;V++){var z=K[V],Y={styleName:H,text:z,isLineHolder:!z&&!F};if(V)j.push({tokens:[Y]});else{var ee=(j[j.length-1]||(j[0]={tokens:[]})).tokens,fe=ee.length;fe===1&&ee[0].isLineHolder?ee[0]=Y:(z||!fe||F)&&ee.push(Y)}}}function R(B){var M=(B.fontSize||B.fontFamily)&&[B.fontStyle,B.fontWeight,(B.fontSize||12)+"px",B.fontFamily||"sans-serif"].join(" ");return M&&c(M)||B.textFont||B.font}P.DEFAULT_FONT=e,P.$override=t,P.getWidth=i,P.getBoundingRect=l,P.adjustTextX=p,P.adjustTextY=g,P.calculateTextPosition=A,P.adjustTextPositionOnRect=y,P.truncateText=E,P.getLineHeight=I,P.measureText=_,P.parsePlainText=L,P.parseRichText=D,P.makeFont=R},"6Hfg":function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("FhB9")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="SwapRightOutlined";var c=v.forwardRef(f);P.default=c},"6Ic6":function(U,P,d){var O=d("bYtY"),x=O.each,T=d("4fz+"),v=d("iRjW"),S=d("Yl7c"),m=d("4NO4"),f=d("IwbS"),c=d("9H2F"),o=c.createTask,r=d("zM3Q"),a=m.makeInner(),n=r();function e(){this.group=new T,this.uid=v.getUID("viewChart"),this.renderTask=o({plan:l,reset:u}),this.renderTask.context={view:this}}e.prototype={type:"chart",init:function(g,A){},render:function(g,A,y,E){},highlight:function(g,A,y,E){i(g.getData(),E,"emphasis")},downplay:function(g,A,y,E){i(g.getData(),E,"normal")},remove:function(g,A){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var s=e.prototype;s.updateView=s.updateLayout=s.updateVisual=function(g,A,y,E){this.render(g,A,y,E)};function t(g,A,y){if(g&&(g.trigger(A,y),g.isGroup&&!f.isHighDownDispatcher(g)))for(var E=0,C=g.childCount();E<C;E++)t(g.childAt(E),A,y)}function i(g,A,y){var E=m.queryDataIndex(g,A),C=A&&A.highlightKey!=null?f.getHighlightDigit(A.highlightKey):null;E!=null?x(m.normalizeToArray(E),function(w){t(g.getItemGraphicEl(w),y,C)}):g.eachItemGraphicEl(function(w){t(w,y,C)})}S.enableClassExtend(e,["dispose"]),S.enableClassManagement(e,{registerWhenExtend:!0}),e.markUpdateMethod=function(g,A){a(g).updateMethod=A};function l(g){return n(g.model)}function u(g){var A=g.model,y=g.ecModel,E=g.api,C=g.payload,w=A.pipelineContext.progressiveRender,b=g.view,I=C&&a(C).updateMethod,_=w?"incrementalPrepareRender":I&&b[I]?I:"render";return _!=="render"&&b[_](A,y,E,C),h[_]}var h={incrementalPrepareRender:{progress:function(g,A){A.view.incrementalRender(g,A.model,A.ecModel,A.api,A.payload)}},render:{forceFirstProgress:!0,progress:function(g,A){A.view.render(A.model,A.ecModel,A.api,A.payload)}}},p=e;U.exports=p},"6MrE":function(U,P,d){},"6Qwc":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O={8:"Backspace",9:"Tab",10:"NumpadClear",12:"Numpad5",13:"Enter",16:"ShiftLeft",17:"ControlLeft",18:"AltLeft",19:"Pause",20:"CapsLock",21:"Lang1",25:"Lang2",27:"Escape",28:"Convert",29:"NonConvert",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",44:"PrintScreen",45:"Insert",46:"Delete",47:"Help",48:"Digit0",49:"Digit1",50:"Digit2",51:"Digit3",52:"Digit4",53:"Digit5",54:"Digit6",55:"Digit7",56:"Digit8",57:"Digit9",91:"MetaLeft",92:"MetaRight",93:"ContextMenu",95:"Sleep",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",108:"NumpadDecimal",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",124:"F13",125:"F14",126:"F15",127:"F16",128:"F17",129:"F18",130:"F19",131:"F20",132:"F21",133:"F22",134:"F23",135:"F24",144:"NumLock",145:"ScrollLock",166:"BrowserBack",167:"BrowserForward",168:"BrowserRefresh",169:"BrowserStop",170:"BrowserSearch",171:"BrowserFavorites",172:"BrowserHome",173:"AudioVolumeMute",174:"AudioVolumeDown",175:"AudioVolumeUp",176:"MediaTrackNext",177:"MediaTrackPrevious",178:"MediaStop",179:"MediaPlayPause",180:"LaunchMail",181:"MediaSelect",182:"LaunchApp1",183:"LaunchApp2",225:"AltRight"};P.default=O},"6SEX":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("qWUW"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},"6UJt":function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("v56E"),v=d.n(T),S=d("R9oj"),m=d("5NDa")},"6VBw":function(U,P,d){"use strict";var O=d("VTBJ"),x=d("ODXe"),T=d("rePB"),v=d("Ff2n"),S=d("q1tI"),m=d("TSYQ"),f=d.n(m),c=d("Pw59"),o=d("Qi1f"),r=["icon","className","onClick","style","primaryColor","secondaryColor"],a={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function n(g){var A=g.primaryColor,y=g.secondaryColor;a.primaryColor=A,a.secondaryColor=y||Object(o.b)(A),a.calculated=!!y}function e(){return Object(O.a)({},a)}var s=function(A){var y=A.icon,E=A.className,C=A.onClick,w=A.style,b=A.primaryColor,I=A.secondaryColor,_=Object(v.a)(A,r),L=a;if(b&&(L={primaryColor:b,secondaryColor:I||Object(o.b)(b)}),Object(o.f)(),Object(o.g)(Object(o.c)(y),"icon should be icon definiton, but got ".concat(y)),!Object(o.c)(y))return null;var D=y;return D&&typeof D.icon=="function"&&(D=Object(O.a)(Object(O.a)({},D),{},{icon:D.icon(L.primaryColor,L.secondaryColor)})),Object(o.a)(D.icon,"svg-".concat(D.name),Object(O.a)({className:E,onClick:C,style:w,"data-icon":D.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},_))};s.displayName="IconReact",s.getTwoToneColors=e,s.setTwoToneColors=n;var t=s;function i(g){var A=Object(o.d)(g),y=Object(x.a)(A,2),E=y[0],C=y[1];return t.setTwoToneColors({primaryColor:E,secondaryColor:C})}function l(){var g=t.getTwoToneColors();return g.calculated?[g.primaryColor,g.secondaryColor]:g.primaryColor}var u=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];i("#1890ff");var h=S.forwardRef(function(g,A){var y,E=g.className,C=g.icon,w=g.spin,b=g.rotate,I=g.tabIndex,_=g.onClick,L=g.twoToneColor,D=Object(v.a)(g,u),N=S.useContext(c.a),R=N.prefixCls,B=R===void 0?"anticon":R,M=f()(B,(y={},Object(T.a)(y,"".concat(B,"-").concat(C.name),!!C.name),Object(T.a)(y,"".concat(B,"-spin"),!!w||C.name==="loading"),y),E),H=I;H===void 0&&_&&(H=-1);var F=b?{msTransform:"rotate(".concat(b,"deg)"),transform:"rotate(".concat(b,"deg)")}:void 0,K=Object(o.d)(L),j=Object(x.a)(K,2),V=j[0],z=j[1];return S.createElement("span",Object(O.a)(Object(O.a)({role:"img","aria-label":C.name},D),{},{ref:A,tabIndex:H,onClick:_,className:M}),S.createElement(t,{icon:C,primaryColor:V,secondaryColor:z,style:F}))});h.displayName="AntdIcon",h.getTwoToneColor=l,h.setTwoToneColor=i;var p=P.a=h},"6cGi":function(U,P,d){"use strict";d.d(P,"a",function(){return v});var O=d("ODXe"),x=d("q1tI"),T=d.n(x);function v(S,m){var f=m||{},c=f.defaultValue,o=f.value,r=f.onChange,a=f.postState,n=x.useState(function(){return o!==void 0?o:c!==void 0?typeof c=="function"?c():c:typeof S=="function"?S():S}),e=Object(O.a)(n,2),s=e[0],t=e[1],i=o!==void 0?o:s;a&&(i=a(i));function l(h){t(h),i!==h&&r&&r(h,i)}var u=x.useRef(!0);return x.useEffect(function(){if(u.current){u.current=!1;return}o===void 0&&t(o)},[o]),[i,l]}},"6fms":function(U,P,d){var O=d("SUKs"),x=d("06Qe"),T=d("bYtY"),v=T.each;function S(o){return parseInt(o,10)}function m(o,r){x.initVML(),this.root=o,this.storage=r;var a=document.createElement("div"),n=document.createElement("div");a.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.cssText="position:absolute;left:0;top:0;",o.appendChild(a),this._vmlRoot=n,this._vmlViewport=a,this.resize();var e=r.delFromStorage,s=r.addToStorage;r.delFromStorage=function(t){e.call(r,t),t&&(t.onRemove&&t.onRemove(n))},r.addToStorage=function(t){t.onAdd&&t.onAdd(n),s.call(r,t)},this._firstPaint=!0}m.prototype={constructor:m,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var r=this.getViewportRoot();if(r)return{offsetLeft:r.offsetLeft||0,offsetTop:r.offsetTop||0}},refresh:function(){var r=this.storage.getDisplayList(!0,!0);this._paintList(r)},_paintList:function(r){for(var a=this._vmlRoot,n=0;n<r.length;n++){var e=r[n];e.invisible||e.ignore?(e.__alreadyNotVisible||e.onRemove(a),e.__alreadyNotVisible=!0):(e.__alreadyNotVisible&&e.onAdd(a),e.__alreadyNotVisible=!1,e.__dirty&&(e.beforeBrush&&e.beforeBrush(),(e.brushVML||e.brush).call(e,a),e.afterBrush&&e.afterBrush())),e.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(a),this._firstPaint=!1)},resize:function(r,a){var r=r==null?this._getWidth():r,a=a==null?this._getHeight():a;if(this._width!==r||this._height!==a){this._width=r,this._height=a;var n=this._vmlViewport.style;n.width=r+"px",n.height=a+"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 r=this.root,a=r.currentStyle;return(r.clientWidth||S(a.width))-S(a.paddingLeft)-S(a.paddingRight)|0},_getHeight:function(){var r=this.root,a=r.currentStyle;return(r.clientHeight||S(a.height))-S(a.paddingTop)-S(a.paddingBottom)|0}};function f(o){return function(){O('In IE8.0 VML mode painter not support method "'+o+'"')}}v(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(o){m.prototype[o]=f(o)});var c=m;U.exports=c},"6r85":function(U,P,d){var O=d("bYtY");function x(T){if(!T||!O.isArray(T.series))return;O.each(T.series,function(v){O.isObject(v)&&v.type==="k"&&(v.type="candlestick")})}U.exports=x},"6uqw":function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("ItGF"),v=d("YOMW"),S=d("XxSj"),m=d("K4ya"),f=d("4NO4"),c=d("OELB"),o=S.mapVisual,r=S.eachVisual,a=x.isArray,n=x.each,e=c.asc,s=c.linearMap,t=x.noop,i=O.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-Infinity,Infinity],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(u,h,p){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(u,p)},optionUpdated:function(u,h){var p=this.option;T.canvasSupported||(p.realtime=!1),!h&&m.replaceVisualOption(p,u,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(u){var h=this.stateList;u=x.bind(u,this),this.controllerVisuals=m.createVisualMappings(this.option.controller,h,u),this.targetVisuals=m.createVisualMappings(this.option.target,h,u)},getTargetSeriesIndices:function(){var u=this.option.seriesIndex,h=[];return u==null||u==="all"?this.ecModel.eachSeries(function(p,g){h.push(g)}):h=f.normalizeToArray(u),h},eachTargetSeries:function(u,h){x.each(this.getTargetSeriesIndices(),function(p){u.call(h,this.ecModel.getSeriesByIndex(p))},this)},isTargetSeries:function(u){var h=!1;return this.eachTargetSeries(function(p){p===u&&(h=!0)}),h},formatValueText:function(u,h,p){var g=this.option,A=g.precision,y=this.dataBound,E=g.formatter,C,w;if(p=p||["<",">"],x.isArray(u)&&(u=u.slice(),C=!0),w=h?u:C?[b(u[0]),b(u[1])]:b(u),x.isString(E))return E.replace("{value}",C?w[0]:w).replace("{value2}",C?w[1]:w);if(x.isFunction(E))return C?E(u[0],u[1]):E(u);if(C)return u[0]===y[0]?p[0]+" "+w[1]:u[1]===y[1]?p[1]+" "+w[0]:w[0]+" - "+w[1];return w;function b(I){return I===y[0]?"min":I===y[1]?"max":(+I).toFixed(Math.min(A,20))}},resetExtent:function(){var u=this.option,h=e([u.min,u.max]);this._dataExtent=h},getDataDimension:function(u){var h=this.option.dimension,p=u.dimensions;if(h==null&&!p.length)return;if(h!=null)return u.getDimension(h);for(var g=u.dimensions,A=g.length-1;A>=0;A--){var y=g[A],E=u.getDimensionInfo(y);if(!E.isCalculationCoord)return y}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var u=this.ecModel,h=this.option,p={inRange:h.inRange,outOfRange:h.outOfRange},g=h.target||(h.target={}),A=h.controller||(h.controller={});x.merge(g,p),x.merge(A,p);var y=this.isCategory();E.call(this,g),E.call(this,A),C.call(this,g,"inRange","outOfRange"),w.call(this,A);function E(b){a(h.color)&&!b.inRange&&(b.inRange={color:h.color.slice().reverse()}),b.inRange=b.inRange||{color:u.get("gradientColor")},n(this.stateList,function(I){var _=b[I];if(x.isString(_)){var L=v.get(_,"active",y);L?(b[I]={},b[I][_]=L):delete b[I]}},this)}function C(b,I,_){var L=b[I],D=b[_];L&&!D&&(D=b[_]={},n(L,function(N,R){if(!S.isValidType(R))return;var B=v.get(R,"inactive",y);B!=null&&(D[R]=B,R==="color"&&!D.hasOwnProperty("opacity")&&!D.hasOwnProperty("colorAlpha")&&(D.opacity=[0,0]))}))}function w(b){var I=(b.inRange||{}).symbol||(b.outOfRange||{}).symbol,_=(b.inRange||{}).symbolSize||(b.outOfRange||{}).symbolSize,L=this.get("inactiveColor");n(this.stateList,function(D){var N=this.itemSize,R=b[D];R||(R=b[D]={color:y?L:[L]}),R.symbol==null&&(R.symbol=I&&x.clone(I)||(y?"roundRect":["roundRect"])),R.symbolSize==null&&(R.symbolSize=_&&x.clone(_)||(y?N[0]:[N[0],N[0]])),R.symbol=o(R.symbol,function(H){return H==="none"||H==="square"?"roundRect":H});var B=R.symbolSize;if(B!=null){var M=-Infinity;r(B,function(H){H>M&&(M=H)}),R.symbolSize=o(B,function(H){return s(H,[0,M],[0,N[0]],!0)})}},this)}},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:t,getValueState:t,getVisualMeta:t}),l=i;U.exports=l},"6usn":function(U,P,d){var O=d("bYtY");function x(v,S){return O.map(["Radius","Angle"],function(m,f){var c=this["get"+m+"Axis"](),o=S[f],r=v[f]/2,a="dataTo"+m,n=c.type==="category"?c.getBandWidth():Math.abs(c[a](o-r)-c[a](o+r));return m==="Angle"&&(n=n*Math.PI/180),n},this)}function T(v){var S=v.getRadiusAxis(),m=v.getAngleAxis(),f=S.getExtent();return f[0]>f[1]&&f.reverse(),{coordSys:{type:"polar",cx:v.cx,cy:v.cy,r:f[1],r0:f[0]},api:{coord:O.bind(function(c){var o=S.dataToRadius(c[0]),r=m.dataToAngle(c[1]),a=v.coordToPoint([o,r]);return a.push(o,r*Math.PI/180),a}),size:O.bind(x,v)}}}U.exports=T},"6xvX":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("V7ic"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},"711d":function(U,P){function d(O){return function(x){return x==null?void 0:x[O]}}U.exports=d},"72pK":function(U,P){function d(T,v,S,m,f,c){T=T||0;var o=S[1]-S[0];if(f!=null&&(f=x(f,[0,o])),c!=null&&(c=Math.max(c,f!=null?f:0)),m==="all"){var r=Math.abs(v[1]-v[0]);r=x(r,[0,o]),f=c=x(r,[f,c]),m=0}v[0]=x(v[0],S),v[1]=x(v[1],S);var a=O(v,m);v[m]+=T;var n=f||0,e=S.slice();a.sign<0?e[0]+=n:e[1]-=n,v[m]=x(v[m],e);var s=O(v,m);f!=null&&(s.sign!==a.sign||s.span<f)&&(v[1-m]=v[m]+a.sign*f);var s=O(v,m);return c!=null&&s.span>c&&(v[1-m]=v[m]+s.sign*c),v}function O(T,v){var S=T[v]-T[1-v];return{span:Math.abs(S),sign:S>0?-1:S<0?1:v?-1:1}}function x(T,v){return Math.min(v[1]!=null?v[1]:Infinity,Math.max(v[0]!=null?v[0]:-Infinity,T))}U.exports=d},"75ce":function(U,P,d){var O=d("ProS");d("IXuL"),d("8X+K");var x=d("f5Yq"),T=d("h8O9"),v=d("/d5a");d("Ae16"),O.registerVisual(x("line","circle","line")),O.registerLayout(T("line")),O.registerProcessor(O.PRIORITY.PROCESSOR.STATISTIC,v("line"))},"75ev":function(U,P,d){var O=d("ProS");d("IWNH"),d("bNin"),d("v5uJ");var x=d("f5Yq"),T=d("yik8");O.registerVisual(x("tree","circle")),O.registerLayout(T)},"7AJT":function(U,P,d){var O=d("bYtY"),x=d("hM6l"),T=function(S,m,f,c,o){x.call(this,S,m,f),this.type=c||"value",this.position=o||"bottom"};T.prototype={constructor:T,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var S=this.position;return S==="top"||S==="bottom"},getGlobalExtent:function(S){var m=this.getExtent();return m[0]=this.toGlobalCoord(m[0]),m[1]=this.toGlobalCoord(m[1]),S&&m[0]>m[1]&&m.reverse(),m},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(S,m){return this.coordToData(this.toLocalCoord(S[this.dim==="x"?0:1]),m)},toLocalCoord:null,toGlobalCoord:null},O.inherits(T,x);var v=T;U.exports=v},"7Cbv":function(U,P,d){"use strict";var O=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),x=new Uint8Array(16);function T(){if(!O)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return O(x)}var v=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function S(e){return typeof e=="string"&&v.test(e)}for(var m=S,f=[],c=0;c<256;++c)f.push((c+256).toString(16).substr(1));function o(e){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(f[e[s+0]]+f[e[s+1]]+f[e[s+2]]+f[e[s+3]]+"-"+f[e[s+4]]+f[e[s+5]]+"-"+f[e[s+6]]+f[e[s+7]]+"-"+f[e[s+8]]+f[e[s+9]]+"-"+f[e[s+10]]+f[e[s+11]]+f[e[s+12]]+f[e[s+13]]+f[e[s+14]]+f[e[s+15]]).toLowerCase();if(!m(t))throw TypeError("Stringified UUID is invalid");return t}var r=o;function a(e,s,t){e=e||{};var i=e.random||(e.rng||T)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,s){t=t||0;for(var l=0;l<16;++l)s[t+l]=i[l];return s}return r(i)}var n=P.a=a},"7DRL":function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("bYtY"),v=T.createHashMap,S=T.isString,m=T.isArray,f=T.each,c=T.assert,o=d("MEGo"),r=o.parseXML,a=v(),n={registerMap:function(s,t,i){var l;return m(t)?l=t:t.svg?l=[{type:"svg",source:t.svg,specialAreas:t.specialAreas}]:(t.geoJson&&!t.features&&(i=t.specialAreas,t=t.geoJson),l=[{type:"geoJSON",source:t,specialAreas:i}]),f(l,function(u){var h=u.type;h==="geoJson"&&(h=u.type="geoJSON");var p=e[h];p(u)}),a.set(s,l)},retrieveMap:function(s){return a.get(s)}},e={geoJSON:function(s){var t=s.source;s.geoJSON=S(t)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t},svg:function(s){s.svgXML=r(s.source)}};U.exports=n},"7G+c":function(U,P,d){var O=d("bYtY"),x=O.createHashMap,T=O.isTypedArray,v=d("Yl7c"),S=v.enableClassCheck,m=d("k9D9"),f=m.SOURCE_FORMAT_ORIGINAL,c=m.SERIES_LAYOUT_BY_COLUMN,o=m.SOURCE_FORMAT_UNKNOWN,r=m.SOURCE_FORMAT_TYPED_ARRAY,a=m.SOURCE_FORMAT_KEYED_COLUMNS;function n(s){this.fromDataset=s.fromDataset,this.data=s.data||(s.sourceFormat===a?{}:[]),this.sourceFormat=s.sourceFormat||o,this.seriesLayoutBy=s.seriesLayoutBy||c,this.dimensionsDefine=s.dimensionsDefine,this.encodeDefine=s.encodeDefine&&x(s.encodeDefine),this.startIndex=s.startIndex||0,this.dimensionsDetectCount=s.dimensionsDetectCount}n.seriesDataToSource=function(s){return new n({data:s,sourceFormat:T(s)?r:f,fromDataset:!1})},S(n);var e=n;U.exports=e},"7Kak":function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("KPFz"),v=d.n(T)},"7Phj":function(U,P,d){var O=d("bYtY"),x=d("OELB"),T=x.parsePercent,v=O.each;function S(o){var r=m(o);v(r,function(a){var n=a.seriesModels;if(!n.length)return;f(a),v(n,function(e,s){c(e,a.boxOffsetList[s],a.boxWidthList[s])})})}function m(o){var r=[],a=[];return o.eachSeriesByType("boxplot",function(n){var e=n.getBaseAxis(),s=O.indexOf(a,e);s<0&&(s=a.length,a[s]=e,r[s]={axis:e,seriesModels:[]}),r[s].seriesModels.push(n)}),r}function f(o){var r,a=o.axis,n=o.seriesModels,e=n.length,s=o.boxWidthList=[],t=o.boxOffsetList=[],i=[],l;if(a.type==="category")l=a.getBandWidth();else{var u=0;v(n,function(y){u=Math.max(u,y.getData().count())}),r=a.getExtent(),Math.abs(r[1]-r[0])/u}v(n,function(y){var E=y.get("boxWidth");O.isArray(E)||(E=[E,E]),i.push([T(E[0],l)||0,T(E[1],l)||0])});var h=l*.8-2,p=h/e*.3,g=(h-p*(e-1))/e,A=g/2-h/2;v(n,function(y,E){t.push(A),A+=p+g,s.push(Math.min(Math.max(g,i[E][0]),i[E][1]))})}function c(o,r,a){var n=o.coordinateSystem,e=o.getData(),s=a/2,t=o.get("layout")==="horizontal"?0:1,i=1-t,l=["x","y"],u=e.mapDimension(l[t]),h=e.mapDimension(l[i],!0);if(u==null||h.length<5)return;for(var p=0;p<e.count();p++){var g=e.get(u,p),A=I(g,h[2],p),y=I(g,h[0],p),E=I(g,h[1],p),C=I(g,h[3],p),w=I(g,h[4],p),b=[];_(b,E,0),_(b,C,1),b.push(y,E,w,C),L(b,y),L(b,w),L(b,A),e.setItemLayout(p,{initBaseline:A[i],ends:b})}function I(D,N,R){var B=e.get(N,R),M=[];M[t]=D,M[i]=B;var H;return isNaN(D)||isNaN(B)?H=[NaN,NaN]:(H=n.dataToPoint(M),H[t]+=r),H}function _(D,N,R){var B=N.slice(),M=N.slice();B[t]+=s,M[t]-=s,R?D.push(B,M):D.push(M,B)}function L(D,N){var R=N.slice(),B=N.slice();R[t]-=s,B[t]+=s,D.push(R,B)}}U.exports=S},"7SHv":function(U,P,d){var O=d("LPTA"),x=O.devicePixelRatio,T=d("bYtY"),v=d("SUKs"),S=d("mFDi"),m=d("BPZU"),f=d("Xmg4"),c=d("mLcG"),o=d("Dagg"),r=d("ItGF"),a=1e5,n=314159,e=.01,s=.001;function t(C){return parseInt(C,10)}function i(C){return C?C.__builtin__?!0:!(typeof C.resize!="function"||typeof C.refresh!="function"):!1}var l=new S(0,0,0,0),u=new S(0,0,0,0);function h(C,w,b){return l.copy(C.getBoundingRect()),C.transform&&l.applyTransform(C.transform),u.width=w,u.height=b,!l.intersect(u)}function p(C,w){if(C===w)return!1;if(!C||!w||C.length!==w.length)return!0;for(var b=0;b<C.length;b++)if(C[b]!==w[b])return!0;return!1}function g(C,w){for(var b=0;b<C.length;b++){var I=C[b];I.setTransform(w),w.beginPath(),I.buildPath(w,I.shape),w.clip(),I.restoreTransform(w)}}function A(C,w){var b=document.createElement("div");return b.style.cssText=["position:relative","width:"+C+"px","height:"+w+"px","padding:0","margin:0","border-width:0"].join(";")+";",b}var y=function(w,b,I){this.type="canvas";var _=!w.nodeName||w.nodeName.toUpperCase()==="CANVAS";this._opts=I=T.extend({},I||{}),this.dpr=I.devicePixelRatio||x,this._singleCanvas=_,this.root=w;var L=w.style;L&&(L["-webkit-tap-highlight-color"]="transparent",L["-webkit-user-select"]=L["user-select"]=L["-webkit-touch-callout"]="none",w.innerHTML=""),this.storage=b;var D=this._zlevelList=[],N=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,_){var B=w.width,M=w.height;I.width!=null&&(B=I.width),I.height!=null&&(M=I.height),this.dpr=I.devicePixelRatio||1,w.width=B*this.dpr,w.height=M*this.dpr,this._width=B,this._height=M;var H=new f(w,this,this.dpr);H.__builtin__=!0,H.initContext(),N[n]=H,H.zlevel=n,D.push(n),this._domRoot=w}else{this._width=this._getSize(0),this._height=this._getSize(1);var R=this._domRoot=A(this._width,this._height);w.appendChild(R)}this._hoverlayer=null,this._hoverElements=[]};y.prototype={constructor:y,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var w=this.getViewportRoot();if(w)return{offsetLeft:w.offsetLeft||0,offsetTop:w.offsetTop||0}},refresh:function(w){var b=this.storage.getDisplayList(!0),I=this._zlevelList;this._redrawId=Math.random(),this._paintList(b,w,this._redrawId);for(var _=0;_<I.length;_++){var L=I[_],D=this._layers[L];if(!D.__builtin__&&D.refresh){var N=_===0?this._backgroundColor:null;D.refresh(N)}}return this.refreshHover(),this},addHover:function(w,b){if(w.__hoverMir)return;var I=new w.constructor({style:w.style,shape:w.shape,z:w.z,z2:w.z2,silent:w.silent});return I.__from=w,w.__hoverMir=I,b&&I.setStyle(b),this._hoverElements.push(I),I},removeHover:function(w){var b=w.__hoverMir,I=this._hoverElements,_=T.indexOf(I,b);_>=0&&I.splice(_,1),w.__hoverMir=null},clearHover:function(w){for(var b=this._hoverElements,I=0;I<b.length;I++){var _=b[I].__from;_&&(_.__hoverMir=null)}b.length=0},refreshHover:function(){var w=this._hoverElements,b=w.length,I=this._hoverlayer;if(I&&I.clear(),!b)return;m(w,this.storage.displayableSortFunc),I||(I=this._hoverlayer=this.getLayer(a));var _={};I.ctx.save();for(var L=0;L<b;){var D=w[L],N=D.__from;if(!(N&&N.__zr)){w.splice(L,1),N.__hoverMir=null,b--;continue}L++,N.invisible||(D.transform=N.transform,D.invTransform=N.invTransform,D.__clipPaths=N.__clipPaths,this._doPaintEl(D,I,!0,_))}I.ctx.restore()},getHoverLayer:function(){return this.getLayer(a)},_paintList:function(w,b,I){if(this._redrawId!==I)return;b=b||!1,this._updateLayerStatus(w);var _=this._doPaintList(w,b);if(this._needsManuallyCompositing&&this._compositeManually(),!_){var L=this;c(function(){L._paintList(w,b,I)})}},_compositeManually:function(){var w=this.getLayer(n).ctx,b=this._domRoot.width,I=this._domRoot.height;w.clearRect(0,0,b,I),this.eachBuiltinLayer(function(_){_.virtual&&w.drawImage(_.dom,0,0,b,I)})},_doPaintList:function(w,b){for(var I=[],_=0;_<this._zlevelList.length;_++){var L=this._zlevelList[_],D=this._layers[L];D.__builtin__&&D!==this._hoverlayer&&(D.__dirty||b)&&I.push(D)}for(var N=!0,R=0;R<I.length;R++){var D=I[R],B=D.ctx,M={};B.save();var H=b?D.__startIndex:D.__drawIndex,F=!b&&D.incremental&&Date.now,K=F&&Date.now(),j=D.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(D.__startIndex===D.__endIndex)D.clear(!1,j);else if(H===D.__startIndex){var V=w[H];(!V.incremental||!V.notClear||b)&&D.clear(!1,j)}H===-1&&(console.error("For some unknown reason. drawIndex is -1"),H=D.__startIndex);for(var z=H;z<D.__endIndex;z++){var Y=w[z];if(this._doPaintEl(Y,D,b,M),Y.__dirty=Y.__dirtyText=!1,F){var ee=Date.now()-K;if(ee>15)break}}D.__drawIndex=z,D.__drawIndex<D.__endIndex&&(N=!1),M.prevElClipPaths&&B.restore(),B.restore()}return r.wxa&&T.each(this._layers,function(fe){fe&&fe.ctx&&fe.ctx.draw&&fe.ctx.draw()}),N},_doPaintEl:function(w,b,I,_){var L=b.ctx,D=w.transform;if((b.__dirty||I)&&!w.invisible&&w.style.opacity!==0&&!(D&&!D[0]&&!D[3])&&!(w.culling&&h(w,this._width,this._height))){var N=w.__clipPaths,R=_.prevElClipPaths;(!R||p(N,R))&&(R&&(L.restore(),_.prevElClipPaths=null,_.prevEl=null),N&&(L.save(),g(N,L),_.prevElClipPaths=N)),w.beforeBrush&&w.beforeBrush(L),w.brush(L,_.prevEl||null),_.prevEl=w,w.afterBrush&&w.afterBrush(L)}},getLayer:function(w,b){this._singleCanvas&&!this._needsManuallyCompositing&&(w=n);var I=this._layers[w];return I||(I=new f("zr_"+w,this,this.dpr),I.zlevel=w,I.__builtin__=!0,this._layerConfig[w]?T.merge(I,this._layerConfig[w],!0):this._layerConfig[w-e]&&T.merge(I,this._layerConfig[w-e],!0),b&&(I.virtual=b),this.insertLayer(w,I),I.initContext()),I},insertLayer:function(w,b){var I=this._layers,_=this._zlevelList,L=_.length,D=null,N=-1,R=this._domRoot;if(I[w]){v("ZLevel "+w+" has been used already");return}if(!i(b)){v("Layer of zlevel "+w+" is not valid");return}if(L>0&&w>_[0]){for(N=0;N<L-1&&!(_[N]<w&&_[N+1]>w);N++);D=I[_[N]]}if(_.splice(N+1,0,w),I[w]=b,!b.virtual)if(D){var B=D.dom;B.nextSibling?R.insertBefore(b.dom,B.nextSibling):R.appendChild(b.dom)}else R.firstChild?R.insertBefore(b.dom,R.firstChild):R.appendChild(b.dom)},eachLayer:function(w,b){var I=this._zlevelList,_,L;for(L=0;L<I.length;L++)_=I[L],w.call(b,this._layers[_],_)},eachBuiltinLayer:function(w,b){var I=this._zlevelList,_,L,D;for(D=0;D<I.length;D++)L=I[D],_=this._layers[L],_.__builtin__&&w.call(b,_,L)},eachOtherLayer:function(w,b){var I=this._zlevelList,_,L,D;for(D=0;D<I.length;D++)L=I[D],_=this._layers[L],_.__builtin__||w.call(b,_,L)},getLayers:function(){return this._layers},_updateLayerStatus:function(w){this.eachBuiltinLayer(function(M,H){M.__dirty=M.__used=!1});function b(M){L&&(L.__endIndex!==M&&(L.__dirty=!0),L.__endIndex=M)}if(this._singleCanvas)for(var I=1;I<w.length;I++){var _=w[I];if(_.zlevel!==w[I-1].zlevel||_.incremental){this._needsManuallyCompositing=!0;break}}for(var L=null,D=0,N,I=0;I<w.length;I++){var _=w[I],R=_.zlevel,B;N!==R&&(N=R,D=0),_.incremental?(B=this.getLayer(R+s,this._needsManuallyCompositing),B.incremental=!0,D=1):B=this.getLayer(R+(D>0?e:0),this._needsManuallyCompositing),B.__builtin__||v("ZLevel "+R+" has been used by unkown layer "+B.id),B!==L&&(B.__used=!0,B.__startIndex!==I&&(B.__dirty=!0),B.__startIndex=I,B.incremental?B.__drawIndex=-1:B.__drawIndex=I,b(I),L=B),_.__dirty&&(B.__dirty=!0,B.incremental&&B.__drawIndex<0&&(B.__drawIndex=I))}b(I),this.eachBuiltinLayer(function(M,H){!M.__used&&M.getElementCount()>0&&(M.__dirty=!0,M.__startIndex=M.__endIndex=M.__drawIndex=0),M.__dirty&&M.__drawIndex<0&&(M.__drawIndex=M.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(w){w.clear()},setBackgroundColor:function(w){this._backgroundColor=w},configLayer:function(w,b){if(b){var I=this._layerConfig;I[w]?T.merge(I[w],b,!0):I[w]=b;for(var _=0;_<this._zlevelList.length;_++){var L=this._zlevelList[_];if(L===w||L===w+e){var D=this._layers[L];T.merge(D,I[w],!0)}}}},delLayer:function(w){var b=this._layers,I=this._zlevelList,_=b[w];if(!_)return;_.dom.parentNode.removeChild(_.dom),delete b[w],I.splice(T.indexOf(I,w),1)},resize:function(w,b){if(this._domRoot.style){var I=this._domRoot;I.style.display="none";var _=this._opts;if(w!=null&&(_.width=w),b!=null&&(_.height=b),w=this._getSize(0),b=this._getSize(1),I.style.display="",this._width!==w||b!==this._height){I.style.width=w+"px",I.style.height=b+"px";for(var L in this._layers)this._layers.hasOwnProperty(L)&&this._layers[L].resize(w,b);T.each(this._progressiveLayers,function(D){D.resize(w,b)}),this.refresh(!0)}this._width=w,this._height=b}else{if(w==null||b==null)return;this._width=w,this._height=b,this.getLayer(n).resize(w,b)}return this},clearLayer:function(w){var b=this._layers[w];b&&b.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(w){if(w=w||{},this._singleCanvas&&!this._compositeManually)return this._layers[n].dom;var b=new f("image",this,w.pixelRatio||this.dpr);if(b.initContext(),b.clear(!1,w.backgroundColor||this._backgroundColor),w.pixelRatio<=this.dpr){this.refresh();var I=b.dom.width,_=b.dom.height,L=b.ctx;this.eachLayer(function(M){M.__builtin__?L.drawImage(M.dom,0,0,I,_):M.renderToCanvas&&(b.ctx.save(),M.renderToCanvas(b.ctx),b.ctx.restore())})}else for(var D={},N=this.storage.getDisplayList(!0),R=0;R<N.length;R++){var B=N[R];this._doPaintEl(B,b,!0,D)}return b.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(w){var b=this._opts,I=["width","height"][w],_=["clientWidth","clientHeight"][w],L=["paddingLeft","paddingTop"][w],D=["paddingRight","paddingBottom"][w];if(b[I]!=null&&b[I]!=="auto")return parseFloat(b[I]);var N=this.root,R=document.defaultView.getComputedStyle(N);return(N[_]||t(R[I])||t(N.style[I]))-(t(R[L])||0)-(t(R[D])||0)|0},pathToImage:function(w,b){b=b||this.dpr;var I=document.createElement("canvas"),_=I.getContext("2d"),L=w.getBoundingRect(),D=w.style,N=D.shadowBlur*b,R=D.shadowOffsetX*b,B=D.shadowOffsetY*b,M=D.hasStroke()?D.lineWidth:0,H=Math.max(M/2,-R+N),F=Math.max(M/2,R+N),K=Math.max(M/2,-B+N),j=Math.max(M/2,B+N),V=L.width+H+F,z=L.height+K+j;I.width=V*b,I.height=z*b,_.scale(b,b),_.clearRect(0,0,V,z),_.dpr=b;var Y={position:w.position,rotation:w.rotation,scale:w.scale};w.position=[H-L.x,K-L.y],w.rotation=0,w.scale=[1,1],w.updateTransform(),w&&w.brush(_);var ee=o,fe=new ee({style:{x:0,y:0,image:I}});return Y.position!=null&&(fe.position=w.position=Y.position),Y.rotation!=null&&(fe.rotation=w.rotation=Y.rotation),Y.scale!=null&&(fe.scale=w.scale=Y.scale),fe}};var E=y;U.exports=E},"7a+S":function(U,P,d){var O=d("bYtY"),x=d("bLfw"),T=d("YXkt"),v=d("4NO4"),S=x.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(f,c,o){this._data,this._names,this.mergeDefaultAndTheme(f,o),this._initData()},mergeOption:function(f){S.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(f){f==null&&(f=this.option.currentIndex);var c=this._data.count();this.option.loop?f=(f%c+c)%c:(f>=c&&(f=c-1),f<0&&(f=0)),this.option.currentIndex=f},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(f){this.option.autoPlay=!!f},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var f=this.option,c=f.data||[],o=f.axisType,r=this._names=[];if(o==="category"){var a=[];O.each(c,function(s,t){var i=v.getDataItemValue(s),l;O.isObject(s)?(l=O.clone(s),l.value=t):l=t,a.push(l),!O.isString(i)&&(i==null||isNaN(i))&&(i=""),r.push(i+"")}),c=a}var n={category:"ordinal",time:"time"}[o]||"number",e=this._data=new T([{name:"value",type:n}],this);e.initData(c,r)},getData:function(){return this._data},getCategories:function(){if(this.get("axisType")==="category")return this._names.slice()}}),m=S;U.exports=m},"7aKB":function(U,P,d){var O=d("bYtY"),x=d("6GrX"),T=d("OELB");function v(A){return isNaN(A)?"-":(A=(A+"").split("."),A[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(A.length>1?"."+A[1]:""))}function S(A,y){return A=(A||"").toLowerCase().replace(/-(.)/g,function(E,C){return C.toUpperCase()}),y&&A&&(A=A.charAt(0).toUpperCase()+A.slice(1)),A}var m=O.normalizeCssArray,f=/([&<>"'])/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"};function o(A){return A==null?"":(A+"").replace(f,function(y,E){return c[E]})}var r=["a","b","c","d","e","f","g"],a=function(A,y){return"{"+A+(y==null?"":y)+"}"};function n(A,y,E){O.isArray(y)||(y=[y]);var C=y.length;if(!C)return"";for(var w=y[0].$vars||[],b=0;b<w.length;b++){var I=r[b];A=A.replace(a(I),a(I,0))}for(var _=0;_<C;_++)for(var L=0;L<w.length;L++){var D=y[_][w[L]];A=A.replace(a(r[L],_),E?o(D):D)}return A}function e(A,y,E){return O.each(y,function(C,w){A=A.replace("{"+w+"}",E?o(C):C)}),A}function s(A,y){A=O.isString(A)?{color:A,extraCssText:y}:A||{};var E=A.color,C=A.type,y=A.extraCssText,w=A.renderMode||"html",b=A.markerId||"X";return E?w==="html"?C==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+o(E)+";"+(y||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+o(E)+";"+(y||"")+'"></span>':{renderMode:w,content:"{marker"+b+"|} ",style:{color:E}}:""}function t(A,y){return A+="","0000".substr(0,y-A.length)+A}function i(A,y,E){(A==="week"||A==="month"||A==="quarter"||A==="half-year"||A==="year")&&(A=`MM-dd
|
|
|
yyyy`);var C=T.parseDate(y),w=E?"UTC":"",b=C["get"+w+"FullYear"](),I=C["get"+w+"Month"]()+1,_=C["get"+w+"Date"](),L=C["get"+w+"Hours"](),D=C["get"+w+"Minutes"](),N=C["get"+w+"Seconds"](),R=C["get"+w+"Milliseconds"]();return A=A.replace("MM",t(I,2)).replace("M",I).replace("yyyy",b).replace("yy",b%100).replace("dd",t(_,2)).replace("d",_).replace("hh",t(L,2)).replace("h",L).replace("mm",t(D,2)).replace("m",D).replace("ss",t(N,2)).replace("s",N).replace("SSS",t(R,3)),A}function l(A){return A&&A.charAt(0).toUpperCase()+A.substr(1)}var u=x.truncateText;function h(A){return x.getBoundingRect(A.text,A.font,A.textAlign,A.textVerticalAlign,A.textPadding,A.textLineHeight,A.rich,A.truncate)}function p(A,y,E,C,w,b,I,_){return x.getBoundingRect(A,y,E,C,w,_,b,I)}function g(A,y){if(y==="_blank"||y==="blank"){var E=window.open();E.opener=null,E.location=A}else window.open(A,y)}P.addCommas=v,P.toCamelCase=S,P.normalizeCssArray=m,P.encodeHTML=o,P.formatTpl=n,P.formatTplSimple=e,P.getTooltipMarker=s,P.formatTime=i,P.capitalFirst=l,P.truncateText=u,P.getTextBoundingRect=h,P.getTextRect=p,P.windowOpen=g},"7bkD":function(U,P,d){var O=d("bYtY");function x(T,v){v=v||{};var S=T.coordinateSystem,m=T.axis,f={},c=m.position,o=m.orient,r=S.getRect(),a=[r.x,r.x+r.width,r.y,r.y+r.height],n={horizontal:{top:a[2],bottom:a[3]},vertical:{left:a[0],right:a[1]}};f.position=[o==="vertical"?n.vertical[c]:a[0],o==="horizontal"?n.horizontal[c]:a[3]];var e={horizontal:0,vertical:1};f.rotation=Math.PI/2*e[o];var s={top:-1,bottom:1,right:1,left:-1};f.labelDirection=f.tickDirection=f.nameDirection=s[c],T.get("axisTick.inside")&&(f.tickDirection=-f.tickDirection),O.retrieve(v.labelInside,T.get("axisLabel.inside"))&&(f.labelDirection=-f.labelDirection);var t=v.rotate;return t==null&&(t=T.get("axisLabel.rotate")),f.labelRotation=c==="top"?-t:t,f.z2=1,f}P.layout=x},"7hqr":function(U,P,d){var O=d("bYtY"),x=O.each,T=O.isString;function v(f,c,o){o=o||{};var r=o.byIndex,a=o.stackedCoordDimension,n=!!(f&&f.get("stack")),e,s,t,i;if(x(c,function(p,g){T(p)&&(c[g]=p={name:p}),n&&!p.isExtraCoord&&(!r&&!e&&p.ordinalMeta&&(e=p),!s&&p.type!=="ordinal"&&p.type!=="time"&&(!a||a===p.coordDim)&&(s=p))}),s&&!r&&!e&&(r=!0),s){t="__\0ecstackresult",i="__\0ecstackedover",e&&(e.createInvertedIndices=!0);var l=s.coordDim,u=s.type,h=0;x(c,function(p){p.coordDim===l&&h++}),c.push({name:t,coordDim:l,coordDimIndex:h,type:u,isExtraCoord:!0,isCalculationCoord:!0}),h++,c.push({name:i,coordDim:i,coordDimIndex:h,type:u,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:s&&s.name,stackedByDimension:e&&e.name,isStackedByIndex:r,stackedOverDimension:i,stackResultDimension:t}}function S(f,c){return!!c&&c===f.getCalculationInfo("stackedDimension")}function m(f,c){return S(f,c)?f.getCalculationInfo("stackResultDimension"):c}P.enableDataStack=v,P.isDimensionStacked=S,P.getStackedDimension=m},"7mYs":function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("IwbS"),v=d("7aKB"),S=d("OELB"),m={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},f={EN:["S","M","T","W","T","F","S"],CN:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},c=O.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(o,r,a){var n=this.group;n.removeAll();var e=o.coordinateSystem,s=e.getRangeInfo(),t=e.getOrient();this._renderDayRect(o,s,n),this._renderLines(o,s,t,n),this._renderYearText(o,s,t,n),this._renderMonthText(o,t,n),this._renderWeekText(o,s,t,n)},_renderDayRect:function(o,r,a){for(var n=o.coordinateSystem,e=o.getModel("itemStyle").getItemStyle(),s=n.getCellWidth(),t=n.getCellHeight(),i=r.start.time;i<=r.end.time;i=n.getNextNDay(i,1).time){var l=n.dataToRect([i],!1).tl,u=new T.Rect({shape:{x:l[0],y:l[1],width:s,height:t},cursor:"default",style:e});a.add(u)}},_renderLines:function(o,r,a,n){var e=this,s=o.coordinateSystem,t=o.getModel("splitLine.lineStyle").getLineStyle(),i=o.get("splitLine.show"),l=t.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=r.start,h=0;u.time<=r.end.time;h++){g(u.formatedDate),h===0&&(u=s.getDateInfo(r.start.y+"-"+r.start.m));var p=u.date;p.setMonth(p.getMonth()+1),u=s.getDateInfo(p)}g(s.getNextNDay(r.end.time,1).formatedDate);function g(A){e._firstDayOfMonth.push(s.getDateInfo(A)),e._firstDayPoints.push(s.dataToRect([A],!1).tl);var y=e._getLinePointsOfOneWeek(o,A,a);e._tlpoints.push(y[0]),e._blpoints.push(y[y.length-1]),i&&e._drawSplitline(y,t,n)}i&&this._drawSplitline(e._getEdgesPoints(e._tlpoints,l,a),t,n),i&&this._drawSplitline(e._getEdgesPoints(e._blpoints,l,a),t,n)},_getEdgesPoints:function(o,r,a){var n=[o[0].slice(),o[o.length-1].slice()],e=a==="horizontal"?0:1;return n[0][e]=n[0][e]-r/2,n[1][e]=n[1][e]+r/2,n},_drawSplitline:function(o,r,a){var n=new T.Polyline({z2:20,shape:{points:o},style:r});a.add(n)},_getLinePointsOfOneWeek:function(o,r,a){var n=o.coordinateSystem;r=n.getDateInfo(r);for(var e=[],s=0;s<7;s++){var t=n.getNextNDay(r.time,s),i=n.dataToRect([t.time],!1);e[2*t.day]=i.tl,e[2*t.day+1]=i[a==="horizontal"?"bl":"tr"]}return e},_formatterLabel:function(o,r){return typeof o=="string"&&o?v.formatTplSimple(o,r):typeof o=="function"?o(r):r.nameMap},_yearTextPositionControl:function(o,r,a,n,e){r=r.slice();var s=["center","bottom"];n==="bottom"?(r[1]+=e,s=["center","top"]):n==="left"?r[0]-=e:n==="right"?(r[0]+=e,s=["center","top"]):r[1]-=e;var t=0;return(n==="left"||n==="right")&&(t=Math.PI/2),{rotation:t,position:r,style:{textAlign:s[0],textVerticalAlign:s[1]}}},_renderYearText:function(o,r,a,n){var e=o.getModel("yearLabel");if(!e.get("show"))return;var s=e.get("margin"),t=e.get("position");t||(t=a!=="horizontal"?"top":"left");var i=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(i[0][0]+i[1][0])/2,u=(i[0][1]+i[1][1])/2,h=a==="horizontal"?0:1,p={top:[l,i[h][1]],bottom:[l,i[1-h][1]],left:[i[1-h][0],u],right:[i[h][0],u]},g=r.start.y;+r.end.y>+r.start.y&&(g=g+"-"+r.end.y);var A=e.get("formatter"),y={start:r.start.y,end:r.end.y,nameMap:g},E=this._formatterLabel(A,y),C=new T.Text({z2:30});T.setTextStyle(C.style,e,{text:E}),C.attr(this._yearTextPositionControl(C,p[t],a,t,s)),n.add(C)},_monthTextPositionControl:function(o,r,a,n,e){var s="left",t="top",i=o[0],l=o[1];return a==="horizontal"?(l=l+e,r&&(s="center"),n==="start"&&(t="bottom")):(i=i+e,r&&(t="middle"),n==="start"&&(s="right")),{x:i,y:l,textAlign:s,textVerticalAlign:t}},_renderMonthText:function(o,r,a){var n=o.getModel("monthLabel");if(!n.get("show"))return;var e=n.get("nameMap"),s=n.get("margin"),t=n.get("position"),i=n.get("align"),l=[this._tlpoints,this._blpoints];x.isString(e)&&(e=m[e.toUpperCase()]||[]);var u=t==="start"?0:1,h=r==="horizontal"?0:1;s=t==="start"?-s:s;for(var p=i==="center",g=0;g<l[u].length-1;g++){var A=l[u][g].slice(),y=this._firstDayOfMonth[g];if(p){var E=this._firstDayPoints[g];A[h]=(E[h]+l[0][g+1][h])/2}var C=n.get("formatter"),w=e[+y.m-1],b={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:w},I=this._formatterLabel(C,b),_=new T.Text({z2:30});x.extend(T.setTextStyle(_.style,n,{text:I}),this._monthTextPositionControl(A,p,r,t,s)),a.add(_)}},_weekTextPositionControl:function(o,r,a,n,e){var s="center",t="middle",i=o[0],l=o[1],u=a==="start";return r==="horizontal"?(i=i+n+(u?1:-1)*e[0]/2,s=u?"right":"left"):(l=l+n+(u?1:-1)*e[1]/2,t=u?"bottom":"top"),{x:i,y:l,textAlign:s,textVerticalAlign:t}},_renderWeekText:function(o,r,a,n){var e=o.getModel("dayLabel");if(!e.get("show"))return;var s=o.coordinateSystem,t=e.get("position"),i=e.get("nameMap"),l=e.get("margin"),u=s.getFirstDayOfWeek();x.isString(i)&&(i=f[i.toUpperCase()]||[]);var h=s.getNextNDay(r.end.time,7-r.lweek).time,p=[s.getCellWidth(),s.getCellHeight()];l=S.parsePercent(l,p[a==="horizontal"?0:1]),t==="start"&&(h=s.getNextNDay(r.start.time,-(7+r.fweek)).time,l=-l);for(var g=0;g<7;g++){var A=s.getNextNDay(h,g),y=s.dataToRect([A.time],!1).center,E=g;E=Math.abs((g+u)%7);var C=new T.Text({z2:30});x.extend(T.setTextStyle(C.style,e,{text:i[E]}),this._weekTextPositionControl(y,a,t,l,p)),n.add(C)}}});U.exports=c},"7oTu":function(U,P,d){var O=d("IMiH"),x=d("QBsz"),T=x.applyTransform,v=O.CMD,S=[[],[],[]],m=Math.sqrt,f=Math.atan2;function c(o,r){var a=o.data,n,e,s,t,i,l,u=v.M,h=v.C,p=v.L,g=v.R,A=v.A,y=v.Q;for(s=0,t=0;s<a.length;){n=a[s++],t=s,e=0;switch(n){case u:e=1;break;case p:e=1;break;case h:e=3;break;case y:e=2;break;case A:var E=r[4],C=r[5],w=m(r[0]*r[0]+r[1]*r[1]),b=m(r[2]*r[2]+r[3]*r[3]),I=f(-r[1]/b,r[0]/w);a[s]*=w,a[s++]+=E,a[s]*=b,a[s++]+=C,a[s++]*=w,a[s++]*=b,a[s++]+=I,a[s++]+=I,s+=2,t=s;break;case g:l[0]=a[s++],l[1]=a[s++],T(l,l,r),a[t++]=l[0],a[t++]=l[1],l[0]+=a[s++],l[1]+=a[s++],T(l,l,r),a[t++]=l[0],a[t++]=l[1]}for(i=0;i<e;i++){var l=S[i];l[0]=a[s++],l[1]=a[s++],T(l,l,r),a[t++]=l[0],a[t++]=l[1]}}}U.exports=c},"7pVf":function(U,P,d){var O=d("ProS"),x=d("ZqQs");d("oE7X"),d("OUJF"),d("3X6L"),d("NH9N"),O.registerPreprocessor(x)},"7ph2":function(U,P){function d(T){return T instanceof Array||(T=[T,T]),T}var O="lineStyle.opacity".split("."),x={seriesType:"lines",reset:function(T,v,S){var m=d(T.get("symbol")),f=d(T.get("symbolSize")),c=T.getData();c.setVisual("fromSymbol",m&&m[0]),c.setVisual("toSymbol",m&&m[1]),c.setVisual("fromSymbolSize",f&&f[0]),c.setVisual("toSymbolSize",f&&f[1]),c.setVisual("opacity",T.get(O));function o(r,a){var n=r.getItemModel(a),e=d(n.getShallow("symbol",!0)),s=d(n.getShallow("symbolSize",!0)),t=n.get(O);e[0]&&r.setItemVisual(a,"fromSymbol",e[0]),e[1]&&r.setItemVisual(a,"toSymbol",e[1]),s[0]&&r.setItemVisual(a,"fromSymbolSize",s[0]),s[1]&&r.setItemVisual(a,"toSymbolSize",s[1]),r.setItemVisual(a,"opacity",t)}return{dataEach:c.hasItemOption?o:null}}};U.exports=x},"7uqq":function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("ProS"),v=d("bYtY"),S=d("AUH6"),m=d("+TT/"),f=d("OELB"),c=d("W4dC"),o=d("7DRL");function r(s,t){var i=s.get("boundingCoords");if(i!=null){var l=i[0],u=i[1];isNaN(l[0])||isNaN(l[1])||isNaN(u[0])||isNaN(u[1])||this.setBoundingRect(l[0],l[1],u[0]-l[0],u[1]-l[1])}var h=this.getBoundingRect(),p,g=s.get("layoutCenter"),A=s.get("layoutSize"),y=t.getWidth(),E=t.getHeight(),C=h.width/h.height*this.aspectScale,w=!1;g&&A&&(g=[f.parsePercent(g[0],y),f.parsePercent(g[1],E)],A=f.parsePercent(A,Math.min(y,E)),!isNaN(g[0])&&!isNaN(g[1])&&!isNaN(A)&&(w=!0));var b;if(w){var b={};C>1?(b.width=A,b.height=A/C):(b.height=A,b.width=A*C),b.y=g[1]-b.height/2,b.x=g[0]-b.width/2}else p=s.getBoxLayoutParams(),p.aspect=C,b=m.getLayoutRect(p,{width:y,height:E});this.setViewRect(b.x,b.y,b.width,b.height),this.setCenter(s.get("center")),this.setZoom(s.get("zoom"))}function a(s,t){v.each(t.get("geoCoord"),function(i,l){s.addGeoCoord(l,i)})}var n={dimensions:S.prototype.dimensions,create:function(s,t){var i=[];s.eachComponent("geo",function(u,h){var p=u.get("map"),g=u.get("aspectScale"),A=!0,y=o.retrieveMap(p);y&&y[0]&&y[0].type==="svg"?(g==null&&(g=1),A=!1):g==null&&(g=.75);var E=new S(p+h,p,u.get("nameMap"),A);E.aspectScale=g,E.zoomLimit=u.get("scaleLimit"),i.push(E),a(E,u),u.coordinateSystem=E,E.model=u,E.resize=r,E.resize(u,t)}),s.eachSeries(function(u){var h=u.get("coordinateSystem");if(h==="geo"){var p=u.get("geoIndex")||0;u.coordinateSystem=i[p]}});var l={};return s.eachSeriesByType("map",function(u){if(!u.getHostGeoModel()){var h=u.getMapType();l[h]=l[h]||[],l[h].push(u)}}),v.each(l,function(u,h){var p=v.map(u,function(A){return A.get("nameMap")}),g=new S(h,h,v.mergeAll(p));g.zoomLimit=v.retrieve.apply(null,v.map(u,function(A){return A.get("scaleLimit")})),i.push(g),g.resize=r,g.aspectScale=u[0].get("aspectScale"),g.resize(u[0],t),v.each(u,function(A){A.coordinateSystem=g,a(g,A)})}),i},getFilledRegions:function(s,t,i){for(var l=(s||[]).slice(),u=v.createHashMap(),h=0;h<l.length;h++)u.set(l[h].name,l[h]);var p=c.load(t,i);return v.each(p.regions,function(g){var A=g.name;!u.get(A)&&l.push({name:A})}),l}};T.registerCoordinateSystem("geo",n);var e=n;U.exports=e},"7yuC":function(U,P,d){var O=d("QBsz"),x=O.scaleAndAdd;function T(v,S,m){for(var f=m.rect,c=f.width,o=f.height,r=[f.x+c/2,f.y+o/2],a=m.gravity==null?.1:m.gravity,n=0;n<v.length;n++){var e=v[n];e.p||(e.p=O.create(c*(Math.random()-.5)+r[0],o*(Math.random()-.5)+r[1])),e.pp=O.clone(e.p),e.edges=null}var s=m.friction==null?.6:m.friction,t=s;return{warmUp:function(){t=s*.8},setFixed:function(i){v[i].fixed=!0},setUnfixed:function(i){v[i].fixed=!1},step:function(i){for(var l=[],u=v.length,h=0;h<S.length;h++){var p=S[h];if(p.ignoreForceLayout)continue;var g=p.n1,A=p.n2;O.sub(l,A.p,g.p);var y=O.len(l)-p.d,E=A.w/(g.w+A.w);isNaN(E)&&(E=0),O.normalize(l,l),!g.fixed&&x(g.p,g.p,l,E*y*t),!A.fixed&&x(A.p,A.p,l,-(1-E)*y*t)}for(var h=0;h<u;h++){var C=v[h];C.fixed||(O.sub(l,r,C.p),x(C.p,C.p,l,a*t))}for(var h=0;h<u;h++)for(var g=v[h],w=h+1;w<u;w++){var A=v[w];O.sub(l,A.p,g.p);var y=O.len(l);y===0&&(O.set(l,Math.random()-.5,Math.random()-.5),y=1);var b=(g.rep+A.rep)/y/y;!g.fixed&&x(g.pp,g.pp,l,b),!A.fixed&&x(A.pp,A.pp,l,-b)}for(var I=[],h=0;h<u;h++){var C=v[h];C.fixed||(O.sub(I,C.p,C.pp),x(C.p,C.p,I,t),O.copy(C.pp,C.p))}t=t*.992,i&&i(v,S,t<.01)}}}P.forceLayout=T},"8+yF":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O={256:960,257:992,258:451,259:483,260:417,261:433,262:454,263:486,264:710,265:742,266:709,267:741,268:456,269:488,270:463,271:495,272:464,273:496,274:938,275:954,278:972,279:1004,280:458,281:490,282:460,283:492,284:728,285:760,286:683,287:699,288:725,289:757,290:939,291:955,292:678,293:694,294:673,295:689,296:933,297:949,298:975,299:1007,302:967,303:999,304:681,305:697,308:684,309:700,310:979,311:1011,312:930,313:453,314:485,315:934,316:950,317:421,318:437,321:419,322:435,323:465,324:497,325:977,326:1009,327:466,328:498,330:957,331:959,332:978,333:1010,336:469,337:501,338:5052,339:5053,340:448,341:480,342:931,343:947,344:472,345:504,346:422,347:438,348:734,349:766,350:426,351:442,352:425,353:441,354:478,355:510,356:427,357:443,358:940,359:956,360:989,361:1021,362:990,363:1022,364:733,365:765,366:473,367:505,368:475,369:507,370:985,371:1017,376:5054,377:428,378:444,379:431,380:447,381:430,382:446,402:2294,466:16777681,711:439,728:418,729:511,731:434,733:445,901:1966,902:1953,904:1954,905:1955,906:1956,908:1959,910:1960,911:1963,912:1974,913:1985,914:1986,915:1987,916:1988,917:1989,918:1990,919:1991,920:1992,921:1993,922:1994,923:1995,924:1996,925:1997,926:1998,927:1999,928:2e3,929:2001,931:2002,932:2004,933:2005,934:2006,935:2007,936:2008,937:2009,938:1957,939:1961,940:1969,941:1970,942:1971,943:1972,944:1978,945:2017,946:2018,947:2019,948:2020,949:2021,950:2022,951:2023,952:2024,953:2025,954:2026,955:2027,956:2028,957:2029,958:2030,959:2031,960:2032,961:2033,962:2035,963:2034,964:2036,965:2037,966:2038,967:2039,968:2040,969:2041,970:1973,971:1977,972:1975,973:1976,974:1979,1025:1715,1026:1713,1027:1714,1028:1716,1029:1717,1030:1718,1031:1719,1032:1720,1033:1721,1034:1722,1035:1723,1036:1724,1038:1726,1039:1727,1040:1761,1041:1762,1042:1783,1043:1767,1044:1764,1045:1765,1046:1782,1047:1786,1048:1769,1049:1770,1050:1771,1051:1772,1052:1773,1053:1774,1054:1775,1055:1776,1056:1778,1057:1779,1058:1780,1059:1781,1060:1766,1061:1768,1062:1763,1063:1790,1064:1787,1065:1789,1066:1791,1067:1785,1068:1784,1069:1788,1070:1760,1071:1777,1072:1729,1073:1730,1074:1751,1075:1735,1076:1732,1077:1733,1078:1750,1079:1754,1080:1737,1081:1738,1082:1739,1083:1740,1084:1741,1085:1742,1086:1743,1087:1744,1088:1746,1089:1747,1090:1748,1091:1749,1092:1734,1093:1736,1094:1731,1095:1758,1096:1755,1097:1757,1098:1759,1099:1753,1100:1752,1101:1756,1102:1728,1103:1745,1105:1699,1106:1697,1107:1698,1108:1700,1109:1701,1110:1702,1111:1703,1112:1704,1113:1705,1114:1706,1115:1707,1116:1708,1118:1710,1119:1711,1168:1725,1169:1709,1488:3296,1489:3297,1490:3298,1491:3299,1492:3300,1493:3301,1494:3302,1495:3303,1496:3304,1497:3305,1498:3306,1499:3307,1500:3308,1501:3309,1502:3310,1503:3311,1504:3312,1505:3313,1506:3314,1507:3315,1508:3316,1509:3317,1510:3318,1511:3319,1512:3320,1513:3321,1514:3322,1548:1452,1563:1467,1567:1471,1569:1473,1570:1474,1571:1475,1572:1476,1573:1477,1574:1478,1575:1479,1576:1480,1577:1481,1578:1482,1579:1483,1580:1484,1581:1485,1582:1486,1583:1487,1584:1488,1585:1489,1586:1490,1587:1491,1588:1492,1589:1493,1590:1494,1591:1495,1592:1496,1593:1497,1594:1498,1600:1504,1601:1505,1602:1506,1603:1507,1604:1508,1605:1509,1606:1510,1607:1511,1608:1512,1609:1513,1610:1514,1611:1515,1612:1516,1613:1517,1614:1518,1615:1519,1616:1520,1617:1521,1618:1522,3585:3489,3586:3490,3587:3491,3588:3492,3589:3493,3590:3494,3591:3495,3592:3496,3593:3497,3594:3498,3595:3499,3596:3500,3597:3501,3598:3502,3599:3503,3600:3504,3601:3505,3602:3506,3603:3507,3604:3508,3605:3509,3606:3510,3607:3511,3608:3512,3609:3513,3610:3514,3611:3515,3612:3516,3613:3517,3614:3518,3615:3519,3616:3520,3617:3521,3618:3522,3619:3523,3620:3524,3621:3525,3622:3526,3623:3527,3624:3528,3625:3529,3626:3530,3627:3531,3628:3532,3629:3533,3630:3534,3631:3535,3632:3536,3633:3537,3634:3538,3635:3539,3636:3540,3637:3541,3638:3542,3639:3543,3640:3544,3641:3545,3642:3546,3647:3551,3648:3552,3649:3553,3650:3554,3651:3555,3652:3556,3653:3557,3654:3558,3655:3559,3656:3560,3657:3561,3658:3562,3659:3563,3660:3564,3661:3565,3664:3568,3665:3569,3666:3570,3667:3571,3668:3572,3669:3573,3670:3574,3671:3575,3672:3576,3673:3577,8194:2722,8195:2721,8196:2723,8197:2724,8199:2725,8200:2726,8201:2727,8202:2728,8210:2747,8211:2730,8212:2729,8213:1967,8215:3295,8216:2768,8217:2769,8218:2813,8220:2770,8221:2771,8222:2814,8224:2801,8225:2802,8226:2790,8229:2735,8230:2734,8240:2773,8242:2774,8243:2775,8248:2812,8254:1150,8361:3839,8364:8364,8453:2744,8470:1712,8471:2811,8478:2772,8482:2761,8531:2736,8532:2737,8533:2738,8534:2739,8535:2740,8536:2741,8537:2742,8538:2743,8539:2755,8540:2756,8541:2757,8542:2758,8592:2299,8593:2300,8594:2301,8595:2302,8658:2254,8660:2253,8706:2287,8711:2245,8728:3018,8730:2262,8733:2241,8734:2242,8743:2270,8744:2271,8745:2268,8746:2269,8747:2239,8756:2240,8764:2248,8771:2249,8773:16785992,8800:2237,8801:2255,8804:2236,8805:2238,8834:2266,8835:2267,8866:3068,8867:3036,8868:3010,8869:3022,8968:3027,8970:3012,8981:2810,8992:2212,8993:2213,9109:3020,9115:2219,9117:2220,9118:2221,9120:2222,9121:2215,9123:2216,9124:2217,9126:2218,9128:2223,9132:2224,9143:2209,9146:2543,9147:2544,9148:2546,9149:2547,9225:2530,9226:2533,9227:2537,9228:2531,9229:2532,9251:2732,9252:2536,9472:2211,9474:2214,9484:2210,9488:2539,9492:2541,9496:2538,9500:2548,9508:2549,9516:2551,9524:2550,9532:2542,9618:2529,9642:2791,9643:2785,9644:2779,9645:2786,9646:2783,9647:2767,9650:2792,9651:2787,9654:2781,9655:2765,9660:2793,9661:2788,9664:2780,9665:2764,9670:2528,9675:2766,9679:2782,9702:2784,9734:2789,9742:2809,9747:2762,9756:2794,9758:2795,9792:2808,9794:2807,9827:2796,9829:2798,9830:2797,9837:2806,9839:2805,10003:2803,10007:2804,10013:2777,10016:2800,10216:2748,10217:2750,12289:1188,12290:1185,12300:1186,12301:1187,12443:1246,12444:1247,12449:1191,12450:1201,12451:1192,12452:1202,12453:1193,12454:1203,12455:1194,12456:1204,12457:1195,12458:1205,12459:1206,12461:1207,12463:1208,12465:1209,12467:1210,12469:1211,12471:1212,12473:1213,12475:1214,12477:1215,12479:1216,12481:1217,12483:1199,12484:1218,12486:1219,12488:1220,12490:1221,12491:1222,12492:1223,12493:1224,12494:1225,12495:1226,12498:1227,12501:1228,12504:1229,12507:1230,12510:1231,12511:1232,12512:1233,12513:1234,12514:1235,12515:1196,12516:1236,12517:1197,12518:1237,12519:1198,12520:1238,12521:1239,12522:1240,12523:1241,12524:1242,12525:1243,12527:1244,12530:1190,12531:1245,12539:1189,12540:1200},x={lookup:function(v){if(v>=32&&v<=255)return v;var S=O[v];return S!==void 0?S:16777216|v}};P.default=x},"8CQX":function(U,P,d){"use strict";function O(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(i){return typeof i}:O=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},O(s)}Object.defineProperty(P,"__esModule",{value:!0}),P.getKeycode=a,P.getKey=n,P.getKeysym=e;var x=r(d("mHUz")),T=r(d("8+yF")),v=r(d("6Qwc")),S=r(d("gIYZ")),m=r(d("mTgk")),f=o(d("GdRQ"));function c(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return c=function(){return s},s}function o(s){if(s&&s.__esModule)return s;if(s===null||O(s)!=="object"&&typeof s!="function")return{default:s};var t=c();if(t&&t.has(s))return t.get(s);var i={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in s)if(Object.prototype.hasOwnProperty.call(s,u)){var h=l?Object.getOwnPropertyDescriptor(s,u):null;h&&(h.get||h.set)?Object.defineProperty(i,u,h):i[u]=s[u]}return i.default=s,t&&t.set(s,i),i}function r(s){return s&&s.__esModule?s:{default:s}}function a(s){if(s.code){switch(s.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return s.code}if(s.type!=="keypress"&&s.keyCode in v.default){var t=v.default[s.keyCode];if(f.isMac()&&t==="ContextMenu"&&(t="MetaRight"),s.location===2)switch(t){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(s.location===3)switch(t){case"Delete":return"NumpadDecimal";case"Insert":return"Numpad0";case"End":return"Numpad1";case"ArrowDown":return"Numpad2";case"PageDown":return"Numpad3";case"ArrowLeft":return"Numpad4";case"ArrowRight":return"Numpad6";case"Home":return"Numpad7";case"ArrowUp":return"Numpad8";case"PageUp":return"Numpad9";case"Enter":return"NumpadEnter"}return t}return"Unidentified"}function n(s){if(s.key!==void 0){switch(s.key){case"Spacebar":return" ";case"Esc":return"Escape";case"Scroll":return"ScrollLock";case"Win":return"Meta";case"Apps":return"ContextMenu";case"Up":return"ArrowUp";case"Left":return"ArrowLeft";case"Right":return"ArrowRight";case"Down":return"ArrowDown";case"Del":return"Delete";case"Divide":return"/";case"Multiply":return"*";case"Subtract":return"-";case"Add":return"+";case"Decimal":return s.char}switch(s.key){case"OS":return"Meta";case"LaunchMyComputer":return"LaunchApplication1";case"LaunchCalculator":return"LaunchApplication2"}switch(s.key){case"UIKeyInputUpArrow":return"ArrowUp";case"UIKeyInputDownArrow":return"ArrowDown";case"UIKeyInputLeftArrow":return"ArrowLeft";case"UIKeyInputRightArrow":return"ArrowRight";case"UIKeyInputEscape":return"Escape"}if(s.key==="\0"&&s.code==="NumpadDecimal")return"Delete";if(!f.isIE()&&!f.isEdge())return s.key;if(s.key.length!==1&&s.key!=="Unidentified")return s.key}var t=a(s);return t in S.default?S.default[t]:s.charCode?String.fromCharCode(s.charCode):"Unidentified"}function e(s){var t=n(s);if(t==="Unidentified")return null;if(t in m.default){var i=s.location;if(t==="Meta"&&i===0&&(i=2),t==="Clear"&&i===3){var l=a(s);l==="NumLock"&&(i=0)}if((i===void 0||i>3)&&(i=0),t==="Meta"){var u=a(s);if(u==="AltLeft")return x.default.XK_Meta_L;if(u==="AltRight")return x.default.XK_Meta_R}if(t==="Clear"){var h=a(s);if(h==="NumLock")return x.default.XK_Num_Lock}return m.default[t][i]}if(t.length!==1)return null;var p=t.charCodeAt();return p?T.default.lookup(p):null}},"8EBN":function(U,P,d){(function(O){O(d("VrN/"))})(function(O){"use strict";O.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 x=0;x<O.modeInfo.length;x++){var T=O.modeInfo[x];T.mimes&&(T.mime=T.mimes[0])}O.findModeByMIME=function(v){v=v.toLowerCase();for(var S=0;S<O.modeInfo.length;S++){var m=O.modeInfo[S];if(m.mime==v)return m;if(m.mimes){for(var f=0;f<m.mimes.length;f++)if(m.mimes[f]==v)return m}}if(/\+xml$/.test(v))return O.findModeByMIME("application/xml");if(/\+json$/.test(v))return O.findModeByMIME("application/json")},O.findModeByExtension=function(v){v=v.toLowerCase();for(var S=0;S<O.modeInfo.length;S++){var m=O.modeInfo[S];if(m.ext){for(var f=0;f<m.ext.length;f++)if(m.ext[f]==v)return m}}},O.findModeByFileName=function(v){for(var S=0;S<O.modeInfo.length;S++){var m=O.modeInfo[S];if(m.file&&m.file.test(v))return m}var f=v.lastIndexOf("."),c=f>-1&&v.substring(f+1,v.length);if(c)return O.findModeByExtension(c)},O.findModeByName=function(v){v=v.toLowerCase();for(var S=0;S<O.modeInfo.length;S++){var m=O.modeInfo[S];if(m.name.toLowerCase()==v)return m;if(m.alias){for(var f=0;f<m.alias.length;f++)if(m.alias[f].toLowerCase()==v)return m}}}})},"8IMR":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};P.default=O},"8ISB":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("6Hfg"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},"8K/p":function(U,P,d){"use strict";function O(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(e){return typeof e}:O=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(a)}Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var x=m(d("Lo0S")),T=v(d("ItS6"));function v(a){return a&&a.__esModule?a:{default:a}}function S(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return S=function(){return a},a}function m(a){if(a&&a.__esModule)return a;if(a===null||O(a)!=="object"&&typeof a!="function")return{default:a};var n=S();if(n&&n.has(a))return n.get(a);var e={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in a)if(Object.prototype.hasOwnProperty.call(a,t)){var i=s?Object.getOwnPropertyDescriptor(a,t):null;i&&(i.get||i.set)?Object.defineProperty(e,t,i):e[t]=a[t]}return e.default=a,n&&n.set(a,e),e}function f(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function c(a,n){for(var e=0;e<n.length;e++){var s=n[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,s.key,s)}}function o(a,n,e){return n&&c(a.prototype,n),e&&c(a,e),a}var r=function(){function a(){f(this,a),this._ctl=null,this._filter=null,this._numColors=0,this._palette=new Uint8Array(1024),this._len=0,this._zlibs=[];for(var n=0;n<4;n++)this._zlibs[n]=new T.default}return o(a,[{key:"decodeRect",value:function(e,s,t,i,l,u,h){if(this._ctl===null){if(l.rQwait("TIGHT compression-control",1))return!1;this._ctl=l.rQshift8();for(var p=0;p<4;p++)this._ctl>>p&1&&(this._zlibs[p].reset(),x.Info("Reset zlib stream "+p));this._ctl=this._ctl>>4}var g;if(this._ctl===8)g=this._fillRect(e,s,t,i,l,u,h);else if(this._ctl===9)g=this._jpegRect(e,s,t,i,l,u,h);else if(this._ctl===10)g=this._pngRect(e,s,t,i,l,u,h);else if((this._ctl&128)==0)g=this._basicRect(this._ctl,e,s,t,i,l,u,h);else throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");return g&&(this._ctl=null),g}},{key:"_fillRect",value:function(e,s,t,i,l,u,h){if(l.rQwait("TIGHT",3))return!1;var p=l.rQi,g=l.rQ;return u.fillRect(e,s,t,i,[g[p+2],g[p+1],g[p]],!1),l.rQskipBytes(3),!0}},{key:"_jpegRect",value:function(e,s,t,i,l,u,h){var p=this._readData(l);return p===null?!1:(u.imageRect(e,s,t,i,"image/jpeg",p),!0)}},{key:"_pngRect",value:function(e,s,t,i,l,u,h){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(e,s,t,i,l,u,h,p){if(this._filter===null)if(e&4){if(u.rQwait("TIGHT",1))return!1;this._filter=u.rQshift8()}else this._filter=0;var g=e&3,A;switch(this._filter){case 0:A=this._copyFilter(g,s,t,i,l,u,h,p);break;case 1:A=this._paletteFilter(g,s,t,i,l,u,h,p);break;case 2:A=this._gradientFilter(g,s,t,i,l,u,h,p);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return A&&(this._filter=null),A}},{key:"_copyFilter",value:function(e,s,t,i,l,u,h,p){var g=i*l*3,A;if(g<12){if(u.rQwait("TIGHT",g))return!1;A=u.rQshiftBytes(g)}else{if(A=this._readData(u),A===null)return!1;this._zlibs[e].setInput(A),A=this._zlibs[e].inflate(g),this._zlibs[e].setInput(null)}return h.blitRgbImage(s,t,i,l,A,0,!1),!0}},{key:"_paletteFilter",value:function(e,s,t,i,l,u,h,p){if(this._numColors===0){if(u.rQwait("TIGHT palette",1))return!1;var g=u.rQpeek8()+1,A=g*3;if(u.rQwait("TIGHT palette",1+A))return!1;this._numColors=g,u.rQskipBytes(1),u.rQshiftTo(this._palette,A)}var y=this._numColors<=2?1:8,E=Math.floor((i*y+7)/8),C=E*l,w;if(C<12){if(u.rQwait("TIGHT",C))return!1;w=u.rQshiftBytes(C)}else{if(w=this._readData(u),w===null)return!1;this._zlibs[e].setInput(w),w=this._zlibs[e].inflate(C),this._zlibs[e].setInput(null)}return this._numColors==2?this._monoRect(s,t,i,l,w,this._palette,h):this._paletteRect(s,t,i,l,w,this._palette,h),this._numColors=0,!0}},{key:"_monoRect",value:function(e,s,t,i,l,u,h){for(var p=this._getScratchBuffer(t*i*4),g=Math.floor((t+7)/8),A=Math.floor(t/8),y=0;y<i;y++){var E=void 0,C=void 0,w=void 0;for(w=0;w<A;w++)for(var b=7;b>=0;b--)E=(y*t+w*8+7-b)*4,C=(l[y*g+w]>>b&1)*3,p[E]=u[C],p[E+1]=u[C+1],p[E+2]=u[C+2],p[E+3]=255;for(var I=7;I>=8-t%8;I--)E=(y*t+w*8+7-I)*4,C=(l[y*g+w]>>I&1)*3,p[E]=u[C],p[E+1]=u[C+1],p[E+2]=u[C+2],p[E+3]=255}h.blitRgbxImage(e,s,t,i,p,0,!1)}},{key:"_paletteRect",value:function(e,s,t,i,l,u,h){for(var p=this._getScratchBuffer(t*i*4),g=t*i*4,A=0,y=0;A<g;A+=4,y++){var E=l[y]*3;p[A]=u[E],p[A+1]=u[E+1],p[A+2]=u[E+2],p[A+3]=255}h.blitRgbxImage(e,s,t,i,p,0,!1)}},{key:"_gradientFilter",value:function(e,s,t,i,l,u,h,p){throw new Error("Gradient filter not implemented")}},{key:"_readData",value:function(e){if(this._len===0){if(e.rQwait("TIGHT",3))return null;var s;s=e.rQshift8(),this._len=s&127,s&128&&(s=e.rQshift8(),this._len|=(s&127)<<7,s&128&&(s=e.rQshift8(),this._len|=s<<14))}if(e.rQwait("TIGHT",this._len))return null;var t=e.rQshiftBytes(this._len);return this._len=0,t}},{key:"_getScratchBuffer",value:function(e){return(!this._scratchBuffer||this._scratchBuffer.length<e)&&(this._scratchBuffer=new Uint8Array(e)),this._scratchBuffer}}]),a}();P.default=r},"8SMY":function(U,P,d){var O=d("n4Lv"),x=O.prepareDataCoordInfo,T=O.getStackedOnPoint;function v(m,f){var c=[];return f.diff(m).add(function(o){c.push({cmd:"+",idx:o})}).update(function(o,r){c.push({cmd:"=",idx:r,idx1:o})}).remove(function(o){c.push({cmd:"-",idx:o})}).execute(),c}function S(m,f,c,o,r,a,n,e){for(var s=v(m,f),t=[],i=[],l=[],u=[],h=[],p=[],g=[],A=x(r,f,n),y=x(a,m,e),E=0;E<s.length;E++){var C=s[E],w=!0;switch(C.cmd){case"=":var b=m.getItemLayout(C.idx),I=f.getItemLayout(C.idx1);(isNaN(b[0])||isNaN(b[1]))&&(b=I.slice()),t.push(b),i.push(I),l.push(c[C.idx]),u.push(o[C.idx1]),g.push(f.getRawIndex(C.idx1));break;case"+":var _=C.idx;t.push(r.dataToPoint([f.get(A.dataDimsForPoint[0],_),f.get(A.dataDimsForPoint[1],_)])),i.push(f.getItemLayout(_).slice()),l.push(T(A,r,f,_)),u.push(o[_]),g.push(f.getRawIndex(_));break;case"-":var _=C.idx,L=m.getRawIndex(_);L!==_?(t.push(m.getItemLayout(_)),i.push(a.dataToPoint([m.get(y.dataDimsForPoint[0],_),m.get(y.dataDimsForPoint[1],_)])),l.push(c[_]),u.push(T(y,a,m,_)),g.push(L)):w=!1}w&&(h.push(C),p.push(p.length))}p.sort(function(H,F){return g[H]-g[F]});for(var D=[],N=[],R=[],B=[],M=[],E=0;E<p.length;E++){var _=p[E];D[E]=t[_],N[E]=i[_],R[E]=l[_],B[E]=u[_],M[E]=h[_]}return{current:D,next:N,stackedOnCurrent:R,stackedOnNext:B,status:M}}U.exports=S},"8Skl":function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="DownOutlined";var f=P.a=x.forwardRef(m)},"8Th4":function(U,P,d){var O=d("3LNs"),x=d("/y7N"),T=d("7bkD"),v=d("Znkb"),S=["x","y"],m=["width","height"],f=O.extend({makeElOption:function(n,e,s,t,i){var l=s.axis,u=l.coordinateSystem,h=r(u,1-o(l)),p=u.dataToPoint(e)[0],g=t.get("type");if(g&&g!=="none"){var A=x.buildElStyle(t),y=c[g](l,p,h);y.style=A,n.graphicKey=y.type,n.pointer=y}var E=T.layout(s);x.buildCartesianSingleLabelElOption(e,n,E,s,t,i)},getHandleTransform:function(n,e,s){var t=T.layout(e,{labelInside:!1});return t.labelMargin=s.get("handle.margin"),{position:x.getTransformedPosition(e.axis,n,t),rotation:t.rotation+(t.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(n,e,s,t){var i=s.axis,l=i.coordinateSystem,u=o(i),h=r(l,u),p=n.position;p[u]+=e[u],p[u]=Math.min(h[1],p[u]),p[u]=Math.max(h[0],p[u]);var g=r(l,1-u),A=(g[1]+g[0])/2,y=[A,A];return y[u]=p[u],{position:p,rotation:n.rotation,cursorPoint:y,tooltipOption:{verticalAlign:"middle"}}}}),c={line:function(n,e,s){var t=x.makeLineShape([e,s[0]],[e,s[1]],o(n));return{type:"Line",subPixelOptimize:!0,shape:t}},shadow:function(n,e,s){var t=n.getBandWidth(),i=s[1]-s[0];return{type:"Rect",shape:x.makeRectShape([e-t/2,s[0]],[t,i],o(n))}}};function o(n){return n.isHorizontal()?0:1}function r(n,e){var s=n.getRect();return[s[S[e]],s[S[e]]+s[m[e]]]}v.registerAxisPointerClass("SingleAxisPointer",f);var a=f;U.exports=a},"8Uz6":function(U,P,d){var O=d("hNWo"),x=d("+TT/"),T=x.mergeLayoutParam,v=x.getLayoutParams,S=O.extend({type:"legend.scroll",setScrollDataIndex:function(c){this.option.scrollDataIndex=c},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(c,o,r,a){var n=v(c);S.superCall(this,"init",c,o,r,a),m(this,c,n)},mergeOption:function(c,o){S.superCall(this,"mergeOption",c,o),m(this,this.option,c)}});function m(c,o,r){var a=c.getOrient(),n=[1,1];n[a.index]=0,T(o,r,{type:"box",ignoreSize:n})}var f=S;U.exports=f},"8X+K":function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("bYtY"),v=d("4mN7"),S=v.fromPoints,m=d("9wZj"),f=d("FBjb"),c=d("8SMY"),o=d("IwbS"),r=d("4NO4"),a=d("1NG9"),n=a.Polyline,e=a.Polygon,s=d("6Ic6"),t=d("n4Lv"),i=t.prepareDataCoordInfo,l=t.getStackedOnPoint,u=d("sK/D"),h=u.createGridClipPath,p=u.createPolarClipPath;function g(D,N){if(D.length!==N.length)return;for(var R=0;R<D.length;R++){var B=D[R],M=N[R];if(B[0]!==M[0]||B[1]!==M[1])return}return!0}function A(D,N){var R=[],B=[],M=[],H=[];return S(D,R,B),S(N,M,H),Math.max(Math.abs(R[0]-M[0]),Math.abs(R[1]-M[1]),Math.abs(B[0]-H[0]),Math.abs(B[1]-H[1]))}function y(D){return typeof D=="number"?D:D?.5:0}function E(D,N,R){if(!R.valueDim)return[];for(var B=[],M=0,H=N.count();M<H;M++)B.push(l(R,D,N,M));return B}function C(D,N,R){for(var B=N.getBaseAxis(),M=B.dim==="x"||B.dim==="radius"?0:1,H=[],F=0;F<D.length-1;F++){var K=D[F+1],j=D[F];H.push(j);var V=[];switch(R){case"end":V[M]=K[M],V[1-M]=j[1-M],H.push(V);break;case"middle":var z=(j[M]+K[M])/2,Y=[];V[M]=Y[M]=z,V[1-M]=j[1-M],Y[1-M]=K[1-M],H.push(V),H.push(Y);break;default:V[M]=j[M],V[1-M]=K[1-M],H.push(V)}}return D[F]&&H.push(D[F]),H}function w(D,N){var R=D.getVisual("visualMeta");if(!R||!R.length||!D.count())return;if(N.type!=="cartesian2d")return;for(var B,M,H=R.length-1;H>=0;H--){var F=R[H].dimension,K=D.dimensions[F],j=D.getDimensionInfo(K);if(B=j&&j.coordDim,B==="x"||B==="y"){M=R[H];break}}if(!M)return;var V=N.getAxis(B),z=T.map(M.stops,function(He){return{coord:V.toGlobalCoord(V.dataToCoord(He.value)),color:He.color}}),Y=z.length,ee=M.outerColors.slice();Y&&z[0].coord>z[Y-1].coord&&(z.reverse(),ee.reverse());var fe=10,ie=z[0].coord-fe,we=z[Y-1].coord+fe,Ce=we-ie;if(Ce<.001)return"transparent";T.each(z,function(He){He.offset=(He.coord-ie)/Ce}),z.push({offset:Y?z[Y-1].offset:.5,color:ee[1]||"transparent"}),z.unshift({offset:Y?z[0].offset:.5,color:ee[0]||"transparent"});var Le=new o.LinearGradient(0,0,0,0,z,!0);return Le[B]=ie,Le[B+"2"]=we,Le}function b(D,N,R){var B=D.get("showAllSymbol"),M=B==="auto";if(B&&!M)return;var H=R.getAxesByScale("ordinal")[0];if(!H)return;if(M&&I(H,N))return;var F=N.mapDimension(H.dim),K={};return T.each(H.getViewLabels(),function(j){K[j.tickValue]=1}),function(j){return!K.hasOwnProperty(N.get(F,j))}}function I(D,N){var R=D.getExtent(),B=Math.abs(R[1]-R[0])/D.scale.count();isNaN(B)&&(B=0);for(var M=N.count(),H=Math.max(1,Math.round(M/5)),F=0;F<M;F+=H)if(f.getSymbolSize(N,F)[D.isHorizontal()?1:0]*1.5>B)return!1;return!0}function _(D,N,R){if(D.type==="cartesian2d"){var B=D.getBaseAxis().isHorizontal(),M=h(D,N,R);if(!R.get("clip",!0)){var H=M.shape,F=Math.max(H.width,H.height);B?(H.y-=F,H.height+=F*2):(H.x-=F,H.width+=F*2)}return M}else return p(D,N,R)}var L=s.extend({type:"line",init:function(){var D=new o.Group,N=new m;this.group.add(N.group),this._symbolDraw=N,this._lineGroup=D},render:function(D,N,R){var B=D.coordinateSystem,M=this.group,H=D.getData(),F=D.getModel("lineStyle"),K=D.getModel("areaStyle"),j=H.mapArray(H.getItemLayout),V=B.type==="polar",z=this._coordSys,Y=this._symbolDraw,ee=this._polyline,fe=this._polygon,ie=this._lineGroup,we=D.get("animation"),Ce=!K.isEmpty(),Le=K.get("origin"),He=i(B,H,Le),ce=E(B,H,He),Pe=D.get("showSymbol"),Q=Pe&&!V&&b(D,H,B),me=this._data;me&&me.eachItemGraphicEl(function(he,Me){he.__temp&&(M.remove(he),me.setItemGraphicEl(Me,null))}),Pe||Y.remove(),M.add(ie);var Je=!V&&D.get("step"),re;B&&B.getArea&&D.get("clip",!0)&&(re=B.getArea(),re.width!=null?(re.x-=.1,re.y-=.1,re.width+=.2,re.height+=.2):re.r0&&(re.r0-=.5,re.r1+=.5)),this._clipShapeForSymbol=re,ee&&z.type===B.type&&Je===this._step?(Ce&&!fe?fe=this._newPolygon(j,ce,B,we):fe&&!Ce&&(ie.remove(fe),fe=this._polygon=null),ie.setClipPath(_(B,!1,D)),Pe&&Y.updateData(H,{isIgnore:Q,clipShape:re}),H.eachItemGraphicEl(function(he){he.stopAnimation(!0)}),(!g(this._stackedOnPoints,ce)||!g(this._points,j))&&(we?this._updateAnimation(H,ce,B,R,Je,Le):(Je&&(j=C(j,B,Je),ce=C(ce,B,Je)),ee.setShape({points:j}),fe&&fe.setShape({points:j,stackedOnPoints:ce})))):(Pe&&Y.updateData(H,{isIgnore:Q,clipShape:re}),Je&&(j=C(j,B,Je),ce=C(ce,B,Je)),ee=this._newPolyline(j,B,we),Ce&&(fe=this._newPolygon(j,ce,B,we)),ie.setClipPath(_(B,!0,D)));var G=w(H,B)||H.getVisual("color");ee.useStyle(T.defaults(F.getLineStyle(),{fill:"none",stroke:G,lineJoin:"bevel"}));var X=D.get("smooth");if(X=y(D.get("smooth")),ee.setShape({smooth:X,smoothMonotone:D.get("smoothMonotone"),connectNulls:D.get("connectNulls")}),fe){var J=H.getCalculationInfo("stackedOnSeries"),Ae=0;fe.useStyle(T.defaults(K.getAreaStyle(),{fill:G,opacity:.7,lineJoin:"bevel"})),J&&(Ae=y(J.get("smooth"))),fe.setShape({smooth:X,stackedOnSmooth:Ae,smoothMonotone:D.get("smoothMonotone"),connectNulls:D.get("connectNulls")})}this._data=H,this._coordSys=B,this._stackedOnPoints=ce,this._points=j,this._step=Je,this._valueOrigin=Le},dispose:function(){},highlight:function(D,N,R,B){var M=D.getData(),H=r.queryDataIndex(M,B);if(!(H instanceof Array)&&H!=null&&H>=0){var F=M.getItemGraphicEl(H);if(!F){var K=M.getItemLayout(H);if(!K)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(K[0],K[1]))return;F=new f(M,H),F.position=K,F.setZ(D.get("zlevel"),D.get("z")),F.ignore=isNaN(K[0])||isNaN(K[1]),F.__temp=!0,M.setItemGraphicEl(H,F),F.stopSymbolAnimation(!0),this.group.add(F)}F.highlight()}else s.prototype.highlight.call(this,D,N,R,B)},downplay:function(D,N,R,B){var M=D.getData(),H=r.queryDataIndex(M,B);if(H!=null&&H>=0){var F=M.getItemGraphicEl(H);F&&(F.__temp?(M.setItemGraphicEl(H,null),this.group.remove(F)):F.downplay())}else s.prototype.downplay.call(this,D,N,R,B)},_newPolyline:function(D){var N=this._polyline;return N&&this._lineGroup.remove(N),N=new n({shape:{points:D},silent:!0,z2:10}),this._lineGroup.add(N),this._polyline=N,N},_newPolygon:function(D,N){var R=this._polygon;return R&&this._lineGroup.remove(R),R=new e({shape:{points:D,stackedOnPoints:N},silent:!0}),this._lineGroup.add(R),this._polygon=R,R},_updateAnimation:function(D,N,R,B,M,H){var F=this._polyline,K=this._polygon,j=D.hostModel,V=c(this._data,D,this._stackedOnPoints,N,this._coordSys,R,this._valueOrigin,H),z=V.current,Y=V.stackedOnCurrent,ee=V.next,fe=V.stackedOnNext;if(M&&(z=C(V.current,R,M),Y=C(V.stackedOnCurrent,R,M),ee=C(V.next,R,M),fe=C(V.stackedOnNext,R,M)),A(z,ee)>3e3||K&&A(Y,fe)>3e3){F.setShape({points:ee}),K&&K.setShape({points:ee,stackedOnPoints:fe});return}F.shape.__points=V.current,F.shape.points=z,o.updateProps(F,{shape:{points:ee}},j),K&&(K.setShape({points:z,stackedOnPoints:Y}),o.updateProps(K,{shape:{points:ee,stackedOnPoints:fe}},j));for(var ie=[],we=V.status,Ce=0;Ce<we.length;Ce++){var Le=we[Ce].cmd;if(Le==="="){var He=D.getItemGraphicEl(we[Ce].idx1);He&&ie.push({el:He,ptIdx:Ce})}}F.animators&&F.animators.length&&F.animators[0].during(function(){for(var ce=0;ce<ie.length;ce++){var Pe=ie[ce].el;Pe.attr("position",F.shape.__points[ie[ce].ptIdx])}})},remove:function(D){var N=this.group,R=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),R&&R.eachItemGraphicEl(function(B,M){B.__temp&&(N.remove(B),R.setItemGraphicEl(M,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});U.exports=L},"8XDt":function(U,P,d){d("qH13");var O=d("aX58"),x=O.registerPainter,T=d("6fms");x("vml",T)},"8XRh":function(U,P,d){"use strict";d.d(P,"a",function(){return pe});var O=d("rePB"),x=d("VTBJ"),T=d("ODXe"),v=d("U8pU"),S=d("q1tI"),m=d("m+aA"),f=d("c+Xe"),c=d("TSYQ"),o=d.n(c),r=d("MNnm");function a(Ye,it){var et={};return et[Ye.toLowerCase()]=it.toLowerCase(),et["Webkit".concat(Ye)]="webkit".concat(it),et["Moz".concat(Ye)]="moz".concat(it),et["ms".concat(Ye)]="MS".concat(it),et["O".concat(Ye)]="o".concat(it.toLowerCase()),et}function n(Ye,it){var et={animationend:a("Animation","AnimationEnd"),transitionend:a("Transition","TransitionEnd")};return Ye&&("AnimationEvent"in it||delete et.animationend.animation,"TransitionEvent"in it||delete et.transitionend.transition),et}var e=n(Object(r.a)(),typeof window!="undefined"?window:{}),s={};if(Object(r.a)()){var t=document.createElement("div");s=t.style}var i={};function l(Ye){if(i[Ye])return i[Ye];var it=e[Ye];if(it)for(var et=Object.keys(it),Te=et.length,tt=0;tt<Te;tt+=1){var ze=et[tt];if(Object.prototype.hasOwnProperty.call(it,ze)&&ze in s)return i[Ye]=it[ze],i[Ye]}return""}var u=l("animationend"),h=l("transitionend"),p=!!(u&&h),g=u||"animationend",A=h||"transitionend";function y(Ye,it){if(!Ye)return null;if(Object(v.a)(Ye)==="object"){var et=it.replace(/-\w/g,function(Te){return Te[1].toUpperCase()});return Ye[et]}return"".concat(Ye,"-").concat(it)}var E="none",C="appear",w="enter",b="leave",I="none",_="prepare",L="start",D="active",N="end";function R(Ye){var it=Object(S.useRef)(!1),et=Object(S.useState)(Ye),Te=Object(T.a)(et,2),tt=Te[0],ze=Te[1];function dt(Ot){it.current||ze(Ot)}return Object(S.useEffect)(function(){return function(){it.current=!0}},[]),[tt,dt]}var B=Object(r.a)()?S.useLayoutEffect:S.useEffect,M=B,H=d("wgJM"),F=function(){var Ye=S.useRef(null);function it(){H.a.cancel(Ye.current)}function et(Te){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;it();var ze=Object(H.a)(function(){tt<=1?Te({isCanceled:function(){return ze!==Ye.current}}):et(Te,tt-1)});Ye.current=ze}return S.useEffect(function(){return function(){it()}},[]),[et,it]},K=[_,L,D,N],j=!1,V=!0;function z(Ye){return Ye===D||Ye===N}var Y=function(Ye,it){var et=S.useState(I),Te=Object(T.a)(et,2),tt=Te[0],ze=Te[1],dt=F(),Ot=Object(T.a)(dt,2),Tt=Ot[0],Ct=Ot[1];function Nt(){ze(_)}return M(function(){if(tt!==I&&tt!==N){var Be=K.indexOf(tt),$=K[Be+1],Z=it(tt);Z===j?ze($):Tt(function(Re){function De(){if(Re.isCanceled())return;ze($)}Z===!0?De():Promise.resolve(Z).then(De)})}},[Ye,tt]),S.useEffect(function(){return function(){Ct()}},[]),[Nt,tt]},ee=function(Ye){var it=Object(S.useRef)(),et=Object(S.useRef)(Ye);et.current=Ye;var Te=S.useCallback(function(dt){et.current(dt)},[]);function tt(dt){dt&&(dt.removeEventListener(A,Te),dt.removeEventListener(g,Te))}function ze(dt){it.current&&it.current!==dt&&tt(it.current),dt&&dt!==it.current&&(dt.addEventListener(A,Te),dt.addEventListener(g,Te),it.current=dt)}return S.useEffect(function(){return function(){tt(it.current)}},[]),[ze,tt]};function fe(Ye,it,et,Te){var tt=Te.motionEnter,ze=tt===void 0?!0:tt,dt=Te.motionAppear,Ot=dt===void 0?!0:dt,Tt=Te.motionLeave,Ct=Tt===void 0?!0:Tt,Nt=Te.motionDeadline,Be=Te.motionLeaveImmediately,$=Te.onAppearPrepare,Z=Te.onEnterPrepare,Re=Te.onLeavePrepare,De=Te.onAppearStart,ae=Te.onEnterStart,gt=Te.onLeaveStart,jt=Te.onAppearActive,ut=Te.onEnterActive,rr=Te.onLeaveActive,pr=Te.onAppearEnd,nn=Te.onEnterEnd,mr=Te.onLeaveEnd,vr=Te.onVisibleChanged,$t=R(),Xt=Object(T.a)($t,2),ft=Xt[0],Ur=Xt[1],yn=R(E),Dn=Object(T.a)(yn,2),Un=Dn[0],wi=Dn[1],Rn=R(null),kn=Object(T.a)(Rn,2),Vn=kn[0],Gt=kn[1],st=Object(S.useRef)(!1),ue=Object(S.useRef)(null),Ee=Object(S.useRef)(!1),je=Object(S.useRef)(null);function Ve(){var ot=et();return ot||je.current}var $e=Object(S.useRef)(!1);function wt(ot){var Mt=Ve();if(ot&&!ot.deadline&&ot.target!==Mt)return;var xr;Un===C&&$e.current?xr=pr==null?void 0:pr(Mt,ot):Un===w&&$e.current?xr=nn==null?void 0:nn(Mt,ot):Un===b&&$e.current&&(xr=mr==null?void 0:mr(Mt,ot)),xr!==!1&&!Ee.current&&(wi(E),Gt(null))}var qt=ee(wt),Mr=Object(T.a)(qt,1),an=Mr[0],_t=S.useMemo(function(){var ot,Mt,xr;switch(Un){case"appear":return ot={},Object(O.a)(ot,_,$),Object(O.a)(ot,L,De),Object(O.a)(ot,D,jt),ot;case"enter":return Mt={},Object(O.a)(Mt,_,Z),Object(O.a)(Mt,L,ae),Object(O.a)(Mt,D,ut),Mt;case"leave":return xr={},Object(O.a)(xr,_,Re),Object(O.a)(xr,L,gt),Object(O.a)(xr,D,rr),xr;default:return{}}},[Un]),at=Y(Un,function(ot){if(ot===_){var Mt=_t[_];return Mt?Mt(Ve()):j}if(Pt in _t){var xr;Gt(((xr=_t[Pt])===null||xr===void 0?void 0:xr.call(_t,Ve(),null))||null)}return Pt===D&&(an(Ve()),Nt>0&&(clearTimeout(ue.current),ue.current=setTimeout(function(){wt({deadline:!0})},Nt))),V}),bt=Object(T.a)(at,2),kt=bt[0],Pt=bt[1],Et=z(Pt);$e.current=Et,M(function(){Ur(it);var ot=st.current;if(st.current=!0,!Ye)return;var Mt;!ot&&it&&Ot&&(Mt=C),ot&&it&&ze&&(Mt=w),(ot&&!it&&Ct||!ot&&Be&&!it&&Ct)&&(Mt=b),Mt&&(wi(Mt),kt())},[it]),Object(S.useEffect)(function(){(Un===C&&!Ot||Un===w&&!ze||Un===b&&!Ct)&&wi(E)},[Ot,ze,Ct]),Object(S.useEffect)(function(){return function(){clearTimeout(ue.current),Ee.current=!0}},[]),Object(S.useEffect)(function(){ft!==void 0&&Un===E&&(vr==null||vr(ft))},[ft,Un]);var Ht=Vn;return _t[_]&&Pt===L&&(Ht=Object(x.a)({transition:"none"},Ht)),[Un,Pt,Ht,ft!=null?ft:it]}var ie=d("1OyB"),we=d("vuIU"),Ce=d("Ji7U"),Le=d("LK+K"),He=function(Ye){Object(Ce.a)(et,Ye);var it=Object(Le.a)(et);function et(){return Object(ie.a)(this,et),it.apply(this,arguments)}return Object(we.a)(et,[{key:"render",value:function(){return this.props.children}}]),et}(S.Component),ce=He;function Pe(Ye){var it=Ye;Object(v.a)(Ye)==="object"&&(it=Ye.transitionSupport);function et(tt){return!!(tt.motionName&&it)}var Te=S.forwardRef(function(tt,ze){var dt=tt.visible,Ot=dt===void 0?!0:dt,Tt=tt.removeOnLeave,Ct=Tt===void 0?!0:Tt,Nt=tt.forceRender,Be=tt.children,$=tt.motionName,Z=tt.leavedClassName,Re=tt.eventProps,De=et(tt),ae=Object(S.useRef)(),gt=Object(S.useRef)();function jt(){try{return Object(m.a)(ae.current||gt.current)}catch(wi){return null}}var ut=fe(De,Ot,jt,tt),rr=Object(T.a)(ut,4),pr=rr[0],nn=rr[1],mr=rr[2],vr=rr[3],$t=S.useRef(vr);vr&&($t.current=!0);var Xt=Object(S.useRef)(ze);Xt.current=ze;var ft=S.useCallback(function(wi){ae.current=wi,Object(f.b)(Xt.current,wi)},[]),Ur,yn=Object(x.a)(Object(x.a)({},Re),{},{visible:Ot});if(!Be)Ur=null;else if(pr===E||!et(tt))vr?Ur=Be(Object(x.a)({},yn),ft):!Ct&&$t.current?Ur=Be(Object(x.a)(Object(x.a)({},yn),{},{className:Z}),ft):Nt?Ur=Be(Object(x.a)(Object(x.a)({},yn),{},{style:{display:"none"}}),ft):Ur=null;else{var Dn,Un;nn===_?Un="prepare":z(nn)?Un="active":nn===L&&(Un="start"),Ur=Be(Object(x.a)(Object(x.a)({},yn),{},{className:o()(y($,pr),(Dn={},Object(O.a)(Dn,y($,"".concat(pr,"-").concat(Un)),Un),Object(O.a)(Dn,$,typeof $=="string"),Dn)),style:mr}),ft)}return S.createElement(ce,{ref:gt},Ur)});return Te.displayName="CSSMotion",Te}var Q=Pe(p),me=d("wx14"),Je=d("Ff2n"),re="add",G="keep",X="remove",J="removed";function Ae(Ye){var it;return Ye&&Object(v.a)(Ye)==="object"&&"key"in Ye?it=Ye:it={key:Ye},Object(x.a)(Object(x.a)({},it),{},{key:String(it.key)})}function he(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Ye.map(Ae)}function Me(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],et=[],Te=0,tt=it.length,ze=he(Ye),dt=he(it);ze.forEach(function(Ct){for(var Nt=!1,Be=Te;Be<tt;Be+=1){var $=dt[Be];if($.key===Ct.key){Te<Be&&(et=et.concat(dt.slice(Te,Be).map(function(Z){return Object(x.a)(Object(x.a)({},Z),{},{status:re})})),Te=Be),et.push(Object(x.a)(Object(x.a)({},$),{},{status:G})),Te+=1,Nt=!0;break}}Nt||et.push(Object(x.a)(Object(x.a)({},Ct),{},{status:X}))}),Te<tt&&(et=et.concat(dt.slice(Te).map(function(Ct){return Object(x.a)(Object(x.a)({},Ct),{},{status:re})})));var Ot={};et.forEach(function(Ct){var Nt=Ct.key;Ot[Nt]=(Ot[Nt]||0)+1});var Tt=Object.keys(Ot).filter(function(Ct){return Ot[Ct]>1});return Tt.forEach(function(Ct){et=et.filter(function(Nt){var Be=Nt.key,$=Nt.status;return Be!==Ct||$!==X}),et.forEach(function(Nt){Nt.key===Ct&&(Nt.status=G)})}),et}var Ie=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function oe(Ye){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Q,et=function(Te){Object(Ce.a)(ze,Te);var tt=Object(Le.a)(ze);function ze(){var dt;return Object(ie.a)(this,ze),dt=tt.apply(this,arguments),dt.state={keyEntities:[]},dt.removeKey=function(Ot){dt.setState(function(Tt){var Ct=Tt.keyEntities;return{keyEntities:Ct.map(function(Nt){return Nt.key!==Ot?Nt:Object(x.a)(Object(x.a)({},Nt),{},{status:J})})}})},dt}return Object(we.a)(ze,[{key:"render",value:function(){var Ot=this,Tt=this.state.keyEntities,Ct=this.props,Nt=Ct.component,Be=Ct.children,$=Ct.onVisibleChanged,Z=Object(Je.a)(Ct,["component","children","onVisibleChanged"]),Re=Nt||S.Fragment,De={};return Ie.forEach(function(ae){De[ae]=Z[ae],delete Z[ae]}),delete Z.keys,S.createElement(Re,Z,Tt.map(function(ae){var gt=ae.status,jt=Object(Je.a)(ae,["status"]),ut=gt===re||gt===G;return S.createElement(it,Object(me.a)({},De,{key:jt.key,visible:ut,eventProps:jt,onVisibleChanged:function(pr){$==null||$(pr,{key:jt.key}),pr||Ot.removeKey(jt.key)}}),Be)}))}}],[{key:"getDerivedStateFromProps",value:function(Ot,Tt){var Ct=Ot.keys,Nt=Tt.keyEntities,Be=he(Ct),$=Me(Nt,Be);return{keyEntities:$.filter(function(Z){var Re=Nt.find(function(De){var ae=De.key;return Z.key===ae});return!(Re&&Re.status===J&&Z.status===X)})}}}]),ze}(S.Component);return et.defaultProps={component:"div"},et}var pe=oe(p),Oe=P.b=Q},"8hn6":function(U,P){var d="#eee",O=function(){return{axisLine:{lineStyle:{color:d}},axisTick:{lineStyle:{color:d}},axisLabel:{textStyle:{color:d}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:d}}}},x=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],T={color:x,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:d},crossStyle:{color:d},label:{color:"#000"}}},legend:{textStyle:{color:d}},textStyle:{color:d},title:{textStyle:{color:d}},toolbox:{iconStyle:{normal:{borderColor:d}}},dataZoom:{textStyle:{color:d}},visualMap:{textStyle:{color:d}},timeline:{lineStyle:{color:d},itemStyle:{normal:{color:x[1]}},label:{normal:{textStyle:{color:d}}},controlStyle:{normal:{color:d,borderColor:d}}},timeAxis:O(),logAxis:O(),valueAxis:O(),categoryAxis:O(),line:{symbol:"circle"},graph:{color:x},gauge:{title:{textStyle:{color:d}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};T.categoryAxis.splitLine.show=!1;var v=T;U.exports=v},"8nMs":function(U,P,d){var O=d("bYtY"),x=d("IwbS"),T=d("+rIm"),v=d("Znkb"),S=d("AVZG"),m=d("WN+l"),f=m.rectCoordAxisBuildSplitArea,c=m.rectCoordAxisHandleRemove,o=["axisLine","axisTickLabel","axisName"],r=["splitArea","splitLine","minorSplitLine"],a=v.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(n,e,s,t){this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new x.Group,this.group.add(this._axisGroup),!n.get("show"))return;var l=n.getCoordSysModel(),u=S.layout(l,n),h=new T(n,u);O.each(o,h.add,h),this._axisGroup.add(h.getGroup()),O.each(r,function(p){n.get(p+".show")&&this["_"+p](n,l)},this),x.groupTransition(i,this._axisGroup,n),a.superCall(this,"render",n,e,s,t)},remove:function(){c(this)},_splitLine:function(n,e){var s=n.axis;if(s.scale.isBlank())return;var t=n.getModel("splitLine"),i=t.getModel("lineStyle"),l=i.get("color");l=O.isArray(l)?l:[l];for(var u=e.coordinateSystem.getRect(),h=s.isHorizontal(),p=0,g=s.getTicksCoords({tickModel:t}),A=[],y=[],E=i.getLineStyle(),C=0;C<g.length;C++){var w=s.toGlobalCoord(g[C].coord);h?(A[0]=w,A[1]=u.y,y[0]=w,y[1]=u.y+u.height):(A[0]=u.x,A[1]=w,y[0]=u.x+u.width,y[1]=w);var b=p++%l.length,I=g[C].tickValue;this._axisGroup.add(new x.Line({anid:I!=null?"line_"+g[C].tickValue:null,subPixelOptimize:!0,shape:{x1:A[0],y1:A[1],x2:y[0],y2:y[1]},style:O.defaults({stroke:l[b]},E),silent:!0}))}},_minorSplitLine:function(n,e){var s=n.axis,t=n.getModel("minorSplitLine"),i=t.getModel("lineStyle"),l=e.coordinateSystem.getRect(),u=s.isHorizontal(),h=s.getMinorTicksCoords();if(!h.length)return;for(var p=[],g=[],A=i.getLineStyle(),y=0;y<h.length;y++)for(var E=0;E<h[y].length;E++){var C=s.toGlobalCoord(h[y][E].coord);u?(p[0]=C,p[1]=l.y,g[0]=C,g[1]=l.y+l.height):(p[0]=l.x,p[1]=C,g[0]=l.x+l.width,g[1]=C),this._axisGroup.add(new x.Line({anid:"minor_line_"+h[y][E].tickValue,subPixelOptimize:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:A,silent:!0}))}},_splitArea:function(n,e){f(this,this._axisGroup,n,e)}});a.extend({type:"xAxis"}),a.extend({type:"yAxis"})},"8nly":function(U,P,d){var O=d("mFDi"),x=d("4mN7"),T=d("QBsz"),v=d("BlVb");function S(f,c,o){if(this.name=f,this.geometries=c,o)o=[o[0],o[1]];else{var r=this.getBoundingRect();o=[r.x+r.width/2,r.y+r.height/2]}this.center=o}S.prototype={constructor:S,properties:null,getBoundingRect:function(){var f=this._rect;if(f)return f;for(var c=Number.MAX_VALUE,o=[c,c],r=[-c,-c],a=[],n=[],e=this.geometries,s=0;s<e.length;s++){if(e[s].type!=="polygon")continue;var t=e[s].exterior;x.fromPoints(t,a,n),T.min(o,o,a),T.max(r,r,n)}return s===0&&(o[0]=o[1]=r[0]=r[1]=0),this._rect=new O(o[0],o[1],r[0]-o[0],r[1]-o[1])},contain:function(f){var c=this.getBoundingRect(),o=this.geometries;if(!c.contain(f[0],f[1]))return!1;e:for(var r=0,a=o.length;r<a;r++){if(o[r].type!=="polygon")continue;var n=o[r].exterior,e=o[r].interiors;if(v.contain(n,f[0],f[1])){for(var s=0;s<(e?e.length:0);s++)if(v.contain(e[s]))continue e;return!0}}return!1},transformTo:function(f,c,o,r){var a=this.getBoundingRect(),n=a.width/a.height;o?r||(r=o/n):o=n*r;for(var e=new O(f,c,o,r),s=a.calculateTransform(e),t=this.geometries,i=0;i<t.length;i++){if(t[i].type!=="polygon")continue;for(var l=t[i].exterior,u=t[i].interiors,h=0;h<l.length;h++)T.applyTransform(l[h],l[h],s);for(var p=0;p<(u?u.length:0);p++)for(var h=0;h<u[p].length;h++)T.applyTransform(u[p][h],u[p][h],s)}a=this._rect,a.copy(e),this.center=[a.x+a.width/2,a.y+a.height/2]},cloneShallow:function(f){f==null&&(f=this.name);var c=new S(f,this.geometries,this.center);return c._rect=this._rect,c.transformTo=null,c}};var m=S;U.exports=m},"8txm":function(U,P,d){},"8waO":function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("iLNv"),v=d("ZWlE");d("hJvP"),d("IXyC"),d("xRUu");var S=5;O.extendComponentView({type:"parallel",render:function(c,o,r){this._model=c,this._api=r,this._handlers||(this._handlers={},x.each(m,function(a,n){r.getZr().on(n,this._handlers[n]=x.bind(a,this))},this)),T.createOrUpdate(this,"_throttledDispatchExpand",c.get("axisExpandRate"),"fixRate")},dispose:function(c,o){x.each(this._handlers,function(r,a){o.getZr().off(a,r)}),this._handlers=null},_throttledDispatchExpand:function(c){this._dispatchExpand(c)},_dispatchExpand:function(c){c&&this._api.dispatchAction(x.extend({type:"parallelAxisExpand"},c))}});var m={mousedown:function(c){f(this,"click")&&(this._mouseDownPoint=[c.offsetX,c.offsetY])},mouseup:function(c){var o=this._mouseDownPoint;if(f(this,"click")&&o){var r=[c.offsetX,c.offsetY],a=Math.pow(o[0]-r[0],2)+Math.pow(o[1]-r[1],2);if(a>S)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([c.offsetX,c.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(c){if(this._mouseDownPoint||!f(this,"mousemove"))return;var o=this._model,r=o.coordinateSystem.getSlidedAxisExpandWindow([c.offsetX,c.offsetY]),a=r.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(o.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:a==="jump"?null:!1})}};function f(c,o){var r=c._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===o}O.registerPreprocessor(v)},"8x+h":function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("ProS"),v=d("bYtY"),S=d("K4ya"),m=d("Qxkt"),f=["#ddd"],c=T.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(a,n){var e=this.option;!n&&S.replaceVisualOption(e,a,["inBrush","outOfBrush"]);var s=e.inBrush=e.inBrush||{};e.outOfBrush=e.outOfBrush||{color:f},s.hasOwnProperty("liftZ")||(s.liftZ=5)},setAreas:function(a){if(!a)return;this.areas=v.map(a,function(n){return o(this.option,n)},this)},setBrushOption:function(a){this.brushOption=o(this.option,a),this.brushType=this.brushOption.brushType}});function o(a,n){return v.merge({brushType:a.brushType,brushMode:a.brushMode,transformable:a.transformable,brushStyle:new m(a.brushStyle).getItemStyle(),removeOnClick:a.removeOnClick,z:a.z},n,!0)}var r=c;U.exports=r},"8z0m":function(U,P,d){"use strict";var O=d("lSNA"),x=d.n(O),T=d("RIqP"),v=d.n(T),S=d("pVnL"),m=d.n(S),f=d("J4zp"),c=d.n(f),o=d("q1tI"),r=d.n(o),a=d("TSYQ"),n=d.n(a);function e(mr,vr){var $t="cannot "+mr.method+" "+mr.action+" "+vr.status+"'",Xt=new Error($t);return Xt.status=vr.status,Xt.method=mr.method,Xt.url=mr.action,Xt}function s(mr){var vr=mr.responseText||mr.response;if(!vr)return vr;try{return JSON.parse(vr)}catch($t){return vr}}function t(mr){var vr=new XMLHttpRequest;mr.onProgress&&vr.upload&&(vr.upload.onprogress=function(Ur){Ur.total>0&&(Ur.percent=Ur.loaded/Ur.total*100),mr.onProgress(Ur)});var $t=new FormData;mr.data&&Object.keys(mr.data).forEach(function(ft){var Ur=mr.data[ft];if(Array.isArray(Ur)){Ur.forEach(function(yn){$t.append(ft+"[]",yn)});return}$t.append(ft,mr.data[ft])}),mr.file instanceof Blob?$t.append(mr.filename,mr.file,mr.file.name):$t.append(mr.filename,mr.file),vr.onerror=function(Ur){mr.onError(Ur)},vr.onload=function(){return vr.status<200||vr.status>=300?mr.onError(e(mr,vr),s(vr)):mr.onSuccess(s(vr),vr)},vr.open(mr.method,mr.action,!0),mr.withCredentials&&"withCredentials"in vr&&(vr.withCredentials=!0);var Xt=mr.headers||{};return Xt["X-Requested-With"]!==null&&vr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Xt).forEach(function(ft){Xt[ft]!==null&&vr.setRequestHeader(ft,Xt[ft])}),vr.send($t),{abort:function(){vr.abort()}}}var i=+new Date,l=0;function u(){return"rc-upload-"+i+"-"+ ++l}function h(mr,vr){return mr.indexOf(vr,mr.length-vr.length)!==-1}var p=function(mr,vr){if(mr&&vr){var $t=Array.isArray(vr)?vr:vr.split(","),Xt=mr.name||"",ft=mr.type||"",Ur=ft.replace(/\/.*$/,"");return $t.some(function(yn){var Dn=yn.trim();return Dn.charAt(0)==="."?h(Xt.toLowerCase(),Dn.toLowerCase()):/\/\*$/.test(Dn)?Ur===Dn.replace(/\/.*$/,""):ft===Dn})}return!0};function g(mr,vr){var $t=mr.createReader(),Xt=[];function ft(){$t.readEntries(function(Ur){var yn=Array.prototype.slice.apply(Ur);Xt=Xt.concat(yn);var Dn=!yn.length;Dn?vr(Xt):ft()})}ft()}var A=function(vr,$t,Xt){var ft=function Ur(yn,Dn){Dn=Dn||"",yn.isFile?yn.file(function(Un){Xt(Un)&&(yn.fullPath&&!Un.webkitRelativePath&&(Object.defineProperties(Un,{webkitRelativePath:{writable:!0}}),Un.webkitRelativePath=yn.fullPath.replace(/^\//,""),Object.defineProperties(Un,{webkitRelativePath:{writable:!1}})),$t([Un]))}):yn.isDirectory&&g(yn,function(Un){Un.forEach(function(wi){Ur(wi,""+Dn+yn.name+"/")})})};vr.forEach(function(Ur){ft(Ur.webkitGetAsEntry())})},y=A,E=Object.assign||function(mr){for(var vr=1;vr<arguments.length;vr++){var $t=arguments[vr];for(var Xt in $t)Object.prototype.hasOwnProperty.call($t,Xt)&&(mr[Xt]=$t[Xt])}return mr},C=function(){function mr(vr,$t){var Xt=[],ft=!0,Ur=!1,yn=void 0;try{for(var Dn=vr[Symbol.iterator](),Un;!(ft=(Un=Dn.next()).done)&&!(Xt.push(Un.value),$t&&Xt.length===$t);ft=!0);}catch(wi){Ur=!0,yn=wi}finally{try{!ft&&Dn.return&&Dn.return()}finally{if(Ur)throw yn}}return Xt}return function(vr,$t){if(Array.isArray(vr))return vr;if(Symbol.iterator in Object(vr))return mr(vr,$t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function mr(vr,$t){for(var Xt=0;Xt<$t.length;Xt++){var ft=$t[Xt];ft.enumerable=ft.enumerable||!1,ft.configurable=!0,"value"in ft&&(ft.writable=!0),Object.defineProperty(vr,ft.key,ft)}}return function(vr,$t,Xt){return $t&&mr(vr.prototype,$t),Xt&&mr(vr,Xt),vr}}();function b(mr,vr,$t){return vr in mr?Object.defineProperty(mr,vr,{value:$t,enumerable:!0,configurable:!0,writable:!0}):mr[vr]=$t,mr}function I(mr,vr){var $t={};for(var Xt in mr){if(vr.indexOf(Xt)>=0)continue;if(!Object.prototype.hasOwnProperty.call(mr,Xt))continue;$t[Xt]=mr[Xt]}return $t}function _(mr,vr){if(!(mr instanceof vr))throw new TypeError("Cannot call a class as a function")}function L(mr,vr){if(!mr)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return vr&&(typeof vr=="object"||typeof vr=="function")?vr:mr}function D(mr,vr){if(typeof vr!="function"&&vr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof vr);mr.prototype=Object.create(vr&&vr.prototype,{constructor:{value:mr,enumerable:!1,writable:!0,configurable:!0}}),vr&&(Object.setPrototypeOf?Object.setPrototypeOf(mr,vr):mr.__proto__=vr)}var N=function(vr){return Object.keys(vr).reduce(function($t,Xt){return(Xt.substr(0,5)==="data-"||Xt.substr(0,5)==="aria-"||Xt==="role")&&($t[Xt]=vr[Xt]),$t},{})},R=function(mr){D(vr,mr);function vr(){var $t,Xt,ft,Ur;_(this,vr);for(var yn=arguments.length,Dn=Array(yn),Un=0;Un<yn;Un++)Dn[Un]=arguments[Un];return Ur=(Xt=(ft=L(this,($t=vr.__proto__||Object.getPrototypeOf(vr)).call.apply($t,[this].concat(Dn))),ft),ft.state={uid:u()},ft.reqs={},ft.onChange=function(wi){var Rn=wi.target.files;ft.uploadFiles(Rn),ft.reset()},ft.onClick=function(wi){var Rn=ft.fileInput;if(!Rn)return;var kn=ft.props,Vn=kn.children,Gt=kn.onClick;Vn&&Vn.type==="button"&&(Rn.parentNode.focus(),Rn.parentNode.querySelector("button").blur()),Rn.click(),Gt&&Gt(wi)},ft.onKeyDown=function(wi){wi.key==="Enter"&&ft.onClick()},ft.onFileDrop=function(wi){var Rn=ft.props.multiple;if(wi.preventDefault(),wi.type==="dragover")return;if(ft.props.directory)y(Array.prototype.slice.call(wi.dataTransfer.items),ft.uploadFiles,function(Vn){return p(Vn,ft.props.accept)});else{var kn=Array.prototype.slice.call(wi.dataTransfer.files).filter(function(Vn){return p(Vn,ft.props.accept)});Rn===!1&&(kn=kn.slice(0,1)),ft.uploadFiles(kn)}},ft.uploadFiles=function(wi){var Rn=Array.prototype.slice.call(wi);Rn.map(function(kn){return kn.uid=u(),kn}).forEach(function(kn){ft.upload(kn,Rn)})},ft.saveFileInput=function(wi){ft.fileInput=wi},Xt),L(ft,Ur)}return w(vr,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(Xt,ft){var Ur=this,yn=this.props;if(!yn.beforeUpload)return setTimeout(function(){return Ur.post(Xt)},0);var Dn=yn.beforeUpload(Xt,ft);Dn&&Dn.then?Dn.then(function(Un){var wi=Object.prototype.toString.call(Un);return wi==="[object File]"||wi==="[object Blob]"?Ur.post(Un):Ur.post(Xt)}).catch(function(Un){console.log(Un)}):Dn!==!1&&setTimeout(function(){return Ur.post(Xt)},0);return}},{key:"post",value:function(Xt){var ft=this;if(!this._isMounted)return;var Ur=this.props,yn=Ur.onStart,Dn=Ur.onProgress,Un=Ur.transformFile,wi=Un===void 0?function(Rn){return Rn}:Un;new Promise(function(Rn){var kn=Ur.action;return typeof kn=="function"&&(kn=kn(Xt)),Rn(kn)}).then(function(Rn){var kn=Xt.uid,Vn=Ur.customRequest||t,Gt=Promise.resolve(wi(Xt)).then(function(st){var ue=Ur.data;return typeof ue=="function"&&(ue=ue(st)),Promise.all([st,ue])}).catch(function(st){console.error(st)});Gt.then(function(st){var ue=C(st,2),Ee=ue[0],je=ue[1],Ve={action:Rn,filename:Ur.name,data:je,file:Ee,headers:Ur.headers,withCredentials:Ur.withCredentials,method:Ur.method||"post",onProgress:Dn?function($e){Dn($e,Xt)}:null,onSuccess:function(wt,qt){delete ft.reqs[kn],Ur.onSuccess(wt,Xt,qt)},onError:function(wt,qt){delete ft.reqs[kn],Ur.onError(wt,qt,Xt)}};yn(Xt),ft.reqs[kn]=Vn(Ve)})})}},{key:"reset",value:function(){this.setState({uid:u()})}},{key:"abort",value:function(Xt){var ft=this.reqs;if(Xt){var Ur=Xt;Xt&&Xt.uid&&(Ur=Xt.uid),ft[Ur]&&ft[Ur].abort&&ft[Ur].abort(),delete ft[Ur]}else Object.keys(ft).forEach(function(yn){ft[yn]&&ft[yn].abort&&ft[yn].abort(),delete ft[yn]})}},{key:"render",value:function(){var Xt,ft=this.props,Ur=ft.component,yn=ft.prefixCls,Dn=ft.className,Un=ft.disabled,wi=ft.id,Rn=ft.style,kn=ft.multiple,Vn=ft.accept,Gt=ft.children,st=ft.directory,ue=ft.openFileDialogOnClick,Ee=ft.onMouseEnter,je=ft.onMouseLeave,Ve=I(ft,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),$e=n()((Xt={},b(Xt,yn,!0),b(Xt,yn+"-disabled",Un),b(Xt,Dn,Dn),Xt)),wt=Un?{}:{onClick:ue?this.onClick:function(){},onKeyDown:ue?this.onKeyDown:function(){},onMouseEnter:Ee,onMouseLeave:je,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return r.a.createElement(Ur,E({},wt,{className:$e,role:"button",style:Rn}),r.a.createElement("input",E({},N(Ve),{id:wi,type:"file",ref:this.saveFileInput,onClick:function(Mr){return Mr.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Vn,directory:st?"directory":null,webkitdirectory:st?"webkitdirectory":null,multiple:kn,onChange:this.onChange})),Gt)}}]),vr}(o.Component),B=R,M=Object.assign||function(mr){for(var vr=1;vr<arguments.length;vr++){var $t=arguments[vr];for(var Xt in $t)Object.prototype.hasOwnProperty.call($t,Xt)&&(mr[Xt]=$t[Xt])}return mr},H=function(){function mr(vr,$t){for(var Xt=0;Xt<$t.length;Xt++){var ft=$t[Xt];ft.enumerable=ft.enumerable||!1,ft.configurable=!0,"value"in ft&&(ft.writable=!0),Object.defineProperty(vr,ft.key,ft)}}return function(vr,$t,Xt){return $t&&mr(vr.prototype,$t),Xt&&mr(vr,Xt),vr}}();function F(mr,vr){if(!(mr instanceof vr))throw new TypeError("Cannot call a class as a function")}function K(mr,vr){if(!mr)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return vr&&(typeof vr=="object"||typeof vr=="function")?vr:mr}function j(mr,vr){if(typeof vr!="function"&&vr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof vr);mr.prototype=Object.create(vr&&vr.prototype,{constructor:{value:mr,enumerable:!1,writable:!0,configurable:!0}}),vr&&(Object.setPrototypeOf?Object.setPrototypeOf(mr,vr):mr.__proto__=vr)}function V(){}var z=function(mr){j(vr,mr);function vr(){var $t,Xt,ft,Ur;F(this,vr);for(var yn=arguments.length,Dn=Array(yn),Un=0;Un<yn;Un++)Dn[Un]=arguments[Un];return Ur=(Xt=(ft=K(this,($t=vr.__proto__||Object.getPrototypeOf(vr)).call.apply($t,[this].concat(Dn))),ft),ft.saveUploader=function(wi){ft.uploader=wi},Xt),K(ft,Ur)}return H(vr,[{key:"abort",value:function(Xt){this.uploader.abort(Xt)}},{key:"render",value:function(){return r.a.createElement(B,M({},this.props,{ref:this.saveUploader}))}}]),vr}(o.Component);z.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:V,onError:V,onSuccess:V,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Y=z,ee=Y,fe=function(mr,vr){var $t={};for(var Xt in mr)Object.prototype.hasOwnProperty.call(mr,Xt)&&vr.indexOf(Xt)<0&&($t[Xt]=mr[Xt]);if(mr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Xt=Object.getOwnPropertySymbols(mr);ft<Xt.length;ft++)vr.indexOf(Xt[ft])<0&&Object.prototype.propertyIsEnumerable.call(mr,Xt[ft])&&($t[Xt[ft]]=mr[Xt[ft]]);return $t},ie=function(vr,$t){var Xt=vr.style,ft=vr.height,Ur=fe(vr,["style","height"]);return o.createElement(pr,m()({ref:$t},Ur,{type:"drag",style:m()(m()({},Xt),{height:ft})}))},we=o.forwardRef(ie);we.displayName="Dragger";var Ce=we,Le=d("UmKh"),He=d("gZBC"),ce=d.n(He),Pe=d("+d4F"),Q=d.n(Pe),me=d("XAae"),Je=d.n(me),re=d("6xvX"),G=d.n(re),X=d("qPY4"),J=d.n(X),Ae=d("QB+1"),he=d.n(Ae),Me=d("Qs3X"),Ie=d.n(Me),oe=d("0n0R");function pe(){return!0}function Oe(mr){return m()(m()({},mr),{lastModified:mr.lastModified,lastModifiedDate:mr.lastModifiedDate,name:mr.name,size:mr.size,type:mr.type,uid:mr.uid,percent:0,originFileObj:mr})}function Ye(mr,vr){var $t=mr.uid!==void 0?"uid":"name";return vr.filter(function(Xt){return Xt[$t]===mr[$t]})[0]}function it(mr,vr){var $t=mr.uid!==void 0?"uid":"name",Xt=vr.filter(function(ft){return ft[$t]!==mr[$t]});return Xt.length===vr.length?null:Xt}var et=function(){var vr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",$t=vr.split("/"),Xt=$t[$t.length-1],ft=Xt.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(ft)||[""])[0]},Te=function(vr){return vr.indexOf("image/")===0},tt=function(vr){if(vr.type&&!vr.thumbUrl)return Te(vr.type);var $t=vr.thumbUrl||vr.url,Xt=et($t);return/^data:image\//.test($t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(Xt)?!0:/^data:/.test($t)?!1:!Xt},ze=200;function dt(mr){return new Promise(function(vr){if(!mr.type||!Te(mr.type)){vr("");return}var $t=document.createElement("canvas");$t.width=ze,$t.height=ze,$t.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(ze,"px; height: ").concat(ze,"px; z-index: 9999; display: none;"),document.body.appendChild($t);var Xt=$t.getContext("2d"),ft=new Image;ft.onload=function(){var Ur=ft.width,yn=ft.height,Dn=ze,Un=ze,wi=0,Rn=0;Ur<yn?(Un=yn*(ze/Ur),Rn=-(Un-Dn)/2):(Dn=Ur*(ze/yn),wi=-(Dn-Un)/2),Xt.drawImage(ft,wi,Rn,Dn,Un);var kn=$t.toDataURL();document.body.removeChild($t),vr(kn)},ft.src=window.URL.createObjectURL(mr)})}var Ot=d("3S7+"),Tt=d("CFYs"),Ct=d("H84U"),Nt=d("2/Rp"),Be=d("hkKa"),$=function(vr,$t){var Xt,ft=vr.listType,Ur=vr.previewFile,yn=vr.onPreview,Dn=vr.onDownload,Un=vr.onRemove,wi=vr.locale,Rn=vr.iconRender,kn=vr.isImageUrl,Vn=vr.prefixCls,Gt=vr.items,st=Gt===void 0?[]:Gt,ue=vr.showPreviewIcon,Ee=vr.showRemoveIcon,je=vr.showDownloadIcon,Ve=vr.removeIcon,$e=vr.downloadIcon,wt=vr.progress,qt=Object(Be.a)();o.useEffect(function(){if(ft!=="picture"&&ft!=="picture-card")return;(st||[]).forEach(function(ur){if(typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(ur.originFileObj instanceof File||ur.originFileObj instanceof Blob)||ur.thumbUrl!==void 0)return;ur.thumbUrl="",Ur&&Ur(ur.originFileObj).then(function(gr){ur.thumbUrl=gr||"",qt()})})},[ft,st,Ur]);var Mr=function(gr,Qr){return yn?(Qr.preventDefault(),yn(gr)):void 0},an=function(gr){typeof Dn=="function"?Dn(gr):gr.url&&window.open(gr.url)},_t=function(gr){Un&&Un(gr)},at=function(gr){if(Rn)return Rn(gr,ft);var Qr=gr.status==="uploading",ln=kn&&kn(gr)?o.createElement(Je.a,null):o.createElement(G.a,null),_n=Qr?o.createElement(ce.a,null):o.createElement(Q.a,null);return ft==="picture"?_n=Qr?o.createElement(ce.a,null):ln:ft==="picture-card"&&(_n=Qr?wi.uploading:ln),_n},bt=function(gr,Qr,ln,_n){var Mn={type:"text",size:"small",title:_n,onClick:function(pi){Qr(),Object(oe.b)(gr)&&gr.props.onClick&&gr.props.onClick(pi)},className:"".concat(ln,"-list-item-card-actions-btn")};if(Object(oe.b)(gr)){var li=Object(oe.a)(gr,m()(m()({},gr.props),{onClick:function(){}}));return o.createElement(Nt.a,m()({},Mn,{icon:li}))}return o.createElement(Nt.a,Mn,o.createElement("span",null,gr))};o.useImperativeHandle($t,function(){return{handlePreview:Mr,handleDownload:an}});var kt=o.useContext(Ct.b),Pt=kt.getPrefixCls,Et=kt.direction,Ht=Pt("upload",Vn),ot=st.map(function(ur){var gr,Qr,ln,_n=at(ur),Mn=o.createElement("div",{className:"".concat(Ht,"-text-icon")},_n);if(ft==="picture"||ft==="picture-card")if(ur.status==="uploading"||!ur.thumbUrl&&!ur.url){var li,ai=n()((li={},x()(li,"".concat(Ht,"-list-item-thumbnail"),!0),x()(li,"".concat(Ht,"-list-item-file"),ur.status!=="uploading"),li));Mn=o.createElement("div",{className:ai},_n)}else{var pi,Oi=kn&&kn(ur)?o.createElement("img",{src:ur.thumbUrl||ur.url,alt:ur.name,className:"".concat(Ht,"-list-item-image")}):_n,Ze=n()((pi={},x()(pi,"".concat(Ht,"-list-item-thumbnail"),!0),x()(pi,"".concat(Ht,"-list-item-file"),kn&&!kn(ur)),pi));Mn=o.createElement("a",{className:Ze,onClick:function(en){return Mr(ur,en)},href:ur.url||ur.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Oi)}if(ur.status==="uploading"){var be="percent"in ur?o.createElement(Tt.a,m()({},wt,{type:"line",percent:ur.percent})):null;ln=o.createElement("div",{className:"".concat(Ht,"-list-item-progress"),key:"progress"},be)}var Ne=n()((gr={},x()(gr,"".concat(Ht,"-list-item"),!0),x()(gr,"".concat(Ht,"-list-item-").concat(ur.status),!0),x()(gr,"".concat(Ht,"-list-item-list-type-").concat(ft),!0),gr)),Ue=typeof ur.linkProps=="string"?JSON.parse(ur.linkProps):ur.linkProps,Qe=Ee?bt(Ve||o.createElement(he.a,null),function(){return _t(ur)},Ht,wi.removeFile):null,Xe=je&&ur.status==="done"?bt($e||o.createElement(Ie.a,null),function(){return an(ur)},Ht,wi.downloadFile):null,qe=ft!=="picture-card"&&o.createElement("span",{key:"download-delete",className:"".concat(Ht,"-list-item-card-actions ").concat(ft==="picture"?"picture":"")},Xe,Qe),yt=n()((Qr={},x()(Qr,"".concat(Ht,"-list-item-name"),!0),x()(Qr,"".concat(Ht,"-list-item-name-icon-count-").concat([Xe,Qe].filter(function(vn){return vn}).length),!0),Qr)),ht=ur.url?[o.createElement("a",m()({key:"view",target:"_blank",rel:"noopener noreferrer",className:yt,title:ur.name},Ue,{href:ur.url,onClick:function(en){return Mr(ur,en)}}),ur.name),qe]:[o.createElement("span",{key:"view",className:yt,onClick:function(en){return Mr(ur,en)},title:ur.name},ur.name),qe],Jt={pointerEvents:"none",opacity:.5},kr=ue?o.createElement("a",{href:ur.url||ur.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:ur.url||ur.thumbUrl?void 0:Jt,onClick:function(en){return Mr(ur,en)},title:wi.previewFile},o.createElement(J.a,null)):null,_r=ft==="picture-card"&&ur.status!=="uploading"&&o.createElement("span",{className:"".concat(Ht,"-list-item-actions")},kr,ur.status==="done"&&Xe,Qe),Xr;ur.response&&typeof ur.response=="string"?Xr=ur.response:Xr=ur.error&&ur.error.statusText||wi.uploadError;var Bt=o.createElement("span",null,Mn,ht),gn=o.createElement("div",{className:Ne},o.createElement("div",{className:"".concat(Ht,"-list-item-info")},Bt),_r,o.createElement(Le.a,{transitionName:"fade",component:""},ln)),hr=n()(x()({},"".concat(Ht,"-list-picture-card-container"),ft==="picture-card"));return o.createElement("div",{key:ur.uid,className:hr},ur.status==="error"?o.createElement(Ot.a,{title:Xr,getPopupContainer:function(en){return en.parentNode}},gn):o.createElement("span",null,gn))}),Mt=n()((Xt={},x()(Xt,"".concat(Ht,"-list"),!0),x()(Xt,"".concat(Ht,"-list-").concat(ft),!0),x()(Xt,"".concat(Ht,"-list-rtl"),Et==="rtl"),Xt)),xr=ft==="picture-card"?"animate-inline":"animate";return o.createElement(Le.a,{transitionName:"".concat(Ht,"-").concat(xr),component:"div",className:Mt},ot)},Z=o.forwardRef($);Z.displayName="UploadList",Z.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:dt,isImageUrl:tt};var Re=Z,De=d("YMnH"),ae=d("ZvpZ"),gt=d("uaoM"),jt=d("sPtV"),ut=function(vr,$t){var Xt,ft=vr.fileList,Ur=vr.defaultFileList,yn=vr.onRemove,Dn=vr.showUploadList,Un=vr.listType,wi=vr.onPreview,Rn=vr.onDownload,kn=vr.previewFile,Vn=vr.disabled,Gt=vr.locale,st=vr.iconRender,ue=vr.isImageUrl,Ee=vr.progress,je=vr.prefixCls,Ve=vr.className,$e=vr.type,wt=vr.children,qt=vr.style,Mr=Object(jt.a)(ft||Ur||[]),an=c()(Mr,2),_t=an[0],at=an[1],bt=o.useState("drop"),kt=c()(bt,2),Pt=kt[0],Et=kt[1],Ht=o.useRef();o.useEffect(function(){at(ft||Ur||[]),Object(gt.a)("fileList"in vr||!("value"in vr),"Upload","`value` is not a valid prop, do you mean `fileList`?")},[]),o.useEffect(function(){"fileList"in vr&&at(ft||[])},[ft]);var ot=function(ht){"fileList"in vr||at(ht.fileList);var Jt=vr.onChange;Jt&&Jt(m()(m()({},ht),{fileList:v()(ht.fileList)}))},Mt=function(ht){var Jt=Oe(ht);Jt.status="uploading";var kr=_t().concat(),_r=kr.findIndex(function(Xr){var Bt=Xr.uid;return Bt===Jt.uid});_r===-1?kr.push(Jt):kr[_r]=Jt,ot({file:Jt,fileList:kr})},xr=function(ht,Jt,kr){try{typeof ht=="string"&&(ht=JSON.parse(ht))}catch(Xr){}var _r=Ye(Jt,_t());if(!_r)return;_r.status="done",_r.response=ht,_r.xhr=kr,ot({file:m()({},_r),fileList:_t().concat()})},ur=function(ht,Jt){var kr=Ye(Jt,_t());if(!kr)return;kr.percent=ht.percent,ot({event:ht,file:m()({},kr),fileList:_t().concat()})},gr=function(ht,Jt,kr){var _r=Ye(kr,_t());if(!_r)return;_r.error=ht,_r.response=Jt,_r.status="error",ot({file:m()({},_r),fileList:_t().concat()})},Qr=function(ht){Promise.resolve(typeof yn=="function"?yn(ht):yn).then(function(Jt){if(Jt===!1)return;var kr=it(ht,_t());kr&&(ht.status="removed",Ht.current&&Ht.current.abort(ht),ot({file:ht,fileList:kr}))})},ln=function(ht){Et(ht.type)},_n=function(ht,Jt){var kr=vr.beforeUpload;if(!kr)return!0;var _r=kr(ht,Jt);if(_r===!1){var Xr=[];return _t().concat(Jt.map(Oe)).forEach(function(Bt){Xr.every(function(gn){return gn.uid!==Bt.uid})&&Xr.push(Bt)}),ot({file:ht,fileList:Xr}),!1}return _r&&_r.then?_r:!0},Mn=Object(Be.a)();o.useImperativeHandle($t,function(){return{onStart:Mt,onSuccess:xr,onProgress:ur,onError:gr,fileList:_t(),upload:Ht.current,forceUpdate:Mn}});var li=function(ht){var Jt=Dn.showRemoveIcon,kr=Dn.showPreviewIcon,_r=Dn.showDownloadIcon,Xr=Dn.removeIcon,Bt=Dn.downloadIcon;return o.createElement(Re,{listType:Un,items:_t(),previewFile:kn,onPreview:wi,onDownload:Rn,onRemove:Qr,showRemoveIcon:!Vn&&Jt,showPreviewIcon:kr,showDownloadIcon:_r,removeIcon:Xr,downloadIcon:Bt,iconRender:st,locale:m()(m()({},ht),Gt),isImageUrl:ue,progress:Ee})},ai=o.useContext(Ct.b),pi=ai.getPrefixCls,Oi=ai.direction,Ze=pi("upload",je),be=m()(m()({onStart:Mt,onError:gr,onProgress:ur,onSuccess:xr},vr),{prefixCls:Ze,beforeUpload:_n});delete be.className,delete be.style,(!wt||Vn)&&delete be.id;var Ne=Dn?o.createElement(De.a,{componentName:"Upload",defaultLocale:ae.a.Upload},li):null;if($e==="drag"){var Ue,Qe=n()(Ze,(Ue={},x()(Ue,"".concat(Ze,"-drag"),!0),x()(Ue,"".concat(Ze,"-drag-uploading"),_t().some(function(yt){return yt.status==="uploading"})),x()(Ue,"".concat(Ze,"-drag-hover"),Pt==="dragover"),x()(Ue,"".concat(Ze,"-disabled"),Vn),x()(Ue,"".concat(Ze,"-rtl"),Oi==="rtl"),Ue),Ve);return o.createElement("span",null,o.createElement("div",{className:Qe,onDrop:ln,onDragOver:ln,onDragLeave:ln,style:qt},o.createElement(ee,m()({},be,{ref:Ht,className:"".concat(Ze,"-btn")}),o.createElement("div",{className:"".concat(Ze,"-drag-container")},wt))),Ne)}var Xe=n()(Ze,(Xt={},x()(Xt,"".concat(Ze,"-select"),!0),x()(Xt,"".concat(Ze,"-select-").concat(Un),!0),x()(Xt,"".concat(Ze,"-disabled"),Vn),x()(Xt,"".concat(Ze,"-rtl"),Oi==="rtl"),Xt)),qe=o.createElement("div",{className:Xe,style:wt?void 0:{display:"none"}},o.createElement(ee,m()({},be,{ref:Ht})));return Un==="picture-card"?o.createElement("span",{className:n()(Ve,"".concat(Ze,"-picture-card-wrapper"))},Ne,qe):o.createElement("span",{className:Ve},qe,Ne)},rr=o.forwardRef(ut);rr.Dragger=Ce,rr.displayName="Upload",rr.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",beforeUpload:pe,showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var pr=rr;pr.Dragger=Ce;var nn=P.a=pr},"98bh":function(U,P,d){var O=d("ProS"),x=d("5GtS"),T=d("bYtY"),v=d("4NO4"),S=d("OELB"),m=S.getPercentWithPrecision,f=d("cCMj"),c=d("KxfA"),o=c.retrieveRawAttr,r=d("D5nY"),a=r.makeSeriesEncodeForNameBased,n=d("xKMd"),e=O.extendSeriesModel({type:"series.pie",init:function(t){e.superApply(this,"init",arguments),this.legendVisualProvider=new n(T.bind(this.getData,this),T.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){e.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t,i){return x(this,{coordDimensions:["value"],encodeDefaulter:T.curry(a,this)})},_createSelectableList:function(){for(var t=this.getRawData(),i=t.mapDimension("value"),l=[],u=0,h=t.count();u<h;u++)l.push({name:t.getName(u),value:t.get(i,u),selected:o(t,u,"selected")});return l},getDataParams:function(t){var i=this.getData(),l=e.superCall(this,"getDataParams",t),u=[];return i.each(i.mapDimension("value"),function(h){u.push(h)}),l.percent=m(u,t,i.hostModel.get("percentPrecision")),l.$vars.push("percent"),l},_defaultLabelLine:function(t){v.defaultEmphasis(t,"labelLine",["show"]);var i=t.labelLine,l=t.emphasis.labelLine;i.show=i.show&&t.label.show,l.show=l.show&&t.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});T.mixin(e,f);var s=e;U.exports=s},"9H2F":function(U,P,d){var O=d("bYtY"),x=O.assert,T=O.isArray,v=d("Tghj"),S=v.__DEV__;function m(n){return new f(n)}function f(n){n=n||{},this._reset=n.reset,this._plan=n.plan,this._count=n.count,this._onDirty=n.onDirty,this._dirty=!0,this.context}var c=f.prototype;c.perform=function(n){var e=this._upstream,s=n&&n.skip;if(this._dirty&&e){var t=this.context;t.data=t.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!s&&(i=this._plan(this.context));var l=g(this._modBy),u=this._modDataCount||0,h=g(n&&n.modBy),p=n&&n.modDataCount||0;(l!==h||u!==p)&&(i="reset");function g(_){return!(_>=1)&&(_=1),_}var A;(this._dirty||i==="reset")&&(this._dirty=!1,A=a(this,s)),this._modBy=h,this._modDataCount=p;var y=n&&n.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):Infinity,this._progress){var E=this._dueIndex,C=Math.min(y!=null?this._dueIndex+y:Infinity,this._dueEnd);if(!s&&(A||E<C)){var w=this._progress;if(T(w))for(var b=0;b<w.length;b++)r(this,w[b],E,C,h,p);else r(this,w,E,C,h,p)}this._dueIndex=C;var I=this._settedOutputEnd!=null?this._settedOutputEnd:C;this._outputDueEnd=I}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var o=function(){var n,e,s,t,i,l={reset:function(p,g,A,y){e=p,n=g,s=A,t=y,i=Math.ceil(t/s),l.next=s>1&&t>0?h:u}};return l;function u(){return e<n?e++:null}function h(){var p=e%i*s+Math.ceil(e/i),g=e>=n?null:p<t?p:e;return e++,g}}();c.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)};function r(n,e,s,t,i,l){o.reset(s,t,i,l),n._callingProgress=e,n._callingProgress({start:s,end:t,count:t-s,next:o.next},n.context)}function a(n,e){n._dueIndex=n._outputDueEnd=n._dueEnd=0,n._settedOutputEnd=null;var s,t;!e&&n._reset&&(s=n._reset(n.context),s&&s.progress&&(t=s.forceFirstProgress,s=s.progress),T(s)&&!s.length&&(s=null)),n._progress=s,n._modBy=n._modDataCount=null;var i=n._downstream;return i&&i.dirty(),t}c.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},c.pipe=function(n){(this._downstream!==n||this._dirty)&&(this._downstream=n,n._upstream=this,n.dirty())},c.dispose=function(){if(this._disposed)return;this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0},c.getUpstream=function(){return this._upstream},c.getDownstream=function(){return this._downstream},c.setOutputEnd=function(n){this._outputDueEnd=this._settedOutputEnd=n},P.createTask=m},"9KIM":function(U,P,d){var O=d("mFDi"),x=d("xSat"),T=x.onIrrelevantElement,v=d("IwbS");function S(o){return o=c(o),function(r,a){return v.clipPointsByRect(r,o)}}function m(o,r){return o=c(o),function(a){var n=r!=null?r:a,e=n?o.width:o.height,s=n?o.x:o.y;return[s,s+(e||0)]}}function f(o,r,a){return o=c(o),function(n,e,s){return o.contain(e[0],e[1])&&!T(n,r,a)}}function c(o){return O.create(o)}P.makeRectPanelClipPath=S,P.makeLinearBrushOtherExtent=m,P.makeRectIsTargetByCursor=f},"9OqN":function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.mode.CTR=function(){var x=O.lib.BlockCipherMode.extend(),T=x.Encryptor=x.extend({processBlock:function(S,m){var f=this._cipher,c=f.blockSize,o=this._iv,r=this._counter;o&&(r=this._counter=o.slice(0),this._iv=void 0);var a=r.slice(0);f.encryptBlock(a,0),r[c-1]=r[c-1]+1|0;for(var n=0;n<c;n++)S[m+n]^=a[n]}});return x.Decryptor=T,x}(),O.mode.CTR})},"9ama":function(U,P,d){},"9eas":function(U,P,d){d("HM/N"),d("tBnm")},"9hCq":function(U,P,d){var O=d("IwbS"),x=d("+TT/"),T=d("bYtY"),v=d("VaxA"),S=v.wrapTreePathInfo,m=8,f=8,c=5;function o(e){this.group=new O.Group,e.add(this.group)}o.prototype={constructor:o,render:function(e,s,t,i){var l=e.getModel("breadcrumb"),u=this.group;if(u.removeAll(),!l.get("show")||!t)return;var h=l.getModel("itemStyle"),p=h.getModel("textStyle"),g={pos:{left:l.get("left"),right:l.get("right"),top:l.get("top"),bottom:l.get("bottom")},box:{width:s.getWidth(),height:s.getHeight()},emptyItemWidth:l.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(t,g,p),this._renderContent(e,g,h,p,i),x.positionElement(u,g.pos,g.box)},_prepare:function(e,s,t){for(var i=e;i;i=i.parentNode){var l=i.getModel().get("name"),u=t.getTextRect(l),h=Math.max(u.width+m*2,s.emptyItemWidth);s.totalWidth+=h+f,s.renderList.push({node:i,text:l,width:h})}},_renderContent:function(e,s,t,i,l){for(var u=0,h=s.emptyItemWidth,p=e.get("breadcrumb.height"),g=x.getAvailableSize(s.pos,s.box),A=s.totalWidth,y=s.renderList,E=y.length-1;E>=0;E--){var C=y[E],w=C.node,b=C.width,I=C.text;A>g.width&&(A-=b-h,b=h,I=null);var _=new O.Polygon({shape:{points:r(u,0,b,p,E===y.length-1,E===0)},style:T.defaults(t.getItemStyle(),{lineJoin:"bevel",text:I,textFill:i.getTextColor(),textFont:i.getFont()}),z:10,onclick:T.curry(l,w)});this.group.add(_),a(_,e,w),u+=b+f}},remove:function(){this.group.removeAll()}};function r(e,s,t,i,l,u){var h=[[l?e:e-c,s],[e+t,s],[e+t,s+i],[l?e:e-c,s+i]];return!u&&h.splice(2,0,[e+t+c,s+i/2]),!l&&h.push([e,s+i/2]),h}function a(e,s,t){e.eventData={componentType:"series",componentSubType:"treemap",componentIndex:s.componentIndex,seriesIndex:s.componentIndex,seriesName:s.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&S(t,s)}}var n=o;U.exports=n},"9u0u":function(U,P,d){var O=d("bYtY");function x(v,S){var m={};return O.each(v,function(f){f.each(f.mapDimension("value"),function(c,o){var r="ec-"+f.getName(o);m[r]=m[r]||[],isNaN(c)||m[r].push(c)})}),v[0].map(v[0].mapDimension("value"),function(f,c){for(var o="ec-"+v[0].getName(c),r=0,a=Infinity,n=-Infinity,e=m[o].length,s=0;s<e;s++)a=Math.min(a,m[o][s]),n=Math.max(n,m[o][s]),r+=m[o][s];var t;return S==="min"?t=a:S==="max"?t=n:S==="average"?t=r/e:t=r,e===0?NaN:t})}function T(v){var S={};v.eachSeriesByType("map",function(m){var f=m.getHostGeoModel(),c=f?"o"+f.id:"i"+m.getMapType();(S[c]=S[c]||[]).push(m)}),O.each(S,function(m,f){for(var c=x(O.map(m,function(r){return r.getData()}),m[0].get("mapValueCalculation")),o=0;o<m.length;o++)m[o].originalData=m[o].getData();for(var o=0;o<m.length;o++)m[o].seriesGroup=m,m[o].needsDrawMap=o===0&&!m[o].getHostGeoModel(),m[o].setData(c.cloneShallow()),m[o].mainSeries=m[0]})}U.exports=T},"9wZj":function(U,P,d){var O=d("IwbS"),x=d("FBjb"),T=d("bYtY"),v=T.isObject;function S(a){this.group=new O.Group,this._symbolCtor=a||x}var m=S.prototype;function f(a,n,e,s){return n&&!isNaN(n[0])&&!isNaN(n[1])&&!(s.isIgnore&&s.isIgnore(e))&&!(s.clipShape&&!s.clipShape.contain(n[0],n[1]))&&a.getItemVisual(e,"symbol")!=="none"}m.updateData=function(a,n){n=c(n);var e=this.group,s=a.hostModel,t=this._data,i=this._symbolCtor,l=o(a);t||e.removeAll(),a.diff(t).add(function(u){var h=a.getItemLayout(u);if(f(a,h,u,n)){var p=new i(a,u,l);p.attr("position",h),a.setItemGraphicEl(u,p),e.add(p)}}).update(function(u,h){var p=t.getItemGraphicEl(h),g=a.getItemLayout(u);if(!f(a,g,u,n)){e.remove(p);return}p?(p.updateData(a,u,l),O.updateProps(p,{position:g},s)):(p=new i(a,u),p.attr("position",g)),e.add(p),a.setItemGraphicEl(u,p)}).remove(function(u){var h=t.getItemGraphicEl(u);h&&h.fadeOut(function(){e.remove(h)})}).execute(),this._data=a},m.isPersistent=function(){return!0},m.updateLayout=function(){var a=this._data;a&&a.eachItemGraphicEl(function(n,e){var s=a.getItemLayout(e);n.attr("position",s)})},m.incrementalPrepareUpdate=function(a){this._seriesScope=o(a),this._data=null,this.group.removeAll()},m.incrementalUpdate=function(a,n,e){e=c(e);function s(u){u.isGroup||(u.incremental=u.useHoverLayer=!0)}for(var t=a.start;t<a.end;t++){var i=n.getItemLayout(t);if(f(n,i,t,e)){var l=new this._symbolCtor(n,t,this._seriesScope);l.traverse(s),l.attr("position",i),this.group.add(l),n.setItemGraphicEl(t,l)}}};function c(a){return a!=null&&!v(a)&&(a={isIgnore:a}),a||{}}m.remove=function(a){var n=this.group,e=this._data;e&&a?e.eachItemGraphicEl(function(s){s.fadeOut(function(){n.remove(s)})}):n.removeAll()};function o(a){var n=a.hostModel;return{itemStyle:n.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:n.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:n.get("symbolRotate"),symbolOffset:n.get("symbolOffset"),hoverAnimation:n.get("hoverAnimation"),labelModel:n.getModel("label"),hoverLabelModel:n.getModel("emphasis.label"),cursorStyle:n.get("cursor")}}var r=S;U.exports=r},"9yH6":function(U,P,d){"use strict";var O=d("lSNA"),x=d.n(O),T=d("pVnL"),v=d.n(T),S=d("q1tI"),m=d("x1Ya"),f=d("TSYQ"),c=d.n(f),o=d("H84U"),r=S.createContext(null),a=r.Provider,n=r,e=d("cDf5"),s=d.n(e);function t(R,B){typeof R=="function"?R(B):s()(R)==="object"&&R&&"current"in R&&(R.current=B)}function i(){for(var R=arguments.length,B=new Array(R),M=0;M<R;M++)B[M]=arguments[M];return function(H){B.forEach(function(F){t(F,H)})}}var l=d("uaoM"),u=function(R,B){var M={};for(var H in R)Object.prototype.hasOwnProperty.call(R,H)&&B.indexOf(H)<0&&(M[H]=R[H]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,H=Object.getOwnPropertySymbols(R);F<H.length;F++)B.indexOf(H[F])<0&&Object.prototype.propertyIsEnumerable.call(R,H[F])&&(M[H[F]]=R[H[F]]);return M},h=function(B,M){var H,F=S.useContext(n),K=S.useContext(o.b),j=K.getPrefixCls,V=K.direction,z=S.useRef(),Y=i(M,z);S.useEffect(function(){Object(l.a)(!("optionType"in B),"Radio","`optionType` is only support in Radio.Group.")},[]);var ee=function(me){B.onChange&&B.onChange(me),(F==null?void 0:F.onChange)&&F.onChange(me)},fe=B.prefixCls,ie=B.className,we=B.children,Ce=B.style,Le=u(B,["prefixCls","className","children","style"]),He=j("radio",fe),ce=v()({},Le);F&&(ce.name=F.name,ce.onChange=ee,ce.checked=B.value===F.value,ce.disabled=B.disabled||F.disabled);var Pe=c()(ie,(H={},x()(H,"".concat(He,"-wrapper"),!0),x()(H,"".concat(He,"-wrapper-checked"),ce.checked),x()(H,"".concat(He,"-wrapper-disabled"),ce.disabled),x()(H,"".concat(He,"-wrapper-rtl"),V==="rtl"),H));return S.createElement("label",{className:Pe,style:Ce,onMouseEnter:B.onMouseEnter,onMouseLeave:B.onMouseLeave},S.createElement(m.a,v()({},ce,{prefixCls:He,ref:Y})),we!==void 0?S.createElement("span",null,we):null)},p=S.forwardRef(h);p.displayName="Radio",p.defaultProps={type:"radio"};var g=p,A=d("J4zp"),y=d.n(A),E=d("6cGi"),C=d("3Nzz"),w=S.forwardRef(function(R,B){var M=S.useContext(o.b),H=M.getPrefixCls,F=M.direction,K=S.useContext(C.b),j=Object(E.a)(R.defaultValue,{value:R.value}),V=y()(j,2),z=V[0],Y=V[1],ee=function(we){var Ce=z,Le=we.target.value;"value"in R||Y(Le);var He=R.onChange;He&&Le!==Ce&&He(we)},fe=function(){var we,Ce=R.prefixCls,Le=R.className,He=Le===void 0?"":Le,ce=R.options,Pe=R.optionType,Q=R.buttonStyle,me=R.disabled,Je=R.children,re=R.size,G=R.style,X=R.id,J=R.onMouseEnter,Ae=R.onMouseLeave,he=H("radio",Ce),Me="".concat(he,"-group"),Ie=Je;if(ce&&ce.length>0){var oe=Pe==="button"?"".concat(he,"-button"):he;Ie=ce.map(function(Ye){return typeof Ye=="string"?S.createElement(g,{ref:B,key:Ye,prefixCls:oe,disabled:me,value:Ye,checked:z===Ye},Ye):S.createElement(g,{ref:B,key:"radio-group-value-options-".concat(Ye.value),prefixCls:oe,disabled:Ye.disabled||me,value:Ye.value,checked:z===Ye.value,style:Ye.style},Ye.label)})}var pe=re||K,Oe=c()(Me,"".concat(Me,"-").concat(Q),(we={},x()(we,"".concat(Me,"-").concat(pe),pe),x()(we,"".concat(Me,"-rtl"),F==="rtl"),we),He);return S.createElement("div",{className:Oe,style:G,onMouseEnter:J,onMouseLeave:Ae,id:X},Ie)};return S.createElement(a,{value:{onChange:ee,value:z,disabled:R.disabled,name:R.name}},fe())});w.defaultProps={buttonStyle:"outline"};var b=S.memo(w),I=function(R,B){var M={};for(var H in R)Object.prototype.hasOwnProperty.call(R,H)&&B.indexOf(H)<0&&(M[H]=R[H]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,H=Object.getOwnPropertySymbols(R);F<H.length;F++)B.indexOf(H[F])<0&&Object.prototype.propertyIsEnumerable.call(R,H[F])&&(M[H[F]]=R[H[F]]);return M},_=function(B,M){var H=S.useContext(n),F=S.useContext(o.b),K=F.getPrefixCls,j=B.prefixCls,V=I(B,["prefixCls"]),z=K("radio-button",j);return H&&(V.checked=B.value===H.value,V.disabled=B.disabled||H.disabled),S.createElement(g,v()({prefixCls:z},V,{type:"radio",ref:M}))},L=S.forwardRef(_),D=g;D.Button=L,D.Group=b;var N=P.a=D},A1Ka:function(U,P,d){var O=d("bLfw"),x=d("sS/r"),T=d("D5nY"),v=T.detectSourceFormat,S=d("k9D9"),m=S.SERIES_LAYOUT_BY_COLUMN;O.extend({type:"dataset",defaultOption:{seriesLayoutBy:m,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){v(this)}}),x.extend({type:"dataset"})},ABKa:function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("Qs9O")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="FolderOutlined";var c=v.forwardRef(f);P.default=c},AE9C:function(U,P,d){var O=d("bYtY"),x=d("crZl"),T=d("IwbS"),v=d("oVpE"),S=v.createSymbol,m=d("+TT/"),f=d("y7Aq"),c=x.extend({type:"visualMap.piecewise",doRender:function(){var r=this.group;r.removeAll();var a=this.visualMapModel,n=a.get("textGap"),e=a.textStyleModel,s=e.getFont(),t=e.getTextColor(),i=this._getItemAlign(),l=a.itemSize,u=this._getViewData(),h=u.endsText,p=O.retrieve(a.get("showLabel",!0),!h);h&&this._renderEndsText(r,h[0],l,p,i),O.each(u.viewPieceList,g,this),h&&this._renderEndsText(r,h[1],l,p,i),m.box(a.get("orient"),r,a.get("itemGap")),this.renderBackground(r),this.positionGroup(r);function g(A){var y=A.piece,E=new T.Group;E.onclick=O.bind(this._onItemClick,this,y),this._enableHoverLink(E,A.indexInModelPieceList);var C=a.getRepresentValue(y);if(this._createItemSymbol(E,C,[0,0,l[0],l[1]]),p){var w=this.visualMapModel.getValueState(C);E.add(new T.Text({style:{x:i==="right"?-n:l[0]+n,y:l[1]/2,text:y.text,textVerticalAlign:"middle",textAlign:i,textFont:s,textFill:t,opacity:w==="outOfRange"?.5:1}}))}r.add(E)}},_enableHoverLink:function(r,a){r.on("mouseover",O.bind(n,this,"highlight")).on("mouseout",O.bind(n,this,"downplay"));function n(e){var s=this.visualMapModel;s.option.hoverLink&&this.api.dispatchAction({type:e,batch:f.makeHighDownBatch(s.findTargetDataIndices(a),s)})}},_getItemAlign:function(){var r=this.visualMapModel,a=r.option;if(a.orient==="vertical")return f.getItemAlign(r,this.api,r.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},_renderEndsText:function(r,a,n,e,s){if(!a)return;var t=new T.Group,i=this.visualMapModel.textStyleModel;t.add(new T.Text({style:{x:e?s==="right"?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:e?s:"center",text:a,textFont:i.getFont(),textFill:i.getTextColor()}})),r.add(t)},_getViewData:function(){var r=this.visualMapModel,a=O.map(r.getPieceList(),function(t,i){return{piece:t,indexInModelPieceList:i}}),n=r.get("text"),e=r.get("orient"),s=r.get("inverse");return(e==="horizontal"?s:!s)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},_createItemSymbol:function(r,a,n){r.add(S(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color")))},_onItemClick:function(r){var a=this.visualMapModel,n=a.option,e=O.clone(n.selected),s=a.getSelectedMapKey(r);n.selectedMode==="single"?(e[s]=!0,O.each(e,function(t,i){e[i]=i===s})):e[s]=!e[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:e})}}),o=c;U.exports=o},AEZ6:function(U,P,d){var O=d("bYtY"),x=O.each,T=O.createHashMap,v=d("T4UG"),S=d("MwEJ"),m=v.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(o,r){var a=this.getSource();return f(a,this),S(a,this)},getRawIndicesByActiveState:function(o){var r=this.coordinateSystem,a=this.getData(),n=[];return r.eachActiveState(a,function(e,s){o===e&&n.push(a.getRawIndex(s))}),n},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});function f(o,r){if(o.encodeDefine)return;var a=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(!a)return;var n=o.encodeDefine=T();x(a.dimensions,function(e){var s=c(e);n.set(e,s)})}function c(o){return+o.replace("dim","")}U.exports=m},AH3D:function(U,P,d){var O=d("ProS");d("y4/Y"),d("qWt2"),d("Qvb6"),O.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),O.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},ALo7:function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("5GtS"),v=d("4NO4"),S=v.defaultEmphasis,m=d("D5nY"),f=m.makeSeriesEncodeForNameBased,c=d("xKMd"),o=O.extendSeriesModel({type:"series.funnel",init:function(a){o.superApply(this,"init",arguments),this.legendVisualProvider=new c(x.bind(this.getData,this),x.bind(this.getRawData,this)),this._defaultLabelLine(a)},getInitialData:function(a,n){return T(this,{coordDimensions:["value"],encodeDefaulter:x.curry(f,this)})},_defaultLabelLine:function(a){S(a,"labelLine",["show"]);var n=a.labelLine,e=a.emphasis.labelLine;n.show=n.show&&a.label.show,e.show=e.show&&a.emphasis.label.show},getDataParams:function(a){var n=this.getData(),e=o.superCall(this,"getDataParams",a),s=n.mapDimension("value"),t=n.getSum(s);return e.percent=t?+(n.get(s,a)/t*100).toFixed(2):0,e.$vars.push("percent"),e},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),r=o;U.exports=r},ALsQ:function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.mode.CFB=function(){var x=O.lib.BlockCipherMode.extend();x.Encryptor=x.extend({processBlock:function(S,m){var f=this._cipher,c=f.blockSize;T.call(this,S,m,c,f),this._prevBlock=S.slice(m,m+c)}}),x.Decryptor=x.extend({processBlock:function(S,m){var f=this._cipher,c=f.blockSize,o=S.slice(m,m+c);T.call(this,S,m,c,f),this._prevBlock=o}});function T(v,S,m,f){var c,o=this._iv;o?(c=o.slice(0),this._iv=void 0):c=this._prevBlock,f.encryptBlock(c,0);for(var r=0;r<m;r++)v[S+r]^=c[r]}return x}(),O.mode.CFB})},ANjR:function(U,P,d){var O=d("bYtY");function x(v,S){return S=S||[0,0],O.map([0,1],function(m){var f=S[m],c=v[m]/2,o=[],r=[];return o[m]=f-c,r[m]=f+c,o[1-m]=r[1-m]=S[1-m],Math.abs(this.dataToPoint(o)[m]-this.dataToPoint(r)[m])},this)}function T(v){var S=v.getBoundingRect();return{coordSys:{type:"geo",x:S.x,y:S.y,width:S.width,height:S.height,zoom:v.getZoom()},api:{coord:function(m){return v.dataToPoint(m)},size:O.bind(x,v)}}}U.exports=T},AOa7:function(U,P,d){},AUH6:function(U,P,d){var O=d("bYtY"),x=d("mFDi"),T=d("bMXI"),v=d("W4dC");function S(c,o,r,a){T.call(this,c),this.map=o;var n=v.load(o,r);this._nameCoordMap=n.nameCoordMap,this._regionsMap=n.regionsMap,this._invertLongitute=a==null?!0:a,this.regions=n.regions,this._rect=n.boundingRect}S.prototype={constructor:S,type:"geo",dimensions:["lng","lat"],containCoord:function(c){for(var o=this.regions,r=0;r<o.length;r++)if(o[r].contain(c))return!0;return!1},transformTo:function(c,o,r,a){var n=this.getBoundingRect(),e=this._invertLongitute;n=n.clone(),e&&(n.y=-n.y-n.height);var s=this._rawTransformable;if(s.transform=n.calculateTransform(new x(c,o,r,a)),s.decomposeTransform(),e){var t=s.scale;t[1]=-t[1]}s.updateTransform(),this._updateTransform()},getRegion:function(c){return this._regionsMap.get(c)},getRegionByCoord:function(c){for(var o=this.regions,r=0;r<o.length;r++)if(o[r].contain(c))return o[r]},addGeoCoord:function(c,o){this._nameCoordMap.set(c,o)},getGeoCoord:function(c){return this._nameCoordMap.get(c)},getBoundingRect:function(){return this._rect},dataToPoint:function(c,o,r){if(typeof c=="string"&&(c=this.getGeoCoord(c)),c)return T.prototype.dataToPoint.call(this,c,o,r)},convertToPixel:O.curry(m,"dataToPoint"),convertFromPixel:O.curry(m,"pointToData")},O.mixin(S,T);function m(c,o,r,a){var n=r.geoModel,e=r.seriesModel,s=n?n.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return s===this?s[c](a):null}var f=S;U.exports=f},AVZG:function(U,P,d){var O=d("bYtY");function x(T,v,S){S=S||{};var m=T.coordinateSystem,f=v.axis,c={},o=f.getAxesOnZeroOf()[0],r=f.position,a=o?"onZero":r,n=f.dim,e=m.getRect(),s=[e.x,e.x+e.width,e.y,e.y+e.height],t={left:0,right:1,top:0,bottom:1,onZero:2},i=v.get("offset")||0,l=n==="x"?[s[2]-i,s[3]+i]:[s[0]-i,s[1]+i];if(o){var u=o.toGlobalCoord(o.dataToCoord(0));l[t.onZero]=Math.max(Math.min(u,l[1]),l[0])}c.position=[n==="y"?l[t[a]]:s[0],n==="x"?l[t[a]]:s[3]],c.rotation=Math.PI/2*(n==="x"?0:1);var h={top:-1,bottom:1,left:-1,right:1};c.labelDirection=c.tickDirection=c.nameDirection=h[r],c.labelOffset=o?l[t[r]]-l[t.onZero]:0,v.get("axisTick.inside")&&(c.tickDirection=-c.tickDirection),O.retrieve(S.labelInside,v.get("axisLabel.inside"))&&(c.labelDirection=-c.labelDirection);var p=v.get("axisLabel.rotate");return c.labelRotate=a==="top"?-p:p,c.z2=1,c}P.layout=x},"Ae+d":function(U,P){function d(x,T,v){var S=x.target,m=S.position;m[0]+=T,m[1]+=v,S.dirty()}function O(x,T,v,S){var m=x.target,f=x.zoomLimit,c=m.position,o=m.scale,r=x.zoom=x.zoom||1;if(r*=T,f){var a=f.min||0,n=f.max||Infinity;r=Math.max(Math.min(n,r),a)}var e=r/x.zoom;x.zoom=r,c[0]-=(v-c[0])*(e-1),c[1]-=(S-c[1])*(e-1),o[0]*=e,o[1]*=e,m.dirty()}P.updateViewOnPan=d,P.updateViewOnZoom=O},Ae16:function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("IwbS");d("Wqna"),d("rySg"),O.extendComponentView({type:"grid",render:function(v,S){this.group.removeAll(),v.get("show")&&this.group.add(new T.Rect({shape:v.coordinateSystem.getRect(),style:x.defaults({fill:v.get("backgroundColor")},v.getItemStyle()),silent:!0,z2:-1}))}}),O.registerPreprocessor(function(v){v.xAxis&&v.yAxis&&!v.grid&&(v.grid={})})},Awhp:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("PQMj"),v=d.n(T)},"B+YJ":function(U,P,d){d("TYVI"),d("p1MT")},"B6l+":function(U,P,d){var O=d("Sq3C"),x=d("Z1HP"),T=d("Sxd8"),v=d("dt0z");function S(m,f,c){m=v(m),f=T(f);var o=f?x(m):0;return f&&o<f?m+O(f-o,c):m}U.exports=S},B9cy:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("0XgM"),v=d.n(T)},B9fm:function(U,P,d){var O=d("bYtY"),x=d("Qe9p"),T=d("YH21"),v=d("Ze12"),S=d("ItGF"),m=d("7aKB"),f=O.each,c=m.toCamelCase,o=["","-webkit-","-moz-","-o-"],r="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function a(l){var u="cubic-bezier(0.23, 1, 0.32, 1)",h="left "+l+"s "+u+",top "+l+"s "+u;return O.map(o,function(p){return p+"transition:"+h}).join(";")}function n(l){var u=[],h=l.get("fontSize"),p=l.getTextColor();return p&&u.push("color:"+p),u.push("font:"+l.getFont()),h&&u.push("line-height:"+Math.round(h*3/2)+"px"),f(["decoration","align"],function(g){var A=l.get(g);A&&u.push("text-"+g+":"+A)}),u.join(";")}function e(l){var u=[],h=l.get("transitionDuration"),p=l.get("backgroundColor"),g=l.getModel("textStyle"),A=l.get("padding");return h&&u.push(a(h)),p&&(S.canvasSupported?u.push("background-Color:"+p):(u.push("background-Color:#"+x.toHex(p)),u.push("filter:alpha(opacity=70)"))),f(["width","color","radius"],function(y){var E="border-"+y,C=c(E),w=l.get(C);w!=null&&u.push(E+":"+w+(y==="color"?"":"px"))}),u.push(n(g)),A!=null&&u.push("padding:"+m.normalizeCssArray(A).join("px ")+"px"),u.join(";")+";"}function s(l,u,h,p,g){var A=u&&u.painter;if(h){var y=A&&A.getViewportRoot();y&&v.transformLocalCoord(l,y,document.body,p,g)}else{l[0]=p,l[1]=g;var E=A&&A.getViewportRootOffset();E&&(l[0]+=E.offsetLeft,l[1]+=E.offsetTop)}}function t(l,u,h){if(S.wxa)return null;var p=document.createElement("div");p.domBelongToZr=!0,this.el=p;var g=this._zr=u.getZr(),A=this._appendToBody=h&&h.appendToBody;this._styleCoord=[0,0],s(this._styleCoord,g,A,u.getWidth()/2,u.getHeight()/2),A?document.body.appendChild(p):l.appendChild(p),this._container=l,this._show=!1,this._hideTimeout;var y=this;p.onmouseenter=function(){y._enterable&&(clearTimeout(y._hideTimeout),y._show=!0),y._inContent=!0},p.onmousemove=function(E){if(E=E||window.event,!y._enterable){var C=g.handler,w=g.painter.getViewportRoot();T.normalizeEvent(w,E,!0),C.dispatch("mousemove",E)}},p.onmouseleave=function(){y._enterable&&(y._show&&y.hideLater(y._hideDelay)),y._inContent=!1}}t.prototype={constructor:t,_enterable:!0,update:function(){var l=this._container,u=l.currentStyle||document.defaultView.getComputedStyle(l),h=l.style;h.position!=="absolute"&&u.position!=="absolute"&&(h.position="relative")},show:function(l){clearTimeout(this._hideTimeout);var u=this.el,h=this._styleCoord;u.style.cssText=r+e(l)+";left:"+h[0]+"px;top:"+h[1]+"px;"+(l.get("extraCssText")||""),u.style.display=u.innerHTML?"block":"none",u.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(l){this.el.innerHTML=l==null?"":l},setEnterable:function(l){this._enterable=l},getSize:function(){var l=this.el;return[l.clientWidth,l.clientHeight]},moveTo:function(l,u){var h=this._styleCoord;s(h,this._zr,this._appendToBody,l,u);var p=this.el.style;p.left=h[0]+"px",p.top=h[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(l){this._show&&!(this._inContent&&this._enterable)&&(l?(this._hideDelay=l,this._show=!1,this._hideTimeout=setTimeout(O.bind(this.hide,this),l)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var l=this.el.clientWidth,u=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var h=document.defaultView.getComputedStyle(this.el);h&&(l+=parseInt(h.borderLeftWidth,10)+parseInt(h.borderRightWidth,10),u+=parseInt(h.borderTopWidth,10)+parseInt(h.borderBottomWidth,10))}return{width:l,height:u}}};var i=t;U.exports=i},BPZU:function(U,P){var d=32,O=7,x=256;function T(a){for(var n=0;a>=d;)n|=a&1,a>>=1;return a+n}function v(a,n,e,s){var t=n+1;if(t===e)return 1;if(s(a[t++],a[n])<0){for(;t<e&&s(a[t],a[t-1])<0;)t++;S(a,n,t)}else for(;t<e&&s(a[t],a[t-1])>=0;)t++;return t-n}function S(a,n,e){for(e--;n<e;){var s=a[n];a[n++]=a[e],a[e--]=s}}function m(a,n,e,s,t){for(s===n&&s++;s<e;s++){for(var i=a[s],l=n,u=s,h;l<u;)h=l+u>>>1,t(i,a[h])<0?u=h:l=h+1;var p=s-l;switch(p){case 3:a[l+3]=a[l+2];case 2:a[l+2]=a[l+1];case 1:a[l+1]=a[l];break;default:for(;p>0;)a[l+p]=a[l+p-1],p--}a[l]=i}}function f(a,n,e,s,t,i){var l=0,u=0,h=1;if(i(a,n[e+t])>0){for(u=s-t;h<u&&i(a,n[e+t+h])>0;)l=h,h=(h<<1)+1,h<=0&&(h=u);h>u&&(h=u),l+=t,h+=t}else{for(u=t+1;h<u&&i(a,n[e+t-h])<=0;)l=h,h=(h<<1)+1,h<=0&&(h=u);h>u&&(h=u);var p=l;l=t-h,h=t-p}for(l++;l<h;){var g=l+(h-l>>>1);i(a,n[e+g])>0?l=g+1:h=g}return h}function c(a,n,e,s,t,i){var l=0,u=0,h=1;if(i(a,n[e+t])<0){for(u=t+1;h<u&&i(a,n[e+t-h])<0;)l=h,h=(h<<1)+1,h<=0&&(h=u);h>u&&(h=u);var p=l;l=t-h,h=t-p}else{for(u=s-t;h<u&&i(a,n[e+t+h])>=0;)l=h,h=(h<<1)+1,h<=0&&(h=u);h>u&&(h=u),l+=t,h+=t}for(l++;l<h;){var g=l+(h-l>>>1);i(a,n[e+g])<0?h=g:l=g+1}return h}function o(a,n){var e=O,s=0,t=x,i=0,l,u,h=0;s=a.length,s<2*x&&(t=s>>>1);var p=[];i=s<120?5:s<1542?10:s<119151?19:40,l=[],u=[];function g(b,I){l[h]=b,u[h]=I,h+=1}function A(){for(;h>1;){var b=h-2;if(b>=1&&u[b-1]<=u[b]+u[b+1]||b>=2&&u[b-2]<=u[b]+u[b-1])u[b-1]<u[b+1]&&b--;else if(u[b]>u[b+1])break;E(b)}}function y(){for(;h>1;){var b=h-2;b>0&&u[b-1]<u[b+1]&&b--,E(b)}}function E(b){var I=l[b],_=u[b],L=l[b+1],D=u[b+1];u[b]=_+D,b===h-3&&(l[b+1]=l[b+2],u[b+1]=u[b+2]),h--;var N=c(a[L],a,I,_,0,n);if(I+=N,_-=N,_===0)return;if(D=f(a[I+_-1],a,L,D,D-1,n),D===0)return;_<=D?C(I,_,L,D):w(I,_,L,D)}function C(b,I,_,L){var D=0;for(D=0;D<I;D++)p[D]=a[b+D];var N=0,R=_,B=b;if(a[B++]=a[R++],--L===0){for(D=0;D<I;D++)a[B+D]=p[N+D];return}if(I===1){for(D=0;D<L;D++)a[B+D]=a[R+D];a[B+L]=p[N];return}for(var M=e,H,F,K;;){H=0,F=0,K=!1;do if(n(a[R],p[N])<0){if(a[B++]=a[R++],F++,H=0,--L===0){K=!0;break}}else if(a[B++]=p[N++],H++,F=0,--I===1){K=!0;break}while((H|F)<M);if(K)break;do{if(H=c(a[R],p,N,I,0,n),H!==0){for(D=0;D<H;D++)a[B+D]=p[N+D];if(B+=H,N+=H,I-=H,I<=1){K=!0;break}}if(a[B++]=a[R++],--L===0){K=!0;break}if(F=f(p[N],a,R,L,0,n),F!==0){for(D=0;D<F;D++)a[B+D]=a[R+D];if(B+=F,R+=F,L-=F,L===0){K=!0;break}}if(a[B++]=p[N++],--I===1){K=!0;break}M--}while(H>=O||F>=O);if(K)break;M<0&&(M=0),M+=2}if(e=M,e<1&&(e=1),I===1){for(D=0;D<L;D++)a[B+D]=a[R+D];a[B+L]=p[N]}else{if(I===0)throw new Error;for(D=0;D<I;D++)a[B+D]=p[N+D]}}function w(b,I,_,L){var D=0;for(D=0;D<L;D++)p[D]=a[_+D];var N=b+I-1,R=L-1,B=_+L-1,M=0,H=0;if(a[B--]=a[N--],--I===0){for(M=B-(L-1),D=0;D<L;D++)a[M+D]=p[D];return}if(L===1){for(B-=I,N-=I,H=B+1,M=N+1,D=I-1;D>=0;D--)a[H+D]=a[M+D];a[B]=p[R];return}for(var F=e;;){var K=0,j=0,V=!1;do if(n(p[R],a[N])<0){if(a[B--]=a[N--],K++,j=0,--I===0){V=!0;break}}else if(a[B--]=p[R--],j++,K=0,--L===1){V=!0;break}while((K|j)<F);if(V)break;do{if(K=I-c(p[R],a,b,I,I-1,n),K!==0){for(B-=K,N-=K,I-=K,H=B+1,M=N+1,D=K-1;D>=0;D--)a[H+D]=a[M+D];if(I===0){V=!0;break}}if(a[B--]=p[R--],--L===1){V=!0;break}if(j=L-f(a[N],p,0,L,L-1,n),j!==0){for(B-=j,R-=j,L-=j,H=B+1,M=R+1,D=0;D<j;D++)a[H+D]=p[M+D];if(L<=1){V=!0;break}}if(a[B--]=a[N--],--I===0){V=!0;break}F--}while(K>=O||j>=O);if(V)break;F<0&&(F=0),F+=2}if(e=F,e<1&&(e=1),L===1){for(B-=I,N-=I,H=B+1,M=N+1,D=I-1;D>=0;D--)a[H+D]=a[M+D];a[B]=p[R]}else{if(L===0)throw new Error;for(M=B-(L-1),D=0;D<L;D++)a[M+D]=p[D]}}this.mergeRuns=A,this.forceMergeRuns=y,this.pushRun=g}function r(a,n,e,s){e||(e=0),s||(s=a.length);var t=s-e;if(t<2)return;var i=0;if(t<d){i=v(a,e,s,n),m(a,e,s,e+i,n);return}var l=new o(a,n),u=T(t);do{if(i=v(a,e,s,n),i<u){var h=t;h>u&&(h=u),m(a,e,e+h,e+i,n),i=h}l.pushRun(e,i),l.mergeRuns(),t-=i,e+=i}while(t!==0);l.forceMergeRuns()}U.exports=r},Bd2K:function(U,P,d){(function(O){O(d("VrN/"),d("osHv"))})(function(O){O.defineOption("autoCloseTags",!1,function(o,r,a){if(a!=O.Init&&a&&o.removeKeyMap("autoCloseTags"),!r)return;var n={name:"autoCloseTags"};(typeof r!="object"||r.whenClosing!==!1)&&(n["'/'"]=function(e){return m(e)}),(typeof r!="object"||r.whenOpening!==!1)&&(n["'>'"]=function(e){return v(e)}),o.addKeyMap(n)});var x=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],T=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function v(o){if(o.getOption("disableInput"))return O.Pass;for(var r=o.listSelections(),a=[],n=o.getOption("autoCloseTags"),e=0;e<r.length;e++){if(!r[e].empty())return O.Pass;var s=r[e].head,t=o.getTokenAt(s),i=O.innerMode(o.getMode(),t.state),l=i.state,u=i.mode.xmlCurrentTag&&i.mode.xmlCurrentTag(l),h=u&&u.name;if(!h)return O.Pass;var p=i.mode.configuration=="html",g=typeof n=="object"&&n.dontCloseTags||p&&x,A=typeof n=="object"&&n.indentTags||p&&T;t.end>s.ch&&(h=h.slice(0,h.length-t.end+s.ch));var y=h.toLowerCase();if(!h||t.type=="string"&&(t.end!=s.ch||!/[\"\']/.test(t.string.charAt(t.string.length-1))||t.string.length==1)||t.type=="tag"&&u.close||t.string.indexOf("/")==s.ch-t.start-1||g&&f(g,y)>-1||c(o,i.mode.xmlCurrentContext&&i.mode.xmlCurrentContext(l)||[],h,s,!0))return O.Pass;var E=typeof n=="object"&&n.emptyTags;if(E&&f(E,h)>-1){a[e]={text:"/>",newPos:O.Pos(s.line,s.ch+2)};continue}var C=A&&f(A,y)>-1;a[e]={indent:C,text:">"+(C?`
|
|
|
|
|
|
`:"")+"</"+h+">",newPos:C?O.Pos(s.line+1,0):O.Pos(s.line,s.ch+1)}}for(var w=typeof n=="object"&&n.dontIndentOnAutoClose,e=r.length-1;e>=0;e--){var b=a[e];o.replaceRange(b.text,r[e].head,r[e].anchor,"+insert");var I=o.listSelections().slice(0);I[e]={head:b.newPos,anchor:b.newPos},o.setSelections(I),!w&&b.indent&&(o.indentLine(b.newPos.line,null,!0),o.indentLine(b.newPos.line+1,null,!0))}}function S(o,r){for(var a=o.listSelections(),n=[],e=r?"/":"</",s=o.getOption("autoCloseTags"),t=typeof s=="object"&&s.dontIndentOnSlash,i=0;i<a.length;i++){if(!a[i].empty())return O.Pass;var l=a[i].head,u=o.getTokenAt(l),h=O.innerMode(o.getMode(),u.state),p=h.state;if(r&&(u.type=="string"||u.string.charAt(0)!="<"||u.start!=l.ch-1))return O.Pass;var g,A=h.mode.name!="xml"&&o.getMode().name=="htmlmixed";if(A&&h.mode.name=="javascript")g=e+"script";else if(A&&h.mode.name=="css")g=e+"style";else{var y=h.mode.xmlCurrentContext&&h.mode.xmlCurrentContext(p);if(!y||y.length&&c(o,y,y[y.length-1],l))return O.Pass;g=e+y[y.length-1]}o.getLine(l.line).charAt(u.end)!=">"&&(g+=">"),n[i]=g}if(o.replaceSelections(n),a=o.listSelections(),!t)for(var i=0;i<a.length;i++)(i==a.length-1||a[i].head.line<a[i+1].head.line)&&o.indentLine(a[i].head.line)}function m(o){return o.getOption("disableInput")?O.Pass:S(o,!0)}O.commands.closeTag=function(o){return S(o)};function f(o,r){if(o.indexOf)return o.indexOf(r);for(var a=0,n=o.length;a<n;++a)if(o[a]==r)return a;return-1}function c(o,r,a,n,e){if(!O.scanForClosingTag)return!1;var s=Math.min(o.lastLine()+1,n.line+500),t=O.scanForClosingTag(o,n,null,s);if(!t||t.tag!=a)return!1;for(var i=e?1:0,l=r.length-1;l>=0&&r[l]==a;l--)++i;n=t.to;for(var l=1;l<i;l++){var u=O.scanForClosingTag(o,n,null,s);if(!u||u.tag!=a)return!1;n=u.to}return!0}})},BlVb:function(U,P,d){var O=d("hyiK"),x=1e-8;function T(S,m){return Math.abs(S-m)<x}function v(S,m,f){var c=0,o=S[0];if(!o)return!1;for(var r=1;r<S.length;r++){var a=S[r];c+=O(o[0],o[1],a[0],a[1],m,f),o=a}var n=S[0];return(!T(o[0],n[0])||!T(o[1],n[1]))&&(c+=O(o[0],o[1],n[0],n[1],m,f)),c!==0}P.contain=v},BoS7:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("czTT"),v=d.n(T)},Bq2U:function(U,P,d){var O=d("RDYZ"),x=d("Qe9p"),T=d("bYtY"),v=T.isArrayLike,S=Array.prototype.slice;function m(g,A){return g[A]}function f(g,A,y){g[A]=y}function c(g,A,y){return(A-g)*y+g}function o(g,A,y){return y>.5?A:g}function r(g,A,y,E,C){var w=g.length;if(C===1)for(var b=0;b<w;b++)E[b]=c(g[b],A[b],y);else for(var I=w&&g[0].length,b=0;b<w;b++)for(var _=0;_<I;_++)E[b][_]=c(g[b][_],A[b][_],y)}function a(g,A,y){var E=g.length,C=A.length;if(E!==C){var w=E>C;if(w)g.length=C;else for(var b=E;b<C;b++)g.push(y===1?A[b]:S.call(A[b]))}for(var I=g[0]&&g[0].length,b=0;b<g.length;b++)if(y===1)isNaN(g[b])&&(g[b]=A[b]);else for(var _=0;_<I;_++)isNaN(g[b][_])&&(g[b][_]=A[b][_])}function n(g,A,y){if(g===A)return!0;var E=g.length;if(E!==A.length)return!1;if(y===1){for(var C=0;C<E;C++)if(g[C]!==A[C])return!1}else for(var w=g[0].length,C=0;C<E;C++)for(var b=0;b<w;b++)if(g[C][b]!==A[C][b])return!1;return!0}function e(g,A,y,E,C,w,b,I,_){var L=g.length;if(_===1)for(var D=0;D<L;D++)I[D]=s(g[D],A[D],y[D],E[D],C,w,b);else for(var N=g[0].length,D=0;D<L;D++)for(var R=0;R<N;R++)I[D][R]=s(g[D][R],A[D][R],y[D][R],E[D][R],C,w,b)}function s(g,A,y,E,C,w,b){var I=(y-g)*.5,_=(E-A)*.5;return(2*(A-y)+I+_)*b+(-3*(A-y)-2*I-_)*w+I*C+A}function t(g){if(v(g)){var A=g.length;if(v(g[0])){for(var y=[],E=0;E<A;E++)y.push(S.call(g[E]));return y}return S.call(g)}return g}function i(g){return g[0]=Math.floor(g[0]),g[1]=Math.floor(g[1]),g[2]=Math.floor(g[2]),"rgba("+g.join(",")+")"}function l(g){var A=g[g.length-1].value;return v(A&&A[0])?2:1}function u(g,A,y,E,C,w){var b=g._getter,I=g._setter,_=A==="spline",L=E.length;if(!L)return;var D=E[0].value,N=v(D),R=!1,B=!1,M=N?l(E):0,H;E.sort(function(G,X){return G.time-X.time}),H=E[L-1].time;for(var F=[],K=[],j=E[0].value,V=!0,z=0;z<L;z++){F.push(E[z].time/H);var Y=E[z].value;if(N&&n(Y,j,M)||!N&&Y===j||(V=!1),j=Y,typeof Y=="string"){var ee=x.parse(Y);ee?(Y=ee,R=!0):B=!0}K.push(Y)}if(!w&&V)return;for(var fe=K[L-1],z=0;z<L-1;z++)N?a(K[z],fe,M):isNaN(K[z])&&!isNaN(fe)&&!B&&!R&&(K[z]=fe);N&&a(b(g._target,C),fe,M);var ie=0,we=0,Ce,Le,He,ce,Pe,Q;if(R)var me=[0,0,0,0];var Je=function(X,J){var Ae;if(J<0)Ae=0;else if(J<we){for(Ce=Math.min(ie+1,L-1),Ae=Ce;Ae>=0&&!(F[Ae]<=J);Ae--);Ae=Math.min(Ae,L-2)}else{for(Ae=ie;Ae<L&&!(F[Ae]>J);Ae++);Ae=Math.min(Ae-1,L-2)}ie=Ae,we=J;var he=F[Ae+1]-F[Ae];if(he===0)return;if(Le=(J-F[Ae])/he,_)if(ce=K[Ae],He=K[Ae===0?Ae:Ae-1],Pe=K[Ae>L-2?L-1:Ae+1],Q=K[Ae>L-3?L-1:Ae+2],N)e(He,ce,Pe,Q,Le,Le*Le,Le*Le*Le,b(X,C),M);else{var Me;if(R)Me=e(He,ce,Pe,Q,Le,Le*Le,Le*Le*Le,me,1),Me=i(me);else{if(B)return o(ce,Pe,Le);Me=s(He,ce,Pe,Q,Le,Le*Le,Le*Le*Le)}I(X,C,Me)}else if(N)r(K[Ae],K[Ae+1],Le,b(X,C),M);else{var Me;if(R)r(K[Ae],K[Ae+1],Le,me,1),Me=i(me);else{if(B)return o(K[Ae],K[Ae+1],Le);Me=c(K[Ae],K[Ae+1],Le)}I(X,C,Me)}},re=new O({target:g._target,life:H,loop:g._loop,delay:g._delay,onframe:Je,ondestroy:y});return A&&A!=="spline"&&(re.easing=A),re}var h=function(A,y,E,C){this._tracks={},this._target=A,this._loop=y||!1,this._getter=E||m,this._setter=C||f,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};h.prototype={when:function(A,y){var E=this._tracks;for(var C in y){if(!y.hasOwnProperty(C))continue;if(!E[C]){E[C]=[];var w=this._getter(this._target,C);if(w==null)continue;A!==0&&E[C].push({time:0,value:t(w)})}E[C].push({time:A,value:y[C]})}return this},during:function(A){return this._onframeList.push(A),this},pause:function(){for(var A=0;A<this._clipList.length;A++)this._clipList[A].pause();this._paused=!0},resume:function(){for(var A=0;A<this._clipList.length;A++)this._clipList[A].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var A=this._doneList,y=A.length,E=0;E<y;E++)A[E].call(this)},start:function(A,y){var E=this,C=0,w=function(){C--,C||E._doneCallback()},b;for(var I in this._tracks){if(!this._tracks.hasOwnProperty(I))continue;var _=u(this,A,w,this._tracks[I],I,y);_&&(this._clipList.push(_),C++,this.animation&&this.animation.addClip(_),b=_)}if(b){var L=b.onframe;b.onframe=function(D,N){L(D,N);for(var R=0;R<E._onframeList.length;R++)E._onframeList[R](D,N)}}return C||this._doneCallback(),this},stop:function(A){for(var y=this._clipList,E=this.animation,C=0;C<y.length;C++){var w=y[C];A&&w.onframe(this._target,1),E&&E.removeClip(w)}y.length=0},delay:function(A){return this._delay=A,this},done:function(A){return A&&this._doneList.push(A),this},getClips:function(){return this._clipList}};var p=h;U.exports=p},Bqw1:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};P.default=O},Bsck:function(U,P,d){var O=d("bYtY"),x=d("Qxkt"),T=d("Mdki"),v=d("YXkt"),S=d("sdST"),m=function(r,a){this.name=r||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=a};m.prototype={constructor:m,isRemoved:function(){return this.dataIndex<0},eachNode:function(r,a,n){typeof r=="function"&&(n=a,a=r,r=null),r=r||{},O.isString(r)&&(r={order:r});var e=r.order||"preorder",s=this[r.attr||"children"],t;e==="preorder"&&(t=a.call(n,this));for(var i=0;!t&&i<s.length;i++)s[i].eachNode(r,a,n);e==="postorder"&&a.call(n,this)},updateDepthAndHeight:function(r){var a=0;this.depth=r;for(var n=0;n<this.children.length;n++){var e=this.children[n];e.updateDepthAndHeight(r+1),e.height>a&&(a=e.height)}this.height=a+1},getNodeById:function(r){if(this.getId()===r)return this;for(var a=0,n=this.children,e=n.length;a<e;a++){var s=n[a].getNodeById(r);if(s)return s}},contains:function(r){if(r===this)return!0;for(var a=0,n=this.children,e=n.length;a<e;a++){var s=n[a].contains(r);if(s)return s}},getAncestors:function(r){for(var a=[],n=r?this:this.parentNode;n;)a.push(n),n=n.parentNode;return a.reverse(),a},getValue:function(r){var a=this.hostTree.data;return a.get(a.getDimension(r||"value"),this.dataIndex)},setLayout:function(r,a){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,r,a)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(r){if(this.dataIndex<0)return;var a=this.hostTree,n=a.data.getItemModel(this.dataIndex),e=this.getLevelModel();return e?n.getModel(r,e.getModel(r)):n.getModel(r)},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(r,a){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,r,a)},getVisual:function(r,a){return this.hostTree.data.getItemVisual(this.dataIndex,r,a)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(r){for(var a=r.parentNode;a;){if(a===this)return!0;a=a.parentNode}return!1},isDescendantOf:function(r){return r!==this&&r.isAncestorOf(this)}};function f(r,a){this.root,this.data,this._nodes=[],this.hostModel=r,this.levelModels=O.map(a||[],function(n){return new x(n,r,r.ecModel)})}f.prototype={constructor:f,type:"tree",eachNode:function(r,a,n){this.root.eachNode(r,a,n)},getNodeByDataIndex:function(r){var a=this.data.getRawIndex(r);return this._nodes[a]},getNodeByName:function(r){return this.root.getNodeByName(r)},update:function(){for(var r=this.data,a=this._nodes,n=0,e=a.length;n<e;n++)a[n].dataIndex=-1;for(var n=0,e=r.count();n<e;n++)a[r.getRawIndex(n)].dataIndex=n},clearLayouts:function(){this.data.clearItemLayouts()}},f.createTree=function(r,a,n,e){var s=new f(a,n&&n.levels),t=[],i=1;l(r);function l(p,g){var A=p.value;i=Math.max(i,O.isArray(A)?A.length:1),t.push(p);var y=new m(p.name,s);g?c(y,g):s.root=y,s._nodes.push(y);var E=p.children;if(E)for(var C=0;C<E.length;C++)l(E[C],y)}s.root.updateDepthAndHeight(0);var u=S(t,{coordDimensions:["value"],dimensionsCount:i}),h=new v(u,a);return h.initData(t),e&&e(h),T({mainData:h,struct:s,structAttr:"tree"}),s.update(),s};function c(r,a){var n=a.children;if(r.parentNode===a)return;n.push(r),r.parentNode=a}var o=f;U.exports=o},BtR2:function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="LikeOutlined";var f=P.a=x.forwardRef(m)},BuqR:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("bYtY"),v=d("6uqw"),S=d("XxSj"),m=d("YOMW"),f=d("OELB"),c=f.reformIntervals,o=v.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(e,s){o.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var t=this._mode=this._determineMode();r[this._mode].call(this),this._resetSelected(e,s);var i=this.option.categories;this.resetVisual(function(l,u){t==="categories"?(l.mappingMethod="category",l.categories=T.clone(i)):(l.dataExtent=this.getExtent(),l.mappingMethod="piecewise",l.pieceList=T.map(this._pieceList,function(h){var h=T.clone(h);return u!=="inRange"&&(h.visual=null),h}))})},completeVisualOption:function(){var e=this.option,s={},t=S.listVisualTypes(),i=this.isCategory();T.each(e.pieces,function(u){T.each(t,function(h){u.hasOwnProperty(h)&&(s[h]=1)})}),T.each(s,function(u,h){var p=0;T.each(this.stateList,function(g){p|=l(e,g,h)||l(e.target,g,h)},this),!p&&T.each(this.stateList,function(g){(e[g]||(e[g]={}))[h]=m.get(h,g==="inRange"?"active":"inactive",i)})},this);function l(u,h,p){return u&&u[h]&&(T.isObject(u[h])?u[h].hasOwnProperty(p):u[h]===p)}v.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,s){var t=this.option,i=this._pieceList,l=(s?t:e).selected||{};if(t.selected=l,T.each(i,function(h,p){var g=this.getSelectedMapKey(h);l.hasOwnProperty(g)||(l[g]=!0)},this),t.selectedMode==="single"){var u=!1;T.each(i,function(h,p){var g=this.getSelectedMapKey(h);l[g]&&(u?l[g]=!1:u=!0)},this)}},getSelectedMapKey:function(e){return this._mode==="categories"?e.value+"":e.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=T.clone(e)},getValueState:function(e){var s=S.findPieceIndex(e,this._pieceList);return s!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[s])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var s=[];return this.eachTargetSeries(function(t){var i=[],l=t.getData();l.each(this.getDataDimension(l),function(u,h){var p=S.findPieceIndex(u,this._pieceList);p===e&&i.push(h)},this),s.push({seriesId:t.id,dataIndex:i})},this),s},getRepresentValue:function(e){var s;if(this.isCategory())s=e.value;else if(e.value!=null)s=e.value;else{var t=e.interval||[];s=t[0]===-Infinity&&t[1]===Infinity?0:(t[0]+t[1])/2}return s},getVisualMeta:function(e){if(this.isCategory())return;var s=[],t=[],i=this;function l(g,A){var y=i.getRepresentValue({interval:g});A||(A=i.getValueState(y));var E=e(y,A);g[0]===-Infinity?t[0]=E:g[1]===Infinity?t[1]=E:s.push({value:g[0],color:E},{value:g[1],color:E})}var u=this._pieceList.slice();if(!u.length)u.push({interval:[-Infinity,Infinity]});else{var h=u[0].interval[0];h!==-Infinity&&u.unshift({interval:[-Infinity,h]}),h=u[u.length-1].interval[1],h!==Infinity&&u.push({interval:[h,Infinity]})}var p=-Infinity;return T.each(u,function(g){var A=g.interval;A&&(A[0]>p&&l([p,A[0]],"outOfRange"),l(A.slice()),p=A[1])},this),{stops:s,outerColors:t}}}),r={splitNumber:function(){var e=this.option,s=this._pieceList,t=Math.min(e.precision,20),i=this.getExtent(),l=e.splitNumber;l=Math.max(parseInt(l,10),1),e.splitNumber=l;for(var u=(i[1]-i[0])/l;+u.toFixed(t)!==u&&t<5;)t++;e.precision=t,u=+u.toFixed(t),e.minOpen&&s.push({interval:[-Infinity,i[0]],close:[0,0]});for(var h=0,p=i[0];h<l;p+=u,h++){var g=h===l-1?i[1]:p+u;s.push({interval:[p,g],close:[1,1]})}e.maxOpen&&s.push({interval:[i[1],Infinity],close:[0,0]}),c(s),T.each(s,function(A,y){A.index=y,A.text=this.formatValueText(A.interval)},this)},categories:function(){var e=this.option;T.each(e.categories,function(s){this._pieceList.push({text:this.formatValueText(s,!0),value:s})},this),a(e,this._pieceList)},pieces:function(){var e=this.option,s=this._pieceList;T.each(e.pieces,function(t,i){T.isObject(t)||(t={value:t});var l={text:"",index:i};if(t.label!=null&&(l.text=t.label),t.hasOwnProperty("value")){var u=l.value=t.value;l.interval=[u,u],l.close=[1,1]}else{for(var h=l.interval=[],p=l.close=[0,0],g=[1,0,1],A=[-Infinity,Infinity],y=[],E=0;E<2;E++){for(var C=[["gte","gt","min"],["lte","lt","max"]][E],w=0;w<3&&h[E]==null;w++)h[E]=t[C[w]],p[E]=g[w],y[E]=w===2;h[E]==null&&(h[E]=A[E])}y[0]&&h[1]===Infinity&&(p[0]=0),y[1]&&h[0]===-Infinity&&(p[1]=0),h[0]===h[1]&&p[0]&&p[1]&&(l.value=h[0])}l.visual=S.retrieveVisuals(t),s.push(l)},this),a(e,s),c(s),T.each(s,function(t){var i=t.close,l=[["<","\u2264"][i[1]],[">","\u2265"][i[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,l)},this)}};function a(e,s){var t=e.inverse;(e.orient==="vertical"?!t:t)&&s.reverse()}var n=o;U.exports=n},BvKs:function(U,P,d){"use strict";d.d(P,"a",function(){return _t});var O=d("pVnL"),x=d.n(O),T=d("lSNA"),v=d.n(T),S=d("lwsE"),m=d.n(S),f=d("W8MJ"),c=d.n(f),o=d("7W2i"),r=d.n(o),a=d("LQ03"),n=d.n(a),e=d("q1tI"),s=d("VTBJ"),t=d("1OyB"),i=d("vuIU"),l=d("JX7q"),u=d("Ji7U"),h=d("LK+K"),p=d("I8Z2"),g=d("BGR+"),A=d("wx14"),y=d("rePB"),E=d("4IlW"),C=d("2GS6"),w=d("Gytx"),b=d.n(w),I=d("TSYQ"),_=d.n(I),L=d("U8pU"),D=d("ODXe"),N=/iPhone/i,R=/iPod/i,B=/iPad/i,M=/\bAndroid(?:.+)Mobile\b/i,H=/Android/i,F=/\bAndroid(?:.+)SD4930UR\b/i,K=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,j=/Windows Phone/i,V=/\bWindows(?:.+)ARM\b/i,z=/BlackBerry/i,Y=/BB10/i,ee=/Opera Mini/i,fe=/\b(CriOS|Chrome)(?:.+)Mobile/i,ie=/Mobile(?:.+)Firefox\b/i;function we(at,bt){return at.test(bt)}function Ce(at){var bt=at||(typeof navigator!="undefined"?navigator.userAgent:""),kt=bt.split("[FBAN");if(typeof kt[1]!="undefined"){var Pt=kt,Et=Object(D.a)(Pt,1);bt=Et[0]}if(kt=bt.split("Twitter"),typeof kt[1]!="undefined"){var Ht=kt,ot=Object(D.a)(Ht,1);bt=ot[0]}var Mt={apple:{phone:we(N,bt)&&!we(j,bt),ipod:we(R,bt),tablet:!we(N,bt)&&we(B,bt)&&!we(j,bt),device:(we(N,bt)||we(R,bt)||we(B,bt))&&!we(j,bt)},amazon:{phone:we(F,bt),tablet:!we(F,bt)&&we(K,bt),device:we(F,bt)||we(K,bt)},android:{phone:!we(j,bt)&&we(F,bt)||!we(j,bt)&&we(M,bt),tablet:!we(j,bt)&&!we(F,bt)&&!we(M,bt)&&(we(K,bt)||we(H,bt)),device:!we(j,bt)&&(we(F,bt)||we(K,bt)||we(M,bt)||we(H,bt))||we(/\bokhttp\b/i,bt)},windows:{phone:we(j,bt),tablet:we(V,bt),device:we(j,bt)||we(V,bt)},other:{blackberry:we(z,bt),blackberry10:we(Y,bt),opera:we(ee,bt),firefox:we(ie,bt),chrome:we(fe,bt),device:we(z,bt)||we(Y,bt)||we(ee,bt)||we(ie,bt)||we(fe,bt)},any:null,phone:null,tablet:null};return Mt.any=Mt.apple.device||Mt.android.device||Mt.windows.device||Mt.other.device,Mt.phone=Mt.apple.phone||Mt.android.phone||Mt.windows.phone,Mt.tablet=Mt.apple.tablet||Mt.android.tablet||Mt.windows.tablet,Mt}var Le=Object(s.a)(Object(s.a)({},Ce()),{},{isMobile:Ce}),He=Le;function ce(){}function Pe(at,bt,kt){var Pt=bt||"";return at.key||"".concat(Pt,"item_").concat(kt)}function Q(at){return"".concat(at,"-menu-")}function me(at,bt){var kt=-1;e.Children.forEach(at,function(Pt){kt+=1,Pt&&Pt.type&&Pt.type.isMenuItemGroup?e.Children.forEach(Pt.props.children,function(Et){kt+=1,bt(Et,kt)}):bt(Pt,kt)})}function Je(at,bt,kt){if(!at||kt.find)return;e.Children.forEach(at,function(Pt){if(Pt){var Et=Pt.type;if(!Et||!(Et.isSubMenu||Et.isMenuItem||Et.isMenuItemGroup))return;bt.indexOf(Pt.key)!==-1?kt.find=!0:Pt.props.children&&Je(Pt.props.children,bt,kt)}})}var re=["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"],G=function(bt){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pt=bt&&typeof bt.getBoundingClientRect=="function"&&bt.getBoundingClientRect().width;if(Pt){if(kt){var Et=getComputedStyle(bt),Ht=Et.marginLeft,ot=Et.marginRight;Pt+=+Ht.replace("px","")+ +ot.replace("px","")}Pt=+Pt.toFixed(6)}return Pt||0},X=function(bt,kt,Pt){bt&&Object(L.a)(bt.style)==="object"&&(bt.style[kt]=Pt)},J=function(){return He.any},Ae=d("KQm4"),he=d("Ff2n"),Me=d("i8i4"),Ie=d("bdgK"),oe=d("Uaa1"),pe=d("HTfv"),Oe={adjustX:1,adjustY:1},Ye={topLeft:{points:["bl","tl"],overflow:Oe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Oe,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Oe,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Oe,offset:[4,0]}},it={topLeft:{points:["bl","tl"],overflow:Oe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Oe,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Oe,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Oe,offset:[4,0]}},et=Ye,Te=0,tt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ze=function(bt,kt,Pt){var Et=Q(kt),Ht=bt.getState();bt.setState({defaultActiveFirst:Object(s.a)(Object(s.a)({},Ht.defaultActiveFirst),{},Object(y.a)({},Et,Pt))})},dt=function(at){Object(u.a)(kt,at);var bt=Object(h.a)(kt);function kt(Pt){var Et;Object(t.a)(this,kt),Et=bt.call(this,Pt),Et.onDestroy=function(gr){Et.props.onDestroy(gr)},Et.onKeyDown=function(gr){var Qr=gr.keyCode,ln=Et.menuInstance,_n=Et.props,Mn=_n.isOpen,li=_n.store;if(Qr===E.a.ENTER)return Et.onTitleClick(gr),ze(li,Et.props.eventKey,!0),!0;if(Qr===E.a.RIGHT)return Mn?ln.onKeyDown(gr):(Et.triggerOpenChange(!0),ze(li,Et.props.eventKey,!0)),!0;if(Qr===E.a.LEFT){var ai;if(Mn)ai=ln.onKeyDown(gr);else return;return ai||(Et.triggerOpenChange(!1),ai=!0),ai}return Mn&&(Qr===E.a.UP||Qr===E.a.DOWN)?ln.onKeyDown(gr):void 0},Et.onOpenChange=function(gr){Et.props.onOpenChange(gr)},Et.onPopupVisibleChange=function(gr){Et.triggerOpenChange(gr,gr?"mouseenter":"mouseleave")},Et.onMouseEnter=function(gr){var Qr=Et.props,ln=Qr.eventKey,_n=Qr.onMouseEnter,Mn=Qr.store;ze(Mn,Et.props.eventKey,!1),_n({key:ln,domEvent:gr})},Et.onMouseLeave=function(gr){var Qr=Et.props,ln=Qr.parentMenu,_n=Qr.eventKey,Mn=Qr.onMouseLeave;ln.subMenuInstance=Object(l.a)(Et),Mn({key:_n,domEvent:gr})},Et.onTitleMouseEnter=function(gr){var Qr=Et.props,ln=Qr.eventKey,_n=Qr.onItemHover,Mn=Qr.onTitleMouseEnter;_n({key:ln,hover:!0}),Mn({key:ln,domEvent:gr})},Et.onTitleMouseLeave=function(gr){var Qr=Et.props,ln=Qr.parentMenu,_n=Qr.eventKey,Mn=Qr.onItemHover,li=Qr.onTitleMouseLeave;ln.subMenuInstance=Object(l.a)(Et),Mn({key:_n,hover:!1}),li({key:_n,domEvent:gr})},Et.onTitleClick=function(gr){var Qr=Object(l.a)(Et),ln=Qr.props;if(ln.onTitleClick({key:ln.eventKey,domEvent:gr}),ln.triggerSubMenuAction==="hover")return;Et.triggerOpenChange(!ln.isOpen,"click"),ze(ln.store,Et.props.eventKey,!1)},Et.onSubMenuClick=function(gr){typeof Et.props.onClick=="function"&&Et.props.onClick(Et.addKeyPath(gr))},Et.onSelect=function(gr){Et.props.onSelect(gr)},Et.onDeselect=function(gr){Et.props.onDeselect(gr)},Et.getPrefixCls=function(){return"".concat(Et.props.rootPrefixCls,"-submenu")},Et.getActiveClassName=function(){return"".concat(Et.getPrefixCls(),"-active")},Et.getDisabledClassName=function(){return"".concat(Et.getPrefixCls(),"-disabled")},Et.getSelectedClassName=function(){return"".concat(Et.getPrefixCls(),"-selected")},Et.getOpenClassName=function(){return"".concat(Et.props.rootPrefixCls,"-submenu-open")},Et.saveMenuInstance=function(gr){Et.menuInstance=gr},Et.addKeyPath=function(gr){return Object(s.a)(Object(s.a)({},gr),{},{keyPath:(gr.keyPath||[]).concat(Et.props.eventKey)})},Et.triggerOpenChange=function(gr,Qr){var ln=Et.props.eventKey,_n=function(){Et.onOpenChange({key:ln,item:Object(l.a)(Et),trigger:Qr,open:gr})};Qr==="mouseenter"?Et.mouseenterTimeout=setTimeout(function(){_n()},0):_n()},Et.isChildrenSelected=function(){var gr={find:!1};return Je(Et.props.children,Et.props.selectedKeys,gr),gr.find},Et.isOpen=function(){return Et.props.openKeys.indexOf(Et.props.eventKey)!==-1},Et.adjustWidth=function(){if(!Et.subMenuTitle||!Et.menuInstance)return;var gr=Me.findDOMNode(Et.menuInstance);if(gr.offsetWidth>=Et.subMenuTitle.offsetWidth)return;gr.style.minWidth="".concat(Et.subMenuTitle.offsetWidth,"px")},Et.saveSubMenuTitle=function(gr){Et.subMenuTitle=gr},Et.getBaseProps=function(){var gr=Object(l.a)(Et),Qr=gr.props;return{mode:Qr.mode==="horizontal"?"vertical":Qr.mode,visible:Et.props.isOpen,level:Qr.level+1,inlineIndent:Qr.inlineIndent,focusable:!1,onClick:Et.onSubMenuClick,onSelect:Et.onSelect,onDeselect:Et.onDeselect,onDestroy:Et.onDestroy,selectedKeys:Qr.selectedKeys,eventKey:"".concat(Qr.eventKey,"-menu-"),openKeys:Qr.openKeys,motion:Qr.motion,onOpenChange:Et.onOpenChange,subMenuOpenDelay:Qr.subMenuOpenDelay,parentMenu:Object(l.a)(Et),subMenuCloseDelay:Qr.subMenuCloseDelay,forceSubMenuRender:Qr.forceSubMenuRender,triggerSubMenuAction:Qr.triggerSubMenuAction,builtinPlacements:Qr.builtinPlacements,defaultActiveFirst:Qr.store.getState().defaultActiveFirst[Q(Qr.eventKey)],multiple:Qr.multiple,prefixCls:Qr.rootPrefixCls,id:Et.internalMenuId,manualRef:Et.saveMenuInstance,itemIcon:Qr.itemIcon,expandIcon:Qr.expandIcon,direction:Qr.direction}},Et.getMotion=function(gr,Qr){var ln=Object(l.a)(Et),_n=ln.haveRendered,Mn=Et.props,li=Mn.motion,ai=Mn.rootPrefixCls,pi=Object(s.a)(Object(s.a)({},li),{},{leavedClassName:"".concat(ai,"-hidden"),removeOnLeave:!1,motionAppear:_n||!Qr||gr!=="inline"});return pi};var Ht=Pt.store,ot=Pt.eventKey,Mt=Ht.getState(),xr=Mt.defaultActiveFirst;Et.isRootMenu=!1;var ur=!1;return xr&&(ur=xr[ot]),ze(Ht,ot,ur),Et}return Object(i.a)(kt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Et=this,Ht=this.props,ot=Ht.mode,Mt=Ht.parentMenu,xr=Ht.manualRef;if(xr&&xr(this),ot!=="horizontal"||!Mt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Et.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Et=this.props,Ht=Et.onDestroy,ot=Et.eventKey;Ht&&Ht(ot),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Et){var Ht=this,ot=this.getBaseProps(),Mt=this.getMotion(ot.mode,ot.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||ot.visible||ot.forceSubMenuRender,!this.haveOpened)return e.createElement("div",null);var xr=ot.direction;return e.createElement(pe.default,Object.assign({visible:ot.visible},Mt),function(ur){var gr=ur.className,Qr=ur.style,ln=_()("".concat(ot.prefixCls,"-sub"),gr,Object(y.a)({},"".concat(ot.prefixCls,"-rtl"),xr==="rtl"));return e.createElement(rr,Object.assign({},ot,{id:Ht.internalMenuId,className:ln,style:Qr}),Et)})}},{key:"render",value:function(){var Et,Ht=Object(s.a)({},this.props),ot=Ht.isOpen,Mt=this.getPrefixCls(),xr=Ht.mode==="inline",ur=_()(Mt,"".concat(Mt,"-").concat(Ht.mode),(Et={},Object(y.a)(Et,Ht.className,!!Ht.className),Object(y.a)(Et,this.getOpenClassName(),ot),Object(y.a)(Et,this.getActiveClassName(),Ht.active||ot&&!xr),Object(y.a)(Et,this.getDisabledClassName(),Ht.disabled),Object(y.a)(Et,this.getSelectedClassName(),this.isChildrenSelected()),Et));this.internalMenuId||(Ht.eventKey?this.internalMenuId="".concat(Ht.eventKey,"$Menu"):(Te+=1,this.internalMenuId="$__$".concat(Te,"$Menu")));var gr={},Qr={},ln={};Ht.disabled||(gr={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Qr={onClick:this.onTitleClick},ln={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var _n={},Mn=Ht.direction;xr&&(Mn==="rtl"?_n.paddingRight=Ht.inlineIndent*Ht.level:_n.paddingLeft=Ht.inlineIndent*Ht.level);var li={};this.props.isOpen&&(li={"aria-owns":this.internalMenuId});var ai=null;Ht.mode!=="horizontal"&&(ai=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(ai=e.createElement(this.props.expandIcon,Object(s.a)({},this.props))));var pi=e.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:_n,className:"".concat(Mt,"-title"),role:"button"},ln,Qr,{"aria-expanded":ot},li,{"aria-haspopup":"true",title:typeof Ht.title=="string"?Ht.title:void 0}),Ht.title,ai||e.createElement("i",{className:"".concat(Mt,"-arrow")})),Oi=this.renderChildren(Ht.children),Ze=Ht.parentMenu.isRootMenu?Ht.parentMenu.props.getPopupContainer:function(_r){return _r.parentNode},be=tt[Ht.mode],Ne=Ht.popupOffset?{offset:Ht.popupOffset}:{},Ue=Ht.mode==="inline"?"":Ht.popupClassName;Ue+=Mn==="rtl"?" ".concat(Mt,"-rtl"):"";var Qe=Ht.disabled,Xe=Ht.triggerSubMenuAction,qe=Ht.subMenuOpenDelay,yt=Ht.forceSubMenuRender,ht=Ht.subMenuCloseDelay,Jt=Ht.builtinPlacements;re.forEach(function(_r){return delete Ht[_r]}),delete Ht.onClick;var kr=Mn==="rtl"?Object.assign({},it,Jt):Object.assign({},Ye,Jt);return delete Ht.direction,e.createElement("li",Object.assign({},Ht,gr,{className:ur,role:"menuitem"}),xr&&pi,xr&&Oi,!xr&&e.createElement(oe.a,{prefixCls:Mt,popupClassName:_()("".concat(Mt,"-popup"),Ue),getPopupContainer:Ze,builtinPlacements:kr,popupPlacement:be,popupVisible:ot,popupAlign:Ne,popup:Oi,action:Qe?[]:[Xe],mouseEnterDelay:qe,mouseLeaveDelay:ht,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:yt},pi))}}]),kt}(e.Component);dt.defaultProps={onMouseEnter:ce,onMouseLeave:ce,onTitleMouseEnter:ce,onTitleMouseLeave:ce,onTitleClick:ce,manualRef:ce,mode:"vertical",title:""};var Ot=Object(p.b)(function(at,bt){var kt=at.openKeys,Pt=at.activeKey,Et=at.selectedKeys,Ht=bt.eventKey,ot=bt.subMenuKey;return{isOpen:kt.indexOf(Ht)>-1,active:Pt[ot]===Ht,selectedKeys:Et}})(dt);Ot.isSubMenu=!0;var Tt=Ot,Ct="menuitem-overflowed",Nt=.5,Be=function(at){Object(u.a)(kt,at);var bt=Object(h.a)(kt);function kt(){var Pt;return Object(t.a)(this,kt),Pt=bt.apply(this,arguments),Pt.resizeObserver=null,Pt.mutationObserver=null,Pt.originalTotalWidth=0,Pt.overflowedItems=[],Pt.menuItemSizes=[],Pt.cancelFrameId=null,Pt.state={lastVisibleIndex:void 0},Pt.getMenuItemNodes=function(){var Et=Pt.props.prefixCls,Ht=Me.findDOMNode(Object(l.a)(Pt));return Ht?[].slice.call(Ht.children).filter(function(ot){return ot.className.split(" ").indexOf("".concat(Et,"-overflowed-submenu"))<0}):[]},Pt.getOverflowedSubMenuItem=function(Et,Ht,ot){var Mt=Pt.props,xr=Mt.overflowedIndicator,ur=Mt.level,gr=Mt.mode,Qr=Mt.prefixCls,ln=Mt.theme;if(ur!==1||gr!=="horizontal")return null;var _n=Pt.props.children[0],Mn=_n.props,li=Mn.children,ai=Mn.title,pi=Mn.style,Oi=Object(he.a)(Mn,["children","title","style"]),Ze=Object(s.a)({},pi),be="".concat(Et,"-overflowed-indicator"),Ne="".concat(Et,"-overflowed-indicator");Ht.length===0&&ot!==!0?Ze=Object(s.a)(Object(s.a)({},Ze),{},{display:"none"}):ot&&(Ze=Object(s.a)(Object(s.a)({},Ze),{},{visibility:"hidden",position:"absolute"}),be="".concat(be,"-placeholder"),Ne="".concat(Ne,"-placeholder"));var Ue=ln?"".concat(Qr,"-").concat(ln):"",Qe={};return re.forEach(function(Xe){Oi[Xe]!==void 0&&(Qe[Xe]=Oi[Xe])}),e.createElement(Tt,Object.assign({title:xr,className:"".concat(Qr,"-overflowed-submenu"),popupClassName:Ue},Qe,{key:be,eventKey:Ne,disabled:!1,style:Ze}),Ht)},Pt.setChildrenWidthAndResize=function(){if(Pt.props.mode!=="horizontal")return;var Et=Me.findDOMNode(Object(l.a)(Pt));if(!Et)return;var Ht=Et.children;if(!Ht||Ht.length===0)return;var ot=Et.children[Ht.length-1];X(ot,"display","inline-block");var Mt=Pt.getMenuItemNodes(),xr=Mt.filter(function(ur){return ur.className.split(" ").indexOf(Ct)>=0});xr.forEach(function(ur){X(ur,"display","inline-block")}),Pt.menuItemSizes=Mt.map(function(ur){return G(ur,!0)}),xr.forEach(function(ur){X(ur,"display","none")}),Pt.overflowedIndicatorWidth=G(Et.children[Et.children.length-1],!0),Pt.originalTotalWidth=Pt.menuItemSizes.reduce(function(ur,gr){return ur+gr},0),Pt.handleResize(),X(ot,"display","none")},Pt.handleResize=function(){if(Pt.props.mode!=="horizontal")return;var Et=Me.findDOMNode(Object(l.a)(Pt));if(!Et)return;var Ht=G(Et);Pt.overflowedItems=[];var ot=0,Mt;Pt.originalTotalWidth>Ht+Nt&&(Mt=-1,Pt.menuItemSizes.forEach(function(xr){ot+=xr,ot+Pt.overflowedIndicatorWidth<=Ht&&(Mt+=1)})),Pt.setState({lastVisibleIndex:Mt})},Pt}return Object(i.a)(kt,[{key:"componentDidMount",value:function(){var Et=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Ht=Me.findDOMNode(this);if(!Ht)return;this.resizeObserver=new Ie.default(function(ot){ot.forEach(function(){var Mt=Et.cancelFrameId;cancelAnimationFrame(Mt),Et.cancelFrameId=requestAnimationFrame(Et.setChildrenWidthAndResize)})}),[].slice.call(Ht.children).concat(Ht).forEach(function(ot){Et.resizeObserver.observe(ot)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Et.resizeObserver.disconnect(),[].slice.call(Ht.children).concat(Ht).forEach(function(ot){Et.resizeObserver.observe(ot)}),Et.setChildrenWidthAndResize()}),this.mutationObserver.observe(Ht,{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(Et){var Ht=this,ot=this.state.lastVisibleIndex;return(Et||[]).reduce(function(Mt,xr,ur){var gr=xr;if(Ht.props.mode==="horizontal"){var Qr=Ht.getOverflowedSubMenuItem(xr.props.eventKey,[]);ot!==void 0&&Ht.props.className.indexOf("".concat(Ht.props.prefixCls,"-root"))!==-1&&(ur>ot&&(gr=e.cloneElement(xr,{style:{display:"none"},eventKey:"".concat(xr.props.eventKey,"-hidden"),className:"".concat(Ct)})),ur===ot+1&&(Ht.overflowedItems=Et.slice(ot+1).map(function(_n){return e.cloneElement(_n,{key:_n.props.eventKey,mode:"vertical-left"})}),Qr=Ht.getOverflowedSubMenuItem(xr.props.eventKey,Ht.overflowedItems)));var ln=[].concat(Object(Ae.a)(Mt),[Qr,gr]);return ur===Et.length-1&&ln.push(Ht.getOverflowedSubMenuItem(xr.props.eventKey,[],!0)),ln}return[].concat(Object(Ae.a)(Mt),[gr])},[])}},{key:"render",value:function(){var Et=this.props,Ht=Et.visible,ot=Et.prefixCls,Mt=Et.overflowedIndicator,xr=Et.mode,ur=Et.level,gr=Et.tag,Qr=Et.children,ln=Et.theme,_n=Object(he.a)(Et,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Mn=gr;return e.createElement(Mn,Object.assign({},_n),this.renderChildren(Qr))}}]),kt}(e.Component);Be.defaultProps={tag:"div",className:""};var $=Be;function Z(at){return at.length?at.every(function(bt){return!!bt.props.disabled}):!0}function Re(at,bt,kt){var Pt=at.getState();at.setState({activeKey:Object(s.a)(Object(s.a)({},Pt.activeKey),{},Object(y.a)({},bt,kt))})}function De(at){return at.eventKey||"0-menu-"}function ae(at,bt){var kt=bt,Pt=at.children,Et=at.eventKey;if(kt){var Ht;if(me(Pt,function(ot,Mt){ot&&ot.props&&!ot.props.disabled&&kt===Pe(ot,Et,Mt)&&(Ht=!0)}),Ht)return kt}return kt=null,at.defaultActiveFirst&&me(Pt,function(ot,Mt){!kt&&ot&&!ot.props.disabled&&(kt=Pe(ot,Et,Mt))}),kt}function gt(at){if(at){var bt=this.instanceArray.indexOf(at);bt!==-1?this.instanceArray[bt]=at:this.instanceArray.push(at)}}var jt=function(at){Object(u.a)(kt,at);var bt=Object(h.a)(kt);function kt(Pt){var Et;return Object(t.a)(this,kt),Et=bt.call(this,Pt),Et.onKeyDown=function(Ht,ot){var Mt=Ht.keyCode,xr;if(Et.getFlatInstanceArray().forEach(function(gr){gr&&gr.props.active&&gr.onKeyDown&&(xr=gr.onKeyDown(Ht))}),xr)return 1;var ur=null;return(Mt===E.a.UP||Mt===E.a.DOWN)&&(ur=Et.step(Mt===E.a.UP?-1:1)),ur?(Ht.preventDefault(),Re(Et.props.store,De(Et.props),ur.props.eventKey),typeof ot=="function"&&ot(ur),1):void 0},Et.onItemHover=function(Ht){var ot=Ht.key,Mt=Ht.hover;Re(Et.props.store,De(Et.props),Mt?ot:null)},Et.onDeselect=function(Ht){Et.props.onDeselect(Ht)},Et.onSelect=function(Ht){Et.props.onSelect(Ht)},Et.onClick=function(Ht){Et.props.onClick(Ht)},Et.onOpenChange=function(Ht){Et.props.onOpenChange(Ht)},Et.onDestroy=function(Ht){Et.props.onDestroy(Ht)},Et.getFlatInstanceArray=function(){return Et.instanceArray},Et.step=function(Ht){var ot=Et.getFlatInstanceArray(),Mt=Et.props.store.getState().activeKey[De(Et.props)],xr=ot.length;if(!xr)return null;Ht<0&&(ot=ot.concat().reverse());var ur=-1;if(ot.every(function(_n,Mn){return _n&&_n.props.eventKey===Mt?(ur=Mn,!1):!0}),!Et.props.defaultActiveFirst&&ur!==-1&&Z(ot.slice(ur,xr-1)))return;var gr=(ur+1)%xr,Qr=gr;do{var ln=ot[Qr];if(!ln||ln.props.disabled)Qr=(Qr+1)%xr;else return ln}while(Qr!==gr);return null},Et.renderCommonMenuItem=function(Ht,ot,Mt){var xr=Et.props.store.getState(),ur=Object(l.a)(Et),gr=ur.props,Qr=Pe(Ht,gr.eventKey,ot),ln=Ht.props;if(!ln||typeof Ht.type=="string")return Ht;var _n=Qr===xr.activeKey,Mn=Object(s.a)(Object(s.a)({mode:ln.mode||gr.mode,level:gr.level,inlineIndent:gr.inlineIndent,renderMenuItem:Et.renderMenuItem,rootPrefixCls:gr.prefixCls,index:ot,parentMenu:gr.parentMenu,manualRef:ln.disabled?void 0:Object(C.a)(Ht.ref,gt.bind(Object(l.a)(Et))),eventKey:Qr,active:!ln.disabled&&_n,multiple:gr.multiple,onClick:function(ai){(ln.onClick||ce)(ai),Et.onClick(ai)},onItemHover:Et.onItemHover,motion:gr.motion,subMenuOpenDelay:gr.subMenuOpenDelay,subMenuCloseDelay:gr.subMenuCloseDelay,forceSubMenuRender:gr.forceSubMenuRender,onOpenChange:Et.onOpenChange,onDeselect:Et.onDeselect,onSelect:Et.onSelect,builtinPlacements:gr.builtinPlacements,itemIcon:ln.itemIcon||Et.props.itemIcon,expandIcon:ln.expandIcon||Et.props.expandIcon},Mt),{},{direction:gr.direction});return(gr.mode==="inline"||J())&&(Mn.triggerSubMenuAction="click"),e.cloneElement(Ht,Mn)},Et.renderMenuItem=function(Ht,ot,Mt){if(!Ht)return null;var xr=Et.props.store.getState(),ur={openKeys:xr.openKeys,selectedKeys:xr.selectedKeys,triggerSubMenuAction:Et.props.triggerSubMenuAction,subMenuKey:Mt};return Et.renderCommonMenuItem(Ht,ot,ur)},Pt.store.setState({activeKey:Object(s.a)(Object(s.a)({},Pt.store.getState().activeKey),{},Object(y.a)({},Pt.eventKey,ae(Pt,Pt.activeKey)))}),Et.instanceArray=[],Et}return Object(i.a)(kt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Et){return this.props.visible||Et.visible||this.props.className!==Et.className||!b()(this.props.style,Et.style)}},{key:"componentDidUpdate",value:function(Et){var Ht=this.props,ot="activeKey"in Ht?Ht.activeKey:Ht.store.getState().activeKey[De(Ht)],Mt=ae(Ht,ot);if(Mt!==ot)Re(Ht.store,De(Ht),Mt);else if("activeKey"in Et){var xr=ae(Et,Et.activeKey);Mt!==xr&&Re(Ht.store,De(Ht),Mt)}}},{key:"render",value:function(){var Et=this,Ht=Object(A.a)({},this.props);this.instanceArray=[];var ot=_()(Ht.prefixCls,Ht.className,"".concat(Ht.prefixCls,"-").concat(Ht.mode)),Mt={className:ot,role:Ht.role||"menu"};Ht.id&&(Mt.id=Ht.id),Ht.focusable&&(Mt.tabIndex=0,Mt.onKeyDown=this.onKeyDown);var xr=Ht.prefixCls,ur=Ht.eventKey,gr=Ht.visible,Qr=Ht.level,ln=Ht.mode,_n=Ht.overflowedIndicator,Mn=Ht.theme;return re.forEach(function(li){return delete Ht[li]}),delete Ht.onClick,e.createElement($,Object.assign({},Ht,{prefixCls:xr,mode:ln,tag:"ul",level:Qr,theme:Mn,visible:gr,overflowedIndicator:_n},Mt),e.Children.map(Ht.children,function(li,ai){return Et.renderMenuItem(li,ai,ur||"0-menu-")}))}}]),kt}(e.Component);jt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ce};var ut=Object(p.b)()(jt),rr=ut,pr=d("Kwbf");function nn(at,bt,kt){var Pt=at.prefixCls,Et=at.motion,Ht=at.defaultMotions,ot=Ht===void 0?{}:Ht,Mt=at.openAnimation,xr=at.openTransitionName,ur=bt.switchingModeFromInline;if(Et)return Et;if(Object(L.a)(Mt)==="object"&&Mt)Object(pr.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Mt=="string")return{motionName:"".concat(Pt,"-open-").concat(Mt)};if(xr)return{motionName:xr};var gr=ot[kt];return gr||(ur?null:ot.other)}var mr=function(at){Object(u.a)(kt,at);var bt=Object(h.a)(kt);function kt(Pt){var Et;Object(t.a)(this,kt),Et=bt.call(this,Pt),Et.inlineOpenKeys=[],Et.onSelect=function(Mt){var xr=Object(l.a)(Et),ur=xr.props;if(ur.selectable){var gr=Et.store.getState(),Qr=gr.selectedKeys,ln=Mt.key;ur.multiple?Qr=Qr.concat([ln]):Qr=[ln],"selectedKeys"in ur||Et.store.setState({selectedKeys:Qr}),ur.onSelect(Object(s.a)(Object(s.a)({},Mt),{},{selectedKeys:Qr}))}},Et.onClick=function(Mt){var xr=Et.getRealMenuMode(),ur=Object(l.a)(Et),gr=ur.store,Qr=ur.props.onOpenChange;xr!=="inline"&&!("openKeys"in Et.props)&&(gr.setState({openKeys:[]}),Qr([])),Et.props.onClick(Mt)},Et.onKeyDown=function(Mt,xr){Et.innerMenu.getWrappedInstance().onKeyDown(Mt,xr)},Et.onOpenChange=function(Mt){var xr=Object(l.a)(Et),ur=xr.props,gr=Et.store.getState().openKeys.concat(),Qr=!1,ln=function(Mn){var li=!1;if(Mn.open)li=gr.indexOf(Mn.key)===-1,li&&gr.push(Mn.key);else{var ai=gr.indexOf(Mn.key);li=ai!==-1,li&&gr.splice(ai,1)}Qr=Qr||li};Array.isArray(Mt)?Mt.forEach(ln):ln(Mt),Qr&&("openKeys"in Et.props||Et.store.setState({openKeys:gr}),ur.onOpenChange(gr))},Et.onDeselect=function(Mt){var xr=Object(l.a)(Et),ur=xr.props;if(ur.selectable){var gr=Et.store.getState().selectedKeys.concat(),Qr=Mt.key,ln=gr.indexOf(Qr);ln!==-1&&gr.splice(ln,1),"selectedKeys"in ur||Et.store.setState({selectedKeys:gr}),ur.onDeselect(Object(s.a)(Object(s.a)({},Mt),{},{selectedKeys:gr}))}},Et.onMouseEnter=function(Mt){Et.restoreModeVerticalFromInline();var xr=Et.props.onMouseEnter;xr&&xr(Mt)},Et.onTransitionEnd=function(Mt){var xr=Mt.propertyName==="width"&&Mt.target===Mt.currentTarget,ur=Mt.target.className,gr=Object.prototype.toString.call(ur)==="[object SVGAnimatedString]"?ur.animVal:ur,Qr=Mt.propertyName==="font-size"&&gr.indexOf("anticon")>=0;(xr||Qr)&&Et.restoreModeVerticalFromInline()},Et.setInnerMenu=function(Mt){Et.innerMenu=Mt},Et.isRootMenu=!0;var Ht=Pt.defaultSelectedKeys,ot=Pt.defaultOpenKeys;return"selectedKeys"in Pt&&(Ht=Pt.selectedKeys||[]),"openKeys"in Pt&&(ot=Pt.openKeys||[]),Et.store=Object(p.c)({selectedKeys:Ht,openKeys:ot,activeKey:{"0-menu-":ae(Pt,Pt.activeKey)}}),Et.state={switchingModeFromInline:!1},Et}return Object(i.a)(kt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Et){this.updateOpentKeysWhenSwitchMode(Et),this.updateMiniStore();var Ht=this.props,ot=Ht.siderCollapsed,Mt=Ht.inlineCollapsed,xr=Ht.onOpenChange;(!Et.inlineCollapsed&&Mt||!Et.siderCollapsed&&ot)&&xr([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Et){var Ht=this.props,ot=this.store,Mt=this.inlineOpenKeys,xr=ot.getState(),ur={};Et.mode==="inline"&&Ht.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Ht||((Ht.inlineCollapsed&&!Et.inlineCollapsed||Ht.siderCollapsed&&!Et.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=xr.openKeys.concat(),ur.openKeys=[]),(!Ht.inlineCollapsed&&Et.inlineCollapsed||!Ht.siderCollapsed&&Et.siderCollapsed)&&(ur.openKeys=Mt,this.inlineOpenKeys=[])),Object.keys(ur).length&&ot.setState(ur)}},{key:"updateMenuDisplay",value:function(){var Et=this.props.collapsedWidth,Ht=this.store,ot=this.prevOpenKeys,Mt=this.getInlineCollapsed()&&(Et===0||Et==="0"||Et==="0px");Mt?(this.prevOpenKeys=Ht.getState().openKeys.concat(),this.store.setState({openKeys:[]})):ot&&(this.store.setState({openKeys:ot}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Et=this.props.mode,Ht=this.state.switchingModeFromInline,ot=this.getInlineCollapsed();return Ht&&ot?"inline":ot?"vertical":Et}},{key:"getInlineCollapsed",value:function(){var Et=this.props,Ht=Et.inlineCollapsed,ot=Et.siderCollapsed;return ot!==void 0?ot:Ht}},{key:"restoreModeVerticalFromInline",value:function(){var Et=this.state.switchingModeFromInline;Et&&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 Et=Object(s.a)({},Object(g.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Ht=this.getRealMenuMode();return Et.className+=" ".concat(Et.prefixCls,"-root"),Et.direction==="rtl"&&(Et.className+=" ".concat(Et.prefixCls,"-rtl")),Et=Object(s.a)(Object(s.a)({},Et),{},{mode:Ht,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:nn(this.props,this.state,Ht)}),delete Et.openAnimation,delete Et.openTransitionName,e.createElement(p.a,{store:this.store},e.createElement(rr,Object.assign({},Et,{ref:this.setInnerMenu}),this.props.children))}}]),kt}(e.Component);mr.defaultProps={selectable:!0,onClick:ce,onSelect:ce,onOpenChange:ce,onDeselect:ce,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:e.createElement("span",null,"\xB7\xB7\xB7")};var vr=mr,$t=function(at){Object(u.a)(kt,at);var bt=Object(h.a)(kt);function kt(){var Pt;return Object(t.a)(this,kt),Pt=bt.apply(this,arguments),Pt.onKeyDown=function(Et){var Ht=Et.keyCode;return Ht===E.a.ENTER?(Pt.onClick(Et),!0):void 0},Pt.onMouseLeave=function(Et){var Ht=Pt.props,ot=Ht.eventKey,Mt=Ht.onItemHover,xr=Ht.onMouseLeave;Mt({key:ot,hover:!1}),xr({key:ot,domEvent:Et})},Pt.onMouseEnter=function(Et){var Ht=Pt.props,ot=Ht.eventKey,Mt=Ht.onItemHover,xr=Ht.onMouseEnter;Mt({key:ot,hover:!0}),xr({key:ot,domEvent:Et})},Pt.onClick=function(Et){var Ht=Pt.props,ot=Ht.eventKey,Mt=Ht.multiple,xr=Ht.onClick,ur=Ht.onSelect,gr=Ht.onDeselect,Qr=Ht.isSelected,ln={key:ot,keyPath:[ot],item:Object(l.a)(Pt),domEvent:Et};xr(ln),Mt?Qr?gr(ln):ur(ln):Qr||ur(ln)},Pt.saveNode=function(Et){Pt.node=Et},Pt}return Object(i.a)(kt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Et=this.props;Et.onDestroy&&Et.onDestroy(Et.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 Et,Ht=Object(s.a)({},this.props),ot=_()(this.getPrefixCls(),Ht.className,(Et={},Object(y.a)(Et,this.getActiveClassName(),!Ht.disabled&&Ht.active),Object(y.a)(Et,this.getSelectedClassName(),Ht.isSelected),Object(y.a)(Et,this.getDisabledClassName(),Ht.disabled),Et)),Mt=Object(s.a)(Object(s.a)({},Ht.attribute),{},{title:typeof Ht.title=="string"?Ht.title:void 0,className:ot,role:Ht.role||"menuitem","aria-disabled":Ht.disabled});Ht.role==="option"?Mt=Object(s.a)(Object(s.a)({},Mt),{},{role:"option","aria-selected":Ht.isSelected}):(Ht.role===null||Ht.role==="none")&&(Mt.role="none");var xr={onClick:Ht.disabled?null:this.onClick,onMouseLeave:Ht.disabled?null:this.onMouseLeave,onMouseEnter:Ht.disabled?null:this.onMouseEnter},ur=Object(s.a)({},Ht.style);Ht.mode==="inline"&&(Ht.direction==="rtl"?ur.paddingRight=Ht.inlineIndent*Ht.level:ur.paddingLeft=Ht.inlineIndent*Ht.level),re.forEach(function(Qr){return delete Ht[Qr]}),delete Ht.direction;var gr=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(gr=e.createElement(this.props.itemIcon,this.props)),e.createElement("li",Object.assign({},Object(g.default)(Ht,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Mt,xr,{style:ur,ref:this.saveNode}),Ht.children,gr)}}]),kt}(e.Component);$t.isMenuItem=!0,$t.defaultProps={onSelect:ce,onMouseEnter:ce,onMouseLeave:ce,manualRef:ce};var Xt=Object(p.b)(function(at,bt){var kt=at.activeKey,Pt=at.selectedKeys,Et=bt.eventKey,Ht=bt.subMenuKey;return{active:kt[Ht]===Et,isSelected:Pt.indexOf(Et)!==-1}})($t),ft=Xt,Ur=function(at){Object(u.a)(kt,at);var bt=Object(h.a)(kt);function kt(){var Pt;return Object(t.a)(this,kt),Pt=bt.apply(this,arguments),Pt.renderInnerMenuItem=function(Et){var Ht=Pt.props,ot=Ht.renderMenuItem,Mt=Ht.index;return ot(Et,Mt,Pt.props.subMenuKey)},Pt}return Object(i.a)(kt,[{key:"render",value:function(){var Et=Object(A.a)({},this.props),Ht=Et.className,ot=Ht===void 0?"":Ht,Mt=Et.rootPrefixCls,xr="".concat(Mt,"-item-group-title"),ur="".concat(Mt,"-item-group-list"),gr=Et.title,Qr=Et.children;return re.forEach(function(ln){return delete Et[ln]}),delete Et.onClick,delete Et.direction,e.createElement("li",Object.assign({},Et,{className:"".concat(ot," ").concat(Mt,"-item-group")}),e.createElement("div",{className:xr,title:typeof gr=="string"?gr:void 0},gr),e.createElement("ul",{className:ur},e.Children.map(Qr,this.renderInnerMenuItem)))}}]),kt}(e.Component);Ur.isMenuItemGroup=!0,Ur.defaultProps={disabled:!0};var yn=Ur,Dn=function(bt){var kt=bt.className,Pt=bt.rootPrefixCls,Et=bt.style;return e.createElement("li",{className:"".concat(kt," ").concat(Pt,"-item-divider"),style:Et})};Dn.defaultProps={disabled:!0,className:"",style:{}};var Un=Dn,wi=vr,Rn=Object(e.createContext)({inlineCollapsed:!1}),kn=Rn,Vn=d("0n0R"),Gt=function(at){r()(kt,at);var bt=n()(kt);function kt(){return m()(this,kt),bt.apply(this,arguments)}return c()(kt,[{key:"renderTitle",value:function(Et){var Ht=this.props,ot=Ht.icon,Mt=Ht.title,xr=Ht.level,ur=Ht.rootPrefixCls;if(!ot)return Et&&xr===1&&Mt&&typeof Mt=="string"?e.createElement("div",{className:"".concat(ur,"-inline-collapsed-noicon")},Mt.charAt(0)):Mt;var gr=Object(Vn.b)(Mt)&&Mt.type==="span";return e.createElement(e.Fragment,null,ot,gr?Mt:e.createElement("span",null,Mt))}},{key:"render",value:function(){var Et=this,Ht=this.props,ot=Ht.rootPrefixCls,Mt=Ht.popupClassName;return e.createElement(kn.Consumer,null,function(xr){var ur=xr.inlineCollapsed,gr=xr.antdMenuTheme;return e.createElement(Tt,x()({},Object(g.default)(Et.props,["icon"]),{title:Et.renderTitle(ur),popupClassName:_()(ot,"".concat(ot,"-").concat(gr),Mt)}))})}}]),kt}(e.Component);Gt.contextType=kn,Gt.isSubMenu=1;var st=Gt,ue=d("Zm9Q"),Ee=d("3S7+"),je=d("ZX9x"),Ve=function(at,bt){var kt={};for(var Pt in at)Object.prototype.hasOwnProperty.call(at,Pt)&&bt.indexOf(Pt)<0&&(kt[Pt]=at[Pt]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Pt=Object.getOwnPropertySymbols(at);Et<Pt.length;Et++)bt.indexOf(Pt[Et])<0&&Object.prototype.propertyIsEnumerable.call(at,Pt[Et])&&(kt[Pt[Et]]=at[Pt[Et]]);return kt},$e=function(at){r()(kt,at);var bt=n()(kt);function kt(){var Pt;return m()(this,kt),Pt=bt.apply(this,arguments),Pt.renderItem=function(Et){var Ht=Et.siderCollapsed,ot=Pt.props,Mt=ot.level,xr=ot.className,ur=ot.children,gr=ot.rootPrefixCls,Qr=Pt.props,ln=Qr.title,_n=Qr.icon,Mn=Qr.danger,li=Ve(Qr,["title","icon","danger"]);return e.createElement(kn.Consumer,null,function(ai){var pi,Oi=ai.inlineCollapsed,Ze=ai.direction,be=ln;typeof ln=="undefined"?be=Mt===1?ur:"":ln===!1&&(be="");var Ne={title:be};!Ht&&!Oi&&(Ne.title=null,Ne.visible=!1);var Ue=Object(ue.a)(ur).length;return e.createElement(Ee.a,x()({},Ne,{placement:Ze==="rtl"?"left":"right",overlayClassName:"".concat(gr,"-inline-collapsed-tooltip")}),e.createElement(ft,x()({},li,{className:_()(xr,(pi={},v()(pi,"".concat(gr,"-item-danger"),Mn),v()(pi,"".concat(gr,"-item-only-child"),(_n?Ue+1:Ue)===1),pi)),title:ln}),_n,Pt.renderItemChildren(Oi)))})},Pt}return c()(kt,[{key:"renderItemChildren",value:function(Et){var Ht=this.props,ot=Ht.icon,Mt=Ht.children,xr=Ht.level,ur=Ht.rootPrefixCls;return!ot||Object(Vn.b)(Mt)&&Mt.type==="span"?Mt&&Et&&xr===1&&typeof Mt=="string"?e.createElement("div",{className:"".concat(ur,"-inline-collapsed-noicon")},Mt.charAt(0)):Mt:e.createElement("span",null,Mt)}},{key:"render",value:function(){return e.createElement(je.a.Consumer,null,this.renderItem)}}]),kt}(e.Component);$e.isMenuItem=!0;var wt=d("H84U"),qt=d("uaoM"),Mr=d("EXcs"),an=function(at){r()(kt,at);var bt=n()(kt);function kt(Pt){var Et;return m()(this,kt),Et=bt.call(this,Pt),Et.renderMenu=function(Ht){var ot=Ht.getPopupContainer,Mt=Ht.getPrefixCls,xr=Ht.direction,ur=Et.props,gr=ur.prefixCls,Qr=ur.className,ln=ur.theme,_n={horizontal:{motionName:"slide-up"},inline:Mr.a,other:{motionName:"zoom-big"}},Mn=Mt("menu",gr),li=_()(Qr,"".concat(Mn,"-").concat(ln),v()({},"".concat(Mn,"-inline-collapsed"),Et.getInlineCollapsed()));return e.createElement(kn.Provider,{value:{inlineCollapsed:Et.getInlineCollapsed()||!1,antdMenuTheme:ln,direction:xr}},e.createElement(wi,x()({getPopupContainer:ot},Et.props,{className:li,prefixCls:Mn,direction:xr,defaultMotions:_n})))},Object(qt.a)(!("inlineCollapsed"in Pt&&Pt.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(qt.a)(!(Pt.siderCollapsed!==void 0&&"inlineCollapsed"in Pt),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),Et}return c()(kt,[{key:"getInlineCollapsed",value:function(){var Et=this.props,Ht=Et.inlineCollapsed,ot=Et.siderCollapsed;return ot!==void 0?ot:Ht}},{key:"render",value:function(){return e.createElement(wt.a,null,this.renderMenu)}}]),kt}(e.Component);an.defaultProps={className:"",theme:"light",focusable:!1};var _t=function(at){r()(kt,at);var bt=n()(kt);function kt(){return m()(this,kt),bt.apply(this,arguments)}return c()(kt,[{key:"render",value:function(){var Et=this;return e.createElement(je.a.Consumer,null,function(Ht){return e.createElement(an,x()({},Et.props,Ht))})}}]),kt}(e.Component);_t.Divider=Un,_t.Item=$e,_t.SubMenu=st,_t.ItemGroup=yn},C0SR:function(U,P,d){var O=d("YH21"),x=function(){this._track=[]};x.prototype={constructor:x,recognize:function(c,o,r){return this._doTrack(c,o,r),this._recognize(c)},clear:function(){return this._track.length=0,this},_doTrack:function(c,o,r){var a=c.touches;if(!a)return;for(var n={points:[],touches:[],target:o,event:c},e=0,s=a.length;e<s;e++){var t=a[e],i=O.clientToLocal(r,t,{});n.points.push([i.zrX,i.zrY]),n.touches.push(t)}this._track.push(n)},_recognize:function(c){for(var o in S)if(S.hasOwnProperty(o)){var r=S[o](this._track,c);if(r)return r}}};function T(f){var c=f[1][0]-f[0][0],o=f[1][1]-f[0][1];return Math.sqrt(c*c+o*o)}function v(f){return[(f[0][0]+f[1][0])/2,(f[0][1]+f[1][1])/2]}var S={pinch:function(c,o){var r=c.length;if(!r)return;var a=(c[r-1]||{}).points,n=(c[r-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var e=T(a)/T(n);!isFinite(e)&&(e=1),o.pinchScale=e;var s=v(a);return o.pinchX=s[0],o.pinchY=s[1],{type:"pinch",target:c[0].target,event:o}}}},m=x;U.exports=m},C0tN:function(U,P,d){d("0o9m"),d("8Uz6"),d("Ducp"),d("6/nd")},CBdT:function(U,P,d){var O=d("ProS");d("8waO"),d("AEZ6"),d("YNf1");var x=d("q3GZ");O.registerVisual(x)},CF2D:function(U,P,d){var O=d("ProS");d("vZI5"),d("GeKi");var x=d("6r85"),T=d("TJmX"),v=d("CbHG");O.registerPreprocessor(x),O.registerVisual(T),O.registerLayout(v)},CFYs:function(U,P,d){"use strict";var O=d("lSNA"),x=d.n(O),T=d("pVnL"),v=d.n(T),S=d("lwsE"),m=d.n(S),f=d("W8MJ"),c=d.n(f),o=d("PJYZ"),r=d.n(o),a=d("7W2i"),n=d.n(a),e=d("LQ03"),s=d.n(e),t=d("q1tI"),i=d.n(t),l=d("TSYQ"),u=d.n(l),h=d("BGR+"),p=d("V/uB"),g=d.n(p),A=d("NAnI"),y=d.n(A),E=d("J84W"),C=d.n(E),w=d("kbBi"),b=d.n(w),I=d("H84U"),_=d("CWQg"),L=d("uaoM"),D=d("Zss7"),N=d.n(D),R=2,B=.16,M=.05,H=.05,F=.15,K=5,j=4,V=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function z($e,wt,qt){var Mr;return Math.round($e.h)>=60&&Math.round($e.h)<=240?Mr=qt?Math.round($e.h)-R*wt:Math.round($e.h)+R*wt:Mr=qt?Math.round($e.h)+R*wt:Math.round($e.h)-R*wt,Mr<0?Mr+=360:Mr>=360&&(Mr-=360),Mr}function Y($e,wt,qt){if($e.h===0&&$e.s===0)return $e.s;var Mr;return qt?Mr=$e.s-B*wt:wt===j?Mr=$e.s+B:Mr=$e.s+M*wt,Mr>1&&(Mr=1),qt&&wt===K&&Mr>.1&&(Mr=.1),Mr<.06&&(Mr=.06),Number(Mr.toFixed(2))}function ee($e,wt,qt){var Mr;return qt?Mr=$e.v+H*wt:Mr=$e.v-F*wt,Mr>1&&(Mr=1),Number(Mr.toFixed(2))}function fe($e){for(var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qt=[],Mr=N()($e),an=K;an>0;an-=1){var _t=Mr.toHsv(),at=N()({h:z(_t,an,!0),s:Y(_t,an,!0),v:ee(_t,an,!0)}).toHexString();qt.push(at)}qt.push(Mr.toHexString());for(var bt=1;bt<=j;bt+=1){var kt=Mr.toHsv(),Pt=N()({h:z(kt,bt),s:Y(kt,bt),v:ee(kt,bt)}).toHexString();qt.push(Pt)}return wt.theme==="dark"?V.map(function(Et){var Ht=Et.index,ot=Et.opacity,Mt=N.a.mix(wt.backgroundColor||"#141414",qt[Ht],ot*100).toHexString();return Mt}):qt}var ie={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},we={},Ce={};Object.keys(ie).forEach(function($e){we[$e]=fe(ie[$e]),we[$e].primary=we[$e][5],Ce[$e]=fe(ie[$e],{theme:"dark",backgroundColor:"#141414"}),Ce[$e].primary=Ce[$e][5]});var Le=we.red,He=we.volcano,ce=we.gold,Pe=we.orange,Q=we.yellow,me=we.lime,Je=we.green,re=we.cyan,G=we.blue,X=we.geekblue,J=we.purple,Ae=we.magenta,he=we.grey;function Me($e){return!$e||$e<0?0:$e>100?100:$e}function Ie($e){var wt=$e.success,qt=$e.successPercent,Mr=qt;return wt&&"progress"in wt&&(Object(L.a)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),Mr=wt.progress),wt&&"percent"in wt&&(Mr=wt.percent),Mr}var oe=function($e,wt){var qt={};for(var Mr in $e)Object.prototype.hasOwnProperty.call($e,Mr)&&wt.indexOf(Mr)<0&&(qt[Mr]=$e[Mr]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var an=0,Mr=Object.getOwnPropertySymbols($e);an<Mr.length;an++)wt.indexOf(Mr[an])<0&&Object.prototype.propertyIsEnumerable.call($e,Mr[an])&&(qt[Mr[an]]=$e[Mr[an]]);return qt},pe=function(wt){var qt=[];return Object.keys(wt).forEach(function(Mr){var an=parseFloat(Mr.replace(/%/g,""));isNaN(an)||qt.push({key:an,value:wt[Mr]})}),qt=qt.sort(function(Mr,an){return Mr.key-an.key}),qt.map(function(Mr){var an=Mr.key,_t=Mr.value;return"".concat(_t," ").concat(an,"%")}).join(", ")},Oe=function(wt){var qt=wt.from,Mr=qt===void 0?ie.blue:qt,an=wt.to,_t=an===void 0?ie.blue:an,at=wt.direction,bt=at===void 0?"to right":at,kt=oe(wt,["from","to","direction"]);if(Object.keys(kt).length!==0){var Pt=pe(kt);return{backgroundImage:"linear-gradient(".concat(bt,", ").concat(Pt,")")}}return{backgroundImage:"linear-gradient(".concat(bt,", ").concat(Mr,", ").concat(_t,")")}},Ye=function(wt){var qt=wt.prefixCls,Mr=wt.percent,an=wt.strokeWidth,_t=wt.size,at=wt.strokeColor,bt=wt.strokeLinecap,kt=wt.children,Pt=wt.trailColor,Et=wt.success,Ht=at&&typeof at!="string"?Oe(at):{background:at},ot=Pt?{backgroundColor:Pt}:void 0,Mt=v()({width:"".concat(Me(Mr),"%"),height:an||(_t==="small"?6:8),borderRadius:bt==="square"?0:""},Ht),xr=Ie(wt),ur={width:"".concat(Me(xr),"%"),height:an||(_t==="small"?6:8),borderRadius:bt==="square"?0:"",backgroundColor:Et==null?void 0:Et.strokeColor},gr=xr!==void 0?t.createElement("div",{className:"".concat(qt,"-success-bg"),style:ur}):null;return t.createElement(t.Fragment,null,t.createElement("div",{className:"".concat(qt,"-outer")},t.createElement("div",{className:"".concat(qt,"-inner"),style:ot},t.createElement("div",{className:"".concat(qt,"-bg"),style:Mt}),gr)),kt)},it=Ye,et={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},Te=function(wt){var qt=wt.map(function(){return Object(t.useRef)()}),Mr=Object(t.useRef)();return Object(t.useEffect)(function(){var an=Date.now(),_t=!1;Object.keys(qt).forEach(function(at){var bt=qt[at].current;if(!bt)return;_t=!0;var kt=bt.style;kt.transitionDuration=".3s, .3s, .3s, .06s",Mr.current&&an-Mr.current<100&&(kt.transitionDuration="0s, 0s")}),_t&&(Mr.current=Date.now())}),[qt]};function tt(){return tt=Object.assign||function($e){for(var wt=1;wt<arguments.length;wt++){var qt=arguments[wt];for(var Mr in qt)Object.prototype.hasOwnProperty.call(qt,Mr)&&($e[Mr]=qt[Mr])}return $e},tt.apply(this,arguments)}function ze($e,wt){return Nt($e)||Ct($e,wt)||Ot($e,wt)||dt()}function dt(){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 Ot($e,wt){if(!$e)return;if(typeof $e=="string")return Tt($e,wt);var qt=Object.prototype.toString.call($e).slice(8,-1);if(qt==="Object"&&$e.constructor&&(qt=$e.constructor.name),qt==="Map"||qt==="Set")return Array.from($e);if(qt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(qt))return Tt($e,wt)}function Tt($e,wt){(wt==null||wt>$e.length)&&(wt=$e.length);for(var qt=0,Mr=new Array(wt);qt<wt;qt++)Mr[qt]=$e[qt];return Mr}function Ct($e,wt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object($e)))return;var qt=[],Mr=!0,an=!1,_t=void 0;try{for(var at=$e[Symbol.iterator](),bt;!(Mr=(bt=at.next()).done)&&!(qt.push(bt.value),wt&&qt.length===wt);Mr=!0);}catch(kt){an=!0,_t=kt}finally{try{!Mr&&at.return!=null&&at.return()}finally{if(an)throw _t}}return qt}function Nt($e){if(Array.isArray($e))return $e}function Be($e,wt){if($e==null)return{};var qt=$($e,wt),Mr,an;if(Object.getOwnPropertySymbols){var _t=Object.getOwnPropertySymbols($e);for(an=0;an<_t.length;an++){if(Mr=_t[an],wt.indexOf(Mr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call($e,Mr))continue;qt[Mr]=$e[Mr]}}return qt}function $($e,wt){if($e==null)return{};var qt={},Mr=Object.keys($e),an,_t;for(_t=0;_t<Mr.length;_t++){if(an=Mr[_t],wt.indexOf(an)>=0)continue;qt[an]=$e[an]}return qt}var Z=function(wt){var qt=wt.className,Mr=wt.percent,an=wt.prefixCls,_t=wt.strokeColor,at=wt.strokeLinecap,bt=wt.strokeWidth,kt=wt.style,Pt=wt.trailColor,Et=wt.trailWidth,Ht=wt.transition,ot=Be(wt,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ot.gapPosition;var Mt=Array.isArray(Mr)?Mr:[Mr],xr=Array.isArray(_t)?_t:[_t],ur=Te(Mt),gr=ze(ur,1),Qr=gr[0],ln=bt/2,_n=100-bt/2,Mn="M ".concat(at==="round"?ln:0,",").concat(ln,`
|
|
|
L `).concat(at==="round"?_n:100,",").concat(ln),li="0 0 100 ".concat(bt),ai=0;return i.a.createElement("svg",tt({className:u()("".concat(an,"-line"),qt),viewBox:li,preserveAspectRatio:"none",style:kt},ot),i.a.createElement("path",{className:"".concat(an,"-line-trail"),d:Mn,strokeLinecap:at,stroke:Pt,strokeWidth:Et||bt,fillOpacity:"0"}),Mt.map(function(pi,Oi){var Ze={strokeDasharray:"".concat(pi,"px, 100px"),strokeDashoffset:"-".concat(ai,"px"),transition:Ht||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},be=xr[Oi]||xr[xr.length-1];return ai+=pi,i.a.createElement("path",{key:Oi,className:"".concat(an,"-line-path"),d:Mn,strokeLinecap:at,stroke:be,strokeWidth:bt,fillOpacity:"0",ref:Qr[Oi],style:Ze})}))};Z.defaultProps=et;var Re=Z;function De(){return De=Object.assign||function($e){for(var wt=1;wt<arguments.length;wt++){var qt=arguments[wt];for(var Mr in qt)Object.prototype.hasOwnProperty.call(qt,Mr)&&($e[Mr]=qt[Mr])}return $e},De.apply(this,arguments)}function ae($e,wt){return pr($e)||rr($e,wt)||jt($e,wt)||gt()}function gt(){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 jt($e,wt){if(!$e)return;if(typeof $e=="string")return ut($e,wt);var qt=Object.prototype.toString.call($e).slice(8,-1);if(qt==="Object"&&$e.constructor&&(qt=$e.constructor.name),qt==="Map"||qt==="Set")return Array.from($e);if(qt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(qt))return ut($e,wt)}function ut($e,wt){(wt==null||wt>$e.length)&&(wt=$e.length);for(var qt=0,Mr=new Array(wt);qt<wt;qt++)Mr[qt]=$e[qt];return Mr}function rr($e,wt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object($e)))return;var qt=[],Mr=!0,an=!1,_t=void 0;try{for(var at=$e[Symbol.iterator](),bt;!(Mr=(bt=at.next()).done)&&!(qt.push(bt.value),wt&&qt.length===wt);Mr=!0);}catch(kt){an=!0,_t=kt}finally{try{!Mr&&at.return!=null&&at.return()}finally{if(an)throw _t}}return qt}function pr($e){if(Array.isArray($e))return $e}function nn($e,wt){if($e==null)return{};var qt=mr($e,wt),Mr,an;if(Object.getOwnPropertySymbols){var _t=Object.getOwnPropertySymbols($e);for(an=0;an<_t.length;an++){if(Mr=_t[an],wt.indexOf(Mr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call($e,Mr))continue;qt[Mr]=$e[Mr]}}return qt}function mr($e,wt){if($e==null)return{};var qt={},Mr=Object.keys($e),an,_t;for(_t=0;_t<Mr.length;_t++){if(an=Mr[_t],wt.indexOf(an)>=0)continue;qt[an]=$e[an]}return qt}var vr=0;function $t($e){return+$e.replace("%","")}function Xt($e){return Array.isArray($e)?$e:[$e]}function ft($e,wt,qt,Mr){var an=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,_t=arguments.length>5?arguments[5]:void 0,at=50-Mr/2,bt=0,kt=-at,Pt=0,Et=-2*at;switch(_t){case"left":bt=-at,kt=0,Pt=2*at,Et=0;break;case"right":bt=at,kt=0,Pt=-2*at,Et=0;break;case"bottom":kt=at,Et=2*at;break;default:}var Ht="M 50,50 m ".concat(bt,",").concat(kt,`
|
|
|
a `).concat(at,",").concat(at," 0 1 1 ").concat(Pt,",").concat(-Et,`
|
|
|
a `).concat(at,",").concat(at," 0 1 1 ").concat(-Pt,",").concat(Et),ot=Math.PI*2*at,Mt={stroke:qt,strokeDasharray:"".concat(wt/100*(ot-an),"px ").concat(ot,"px"),strokeDashoffset:"-".concat(an/2+$e/100*(ot-an),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:Ht,pathStyle:Mt}}var Ur=function(wt){var qt=wt.prefixCls,Mr=wt.strokeWidth,an=wt.trailWidth,_t=wt.gapDegree,at=wt.gapPosition,bt=wt.trailColor,kt=wt.strokeLinecap,Pt=wt.style,Et=wt.className,Ht=wt.strokeColor,ot=wt.percent,Mt=nn(wt,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),xr=Object(t.useMemo)(function(){return vr+=1,vr},[]),ur=ft(0,100,bt,Mr,_t,at),gr=ur.pathString,Qr=ur.pathStyle,ln=Xt(ot),_n=Xt(Ht),Mn=_n.find(function(Ze){return Object.prototype.toString.call(Ze)==="[object Object]"}),li=Te(ln),ai=ae(li,1),pi=ai[0],Oi=function(){var be=0;return ln.map(function(Ne,Ue){var Qe=_n[Ue]||_n[_n.length-1],Xe=Object.prototype.toString.call(Qe)==="[object Object]"?"url(#".concat(qt,"-gradient-").concat(xr,")"):"",qe=ft(be,Ne,Qe,Mr,_t,at);return be+=Ne,i.a.createElement("path",{key:Ue,className:"".concat(qt,"-circle-path"),d:qe.pathString,stroke:Xe,strokeLinecap:kt,strokeWidth:Mr,opacity:Ne===0?0:1,fillOpacity:"0",style:qe.pathStyle,ref:pi[Ue]})})};return i.a.createElement("svg",De({className:u()("".concat(qt,"-circle"),Et),viewBox:"0 0 100 100",style:Pt},Mt),Mn&&i.a.createElement("defs",null,i.a.createElement("linearGradient",{id:"".concat(qt,"-gradient-").concat(xr),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Mn).sort(function(Ze,be){return $t(Ze)-$t(be)}).map(function(Ze,be){return i.a.createElement("stop",{key:be,offset:Ze,stopColor:Mn[Ze]})}))),i.a.createElement("path",{className:"".concat(qt,"-circle-trail"),d:gr,stroke:bt,strokeLinecap:kt,strokeWidth:an||Mr,fillOpacity:"0",style:Qr}),Oi().reverse())};Ur.defaultProps=et;var yn=Ur,Dn={Line:Re,Circle:yn};function Un($e){var wt=$e.percent,qt=$e.success,Mr=$e.successPercent,an=Me(wt),_t=Ie({success:qt,successPercent:Mr});return _t?[Me(_t),Me(an-Me(_t))]:an}function wi($e){var wt=$e.success,qt=$e.strokeColor,Mr=$e.successPercent,an=qt||null,_t=Ie({success:wt,successPercent:Mr});return _t?[ie.green,an]:an}var Rn=function(wt){var qt=wt.prefixCls,Mr=wt.width,an=wt.strokeWidth,_t=wt.trailColor,at=wt.strokeLinecap,bt=wt.gapPosition,kt=wt.gapDegree,Pt=wt.type,Et=wt.children,Ht=Mr||120,ot={width:Ht,height:Ht,fontSize:Ht*.15+6},Mt=an||6,xr=bt||Pt==="dashboard"&&"bottom"||"top",ur=function(){return kt||kt===0?kt:Pt==="dashboard"?75:void 0},gr=wi(wt),Qr=Object.prototype.toString.call(gr)==="[object Object]",ln=u()("".concat(qt,"-inner"),x()({},"".concat(qt,"-circle-gradient"),Qr));return t.createElement("div",{className:ln,style:ot},t.createElement(yn,{percent:Un(wt),strokeWidth:Mt,trailWidth:Mt,strokeColor:gr,strokeLinecap:at,trailColor:_t,prefixCls:qt,gapDegree:ur(),gapPosition:xr}),Et)},kn=Rn,Vn=function(wt){for(var qt=wt.size,Mr=wt.steps,an=wt.percent,_t=an===void 0?0:an,at=wt.strokeWidth,bt=at===void 0?8:at,kt=wt.strokeColor,Pt=wt.trailColor,Et=wt.prefixCls,Ht=wt.children,ot=Math.floor(Mr*(_t/100)),Mt=qt==="small"?2:14,xr=[],ur=0;ur<Mr;ur+=1)xr.push(t.createElement("div",{key:ur,className:u()("".concat(Et,"-steps-item"),x()({},"".concat(Et,"-steps-item-active"),ur<=ot-1)),style:{backgroundColor:ur<=ot-1?kt:Pt,width:Mt,height:bt}}));return t.createElement("div",{className:"".concat(Et,"-steps-outer")},xr,Ht)},Gt=Vn,st=function($e,wt){var qt={};for(var Mr in $e)Object.prototype.hasOwnProperty.call($e,Mr)&&wt.indexOf(Mr)<0&&(qt[Mr]=$e[Mr]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var an=0,Mr=Object.getOwnPropertySymbols($e);an<Mr.length;an++)wt.indexOf(Mr[an])<0&&Object.prototype.propertyIsEnumerable.call($e,Mr[an])&&(qt[Mr[an]]=$e[Mr[an]]);return qt},ue=Object(_.a)("line","circle","dashboard"),Ee=Object(_.a)("normal","exception","active","success"),je=function($e){n()(qt,$e);var wt=s()(qt);function qt(){var Mr;return m()(this,qt),Mr=wt.apply(this,arguments),Mr.renderProgress=function(an){var _t,at=an.getPrefixCls,bt=an.direction,kt=r()(Mr),Pt=kt.props,Et=Pt.prefixCls,Ht=Pt.className,ot=Pt.size,Mt=Pt.type,xr=Pt.steps,ur=Pt.showInfo,gr=Pt.strokeColor,Qr=st(Pt,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),ln=at("progress",Et),_n=Mr.getProgressStatus(),Mn=Mr.renderProcessInfo(ln,_n);Object(L.a)(!("successPercent"in Pt),"Progress","`successPercent` is deprecated. Please use `success.percent` instead.");var li;Mt==="line"?li=xr?t.createElement(Gt,v()({},Mr.props,{strokeColor:typeof gr=="string"?gr:void 0,prefixCls:ln,steps:xr}),Mn):t.createElement(it,v()({},Mr.props,{prefixCls:ln}),Mn):(Mt==="circle"||Mt==="dashboard")&&(li=t.createElement(kn,v()({},Mr.props,{prefixCls:ln,progressStatus:_n}),Mn));var ai=u()(ln,(_t={},x()(_t,"".concat(ln,"-").concat(Mt==="dashboard"&&"circle"||xr&&"steps"||Mt),!0),x()(_t,"".concat(ln,"-status-").concat(_n),!0),x()(_t,"".concat(ln,"-show-info"),ur),x()(_t,"".concat(ln,"-").concat(ot),ot),x()(_t,"".concat(ln,"-rtl"),bt==="rtl"),_t),Ht);return t.createElement("div",v()({},Object(h.default)(Qr,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeColor","strokeLinecap","percent","steps","success","successPercent"]),{className:ai}),li)},Mr}return c()(qt,[{key:"getPercentNumber",value:function(){var an=this.props.percent,_t=an===void 0?0:an,at=Ie(this.props);return parseInt(at!==void 0?at.toString():_t.toString(),10)}},{key:"getProgressStatus",value:function(){var an=this.props.status;return Ee.indexOf(an)<0&&this.getPercentNumber()>=100?"success":an||"normal"}},{key:"renderProcessInfo",value:function(an,_t){var at=this.props,bt=at.showInfo,kt=at.format,Pt=at.type,Et=at.percent,Ht=Ie(this.props);if(!bt)return null;var ot,Mt=kt||function(ur){return"".concat(ur,"%")},xr=Pt==="line";return kt||_t!=="exception"&&_t!=="success"?ot=Mt(Me(Et),Me(Ht)):_t==="exception"?ot=xr?t.createElement(b.a,null):t.createElement(g.a,null):_t==="success"&&(ot=xr?t.createElement(C.a,null):t.createElement(y.a,null)),t.createElement("span",{className:"".concat(an,"-text"),title:typeof ot=="string"?ot:void 0},ot)}},{key:"render",value:function(){return t.createElement(I.a,null,this.renderProgress)}}]),qt}(t.Component);je.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var Ve=P.a=je},"CMP+":function(U,P,d){var O=d("bYtY"),x=d("hM6l"),T=function(S,m,f,c){x.call(this,S,m,f),this.type=c||"value",this.model=null};T.prototype={constructor:T,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return this.model.get("orient")==="horizontal"}},O.inherits(T,x);var v=T;U.exports=v},CP8R:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};P.default=O},"CWI+":function(U,P,d){},CbHG:function(U,P,d){var O=d("IwbS"),x=O.subPixelOptimize,T=d("zM3Q"),v=d("OELB"),S=v.parsePercent,m=d("bYtY"),f=m.retrieve2,c=typeof Float32Array!="undefined"?Float32Array:Array,o={seriesType:"candlestick",plan:T(),reset:function(n){var e=n.coordinateSystem,s=n.getData(),t=a(n,s),i=0,l=1,u=["x","y"],h=s.mapDimension(u[i]),p=s.mapDimension(u[l],!0),g=p[0],A=p[1],y=p[2],E=p[3];if(s.setLayout({candleWidth:t,isSimpleBox:t<=1.3}),h==null||p.length<4)return;return{progress:n.pipelineContext.large?w:C};function C(b,I){for(var _;(_=b.next())!=null;){var L=I.get(h,_),D=I.get(g,_),N=I.get(A,_),R=I.get(y,_),B=I.get(E,_),M=Math.min(D,N),H=Math.max(D,N),F=Y(M,L),K=Y(H,L),j=Y(R,L),V=Y(B,L),z=[];ee(z,K,0),ee(z,F,1),z.push(ie(V),ie(K),ie(j),ie(F)),I.setItemLayout(_,{sign:r(I,_,D,N,A),initBaseline:D>N?K[l]:F[l],ends:z,brushRect:fe(R,B,L)})}function Y(we,Ce){var Le=[];return Le[i]=Ce,Le[l]=we,isNaN(Ce)||isNaN(we)?[NaN,NaN]:e.dataToPoint(Le)}function ee(we,Ce,Le){var He=Ce.slice(),ce=Ce.slice();He[i]=x(He[i]+t/2,1,!1),ce[i]=x(ce[i]-t/2,1,!0),Le?we.push(He,ce):we.push(ce,He)}function fe(we,Ce,Le){var He=Y(we,Le),ce=Y(Ce,Le);return He[i]-=t/2,ce[i]-=t/2,{x:He[0],y:He[1],width:l?t:ce[0]-He[0],height:l?ce[1]-He[1]:t}}function ie(we){return we[i]=x(we[i],1),we}}function w(b,I){for(var _=new c(b.count*4),L=0,D,N=[],R=[],B;(B=b.next())!=null;){var M=I.get(h,B),H=I.get(g,B),F=I.get(A,B),K=I.get(y,B),j=I.get(E,B);if(isNaN(M)||isNaN(K)||isNaN(j)){_[L++]=NaN,L+=3;continue}_[L++]=r(I,B,H,F,A),N[i]=M,N[l]=K,D=e.dataToPoint(N,null,R),_[L++]=D?D[0]:NaN,_[L++]=D?D[1]:NaN,N[l]=j,D=e.dataToPoint(N,null,R),_[L++]=D?D[1]:NaN}I.setLayout("largePoints",_)}}};function r(n,e,s,t,i){var l;return s>t?l=-1:s<t?l=1:l=e>0?n.get(i,e-1)<=t?1:-1:1,l}function a(n,e){var s=n.getBaseAxis(),t,i=s.type==="category"?s.getBandWidth():(t=s.getExtent(),Math.abs(t[1]-t[0])/e.count()),l=S(f(n.get("barMaxWidth"),i),i),u=S(f(n.get("barMinWidth"),1),i),h=n.get("barWidth");return h!=null?S(h,i):Math.max(Math.min(i/2,l),u)}U.exports=o},CiB2:function(U,P,d){"use strict";d.d(P,"a",function(){return O});function O(x){if(x==null)throw new TypeError("Cannot destructure undefined")}},Cm0C:function(U,P,d){d("5NHt"),d("f3JH")},CrYA:function(U,P,d){var O=d("MFOe"),x=O.Global;U.exports={name:"sessionStorage",read:v,write:S,each:m,remove:f,clearAll:c};function T(){return x.sessionStorage}function v(o){return T().getItem(o)}function S(o,r){return T().setItem(o,r)}function m(o){for(var r=T().length-1;r>=0;r--){var a=T().key(r);o(v(a),a)}}function f(o){return T().removeItem(o)}function c(){return T().clear()}},Csr3:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("4vCz"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},D1WM:function(U,P,d){var O=d("bYtY"),x=d("hM6l"),T=function(S,m,f,c,o){x.call(this,S,m,f),this.type=c||"value",this.axisIndex=o};T.prototype={constructor:T,model:null,isHorizontal:function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"}},O.inherits(T,x);var v=T;U.exports=v},D5nY:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("4NO4"),v=T.makeInner,S=T.getDataItemValue,m=d("bYtY"),f=m.createHashMap,c=m.each,o=m.map,r=m.isArray,a=m.isString,n=m.isObject,e=m.isTypedArray,s=m.isArrayLike,t=m.extend,i=m.assert,l=d("7G+c"),u=d("k9D9"),h=u.SOURCE_FORMAT_ORIGINAL,p=u.SOURCE_FORMAT_ARRAY_ROWS,g=u.SOURCE_FORMAT_OBJECT_ROWS,A=u.SOURCE_FORMAT_KEYED_COLUMNS,y=u.SOURCE_FORMAT_UNKNOWN,E=u.SOURCE_FORMAT_TYPED_ARRAY,C=u.SERIES_LAYOUT_BY_ROW,w={Must:1,Might:2,Not:3},b=v();function I(z){var Y=z.option.source,ee=y;if(e(Y))ee=E;else if(r(Y)){Y.length===0&&(ee=p);for(var fe=0,ie=Y.length;fe<ie;fe++){var we=Y[fe];if(we==null)continue;if(r(we)){ee=p;break}else if(n(we)){ee=g;break}}}else if(n(Y)){for(var Ce in Y)if(Y.hasOwnProperty(Ce)&&s(Y[Ce])){ee=A;break}}else if(Y!=null)throw new Error("Invalid data");b(z).sourceFormat=ee}function _(z){return b(z).source}function L(z){b(z).datasetMap=f()}function D(z){var Y=z.option,ee=Y.data,fe=e(ee)?E:h,ie=!1,we=Y.seriesLayoutBy,Ce=Y.sourceHeader,Le=Y.dimensions,He=K(z);if(He){var ce=He.option;ee=ce.source,fe=b(He).sourceFormat,ie=!0,we=we||ce.seriesLayoutBy,Ce==null&&(Ce=ce.sourceHeader),Le=Le||ce.dimensions}var Pe=N(ee,fe,we,Ce,Le);b(z).source=new l({data:ee,fromDataset:ie,seriesLayoutBy:we,sourceFormat:fe,dimensionsDefine:Pe.dimensionsDefine,startIndex:Pe.startIndex,dimensionsDetectCount:Pe.dimensionsDetectCount,encodeDefine:Y.encode})}function N(z,Y,ee,fe,ie){if(!z)return{dimensionsDefine:R(ie)};var we,Ce;if(Y===p)fe==="auto"||fe==null?B(function(He){He!=null&&He!=="-"&&(a(He)?Ce==null&&(Ce=1):Ce=0)},ee,z,10):Ce=fe?1:0,!ie&&Ce===1&&(ie=[],B(function(He,ce){ie[ce]=He!=null?He:""},ee,z)),we=ie?ie.length:ee===C?z.length:z[0]?z[0].length:null;else if(Y===g)ie||(ie=M(z));else if(Y===A)ie||(ie=[],c(z,function(He,ce){ie.push(ce)}));else if(Y===h){var Le=S(z[0]);we=r(Le)&&Le.length||1}else Y===E;return{startIndex:Ce,dimensionsDefine:R(ie),dimensionsDetectCount:we}}function R(z){if(!z)return;var Y=f();return o(z,function(ee,fe){if(ee=t({},n(ee)?ee:{name:ee}),ee.name==null)return ee;ee.name+="",ee.displayName==null&&(ee.displayName=ee.name);var ie=Y.get(ee.name);return ie?ee.name+="-"+ie.count++:Y.set(ee.name,{count:1}),ee})}function B(z,Y,ee,fe){if(fe==null&&(fe=Infinity),Y===C)for(var ie=0;ie<ee.length&&ie<fe;ie++)z(ee[ie]?ee[ie][0]:null,ie);else for(var we=ee[0]||[],ie=0;ie<we.length&&ie<fe;ie++)z(we[ie],ie)}function M(z){for(var Y=0,ee;Y<z.length&&!(ee=z[Y++]););if(ee){var fe=[];return c(ee,function(ie,we){fe.push(we)}),fe}}function H(z,Y,ee){var fe={},ie=K(Y);if(!ie||!z)return fe;var we=[],Ce=[],Le=Y.ecModel,He=b(Le).datasetMap,ce=ie.uid+"_"+ee.seriesLayoutBy,Pe,Q;z=z.slice(),c(z,function(G,X){!n(G)&&(z[X]={name:G}),G.type==="ordinal"&&Pe==null&&(Pe=X,Q=re(z[X])),fe[G.name]=[]});var me=He.get(ce)||He.set(ce,{categoryWayDim:Q,valueWayDim:0});c(z,function(G,X){var J=G.name,Ae=re(G);if(Pe==null){var he=me.valueWayDim;Je(fe[J],he,Ae),Je(Ce,he,Ae),me.valueWayDim+=Ae}else if(Pe===X)Je(fe[J],0,Ae),Je(we,0,Ae);else{var he=me.categoryWayDim;Je(fe[J],he,Ae),Je(Ce,he,Ae),me.categoryWayDim+=Ae}});function Je(G,X,J){for(var Ae=0;Ae<J;Ae++)G.push(X+Ae)}function re(G){var X=G.dimsDef;return X?X.length:1}return we.length&&(fe.itemName=we),Ce.length&&(fe.seriesName=Ce),fe}function F(z,Y,ee){var fe={},ie=K(z);if(!ie)return fe;var we=Y.sourceFormat,Ce=Y.dimensionsDefine,Le;(we===g||we===A)&&c(Ce,function(Pe,Q){(n(Pe)?Pe.name:Pe)==="name"&&(Le=Q)});var He=function(){for(var Pe={},Q={},me=[],Je=0,re=Math.min(5,ee);Je<re;Je++){var G=V(Y.data,we,Y.seriesLayoutBy,Ce,Y.startIndex,Je);me.push(G);var X=G===w.Not;if(X&&Pe.v==null&&Je!==Le&&(Pe.v=Je),(Pe.n==null||Pe.n===Pe.v||!X&&me[Pe.n]===w.Not)&&(Pe.n=Je),J(Pe)&&me[Pe.n]!==w.Not)return Pe;X||(G===w.Might&&Q.v==null&&Je!==Le&&(Q.v=Je),(Q.n==null||Q.n===Q.v)&&(Q.n=Je))}function J(Ae){return Ae.v!=null&&Ae.n!=null}return J(Pe)?Pe:J(Q)?Q:null}();if(He){fe.value=He.v;var ce=Le!=null?Le:He.n;fe.itemName=[ce],fe.seriesName=[ce]}return fe}function K(z){var Y=z.option,ee=Y.data;if(!ee)return z.ecModel.getComponent("dataset",Y.datasetIndex||0)}function j(z,Y){return V(z.data,z.sourceFormat,z.seriesLayoutBy,z.dimensionsDefine,z.startIndex,Y)}function V(z,Y,ee,fe,ie,we){var Ce,Le=5;if(e(z))return w.Not;var He,ce;if(fe){var Pe=fe[we];n(Pe)?(He=Pe.name,ce=Pe.type):a(Pe)&&(He=Pe)}if(ce!=null)return ce==="ordinal"?w.Must:w.Not;if(Y===p)if(ee===C){for(var Q=z[we],me=0;me<(Q||[]).length&&me<Le;me++)if((Ce=X(Q[ie+me]))!=null)return Ce}else for(var me=0;me<z.length&&me<Le;me++){var Je=z[ie+me];if(Je&&(Ce=X(Je[we]))!=null)return Ce}else if(Y===g){if(!He)return w.Not;for(var me=0;me<z.length&&me<Le;me++){var re=z[me];if(re&&(Ce=X(re[He]))!=null)return Ce}}else if(Y===A){if(!He)return w.Not;var Q=z[He];if(!Q||e(Q))return w.Not;for(var me=0;me<Q.length&&me<Le;me++)if((Ce=X(Q[me]))!=null)return Ce}else if(Y===h)for(var me=0;me<z.length&&me<Le;me++){var re=z[me],G=S(re);if(!r(G))return w.Not;if((Ce=X(G[we]))!=null)return Ce}function X(J){var Ae=a(J);if(J!=null&&isFinite(J)&&J!=="")return Ae?w.Might:w.Not;if(Ae&&J!=="-")return w.Must}return w.Not}P.BE_ORDINAL=w,P.detectSourceFormat=I,P.getSource=_,P.resetSourceDefaulter=L,P.prepareSource=D,P.makeSeriesEncodeForAxisCoordSys=H,P.makeSeriesEncodeForNameBased=F,P.guessOrdinal=j},D9ME:function(U,P,d){var O=d("IwbS"),x=d("fls0"),T=d("bYtY"),v=d("oVpE"),S=v.createSymbol,m=d("QBsz"),f=d("Sj9i");function c(a,n,e){O.Group.call(this),this.add(this.createLine(a,n,e)),this._updateEffectSymbol(a,n)}var o=c.prototype;o.createLine=function(a,n,e){return new x(a,n,e)},o._updateEffectSymbol=function(a,n){var e=a.getItemModel(n),s=e.getModel("effect"),t=s.get("symbolSize"),i=s.get("symbol");T.isArray(t)||(t=[t,t]);var l=s.get("color")||a.getItemVisual(n,"color"),u=this.childAt(1);if(this._symbolType!==i&&(this.remove(u),u=S(i,-.5,-.5,1,1,l),u.z2=100,u.culling=!0,this.add(u)),!u)return;u.setStyle("shadowColor",l),u.setStyle(s.getItemStyle(["color"])),u.attr("scale",t),u.setColor(l),u.attr("scale",t),this._symbolType=i,this._symbolScale=t,this._updateEffectAnimation(a,s,n)},o._updateEffectAnimation=function(a,n,e){var s=this.childAt(1);if(!s)return;var t=this,i=a.getItemLayout(e),l=n.get("period")*1e3,u=n.get("loop"),h=n.get("constantSpeed"),p=T.retrieve(n.get("delay"),function(E){return E/a.count()*l/3}),g=typeof p=="function";if(s.ignore=!0,this.updateAnimationPoints(s,i),h>0&&(l=this.getLineLength(s)/h*1e3),l!==this._period||u!==this._loop){s.stopAnimation();var A=p;g&&(A=p(e)),s.__t>0&&(A=-l*s.__t),s.__t=0;var y=s.animate("",u).when(l,{__t:1}).delay(A).during(function(){t.updateSymbolPosition(s)});u||y.done(function(){t.remove(s)}),y.start()}this._period=l,this._loop=u},o.getLineLength=function(a){return m.dist(a.__p1,a.__cp1)+m.dist(a.__cp1,a.__p2)},o.updateAnimationPoints=function(a,n){a.__p1=n[0],a.__p2=n[1],a.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},o.updateData=function(a,n,e){this.childAt(0).updateData(a,n,e),this._updateEffectSymbol(a,n)},o.updateSymbolPosition=function(a){var n=a.__p1,e=a.__p2,s=a.__cp1,t=a.__t,i=a.position,l=[i[0],i[1]],u=f.quadraticAt,h=f.quadraticDerivativeAt;i[0]=u(n[0],s[0],e[0],t),i[1]=u(n[1],s[1],e[1],t);var p=h(n[0],s[0],e[0],t),g=h(n[1],s[1],e[1],t);if(a.rotation=-Math.atan2(g,p)-Math.PI/2,this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")if(a.__lastT!==void 0&&a.__lastT<a.__t){var A=m.dist(l,i)*1.05;a.attr("scale",[a.scale[0],A]),t===1&&(i[0]=l[0]+(i[0]-l[0])/2,i[1]=l[1]+(i[1]-l[1])/2)}else if(a.__lastT===1){var A=2*m.dist(n,i);a.attr("scale",[a.scale[0],A])}else a.attr("scale",this._symbolScale);a.__lastT=a.__t,a.ignore=!1},o.updateLayout=function(a,n){this.childAt(0).updateLayout(a,n);var e=a.getItemModel(n).getModel("effect");this._updateEffectAnimation(a,e,n)},T.inherits(c,O.Group);var r=c;U.exports=r},DBLp:function(U,P){function d(){}d.prototype={diff:function(m,f,c){c||(c=function(g,A){return g===A}),this.equals=c;var o=this;m=m.slice(),f=f.slice();var r=f.length,a=m.length,n=1,e=r+a,s=[{newPos:-1,components:[]}],t=this.extractCommon(s[0],f,m,0);if(s[0].newPos+1>=r&&t+1>=a){for(var i=[],l=0;l<f.length;l++)i.push(l);return[{indices:i,count:f.length}]}function u(){for(var p=-1*n;p<=n;p+=2){var g,A=s[p-1],y=s[p+1],E=(y?y.newPos:0)-p;A&&(s[p-1]=void 0);var C=A&&A.newPos+1<r,w=y&&0<=E&&E<a;if(!C&&!w){s[p]=void 0;continue}if(!C||w&&A.newPos<y.newPos?(g=x(y),o.pushComponent(g.components,void 0,!0)):(g=A,g.newPos++,o.pushComponent(g.components,!0,void 0)),E=o.extractCommon(g,f,m,p),g.newPos+1>=r&&E+1>=a)return O(o,g.components,f,m);s[p]=g}n++}for(;n<=e;){var h=u();if(h)return h}},pushComponent:function(m,f,c){var o=m[m.length-1];o&&o.added===f&&o.removed===c?m[m.length-1]={count:o.count+1,added:f,removed:c}:m.push({count:1,added:f,removed:c})},extractCommon:function(m,f,c,o){for(var r=f.length,a=c.length,n=m.newPos,e=n-o,s=0;n+1<r&&e+1<a&&this.equals(f[n+1],c[e+1]);)n++,e++,s++;return s&&m.components.push({count:s}),m.newPos=n,e},tokenize:function(m){return m.slice()},join:function(m){return m.slice()}};function O(S,m,f,c){for(var o=0,r=m.length,a=0,n=0;o<r;o++){var e=m[o];if(e.removed){for(var s=[],t=n;t<n+e.count;t++)s.push(t);e.indices=s,n+=e.count}else{for(var s=[],t=a;t<a+e.count;t++)s.push(t);e.indices=s,a+=e.count,e.added||(n+=e.count)}}return m}function x(S){return{newPos:S.newPos,components:S.components.slice(0)}}var T=new d;function v(S,m,f){return T.diff(S,m,f)}U.exports=v},DEFe:function(U,P,d){var O=d("bYtY"),x=d("SgGq"),T=d("Ae+d"),v=d("xSat"),S=v.onIrrelevantElement,m=d("IwbS"),f=d("W4dC"),c=d("iRjW"),o=c.getUID,r=d("DN4a");function a(i){var l=i.getItemStyle(),u=i.get("areaColor");return u!=null&&(l.fill=u),l}function n(i,l,u,h,p){u.off("click"),u.off("mousedown"),l.get("selectedMode")&&(u.on("mousedown",function(){i._mouseDownFlag=!0}),u.on("click",function(g){if(!i._mouseDownFlag)return;i._mouseDownFlag=!1;for(var A=g.target;!A.__regions;)A=A.parent;if(!A)return;var y={type:(l.mainType==="geo"?"geo":"map")+"ToggleSelect",batch:O.map(A.__regions,function(E){return{name:E.name,from:p.uid}})};y[l.mainType+"Id"]=l.id,h.dispatchAction(y),e(l,u)}))}function e(i,l){l.eachChild(function(u){O.each(u.__regions,function(h){u.trigger(i.isSelected(h.name)?"emphasis":"normal")})})}function s(i,l){var u=new m.Group;this.uid=o("ec_map_draw"),this._controller=new x(i.getZr()),this._controllerHost={target:l?u:null},this.group=u,this._updateGroup=l,this._mouseDownFlag,this._mapName,this._initialized,u.add(this._regionsGroup=new m.Group),u.add(this._backgroundGroup=new m.Group)}s.prototype={constructor:s,draw:function(i,l,u,h,p){var g=i.mainType==="geo",A=i.getData&&i.getData();g&&l.eachComponent({mainType:"series",subType:"map"},function(K){!A&&K.getHostGeoModel()===i&&(A=K.getData())});var y=i.coordinateSystem;this._updateBackground(y);var E=this._regionsGroup,C=this.group,w=y.getTransformInfo(),b=!E.childAt(0)||p,I;if(b)C.transform=w.roamTransform,C.decomposeTransform(),C.dirty();else{var _=new r;_.transform=w.roamTransform,_.decomposeTransform();var L={scale:_.scale,position:_.position};I=_.scale,m.updateProps(C,L,i)}var D=w.rawScale,N=w.rawPosition;E.removeAll();var R=["itemStyle"],B=["emphasis","itemStyle"],M=["label"],H=["emphasis","label"],F=O.createHashMap();O.each(y.regions,function(K){var j=F.get(K.name)||F.set(K.name,new m.Group),V=new m.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});j.add(V);var z=i.getRegionModel(K.name)||i,Y=z.getModel(R),ee=z.getModel(B),fe=a(Y),ie=a(ee),we=z.getModel(M),Ce=z.getModel(H),Le;if(A){Le=A.indexOfName(K.name);var He=A.getItemVisual(Le,"color",!0);He&&(fe.fill=He)}var ce=function(he){return[he[0]*D[0]+N[0],he[1]*D[1]+N[1]]};O.each(K.geometries,function(he){if(he.type!=="polygon")return;for(var Me=[],Ie=0;Ie<he.exterior.length;++Ie)Me.push(ce(he.exterior[Ie]));V.shape.paths.push(new m.Polygon({segmentIgnoreThreshold:1,shape:{points:Me}}));for(var Ie=0;Ie<(he.interiors?he.interiors.length:0);++Ie){for(var oe=he.interiors[Ie],Me=[],pe=0;pe<oe.length;++pe)Me.push(ce(oe[pe]));V.shape.paths.push(new m.Polygon({segmentIgnoreThreshold:1,shape:{points:Me}}))}}),V.setStyle(fe),V.style.strokeNoScale=!0,V.culling=!0;var Pe=we.get("show"),Q=Ce.get("show"),me=A&&isNaN(A.get(A.mapDimension("value"),Le)),Je=A&&A.getItemLayout(Le);if(g||me&&(Pe||Q)||Je&&Je.showLabel){var re=g?K.name:Le,G;(!A||Le>=0)&&(G=i);var X=new m.Text({position:ce(K.center.slice()),scale:[1/C.scale[0],1/C.scale[1]],z2:10,silent:!0});if(m.setLabelStyle(X.style,X.hoverStyle={},we,Ce,{labelFetcher:G,labelDataIndex:re,defaultText:K.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!b){var J=[1/I[0],1/I[1]];m.updateProps(X,{scale:J},i)}j.add(X)}if(A)A.setItemGraphicEl(Le,j);else{var z=i.getRegionModel(K.name);V.eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:K.name,region:z&&z.option||{}}}var Ae=j.__regions||(j.__regions=[]);Ae.push(K),j.highDownSilentOnTouch=!!i.get("selectedMode"),m.setHoverStyle(j,ie),E.add(j)}),this._updateController(i,l,u),n(this,i,E,u,h),e(i,E)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&f.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(i){var l=i.map;this._mapName!==l&&O.each(f.makeGraphic(l,this.uid),function(u){this._backgroundGroup.add(u)},this),this._mapName=l},_updateController:function(i,l,u){var h=i.coordinateSystem,p=this._controller,g=this._controllerHost;g.zoomLimit=i.get("scaleLimit"),g.zoom=h.getZoom(),p.enable(i.get("roam")||!1);var A=i.mainType;function y(){var E={type:"geoRoam",componentType:A};return E[A+"Id"]=i.id,E}p.off("pan").on("pan",function(E){this._mouseDownFlag=!1,T.updateViewOnPan(g,E.dx,E.dy),u.dispatchAction(O.extend(y(),{dx:E.dx,dy:E.dy}))},this),p.off("zoom").on("zoom",function(E){if(this._mouseDownFlag=!1,T.updateViewOnZoom(g,E.scale,E.originX,E.originY),u.dispatchAction(O.extend(y(),{zoom:E.scale,originX:E.originX,originY:E.originY})),this._updateGroup){var C=this.group.scale;this._regionsGroup.traverse(function(w){w.type==="text"&&w.attr("scale",[1/C[0],1/C[1]])})}},this),p.setPointerChecker(function(E,C,w){return h.getViewRectAfterRoam().contain(C,w)&&!S(E,u,i)})}};var t=s;U.exports=t},DFOY:function(U,P,d){"use strict";var O=d("pVnL"),x=d.n(O),T=d("lSNA"),v=d.n(T),S=d("lwsE"),m=d.n(S),f=d("W8MJ"),c=d.n(f),o=d("PJYZ"),r=d.n(o),a=d("7W2i"),n=d.n(a),e=d("LQ03"),s=d.n(e),t=d("q1tI"),i=d.n(t),l=d("VTBJ"),u=d("1OyB"),h=d("vuIU"),p=d("JX7q"),g=d("Ji7U"),A=d("LK+K"),y=d("i8i4"),E=d.n(y),C=d("l4aY"),w=d("m+aA"),b=d("c+Xe"),I=d("zT1h"),_=d("QC+M"),L=d("TSYQ"),D=d.n(L);function N(zt,Dr,ir){return ir?zt[0]===Dr[0]:zt[0]===Dr[0]&&zt[1]===Dr[1]}function R(zt,Dr,ir){var Lt=zt[Dr]||{};return Object(l.a)(Object(l.a)({},Lt),ir)}function B(zt,Dr,ir,Lt){for(var Qt=ir.points,It=Object.keys(zt),or=0;or<It.length;or+=1){var Cr=It[or];if(N(zt[Cr].points,Qt,Lt))return"".concat(Dr,"-placement-").concat(Cr)}return""}var M=d("Ff2n"),H=d("xEkU"),F=d.n(H),K=d("9mu1"),j=d("rePB"),V=d("U8pU"),z=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function Y(zt,Dr){var ir={};return ir[zt.toLowerCase()]=Dr.toLowerCase(),ir["Webkit".concat(zt)]="webkit".concat(Dr),ir["Moz".concat(zt)]="moz".concat(Dr),ir["ms".concat(zt)]="MS".concat(Dr),ir["O".concat(zt)]="o".concat(Dr.toLowerCase()),ir}function ee(zt,Dr){var ir={animationend:Y("Animation","AnimationEnd"),transitionend:Y("Transition","TransitionEnd")};return zt&&("AnimationEvent"in Dr||delete ir.animationend.animation,"TransitionEvent"in Dr||delete ir.transitionend.transition),ir}var fe=ee(z,typeof window!="undefined"?window:{}),ie={};if(z){var we=document.createElement("div");ie=we.style}var Ce={};function Le(zt){if(Ce[zt])return Ce[zt];var Dr=fe[zt];if(Dr)for(var ir=Object.keys(Dr),Lt=ir.length,Qt=0;Qt<Lt;Qt+=1){var It=ir[Qt];if(Object.prototype.hasOwnProperty.call(Dr,It)&&It in ie)return Ce[zt]=Dr[It],Ce[zt]}return""}var He=Le("animationend"),ce=Le("transitionend"),Pe=!!(He&&ce);function Q(zt,Dr){if(!zt)return null;if(Object(V.a)(zt)==="object"){var ir=Dr.replace(/-\w/g,function(Lt){return Lt[1].toUpperCase()});return zt[ir]}return"".concat(zt,"-").concat(Dr)}var me="none",Je="appear",re="enter",G="leave";function X(zt){var Dr=zt,ir=!!t.forwardRef;Object(V.a)(zt)==="object"&&(Dr=zt.transitionSupport,ir="forwardRef"in zt?zt.forwardRef:ir);function Lt(It){return!!(It.motionName&&Dr)}var Qt=function(It){Object(g.a)(Cr,It);var or=Object(A.a)(Cr);function Cr(){var Er;return Object(u.a)(this,Cr),Er=or.apply(this,arguments),Er.$cacheEle=null,Er.node=null,Er.raf=null,Er.destroyed=!1,Er.deadlineId=null,Er.state={status:me,statusActive:!1,newStatus:!1,statusStyle:null},Er.onDomUpdate=function(){var Kr=Er.state,jn=Kr.status,Nn=Kr.newStatus,ei=Er.props,Zr=ei.onAppearStart,br=ei.onEnterStart,dn=ei.onLeaveStart,Ln=ei.onAppearActive,Fn=ei.onEnterActive,zn=ei.onLeaveActive,ui=ei.motionAppear,ii=ei.motionEnter,qn=ei.motionLeave;if(!Lt(Er.props))return;var Li=Er.getElement();Er.$cacheEle!==Li&&(Er.removeEventListener(Er.$cacheEle),Er.addEventListener(Li),Er.$cacheEle=Li),Nn&&jn===Je&&ui?Er.updateStatus(Zr,null,null,function(){Er.updateActiveStatus(Ln,Je)}):Nn&&jn===re&&ii?Er.updateStatus(br,null,null,function(){Er.updateActiveStatus(Fn,re)}):Nn&&jn===G&&qn&&Er.updateStatus(dn,null,null,function(){Er.updateActiveStatus(zn,G)})},Er.onMotionEnd=function(Kr){if(Kr&&!Kr.deadline&&Kr.target!==Er.getElement())return;var jn=Er.state,Nn=jn.status,ei=jn.statusActive,Zr=Er.props,br=Zr.onAppearEnd,dn=Zr.onEnterEnd,Ln=Zr.onLeaveEnd;Nn===Je&&ei?Er.updateStatus(br,{status:me},Kr):Nn===re&&ei?Er.updateStatus(dn,{status:me},Kr):Nn===G&&ei&&Er.updateStatus(Ln,{status:me},Kr)},Er.setNodeRef=function(Kr){var jn=Er.props.internalRef;Er.node=Kr,Object(b.b)(jn,Kr)},Er.getElement=function(){try{return Object(w.a)(Er.node||Object(p.a)(Er))}catch(Kr){return Er.$cacheEle}},Er.addEventListener=function(Kr){if(!Kr)return;Kr.addEventListener(ce,Er.onMotionEnd),Kr.addEventListener(He,Er.onMotionEnd)},Er.removeEventListener=function(Kr){if(!Kr)return;Kr.removeEventListener(ce,Er.onMotionEnd),Kr.removeEventListener(He,Er.onMotionEnd)},Er.updateStatus=function(Kr,jn,Nn,ei){var Zr=Kr?Kr(Er.getElement(),Nn):null;if(Zr===!1||Er.destroyed)return;var br;ei&&(br=function(){Er.nextFrame(ei)}),Er.setState(Object(l.a)({statusStyle:Object(V.a)(Zr)==="object"?Zr:null,newStatus:!1},jn),br)},Er.updateActiveStatus=function(Kr,jn){Er.nextFrame(function(){var Nn=Er.state.status;if(Nn!==jn)return;var ei=Er.props.motionDeadline;Er.updateStatus(Kr,{statusActive:!0}),ei>0&&(Er.deadlineId=setTimeout(function(){Er.onMotionEnd({deadline:!0})},ei))})},Er.nextFrame=function(Kr){Er.cancelNextFrame(),Er.raf=F()(Kr)},Er.cancelNextFrame=function(){Er.raf&&(F.a.cancel(Er.raf),Er.raf=null)},Er}return Object(h.a)(Cr,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var Kr,jn=this.state,Nn=jn.status,ei=jn.statusActive,Zr=jn.statusStyle,br=this.props,dn=br.children,Ln=br.motionName,Fn=br.visible,zn=br.removeOnLeave,ui=br.leavedClassName,ii=br.eventProps;return dn?Nn===me||!Lt(this.props)?Fn?dn(Object(l.a)({},ii),this.setNodeRef):zn?null:dn(Object(l.a)(Object(l.a)({},ii),{},{className:ui}),this.setNodeRef):dn(Object(l.a)(Object(l.a)({},ii),{},{className:D()(Q(Ln,Nn),(Kr={},Object(j.a)(Kr,Q(Ln,"".concat(Nn,"-active")),ei),Object(j.a)(Kr,Ln,typeof Ln=="string"),Kr)),style:Zr}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(Kr,jn){var Nn=jn.prevProps,ei=jn.status;if(!Lt(Kr))return{};var Zr=Kr.visible,br=Kr.motionAppear,dn=Kr.motionEnter,Ln=Kr.motionLeave,Fn=Kr.motionLeaveImmediately,zn={prevProps:Kr};return(ei===Je&&!br||ei===re&&!dn||ei===G&&!Ln)&&(zn.status=me,zn.statusActive=!1,zn.newStatus=!1),!Nn&&Zr&&br&&(zn.status=Je,zn.statusActive=!1,zn.newStatus=!0),Nn&&!Nn.visible&&Zr&&dn&&(zn.status=re,zn.statusActive=!1,zn.newStatus=!0),(Nn&&Nn.visible&&!Zr&&Ln||!Nn&&Fn&&!Zr&&Ln)&&(zn.status=G,zn.statusActive=!1,zn.newStatus=!0),zn}}]),Cr}(t.Component);return Qt.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},ir?t.forwardRef(function(It,or){return t.createElement(Qt,Object.assign({internalRef:or},It))}):Qt}var J=X(Pe),Ae="add",he="keep",Me="remove",Ie="removed";function oe(zt){var Dr;return zt&&Object(V.a)(zt)==="object"&&"key"in zt?Dr=zt:Dr={key:zt},Object(l.a)(Object(l.a)({},Dr),{},{key:String(Dr.key)})}function pe(){var zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return zt.map(oe)}function Oe(){var zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ir=[],Lt=0,Qt=Dr.length,It=pe(zt),or=pe(Dr);It.forEach(function(Kr){for(var jn=!1,Nn=Lt;Nn<Qt;Nn+=1){var ei=or[Nn];if(ei.key===Kr.key){Lt<Nn&&(ir=ir.concat(or.slice(Lt,Nn).map(function(Zr){return Object(l.a)(Object(l.a)({},Zr),{},{status:Ae})})),Lt=Nn),ir.push(Object(l.a)(Object(l.a)({},ei),{},{status:he})),Lt+=1,jn=!0;break}}jn||ir.push(Object(l.a)(Object(l.a)({},Kr),{},{status:Me}))}),Lt<Qt&&(ir=ir.concat(or.slice(Lt).map(function(Kr){return Object(l.a)(Object(l.a)({},Kr),{},{status:Ae})})));var Cr={};ir.forEach(function(Kr){var jn=Kr.key;Cr[jn]=(Cr[jn]||0)+1});var Er=Object.keys(Cr).filter(function(Kr){return Cr[Kr]>1});return Er.forEach(function(Kr){ir=ir.filter(function(jn){var Nn=jn.key,ei=jn.status;return Nn!==Kr||ei!==Me}),ir.forEach(function(jn){jn.key===Kr&&(jn.status=he)})}),ir}var Ye=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function it(zt){var Dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:J,ir=function(Lt){Object(g.a)(It,Lt);var Qt=Object(A.a)(It);function It(){var or;return Object(u.a)(this,It),or=Qt.apply(this,arguments),or.state={keyEntities:[]},or.removeKey=function(Cr){or.setState(function(Er){var Kr=Er.keyEntities;return{keyEntities:Kr.map(function(jn){return jn.key!==Cr?jn:Object(l.a)(Object(l.a)({},jn),{},{status:Ie})})}})},or}return Object(h.a)(It,[{key:"render",value:function(){var Cr=this,Er=this.state.keyEntities,Kr=this.props,jn=Kr.component,Nn=Kr.children,ei=Object(M.a)(Kr,["component","children"]),Zr=jn||t.Fragment,br={};return Ye.forEach(function(dn){br[dn]=ei[dn],delete ei[dn]}),delete ei.keys,t.createElement(Zr,Object.assign({},ei),Er.map(function(dn){var Ln=dn.status,Fn=Object(M.a)(dn,["status"]),zn=Ln===Ae||Ln===he;return t.createElement(Dr,Object.assign({},br,{key:Fn.key,visible:zn,eventProps:Fn,onLeaveEnd:function(){br.onLeaveEnd&&br.onLeaveEnd.apply(br,arguments),Cr.removeKey(Fn.key)}}),Nn)}))}}],[{key:"getDerivedStateFromProps",value:function(Cr,Er){var Kr=Cr.keys,jn=Er.keyEntities,Nn=pe(Kr);if(!zt)return{keyEntities:Nn.map(function(br){return Object(l.a)(Object(l.a)({},br),{},{status:he})})};var ei=Oe(jn,Nn),Zr=jn.length;return{keyEntities:ei.filter(function(br){for(var dn=null,Ln=0;Ln<Zr;Ln+=1){var Fn=jn[Ln];if(Fn.key===br.key){dn=Fn;break}}return!(dn&&dn.status===Ie&&br.status===Me)})}}}]),It}(t.Component);return ir.defaultProps={component:"div"},ir}var et=it(Pe),Te=J,tt=function(Dr,ir){var Lt=Dr.prefixCls,Qt=Dr.className,It=Dr.style,or=Dr.children,Cr=Dr.onMouseEnter,Er=Dr.onMouseLeave,Kr=Dr.onMouseDown,jn=Dr.onTouchStart,Nn=or;return t.Children.count(or)>1&&(Nn=t.createElement("div",{className:"".concat(Lt,"-content")},or)),t.createElement("div",{ref:ir,className:Qt,onMouseEnter:Cr,onMouseLeave:Er,onMouseDown:Kr,onTouchStart:jn,style:It},Nn)},ze=t.forwardRef(tt);ze.displayName="PopupInner";var dt=ze;function Ot(zt){var Dr=zt.prefixCls,ir=zt.motion,Lt=zt.animation,Qt=zt.transitionName;return ir||(Lt?{motionName:"".concat(Dr,"-").concat(Lt)}:Qt?{motionName:Qt}:null)}function Tt(zt){return zt&&zt.motionName}var Ct=function(zt){Object(g.a)(ir,zt);var Dr=Object(A.a)(ir);function ir(){var Lt;return Object(u.a)(this,ir),Lt=Dr.apply(this,arguments),Lt.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Lt.popupRef=i.a.createRef(),Lt.alignRef=i.a.createRef(),Lt.nextFrameState=null,Lt.nextFrameId=null,Lt.onAlign=function(Qt,It){var or=Lt.state.status,Cr=Lt.props,Er=Cr.getClassNameFromAlign,Kr=Cr.onAlign,jn=Er(It);or==="align"?Lt.setState({alignClassName:jn,status:"aligned"},function(){Lt.alignRef.current.forceAlign()}):or==="aligned"?(Lt.setState({alignClassName:jn,status:"afterAlign"}),Kr(Qt,It)):Lt.setState({alignClassName:jn})},Lt.onMotionEnd=function(){var Qt=Lt.props.visible;Lt.setState({status:Qt?"AfterMotion":"stable",inMotion:!1})},Lt.setStateOnNextFrame=function(Qt){Lt.cancelFrameState(),Lt.nextFrameState=Object(l.a)(Object(l.a)({},Lt.nextFrameState),Qt),Lt.nextFrameId=F()(function(){var It=Object(l.a)({},Lt.nextFrameState);Lt.nextFrameState=null,Lt.setState(It)})},Lt.getMotion=function(){return Object(l.a)({},Ot(Lt.props))},Lt.getAlignTarget=function(){var Qt=Lt.props,It=Qt.point,or=Qt.getRootDomNode;return It||or},Lt.cancelFrameState=function(){F.a.cancel(Lt.nextFrameId)},Lt.renderPopupElement=function(){var Qt=Lt.state,It=Qt.status,or=Qt.targetHeight,Cr=Qt.targetWidth,Er=Qt.alignClassName,Kr=Lt.props,jn=Kr.prefixCls,Nn=Kr.className,ei=Kr.style,Zr=Kr.stretch,br=Kr.visible,dn=Kr.align,Ln=Kr.destroyPopupOnHide,Fn=Kr.onMouseEnter,zn=Kr.onMouseLeave,ui=Kr.onMouseDown,ii=Kr.onTouchStart,qn=Kr.children,Li=D()(jn,Nn,Er),zi="".concat(jn,"-hidden"),Ri={};Zr&&(Zr.indexOf("height")!==-1?Ri.height=or:Zr.indexOf("minHeight")!==-1&&(Ri.minHeight=or),Zr.indexOf("width")!==-1?Ri.width=Cr:Zr.indexOf("minWidth")!==-1&&(Ri.minWidth=Cr));var ga=Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)({},Ri),Lt.getZIndexStyle()),ei),{},{opacity:It==="stable"||!br?void 0:0,pointerEvents:It==="stable"||!br?void 0:"none"}),oi=Lt.getMotion(),hn=br;br&&It!=="beforeMotion"&&It!=="motion"&&It!=="stable"&&(oi.motionAppear=!1,oi.motionEnter=!1,oi.motionLeave=!1),(It==="afterAlign"||It==="beforeMotion")&&(hn=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(ki){var ji=oi==null?void 0:oi[ki];oi[ki]=function(){for(var dr=arguments.length,sr=new Array(dr),cn=0;cn<dr;cn++)sr[cn]=arguments[cn];ji==null||ji.apply(void 0,sr),Lt.setState({inMotion:!0})}});var Ei=!br||It!=="align"&&It!=="aligned"&&It!=="stable",Hi=!0;return It==="stable"&&(Hi=br),Ln&&!Hi?null:i.a.createElement(Te,Object.assign({visible:hn},oi,{removeOnLeave:!1,onEnterEnd:Lt.onMotionEnd,onLeaveEnd:Lt.onMotionEnd,leavedClassName:zi}),function(ki,ji){var dr=ki.style,sr=ki.className;return i.a.createElement(K.a,{target:Lt.getAlignTarget(),key:"popup",ref:Lt.alignRef,monitorWindowResize:!0,disabled:Ei,align:dn,onAlign:Lt.onAlign},i.a.createElement(dt,{prefixCls:jn,className:D()(Li,sr),ref:Object(b.a)(ji,Lt.popupRef),onMouseEnter:Fn,onMouseLeave:zn,onMouseDown:ui,onTouchStart:ii,style:Object(l.a)(Object(l.a)({},ga),dr)},qn))})},Lt.renderMaskElement=function(){var Qt=Lt.props,It=Qt.mask,or=Qt.maskMotion,Cr=Qt.maskTransitionName,Er=Qt.maskAnimation,Kr=Qt.prefixCls,jn=Qt.visible;if(!It)return null;var Nn={};return or&&or.motionName&&(Nn=Object(l.a)({motionAppear:!0},Ot({motion:or,prefixCls:Kr,transitionName:Cr,animation:Er}))),i.a.createElement(Te,Object.assign({},Nn,{visible:jn,removeOnLeave:!0}),function(ei){var Zr=ei.className;return i.a.createElement("div",{style:Lt.getZIndexStyle(),key:"mask",className:D()("".concat(Kr,"-mask"),Zr)})})},Lt}return Object(h.a)(ir,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Qt=this.state.status,It=this.props,or=It.getRootDomNode,Cr=It.visible,Er=It.stretch;if(this.cancelFrameState(),Cr&&Qt!=="stable")switch(Qt){case null:{this.setStateOnNextFrame({status:Er?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Tt(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var Kr=["measure","align",null,"beforeMotion","motion"],jn=Kr.indexOf(Qt),Nn=Kr[jn+1];jn!==-1&&Nn&&this.setStateOnNextFrame({status:Nn})}}if(Qt==="measure"){var ei=or();ei&&this.setStateOnNextFrame({targetHeight:ei.offsetHeight,targetWidth:ei.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Qt=this.props.zIndex;return{zIndex:Qt}}},{key:"render",value:function(){return i.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Qt,It){var or=Qt.visible,Cr=Object(M.a)(Qt,["visible"]),Er=It.prevVisible,Kr=It.status,jn=It.inMotion,Nn={prevVisible:or,status:Kr},ei=Ot(Cr);return Er===null&&or===!1?(Nn.status="stable",Nn.inMotion=!1):or!==Er&&(Nn.inMotion=!1,or||Tt(ei)&&jn?Nn.status=null:Nn.status="stable",or&&(Nn.alignClassName=null)),Nn}}]),ir}(t.Component),Nt=Ct,Be=t.createContext(null),$=Be;function Z(){}function Re(){return""}function De(){return window.document}var ae=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function gt(zt){var Dr=function(ir){Object(g.a)(Qt,ir);var Lt=Object(A.a)(Qt);function Qt(It){var or;Object(u.a)(this,Qt),or=Lt.call(this,It),or.popupRef=i.a.createRef(),or.triggerRef=i.a.createRef(),or.onMouseEnter=function(Er){var Kr=or.props.mouseEnterDelay;or.fireEvents("onMouseEnter",Er),or.delaySetPopupVisible(!0,Kr,Kr?null:Er)},or.onMouseMove=function(Er){or.fireEvents("onMouseMove",Er),or.setPoint(Er)},or.onMouseLeave=function(Er){or.fireEvents("onMouseLeave",Er),or.delaySetPopupVisible(!1,or.props.mouseLeaveDelay)},or.onPopupMouseEnter=function(){or.clearDelayTimer()},or.onPopupMouseLeave=function(Er){if(Er.relatedTarget&&!Er.relatedTarget.setTimeout&&or.popupRef.current&&or.popupRef.current.popupRef.current&&Object(C.a)(or.popupRef.current.popupRef.current,Er.relatedTarget))return;or.delaySetPopupVisible(!1,or.props.mouseLeaveDelay)},or.onFocus=function(Er){or.fireEvents("onFocus",Er),or.clearDelayTimer(),or.isFocusToShow()&&(or.focusTime=Date.now(),or.delaySetPopupVisible(!0,or.props.focusDelay))},or.onMouseDown=function(Er){or.fireEvents("onMouseDown",Er),or.preClickTime=Date.now()},or.onTouchStart=function(Er){or.fireEvents("onTouchStart",Er),or.preTouchTime=Date.now()},or.onBlur=function(Er){or.fireEvents("onBlur",Er),or.clearDelayTimer(),or.isBlurToHide()&&or.delaySetPopupVisible(!1,or.props.blurDelay)},or.onContextMenu=function(Er){Er.preventDefault(),or.fireEvents("onContextMenu",Er),or.setPopupVisible(!0,Er)},or.onContextMenuClose=function(){or.isContextMenuToShow()&&or.close()},or.onClick=function(Er){if(or.fireEvents("onClick",Er),or.focusTime){var Kr;if(or.preClickTime&&or.preTouchTime?Kr=Math.min(or.preClickTime,or.preTouchTime):or.preClickTime?Kr=or.preClickTime:or.preTouchTime&&(Kr=or.preTouchTime),Math.abs(Kr-or.focusTime)<20)return;or.focusTime=0}or.preClickTime=0,or.preTouchTime=0,or.isClickToShow()&&(or.isClickToHide()||or.isBlurToHide())&&Er&&Er.preventDefault&&Er.preventDefault();var jn=!or.state.popupVisible;(or.isClickToHide()&&!jn||jn&&or.isClickToShow())&&or.setPopupVisible(!or.state.popupVisible,Er)},or.onPopupMouseDown=function(){if(or.hasPopupMouseDown=!0,clearTimeout(or.mouseDownTimeout),or.mouseDownTimeout=window.setTimeout(function(){or.hasPopupMouseDown=!1},0),or.context){var Er;(Er=or.context).onPopupMouseDown.apply(Er,arguments)}},or.onDocumentClick=function(Er){if(or.props.mask&&!or.props.maskClosable)return;var Kr=Er.target,jn=or.getRootDomNode(),Nn=or.getPopupDomNode();!Object(C.a)(jn,Kr)&&!Object(C.a)(Nn,Kr)&&!or.hasPopupMouseDown&&or.close()},or.getRootDomNode=function(){var Er=or.props.getTriggerDOMNode;if(Er)return Er(or.triggerRef.current);try{var Kr=Object(w.a)(or.triggerRef.current);if(Kr)return Kr}catch(jn){}return E.a.findDOMNode(Object(p.a)(or))},or.getPopupClassNameFromAlign=function(Er){var Kr=[],jn=or.props,Nn=jn.popupPlacement,ei=jn.builtinPlacements,Zr=jn.prefixCls,br=jn.alignPoint,dn=jn.getPopupClassNameFromAlign;return Nn&&ei&&Kr.push(B(ei,Zr,Er,br)),dn&&Kr.push(dn(Er)),Kr.join(" ")},or.getComponent=function(){var Er=or.props,Kr=Er.prefixCls,jn=Er.destroyPopupOnHide,Nn=Er.popupClassName,ei=Er.onPopupAlign,Zr=Er.popupMotion,br=Er.popupAnimation,dn=Er.popupTransitionName,Ln=Er.popupStyle,Fn=Er.mask,zn=Er.maskAnimation,ui=Er.maskTransitionName,ii=Er.maskMotion,qn=Er.zIndex,Li=Er.popup,zi=Er.stretch,Ri=Er.alignPoint,ga=or.state,oi=ga.popupVisible,hn=ga.point,Ei=or.getPopupAlign(),Hi={};return or.isMouseEnterToShow()&&(Hi.onMouseEnter=or.onPopupMouseEnter),or.isMouseLeaveToHide()&&(Hi.onMouseLeave=or.onPopupMouseLeave),Hi.onMouseDown=or.onPopupMouseDown,Hi.onTouchStart=or.onPopupMouseDown,i.a.createElement(Nt,Object.assign({prefixCls:Kr,destroyPopupOnHide:jn,visible:oi,point:Ri&&hn,className:Nn,align:Ei,onAlign:ei,animation:br,getClassNameFromAlign:or.getPopupClassNameFromAlign},Hi,{stretch:zi,getRootDomNode:or.getRootDomNode,style:Ln,mask:Fn,zIndex:qn,transitionName:dn,maskAnimation:zn,maskTransitionName:ui,maskMotion:ii,ref:or.popupRef,motion:Zr}),typeof Li=="function"?Li():Li)},or.getContainer=function(){var Er=Object(p.a)(or),Kr=Er.props,jn=document.createElement("div");jn.style.position="absolute",jn.style.top="0",jn.style.left="0",jn.style.width="100%";var Nn=Kr.getPopupContainer?Kr.getPopupContainer(or.getRootDomNode()):Kr.getDocument().body;return Nn.appendChild(jn),jn},or.setPoint=function(Er){var Kr=or.props.alignPoint;if(!Kr||!Er)return;or.setState({point:{pageX:Er.pageX,pageY:Er.pageY}})},or.handlePortalUpdate=function(){or.state.prevPopupVisible!==or.state.popupVisible&&or.props.afterPopupVisibleChange(or.state.popupVisible)};var Cr;return"popupVisible"in It?Cr=!!It.popupVisible:Cr=!!It.defaultPopupVisible,or.state={prevPopupVisible:Cr,popupVisible:Cr},ae.forEach(function(Er){or["fire".concat(Er)]=function(Kr){or.fireEvents(Er,Kr)}}),or}return Object(h.a)(Qt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var or=this.props,Cr=this.state;if(Cr.popupVisible){var Er;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Er=or.getDocument(),this.clickOutsideHandler=Object(I.a)(Er,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Er=Er||or.getDocument(),this.touchOutsideHandler=Object(I.a)(Er,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Er=Er||or.getDocument(),this.contextMenuOutsideHandler1=Object(I.a)(Er,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(I.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var or=this.props,Cr=or.popupPlacement,Er=or.popupAlign,Kr=or.builtinPlacements;return Cr&&Kr?R(Kr,Cr,Er):Er}},{key:"setPopupVisible",value:function(or,Cr){var Er=this.props.alignPoint,Kr=this.state.popupVisible;this.clearDelayTimer(),Kr!==or&&("popupVisible"in this.props||this.setState({popupVisible:or,prevPopupVisible:Kr}),this.props.onPopupVisibleChange(or)),Er&&Cr&&this.setPoint(Cr)}},{key:"delaySetPopupVisible",value:function(or,Cr,Er){var Kr=this,jn=Cr*1e3;if(this.clearDelayTimer(),jn){var Nn=Er?{pageX:Er.pageX,pageY:Er.pageY}:null;this.delayTimer=window.setTimeout(function(){Kr.setPopupVisible(or,Nn),Kr.clearDelayTimer()},jn)}else this.setPopupVisible(or,Er)}},{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(or){var Cr=this.props.children.props,Er=this.props;return Cr[or]&&Er[or]?this["fire".concat(or)]:Cr[or]||Er[or]}},{key:"isClickToShow",value:function(){var or=this.props,Cr=or.action,Er=or.showAction;return Cr.indexOf("click")!==-1||Er.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var or=this.props,Cr=or.action,Er=or.showAction;return Cr.indexOf("contextMenu")!==-1||Er.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var or=this.props,Cr=or.action,Er=or.hideAction;return Cr.indexOf("click")!==-1||Er.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var or=this.props,Cr=or.action,Er=or.showAction;return Cr.indexOf("hover")!==-1||Er.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var or=this.props,Cr=or.action,Er=or.hideAction;return Cr.indexOf("hover")!==-1||Er.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var or=this.props,Cr=or.action,Er=or.showAction;return Cr.indexOf("focus")!==-1||Er.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var or=this.props,Cr=or.action,Er=or.hideAction;return Cr.indexOf("focus")!==-1||Er.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(or,Cr){var Er=this.props.children.props[or];Er&&Er(Cr);var Kr=this.props[or];Kr&&Kr(Cr)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var or=this.state.popupVisible,Cr=this.props,Er=Cr.children,Kr=Cr.forceRender,jn=Cr.alignPoint,Nn=Cr.className,ei=Cr.autoDestroy,Zr=i.a.Children.only(Er),br={key:"trigger"};this.isContextMenuToShow()?br.onContextMenu=this.onContextMenu:br.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(br.onClick=this.onClick,br.onMouseDown=this.onMouseDown,br.onTouchStart=this.onTouchStart):(br.onClick=this.createTwoChains("onClick"),br.onMouseDown=this.createTwoChains("onMouseDown"),br.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(br.onMouseEnter=this.onMouseEnter,jn&&(br.onMouseMove=this.onMouseMove)):br.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?br.onMouseLeave=this.onMouseLeave:br.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(br.onFocus=this.onFocus,br.onBlur=this.onBlur):(br.onFocus=this.createTwoChains("onFocus"),br.onBlur=this.createTwoChains("onBlur"));var dn=D()(Zr&&Zr.props&&Zr.props.className,Nn);dn&&(br.className=dn);var Ln=Object(l.a)({},br);Object(b.c)(Zr)&&(Ln.ref=Object(b.a)(this.triggerRef,Zr.ref));var Fn=i.a.cloneElement(Zr,Ln),zn;return(or||this.popupRef.current||Kr)&&(zn=i.a.createElement(zt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!or&&ei&&(zn=null),i.a.createElement($.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},Fn,zn)}}],[{key:"getDerivedStateFromProps",value:function(or,Cr){var Er=or.popupVisible,Kr={};return Er!==void 0&&Cr.popupVisible!==Er&&(Kr.popupVisible=Er,Kr.prevPopupVisible=Cr.popupVisible),Kr}}]),Qt}(i.a.Component);return Dr.contextType=$,Dr.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Re,getDocument:De,onPopupVisibleChange:Z,afterPopupVisibleChange:Z,onPopupAlign:Z,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Dr}var jt=gt(_.a),ut=d("2W6z"),rr=d.n(ut),pr=d("4IlW"),nn=d("uK0f"),mr=d.n(nn);function vr(zt,Dr){if(zt===Dr)return!0;if(!zt||!Dr)return!1;var ir=zt.length;if(Dr.length!==ir)return!1;for(var Lt=0;Lt<ir;Lt++)if(zt[Lt]!==Dr[Lt])return!1;return!0}function $t(zt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$t=function(ir){return typeof ir}:$t=function(ir){return ir&&typeof Symbol=="function"&&ir.constructor===Symbol&&ir!==Symbol.prototype?"symbol":typeof ir},$t(zt)}function Xt(zt,Dr){if(!(zt instanceof Dr))throw new TypeError("Cannot call a class as a function")}function ft(zt,Dr){for(var ir=0;ir<Dr.length;ir++){var Lt=Dr[ir];Lt.enumerable=Lt.enumerable||!1,Lt.configurable=!0,"value"in Lt&&(Lt.writable=!0),Object.defineProperty(zt,Lt.key,Lt)}}function Ur(zt,Dr,ir){return Dr&&ft(zt.prototype,Dr),ir&&ft(zt,ir),zt}function yn(zt,Dr){if(typeof Dr!="function"&&Dr!==null)throw new TypeError("Super expression must either be null or a function");zt.prototype=Object.create(Dr&&Dr.prototype,{constructor:{value:zt,writable:!0,configurable:!0}}),Dr&&Dn(zt,Dr)}function Dn(zt,Dr){return Dn=Object.setPrototypeOf||function(Lt,Qt){return Lt.__proto__=Qt,Lt},Dn(zt,Dr)}function Un(zt){var Dr=kn();return function(){var ir=Vn(zt),Lt;if(Dr){var Qt=Vn(this).constructor;Lt=Reflect.construct(ir,arguments,Qt)}else Lt=ir.apply(this,arguments);return wi(this,Lt)}}function wi(zt,Dr){return Dr&&($t(Dr)==="object"||typeof Dr=="function")?Dr:Rn(zt)}function Rn(zt){if(zt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return zt}function kn(){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(zt){return!1}}function Vn(zt){return Vn=Object.setPrototypeOf?Object.getPrototypeOf:function(ir){return ir.__proto__||Object.getPrototypeOf(ir)},Vn(zt)}var Gt=function(){var zt=function(Dr){yn(Lt,Dr);var ir=Un(Lt);function Lt(){var Qt;return Xt(this,Lt),Qt=ir.apply(this,arguments),Qt.menuItems={},Qt.saveMenuItem=function(It){return function(or){Qt.menuItems[It]=or}},Qt}return Ur(Lt,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(It){!It.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(It){var or=this.props,Cr=or.fieldNames,Er=or.defaultFieldNames;return Cr[It]||Er[It]}},{key:"getOption",value:function(It,or){var Cr=this.props,Er=Cr.prefixCls,Kr=Cr.expandTrigger,jn=Cr.expandIcon,Nn=Cr.loadingIcon,ei=this.props.onSelect.bind(this,It,or),Zr=this.props.onItemDoubleClick.bind(this,It,or),br={onClick:ei,onDoubleClick:Zr},dn="".concat(Er,"-menu-item"),Ln=null,Fn=It[this.getFieldName("children")]&&It[this.getFieldName("children")].length>0;(Fn||It.isLeaf===!1)&&(dn+=" ".concat(Er,"-menu-item-expand"),It.loading||(Ln=t.createElement("span",{className:"".concat(Er,"-menu-item-expand-icon")},jn))),Kr==="hover"&&(Fn||It.isLeaf===!1)&&(br={onMouseEnter:this.delayOnSelect.bind(this,ei),onMouseLeave:this.delayOnSelect.bind(this),onClick:ei}),this.isActiveOption(It,or)&&(dn+=" ".concat(Er,"-menu-item-active"),br.ref=this.saveMenuItem(or)),It.disabled&&(dn+=" ".concat(Er,"-menu-item-disabled"));var zn=null;It.loading&&(dn+=" ".concat(Er,"-menu-item-loading"),zn=Nn||null);var ui="";return"title"in It?ui=It.title:typeof It[this.getFieldName("label")]=="string"&&(ui=It[this.getFieldName("label")]),t.createElement("li",Object.assign({key:It[this.getFieldName("value")],className:dn,title:ui},br,{role:"menuitem",onMouseDown:function(qn){return qn.preventDefault()}}),It[this.getFieldName("label")],Ln,zn)}},{key:"getActiveOptions",value:function(It){var or=this,Cr=this.props.options,Er=It||this.props.activeValue;return mr()(Cr,function(Kr,jn){return Kr[or.getFieldName("value")]===Er[jn]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var It=this,or=this.props.options,Cr=this.getActiveOptions().map(function(Er){return Er[It.getFieldName("children")]}).filter(function(Er){return!!Er});return Cr.unshift(or),Cr}},{key:"delayOnSelect",value:function(It){for(var or=this,Cr=arguments.length,Er=new Array(Cr>1?Cr-1:0),Kr=1;Kr<Cr;Kr++)Er[Kr-1]=arguments[Kr];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof It=="function"&&(this.delayTimer=window.setTimeout(function(){It(Er),or.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var It=this.getShowOptions().length,or=0;or<It;or++){var Cr=this.menuItems[or];Cr&&Cr.parentElement&&(Cr.parentElement.scrollTop=Cr.offsetTop)}}},{key:"isActiveOption",value:function(It,or){var Cr=this.props.activeValue,Er=Cr===void 0?[]:Cr;return Er[or]===It[this.getFieldName("value")]}},{key:"render",value:function(){var It=this,or=this.props,Cr=or.prefixCls,Er=or.dropdownMenuColumnStyle;return t.createElement("div",null,this.getShowOptions().map(function(Kr,jn){return t.createElement("ul",{className:"".concat(Cr,"-menu"),key:jn,style:Er},Kr.map(function(Nn){return It.getOption(Nn,jn)}))}))}}]),Lt}(t.Component);return zt.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},zt}(),st=Gt,ue={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}}},Ee=ue;function je(zt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?je=function(ir){return typeof ir}:je=function(ir){return ir&&typeof Symbol=="function"&&ir.constructor===Symbol&&ir!==Symbol.prototype?"symbol":typeof ir},je(zt)}function Ve(zt,Dr){if(zt==null)return{};var ir=$e(zt,Dr),Lt,Qt;if(Object.getOwnPropertySymbols){var It=Object.getOwnPropertySymbols(zt);for(Qt=0;Qt<It.length;Qt++){if(Lt=It[Qt],Dr.indexOf(Lt)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(zt,Lt))continue;ir[Lt]=zt[Lt]}}return ir}function $e(zt,Dr){if(zt==null)return{};var ir={},Lt=Object.keys(zt),Qt,It;for(It=0;It<Lt.length;It++){if(Qt=Lt[It],Dr.indexOf(Qt)>=0)continue;ir[Qt]=zt[Qt]}return ir}function wt(zt){return _t(zt)||an(zt)||Mr(zt)||qt()}function qt(){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 Mr(zt,Dr){if(!zt)return;if(typeof zt=="string")return at(zt,Dr);var ir=Object.prototype.toString.call(zt).slice(8,-1);if(ir==="Object"&&zt.constructor&&(ir=zt.constructor.name),ir==="Map"||ir==="Set")return Array.from(zt);if(ir==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ir))return at(zt,Dr)}function an(zt){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(zt))return Array.from(zt)}function _t(zt){if(Array.isArray(zt))return at(zt)}function at(zt,Dr){(Dr==null||Dr>zt.length)&&(Dr=zt.length);for(var ir=0,Lt=new Array(Dr);ir<Dr;ir++)Lt[ir]=zt[ir];return Lt}function bt(zt,Dr){if(!(zt instanceof Dr))throw new TypeError("Cannot call a class as a function")}function kt(zt,Dr){for(var ir=0;ir<Dr.length;ir++){var Lt=Dr[ir];Lt.enumerable=Lt.enumerable||!1,Lt.configurable=!0,"value"in Lt&&(Lt.writable=!0),Object.defineProperty(zt,Lt.key,Lt)}}function Pt(zt,Dr,ir){return Dr&&kt(zt.prototype,Dr),ir&&kt(zt,ir),zt}function Et(zt,Dr){if(typeof Dr!="function"&&Dr!==null)throw new TypeError("Super expression must either be null or a function");zt.prototype=Object.create(Dr&&Dr.prototype,{constructor:{value:zt,writable:!0,configurable:!0}}),Dr&&Ht(zt,Dr)}function Ht(zt,Dr){return Ht=Object.setPrototypeOf||function(Lt,Qt){return Lt.__proto__=Qt,Lt},Ht(zt,Dr)}function ot(zt){var Dr=ur();return function(){var ir=gr(zt),Lt;if(Dr){var Qt=gr(this).constructor;Lt=Reflect.construct(ir,arguments,Qt)}else Lt=ir.apply(this,arguments);return Mt(this,Lt)}}function Mt(zt,Dr){return Dr&&(je(Dr)==="object"||typeof Dr=="function")?Dr:xr(zt)}function xr(zt){if(zt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return zt}function ur(){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(zt){return!1}}function gr(zt){return gr=Object.setPrototypeOf?Object.getPrototypeOf:function(ir){return ir.__proto__||Object.getPrototypeOf(ir)},gr(zt)}var Qr=function(){var zt=function(Dr){Et(Lt,Dr);var ir=ot(Lt);function Lt(Qt){var It;bt(this,Lt),It=ir.call(this,Qt),It.setPopupVisible=function(Cr){var Er=It.state.value;"popupVisible"in It.props||It.setState({popupVisible:Cr}),Cr&&!It.state.popupVisible&&It.setState({activeValue:Er}),It.props.onPopupVisibleChange(Cr)},It.handleChange=function(Cr,Er,Kr){var jn=Er.visible;(Kr.type!=="keydown"||Kr.keyCode===pr.a.ENTER)&&(It.props.onChange(Cr.map(function(Nn){return Nn[It.getFieldName("value")]}),Cr),It.setPopupVisible(jn))},It.handlePopupVisibleChange=function(Cr){It.setPopupVisible(Cr)},It.handleMenuSelect=function(Cr,Er,Kr){var jn=It.trigger.getRootDomNode();jn&&jn.focus&&jn.focus();var Nn=It.props,ei=Nn.changeOnSelect,Zr=Nn.loadData,br=Nn.expandTrigger;if(!Cr||Cr.disabled)return;var dn=It.state.activeValue;dn=dn.slice(0,Er+1),dn[Er]=Cr[It.getFieldName("value")];var Ln=It.getActiveOptions(dn);if(Cr.isLeaf===!1&&!Cr[It.getFieldName("children")]&&Zr){ei&&It.handleChange(Ln,{visible:!0},Kr),It.setState({activeValue:dn}),Zr(Ln);return}var Fn={};!Cr[It.getFieldName("children")]||!Cr[It.getFieldName("children")].length?(It.handleChange(Ln,{visible:!1},Kr),Fn.value=dn):ei&&(Kr.type==="click"||Kr.type==="keydown")&&(br==="hover"?It.handleChange(Ln,{visible:!1},Kr):It.handleChange(Ln,{visible:!0},Kr),Fn.value=dn),Fn.activeValue=dn,("value"in It.props||Kr.type==="keydown"&&Kr.keyCode!==pr.a.ENTER)&&delete Fn.value,It.setState(Fn)},It.handleItemDoubleClick=function(){var Cr=It.props.changeOnSelect;Cr&&It.setPopupVisible(!1)},It.handleKeyDown=function(Cr){var Er=It.props.children;if(Er&&Er.props.onKeyDown){Er.props.onKeyDown(Cr);return}var Kr=wt(It.state.activeValue),jn=Kr.length-1<0?0:Kr.length-1,Nn=It.getCurrentLevelOptions(),ei=Nn.map(function(Ln){return Ln[It.getFieldName("value")]}).indexOf(Kr[jn]);if(Cr.keyCode!==pr.a.DOWN&&Cr.keyCode!==pr.a.UP&&Cr.keyCode!==pr.a.LEFT&&Cr.keyCode!==pr.a.RIGHT&&Cr.keyCode!==pr.a.ENTER&&Cr.keyCode!==pr.a.SPACE&&Cr.keyCode!==pr.a.BACKSPACE&&Cr.keyCode!==pr.a.ESC&&Cr.keyCode!==pr.a.TAB)return;if(!It.state.popupVisible&&Cr.keyCode!==pr.a.BACKSPACE&&Cr.keyCode!==pr.a.LEFT&&Cr.keyCode!==pr.a.RIGHT&&Cr.keyCode!==pr.a.ESC&&Cr.keyCode!==pr.a.TAB){It.setPopupVisible(!0);return}if(Cr.keyCode===pr.a.DOWN||Cr.keyCode===pr.a.UP){Cr.preventDefault();var Zr=ei;Zr!==-1?Cr.keyCode===pr.a.DOWN?(Zr+=1,Zr=Zr>=Nn.length?0:Zr):(Zr-=1,Zr=Zr<0?Nn.length-1:Zr):Zr=0,Kr[jn]=Nn[Zr][It.getFieldName("value")]}else if(Cr.keyCode===pr.a.LEFT||Cr.keyCode===pr.a.BACKSPACE)Cr.preventDefault(),Kr.splice(Kr.length-1,1);else if(Cr.keyCode===pr.a.RIGHT)Cr.preventDefault(),Nn[ei]&&Nn[ei][It.getFieldName("children")]&&Kr.push(Nn[ei][It.getFieldName("children")][0][It.getFieldName("value")]);else if(Cr.keyCode===pr.a.ESC||Cr.keyCode===pr.a.TAB){It.setPopupVisible(!1);return}(!Kr||Kr.length===0)&&It.setPopupVisible(!1);var br=It.getActiveOptions(Kr),dn=br[br.length-1];It.handleMenuSelect(dn,br.length-1,Cr),It.props.onKeyDown&&It.props.onKeyDown(Cr)},It.saveTrigger=function(Cr){It.trigger=Cr};var or=[];return"value"in Qt?or=Qt.value||[]:"defaultValue"in Qt&&(or=Qt.defaultValue||[]),rr()(!("filedNames"in Qt),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),It.state={popupVisible:Qt.popupVisible,activeValue:or,value:or,prevProps:Qt},It.defaultFieldNames={label:"label",value:"value",children:"children"},It}return Pt(Lt,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(It){var or=this.defaultFieldNames,Cr=this.props,Er=Cr.fieldNames,Kr=Cr.filedNames;return"filedNames"in this.props?Kr[It]||or[It]:Er[It]||or[It]}},{key:"getFieldNames",value:function(){var It=this.props,or=It.fieldNames,Cr=It.filedNames;return"filedNames"in this.props?Cr:or}},{key:"getCurrentLevelOptions",value:function(){var It=this,or=this.props.options,Cr=or===void 0?[]:or,Er=this.state.activeValue,Kr=Er===void 0?[]:Er,jn=mr()(Cr,function(Nn,ei){return Nn[It.getFieldName("value")]===Kr[ei]},{childrenKeyName:this.getFieldName("children")});return jn[jn.length-2]?jn[jn.length-2][this.getFieldName("children")]:wt(Cr).filter(function(Nn){return!Nn.disabled})}},{key:"getActiveOptions",value:function(It){var or=this;return mr()(this.props.options||[],function(Cr,Er){return Cr[or.getFieldName("value")]===It[Er]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var It=this.props,or=It.prefixCls,Cr=It.transitionName,Er=It.popupClassName,Kr=It.options,jn=Kr===void 0?[]:Kr,Nn=It.disabled,ei=It.builtinPlacements,Zr=It.popupPlacement,br=It.children,dn=It.dropdownRender,Ln=Ve(It,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),Fn=t.createElement("div",null),zn="";jn&&jn.length>0?Fn=t.createElement(st,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):zn=" ".concat(or,"-menus-empty");var ui=Fn;return dn&&(ui=dn(Fn)),t.createElement(jt,Object.assign({ref:this.saveTrigger},Ln,{popupPlacement:Zr,builtinPlacements:ei,popupTransitionName:Cr,action:Nn?[]:["click"],popupVisible:Nn?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(or,"-menus"),popupClassName:Er+zn,popup:ui}),t.cloneElement(br,{onKeyDown:this.handleKeyDown,tabIndex:Nn?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(It,or){var Cr=or.prevProps,Er=Cr===void 0?{}:Cr,Kr={prevProps:It};return"value"in It&&!vr(Er.value,It.value)&&(Kr.value=It.value||[],"loadData"in It||(Kr.activeValue=It.value||[])),"popupVisible"in It&&(Kr.popupVisible=It.popupVisible),Kr}}]),Lt}(t.Component);return zt.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:Ee,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},zt}(),ln=Qr,_n=ln,Mn=d("BGR+"),li=d("kbBi"),ai=d.n(li),pi=d("HQEm"),Oi=d.n(pi),Ze=d("fEPi"),be=d.n(Ze),Ne=d("5YOS"),Ue=d.n(Ne),Qe=d("DFhj"),Xe=d.n(Qe),qe=d("5rEg"),yt=d("H84U"),ht=d("YMnH"),Jt=d("uaoM"),kr=d("3Nzz"),_r=d("0n0R"),Xr=function(zt,Dr){var ir={};for(var Lt in zt)Object.prototype.hasOwnProperty.call(zt,Lt)&&Dr.indexOf(Lt)<0&&(ir[Lt]=zt[Lt]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qt=0,Lt=Object.getOwnPropertySymbols(zt);Qt<Lt.length;Qt++)Dr.indexOf(Lt[Qt])<0&&Object.prototype.propertyIsEnumerable.call(zt,Lt[Qt])&&(ir[Lt[Qt]]=zt[Lt[Qt]]);return ir},Bt=50;function gn(zt,Dr,ir){return zt.split(Dr).map(function(Lt,Qt){return Qt===0?Lt:[t.createElement("span",{className:"".concat(ir,"-menu-item-keyword"),key:"seperator"},Dr),Lt]})}function hr(zt,Dr,ir){return Dr.some(function(Lt){return Lt[ir.label].indexOf(zt)>-1})}function vn(zt,Dr,ir,Lt){return Dr.map(function(Qt,It){var or=Qt[Lt.label],Cr=or.indexOf(zt)>-1?gn(or,zt,ir):or;return It===0?Cr:[" / ",Cr]})}function en(zt,Dr,ir,Lt){function Qt(It){return It[Lt.label].indexOf(ir)>-1}return zt.findIndex(Qt)-Dr.findIndex(Qt)}function Dt(zt){var Dr=zt.fieldNames;return Dr}function jr(zt){var Dr=Dt(zt)||{},ir={children:Dr.children||"children",label:Dr.label||"label",value:Dr.value||"value"};return ir}function un(zt,Dr){var ir=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Lt=jr(Dr),Qt=[],It=Lt.children;return zt.forEach(function(or){var Cr=ir.concat(or);(Dr.changeOnSelect||!or[It]||!or[It].length)&&Qt.push(Cr),or[It]&&(Qt=Qt.concat(un(or[It],Dr,Cr)))}),Qt}var Hr=function(Dr){return Dr.join(" / ")};function Wt(zt){var Dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(zt||[]).forEach(function(ir){var Lt=Dr.value||"value";Object(Jt.a)(Lt in ir,"Cascader","Not found `value` in `options`."),Wt(ir[Dr.children||"children"],Dr)})}var wr=function(zt){n()(ir,zt);var Dr=s()(ir);function ir(Lt){var Qt;return m()(this,ir),Qt=Dr.call(this,Lt),Qt.cachedOptions=[],Qt.setValue=function(It){var or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];"value"in Qt.props||Qt.setState({value:It});var Cr=Qt.props.onChange;Cr&&Cr(It,or)},Qt.saveInput=function(It){Qt.input=It},Qt.handleChange=function(It,or){if(Qt.setState({inputValue:""}),or[0].__IS_FILTERED_OPTION){var Cr=It[0],Er=or[0].path;Qt.setValue(Cr,Er);return}Qt.setValue(It,or)},Qt.handlePopupVisibleChange=function(It){"popupVisible"in Qt.props||Qt.setState(function(Cr){return{popupVisible:It,inputFocused:It,inputValue:It?Cr.inputValue:""}});var or=Qt.props.onPopupVisibleChange;or&&or(It)},Qt.handleInputBlur=function(){Qt.setState({inputFocused:!1})},Qt.handleInputClick=function(It){var or=Qt.state,Cr=or.inputFocused,Er=or.popupVisible;(Cr||Er)&&It.stopPropagation()},Qt.handleKeyDown=function(It){(It.keyCode===pr.a.BACKSPACE||It.keyCode===pr.a.SPACE)&&It.stopPropagation()},Qt.handleInputChange=function(It){var or=Qt.state.popupVisible,Cr=It.target.value;or||Qt.handlePopupVisibleChange(!0),Qt.setState({inputValue:Cr})},Qt.clearSelection=function(It){var or=Qt.state.inputValue;It.preventDefault(),It.stopPropagation(),or?Qt.setState({inputValue:""}):(Qt.handlePopupVisibleChange(!1),Qt.clearSelectionTimeout=setTimeout(function(){Qt.setValue([])},200))},Qt.renderCascader=function(It,or){var Cr=It.getPopupContainer,Er=It.getPrefixCls,Kr=It.renderEmpty,jn=It.direction;return t.createElement(kr.b.Consumer,null,function(Nn){var ei,Zr,br,dn,Ln=r()(Qt),Fn=Ln.props,zn=Ln.state,ui=Fn.prefixCls,ii=Fn.inputPrefixCls,qn=Fn.children,Li=Fn.placeholder,zi=Li===void 0?or.placeholder||"Please select":Li,Ri=Fn.size,ga=Fn.disabled,oi=Fn.className,hn=Fn.style,Ei=Fn.allowClear,Hi=Fn.showSearch,ki=Hi===void 0?!1:Hi,ji=Fn.suffixIcon,dr=Fn.expandIcon,sr=Fn.notFoundContent,cn=Fn.popupClassName,Zt=Fn.bordered,Ar=Fn.dropdownRender,Nr=Xr(Fn,["prefixCls","inputPrefixCls","children","placeholder","size","disabled","className","style","allowClear","showSearch","suffixIcon","expandIcon","notFoundContent","popupClassName","bordered","dropdownRender"]),tn=Ri||Nn,pn=zn.value,St=zn.inputFocused,cr=jn==="rtl",fr=Er("cascader",ui),Br=Er("input",ii),$r=D()((ei={},v()(ei,"".concat(Br,"-lg"),tn==="large"),v()(ei,"".concat(Br,"-sm"),tn==="small"),ei)),wn=Ei&&!ga&&pn.length>0||zn.inputValue?t.createElement(ai.a,{className:"".concat(fr,"-picker-clear"),onClick:Qt.clearSelection}):null,rn=D()((Zr={},v()(Zr,"".concat(fr,"-picker-arrow"),!0),v()(Zr,"".concat(fr,"-picker-arrow-expand"),zn.popupVisible),Zr)),On=D()(oi,"".concat(fr,"-picker"),(br={},v()(br,"".concat(fr,"-picker-rtl"),cr),v()(br,"".concat(fr,"-picker-with-value"),zn.inputValue),v()(br,"".concat(fr,"-picker-disabled"),ga),v()(br,"".concat(fr,"-picker-").concat(tn),!!tn),v()(br,"".concat(fr,"-picker-show-search"),!!ki),v()(br,"".concat(fr,"-picker-focused"),St),v()(br,"".concat(fr,"-picker-borderless"),!Zt),br)),In=Object(Mn.default)(Nr,["onChange","options","popupPlacement","transitionName","displayRender","onPopupVisibleChange","changeOnSelect","expandTrigger","popupVisible","getPopupContainer","loadData","popupClassName","filterOption","renderFilteredOption","sortFilteredOption","notFoundContent","fieldNames","bordered"]),Gn=Fn.options,fi=jr(Qt.props);if(Gn&&Gn.length>0)zn.inputValue&&(Gn=Qt.generateFilteredOptions(fr,Kr));else{var Yn;Gn=[(Yn={},v()(Yn,fi.label,sr||Kr("Cascader")),v()(Yn,fi.value,"ANT_CASCADER_NOT_FOUND"),Yn)]}zn.popupVisible?Qt.cachedOptions=Gn:Gn=Qt.cachedOptions;var gi={},vi=(Gn||[]).length===1&&Gn[0].isEmptyNode;vi&&(gi.height="auto");var Di=ki.matchInputWidth!==!1;Di&&(zn.inputValue||vi)&&Qt.input&&(gi.width=Qt.input.input.offsetWidth);var Mi;ji?Mi=Object(_r.c)(ji,t.createElement("span",{className:"".concat(fr,"-picker-arrow")},ji),function(){var ia;return{className:D()((ia={},v()(ia,ji.props.className,ji.props.className),v()(ia,"".concat(fr,"-picker-arrow"),!0),ia))}}):Mi=t.createElement(Oi.a,{className:rn});var xi=qn||t.createElement("span",{style:hn,className:On},t.createElement("span",{className:"".concat(fr,"-picker-label")},Qt.getLabel()),t.createElement(qe.a,x()({},In,{tabIndex:"-1",ref:Qt.saveInput,prefixCls:Br,placeholder:pn&&pn.length>0?void 0:zi,className:"".concat(fr,"-input ").concat($r),value:zn.inputValue,disabled:ga,readOnly:!ki,autoComplete:In.autoComplete||"off",onClick:ki?Qt.handleInputClick:void 0,onBlur:ki?Qt.handleInputBlur:void 0,onKeyDown:Qt.handleKeyDown,onChange:ki?Qt.handleInputChange:void 0})),wn,Mi),bi;dr?bi=dr:bi=cr?t.createElement(Xe.a,null):t.createElement(be.a,null);var Ci=t.createElement("span",{className:"".concat(fr,"-menu-item-loading-icon")},t.createElement(Ue.a,{spin:!0})),$i=Fn.getPopupContainer||Cr,qi=Object(Mn.default)(Fn,["inputIcon","expandIcon","loadingIcon","bordered"]),Ti=D()(cn,(dn={},v()(dn,"".concat(fr,"-menu-").concat(jn),jn==="rtl"),v()(dn,"".concat(fr,"-menu-empty"),Gn.length===1&&Gn[0].value==="ANT_CASCADER_NOT_FOUND"),dn));return t.createElement(_n,x()({},qi,{prefixCls:fr,getPopupContainer:$i,options:Gn,value:pn,popupVisible:zn.popupVisible,onPopupVisibleChange:Qt.handlePopupVisibleChange,onChange:Qt.handleChange,dropdownMenuColumnStyle:gi,expandIcon:bi,loadingIcon:Ci,popupClassName:Ti,popupPlacement:Qt.getPopupPlacement(jn),dropdownRender:Ar}),xi)})},Qt.state={value:Lt.value||Lt.defaultValue||[],inputValue:"",inputFocused:!1,popupVisible:Lt.popupVisible,flattenOptions:Lt.showSearch?un(Lt.options,Lt):void 0,prevProps:Lt},Qt}return c()(ir,[{key:"componentWillUnmount",value:function(){this.clearSelectionTimeout&&clearTimeout(this.clearSelectionTimeout)}},{key:"getLabel",value:function(){var Qt=this.props,It=Qt.options,or=Qt.displayRender,Cr=or===void 0?Hr:or,Er=jr(this.props),Kr=this.state.value,jn=Array.isArray(Kr[0])?Kr[0]:Kr,Nn=mr()(It,function(Zr,br){return Zr[Er.value]===jn[br]},{childrenKeyName:Er.children}),ei=Nn.length?Nn.map(function(Zr){return Zr[Er.label]}):Kr;return Cr(ei,Nn)}},{key:"generateFilteredOptions",value:function(Qt,It){var or=this,Cr,Er=this.props,Kr=Er.showSearch,jn=Er.notFoundContent,Nn=jr(this.props),ei=Kr.filter,Zr=ei===void 0?hr:ei,br=Kr.render,dn=br===void 0?vn:br,Ln=Kr.sort,Fn=Ln===void 0?en:Ln,zn=Kr.limit,ui=zn===void 0?Bt:zn,ii=this.state,qn=ii.flattenOptions,Li=qn===void 0?[]:qn,zi=ii.inputValue,Ri;if(ui>0){Ri=[];var ga=0;Li.some(function(oi){var hn=Zr(or.state.inputValue,oi,Nn);return hn&&(Ri.push(oi),ga+=1),ga>=ui})}else Object(Jt.a)(typeof ui!="number","Cascader","'limit' of showSearch should be positive number or false."),Ri=Li.filter(function(oi){return Zr(or.state.inputValue,oi,Nn)});return Ri=Ri.sort(function(oi,hn){return Fn(oi,hn,zi,Nn)}),Ri.length>0?Ri.map(function(oi){var hn;return hn={__IS_FILTERED_OPTION:!0,path:oi},v()(hn,Nn.value,oi.map(function(Ei){return Ei[Nn.value]})),v()(hn,Nn.label,dn(zi,oi,Qt,Nn)),v()(hn,"disabled",oi.some(function(Ei){return!!Ei.disabled})),v()(hn,"isEmptyNode",!0),hn}):[(Cr={},v()(Cr,Nn.value,"ANT_CASCADER_NOT_FOUND"),v()(Cr,Nn.label,jn||It("Cascader")),v()(Cr,"disabled",!0),v()(Cr,"isEmptyNode",!0),Cr)]}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"getPopupPlacement",value:function(){var Qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ltr",It=this.props.popupPlacement;return It!==void 0?It:Qt==="rtl"?"bottomRight":"bottomLeft"}},{key:"render",value:function(){var Qt=this;return t.createElement(yt.a,null,function(It){return t.createElement(ht.a,null,function(or){return Qt.renderCascader(It,or)})})}}],[{key:"getDerivedStateFromProps",value:function(Qt,It){var or=It.prevProps,Cr={prevProps:Qt};return"value"in Qt&&(Cr.value=Qt.value||[]),"popupVisible"in Qt&&(Cr.popupVisible=Qt.popupVisible),Qt.showSearch&&or.options!==Qt.options&&(Cr.flattenOptions=un(Qt.options,Qt)),Cr}}]),ir}(t.Component);wr.defaultProps={transitionName:"slide-up",options:[],disabled:!1,allowClear:!0,bordered:!0};var fn=P.a=wr},DFhj:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("GGyF"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},DL4k:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};P.default=O},DN4a:function(U,P,d){var O=d("Fofx"),x=d("QBsz"),T=O.identity,v=5e-5;function S(n){return n>v||n<-v}var m=function(e){e=e||{},e.position||(this.position=[0,0]),e.rotation==null&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},f=m.prototype;f.transform=null,f.needLocalTransform=function(){return S(this.rotation)||S(this.position[0])||S(this.position[1])||S(this.scale[0]-1)||S(this.scale[1]-1)};var c=[];f.updateTransform=function(){var n=this.parent,e=n&&n.transform,s=this.needLocalTransform(),t=this.transform;if(!(s||e)){t&&T(t);return}t=t||O.create(),s?this.getLocalTransform(t):T(t),e&&(s?O.mul(t,n.transform,t):O.copy(t,n.transform)),this.transform=t;var i=this.globalScaleRatio;if(i!=null&&i!==1){this.getGlobalScale(c);var l=c[0]<0?-1:1,u=c[1]<0?-1:1,h=((c[0]-l)*i+l)/c[0]||0,p=((c[1]-u)*i+u)/c[1]||0;t[0]*=h,t[1]*=h,t[2]*=p,t[3]*=p}this.invTransform=this.invTransform||O.create(),O.invert(this.invTransform,t)},f.getLocalTransform=function(n){return m.getLocalTransform(this,n)},f.setTransform=function(n){var e=this.transform,s=n.dpr||1;e?n.setTransform(s*e[0],s*e[1],s*e[2],s*e[3],s*e[4],s*e[5]):n.setTransform(s,0,0,s,0,0)},f.restoreTransform=function(n){var e=n.dpr||1;n.setTransform(e,0,0,e,0,0)};var o=[],r=O.create();f.setLocalTransform=function(n){if(!n)return;var e=n[0]*n[0]+n[1]*n[1],s=n[2]*n[2]+n[3]*n[3],t=this.position,i=this.scale;S(e-1)&&(e=Math.sqrt(e)),S(s-1)&&(s=Math.sqrt(s)),n[0]<0&&(e=-e),n[3]<0&&(s=-s),t[0]=n[4],t[1]=n[5],i[0]=e,i[1]=s,this.rotation=Math.atan2(-n[1]/s,n[0]/e)},f.decomposeTransform=function(){if(!this.transform)return;var n=this.parent,e=this.transform;n&&n.transform&&(O.mul(o,n.invTransform,e),e=o);var s=this.origin;s&&(s[0]||s[1])&&(r[4]=s[0],r[5]=s[1],O.mul(o,e,r),o[4]-=s[0],o[5]-=s[1],e=o),this.setLocalTransform(e)},f.getGlobalScale=function(n){var e=this.transform;return n=n||[],e?(n[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),n[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(n[0]=-n[0]),e[3]<0&&(n[1]=-n[1]),n):(n[0]=1,n[1]=1,n)},f.transformCoordToLocal=function(n,e){var s=[n,e],t=this.invTransform;return t&&x.applyTransform(s,s,t),s},f.transformCoordToGlobal=function(n,e){var s=[n,e],t=this.transform;return t&&x.applyTransform(s,s,t),s},m.getLocalTransform=function(n,e){e=e||[],T(e);var s=n.origin,t=n.scale||[1,1],i=n.rotation||0,l=n.position||[0,0];return s&&(e[4]-=s[0],e[5]-=s[1]),O.scale(e,e,t),i&&O.rotate(e,e,i),s&&(e[4]+=s[0],e[5]+=s[1]),e[4]+=l[0],e[5]+=l[1],e};var a=m;U.exports=a},DO2E:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};P.default=O},DYRE:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("OPEp"),v=d.n(T)},DZo9:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("JGo8"),v=d.n(T),S=d("+L6B"),m=d("MXD1"),f=d("5Dmo")},Dagg:function(U,P,d){var O=d("Gev7"),x=d("mFDi"),T=d("bYtY"),v=d("Xnb7");function S(f){O.call(this,f)}S.prototype={constructor:S,type:"image",brush:function(c,o){var r=this.style,a=r.image;r.bind(c,this,o);var n=this._image=v.createOrUpdateImage(a,this._image,this,this.onload);if(!n||!v.isImageReady(n))return;var e=r.x||0,s=r.y||0,t=r.width,i=r.height,l=n.width/n.height;if(t==null&&i!=null?t=i*l:i==null&&t!=null?i=t/l:t==null&&i==null&&(t=n.width,i=n.height),this.setTransform(c),r.sWidth&&r.sHeight){var u=r.sx||0,h=r.sy||0;c.drawImage(n,u,h,r.sWidth,r.sHeight,e,s,t,i)}else if(r.sx&&r.sy){var u=r.sx,h=r.sy,p=t-u,g=i-h;c.drawImage(n,u,h,p,g,e,s,t,i)}else c.drawImage(n,e,s,t,i);r.text!=null&&(this.restoreTransform(c),this.drawRectText(c,this.getBoundingRect()))},getBoundingRect:function(){var c=this.style;return this._rect||(this._rect=new x(c.x||0,c.y||0,c.width||0,c.height||0)),this._rect}},T.inherits(S,O);var m=S;U.exports=m},Dg8C:function(U,P,d){var O=d("XxSj"),x=d("bYtY");function T(v,S){v.eachSeriesByType("sankey",function(m){var f=m.getGraph(),c=f.nodes;if(c.length){var o=Infinity,r=-Infinity;x.each(c,function(a){var n=a.getLayout().value;n<o&&(o=n),n>r&&(r=n)}),x.each(c,function(a){var n=new O({type:"color",mappingMethod:"linear",dataExtent:[o,r],visual:m.get("color")}),e=n.mapValueToVisual(a.getLayout().value),s=a.getModel().get("itemStyle.color");s!=null?a.setVisual("color",s):a.setVisual("color",e)})}})}U.exports=T},DjyN:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("Urep"),v=d.n(T),S=d("OaEy")},DlQD:function(U,P,d){(function(O,x){U.exports=x()})(this,function(){"use strict";function O(Tt,Ct){for(var Nt=0;Nt<Ct.length;Nt++){var Be=Ct[Nt];Be.enumerable=Be.enumerable||!1,Be.configurable=!0,"value"in Be&&(Be.writable=!0),Object.defineProperty(Tt,Be.key,Be)}}function x(Tt,Ct,Nt){return Ct&&O(Tt.prototype,Ct),Nt&&O(Tt,Nt),Tt}function T(Tt,Ct){if(!Tt)return;if(typeof Tt=="string")return v(Tt,Ct);var Nt=Object.prototype.toString.call(Tt).slice(8,-1);if(Nt==="Object"&&Tt.constructor&&(Nt=Tt.constructor.name),Nt==="Map"||Nt==="Set")return Array.from(Tt);if(Nt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nt))return v(Tt,Ct)}function v(Tt,Ct){(Ct==null||Ct>Tt.length)&&(Ct=Tt.length);for(var Nt=0,Be=new Array(Ct);Nt<Ct;Nt++)Be[Nt]=Tt[Nt];return Be}function S(Tt,Ct){var Nt;if(typeof Symbol=="undefined"||Tt[Symbol.iterator]==null){if(Array.isArray(Tt)||(Nt=T(Tt))||Ct&&Tt&&typeof Tt.length=="number"){Nt&&(Tt=Nt);var Be=0;return function(){return Be>=Tt.length?{done:!0}:{done:!1,value:Tt[Be++]}}}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 Nt=Tt[Symbol.iterator](),Nt.next.bind(Nt)}function m(Tt,Ct){return Ct={exports:{}},Tt(Ct,Ct.exports),Ct.exports}var f=m(function(Tt){function Ct(){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 Nt(Be){Tt.exports.defaults=Be}Tt.exports={defaults:Ct(),getDefaults:Ct,changeDefaults:Nt}}),c=f.defaults,o=f.getDefaults,r=f.changeDefaults,a=/[&<>"']/,n=/[&<>"']/g,e=/[<>"']|&(?!#?\w+;)/,s=/[<>"']|&(?!#?\w+;)/g,t={"&":"&","<":"<",">":">",'"':""","'":"'"},i=function(Ct){return t[Ct]};function l(Tt,Ct){if(Ct){if(a.test(Tt))return Tt.replace(n,i)}else if(e.test(Tt))return Tt.replace(s,i);return Tt}var u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function h(Tt){return Tt.replace(u,function(Ct,Nt){return Nt=Nt.toLowerCase(),Nt==="colon"?":":Nt.charAt(0)==="#"?Nt.charAt(1)==="x"?String.fromCharCode(parseInt(Nt.substring(2),16)):String.fromCharCode(+Nt.substring(1)):""})}var p=/(^|[^\[])\^/g;function g(Tt,Ct){Tt=Tt.source||Tt,Ct=Ct||"";var Nt={replace:function($,Z){return Z=Z.source||Z,Z=Z.replace(p,"$1"),Tt=Tt.replace($,Z),Nt},getRegex:function(){return new RegExp(Tt,Ct)}};return Nt}var A=/[^\w:]/g,y=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function E(Tt,Ct,Nt){if(Tt){var Be;try{Be=decodeURIComponent(h(Nt)).replace(A,"").toLowerCase()}catch($){return null}if(Be.indexOf("javascript:")===0||Be.indexOf("vbscript:")===0||Be.indexOf("data:")===0)return null}Ct&&!y.test(Nt)&&(Nt=_(Ct,Nt));try{Nt=encodeURI(Nt).replace(/%25/g,"%")}catch($){return null}return Nt}var C={},w=/^[^:]+:\/*[^/]*$/,b=/^([^:]+:)[\s\S]*$/,I=/^([^:]+:\/*[^/]*)[\s\S]*$/;function _(Tt,Ct){C[" "+Tt]||(w.test(Tt)?C[" "+Tt]=Tt+"/":C[" "+Tt]=R(Tt,"/",!0)),Tt=C[" "+Tt];var Nt=Tt.indexOf(":")===-1;return Ct.substring(0,2)==="//"?Nt?Ct:Tt.replace(b,"$1")+Ct:Ct.charAt(0)==="/"?Nt?Ct:Tt.replace(I,"$1")+Ct:Tt+Ct}var L={exec:function(){}};function D(Tt){for(var Ct=1,Nt,Be;Ct<arguments.length;Ct++){Nt=arguments[Ct];for(Be in Nt)Object.prototype.hasOwnProperty.call(Nt,Be)&&(Tt[Be]=Nt[Be])}return Tt}function N(Tt,Ct){var Nt=Tt.replace(/\|/g,function(Z,Re,De){for(var ae=!1,gt=Re;--gt>=0&&De[gt]==="\\";)ae=!ae;return ae?"|":" |"}),Be=Nt.split(/ \|/),$=0;if(Be.length>Ct)Be.splice(Ct);else for(;Be.length<Ct;)Be.push("");for(;$<Be.length;$++)Be[$]=Be[$].trim().replace(/\\\|/g,"|");return Be}function R(Tt,Ct,Nt){var Be=Tt.length;if(Be===0)return"";for(var $=0;$<Be;){var Z=Tt.charAt(Be-$-1);if(Z===Ct&&!Nt)$++;else if(Z!==Ct&&Nt)$++;else break}return Tt.substr(0,Be-$)}function B(Tt,Ct){if(Tt.indexOf(Ct[1])===-1)return-1;for(var Nt=Tt.length,Be=0,$=0;$<Nt;$++)if(Tt[$]==="\\")$++;else if(Tt[$]===Ct[0])Be++;else if(Tt[$]===Ct[1]&&(Be--,Be<0))return $;return-1}function M(Tt){Tt&&Tt.sanitize&&!Tt.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:l,unescape:h,edit:g,cleanUrl:E,resolveUrl:_,noopTest:L,merge:D,splitCells:N,rtrim:R,findClosingBracket:B,checkSanitizeDeprecation:M},F=f.defaults,K=H.rtrim,j=H.splitCells,V=H.escape,z=H.findClosingBracket;function Y(Tt,Ct,Nt){var Be=Ct.href,$=Ct.title?V(Ct.title):null,Z=Tt[1].replace(/\\([\[\]])/g,"$1");return Tt[0].charAt(0)!=="!"?{type:"link",raw:Nt,href:Be,title:$,text:Z}:{type:"image",raw:Nt,href:Be,title:$,text:V(Z)}}function ee(Tt,Ct){var Nt=Tt.match(/^(\s+)(?:```)/);if(Nt===null)return Ct;var Be=Nt[1];return Ct.split(`
|
|
|
`).map(function($){var Z=$.match(/^\s+/);if(Z===null)return $;var Re=Z[0];return Re.length>=Be.length?$.slice(Be.length):$}).join(`
|
|
|
`)}var fe=function(){function Tt(Nt){this.options=Nt||F}var Ct=Tt.prototype;return Ct.space=function(Be){var $=this.rules.block.newline.exec(Be);if($)return $[0].length>1?{type:"space",raw:$[0]}:{raw:`
|
|
|
`}},Ct.code=function(Be,$){var Z=this.rules.block.code.exec(Be);if(Z){var Re=$[$.length-1];if(Re&&Re.type==="paragraph")return{raw:Z[0],text:Z[0].trimRight()};var De=Z[0].replace(/^ {4}/gm,"");return{type:"code",raw:Z[0],codeBlockStyle:"indented",text:this.options.pedantic?De:K(De,`
|
|
|
`)}}},Ct.fences=function(Be){var $=this.rules.block.fences.exec(Be);if($){var Z=$[0],Re=ee(Z,$[3]||"");return{type:"code",raw:Z,lang:$[2]?$[2].trim():$[2],text:Re}}},Ct.heading=function(Be){var $=this.rules.block.heading.exec(Be);if($)return{type:"heading",raw:$[0],depth:$[1].length,text:$[2]}},Ct.nptable=function(Be){var $=this.rules.block.nptable.exec(Be);if($){var Z={type:"table",header:j($[1].replace(/^ *| *\| *$/g,"")),align:$[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:$[3]?$[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:$[0]};if(Z.header.length===Z.align.length){var Re=Z.align.length,De;for(De=0;De<Re;De++)/^ *-+: *$/.test(Z.align[De])?Z.align[De]="right":/^ *:-+: *$/.test(Z.align[De])?Z.align[De]="center":/^ *:-+ *$/.test(Z.align[De])?Z.align[De]="left":Z.align[De]=null;for(Re=Z.cells.length,De=0;De<Re;De++)Z.cells[De]=j(Z.cells[De],Z.header.length);return Z}}},Ct.hr=function(Be){var $=this.rules.block.hr.exec(Be);if($)return{type:"hr",raw:$[0]}},Ct.blockquote=function(Be){var $=this.rules.block.blockquote.exec(Be);if($){var Z=$[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:$[0],text:Z}}},Ct.list=function(Be){var $=this.rules.block.list.exec(Be);if($){for(var Z=$[0],Re=$[2],De=Re.length>1,ae=Re[Re.length-1]===")",gt={type:"list",raw:Z,ordered:De,start:De?+Re.slice(0,-1):"",loose:!1,items:[]},jt=$[0].match(this.rules.block.item),ut=!1,rr,pr,nn,mr,vr,$t,Xt,ft=jt.length,Ur=0;Ur<ft;Ur++)rr=jt[Ur],Z=rr,pr=rr.length,rr=rr.replace(/^ *([*+-]|\d+[.)]) */,""),~rr.indexOf(`
|
|
|
`)&&(pr-=rr.length,rr=this.options.pedantic?rr.replace(/^ {1,4}/gm,""):rr.replace(new RegExp("^ {1,"+pr+"}","gm"),"")),Ur!==ft-1&&(nn=this.rules.block.bullet.exec(jt[Ur+1])[0],(De?nn.length===1||!ae&&nn[nn.length-1]===")":nn.length>1||this.options.smartLists&&nn!==Re)&&(mr=jt.slice(Ur+1).join(`
|
|
|
`),gt.raw=gt.raw.substring(0,gt.raw.length-mr.length),Ur=ft-1)),vr=ut||/\n\n(?!\s*$)/.test(rr),Ur!==ft-1&&(ut=rr.charAt(rr.length-1)===`
|
|
|
`,vr||(vr=ut)),vr&&(gt.loose=!0),$t=/^\[[ xX]\] /.test(rr),Xt=void 0,$t&&(Xt=rr[1]!==" ",rr=rr.replace(/^\[[ xX]\] +/,"")),gt.items.push({type:"list_item",raw:Z,task:$t,checked:Xt,loose:vr,text:rr});return gt}},Ct.html=function(Be){var $=this.rules.block.html.exec(Be);if($)return{type:this.options.sanitize?"paragraph":"html",raw:$[0],pre:!this.options.sanitizer&&($[1]==="pre"||$[1]==="script"||$[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer($[0]):V($[0]):$[0]}},Ct.def=function(Be){var $=this.rules.block.def.exec(Be);if($){$[3]&&($[3]=$[3].substring(1,$[3].length-1));var Z=$[1].toLowerCase().replace(/\s+/g," ");return{tag:Z,raw:$[0],href:$[2],title:$[3]}}},Ct.table=function(Be){var $=this.rules.block.table.exec(Be);if($){var Z={type:"table",header:j($[1].replace(/^ *| *\| *$/g,"")),align:$[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:$[3]?$[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(Z.header.length===Z.align.length){Z.raw=$[0];var Re=Z.align.length,De;for(De=0;De<Re;De++)/^ *-+: *$/.test(Z.align[De])?Z.align[De]="right":/^ *:-+: *$/.test(Z.align[De])?Z.align[De]="center":/^ *:-+ *$/.test(Z.align[De])?Z.align[De]="left":Z.align[De]=null;for(Re=Z.cells.length,De=0;De<Re;De++)Z.cells[De]=j(Z.cells[De].replace(/^ *\| *| *\| *$/g,""),Z.header.length);return Z}}},Ct.lheading=function(Be){var $=this.rules.block.lheading.exec(Be);if($)return{type:"heading",raw:$[0],depth:$[2].charAt(0)==="="?1:2,text:$[1]}},Ct.paragraph=function(Be){var $=this.rules.block.paragraph.exec(Be);if($)return{type:"paragraph",raw:$[0],text:$[1].charAt($[1].length-1)===`
|
|
|
`?$[1].slice(0,-1):$[1]}},Ct.text=function(Be,$){var Z=this.rules.block.text.exec(Be);if(Z){var Re=$[$.length-1];return Re&&Re.type==="text"?{raw:Z[0],text:Z[0]}:{type:"text",raw:Z[0],text:Z[0]}}},Ct.escape=function(Be){var $=this.rules.inline.escape.exec(Be);if($)return{type:"escape",raw:$[0],text:V($[1])}},Ct.tag=function(Be,$,Z){var Re=this.rules.inline.tag.exec(Be);if(Re)return!$&&/^<a /i.test(Re[0])?$=!0:$&&/^<\/a>/i.test(Re[0])&&($=!1),!Z&&/^<(pre|code|kbd|script)(\s|>)/i.test(Re[0])?Z=!0:Z&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Re[0])&&(Z=!1),{type:this.options.sanitize?"text":"html",raw:Re[0],inLink:$,inRawBlock:Z,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Re[0]):V(Re[0]):Re[0]}},Ct.link=function(Be){var $=this.rules.inline.link.exec(Be);if($){var Z=z($[2],"()");if(Z>-1){var Re=$[0].indexOf("!")===0?5:4,De=Re+$[1].length+Z;$[2]=$[2].substring(0,Z),$[0]=$[0].substring(0,De).trim(),$[3]=""}var ae=$[2],gt="";if(this.options.pedantic){var jt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ae);jt?(ae=jt[1],gt=jt[3]):gt=""}else gt=$[3]?$[3].slice(1,-1):"";ae=ae.trim().replace(/^<([\s\S]*)>$/,"$1");var ut=Y($,{href:ae&&ae.replace(this.rules.inline._escapes,"$1"),title:gt&>.replace(this.rules.inline._escapes,"$1")},$[0]);return ut}},Ct.reflink=function(Be,$){var Z;if((Z=this.rules.inline.reflink.exec(Be))||(Z=this.rules.inline.nolink.exec(Be))){var Re=(Z[2]||Z[1]).replace(/\s+/g," ");if(Re=$[Re.toLowerCase()],!Re||!Re.href){var De=Z[0].charAt(0);return{type:"text",raw:De,text:De}}var ae=Y(Z,Re,Z[0]);return ae}},Ct.strong=function(Be,$,Z){Z===void 0&&(Z="");var Re=this.rules.inline.strong.start.exec(Be);if(Re&&(!Re[1]||Re[1]&&(Z===""||this.rules.inline.punctuation.exec(Z)))){$=$.slice(-1*Be.length);var De=Re[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;De.lastIndex=0;for(var ae;(Re=De.exec($))!=null;)if(ae=this.rules.inline.strong.middle.exec($.slice(0,Re.index+3)),ae)return{type:"strong",raw:Be.slice(0,ae[0].length),text:Be.slice(2,ae[0].length-2)}}},Ct.em=function(Be,$,Z){Z===void 0&&(Z="");var Re=this.rules.inline.em.start.exec(Be);if(Re&&(!Re[1]||Re[1]&&(Z===""||this.rules.inline.punctuation.exec(Z)))){$=$.slice(-1*Be.length);var De=Re[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;De.lastIndex=0;for(var ae;(Re=De.exec($))!=null;)if(ae=this.rules.inline.em.middle.exec($.slice(0,Re.index+2)),ae)return{type:"em",raw:Be.slice(0,ae[0].length),text:Be.slice(1,ae[0].length-1)}}},Ct.codespan=function(Be){var $=this.rules.inline.code.exec(Be);if($){var Z=$[2].replace(/\n/g," "),Re=/[^ ]/.test(Z),De=Z.startsWith(" ")&&Z.endsWith(" ");return Re&&De&&(Z=Z.substring(1,Z.length-1)),Z=V(Z,!0),{type:"codespan",raw:$[0],text:Z}}},Ct.br=function(Be){var $=this.rules.inline.br.exec(Be);if($)return{type:"br",raw:$[0]}},Ct.del=function(Be){var $=this.rules.inline.del.exec(Be);if($)return{type:"del",raw:$[0],text:$[1]}},Ct.autolink=function(Be,$){var Z=this.rules.inline.autolink.exec(Be);if(Z){var Re,De;return Z[2]==="@"?(Re=V(this.options.mangle?$(Z[1]):Z[1]),De="mailto:"+Re):(Re=V(Z[1]),De=Re),{type:"link",raw:Z[0],text:Re,href:De,tokens:[{type:"text",raw:Re,text:Re}]}}},Ct.url=function(Be,$){var Z;if(Z=this.rules.inline.url.exec(Be)){var Re,De;if(Z[2]==="@")Re=V(this.options.mangle?$(Z[0]):Z[0]),De="mailto:"+Re;else{var ae;do ae=Z[0],Z[0]=this.rules.inline._backpedal.exec(Z[0])[0];while(ae!==Z[0]);Re=V(Z[0]),Z[1]==="www."?De="http://"+Re:De=Re}return{type:"link",raw:Z[0],text:Re,href:De,tokens:[{type:"text",raw:Re,text:Re}]}}},Ct.inlineText=function(Be,$,Z){var Re=this.rules.inline.text.exec(Be);if(Re){var De;return $?De=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Re[0]):V(Re[0]):Re[0]:De=V(this.options.smartypants?Z(Re[0]):Re[0]),{type:"text",raw:Re[0],text:De}}},Tt}(),ie=H.noopTest,we=H.edit,Ce=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:ie,table:ie,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=we(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=we(Le.item,"gm").replace(/bull/g,Le.bullet).getRegex(),Le.list=we(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=we(Le.html,"i").replace("comment",Le._comment).replace("tag",Le._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Le.paragraph=we(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=we(Le.blockquote).replace("paragraph",Le.paragraph).getRegex(),Le.normal=Ce({},Le),Le.gfm=Ce({},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=we(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=we(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=Ce({},Le.normal,{html:we(`^ *(?: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:ie,paragraph:we(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 He={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ie,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:ie,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};He._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",He.punctuation=we(He.punctuation).replace(/punctuation/g,He._punctuation).getRegex(),He._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",He._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",He.em.start=we(He.em.start).replace(/punctuation/g,He._punctuation).getRegex(),He.em.middle=we(He.em.middle).replace(/punctuation/g,He._punctuation).replace(/overlapSkip/g,He._overlapSkip).getRegex(),He.em.endAst=we(He.em.endAst,"g").replace(/punctuation/g,He._punctuation).getRegex(),He.em.endUnd=we(He.em.endUnd,"g").replace(/punctuation/g,He._punctuation).getRegex(),He.strong.start=we(He.strong.start).replace(/punctuation/g,He._punctuation).getRegex(),He.strong.middle=we(He.strong.middle).replace(/punctuation/g,He._punctuation).replace(/blockSkip/g,He._blockSkip).getRegex(),He.strong.endAst=we(He.strong.endAst,"g").replace(/punctuation/g,He._punctuation).getRegex(),He.strong.endUnd=we(He.strong.endUnd,"g").replace(/punctuation/g,He._punctuation).getRegex(),He.blockSkip=we(He._blockSkip,"g").getRegex(),He.overlapSkip=we(He._overlapSkip,"g").getRegex(),He._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,He._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,He._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])?)+(?![-_])/,He.autolink=we(He.autolink).replace("scheme",He._scheme).replace("email",He._email).getRegex(),He._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,He.tag=we(He.tag).replace("comment",Le._comment).replace("attribute",He._attribute).getRegex(),He._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,He._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,He._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,He.link=we(He.link).replace("label",He._label).replace("href",He._href).replace("title",He._title).getRegex(),He.reflink=we(He.reflink).replace("label",He._label).getRegex(),He.reflinkSearch=we(He.reflinkSearch,"g").replace("reflink",He.reflink).replace("nolink",He.nolink).getRegex(),He.normal=Ce({},He),He.pedantic=Ce({},He.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:we(/^!?\[(label)\]\((.*?)\)/).replace("label",He._label).getRegex(),reflink:we(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",He._label).getRegex()}),He.gfm=Ce({},He.normal,{escape:we(He.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),He.gfm.url=we(He.gfm.url,"i").replace("email",He.gfm._extended_email).getRegex(),He.breaks=Ce({},He.gfm,{br:we(He.br).replace("{2,}","*").getRegex(),text:we(He.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var ce={block:Le,inline:He},Pe=f.defaults,Q=ce.block,me=ce.inline;function Je(Tt){return Tt.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 re(Tt){var Ct="",Nt,Be,$=Tt.length;for(Nt=0;Nt<$;Nt++)Be=Tt.charCodeAt(Nt),Math.random()>.5&&(Be="x"+Be.toString(16)),Ct+="&#"+Be+";";return Ct}var G=function(){function Tt(Nt){this.tokens=[],this.tokens.links=Object.create(null),this.options=Nt||Pe,this.options.tokenizer=this.options.tokenizer||new fe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Be={block:Q.normal,inline:me.normal};this.options.pedantic?(Be.block=Q.pedantic,Be.inline=me.pedantic):this.options.gfm&&(Be.block=Q.gfm,this.options.breaks?Be.inline=me.breaks:Be.inline=me.gfm),this.tokenizer.rules=Be}Tt.lex=function(Be,$){var Z=new Tt($);return Z.lex(Be)};var Ct=Tt.prototype;return Ct.lex=function(Be){return Be=Be.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(Be,this.tokens,!0),this.inline(this.tokens),this.tokens},Ct.blockTokens=function(Be,$,Z){$===void 0&&($=[]),Z===void 0&&(Z=!0),Be=Be.replace(/^ +$/gm,"");for(var Re,De,ae,gt;Be;){if(Re=this.tokenizer.space(Be)){Be=Be.substring(Re.raw.length),Re.type&&$.push(Re);continue}if(Re=this.tokenizer.code(Be,$)){Be=Be.substring(Re.raw.length),Re.type?$.push(Re):(gt=$[$.length-1],gt.raw+=`
|
|
|
`+Re.raw,gt.text+=`
|
|
|
`+Re.text);continue}if(Re=this.tokenizer.fences(Be)){Be=Be.substring(Re.raw.length),$.push(Re);continue}if(Re=this.tokenizer.heading(Be)){Be=Be.substring(Re.raw.length),$.push(Re);continue}if(Re=this.tokenizer.nptable(Be)){Be=Be.substring(Re.raw.length),$.push(Re);continue}if(Re=this.tokenizer.hr(Be)){Be=Be.substring(Re.raw.length),$.push(Re);continue}if(Re=this.tokenizer.blockquote(Be)){Be=Be.substring(Re.raw.length),Re.tokens=this.blockTokens(Re.text,[],Z),$.push(Re);continue}if(Re=this.tokenizer.list(Be)){for(Be=Be.substring(Re.raw.length),ae=Re.items.length,De=0;De<ae;De++)Re.items[De].tokens=this.blockTokens(Re.items[De].text,[],!1);$.push(Re);continue}if(Re=this.tokenizer.html(Be)){Be=Be.substring(Re.raw.length),$.push(Re);continue}if(Z&&(Re=this.tokenizer.def(Be))){Be=Be.substring(Re.raw.length),this.tokens.links[Re.tag]||(this.tokens.links[Re.tag]={href:Re.href,title:Re.title});continue}if(Re=this.tokenizer.table(Be)){Be=Be.substring(Re.raw.length),$.push(Re);continue}if(Re=this.tokenizer.lheading(Be)){Be=Be.substring(Re.raw.length),$.push(Re);continue}if(Z&&(Re=this.tokenizer.paragraph(Be))){Be=Be.substring(Re.raw.length),$.push(Re);continue}if(Re=this.tokenizer.text(Be,$)){Be=Be.substring(Re.raw.length),Re.type?$.push(Re):(gt=$[$.length-1],gt.raw+=`
|
|
|
`+Re.raw,gt.text+=`
|
|
|
`+Re.text);continue}if(Be){var jt="Infinite loop on byte: "+Be.charCodeAt(0);if(this.options.silent){console.error(jt);break}else throw new Error(jt)}}return $},Ct.inline=function(Be){var $,Z,Re,De,ae,gt,jt=Be.length;for($=0;$<jt;$++){gt=Be[$];switch(gt.type){case"paragraph":case"text":case"heading":{gt.tokens=[],this.inlineTokens(gt.text,gt.tokens);break}case"table":{for(gt.tokens={header:[],cells:[]},De=gt.header.length,Z=0;Z<De;Z++)gt.tokens.header[Z]=[],this.inlineTokens(gt.header[Z],gt.tokens.header[Z]);for(De=gt.cells.length,Z=0;Z<De;Z++)for(ae=gt.cells[Z],gt.tokens.cells[Z]=[],Re=0;Re<ae.length;Re++)gt.tokens.cells[Z][Re]=[],this.inlineTokens(ae[Re],gt.tokens.cells[Z][Re]);break}case"blockquote":{this.inline(gt.tokens);break}case"list":{for(De=gt.items.length,Z=0;Z<De;Z++)this.inline(gt.items[Z].tokens);break}}}return Be},Ct.inlineTokens=function(Be,$,Z,Re,De){$===void 0&&($=[]),Z===void 0&&(Z=!1),Re===void 0&&(Re=!1),De===void 0&&(De="");var ae,gt=Be,jt;if(this.tokens.links){var ut=Object.keys(this.tokens.links);if(ut.length>0)for(;(jt=this.tokenizer.rules.inline.reflinkSearch.exec(gt))!=null;)ut.includes(jt[0].slice(jt[0].lastIndexOf("[")+1,-1))&&(gt=gt.slice(0,jt.index)+"["+"a".repeat(jt[0].length-2)+"]"+gt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(jt=this.tokenizer.rules.inline.blockSkip.exec(gt))!=null;)gt=gt.slice(0,jt.index)+"["+"a".repeat(jt[0].length-2)+"]"+gt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Be;){if(ae=this.tokenizer.escape(Be)){Be=Be.substring(ae.raw.length),$.push(ae);continue}if(ae=this.tokenizer.tag(Be,Z,Re)){Be=Be.substring(ae.raw.length),Z=ae.inLink,Re=ae.inRawBlock,$.push(ae);continue}if(ae=this.tokenizer.link(Be)){Be=Be.substring(ae.raw.length),ae.type==="link"&&(ae.tokens=this.inlineTokens(ae.text,[],!0,Re)),$.push(ae);continue}if(ae=this.tokenizer.reflink(Be,this.tokens.links)){Be=Be.substring(ae.raw.length),ae.type==="link"&&(ae.tokens=this.inlineTokens(ae.text,[],!0,Re)),$.push(ae);continue}if(ae=this.tokenizer.strong(Be,gt,De)){Be=Be.substring(ae.raw.length),ae.tokens=this.inlineTokens(ae.text,[],Z,Re),$.push(ae);continue}if(ae=this.tokenizer.em(Be,gt,De)){Be=Be.substring(ae.raw.length),ae.tokens=this.inlineTokens(ae.text,[],Z,Re),$.push(ae);continue}if(ae=this.tokenizer.codespan(Be)){Be=Be.substring(ae.raw.length),$.push(ae);continue}if(ae=this.tokenizer.br(Be)){Be=Be.substring(ae.raw.length),$.push(ae);continue}if(ae=this.tokenizer.del(Be)){Be=Be.substring(ae.raw.length),ae.tokens=this.inlineTokens(ae.text,[],Z,Re),$.push(ae);continue}if(ae=this.tokenizer.autolink(Be,re)){Be=Be.substring(ae.raw.length),$.push(ae);continue}if(!Z&&(ae=this.tokenizer.url(Be,re))){Be=Be.substring(ae.raw.length),$.push(ae);continue}if(ae=this.tokenizer.inlineText(Be,Re,Je)){Be=Be.substring(ae.raw.length),De=ae.raw.slice(-1),$.push(ae);continue}if(Be){var rr="Infinite loop on byte: "+Be.charCodeAt(0);if(this.options.silent){console.error(rr);break}else throw new Error(rr)}}return $},x(Tt,null,[{key:"rules",get:function(){return{block:Q,inline:me}}}]),Tt}(),X=f.defaults,J=H.cleanUrl,Ae=H.escape,he=function(){function Tt(Nt){this.options=Nt||X}var Ct=Tt.prototype;return Ct.code=function(Be,$,Z){var Re=($||"").match(/\S*/)[0];if(this.options.highlight){var De=this.options.highlight(Be,Re);De!=null&&De!==Be&&(Z=!0,Be=De)}return Re?'<pre><code class="'+this.options.langPrefix+Ae(Re,!0)+'">'+(Z?Be:Ae(Be,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(Z?Be:Ae(Be,!0))+`</code></pre>
|
|
|
`},Ct.blockquote=function(Be){return`<blockquote>
|
|
|
`+Be+`</blockquote>
|
|
|
`},Ct.html=function(Be){return Be},Ct.heading=function(Be,$,Z,Re){return this.options.headerIds?"<h"+$+' id="'+this.options.headerPrefix+Re.slug(Z)+'">'+Be+"</h"+$+`>
|
|
|
`:"<h"+$+">"+Be+"</h"+$+`>
|
|
|
`},Ct.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},Ct.list=function(Be,$,Z){var Re=$?"ol":"ul",De=$&&Z!==1?' start="'+Z+'"':"";return"<"+Re+De+`>
|
|
|
`+Be+"</"+Re+`>
|
|
|
`},Ct.listitem=function(Be){return"<li>"+Be+`</li>
|
|
|
`},Ct.checkbox=function(Be){return"<input "+(Be?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Ct.paragraph=function(Be){return"<p>"+Be+`</p>
|
|
|
`},Ct.table=function(Be,$){return $&&($="<tbody>"+$+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+Be+`</thead>
|
|
|
`+$+`</table>
|
|
|
`},Ct.tablerow=function(Be){return`<tr>
|
|
|
`+Be+`</tr>
|
|
|
`},Ct.tablecell=function(Be,$){var Z=$.header?"th":"td",Re=$.align?"<"+Z+' align="'+$.align+'">':"<"+Z+">";return Re+Be+"</"+Z+`>
|
|
|
`},Ct.strong=function(Be){return"<strong>"+Be+"</strong>"},Ct.em=function(Be){return"<em>"+Be+"</em>"},Ct.codespan=function(Be){return"<code>"+Be+"</code>"},Ct.br=function(){return this.options.xhtml?"<br/>":"<br>"},Ct.del=function(Be){return"<del>"+Be+"</del>"},Ct.link=function(Be,$,Z){if(Be=J(this.options.sanitize,this.options.baseUrl,Be),Be===null)return Z;var Re='<a href="'+Ae(Be)+'"';return $&&(Re+=' title="'+$+'"'),Re+=">"+Z+"</a>",Re},Ct.image=function(Be,$,Z){if(Be=J(this.options.sanitize,this.options.baseUrl,Be),Be===null)return Z;var Re='<img src="'+Be+'" alt="'+Z+'"';return $&&(Re+=' title="'+$+'"'),Re+=this.options.xhtml?"/>":">",Re},Ct.text=function(Be){return Be},Tt}(),Me=function(){function Tt(){}var Ct=Tt.prototype;return Ct.strong=function(Be){return Be},Ct.em=function(Be){return Be},Ct.codespan=function(Be){return Be},Ct.del=function(Be){return Be},Ct.html=function(Be){return Be},Ct.text=function(Be){return Be},Ct.link=function(Be,$,Z){return""+Z},Ct.image=function(Be,$,Z){return""+Z},Ct.br=function(){return""},Tt}(),Ie=function(){function Tt(){this.seen={}}var Ct=Tt.prototype;return Ct.slug=function(Be){var $=Be.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty($)){var Z=$;do this.seen[Z]++,$=Z+"-"+this.seen[Z];while(this.seen.hasOwnProperty($))}return this.seen[$]=0,$},Tt}(),oe=f.defaults,pe=H.unescape,Oe=function(){function Tt(Nt){this.options=Nt||oe,this.options.renderer=this.options.renderer||new he,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Me,this.slugger=new Ie}Tt.parse=function(Be,$){var Z=new Tt($);return Z.parse(Be)};var Ct=Tt.prototype;return Ct.parse=function(Be,$){$===void 0&&($=!0);var Z="",Re,De,ae,gt,jt,ut,rr,pr,nn,mr,vr,$t,Xt,ft,Ur,yn,Dn,Un,wi=Be.length;for(Re=0;Re<wi;Re++){mr=Be[Re];switch(mr.type){case"space":continue;case"hr":{Z+=this.renderer.hr();continue}case"heading":{Z+=this.renderer.heading(this.parseInline(mr.tokens),mr.depth,pe(this.parseInline(mr.tokens,this.textRenderer)),this.slugger);continue}case"code":{Z+=this.renderer.code(mr.text,mr.lang,mr.escaped);continue}case"table":{for(pr="",rr="",gt=mr.header.length,De=0;De<gt;De++)rr+=this.renderer.tablecell(this.parseInline(mr.tokens.header[De]),{header:!0,align:mr.align[De]});for(pr+=this.renderer.tablerow(rr),nn="",gt=mr.cells.length,De=0;De<gt;De++){for(ut=mr.tokens.cells[De],rr="",jt=ut.length,ae=0;ae<jt;ae++)rr+=this.renderer.tablecell(this.parseInline(ut[ae]),{header:!1,align:mr.align[ae]});nn+=this.renderer.tablerow(rr)}Z+=this.renderer.table(pr,nn);continue}case"blockquote":{nn=this.parse(mr.tokens),Z+=this.renderer.blockquote(nn);continue}case"list":{for(vr=mr.ordered,$t=mr.start,Xt=mr.loose,gt=mr.items.length,nn="",De=0;De<gt;De++)Ur=mr.items[De],yn=Ur.checked,Dn=Ur.task,ft="",Ur.task&&(Un=this.renderer.checkbox(yn),Xt?Ur.tokens.length>0&&Ur.tokens[0].type==="text"?(Ur.tokens[0].text=Un+" "+Ur.tokens[0].text,Ur.tokens[0].tokens&&Ur.tokens[0].tokens.length>0&&Ur.tokens[0].tokens[0].type==="text"&&(Ur.tokens[0].tokens[0].text=Un+" "+Ur.tokens[0].tokens[0].text)):Ur.tokens.unshift({type:"text",text:Un}):ft+=Un),ft+=this.parse(Ur.tokens,Xt),nn+=this.renderer.listitem(ft,Dn,yn);Z+=this.renderer.list(nn,vr,$t);continue}case"html":{Z+=this.renderer.html(mr.text);continue}case"paragraph":{Z+=this.renderer.paragraph(this.parseInline(mr.tokens));continue}case"text":{for(nn=mr.tokens?this.parseInline(mr.tokens):mr.text;Re+1<wi&&Be[Re+1].type==="text";)mr=Be[++Re],nn+=`
|
|
|
`+(mr.tokens?this.parseInline(mr.tokens):mr.text);Z+=$?this.renderer.paragraph(nn):nn;continue}default:{var Rn='Token with "'+mr.type+'" type was not found.';if(this.options.silent){console.error(Rn);return}else throw new Error(Rn)}}}return Z},Ct.parseInline=function(Be,$){$=$||this.renderer;var Z="",Re,De,ae=Be.length;for(Re=0;Re<ae;Re++){De=Be[Re];switch(De.type){case"escape":{Z+=$.text(De.text);break}case"html":{Z+=$.html(De.text);break}case"link":{Z+=$.link(De.href,De.title,this.parseInline(De.tokens,$));break}case"image":{Z+=$.image(De.href,De.title,De.text);break}case"strong":{Z+=$.strong(this.parseInline(De.tokens,$));break}case"em":{Z+=$.em(this.parseInline(De.tokens,$));break}case"codespan":{Z+=$.codespan(De.text);break}case"br":{Z+=$.br();break}case"del":{Z+=$.del(this.parseInline(De.tokens,$));break}case"text":{Z+=$.text(De.text);break}default:{var gt='Token with "'+De.type+'" type was not found.';if(this.options.silent){console.error(gt);return}else throw new Error(gt)}}}return Z},Tt}(),Ye=H.merge,it=H.checkSanitizeDeprecation,et=H.escape,Te=f.getDefaults,tt=f.changeDefaults,ze=f.defaults;function dt(Tt,Ct,Nt){if(typeof Tt=="undefined"||Tt===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Tt!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Tt)+", string expected");if(typeof Ct=="function"&&(Nt=Ct,Ct=null),Ct=Ye({},dt.defaults,Ct||{}),it(Ct),Nt){var Be=Ct.highlight,$;try{$=G.lex(Tt,Ct)}catch(ae){return Nt(ae)}var Z=function(gt){var jt;if(!gt)try{jt=Oe.parse($,Ct)}catch(ut){gt=ut}return Ct.highlight=Be,gt?Nt(gt):Nt(null,jt)};if(!Be||Be.length<3)return Z();if(delete Ct.highlight,!$.length)return Z();var Re=0;dt.walkTokens($,function(ae){ae.type==="code"&&(Re++,setTimeout(function(){Be(ae.text,ae.lang,function(gt,jt){if(gt)return Z(gt);jt!=null&&jt!==ae.text&&(ae.text=jt,ae.escaped=!0),Re--,Re===0&&Z()})},0))}),Re===0&&Z();return}try{var De=G.lex(Tt,Ct);return Ct.walkTokens&&dt.walkTokens(De,Ct.walkTokens),Oe.parse(De,Ct)}catch(ae){if(ae.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,Ct.silent)return"<p>An error occurred:</p><pre>"+et(ae.message+"",!0)+"</pre>";throw ae}}dt.options=dt.setOptions=function(Tt){return Ye(dt.defaults,Tt),tt(dt.defaults),dt},dt.getDefaults=Te,dt.defaults=ze,dt.use=function(Tt){var Ct=Ye({},Tt);if(Tt.renderer&&function(){var Be=dt.defaults.renderer||new he,$=function(De){var ae=Be[De];Be[De]=function(){for(var gt=arguments.length,jt=new Array(gt),ut=0;ut<gt;ut++)jt[ut]=arguments[ut];var rr=Tt.renderer[De].apply(Be,jt);return rr===!1&&(rr=ae.apply(Be,jt)),rr}};for(var Z in Tt.renderer)$(Z);Ct.renderer=Be}(),Tt.tokenizer&&function(){var Be=dt.defaults.tokenizer||new fe,$=function(De){var ae=Be[De];Be[De]=function(){for(var gt=arguments.length,jt=new Array(gt),ut=0;ut<gt;ut++)jt[ut]=arguments[ut];var rr=Tt.tokenizer[De].apply(Be,jt);return rr===!1&&(rr=ae.apply(Be,jt)),rr}};for(var Z in Tt.tokenizer)$(Z);Ct.tokenizer=Be}(),Tt.walkTokens){var Nt=dt.defaults.walkTokens;Ct.walkTokens=function(Be){Tt.walkTokens(Be),Nt&&Nt(Be)}}dt.setOptions(Ct)},dt.walkTokens=function(Tt,Ct){for(var Nt=S(Tt),Be;!(Be=Nt()).done;){var $=Be.value;Ct($);switch($.type){case"table":{for(var Z=S($.tokens.header),Re;!(Re=Z()).done;){var De=Re.value;dt.walkTokens(De,Ct)}for(var ae=S($.tokens.cells),gt;!(gt=ae()).done;)for(var jt=gt.value,ut=S(jt),rr;!(rr=ut()).done;){var pr=rr.value;dt.walkTokens(pr,Ct)}break}case"list":{dt.walkTokens($.items,Ct);break}default:$.tokens&&dt.walkTokens($.tokens,Ct)}}},dt.Parser=Oe,dt.parser=Oe.parse,dt.Renderer=he,dt.TextRenderer=Me,dt.Lexer=G,dt.lexer=G.lex,dt.Tokenizer=fe,dt.Slugger=Ie,dt.parse=dt;var Ot=dt;return Ot})},"DlR+":function(U,P,d){var O=d("MFOe"),x=O.Global,T=O.trim;U.exports={name:"cookieStorage",read:S,write:f,each:m,remove:c,clearAll:o};var v=x.document;function S(a){if(!a||!r(a))return null;var n="(?:^|.*;\\s*)"+escape(a).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(v.cookie.replace(new RegExp(n),"$1"))}function m(a){for(var n=v.cookie.split(/; ?/g),e=n.length-1;e>=0;e--){if(!T(n[e]))continue;var s=n[e].split("="),t=unescape(s[0]),i=unescape(s[1]);a(i,t)}}function f(a,n){if(!a)return;v.cookie=escape(a)+"="+escape(n)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function c(a){if(!a||!r(a))return;v.cookie=escape(a)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function o(){m(function(a,n){c(n)})}function r(a){return new RegExp("(?:^|;\\s*)"+escape(a).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(v.cookie)}},Ducp:function(U,P,d){var O=d("bYtY"),x=d("IwbS"),T=d("+TT/"),v=d("XpcN"),S=x.Group,m=["width","height"],f=["x","y"],c=v.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){c.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new S),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new S),this._showController},resetInner:function(){c.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(r,a,n,e,s,t,i){var l=this;c.superCall(this,"renderInner",r,a,n,e,s,t,i);var u=this._controllerGroup,h=a.get("pageIconSize",!0);O.isArray(h)||(h=[h,h]),g("pagePrev",0);var p=a.getModel("pageTextStyle");u.add(new x.Text({name:"pageText",style:{textFill:p.getTextColor(),font:p.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),g("pageNext",1);function g(A,y){var E=A+"DataIndex",C=x.createIcon(a.get("pageIcons",!0)[a.getOrient().name][y],{onclick:O.bind(l._pageGo,l,E,a,e)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});C.name=A,u.add(C)}},layoutInner:function(r,a,n,e,s,t){var i=this.getSelectorGroup(),l=r.getOrient().index,u=m[l],h=f[l],p=m[1-l],g=f[1-l];s&&T.box("horizontal",i,r.get("selectorItemGap",!0));var A=r.get("selectorButtonGap",!0),y=i.getBoundingRect(),E=[-y.x,-y.y],C=O.clone(n);s&&(C[u]=n[u]-y[u]-A);var w=this._layoutContentAndController(r,e,C,l,u,p,g);if(s){if(t==="end")E[l]+=w[u]+A;else{var b=y[u]+A;E[l]-=b,w[h]-=b}w[u]+=y[u]+A,E[1-l]+=w[g]+w[p]/2-y[p]/2,w[p]=Math.max(w[p],y[p]),w[g]=Math.min(w[g],y[g]+E[1-l]),i.attr("position",E)}return w},_layoutContentAndController:function(r,a,n,e,s,t,i){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup;T.box(r.get("orient"),l,r.get("itemGap"),e?n.width:null,e?null:n.height),T.box("horizontal",h,r.get("pageButtonItemGap",!0));var p=l.getBoundingRect(),g=h.getBoundingRect(),A=this._showController=p[s]>n[s],y=[-p.x,-p.y];a||(y[e]=l.position[e]);var E=[0,0],C=[-g.x,-g.y],w=O.retrieve2(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(A){var b=r.get("pageButtonPosition",!0);b==="end"?C[e]+=n[s]-g[s]:E[e]+=g[s]+w}C[1-e]+=p[t]/2-g[t]/2,l.attr("position",y),u.attr("position",E),h.attr("position",C);var I={x:0,y:0};if(I[s]=A?n[s]:p[s],I[t]=Math.max(p[t],g[t]),I[i]=Math.min(0,g[i]+C[1-e]),u.__rectSize=n[s],A){var _={x:0,y:0};_[s]=Math.max(n[s]-g[s]-w,0),_[t]=I[t],u.setClipPath(new x.Rect({shape:_})),u.__rectSize=_[s]}else h.eachChild(function(D){D.attr({invisible:!0,silent:!0})});var L=this._getPageInfo(r);return L.pageIndex!=null&&x.updateProps(l,{position:L.contentPosition},A?r:!1),this._updatePageInfoView(r,L),I},_pageGo:function(r,a,n){var e=this._getPageInfo(a)[r];e!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:e,legendId:a.id})},_updatePageInfoView:function(r,a){var n=this._controllerGroup;O.each(["pagePrev","pageNext"],function(u){var h=a[u+"DataIndex"]!=null,p=n.childOfName(u);p&&(p.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),p.cursor=h?"pointer":"default")});var e=n.childOfName("pageText"),s=r.get("pageFormatter"),t=a.pageIndex,i=t!=null?t+1:0,l=a.pageCount;e&&s&&e.setStyle("text",O.isString(s)?s.replace("{current}",i).replace("{total}",l):s({current:i,total:l}))},_getPageInfo:function(r){var a=r.get("scrollDataIndex",!0),n=this.getContentGroup(),e=this._containerGroup.__rectSize,s=r.getOrient().index,t=m[s],i=f[s],l=this._findTargetItemIndex(a),u=n.children(),h=u[l],p=u.length,g=p?1:0,A={contentPosition:n.position.slice(),pageCount:g,pageIndex:g-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return A;var y=I(h);A.contentPosition[s]=-y.s;for(var E=l+1,C=y,w=y,b=null;E<=p;++E)b=I(u[E]),(!b&&w.e>C.s+e||b&&!_(b,C.s))&&(w.i>C.i?C=w:C=b,C&&(A.pageNextDataIndex==null&&(A.pageNextDataIndex=C.i),++A.pageCount)),w=b;for(var E=l-1,C=y,w=y,b=null;E>=-1;--E)b=I(u[E]),(!b||!_(w,b.s))&&C.i<w.i&&(w=C,A.pagePrevDataIndex==null&&(A.pagePrevDataIndex=C.i),++A.pageCount,++A.pageIndex),C=b;return A;function I(L){if(L){var D=L.getBoundingRect(),N=D[i]+L.position[s];return{s:N,e:N+D[t],i:L.__legendDataIndex}}}function _(L,D){return L.e>=D&&L.s<=D+e}},_findTargetItemIndex:function(r){if(!this._showController)return 0;var a,n=this.getContentGroup(),e;return n.eachChild(function(s,t){var i=s.__legendDataIndex;e==null&&i!=null&&(e=t),i===r&&(a=t)}),a!=null?a:e}}),o=c;U.exports=o},"E/ki":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};P.default=O},E2g8:function(U,P,d){(function(O,x){/*!
|
|
|
* @overview es6-promise - a tiny implementation of Promises/A+.
|
|
|
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
|
|
* @license Licensed under MIT license
|
|
|
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
|
|
|
* @version v4.2.8+1e68dce6
|
|
|
*/(function(T,v){U.exports=v()})(this,function(){"use strict";function T(he){var Me=typeof he;return he!==null&&(Me==="object"||Me==="function")}function v(he){return typeof he=="function"}var S=void 0;Array.isArray?S=Array.isArray:S=function(Me){return Object.prototype.toString.call(Me)==="[object Array]"};var m=S,f=0,c=void 0,o=void 0,r=function(Me,Ie){y[f]=Me,y[f+1]=Ie,f+=2,f===2&&(o?o(E):w())};function a(he){o=he}function n(he){r=he}var e=typeof window!="undefined"?window:void 0,s=e||{},t=s.MutationObserver||s.WebKitMutationObserver,i=typeof self=="undefined"&&typeof O!="undefined"&&{}.toString.call(O)==="[object process]",l=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function u(){return function(){return O.nextTick(E)}}function h(){return typeof c!="undefined"?function(){c(E)}:A()}function p(){var he=0,Me=new t(E),Ie=document.createTextNode("");return Me.observe(Ie,{characterData:!0}),function(){Ie.data=he=++he%2}}function g(){var he=new MessageChannel;return he.port1.onmessage=E,function(){return he.port2.postMessage(0)}}function A(){var he=setTimeout;return function(){return he(E,1)}}var y=new Array(1e3);function E(){for(var he=0;he<f;he+=2){var Me=y[he],Ie=y[he+1];Me(Ie),y[he]=void 0,y[he+1]=void 0}f=0}function C(){try{var he=Function("return this")().require("vertx");return c=he.runOnLoop||he.runOnContext,h()}catch(Me){return A()}}var w=void 0;i?w=u():t?w=p():l?w=g():e===void 0&&!0?w=C():w=A();function b(he,Me){var Ie=this,oe=new this.constructor(L);oe[_]===void 0&&ce(oe);var pe=Ie._state;if(pe){var Oe=arguments[pe-1];r(function(){return we(pe,oe,Oe,Ie._result)})}else fe(Ie,oe,he,Me);return oe}function I(he){var Me=this;if(he&&typeof he=="object"&&he.constructor===Me)return he;var Ie=new Me(L);return V(Ie,he),Ie}var _=Math.random().toString(36).substring(2);function L(){}var D=void 0,N=1,R=2;function B(){return new TypeError("You cannot resolve a promise with itself")}function M(){return new TypeError("A promises callback cannot return that same promise.")}function H(he,Me,Ie,oe){try{he.call(Me,Ie,oe)}catch(pe){return pe}}function F(he,Me,Ie){r(function(oe){var pe=!1,Oe=H(Ie,Me,function(Ye){if(pe)return;pe=!0,Me!==Ye?V(oe,Ye):Y(oe,Ye)},function(Ye){if(pe)return;pe=!0,ee(oe,Ye)},"Settle: "+(oe._label||" unknown promise"));!pe&&Oe&&(pe=!0,ee(oe,Oe))},he)}function K(he,Me){Me._state===N?Y(he,Me._result):Me._state===R?ee(he,Me._result):fe(Me,void 0,function(Ie){return V(he,Ie)},function(Ie){return ee(he,Ie)})}function j(he,Me,Ie){Me.constructor===he.constructor&&Ie===b&&Me.constructor.resolve===I?K(he,Me):Ie===void 0?Y(he,Me):v(Ie)?F(he,Me,Ie):Y(he,Me)}function V(he,Me){if(he===Me)ee(he,B());else if(T(Me)){var Ie=void 0;try{Ie=Me.then}catch(oe){ee(he,oe);return}j(he,Me,Ie)}else Y(he,Me)}function z(he){he._onerror&&he._onerror(he._result),ie(he)}function Y(he,Me){if(he._state!==D)return;he._result=Me,he._state=N,he._subscribers.length!==0&&r(ie,he)}function ee(he,Me){if(he._state!==D)return;he._state=R,he._result=Me,r(z,he)}function fe(he,Me,Ie,oe){var pe=he._subscribers,Oe=pe.length;he._onerror=null,pe[Oe]=Me,pe[Oe+N]=Ie,pe[Oe+R]=oe,Oe===0&&he._state&&r(ie,he)}function ie(he){var Me=he._subscribers,Ie=he._state;if(Me.length===0)return;for(var oe=void 0,pe=void 0,Oe=he._result,Ye=0;Ye<Me.length;Ye+=3)oe=Me[Ye],pe=Me[Ye+Ie],oe?we(Ie,oe,pe,Oe):pe(Oe);he._subscribers.length=0}function we(he,Me,Ie,oe){var pe=v(Ie),Oe=void 0,Ye=void 0,it=!0;if(pe){try{Oe=Ie(oe)}catch(et){it=!1,Ye=et}if(Me===Oe){ee(Me,M());return}}else Oe=oe;Me._state!==D||(pe&&it?V(Me,Oe):it===!1?ee(Me,Ye):he===N?Y(Me,Oe):he===R&&ee(Me,Oe))}function Ce(he,Me){try{Me(function(oe){V(he,oe)},function(oe){ee(he,oe)})}catch(Ie){ee(he,Ie)}}var Le=0;function He(){return Le++}function ce(he){he[_]=Le++,he._state=void 0,he._result=void 0,he._subscribers=[]}function Pe(){return new Error("Array Methods must be provided an Array")}var Q=function(){function he(Me,Ie){this._instanceConstructor=Me,this.promise=new Me(L),this.promise[_]||ce(this.promise),m(Ie)?(this.length=Ie.length,this._remaining=Ie.length,this._result=new Array(this.length),this.length===0?Y(this.promise,this._result):(this.length=this.length||0,this._enumerate(Ie),this._remaining===0&&Y(this.promise,this._result))):ee(this.promise,Pe())}return he.prototype._enumerate=function(Ie){for(var oe=0;this._state===D&&oe<Ie.length;oe++)this._eachEntry(Ie[oe],oe)},he.prototype._eachEntry=function(Ie,oe){var pe=this._instanceConstructor,Oe=pe.resolve;if(Oe===I){var Ye=void 0,it=void 0,et=!1;try{Ye=Ie.then}catch(tt){et=!0,it=tt}if(Ye===b&&Ie._state!==D)this._settledAt(Ie._state,oe,Ie._result);else if(typeof Ye!="function")this._remaining--,this._result[oe]=Ie;else if(pe===J){var Te=new pe(L);et?ee(Te,it):j(Te,Ie,Ye),this._willSettleAt(Te,oe)}else this._willSettleAt(new pe(function(tt){return tt(Ie)}),oe)}else this._willSettleAt(Oe(Ie),oe)},he.prototype._settledAt=function(Ie,oe,pe){var Oe=this.promise;Oe._state===D&&(this._remaining--,Ie===R?ee(Oe,pe):this._result[oe]=pe),this._remaining===0&&Y(Oe,this._result)},he.prototype._willSettleAt=function(Ie,oe){var pe=this;fe(Ie,void 0,function(Oe){return pe._settledAt(N,oe,Oe)},function(Oe){return pe._settledAt(R,oe,Oe)})},he}();function me(he){return new Q(this,he).promise}function Je(he){var Me=this;return m(he)?new Me(function(Ie,oe){for(var pe=he.length,Oe=0;Oe<pe;Oe++)Me.resolve(he[Oe]).then(Ie,oe)}):new Me(function(Ie,oe){return oe(new TypeError("You must pass an array to race."))})}function re(he){var Me=this,Ie=new Me(L);return ee(Ie,he),Ie}function G(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function X(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var J=function(){function he(Me){this[_]=He(),this._result=this._state=void 0,this._subscribers=[],L!==Me&&(typeof Me!="function"&&G(),this instanceof he?Ce(this,Me):X())}return he.prototype.catch=function(Ie){return this.then(null,Ie)},he.prototype.finally=function(Ie){var oe=this,pe=oe.constructor;return v(Ie)?oe.then(function(Oe){return pe.resolve(Ie()).then(function(){return Oe})},function(Oe){return pe.resolve(Ie()).then(function(){throw Oe})}):oe.then(Ie,Ie)},he}();J.prototype.then=b,J.all=me,J.race=Je,J.resolve=I,J.reject=re,J._setScheduler=a,J._setAsap=n,J._asap=r;function Ae(){var he=void 0;if(typeof x!="undefined")he=x;else if(typeof self!="undefined")he=self;else try{he=Function("return this")()}catch(oe){throw new Error("polyfill failed because global object is unavailable in this environment")}var Me=he.Promise;if(Me){var Ie=null;try{Ie=Object.prototype.toString.call(Me.resolve())}catch(oe){}if(Ie==="[object Promise]"&&!Me.cast)return}he.Promise=J}return J.polyfill=Ae,J.Promise=J,J})}).call(this,d("Q2Ig"),d("yLpj"))},E4JC:function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var x=O,T=x.lib,v=T.StreamCipher,S=x.algo,m=[],f=[],c=[],o=S.Rabbit=v.extend({_doReset:function(){for(var n=this._key.words,e=this.cfg.iv,s=0;s<4;s++)n[s]=(n[s]<<8|n[s]>>>24)&16711935|(n[s]<<24|n[s]>>>8)&4278255360;var t=this._X=[n[0],n[3]<<16|n[2]>>>16,n[1],n[0]<<16|n[3]>>>16,n[2],n[1]<<16|n[0]>>>16,n[3],n[2]<<16|n[1]>>>16],i=this._C=[n[2]<<16|n[2]>>>16,n[0]&4294901760|n[1]&65535,n[3]<<16|n[3]>>>16,n[1]&4294901760|n[2]&65535,n[0]<<16|n[0]>>>16,n[2]&4294901760|n[3]&65535,n[1]<<16|n[1]>>>16,n[3]&4294901760|n[0]&65535];this._b=0;for(var s=0;s<4;s++)r.call(this);for(var s=0;s<8;s++)i[s]^=t[s+4&7];if(e){var l=e.words,u=l[0],h=l[1],p=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360,g=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,A=p>>>16|g&4294901760,y=g<<16|p&65535;i[0]^=p,i[1]^=A,i[2]^=g,i[3]^=y,i[4]^=p,i[5]^=A,i[6]^=g,i[7]^=y;for(var s=0;s<4;s++)r.call(this)}},_doProcessBlock:function(n,e){var s=this._X;r.call(this),m[0]=s[0]^s[5]>>>16^s[3]<<16,m[1]=s[2]^s[7]>>>16^s[5]<<16,m[2]=s[4]^s[1]>>>16^s[7]<<16,m[3]=s[6]^s[3]>>>16^s[1]<<16;for(var t=0;t<4;t++)m[t]=(m[t]<<8|m[t]>>>24)&16711935|(m[t]<<24|m[t]>>>8)&4278255360,n[e+t]^=m[t]},blockSize:128/32,ivSize:64/32});function r(){for(var a=this._X,n=this._C,e=0;e<8;e++)f[e]=n[e];n[0]=n[0]+1295307597+this._b|0,n[1]=n[1]+3545052371+(n[0]>>>0<f[0]>>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0<f[1]>>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0<f[2]>>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0<f[3]>>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0<f[4]>>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0<f[5]>>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0<f[6]>>>0?1:0)|0,this._b=n[7]>>>0<f[7]>>>0?1:0;for(var e=0;e<8;e++){var s=a[e]+n[e],t=s&65535,i=s>>>16,l=((t*t>>>17)+t*i>>>15)+i*i,u=((s&4294901760)*s|0)+((s&65535)*s|0);c[e]=l^u}a[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,a[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,a[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,a[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,a[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,a[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,a[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,a[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}x.Rabbit=v._createHelper(o)}(),O.Rabbit})},E9nw:function(U,P){U.exports=function(){var d=document.getSelection();if(!d.rangeCount)return function(){};for(var O=document.activeElement,x=[],T=0;T<d.rangeCount;T++)x.push(d.getRangeAt(T));switch(O.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":O.blur();break;default:O=null;break}return d.removeAllRanges(),function(){d.type==="Caret"&&d.removeAllRanges(),d.rangeCount||x.forEach(function(v){d.addRange(v)}),O&&O.focus()}}},ELLl:function(U,P,d){(function(O){O(d("VrN/"))})(function(O){var x={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},T=O.Pos;O.defineOption("autoCloseBrackets",!1,function(t,i,l){l&&l!=O.Init&&(t.removeKeyMap(S),t.state.closeBrackets=null),i&&(m(v(i,"pairs")),t.state.closeBrackets=i,t.addKeyMap(S))});function v(t,i){return i=="pairs"&&typeof t=="string"?t:typeof t=="object"&&t[i]!=null?t[i]:x[i]}var S={Backspace:o,Enter:r};function m(t){for(var i=0;i<t.length;i++){var l=t.charAt(i),u="'"+l+"'";S[u]||(S[u]=f(l))}}m(x.pairs+"`");function f(t){return function(i){return n(i,t)}}function c(t){var i=t.state.closeBrackets;if(!i||i.override)return i;var l=t.getModeAt(t.getCursor());return l.closeBrackets||i}function o(t){var i=c(t);if(!i||t.getOption("disableInput"))return O.Pass;for(var l=v(i,"pairs"),u=t.listSelections(),h=0;h<u.length;h++){if(!u[h].empty())return O.Pass;var p=e(t,u[h].head);if(!p||l.indexOf(p)%2!=0)return O.Pass}for(var h=u.length-1;h>=0;h--){var g=u[h].head;t.replaceRange("",T(g.line,g.ch-1),T(g.line,g.ch+1),"+delete")}}function r(t){var i=c(t),l=i&&v(i,"explode");if(!l||t.getOption("disableInput"))return O.Pass;for(var u=t.listSelections(),h=0;h<u.length;h++){if(!u[h].empty())return O.Pass;var p=e(t,u[h].head);if(!p||l.indexOf(p)%2!=0)return O.Pass}t.operation(function(){var g=t.lineSeparator()||`
|
|
|
`;t.replaceSelection(g+g,null),t.execCommand("goCharLeft"),u=t.listSelections();for(var A=0;A<u.length;A++){var y=u[A].head.line;t.indentLine(y,null,!0),t.indentLine(y+1,null,!0)}})}function a(t){var i=O.cmpPos(t.anchor,t.head)>0;return{anchor:new T(t.anchor.line,t.anchor.ch+(i?-1:1)),head:new T(t.head.line,t.head.ch+(i?1:-1))}}function n(t,i){var l=c(t);if(!l||t.getOption("disableInput"))return O.Pass;var u=v(l,"pairs"),h=u.indexOf(i);if(h==-1)return O.Pass;for(var p=v(l,"closeBefore"),g=v(l,"triples"),A=u.charAt(h+1)==i,y=t.listSelections(),E=h%2==0,C,w=0;w<y.length;w++){var b=y[w],I=b.head,_,L=t.getRange(I,T(I.line,I.ch+1));if(E&&!b.empty())_="surround";else if((A||!E)&&L==i)A&&s(t,I)?_="both":g.indexOf(i)>=0&&t.getRange(I,T(I.line,I.ch+3))==i+i+i?_="skipThree":_="skip";else if(A&&I.ch>1&&g.indexOf(i)>=0&&t.getRange(T(I.line,I.ch-2),I)==i+i){if(I.ch>2&&/\bstring/.test(t.getTokenTypeAt(T(I.line,I.ch-2))))return O.Pass;_="addFour"}else if(A){var D=I.ch==0?" ":t.getRange(T(I.line,I.ch-1),I);if(!O.isWordChar(L)&&D!=i&&!O.isWordChar(D))_="both";else return O.Pass}else if(E&&(L.length===0||/\s/.test(L)||p.indexOf(L)>-1))_="both";else return O.Pass;if(!C)C=_;else if(C!=_)return O.Pass}var N=h%2?u.charAt(h-1):i,R=h%2?i:u.charAt(h+1);t.operation(function(){if(C=="skip")t.execCommand("goCharRight");else if(C=="skipThree")for(var B=0;B<3;B++)t.execCommand("goCharRight");else if(C=="surround"){for(var M=t.getSelections(),B=0;B<M.length;B++)M[B]=N+M[B]+R;t.replaceSelections(M,"around"),M=t.listSelections().slice();for(var B=0;B<M.length;B++)M[B]=a(M[B]);t.setSelections(M)}else C=="both"?(t.replaceSelection(N+R,null),t.triggerElectric(N+R),t.execCommand("goCharLeft")):C=="addFour"&&(t.replaceSelection(N+N+N+N,"before"),t.execCommand("goCharRight"))})}function e(t,i){var l=t.getRange(T(i.line,i.ch-1),T(i.line,i.ch+1));return l.length==2?l:null}function s(t,i){var l=t.getTokenAt(T(i.line,i.ch+1));return/\bstring/.test(l.type)&&l.start==i.ch&&(i.ch==0||!/\bstring/.test(t.getTokenTypeAt(i)))}})},ELcG:function(U,P,d){(function(O,x){U.exports=P=x(d("Ib8C"))})(this,function(O){/** @preserve
|
|
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
|
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
*/return function(x){var T=O,v=T.lib,S=v.WordArray,m=v.Hasher,f=T.algo,c=S.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),o=S.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),r=S.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),a=S.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),n=S.create([0,1518500249,1859775393,2400959708,2840853838]),e=S.create([1352829926,1548603684,1836072691,2053994217,0]),s=f.RIPEMD160=m.extend({_doReset:function(){this._hash=S.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(A,y){for(var E=0;E<16;E++){var C=y+E,w=A[C];A[C]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var b=this._hash.words,I=n.words,_=e.words,L=c.words,D=o.words,N=r.words,R=a.words,B,M,H,F,K,j,V,z,Y,ee;j=B=b[0],V=M=b[1],z=H=b[2],Y=F=b[3],ee=K=b[4];for(var fe,E=0;E<80;E+=1)fe=B+A[y+L[E]]|0,E<16?fe+=t(M,H,F)+I[0]:E<32?fe+=i(M,H,F)+I[1]:E<48?fe+=l(M,H,F)+I[2]:E<64?fe+=u(M,H,F)+I[3]:fe+=h(M,H,F)+I[4],fe=fe|0,fe=p(fe,N[E]),fe=fe+K|0,B=K,K=F,F=p(H,10),H=M,M=fe,fe=j+A[y+D[E]]|0,E<16?fe+=h(V,z,Y)+_[0]:E<32?fe+=u(V,z,Y)+_[1]:E<48?fe+=l(V,z,Y)+_[2]:E<64?fe+=i(V,z,Y)+_[3]:fe+=t(V,z,Y)+_[4],fe=fe|0,fe=p(fe,R[E]),fe=fe+ee|0,j=ee,ee=Y,Y=p(z,10),z=V,V=fe;fe=b[1]+H+Y|0,b[1]=b[2]+F+ee|0,b[2]=b[3]+K+j|0,b[3]=b[4]+B+V|0,b[4]=b[0]+M+z|0,b[0]=fe},_doFinalize:function(){var A=this._data,y=A.words,E=this._nDataBytes*8,C=A.sigBytes*8;y[C>>>5]|=128<<24-C%32,y[(C+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,A.sigBytes=(y.length+1)*4,this._process();for(var w=this._hash,b=w.words,I=0;I<5;I++){var _=b[I];b[I]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return w},clone:function(){var A=m.clone.call(this);return A._hash=this._hash.clone(),A}});function t(g,A,y){return g^A^y}function i(g,A,y){return g&A|~g&y}function l(g,A,y){return(g|~A)^y}function u(g,A,y){return g&y|A&~y}function h(g,A,y){return g^(A|~y)}function p(g,A){return g<<A|g>>>32-A}T.RIPEMD160=m._createHelper(s),T.HmacRIPEMD160=m._createHmacHelper(s)}(Math),O.RIPEMD160})},EMyp:function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("mFDi"),v=d("K4ya"),S=d("qJCg"),m=d("iLNv"),f=d("vZ6x"),c=["inBrush","outOfBrush"],o="__ecBrushSelect",r="__ecInBrushSelectEvent",a=O.PRIORITY.VISUAL.BRUSH;O.registerLayout(a,function(g,A,y){g.eachComponent({mainType:"brush"},function(E){y&&y.type==="takeGlobalCursor"&&E.setBrushOption(y.key==="brush"?y.brushOption:{brushType:!1})}),n(g)});function n(g){g.eachComponent({mainType:"brush"},function(A){var y=A.brushTargetManager=new f(A.option,g);y.setInputRanges(A.areas,g)})}O.registerVisual(a,function(g,A,y){var E=[],C,w;g.eachComponent({mainType:"brush"},function(b,I){var _={brushId:b.id,brushIndex:I,brushName:b.name,areas:x.clone(b.areas),selected:[]};E.push(_);var L=b.option,D=L.brushLink,N=[],R=[],B=[],M=0;I||(C=L.throttleType,w=L.throttleDelay);var H=x.map(b.areas,function(Y){return u(x.defaults({boundingRect:h[Y.brushType](Y)},Y))}),F=v.createVisualMappings(b.option,c,function(Y){Y.mappingMethod="fixed"});x.isArray(D)&&x.each(D,function(Y){N[Y]=1});function K(Y){return D==="all"||N[Y]}function j(Y){return!!Y.length}g.eachSeries(function(Y,ee){var fe=B[ee]=[];Y.subType==="parallel"?V(Y,ee,fe):z(Y,ee,fe)});function V(Y,ee){var fe=Y.coordinateSystem;M|=fe.hasAxisBrushed(),K(ee)&&fe.eachActiveState(Y.getData(),function(ie,we){ie==="active"&&(R[we]=1)})}function z(Y,ee,fe){var ie=i(Y);if(!ie||l(b,ee))return;if(x.each(H,function(Ce){ie[Ce.brushType]&&b.brushTargetManager.controlSeries(Ce,Y,g)&&fe.push(Ce),M|=j(fe)}),K(ee)&&j(fe)){var we=Y.getData();we.each(function(Ce){t(ie,fe,we,Ce)&&(R[Ce]=1)})}}g.eachSeries(function(Y,ee){var fe={seriesId:Y.id,seriesIndex:ee,seriesName:Y.name,dataIndex:[]};_.selected.push(fe);var ie=i(Y),we=B[ee],Ce=Y.getData(),Le=K(ee)?function(He){return R[He]?(fe.dataIndex.push(Ce.getRawIndex(He)),"inBrush"):"outOfBrush"}:function(He){return t(ie,we,Ce,He)?(fe.dataIndex.push(Ce.getRawIndex(He)),"inBrush"):"outOfBrush"};(K(ee)?M:j(we))&&v.applyVisual(c,F,Ce,Le)})}),e(A,C,w,E,y)});function e(g,A,y,E,C){if(!C)return;var w=g.getZr();if(w[r])return;w[o]||(w[o]=s);var b=m.createOrUpdate(w,o,y,A);b(g,E)}function s(g,A){if(!g.isDisposed()){var y=g.getZr();y[r]=!0,g.dispatchAction({type:"brushSelect",batch:A}),y[r]=!1}}function t(g,A,y,E){for(var C=0,w=A.length;C<w;C++){var b=A[C];if(g[b.brushType](E,y,b.selectors,b))return!0}}function i(g){var A=g.brushSelector;if(x.isString(A)){var y=[];return x.each(S,function(C,w){y[w]=function(b,I,_,L){var D=I.getItemLayout(b);return C[A](D,_,L)}}),y}else if(x.isFunction(A)){var E={};return x.each(S,function(C,w){E[w]=A}),E}return A}function l(g,A){var y=g.option.seriesIndex;return y!=null&&y!=="all"&&(x.isArray(y)?x.indexOf(y,A)<0:A!==y)}function u(g){var A=g.selectors={};return x.each(S[g.brushType],function(y,E){A[E]=function(C){return y(C,A,g)}}),g}var h={lineX:x.noop,lineY:x.noop,rect:function(g){return p(g.range)},polygon:function(g){for(var A,y=g.range,E=0,C=y.length;E<C;E++){A=A||[[Infinity,-Infinity],[Infinity,-Infinity]];var w=y[E];w[0]<A[0][0]&&(A[0][0]=w[0]),w[0]>A[0][1]&&(A[0][1]=w[0]),w[1]<A[1][0]&&(A[1][0]=w[1]),w[1]>A[1][1]&&(A[1][1]=w[1])}return A&&p(A)}};function p(g){return new T(g[0][0],g[1][0],g[0][1]-g[0][0],g[1][1]-g[1][0])}P.layoutCovers=n},ERHi:function(U,P,d){var O=d("ProS");d("Z6js"),d("R4Th");var x=d("f5Yq"),T=d("h8O9");O.registerVisual(x("effectScatter","circle")),O.registerLayout(T("effectScatter"))},ETIr:function(U,P,d){(function(O,x){U.exports=P=x(d("Ib8C"))})(this,function(O){return function(){var x=O,T=x.lib,v=T.WordArray,S=x.enc,m=S.Base64={stringify:function(o){var r=o.words,a=o.sigBytes,n=this._map;o.clamp();for(var e=[],s=0;s<a;s+=3)for(var t=r[s>>>2]>>>24-s%4*8&255,i=r[s+1>>>2]>>>24-(s+1)%4*8&255,l=r[s+2>>>2]>>>24-(s+2)%4*8&255,u=t<<16|i<<8|l,h=0;h<4&&s+h*.75<a;h++)e.push(n.charAt(u>>>6*(3-h)&63));var p=n.charAt(64);if(p)for(;e.length%4;)e.push(p);return e.join("")},parse:function(o){var r=o.length,a=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var e=0;e<a.length;e++)n[a.charCodeAt(e)]=e}var s=a.charAt(64);if(s){var t=o.indexOf(s);t!==-1&&(r=t)}return f(o,r,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function f(c,o,r){for(var a=[],n=0,e=0;e<o;e++)if(e%4){var s=r[c.charCodeAt(e-1)]<<e%4*2,t=r[c.charCodeAt(e)]>>>6-e%4*2,i=s|t;a[n>>>2]|=i<<24-n%4*8,n++}return v.create(a,n)}}(),O.enc.Base64})},EXcs:function(U,P,d){"use strict";var O=function(){return{height:0,opacity:0}},x=function(f){return{height:f.scrollHeight,opacity:1}},T=function(f){return{height:f.offsetHeight}},v=function(f,c){return c.propertyName==="height"},S={motionName:"ant-motion-collapse",onAppearStart:O,onEnterStart:O,onAppearActive:x,onEnterActive:x,onLeaveStart:T,onLeaveActive:O,onAppearEnd:v,onEnterEnd:v,onLeaveEnd:v,motionDeadline:500};P.a=S},Em2t:function(U,P,d){var O=d("bahg"),x=d("quyA"),T=d("0JQy");function v(S){return x(S)?T(S):O(S)}U.exports=v},Ez2D:function(U,P,d){var O=d("bYtY"),x=d("4NO4");function T(v,S){var m=[],f=v.seriesIndex,c;if(f==null||!(c=S.getSeriesByIndex(f)))return{point:[]};var o=c.getData(),r=x.queryDataIndex(o,v);if(r==null||r<0||O.isArray(r))return{point:[]};var a=o.getItemGraphicEl(r),n=c.coordinateSystem;if(c.getTooltipPosition)m=c.getTooltipPosition(r)||[];else if(n&&n.dataToPoint)m=n.dataToPoint(o.getValues(O.map(n.dimensions,function(s){return o.mapDimension(s)}),r,!0))||[];else if(a){var e=a.getBoundingRect().clone();e.applyTransform(a.transform),m=[e.x+e.width/2,e.y+e.height/2]}return{point:m,el:a}}U.exports=T},"F+F2":function(U,P,d){(function(O,x){U.exports=P=x(d("Ib8C"))})(this,function(O){return function(){if(typeof ArrayBuffer!="function")return;var x=O,T=x.lib,v=T.WordArray,S=v.init,m=v.init=function(f){if(f instanceof ArrayBuffer&&(f=new Uint8Array(f)),(f instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&f instanceof Uint8ClampedArray||f instanceof Int16Array||f instanceof Uint16Array||f instanceof Int32Array||f instanceof Uint32Array||f instanceof Float32Array||f instanceof Float64Array)&&(f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength)),f instanceof Uint8Array){for(var c=f.byteLength,o=[],r=0;r<c;r++)o[r>>>2]|=f[r]<<24-r%4*8;S.call(this,o,c)}else S.apply(this,arguments)};m.prototype=v}(),O.lib.WordArray})},F0hE:function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("ca2m"),v=d("Qxkt"),S=d("ICMv"),m=T.valueAxis;function f(r,a){return x.defaults({show:a},r)}var c=O.extendComponentModel({type:"radar",optionUpdated:function(){var r=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("scale"),e=this.get("axisLine"),s=this.get("axisTick"),t=this.get("axisType"),i=this.get("axisLabel"),l=this.get("name"),u=this.get("name.show"),h=this.get("name.formatter"),p=this.get("nameGap"),g=this.get("triggerEvent"),A=x.map(this.get("indicator")||[],function(y){y.max!=null&&y.max>0&&!y.min?y.min=0:y.min!=null&&y.min<0&&!y.max&&(y.max=0);var E=l;if(y.color!=null&&(E=x.defaults({color:y.color},l)),y=x.merge(x.clone(y),{boundaryGap:r,splitNumber:a,scale:n,axisLine:e,axisTick:s,axisType:t,axisLabel:i,name:y.text,nameLocation:"end",nameGap:p,nameTextStyle:E,triggerEvent:g},!1),u||(y.name=""),typeof h=="string"){var C=y.name;y.name=h.replace("{value}",C!=null?C:"")}else typeof h=="function"&&(y.name=h(y.name,y));var w=x.extend(new v(y,null,this.ecModel),S);return w.mainType="radar",w.componentIndex=this.componentIndex,w},this);this.getIndicatorModels=function(){return A}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:x.merge({lineStyle:{color:"#bbb"}},m.axisLine),axisLabel:f(m.axisLabel,!1),axisTick:f(m.axisTick,!1),axisType:"interval",splitLine:f(m.splitLine,!0),splitArea:f(m.splitArea,!0),indicator:[]}}),o=c;U.exports=o},F5Ls:function(U,P){var d={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function O(x,T){if(x==="china"){var v=d[T.name];if(v){var S=T.center;S[0]+=v[0]/10.5,S[1]+=-v[1]/(10.5/.75)}}}U.exports=O},F7hV:function(U,P,d){var O=d("MBQ8"),x=O.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return this.get("large")?this.get("progressive"):!1},getProgressiveThreshold:function(){var T=this.get("progressiveThreshold"),v=this.get("largeThreshold");return v>T&&(T=v),T},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});U.exports=x},F9bG:function(U,P,d){var O=d("bYtY"),x=d("ItGF"),T=d("4NO4"),v=T.makeInner,S=v(),m=O.each;function f(s,t,i){if(x.node)return;var l=t.getZr();S(l).records||(S(l).records={}),c(l,t);var u=S(l).records[s]||(S(l).records[s]={});u.handler=i}function c(s,t){if(S(s).initialized)return;S(s).initialized=!0,i("click",O.curry(a,"click")),i("mousemove",O.curry(a,"mousemove")),i("globalout",r);function i(l,u){s.on(l,function(h){var p=n(t);m(S(s).records,function(g){g&&u(g,h,p.dispatchAction)}),o(p.pendings,t)})}}function o(s,t){var i=s.showTip.length,l=s.hideTip.length,u;i?u=s.showTip[i-1]:l&&(u=s.hideTip[l-1]),u&&(u.dispatchAction=null,t.dispatchAction(u))}function r(s,t,i){s.handler("leave",null,i)}function a(s,t,i,l){t.handler(s,i,l)}function n(s){var t={showTip:[],hideTip:[]},i=function(l){var u=t[l.type];u?u.push(l):(l.dispatchAction=i,s.dispatchAction(l))};return{dispatchAction:i,pendings:t}}function e(s,t){if(x.node)return;var i=t.getZr(),l=(S(i).records||{})[s];l&&(S(i).records[s]=null)}P.register=f,P.unregister=e},FBjb:function(U,P,d){var O=d("bYtY"),x=d("oVpE"),T=x.createSymbol,v=d("IwbS"),S=d("OELB"),m=S.parsePercent,f=d("x3X8"),c=f.getDefaultLabel;function o(p,g,A){v.Group.call(this),this.updateData(p,g,A)}var r=o.prototype,a=o.getSymbolSize=function(p,g){var A=p.getItemVisual(g,"symbolSize");return A instanceof Array?A.slice():[+A,+A]};function n(p){return[p[0]/2,p[1]/2]}function e(p,g){this.parent.drift(p,g)}r._createSymbol=function(p,g,A,y,E){this.removeAll();var C=g.getItemVisual(A,"color"),w=T(p,-1,-1,2,2,C,E);w.attr({z2:100,culling:!0,scale:n(y)}),w.drift=e,this._symbolType=p,this.add(w)},r.stopSymbolAnimation=function(p){this.childAt(0).stopAnimation(p)},r.getSymbolPath=function(){return this.childAt(0)},r.getScale=function(){return this.childAt(0).scale},r.highlight=function(){this.childAt(0).trigger("emphasis")},r.downplay=function(){this.childAt(0).trigger("normal")},r.setZ=function(p,g){var A=this.childAt(0);A.zlevel=p,A.z=g},r.setDraggable=function(p){var g=this.childAt(0);g.draggable=p,g.cursor=p?"move":g.cursor},r.updateData=function(p,g,A){this.silent=!1;var y=p.getItemVisual(g,"symbol")||"circle",E=p.hostModel,C=a(p,g),w=y!==this._symbolType;if(w){var b=p.getItemVisual(g,"symbolKeepAspect");this._createSymbol(y,p,g,C,b)}else{var I=this.childAt(0);I.silent=!1,v.updateProps(I,{scale:n(C)},E,g)}if(this._updateCommon(p,g,C,A),w){var I=this.childAt(0),_=A&&A.fadeIn,L={scale:I.scale.slice()};_&&(L.style={opacity:I.style.opacity}),I.scale=[0,0],_&&(I.style.opacity=0),v.initProps(I,L,E,g)}this._seriesModel=E};var s=["itemStyle"],t=["emphasis","itemStyle"],i=["label"],l=["emphasis","label"];r._updateCommon=function(p,g,A,y){var E=this.childAt(0),C=p.hostModel,w=p.getItemVisual(g,"color");E.type!=="image"?E.useStyle({strokeNoScale:!0}):E.setStyle({opacity:null,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var b=y&&y.itemStyle,I=y&&y.hoverItemStyle,_=y&&y.symbolOffset,L=y&&y.labelModel,D=y&&y.hoverLabelModel,N=y&&y.hoverAnimation,R=y&&y.cursorStyle;if(!y||p.hasItemOption){var B=y&&y.itemModel?y.itemModel:p.getItemModel(g);b=B.getModel(s).getItemStyle(["color"]),I=B.getModel(t).getItemStyle(),_=B.getShallow("symbolOffset"),L=B.getModel(i),D=B.getModel(l),N=B.getShallow("hoverAnimation"),R=B.getShallow("cursor")}else I=O.extend({},I);var M=E.style,H=p.getItemVisual(g,"symbolRotate");E.attr("rotation",(H||0)*Math.PI/180||0),_&&E.attr("position",[m(_[0],A[0]),m(_[1],A[1])]),R&&E.attr("cursor",R),E.setColor(w,y&&y.symbolInnerColor),E.setStyle(b);var F=p.getItemVisual(g,"opacity");F!=null&&(M.opacity=F);var K=p.getItemVisual(g,"liftZ"),j=E.__z2Origin;K!=null?j==null&&(E.__z2Origin=E.z2,E.z2+=K):j!=null&&(E.z2=j,E.__z2Origin=null);var V=y&&y.useNameLabel;v.setLabelStyle(M,I,L,D,{labelFetcher:C,labelDataIndex:g,defaultText:z,isRectText:!0,autoColor:w});function z(Y,ee){return V?p.getName(Y):c(p,Y)}E.__symbolOriginalScale=n(A),E.hoverStyle=I,E.highDownOnUpdate=N&&C.isAnimationEnabled()?u:null,v.setHoverStyle(E)};function u(p,g){if(this.incremental||this.useHoverLayer)return;if(g==="emphasis"){var A=this.__symbolOriginalScale,y=A[1]/A[0],E={scale:[Math.max(A[0]*1.1,A[0]+3),Math.max(A[1]*1.1,A[1]+3*y)]};this.animateTo(E,400,"elasticOut")}else g==="normal"&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}r.fadeOut=function(p,g){var A=this.childAt(0);this.silent=A.silent=!0,!(g&&g.keepLabel)&&(A.style.text=null),v.updateProps(A,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,p)},O.inherits(o,v.Group);var h=o;U.exports=h},FGaS:function(U,P,d){var O=d("ProS"),x=d("IwbS"),T=d("bYtY"),v=d("oVpE");function S(f){return T.isArray(f)||(f=[+f,+f]),f}var m=O.extendChartView({type:"radar",render:function(f,c,o){var r=f.coordinateSystem,a=this.group,n=f.getData(),e=this._data;function s(l,u){var h=l.getItemVisual(u,"symbol")||"circle",p=l.getItemVisual(u,"color");if(h==="none")return;var g=S(l.getItemVisual(u,"symbolSize")),A=v.createSymbol(h,-1,-1,2,2,p);return A.attr({style:{strokeNoScale:!0},z2:100,scale:[g[0]/2,g[1]/2]}),A}function t(l,u,h,p,g,A){h.removeAll();for(var y=0;y<u.length-1;y++){var E=s(p,g);E&&(E.__dimIdx=y,l[y]?(E.attr("position",l[y]),x[A?"initProps":"updateProps"](E,{position:u[y]},f,g)):E.attr("position",u[y]),h.add(E))}}function i(l){return T.map(l,function(u){return[r.cx,r.cy]})}n.diff(e).add(function(l){var u=n.getItemLayout(l);if(!u)return;var h=new x.Polygon,p=new x.Polyline,g={shape:{points:u}};h.shape.points=i(u),p.shape.points=i(u),x.initProps(h,g,f,l),x.initProps(p,g,f,l);var A=new x.Group,y=new x.Group;A.add(p),A.add(h),A.add(y),t(p.shape.points,u,y,n,l,!0),n.setItemGraphicEl(l,A)}).update(function(l,u){var h=e.getItemGraphicEl(u),p=h.childAt(0),g=h.childAt(1),A=h.childAt(2),y={shape:{points:n.getItemLayout(l)}};if(!y.shape.points)return;t(p.shape.points,y.shape.points,A,n,l,!1),x.updateProps(p,y,f),x.updateProps(g,y,f),n.setItemGraphicEl(l,h)}).remove(function(l){a.remove(e.getItemGraphicEl(l))}).execute(),n.eachItemGraphicEl(function(l,u){var h=n.getItemModel(u),p=l.childAt(0),g=l.childAt(1),A=l.childAt(2),y=n.getItemVisual(u,"color");a.add(l),p.useStyle(T.defaults(h.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:y})),p.hoverStyle=h.getModel("emphasis.lineStyle").getLineStyle();var E=h.getModel("areaStyle"),C=h.getModel("emphasis.areaStyle"),w=E.isEmpty()&&E.parentModel.isEmpty(),b=C.isEmpty()&&C.parentModel.isEmpty();b=b&&w,g.ignore=w,g.useStyle(T.defaults(E.getAreaStyle(),{fill:y,opacity:.7})),g.hoverStyle=C.getAreaStyle();var I=h.getModel("itemStyle").getItemStyle(["color"]),_=h.getModel("emphasis.itemStyle").getItemStyle(),L=h.getModel("label"),D=h.getModel("emphasis.label");A.eachChild(function(N){N.setStyle(I),N.hoverStyle=T.clone(_);var R=n.get(n.dimensions[N.__dimIdx],u);(R==null||isNaN(R))&&(R=""),x.setLabelStyle(N.style,N.hoverStyle,L,D,{labelFetcher:n.hostModel,labelDataIndex:u,labelDimIndex:N.__dimIdx,defaultText:R,autoColor:y,isRectText:!0})}),l.highDownOnUpdate=function(N,R){g.attr("ignore",R==="emphasis"?b:w)},x.setHoverStyle(l)}),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});U.exports=m},FH2Y:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("ZMnZ"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},FJo9:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("8txm"),v=d.n(T),S=d("MXD1")},FNN5:function(U,P,d){var O=d("bYtY"),x=d("IwbS"),T=d("+rIm"),v=d("Znkb"),S=["axisLine","axisTickLabel","axisName"],m=["splitLine","splitArea","minorSplitLine"],f=v.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(o,r){if(this.group.removeAll(),!o.get("show"))return;var a=o.axis,n=a.polar,e=n.getAngleAxis(),s=a.getTicksCoords(),t=a.getMinorTicksCoords(),i=e.getExtent()[0],l=a.getExtent(),u=c(n,o,i),h=new T(o,u);O.each(S,h.add,h),this.group.add(h.getGroup()),O.each(m,function(p){o.get(p+".show")&&!a.scale.isBlank()&&this["_"+p](o,n,i,l,s,t)},this)},_splitLine:function(o,r,a,n,e){var s=o.getModel("splitLine"),t=s.getModel("lineStyle"),i=t.get("color"),l=0;i=i instanceof Array?i:[i];for(var u=[],h=0;h<e.length;h++){var p=l++%i.length;u[p]=u[p]||[],u[p].push(new x.Circle({shape:{cx:r.cx,cy:r.cy,r:e[h].coord}}))}for(var h=0;h<u.length;h++)this.group.add(x.mergePath(u[h],{style:O.defaults({stroke:i[h%i.length],fill:null},t.getLineStyle()),silent:!0}))},_minorSplitLine:function(o,r,a,n,e,s){if(!s.length)return;for(var t=o.getModel("minorSplitLine"),i=t.getModel("lineStyle"),l=[],u=0;u<s.length;u++)for(var h=0;h<s[u].length;h++)l.push(new x.Circle({shape:{cx:r.cx,cy:r.cy,r:s[u][h].coord}}));this.group.add(x.mergePath(l,{style:O.defaults({fill:null},i.getLineStyle()),silent:!0}))},_splitArea:function(o,r,a,n,e){if(!e.length)return;var s=o.getModel("splitArea"),t=s.getModel("areaStyle"),i=t.get("color"),l=0;i=i instanceof Array?i:[i];for(var u=[],h=e[0].coord,p=1;p<e.length;p++){var g=l++%i.length;u[g]=u[g]||[],u[g].push(new x.Sector({shape:{cx:r.cx,cy:r.cy,r0:h,r:e[p].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=e[p].coord}for(var p=0;p<u.length;p++)this.group.add(x.mergePath(u[p],{style:O.defaults({fill:i[p%i.length]},t.getAreaStyle()),silent:!0}))}});function c(o,r,a){return{position:[o.cx,o.cy],rotation:a/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:r.getModel("axisLabel").get("rotate"),z2:1}}U.exports=f},FTAc:function(U,P,d){"use strict";d.d(P,"a",function(){return T});var O=d("q1tI"),x=d.n(O),T=O.createContext(null)},FUi9:function(U,P,d){var O=d("bYtY"),x=d("MwEJ"),T=d("aX7z"),v=d("ICMv"),S=d("Qxkt"),m=d("+TT/"),f=m.getLayoutRect;P.getLayoutRect=m.getLayoutRect;var c=d("7hqr"),o=c.enableDataStack,r=c.isDimensionStacked,a=c.getStackedDimension,n=d("hi0g");P.completeDimensions=n;var e=d("sdST");P.createDimensions=e;var s=d("oVpE");P.createSymbol=s.createSymbol;function t(h){return x(h.getSource(),h)}var i={isDimensionStacked:r,enableDataStack:o,getStackedDimension:a};function l(h,p){var g=p;S.isInstance(p)||(g=new S(p),O.mixin(g,v));var A=T.createScaleByModel(g);return A.setExtent(h[0],h[1]),T.niceScaleExtent(A,g),A}function u(h){O.mixin(h,v)}P.createList=t,P.dataStack=i,P.createScale=l,P.mixinAxisModelCommonMethods=u},"Fa/5":function(U,P,d){var O=d("ProS");d("y2l5"),d("q/+u");var x=d("f5Yq"),T=d("h8O9");d("Ae16"),O.registerVisual(x("scatter","circle")),O.registerLayout(T("scatter"))},FhB9:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};P.default=O},"Fm1+":function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("a7Wl")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="CaretUpOutlined";var c=v.forwardRef(f);P.default=c},Fofx:function(U,P){var d=typeof Float32Array=="undefined"?Array:Float32Array;function O(){var r=new d(6);return x(r),r}function x(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function T(r,a){return r[0]=a[0],r[1]=a[1],r[2]=a[2],r[3]=a[3],r[4]=a[4],r[5]=a[5],r}function v(r,a,n){var e=a[0]*n[0]+a[2]*n[1],s=a[1]*n[0]+a[3]*n[1],t=a[0]*n[2]+a[2]*n[3],i=a[1]*n[2]+a[3]*n[3],l=a[0]*n[4]+a[2]*n[5]+a[4],u=a[1]*n[4]+a[3]*n[5]+a[5];return r[0]=e,r[1]=s,r[2]=t,r[3]=i,r[4]=l,r[5]=u,r}function S(r,a,n){return r[0]=a[0],r[1]=a[1],r[2]=a[2],r[3]=a[3],r[4]=a[4]+n[0],r[5]=a[5]+n[1],r}function m(r,a,n){var e=a[0],s=a[2],t=a[4],i=a[1],l=a[3],u=a[5],h=Math.sin(n),p=Math.cos(n);return r[0]=e*p+i*h,r[1]=-e*h+i*p,r[2]=s*p+l*h,r[3]=-s*h+p*l,r[4]=p*t+h*u,r[5]=p*u-h*t,r}function f(r,a,n){var e=n[0],s=n[1];return r[0]=a[0]*e,r[1]=a[1]*s,r[2]=a[2]*e,r[3]=a[3]*s,r[4]=a[4]*e,r[5]=a[5]*s,r}function c(r,a){var n=a[0],e=a[2],s=a[4],t=a[1],i=a[3],l=a[5],u=n*i-t*e;return u?(u=1/u,r[0]=i*u,r[1]=-t*u,r[2]=-e*u,r[3]=n*u,r[4]=(e*l-i*s)*u,r[5]=(t*s-n*l)*u,r):null}function o(r){var a=O();return T(a,r),a}P.create=O,P.identity=x,P.copy=T,P.mul=v,P.translate=S,P.rotate=m,P.scale=f,P.invert=c,P.clone=o},Fv0C:function(U,P,d){"use strict";function O(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(i){return typeof i}:O=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},O(s)}Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var x=o(d("Lo0S")),T=d("vewr"),v=o(d("8CQX")),S=f(d("mHUz")),m=o(d("GdRQ"));function f(s){return s&&s.__esModule?s:{default:s}}function c(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return c=function(){return s},s}function o(s){if(s&&s.__esModule)return s;if(s===null||O(s)!=="object"&&typeof s!="function")return{default:s};var t=c();if(t&&t.has(s))return t.get(s);var i={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in s)if(Object.prototype.hasOwnProperty.call(s,u)){var h=l?Object.getOwnPropertyDescriptor(s,u):null;h&&(h.get||h.set)?Object.defineProperty(i,u,h):i[u]=s[u]}return i.default=s,t&&t.set(s,i),i}function r(s,t){if(!(s instanceof t))throw new TypeError("Cannot call a class as a function")}function a(s,t){for(var i=0;i<t.length;i++){var l=t[i];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}function n(s,t,i){return t&&a(s.prototype,t),i&&a(s,i),s}var e=function(){function s(t){r(this,s),this._target=t||null,this._keyDownList={},this._pendingKey=null,this._altGrArmed=!1,this._eventHandlers={keyup:this._handleKeyUp.bind(this),keydown:this._handleKeyDown.bind(this),keypress:this._handleKeyPress.bind(this),blur:this._allKeysUp.bind(this),checkalt:this._checkAlt.bind(this)},this.onkeyevent=function(){}}return n(s,[{key:"_sendKeyEvent",value:function(i,l,u){if(u)this._keyDownList[l]=i;else{if(!(l in this._keyDownList))return;delete this._keyDownList[l]}x.Debug("onkeyevent "+(u?"down":"up")+", keysym: "+i,", code: "+l),this.onkeyevent(i,l,u)}},{key:"_getKeyCode",value:function(i){var l=v.getKeycode(i);if(l!=="Unidentified")return l;if(i.keyCode&&i.type!=="keypress"&&i.keyCode!==229)return"Platform"+i.keyCode;if(i.keyIdentifier){if(i.keyIdentifier.substr(0,2)!=="U+")return i.keyIdentifier;var u=parseInt(i.keyIdentifier.substr(2),16),h=String.fromCharCode(u).toUpperCase();return"Platform"+h.charCodeAt()}return"Unidentified"}},{key:"_handleKeyDown",value:function(i){var l=this._getKeyCode(i),u=v.getKeysym(i);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),l==="AltRight"&&i.timeStamp-this._altGrCtrlTime<50?u=S.default.XK_ISO_Level3_Shift:this._sendKeyEvent(S.default.XK_Control_L,"ControlLeft",!0)),l==="Unidentified"){u&&(this._sendKeyEvent(u,l,!0),this._sendKeyEvent(u,l,!1)),(0,T.stopEvent)(i);return}if(m.isMac()||m.isIOS())switch(u){case S.default.XK_Super_L:u=S.default.XK_Alt_L;break;case S.default.XK_Super_R:u=S.default.XK_Super_L;break;case S.default.XK_Alt_L:u=S.default.XK_Mode_switch;break;case S.default.XK_Alt_R:u=S.default.XK_ISO_Level3_Shift;break}if(l in this._keyDownList&&(u=this._keyDownList[l]),(m.isMac()||m.isIOS())&&l==="CapsLock"){this._sendKeyEvent(S.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(S.default.XK_Caps_Lock,"CapsLock",!1),(0,T.stopEvent)(i);return}if(!u&&(!i.key||m.isIE()||m.isEdge())){this._pendingKey=l,setTimeout(this._handleKeyPressTimeout.bind(this),10,i);return}if(this._pendingKey=null,(0,T.stopEvent)(i),l==="ControlLeft"&&m.isWindows()&&!("ControlLeft"in this._keyDownList)){this._altGrArmed=!0,this._altGrTimeout=setTimeout(this._handleAltGrTimeout.bind(this),100),this._altGrCtrlTime=i.timeStamp;return}this._sendKeyEvent(u,l,!0)}},{key:"_handleKeyPress",value:function(i){if((0,T.stopEvent)(i),this._pendingKey===null)return;var l=this._getKeyCode(i),u=v.getKeysym(i);if(l!=="Unidentified"&&l!=this._pendingKey)return;if(l=this._pendingKey,this._pendingKey=null,!u){x.Info("keypress with no keysym:",i);return}this._sendKeyEvent(u,l,!0)}},{key:"_handleKeyPressTimeout",value:function(i){if(this._pendingKey===null)return;var l,u=this._pendingKey;if(this._pendingKey=null,i.keyCode>=48&&i.keyCode<=57)l=i.keyCode;else if(i.keyCode>=65&&i.keyCode<=90){var h=String.fromCharCode(i.keyCode);i.shiftKey?h=h.toUpperCase():h=h.toLowerCase(),l=h.charCodeAt()}else l=0;this._sendKeyEvent(l,u,!0)}},{key:"_handleKeyUp",value:function(i){(0,T.stopEvent)(i);var l=this._getKeyCode(i);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(S.default.XK_Control_L,"ControlLeft",!0)),(m.isMac()||m.isIOS())&&l==="CapsLock"){this._sendKeyEvent(S.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(S.default.XK_Caps_Lock,"CapsLock",!1);return}this._sendKeyEvent(this._keyDownList[l],l,!1),m.isWindows()&&(l==="ShiftLeft"||l==="ShiftRight")&&("ShiftRight"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftRight,"ShiftRight",!1),"ShiftLeft"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftLeft,"ShiftLeft",!1))}},{key:"_handleAltGrTimeout",value:function(){this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(S.default.XK_Control_L,"ControlLeft",!0)}},{key:"_allKeysUp",value:function(){x.Debug(">> Keyboard.allKeysUp");for(var i in this._keyDownList)this._sendKeyEvent(this._keyDownList[i],i,!1);x.Debug("<< Keyboard.allKeysUp")}},{key:"_checkAlt",value:function(i){if(i.skipCheckAlt)return;if(i.altKey)return;var l=this._target,u=this._keyDownList;["AltLeft","AltRight"].forEach(function(h){if(!(h in u))return;var p=new KeyboardEvent("keyup",{key:u[h],code:h});p.skipCheckAlt=!0,l.dispatchEvent(p)})}},{key:"grab",value:function(){if(this._target.addEventListener("keydown",this._eventHandlers.keydown),this._target.addEventListener("keyup",this._eventHandlers.keyup),this._target.addEventListener("keypress",this._eventHandlers.keypress),window.addEventListener("blur",this._eventHandlers.blur),m.isWindows()&&m.isFirefox()){var i=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(l){return document.addEventListener(l,i,{capture:!0,passive:!0})})}}},{key:"ungrab",value:function(){if(m.isWindows()&&m.isFirefox()){var i=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(l){return document.removeEventListener(l,i)})}this._target.removeEventListener("keydown",this._eventHandlers.keydown),this._target.removeEventListener("keyup",this._eventHandlers.keyup),this._target.removeEventListener("keypress",this._eventHandlers.keypress),window.removeEventListener("blur",this._eventHandlers.blur),this._allKeysUp()}}]),s}();P.default=e},FxDU:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.createSensor=void 0;var O=d("QO+J"),x=d("j5sG"),T=typeof ResizeObserver!="undefined"?x.createSensor:O.createSensor;P.createSensor=T},GGyF:function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("wgjA")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="LeftOutlined";var c=v.forwardRef(f);P.default=c},GIiI:function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="PoweroffOutlined";var f=P.a=x.forwardRef(m)},GMDS:function(U,P,d){var O=d("bYtY"),x=d("4NgU"),T=d("jkPA"),v=x.prototype,S=x.extend({type:"ordinal",init:function(f,c){(!f||O.isArray(f))&&(f=new T({categories:f})),this._ordinalMeta=f,this._extent=c||[0,f.categories.length-1]},parse:function(f){return typeof f=="string"?this._ordinalMeta.getOrdinal(f):Math.round(f)},contain:function(f){return f=this.parse(f),v.contain.call(this,f)&&this._ordinalMeta.categories[f]!=null},normalize:function(f){return v.normalize.call(this,this.parse(f))},scale:function(f){return Math.round(v.scale.call(this,f))},getTicks:function(){for(var f=[],c=this._extent,o=c[0];o<=c[1];)f.push(o),o++;return f},getLabel:function(f){if(!this.isBlank())return this._ordinalMeta.categories[f]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(f,c){this.unionExtent(f.getApproximateExtent(c))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:O.noop,niceExtent:O.noop});S.create=function(){return new S};var m=S;U.exports=m},GQ8N:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.toUnsigned32bit=O,P.toSigned32bit=x;function O(T){return T>>>0}function x(T){return T|0}},GRuw:function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("lPiR"))})(this,function(O){return function(){var x=O,T=x.lib,v=T.WordArray,S=x.algo,m=S.SHA256,f=S.SHA224=m.extend({_doReset:function(){this._hash=new v.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var o=m._doFinalize.call(this);return o.sigBytes-=4,o}});x.SHA224=m._createHelper(f),x.HmacSHA224=m._createHmacHelper(f)}(),O.SHA224})},GUcZ:function(U,P,d){"use strict";var O=d("fWQN"),x=d("mtLc"),T=function(){function Gt(){Object(O.a)(this,Gt)}return Object(x.a)(Gt,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(ue,Ee){return ue.__proto__=Ee,ue},Object.assign=Object.assign||function(ue){if(ue==null)throw new TypeError("Cannot convert undefined or null to object");for(var Ee=Object(ue),je=1;je<arguments.length;je++){var Ve=arguments[je];if(Ve!=null)for(var $e in Ve)Ve.hasOwnProperty($e)&&(Ee[$e]=Ve[$e])}return Ee},typeof self.Promise!="function"&&d("E2g8").polyfill()}}]),Gt}();T.install();var v=T,S=d("+qE3"),m=d.n(S),f=function(){function Gt(){Object(O.a)(this,Gt)}return Object(x.a)(Gt,null,[{key:"e",value:function(ue,Ee){(!ue||Gt.FORCE_GLOBAL_TAG)&&(ue=Gt.GLOBAL_TAG);var je="[".concat(ue,"] > ").concat(Ee);if(Gt.ENABLE_CALLBACK&&Gt.emitter.emit("log","error",je),!Gt.ENABLE_ERROR)return;console.error?console.error(je):console.warn?console.warn(je):console.log(je)}},{key:"i",value:function(ue,Ee){(!ue||Gt.FORCE_GLOBAL_TAG)&&(ue=Gt.GLOBAL_TAG);var je="[".concat(ue,"] > ").concat(Ee);if(Gt.ENABLE_CALLBACK&&Gt.emitter.emit("log","info",je),!Gt.ENABLE_INFO)return;console.info?console.info(je):console.log(je)}},{key:"w",value:function(ue,Ee){(!ue||Gt.FORCE_GLOBAL_TAG)&&(ue=Gt.GLOBAL_TAG);var je="[".concat(ue,"] > ").concat(Ee);if(Gt.ENABLE_CALLBACK&&Gt.emitter.emit("log","warn",je),!Gt.ENABLE_WARN)return;console.warn?console.warn(je):console.log(je)}},{key:"d",value:function(ue,Ee){(!ue||Gt.FORCE_GLOBAL_TAG)&&(ue=Gt.GLOBAL_TAG);var je="[".concat(ue,"] > ").concat(Ee);if(Gt.ENABLE_CALLBACK&&Gt.emitter.emit("log","debug",je),!Gt.ENABLE_DEBUG)return;console.debug?console.debug(je):console.log(je)}},{key:"v",value:function(ue,Ee){(!ue||Gt.FORCE_GLOBAL_TAG)&&(ue=Gt.GLOBAL_TAG);var je="[".concat(ue,"] > ").concat(Ee);if(Gt.ENABLE_CALLBACK&&Gt.emitter.emit("log","verbose",je),!Gt.ENABLE_VERBOSE)return;console.log(je)}}]),Gt}();f.GLOBAL_TAG="flv.js",f.FORCE_GLOBAL_TAG=!1,f.ENABLE_ERROR=!0,f.ENABLE_INFO=!0,f.ENABLE_WARN=!0,f.ENABLE_DEBUG=!0,f.ENABLE_VERBOSE=!0,f.ENABLE_CALLBACK=!1,f.emitter=new m.a;var c=f,o=function(){function Gt(){Object(O.a)(this,Gt),this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return Object(x.a)(Gt,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(ue){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=ue,this._totalBytes+=ue):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=ue,this._totalBytes+=ue):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=ue,this._totalBytes+=ue,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var ue=(this._now()-this._lastCheckpoint)/1e3;return ue==0&&(ue=1),this._intervalBytes/ue/1024}},{key:"lastSecondKBps",get:function(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}},{key:"averageKBps",get:function(){var ue=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/ue/1024}}]),Gt}(),r=o,a=d("yKVA"),n=d("879j"),e=function(){function Gt(st){Object(O.a)(this,Gt),this._message=st}return Object(x.a)(Gt,[{key:"toString",value:function(){return this.name+": "+this.message}},{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}}]),Gt}(),s=function(Gt){Object(a.a)(ue,Gt);var st=Object(n.a)(ue);function ue(Ee){return Object(O.a)(this,ue),st.call(this,Ee)}return Object(x.a)(ue,[{key:"name",get:function(){return"IllegalStateException"}}]),ue}(e),t=function(Gt){Object(a.a)(ue,Gt);var st=Object(n.a)(ue);function ue(Ee){return Object(O.a)(this,ue),st.call(this,Ee)}return Object(x.a)(ue,[{key:"name",get:function(){return"InvalidArgumentException"}}]),ue}(e),i=function(Gt){Object(a.a)(ue,Gt);var st=Object(n.a)(ue);function ue(Ee){return Object(O.a)(this,ue),st.call(this,Ee)}return Object(x.a)(ue,[{key:"name",get:function(){return"NotImplementedException"}}]),ue}(e),l={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},u={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},h=function(){function Gt(st){Object(O.a)(this,Gt),this._type=st||"undefined",this._status=l.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Object(x.a)(Gt,[{key:"destroy",value:function(){this._status=l.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===l.kConnecting||this._status===l.kBuffering}},{key:"open",value:function(ue,Ee){throw new i("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new i("Unimplemented abstract function!")}},{key:"type",get:function(){return this._type}},{key:"status",get:function(){return this._status}},{key:"needStashBuffer",get:function(){return this._needStash}},{key:"onContentLengthKnown",get:function(){return this._onContentLengthKnown},set:function(ue){this._onContentLengthKnown=ue}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(ue){this._onURLRedirect=ue}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(ue){this._onDataArrival=ue}},{key:"onError",get:function(){return this._onError},set:function(ue){this._onError=ue}},{key:"onComplete",get:function(){return this._onComplete},set:function(ue){this._onComplete=ue}}]),Gt}(),p=d("oZsa");function g(Gt,st){for(;!Object.prototype.hasOwnProperty.call(Gt,st)&&!(Gt=Object(p.a)(Gt),Gt===null););return Gt}function A(Gt,st,ue){return typeof Reflect!="undefined"&&Reflect.get?A=Reflect.get:A=function(je,Ve,$e){var wt=g(je,Ve);if(!wt)return;var qt=Object.getOwnPropertyDescriptor(wt,Ve);return qt.get?qt.get.call($e):qt.value},A(Gt,st,ue||Gt)}var y={};function E(){var Gt=self.navigator.userAgent.toLowerCase(),st=/(edge)\/([\w.]+)/.exec(Gt)||/(opr)[\/]([\w.]+)/.exec(Gt)||/(chrome)[ \/]([\w.]+)/.exec(Gt)||/(iemobile)[\/]([\w.]+)/.exec(Gt)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Gt)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Gt)||/(webkit)[ \/]([\w.]+)/.exec(Gt)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(Gt)||/(msie) ([\w.]+)/.exec(Gt)||Gt.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(Gt)||Gt.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(Gt)||[],ue=/(ipad)/.exec(Gt)||/(ipod)/.exec(Gt)||/(windows phone)/.exec(Gt)||/(iphone)/.exec(Gt)||/(kindle)/.exec(Gt)||/(android)/.exec(Gt)||/(windows)/.exec(Gt)||/(mac)/.exec(Gt)||/(linux)/.exec(Gt)||/(cros)/.exec(Gt)||[],Ee={browser:st[5]||st[3]||st[1]||"",version:st[2]||st[4]||"0",majorVersion:st[4]||st[2]||"0",platform:ue[0]||""},je={};if(Ee.browser){je[Ee.browser]=!0;var Ve=Ee.majorVersion.split(".");je.version={major:parseInt(Ee.majorVersion,10),string:Ee.version},Ve.length>1&&(je.version.minor=parseInt(Ve[1],10)),Ve.length>2&&(je.version.build=parseInt(Ve[2],10))}if(Ee.platform&&(je[Ee.platform]=!0),(je.chrome||je.opr||je.safari)&&(je.webkit=!0),je.rv||je.iemobile){je.rv&&delete je.rv;var $e="msie";Ee.browser=$e,je[$e]=!0}if(je.edge){delete je.edge;var wt="msedge";Ee.browser=wt,je[wt]=!0}if(je.opr){var qt="opera";Ee.browser=qt,je[qt]=!0}if(je.safari&&je.android){var Mr="android";Ee.browser=Mr,je[Mr]=!0}je.name=Ee.browser,je.platform=Ee.platform;for(var an in y)y.hasOwnProperty(an)&&delete y[an];Object.assign(y,je)}E();var C=y,w=function(Gt){Object(a.a)(ue,Gt);var st=Object(n.a)(ue);Object(x.a)(ue,null,[{key:"isSupported",value:function(){try{var je=C.msedge&&C.version.minor>=15048,Ve=C.msedge?je:!0;return self.fetch&&self.ReadableStream&&Ve}catch($e){return!1}}}]);function ue(Ee,je){var Ve;return Object(O.a)(this,ue),Ve=st.call(this,"fetch-stream-loader"),Ve.TAG="FetchStreamLoader",Ve._seekHandler=Ee,Ve._config=je,Ve._needStash=!0,Ve._requestAbort=!1,Ve._contentLength=null,Ve._receivedLength=0,Ve}return Object(x.a)(ue,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),A(Object(p.a)(ue.prototype),"destroy",this).call(this)}},{key:"open",value:function(je,Ve){var $e=this;this._dataSource=je,this._range=Ve;var wt=je.url;this._config.reuseRedirectedURL&&je.redirectedURL!=null&&(wt=je.redirectedURL);var qt=this._seekHandler.getConfig(wt,Ve),Mr=new self.Headers;if(typeof qt.headers=="object"){var an=qt.headers;for(var _t in an)an.hasOwnProperty(_t)&&Mr.append(_t,an[_t])}var at={method:"GET",headers:Mr,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var bt in this._config.headers)Mr.append(bt,this._config.headers[bt]);je.cors===!1&&(at.mode="same-origin"),je.withCredentials&&(at.credentials="include"),je.referrerPolicy&&(at.referrerPolicy=je.referrerPolicy),this._status=l.kConnecting,self.fetch(qt.url,at).then(function(kt){if($e._requestAbort){$e._requestAbort=!1,$e._status=l.kIdle;return}if(kt.ok&&kt.status>=200&&kt.status<=299){if(kt.url!==qt.url&&$e._onURLRedirect){var Pt=$e._seekHandler.removeURLParameters(kt.url);$e._onURLRedirect(Pt)}var Et=kt.headers.get("Content-Length");return Et!=null&&($e._contentLength=parseInt(Et),$e._contentLength!==0&&($e._onContentLengthKnown&&$e._onContentLengthKnown($e._contentLength))),$e._pump.call($e,kt.body.getReader())}else if($e._status=l.kError,$e._onError)$e._onError(u.HTTP_STATUS_CODE_INVALID,{code:kt.status,msg:kt.statusText});else throw new e("FetchStreamLoader: Http code invalid, "+kt.status+" "+kt.statusText)}).catch(function(kt){if($e._status=l.kError,$e._onError)$e._onError(u.EXCEPTION,{code:-1,msg:kt.message});else throw kt})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(je){var Ve=this;return je.read().then(function($e){if($e.done)if(Ve._contentLength!==null&&Ve._receivedLength<Ve._contentLength){Ve._status=l.kError;var wt=u.EARLY_EOF,qt={code:-1,msg:"Fetch stream meet Early-EOF"};if(Ve._onError)Ve._onError(wt,qt);else throw new e(qt.msg)}else Ve._status=l.kComplete,Ve._onComplete&&Ve._onComplete(Ve._range.from,Ve._range.from+Ve._receivedLength-1);else{if(Ve._requestAbort===!0)return Ve._requestAbort=!1,Ve._status=l.kComplete,je.cancel();Ve._status=l.kBuffering;var Mr=$e.value.buffer,an=Ve._range.from+Ve._receivedLength;Ve._receivedLength+=Mr.byteLength,Ve._onDataArrival&&Ve._onDataArrival(Mr,an,Ve._receivedLength),Ve._pump(je)}}).catch(function($e){if($e.code===11&&C.msedge)return;Ve._status=l.kError;var wt=0,qt=null;if(($e.code===19||$e.message==="network error")&&(Ve._contentLength===null||Ve._contentLength!==null&&Ve._receivedLength<Ve._contentLength)?(wt=u.EARLY_EOF,qt={code:$e.code,msg:"Fetch stream meet Early-EOF"}):(wt=u.EXCEPTION,qt={code:$e.code,msg:$e.message}),Ve._onError)Ve._onError(wt,qt);else throw new e(qt.msg)})}}]),ue}(h),b=w,I=function(Gt){Object(a.a)(ue,Gt);var st=Object(n.a)(ue);Object(x.a)(ue,null,[{key:"isSupported",value:function(){try{var je=new XMLHttpRequest;return je.open("GET","https://example.com",!0),je.responseType="moz-chunked-arraybuffer",je.responseType==="moz-chunked-arraybuffer"}catch(Ve){return c.w("MozChunkedLoader",Ve.message),!1}}}]);function ue(Ee,je){var Ve;return Object(O.a)(this,ue),Ve=st.call(this,"xhr-moz-chunked-loader"),Ve.TAG="MozChunkedLoader",Ve._seekHandler=Ee,Ve._config=je,Ve._needStash=!0,Ve._xhr=null,Ve._requestAbort=!1,Ve._contentLength=null,Ve._receivedLength=0,Ve}return Object(x.a)(ue,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),A(Object(p.a)(ue.prototype),"destroy",this).call(this)}},{key:"open",value:function(je,Ve){this._dataSource=je,this._range=Ve;var $e=je.url;this._config.reuseRedirectedURL&&je.redirectedURL!=null&&($e=je.redirectedURL);var wt=this._seekHandler.getConfig($e,Ve);this._requestURL=wt.url;var qt=this._xhr=new XMLHttpRequest;if(qt.open("GET",wt.url,!0),qt.responseType="moz-chunked-arraybuffer",qt.onreadystatechange=this._onReadyStateChange.bind(this),qt.onprogress=this._onProgress.bind(this),qt.onloadend=this._onLoadEnd.bind(this),qt.onerror=this._onXhrError.bind(this),je.withCredentials&&(qt.withCredentials=!0),typeof wt.headers=="object"){var Mr=wt.headers;for(var an in Mr)Mr.hasOwnProperty(an)&&qt.setRequestHeader(an,Mr[an])}if(typeof this._config.headers=="object"){var _t=this._config.headers;for(var at in _t)_t.hasOwnProperty(at)&&qt.setRequestHeader(at,_t[at])}this._status=l.kConnecting,qt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=l.kComplete}},{key:"_onReadyStateChange",value:function(je){var Ve=je.target;if(Ve.readyState===2){if(Ve.responseURL!=null&&Ve.responseURL!==this._requestURL&&this._onURLRedirect){var $e=this._seekHandler.removeURLParameters(Ve.responseURL);this._onURLRedirect($e)}if(Ve.status!==0&&(Ve.status<200||Ve.status>299))if(this._status=l.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:Ve.status,msg:Ve.statusText});else throw new e("MozChunkedLoader: Http code invalid, "+Ve.status+" "+Ve.statusText);else this._status=l.kBuffering}}},{key:"_onProgress",value:function(je){if(this._status===l.kError)return;this._contentLength===null&&(je.total!==null&&je.total!==0&&(this._contentLength=je.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var Ve=je.target.response,$e=this._range.from+this._receivedLength;this._receivedLength+=Ve.byteLength,this._onDataArrival&&this._onDataArrival(Ve,$e,this._receivedLength)}},{key:"_onLoadEnd",value:function(je){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===l.kError)return;this._status=l.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}},{key:"_onXhrError",value:function(je){this._status=l.kError;var Ve=0,$e=null;if(this._contentLength&&je.loaded<this._contentLength?(Ve=u.EARLY_EOF,$e={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(Ve=u.EXCEPTION,$e={code:-1,msg:je.constructor.name+" "+je.type}),this._onError)this._onError(Ve,$e);else throw new e($e.msg)}}]),ue}(h),_=I,L=function(Gt){Object(a.a)(ue,Gt);var st=Object(n.a)(ue);Object(x.a)(ue,null,[{key:"isSupported",value:function(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;var je=new XMLHttpRequest;return je.open("GET","https://example.com",!0),je.responseType="ms-stream",je.responseType==="ms-stream"}catch(Ve){return c.w("MSStreamLoader",Ve.message),!1}}}]);function ue(Ee,je){var Ve;return Object(O.a)(this,ue),Ve=st.call(this,"xhr-msstream-loader"),Ve.TAG="MSStreamLoader",Ve._seekHandler=Ee,Ve._config=je,Ve._needStash=!0,Ve._xhr=null,Ve._reader=null,Ve._totalRange=null,Ve._currentRange=null,Ve._currentRequestURL=null,Ve._currentRedirectedURL=null,Ve._contentLength=null,Ve._receivedLength=0,Ve._bufferLimit=16*1024*1024,Ve._lastTimeBufferSize=0,Ve._isReconnecting=!1,Ve}return Object(x.a)(ue,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),A(Object(p.a)(ue.prototype),"destroy",this).call(this)}},{key:"open",value:function(je,Ve){this._internalOpen(je,Ve,!1)}},{key:"_internalOpen",value:function(je,Ve,$e){this._dataSource=je,$e?this._currentRange=Ve:this._totalRange=Ve;var wt=je.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?wt=this._currentRedirectedURL:je.redirectedURL!=null&&(wt=je.redirectedURL));var qt=this._seekHandler.getConfig(wt,Ve);this._currentRequestURL=qt.url;var Mr=this._reader=new self.MSStreamReader;Mr.onprogress=this._msrOnProgress.bind(this),Mr.onload=this._msrOnLoad.bind(this),Mr.onerror=this._msrOnError.bind(this);var an=this._xhr=new XMLHttpRequest;if(an.open("GET",qt.url,!0),an.responseType="ms-stream",an.onreadystatechange=this._xhrOnReadyStateChange.bind(this),an.onerror=this._xhrOnError.bind(this),je.withCredentials&&(an.withCredentials=!0),typeof qt.headers=="object"){var _t=qt.headers;for(var at in _t)_t.hasOwnProperty(at)&&an.setRequestHeader(at,_t[at])}if(typeof this._config.headers=="object"){var bt=this._config.headers;for(var kt in bt)bt.hasOwnProperty(kt)&&an.setRequestHeader(kt,bt[kt])}this._isReconnecting?this._isReconnecting=!1:this._status=l.kConnecting,an.send()}},{key:"abort",value:function(){this._internalAbort(),this._status=l.kComplete}},{key:"_internalAbort",value:function(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}},{key:"_xhrOnReadyStateChange",value:function(je){var Ve=je.target;if(Ve.readyState===2)if(Ve.status>=200&&Ve.status<=299){if(this._status=l.kBuffering,Ve.responseURL!=null){var $e=this._seekHandler.removeURLParameters(Ve.responseURL);Ve.responseURL!==this._currentRequestURL&&$e!==this._currentRedirectedURL&&(this._currentRedirectedURL=$e,this._onURLRedirect&&this._onURLRedirect($e))}var wt=Ve.getResponseHeader("Content-Length");if(wt!=null&&this._contentLength==null){var qt=parseInt(wt);qt>0&&(this._contentLength=qt,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=l.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:Ve.status,msg:Ve.statusText});else throw new e("MSStreamLoader: Http code invalid, "+Ve.status+" "+Ve.statusText);else if(Ve.readyState===3&&(Ve.status>=200&&Ve.status<=299)){this._status=l.kBuffering;var Mr=Ve.response;this._reader.readAsArrayBuffer(Mr)}}},{key:"_xhrOnError",value:function(je){this._status=l.kError;var Ve=u.EXCEPTION,$e={code:-1,msg:je.constructor.name+" "+je.type};if(this._onError)this._onError(Ve,$e);else throw new e($e.msg)}},{key:"_msrOnProgress",value:function(je){var Ve=je.target,$e=Ve.result;if($e==null){this._doReconnectIfNeeded();return}var wt=$e.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=$e.byteLength;var qt=this._totalRange.from+this._receivedLength;this._receivedLength+=wt.byteLength,this._onDataArrival&&this._onDataArrival(wt,qt,this._receivedLength),$e.byteLength>=this._bufferLimit&&(c.v(this.TAG,"MSStream buffer exceeded max size near ".concat(qt+wt.byteLength,", reconnecting...")),this._doReconnectIfNeeded())}},{key:"_doReconnectIfNeeded",value:function(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();var je={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,je,!0)}}},{key:"_msrOnLoad",value:function(je){this._status=l.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}},{key:"_msrOnError",value:function(je){this._status=l.kError;var Ve=0,$e=null;if(this._contentLength&&this._receivedLength<this._contentLength?(Ve=u.EARLY_EOF,$e={code:-1,msg:"MSStream meet Early-Eof"}):(Ve=u.EARLY_EOF,$e={code:-1,msg:je.constructor.name+" "+je.type}),this._onError)this._onError(Ve,$e);else throw new e($e.msg)}}]),ue}(h),D=L,N=function(Gt){Object(a.a)(ue,Gt);var st=Object(n.a)(ue);Object(x.a)(ue,null,[{key:"isSupported",value:function(){try{var je=new XMLHttpRequest;return je.open("GET","https://example.com",!0),je.responseType="arraybuffer",je.responseType==="arraybuffer"}catch(Ve){return c.w("RangeLoader",Ve.message),!1}}}]);function ue(Ee,je){var Ve;return Object(O.a)(this,ue),Ve=st.call(this,"xhr-range-loader"),Ve.TAG="RangeLoader",Ve._seekHandler=Ee,Ve._config=je,Ve._needStash=!1,Ve._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],Ve._currentChunkSizeKB=384,Ve._currentSpeedNormalized=0,Ve._zeroSpeedChunkCount=0,Ve._xhr=null,Ve._speedSampler=new r,Ve._requestAbort=!1,Ve._waitForTotalLength=!1,Ve._totalLengthReceived=!1,Ve._currentRequestURL=null,Ve._currentRedirectedURL=null,Ve._currentRequestRange=null,Ve._totalLength=null,Ve._contentLength=null,Ve._receivedLength=0,Ve._lastTimeLoaded=0,Ve}return Object(x.a)(ue,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),A(Object(p.a)(ue.prototype),"destroy",this).call(this)}},{key:"open",value:function(je,Ve){this._dataSource=je,this._range=Ve,this._status=l.kConnecting;var $e=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&($e=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!$e?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}},{key:"_openSubRange",value:function(){var je=this._currentChunkSizeKB*1024,Ve=this._range.from+this._receivedLength,$e=Ve+je;this._contentLength!=null&&($e-this._range.from>=this._contentLength&&($e=this._range.from+this._contentLength-1)),this._currentRequestRange={from:Ve,to:$e},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(je,Ve){this._lastTimeLoaded=0;var $e=je.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?$e=this._currentRedirectedURL:je.redirectedURL!=null&&($e=je.redirectedURL));var wt=this._seekHandler.getConfig($e,Ve);this._currentRequestURL=wt.url;var qt=this._xhr=new XMLHttpRequest;if(qt.open("GET",wt.url,!0),qt.responseType="arraybuffer",qt.onreadystatechange=this._onReadyStateChange.bind(this),qt.onprogress=this._onProgress.bind(this),qt.onload=this._onLoad.bind(this),qt.onerror=this._onXhrError.bind(this),je.withCredentials&&(qt.withCredentials=!0),typeof wt.headers=="object"){var Mr=wt.headers;for(var an in Mr)Mr.hasOwnProperty(an)&&qt.setRequestHeader(an,Mr[an])}if(typeof this._config.headers=="object"){var _t=this._config.headers;for(var at in _t)_t.hasOwnProperty(at)&&qt.setRequestHeader(at,_t[at])}qt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=l.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function(je){var Ve=je.target;if(Ve.readyState===2){if(Ve.responseURL!=null){var $e=this._seekHandler.removeURLParameters(Ve.responseURL);Ve.responseURL!==this._currentRequestURL&&$e!==this._currentRedirectedURL&&(this._currentRedirectedURL=$e,this._onURLRedirect&&this._onURLRedirect($e))}if(Ve.status>=200&&Ve.status<=299){if(this._waitForTotalLength)return;this._status=l.kBuffering}else if(this._status=l.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:Ve.status,msg:Ve.statusText});else throw new e("RangeLoader: Http code invalid, "+Ve.status+" "+Ve.statusText)}}},{key:"_onProgress",value:function(je){if(this._status===l.kError)return;if(this._contentLength===null){var Ve=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,Ve=!0;var $e=je.total;this._internalAbort(),$e!=null&$e!==0&&(this._totalLength=$e)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,Ve){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var wt=je.loaded-this._lastTimeLoaded;this._lastTimeLoaded=je.loaded,this._speedSampler.addBytes(wt)}},{key:"_normalizeSpeed",value:function(je){var Ve=this._chunkSizeKBList,$e=Ve.length-1,wt=0,qt=0,Mr=$e;if(je<Ve[0])return Ve[0];for(;qt<=Mr;){if(wt=qt+Math.floor((Mr-qt)/2),wt===$e||je>=Ve[wt]&&je<Ve[wt+1])return Ve[wt];Ve[wt]<je?qt=wt+1:Mr=wt-1}}},{key:"_onLoad",value:function(je){if(this._status===l.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;var Ve=this._speedSampler.lastSecondKBps;if(Ve===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(Ve=this._speedSampler.currentKBps)),Ve!==0){var $e=this._normalizeSpeed(Ve);this._currentSpeedNormalized!==$e&&(this._currentSpeedNormalized=$e,this._currentChunkSizeKB=$e)}var wt=je.target.response,qt=this._range.from+this._receivedLength;this._receivedLength+=wt.byteLength;var Mr=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Mr=!0,this._onDataArrival&&this._onDataArrival(wt,qt,this._receivedLength),Mr&&(this._status=l.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},{key:"_onXhrError",value:function(je){this._status=l.kError;var Ve=0,$e=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(Ve=u.EARLY_EOF,$e={code:-1,msg:"RangeLoader meet Early-Eof"}):(Ve=u.EXCEPTION,$e={code:-1,msg:je.constructor.name+" "+je.type}),this._onError)this._onError(Ve,$e);else throw new e($e.msg)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}}]),ue}(h),R=N,B=function(Gt){Object(a.a)(ue,Gt);var st=Object(n.a)(ue);Object(x.a)(ue,null,[{key:"isSupported",value:function(){try{return typeof self.WebSocket!="undefined"}catch(je){return!1}}}]);function ue(){var Ee;return Object(O.a)(this,ue),Ee=st.call(this,"websocket-loader"),Ee.TAG="WebSocketLoader",Ee._needStash=!0,Ee._ws=null,Ee._requestAbort=!1,Ee._receivedLength=0,Ee}return Object(x.a)(ue,[{key:"destroy",value:function(){this._ws&&this.abort(),A(Object(p.a)(ue.prototype),"destroy",this).call(this)}},{key:"open",value:function(je){try{var Ve=this._ws=new self.WebSocket(je.url);Ve.binaryType="arraybuffer",Ve.onopen=this._onWebSocketOpen.bind(this),Ve.onclose=this._onWebSocketClose.bind(this),Ve.onmessage=this._onWebSocketMessage.bind(this),Ve.onerror=this._onWebSocketError.bind(this),this._status=l.kConnecting}catch(wt){this._status=l.kError;var $e={code:wt.code,msg:wt.message};if(this._onError)this._onError(u.EXCEPTION,$e);else throw new e($e.msg)}}},{key:"abort",value:function(){var je=this._ws;je&&(je.readyState===0||je.readyState===1)&&(this._requestAbort=!0,je.close()),this._ws=null,this._status=l.kComplete}},{key:"_onWebSocketOpen",value:function(je){this._status=l.kBuffering}},{key:"_onWebSocketClose",value:function(je){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=l.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}},{key:"_onWebSocketMessage",value:function(je){var Ve=this;if(je.data instanceof ArrayBuffer)this._dispatchArrayBuffer(je.data);else if(je.data instanceof Blob){var $e=new FileReader;$e.onload=function(){Ve._dispatchArrayBuffer($e.result)},$e.readAsArrayBuffer(je.data)}else{this._status=l.kError;var wt={code:-1,msg:"Unsupported WebSocket message type: "+je.data.constructor.name};if(this._onError)this._onError(u.EXCEPTION,wt);else throw new e(wt.msg)}}},{key:"_dispatchArrayBuffer",value:function(je){var Ve=je,$e=this._receivedLength;this._receivedLength+=Ve.byteLength,this._onDataArrival&&this._onDataArrival(Ve,$e,this._receivedLength)}},{key:"_onWebSocketError",value:function(je){this._status=l.kError;var Ve={code:je.code,msg:je.message};if(this._onError)this._onError(u.EXCEPTION,Ve);else throw new e(Ve.msg)}}]),ue}(h),M=B,H=function(){function Gt(st){Object(O.a)(this,Gt),this._zeroStart=st||!1}return Object(x.a)(Gt,[{key:"getConfig",value:function(ue,Ee){var je={};if(Ee.from!==0||Ee.to!==-1){var Ve;Ee.to!==-1?Ve="bytes=".concat(Ee.from.toString(),"-").concat(Ee.to.toString()):Ve="bytes=".concat(Ee.from.toString(),"-"),je.Range=Ve}else this._zeroStart&&(je.Range="bytes=0-");return{url:ue,headers:je}}},{key:"removeURLParameters",value:function(ue){return ue}}]),Gt}(),F=H,K=function(){function Gt(st,ue){Object(O.a)(this,Gt),this._startName=st,this._endName=ue}return Object(x.a)(Gt,[{key:"getConfig",value:function(ue,Ee){var je=ue;if(Ee.from!==0||Ee.to!==-1){var Ve=!0;je.indexOf("?")===-1&&(je+="?",Ve=!1),Ve&&(je+="&"),je+="".concat(this._startName,"=").concat(Ee.from.toString()),Ee.to!==-1&&(je+="&".concat(this._endName,"=").concat(Ee.to.toString()))}return{url:je,headers:{}}}},{key:"removeURLParameters",value:function(ue){var Ee=ue.split("?")[0],je=void 0,Ve=ue.indexOf("?");Ve!==-1&&(je=ue.substring(Ve+1));var $e="";if(je!=null&&je.length>0)for(var wt=je.split("&"),qt=0;qt<wt.length;qt++){var Mr=wt[qt].split("="),an=qt>0;Mr[0]!==this._startName&&Mr[0]!==this._endName&&(an&&($e+="&"),$e+=wt[qt])}return $e.length===0?Ee:Ee+"?"+$e}}]),Gt}(),j=K,V=function(){function Gt(st,ue,Ee){Object(O.a)(this,Gt),this.TAG="IOController",this._config=ue,this._extraData=Ee,this._stashInitialSize=1024*384,ue.stashInitialSize!=null&&ue.stashInitialSize>0&&(this._stashInitialSize=ue.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,ue.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=st,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(st.url),this._refTotalLength=st.filesize?st.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new r,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return Object(x.a)(Gt,[{key:"destroy",value:function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}},{key:"isWorking",value:function(){return this._loader&&this._loader.isWorking()&&!this._paused}},{key:"isPaused",value:function(){return this._paused}},{key:"_selectSeekHandler",value:function(){var ue=this._config;if(ue.seekType==="range")this._seekHandler=new F(this._config.rangeLoadZeroStart);else if(ue.seekType==="param"){var Ee=ue.seekParamStart||"bstart",je=ue.seekParamEnd||"bend";this._seekHandler=new j(Ee,je)}else if(ue.seekType==="custom"){if(typeof ue.customSeekHandler!="function")throw new t("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new ue.customSeekHandler}else throw new t("Invalid seekType in config: ".concat(ue.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=M;else if(b.isSupported())this._loaderClass=b;else if(_.isSupported())this._loaderClass=_;else if(R.isSupported())this._loaderClass=R;else throw new e("Your browser doesn't support xhr with arraybuffer responseType!")}},{key:"_createLoader",value:function(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}},{key:"open",value:function(ue){this._currentRange={from:0,to:-1},ue&&(this._currentRange.from=ue),this._speedSampler.reset(),ue||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}},{key:"abort",value:function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}},{key:"pause",value:function(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}},{key:"resume",value:function(){if(this._paused){this._paused=!1;var ue=this._resumeFrom;this._resumeFrom=0,this._internalSeek(ue,!0)}}},{key:"seek",value:function(ue){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(ue,!0)}},{key:"_internalSeek",value:function(ue,Ee){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(Ee),this._loader.destroy(),this._loader=null;var je={from:ue,to:-1};this._currentRange={from:je.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,je),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(ue){if(!ue||typeof ue!="string"||ue.length===0)throw new t("Url must be a non-empty string!");this._dataSource.url=ue}},{key:"_expandBuffer",value:function(ue){for(var Ee=this._stashSize;Ee+1024*1024*1<ue;)Ee*=2;if(Ee+=1024*1024*1,Ee===this._bufferSize)return;var je=new ArrayBuffer(Ee);if(this._stashUsed>0){var Ve=new Uint8Array(this._stashBuffer,0,this._stashUsed),$e=new Uint8Array(je,0,Ee);$e.set(Ve,0)}this._stashBuffer=je,this._bufferSize=Ee}},{key:"_normalizeSpeed",value:function(ue){var Ee=this._speedNormalizeList,je=Ee.length-1,Ve=0,$e=0,wt=je;if(ue<Ee[0])return Ee[0];for(;$e<=wt;){if(Ve=$e+Math.floor((wt-$e)/2),Ve===je||ue>=Ee[Ve]&&ue<Ee[Ve+1])return Ee[Ve];Ee[Ve]<ue?$e=Ve+1:wt=Ve-1}}},{key:"_adjustStashSize",value:function(ue){var Ee=0;this._config.isLive||ue<512?Ee=ue:ue>=512&&ue<=1024?Ee=Math.floor(ue*1.5):Ee=ue*2,Ee>8192&&(Ee=8192);var je=Ee*1024+1024*1024*1;this._bufferSize<je&&this._expandBuffer(je),this._stashSize=Ee*1024}},{key:"_dispatchChunks",value:function(ue,Ee){return this._currentRange.to=Ee+ue.byteLength-1,this._onDataArrival(ue,Ee)}},{key:"_onURLRedirect",value:function(ue){this._redirectedURL=ue,this._onRedirect&&this._onRedirect(ue)}},{key:"_onContentLengthKnown",value:function(ue){ue&&this._fullRequestFlag&&(this._totalLength=ue,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(ue,Ee,je){if(!this._onDataArrival)throw new s("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(ue.byteLength);var Ve=this._speedSampler.lastSecondKBps;if(Ve!==0){var $e=this._normalizeSpeed(Ve);this._speedNormalized!==$e&&(this._speedNormalized=$e,this._adjustStashSize($e))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=Ee),this._stashUsed+ue.byteLength<=this._stashSize){var bt=new Uint8Array(this._stashBuffer,0,this._stashSize);bt.set(new Uint8Array(ue),this._stashUsed),this._stashUsed+=ue.byteLength}else{var kt=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var Pt=this._stashBuffer.slice(0,this._stashUsed),Et=this._dispatchChunks(Pt,this._stashByteStart);if(Et<Pt.byteLength){if(Et>0){var Ht=new Uint8Array(Pt,Et);kt.set(Ht,0),this._stashUsed=Ht.byteLength,this._stashByteStart+=Et}}else this._stashUsed=0,this._stashByteStart+=Et;this._stashUsed+ue.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+ue.byteLength),kt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),kt.set(new Uint8Array(ue),this._stashUsed),this._stashUsed+=ue.byteLength}else{var ot=this._dispatchChunks(ue,Ee);if(ot<ue.byteLength){var Mt=ue.byteLength-ot;Mt>this._bufferSize&&(this._expandBuffer(Mt),kt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),kt.set(new Uint8Array(ue,ot),0),this._stashUsed+=Mt,this._stashByteStart=Ee+ot}}}else if(this._stashUsed===0){var wt=this._dispatchChunks(ue,Ee);if(wt<ue.byteLength){var qt=ue.byteLength-wt;qt>this._bufferSize&&this._expandBuffer(qt);var Mr=new Uint8Array(this._stashBuffer,0,this._bufferSize);Mr.set(new Uint8Array(ue,wt),0),this._stashUsed+=qt,this._stashByteStart=Ee+wt}}else{this._stashUsed+ue.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+ue.byteLength);var an=new Uint8Array(this._stashBuffer,0,this._bufferSize);an.set(new Uint8Array(ue),this._stashUsed),this._stashUsed+=ue.byteLength;var _t=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(_t<this._stashUsed&&_t>0){var at=new Uint8Array(this._stashBuffer,_t);an.set(at,0)}this._stashUsed-=_t,this._stashByteStart+=_t}}},{key:"_flushStashBuffer",value:function(ue){if(this._stashUsed>0){var Ee=this._stashBuffer.slice(0,this._stashUsed),je=this._dispatchChunks(Ee,this._stashByteStart),Ve=Ee.byteLength-je;if(je<Ee.byteLength)if(ue)c.w(this.TAG,"".concat(Ve," bytes unconsumed data remain when flush buffer, dropped"));else{if(je>0){var $e=new Uint8Array(this._stashBuffer,0,this._bufferSize),wt=new Uint8Array(Ee,je);$e.set(wt,0),this._stashUsed=wt.byteLength,this._stashByteStart+=je}return 0}return this._stashUsed=0,this._stashByteStart=0,Ve}return 0}},{key:"_onLoaderComplete",value:function(ue,Ee){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(ue,Ee){c.e(this.TAG,"Loader error, code = ".concat(Ee.code,", msg = ").concat(Ee.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,ue=u.UNRECOVERABLE_EARLY_EOF);switch(ue){case u.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var je=this._currentRange.to+1;je<this._totalLength&&(c.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(je,!1));return}ue=u.UNRECOVERABLE_EARLY_EOF;break}case u.UNRECOVERABLE_EARLY_EOF:case u.CONNECTING_TIMEOUT:case u.HTTP_STATUS_CODE_INVALID:case u.EXCEPTION:break}if(this._onError)this._onError(ue,Ee);else throw new e("IOException: "+Ee.msg)}},{key:"status",get:function(){return this._loader.status}},{key:"extraData",get:function(){return this._extraData},set:function(ue){this._extraData=ue}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(ue){this._onDataArrival=ue}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(ue){this._onSeeked=ue}},{key:"onError",get:function(){return this._onError},set:function(ue){this._onError=ue}},{key:"onComplete",get:function(){return this._onComplete},set:function(ue){this._onComplete=ue}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(ue){this._onRedirect=ue}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(ue){this._onRecoveredEarlyEof=ue}},{key:"currentURL",get:function(){return this._dataSource.url}},{key:"hasRedirect",get:function(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}},{key:"currentRedirectedURL",get:function(){return this._redirectedURL||this._dataSource.redirectedURL}},{key:"currentSpeed",get:function(){return this._loaderClass===R?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}}]),Gt}(),z=V,Y={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:3*60,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:3*60,autoCleanupMinBackwardDuration:2*60,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function ee(){return Object.assign({},Y)}var fe=function(){function Gt(){Object(O.a)(this,Gt)}return Object(x.a)(Gt,null,[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportNetworkStreamIO",value:function(){var ue=new z({},ee()),Ee=ue.loaderType;return ue.destroy(),Ee=="fetch-stream-loader"||Ee=="xhr-moz-chunked-loader"}},{key:"getNetworkLoaderTypeName",value:function(){var ue=new z({},ee()),Ee=ue.loaderType;return ue.destroy(),Ee}},{key:"supportNativeMediaPlayback",value:function(ue){Gt.videoElement==null&&(Gt.videoElement=window.document.createElement("video"));var Ee=Gt.videoElement.canPlayType(ue);return Ee==="probably"||Ee=="maybe"}},{key:"getFeatureList",value:function(){var ue={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return ue.mseFlvPlayback=Gt.supportMSEH264Playback(),ue.networkStreamIO=Gt.supportNetworkStreamIO(),ue.networkLoaderName=Gt.getNetworkLoaderTypeName(),ue.mseLiveFlvPlayback=ue.mseFlvPlayback&&ue.networkStreamIO,ue.nativeMP4H264Playback=Gt.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),ue.nativeWebmVP8Playback=Gt.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),ue.nativeWebmVP9Playback=Gt.supportNativeMediaPlayback('video/webm; codecs="vp9"'),ue}}]),Gt}(),ie=fe,we={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"},Ce=we,Le=function(){function Gt(){Object(O.a)(this,Gt)}return Object(x.a)(Gt,null,[{key:"getConfig",value:function(){return{globalTag:c.GLOBAL_TAG,forceGlobalTag:c.FORCE_GLOBAL_TAG,enableVerbose:c.ENABLE_VERBOSE,enableDebug:c.ENABLE_DEBUG,enableInfo:c.ENABLE_INFO,enableWarn:c.ENABLE_WARN,enableError:c.ENABLE_ERROR,enableCallback:c.ENABLE_CALLBACK}}},{key:"applyConfig",value:function(ue){c.GLOBAL_TAG=ue.globalTag,c.FORCE_GLOBAL_TAG=ue.forceGlobalTag,c.ENABLE_VERBOSE=ue.enableVerbose,c.ENABLE_DEBUG=ue.enableDebug,c.ENABLE_INFO=ue.enableInfo,c.ENABLE_WARN=ue.enableWarn,c.ENABLE_ERROR=ue.enableError,c.ENABLE_CALLBACK=ue.enableCallback}},{key:"_notifyChange",value:function(){var ue=Gt.emitter;if(ue.listenerCount("change")>0){var Ee=Gt.getConfig();ue.emit("change",Ee)}}},{key:"registerListener",value:function(ue){Gt.emitter.addListener("change",ue)}},{key:"removeListener",value:function(ue){Gt.emitter.removeListener("change",ue)}},{key:"addLogListener",value:function(ue){c.emitter.addListener("log",ue),c.emitter.listenerCount("log")>0&&(c.ENABLE_CALLBACK=!0,Gt._notifyChange())}},{key:"removeLogListener",value:function(ue){c.emitter.removeListener("log",ue),c.emitter.listenerCount("log")===0&&(c.ENABLE_CALLBACK=!1,Gt._notifyChange())}},{key:"forceGlobalTag",get:function(){return c.FORCE_GLOBAL_TAG},set:function(ue){c.FORCE_GLOBAL_TAG=ue,Gt._notifyChange()}},{key:"globalTag",get:function(){return c.GLOBAL_TAG},set:function(ue){c.GLOBAL_TAG=ue,Gt._notifyChange()}},{key:"enableAll",get:function(){return c.ENABLE_VERBOSE&&c.ENABLE_DEBUG&&c.ENABLE_INFO&&c.ENABLE_WARN&&c.ENABLE_ERROR},set:function(ue){c.ENABLE_VERBOSE=ue,c.ENABLE_DEBUG=ue,c.ENABLE_INFO=ue,c.ENABLE_WARN=ue,c.ENABLE_ERROR=ue,Gt._notifyChange()}},{key:"enableDebug",get:function(){return c.ENABLE_DEBUG},set:function(ue){c.ENABLE_DEBUG=ue,Gt._notifyChange()}},{key:"enableVerbose",get:function(){return c.ENABLE_VERBOSE},set:function(ue){c.ENABLE_VERBOSE=ue,Gt._notifyChange()}},{key:"enableInfo",get:function(){return c.ENABLE_INFO},set:function(ue){c.ENABLE_INFO=ue,Gt._notifyChange()}},{key:"enableWarn",get:function(){return c.ENABLE_WARN},set:function(ue){c.ENABLE_WARN=ue,Gt._notifyChange()}},{key:"enableError",get:function(){return c.ENABLE_ERROR},set:function(ue){c.ENABLE_ERROR=ue,Gt._notifyChange()}}]),Gt}();Le.emitter=new m.a;var He=Le,ce=function(){function Gt(){Object(O.a)(this,Gt),this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return Object(x.a)(Gt,[{key:"isComplete",value:function(){var ue=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,Ee=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&ue&&Ee}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(ue){if(this.keyframesIndex==null)return null;var Ee=this.keyframesIndex,je=this._search(Ee.times,ue);return{index:je,milliseconds:Ee.times[je],fileposition:Ee.filepositions[je]}}},{key:"_search",value:function(ue,Ee){var je=0,Ve=ue.length-1,$e=0,wt=0,qt=Ve;for(Ee<ue[0]&&(je=0,wt=qt+1);wt<=qt;)if($e=wt+Math.floor((qt-wt)/2),$e===Ve||Ee>=ue[$e]&&Ee<ue[$e+1]){je=$e;break}else ue[$e]<Ee?wt=$e+1:qt=$e-1;return je}}]),Gt}(),Pe=ce;function Q(Gt,st,ue){var Ee=Gt;if(st+ue<Ee.length){for(;ue--;)if((Ee[++st]&192)!==128)return!1;return!0}else return!1}function me(Gt){for(var st=[],ue=Gt,Ee=0,je=Gt.length;Ee<je;){if(ue[Ee]<128){st.push(String.fromCharCode(ue[Ee])),++Ee;continue}else if(!(ue[Ee]<192)){if(ue[Ee]<224){if(Q(ue,Ee,1)){var Ve=(ue[Ee]&31)<<6|ue[Ee+1]&63;if(Ve>=128){st.push(String.fromCharCode(Ve&65535)),Ee+=2;continue}}}else if(ue[Ee]<240){if(Q(ue,Ee,2)){var $e=(ue[Ee]&15)<<12|(ue[Ee+1]&63)<<6|ue[Ee+2]&63;if($e>=2048&&($e&63488)!==55296){st.push(String.fromCharCode($e&65535)),Ee+=3;continue}}}else if(ue[Ee]<248&&Q(ue,Ee,3)){var wt=(ue[Ee]&7)<<18|(ue[Ee+1]&63)<<12|(ue[Ee+2]&63)<<6|ue[Ee+3]&63;if(wt>65536&&wt<1114112){wt-=65536,st.push(String.fromCharCode(wt>>>10|55296)),st.push(String.fromCharCode(wt&1023|56320)),Ee+=4;continue}}}st.push(String.fromCharCode(65533)),++Ee}return st.join("")}var Je=me,re=function(){var Gt=new ArrayBuffer(2);return new DataView(Gt).setInt16(0,256,!0),new Int16Array(Gt)[0]===256}(),G=function(){function Gt(){Object(O.a)(this,Gt)}return Object(x.a)(Gt,null,[{key:"parseScriptData",value:function(ue,Ee,je){var Ve={};try{var $e=Gt.parseValue(ue,Ee,je),wt=Gt.parseValue(ue,Ee+$e.size,je-$e.size);Ve[$e.data]=wt.data}catch(qt){c.e("AMF",qt.toString())}return Ve}},{key:"parseObject",value:function(ue,Ee,je){if(je<3)throw new s("Data not enough when parse ScriptDataObject");var Ve=Gt.parseString(ue,Ee,je),$e=Gt.parseValue(ue,Ee+Ve.size,je-Ve.size),wt=$e.objectEnd;return{data:{name:Ve.data,value:$e.data},size:Ve.size+$e.size,objectEnd:wt}}},{key:"parseVariable",value:function(ue,Ee,je){return Gt.parseObject(ue,Ee,je)}},{key:"parseString",value:function(ue,Ee,je){if(je<2)throw new s("Data not enough when parse String");var Ve=new DataView(ue,Ee,je),$e=Ve.getUint16(0,!re),wt;return $e>0?wt=Je(new Uint8Array(ue,Ee+2,$e)):wt="",{data:wt,size:2+$e}}},{key:"parseLongString",value:function(ue,Ee,je){if(je<4)throw new s("Data not enough when parse LongString");var Ve=new DataView(ue,Ee,je),$e=Ve.getUint32(0,!re),wt;return $e>0?wt=Je(new Uint8Array(ue,Ee+4,$e)):wt="",{data:wt,size:4+$e}}},{key:"parseDate",value:function(ue,Ee,je){if(je<10)throw new s("Data size invalid when parse Date");var Ve=new DataView(ue,Ee,je),$e=Ve.getFloat64(0,!re),wt=Ve.getInt16(8,!re);return $e+=wt*60*1e3,{data:new Date($e),size:8+2}}},{key:"parseValue",value:function(ue,Ee,je){if(je<1)throw new s("Data not enough when parse Value");var Ve=new DataView(ue,Ee,je),$e=1,wt=Ve.getUint8(0),qt,Mr=!1;try{switch(wt){case 0:qt=Ve.getFloat64(1,!re),$e+=8;break;case 1:{var an=Ve.getUint8(1);qt=!!an,$e+=1;break}case 2:{var _t=Gt.parseString(ue,Ee+1,je-1);qt=_t.data,$e+=_t.size;break}case 3:{qt={};var at=0;for((Ve.getUint32(je-4,!re)&16777215)===9&&(at=3);$e<je-4;){var bt=Gt.parseObject(ue,Ee+$e,je-$e-at);if(bt.objectEnd)break;qt[bt.data.name]=bt.data.value,$e+=bt.size}if($e<=je-3){var kt=Ve.getUint32($e-1,!re)&16777215;kt===9&&($e+=3)}break}case 8:{qt={},$e+=4;var Pt=0;for((Ve.getUint32(je-4,!re)&16777215)===9&&(Pt=3);$e<je-8;){var Et=Gt.parseVariable(ue,Ee+$e,je-$e-Pt);if(Et.objectEnd)break;qt[Et.data.name]=Et.data.value,$e+=Et.size}if($e<=je-3){var Ht=Ve.getUint32($e-1,!re)&16777215;Ht===9&&($e+=3)}break}case 9:qt=void 0,$e=1,Mr=!0;break;case 10:{qt=[];var ot=Ve.getUint32(1,!re);$e+=4;for(var Mt=0;Mt<ot;Mt++){var xr=Gt.parseValue(ue,Ee+$e,je-$e);qt.push(xr.data),$e+=xr.size}break}case 11:{var ur=Gt.parseDate(ue,Ee+1,je-1);qt=ur.data,$e+=ur.size;break}case 12:{var gr=Gt.parseString(ue,Ee+1,je-1);qt=gr.data,$e+=gr.size;break}default:$e=je,c.w("AMF","Unsupported AMF value type "+wt)}}catch(Qr){c.e("AMF",Qr.toString())}return{data:qt,size:$e,objectEnd:Mr}}}]),Gt}(),X=G,J=function(){function Gt(st){Object(O.a)(this,Gt),this.TAG="ExpGolomb",this._buffer=st,this._buffer_index=0,this._total_bytes=st.byteLength,this._total_bits=st.byteLength*8,this._current_word=0,this._current_word_bits_left=0}return Object(x.a)(Gt,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var ue=this._total_bytes-this._buffer_index;if(ue<=0)throw new s("ExpGolomb: _fillCurrentWord() but no bytes available");var Ee=Math.min(4,ue),je=new Uint8Array(4);je.set(this._buffer.subarray(this._buffer_index,this._buffer_index+Ee)),this._current_word=new DataView(je.buffer).getUint32(0,!1),this._buffer_index+=Ee,this._current_word_bits_left=Ee*8}},{key:"readBits",value:function(ue){if(ue>32)throw new t("ExpGolomb: readBits() bits exceeded max 32bits!");if(ue<=this._current_word_bits_left){var Ee=this._current_word>>>32-ue;return this._current_word<<=ue,this._current_word_bits_left-=ue,Ee}var je=this._current_word_bits_left?this._current_word:0;je=je>>>32-this._current_word_bits_left;var Ve=ue-this._current_word_bits_left;this._fillCurrentWord();var $e=Math.min(Ve,this._current_word_bits_left),wt=this._current_word>>>32-$e;return this._current_word<<=$e,this._current_word_bits_left-=$e,je=je<<$e|wt,je}},{key:"readBool",value:function(){return this.readBits(1)===1}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var ue;for(ue=0;ue<this._current_word_bits_left;ue++)if((this._current_word&2147483648>>>ue)!==0)return this._current_word<<=ue,this._current_word_bits_left-=ue,ue;return this._fillCurrentWord(),ue+this._skipLeadingZero()}},{key:"readUEG",value:function(){var ue=this._skipLeadingZero();return this.readBits(ue+1)-1}},{key:"readSEG",value:function(){var ue=this.readUEG();return ue&1?ue+1>>>1:-1*(ue>>>1)}}]),Gt}(),Ae=J,he=function(){function Gt(){Object(O.a)(this,Gt)}return Object(x.a)(Gt,null,[{key:"_ebsp2rbsp",value:function(ue){for(var Ee=ue,je=Ee.byteLength,Ve=new Uint8Array(je),$e=0,wt=0;wt<je;wt++){if(wt>=2&&(Ee[wt]===3&&Ee[wt-1]===0&&Ee[wt-2]===0))continue;Ve[$e]=Ee[wt],$e++}return new Uint8Array(Ve.buffer,0,$e)}},{key:"parseSPS",value:function(ue){var Ee=Gt._ebsp2rbsp(ue),je=new Ae(Ee);je.readByte();var Ve=je.readByte();je.readByte();var $e=je.readByte();je.readUEG();var wt=Gt.getProfileString(Ve),qt=Gt.getLevelString($e),Mr=1,an=420,_t=[0,420,422,444],at=8;if((Ve===100||Ve===110||Ve===122||Ve===244||Ve===44||Ve===83||Ve===86||Ve===118||Ve===128||Ve===138||Ve===144)&&(Mr=je.readUEG(),Mr===3&&je.readBits(1),Mr<=3&&(an=_t[Mr]),at=je.readUEG()+8,je.readUEG(),je.readBits(1),je.readBool()))for(var bt=Mr!==3?8:12,kt=0;kt<bt;kt++)je.readBool()&&(kt<6?Gt._skipScalingList(je,16):Gt._skipScalingList(je,64));je.readUEG();var Pt=je.readUEG();if(Pt===0)je.readUEG();else if(Pt===1){je.readBits(1),je.readSEG(),je.readSEG();for(var Et=je.readUEG(),Ht=0;Ht<Et;Ht++)je.readSEG()}var ot=je.readUEG();je.readBits(1);var Mt=je.readUEG(),xr=je.readUEG(),ur=je.readBits(1);ur===0&&je.readBits(1),je.readBits(1);var gr=0,Qr=0,ln=0,_n=0,Mn=je.readBool();Mn&&(gr=je.readUEG(),Qr=je.readUEG(),ln=je.readUEG(),_n=je.readUEG());var li=1,ai=1,pi=0,Oi=!0,Ze=0,be=0,Ne=je.readBool();if(Ne){if(je.readBool()){var Ue=je.readByte(),Qe=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],Xe=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Ue>0&&Ue<16?(li=Qe[Ue-1],ai=Xe[Ue-1]):Ue===255&&(li=je.readByte()<<8|je.readByte(),ai=je.readByte()<<8|je.readByte())}if(je.readBool()&&je.readBool(),je.readBool()&&(je.readBits(4),je.readBool()&&je.readBits(24)),je.readBool()&&(je.readUEG(),je.readUEG()),je.readBool()){var qe=je.readBits(32),yt=je.readBits(32);Oi=je.readBool(),Ze=yt,be=qe*2,pi=Ze/be}}var ht=1;(li!==1||ai!==1)&&(ht=li/ai);var Jt=0,kr=0;if(Mr===0)Jt=1,kr=2-ur;else{var _r=Mr===3?1:2,Xr=Mr===1?2:1;Jt=_r,kr=Xr*(2-ur)}var Bt=(Mt+1)*16,gn=(2-ur)*((xr+1)*16);Bt-=(gr+Qr)*Jt,gn-=(ln+_n)*kr;var hr=Math.ceil(Bt*ht);return je.destroy(),je=null,{profile_string:wt,level_string:qt,bit_depth:at,ref_frames:ot,chroma_format:an,chroma_format_string:Gt.getChromaFormatString(an),frame_rate:{fixed:Oi,fps:pi,fps_den:be,fps_num:Ze},sar_ratio:{width:li,height:ai},codec_size:{width:Bt,height:gn},present_size:{width:hr,height:gn}}}},{key:"_skipScalingList",value:function(ue,Ee){for(var je=8,Ve=8,$e=0,wt=0;wt<Ee;wt++)Ve!==0&&($e=ue.readSEG(),Ve=(je+$e+256)%256),je=Ve===0?je:Ve}},{key:"getProfileString",value:function(ue){switch(ue){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}},{key:"getLevelString",value:function(ue){return(ue/10).toFixed(1)}},{key:"getChromaFormatString",value:function(ue){switch(ue){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),Gt}(),Me=he,Ie={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"},oe=Ie;function pe(Gt){return Gt>>>8&255|(Gt&255)<<8}function Oe(Gt){return(Gt&4278190080)>>>24|(Gt&16711680)>>>8|(Gt&65280)<<8|(Gt&255)<<24}function Ye(Gt,st){return Gt[st]<<24|Gt[st+1]<<16|Gt[st+2]<<8|Gt[st+3]}var it=function(){function Gt(st,ue){Object(O.a)(this,Gt),this.TAG="FLVDemuxer",this._config=ue,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=st.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=st.hasAudioTrack,this._hasVideo=st.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Pe,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){var Ee=new ArrayBuffer(2);return new DataView(Ee).setInt16(0,256,!0),new Int16Array(Ee)[0]===256}()}return Object(x.a)(Gt,[{key:"destroy",value:function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}},{key:"bindDataSource",value:function(ue){return ue.onDataArrival=this.parseChunks.bind(this),this}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new Pe}},{key:"_isInitialMetadataDispatched",value:function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}},{key:"parseChunks",value:function(ue,Ee){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new s("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var je=0,Ve=this._littleEndian;if(Ee===0)if(ue.byteLength>13){var $e=Gt.probe(ue);je=$e.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,Ee+je!==this._dataOffset&&c.w(this.TAG,"First time parsing but chunk byteStart invalid!");var wt=new DataView(ue,je),qt=wt.getUint32(0,!Ve);qt!==0&&c.w(this.TAG,"PrevTagSize0 !== 0 !!!"),je+=4}for(;je<ue.byteLength;){this._dispatch=!0;var Mr=new DataView(ue,je);if(je+11+4>ue.byteLength)break;var an=Mr.getUint8(0),_t=Mr.getUint32(0,!Ve)&16777215;if(je+11+_t+4>ue.byteLength)break;if(an!==8&&an!==9&&an!==18){c.w(this.TAG,"Unsupported tag type ".concat(an,", skipped")),je+=11+_t+4;continue}var at=Mr.getUint8(4),bt=Mr.getUint8(5),kt=Mr.getUint8(6),Pt=Mr.getUint8(7),Et=kt|bt<<8|at<<16|Pt<<24,Ht=Mr.getUint32(7,!Ve)&16777215;Ht!==0&&c.w(this.TAG,"Meet tag which has StreamID != 0!");var ot=je+11;switch(an){case 8:this._parseAudioData(ue,ot,_t,Et);break;case 9:this._parseVideoData(ue,ot,_t,Et,Ee+je);break;case 18:this._parseScriptData(ue,ot,_t);break}var Mt=Mr.getUint32(11+_t,!Ve);Mt!==11+_t&&c.w(this.TAG,"Invalid PrevTagSize ".concat(Mt)),je+=11+_t+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),je}},{key:"_parseScriptData",value:function(ue,Ee,je){var Ve=X.parseScriptData(ue,Ee,je);if(Ve.hasOwnProperty("onMetaData")){if(Ve.onMetaData==null||typeof Ve.onMetaData!="object"){c.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&c.w(this.TAG,"Found another onMetaData tag!"),this._metadata=Ve;var $e=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},$e)),typeof $e.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=$e.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof $e.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=$e.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof $e.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=$e.audiodatarate),typeof $e.videodatarate=="number"&&(this._mediaInfo.videoDataRate=$e.videodatarate),typeof $e.width=="number"&&(this._mediaInfo.width=$e.width),typeof $e.height=="number"&&(this._mediaInfo.height=$e.height),typeof $e.duration=="number"){if(!this._durationOverrided){var wt=Math.floor($e.duration*this._timescale);this._duration=wt,this._mediaInfo.duration=wt}}else this._mediaInfo.duration=0;if(typeof $e.framerate=="number"){var qt=Math.floor($e.framerate*1e3);if(qt>0){var Mr=qt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=Mr,this._referenceFrameRate.fps_num=qt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=Mr}}if(typeof $e.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var an=$e.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(an),$e.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=$e,c.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(Ve).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},Ve)))}},{key:"_parseKeyframesIndex",value:function(ue){for(var Ee=[],je=[],Ve=1;Ve<ue.times.length;Ve++){var $e=this._timestampBase+Math.floor(ue.times[Ve]*1e3);Ee.push($e),je.push(ue.filepositions[Ve])}return{times:Ee,filepositions:je}}},{key:"_parseAudioData",value:function(ue,Ee,je,Ve){if(je<=1){c.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;var $e=this._littleEndian,wt=new DataView(ue,Ee,je),qt=wt.getUint8(0),Mr=qt>>>4;if(Mr!==2&&Mr!==10){this._onError(oe.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Mr);return}var an=0,_t=(qt&12)>>>2;if(_t>=0&&_t<=4)an=this._flvSoundRateTable[_t];else{this._onError(oe.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+_t);return}var at=(qt&2)>>>1,bt=qt&1,kt=this._audioMetadata,Pt=this._audioTrack;if(kt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),kt=this._audioMetadata={},kt.type="audio",kt.id=Pt.id,kt.timescale=this._timescale,kt.duration=this._duration,kt.audioSampleRate=an,kt.channelCount=bt===0?1:2),Mr===10){var Et=this._parseAACAudioData(ue,Ee+1,je-1);if(Et==null)return;if(Et.packetType===0){kt.config&&c.w(this.TAG,"Found another AudioSpecificConfig!");var Ht=Et.data;kt.audioSampleRate=Ht.samplingRate,kt.channelCount=Ht.channelCount,kt.codec=Ht.codec,kt.originalCodec=Ht.originalCodec,kt.config=Ht.config,kt.refSampleDuration=1024/kt.audioSampleRate*kt.timescale,c.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",kt);var ot=this._mediaInfo;ot.audioCodec=kt.originalCodec,ot.audioSampleRate=kt.audioSampleRate,ot.audioChannelCount=kt.channelCount,ot.hasVideo?ot.videoCodec!=null&&(ot.mimeType='video/x-flv; codecs="'+ot.videoCodec+","+ot.audioCodec+'"'):ot.mimeType='video/x-flv; codecs="'+ot.audioCodec+'"',ot.isComplete()&&this._onMediaInfo(ot)}else if(Et.packetType===1){var Mt=this._timestampBase+Ve,xr={unit:Et.data,length:Et.data.byteLength,dts:Mt,pts:Mt};Pt.samples.push(xr),Pt.length+=Et.data.length}else c.e(this.TAG,"Flv: Unsupported AAC data type ".concat(Et.packetType))}else if(Mr===2){if(!kt.codec){var ur=this._parseMP3AudioData(ue,Ee+1,je-1,!0);if(ur==null)return;kt.audioSampleRate=ur.samplingRate,kt.channelCount=ur.channelCount,kt.codec=ur.codec,kt.originalCodec=ur.originalCodec,kt.refSampleDuration=1152/kt.audioSampleRate*kt.timescale,c.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",kt);var gr=this._mediaInfo;gr.audioCodec=kt.codec,gr.audioSampleRate=kt.audioSampleRate,gr.audioChannelCount=kt.channelCount,gr.audioDataRate=ur.bitRate,gr.hasVideo?gr.videoCodec!=null&&(gr.mimeType='video/x-flv; codecs="'+gr.videoCodec+","+gr.audioCodec+'"'):gr.mimeType='video/x-flv; codecs="'+gr.audioCodec+'"',gr.isComplete()&&this._onMediaInfo(gr)}var Qr=this._parseMP3AudioData(ue,Ee+1,je-1,!1);if(Qr==null)return;var ln=this._timestampBase+Ve,_n={unit:Qr,length:Qr.byteLength,dts:ln,pts:ln};Pt.samples.push(_n),Pt.length+=Qr.length}}},{key:"_parseAACAudioData",value:function(ue,Ee,je){if(je<=1){c.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var Ve={},$e=new Uint8Array(ue,Ee,je);return Ve.packetType=$e[0],$e[0]===0?Ve.data=this._parseAACAudioSpecificConfig(ue,Ee+1,je-1):Ve.data=$e.subarray(1),Ve}},{key:"_parseAACAudioSpecificConfig",value:function(ue,Ee,je){var Ve=new Uint8Array(ue,Ee,je),$e=null,wt=0,qt=0,Mr=null,an=0,_t=null;if(wt=qt=Ve[0]>>>3,an=(Ve[0]&7)<<1|Ve[1]>>>7,an<0||an>=this._mpegSamplingRates.length){this._onError(oe.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var at=this._mpegSamplingRates[an],bt=(Ve[1]&120)>>>3;if(bt<0||bt>=8){this._onError(oe.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}wt===5&&(_t=(Ve[1]&7)<<1|Ve[2]>>>7,Mr=(Ve[2]&124)>>>2);var kt=self.navigator.userAgent.toLowerCase();return kt.indexOf("firefox")!==-1?an>=6?(wt=5,$e=new Array(4),_t=an-3):(wt=2,$e=new Array(2),_t=an):kt.indexOf("android")!==-1?(wt=2,$e=new Array(2),_t=an):(wt=5,_t=an,$e=new Array(4),an>=6?_t=an-3:bt===1&&(wt=2,$e=new Array(2),_t=an)),$e[0]=wt<<3,$e[0]|=(an&15)>>>1,$e[1]=(an&15)<<7,$e[1]|=(bt&15)<<3,wt===5&&($e[1]|=(_t&15)>>>1,$e[2]=(_t&1)<<7,$e[2]|=2<<2,$e[3]=0),{config:$e,samplingRate:at,channelCount:bt,codec:"mp4a.40."+wt,originalCodec:"mp4a.40."+qt}}},{key:"_parseMP3AudioData",value:function(ue,Ee,je,Ve){if(je<4){c.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var $e=this._littleEndian,wt=new Uint8Array(ue,Ee,je),qt=null;if(Ve){if(wt[0]!==255)return;var Mr=wt[1]>>>3&3,an=(wt[1]&6)>>1,_t=(wt[2]&240)>>>4,at=(wt[2]&12)>>>2,bt=wt[3]>>>6&3,kt=bt!==3?2:1,Pt=0,Et=0,Ht=34,ot="mp3";switch(Mr){case 0:Pt=this._mpegAudioV25SampleRateTable[at];break;case 2:Pt=this._mpegAudioV20SampleRateTable[at];break;case 3:Pt=this._mpegAudioV10SampleRateTable[at];break}switch(an){case 1:Ht=34,_t<this._mpegAudioL3BitRateTable.length&&(Et=this._mpegAudioL3BitRateTable[_t]);break;case 2:Ht=33,_t<this._mpegAudioL2BitRateTable.length&&(Et=this._mpegAudioL2BitRateTable[_t]);break;case 3:Ht=32,_t<this._mpegAudioL1BitRateTable.length&&(Et=this._mpegAudioL1BitRateTable[_t]);break}qt={bitRate:Et,samplingRate:Pt,channelCount:kt,codec:ot,originalCodec:ot}}else qt=wt;return qt}},{key:"_parseVideoData",value:function(ue,Ee,je,Ve,$e){if(je<=1){c.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;var wt=new Uint8Array(ue,Ee,je)[0],qt=(wt&240)>>>4,Mr=wt&15;if(Mr!==7){this._onError(oe.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(Mr));return}this._parseAVCVideoPacket(ue,Ee+1,je-1,Ve,$e,qt)}},{key:"_parseAVCVideoPacket",value:function(ue,Ee,je,Ve,$e,wt){if(je<4){c.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var qt=this._littleEndian,Mr=new DataView(ue,Ee,je),an=Mr.getUint8(0),_t=Mr.getUint32(0,!qt)&16777215,at=_t<<8>>8;if(an===0)this._parseAVCDecoderConfigurationRecord(ue,Ee+4,je-4);else if(an===1)this._parseAVCVideoData(ue,Ee+4,je-4,Ve,$e,wt,at);else if(!(an===2)){this._onError(oe.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(an));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(ue,Ee,je){if(je<7){c.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var Ve=this._videoMetadata,$e=this._videoTrack,wt=this._littleEndian,qt=new DataView(ue,Ee,je);Ve?typeof Ve.avcc!="undefined"&&c.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),Ve=this._videoMetadata={},Ve.type="video",Ve.id=$e.id,Ve.timescale=this._timescale,Ve.duration=this._duration);var Mr=qt.getUint8(0),an=qt.getUint8(1),_t=qt.getUint8(2),at=qt.getUint8(3);if(Mr!==1||an===0){this._onError(oe.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(qt.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(oe.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var bt=qt.getUint8(5)&31;if(bt===0){this._onError(oe.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else bt>1&&c.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(bt));for(var kt=6,Pt=0;Pt<bt;Pt++){var Et=qt.getUint16(kt,!wt);if(kt+=2,Et===0)continue;var Ht=new Uint8Array(ue,Ee+kt,Et);kt+=Et;var ot=Me.parseSPS(Ht);if(Pt!==0)continue;Ve.codecWidth=ot.codec_size.width,Ve.codecHeight=ot.codec_size.height,Ve.presentWidth=ot.present_size.width,Ve.presentHeight=ot.present_size.height,Ve.profile=ot.profile_string,Ve.level=ot.level_string,Ve.bitDepth=ot.bit_depth,Ve.chromaFormat=ot.chroma_format,Ve.sarRatio=ot.sar_ratio,Ve.frameRate=ot.frame_rate,(ot.frame_rate.fixed===!1||ot.frame_rate.fps_num===0||ot.frame_rate.fps_den===0)&&(Ve.frameRate=this._referenceFrameRate);var Mt=Ve.frameRate.fps_den,xr=Ve.frameRate.fps_num;Ve.refSampleDuration=Ve.timescale*(Mt/xr);for(var ur=Ht.subarray(1,4),gr="avc1.",Qr=0;Qr<3;Qr++){var ln=ur[Qr].toString(16);ln.length<2&&(ln="0"+ln),gr+=ln}Ve.codec=gr;var _n=this._mediaInfo;_n.width=Ve.codecWidth,_n.height=Ve.codecHeight,_n.fps=Ve.frameRate.fps,_n.profile=Ve.profile,_n.level=Ve.level,_n.refFrames=ot.ref_frames,_n.chromaFormat=ot.chroma_format_string,_n.sarNum=Ve.sarRatio.width,_n.sarDen=Ve.sarRatio.height,_n.videoCodec=gr,_n.hasAudio?_n.audioCodec!=null&&(_n.mimeType='video/x-flv; codecs="'+_n.videoCodec+","+_n.audioCodec+'"'):_n.mimeType='video/x-flv; codecs="'+_n.videoCodec+'"',_n.isComplete()&&this._onMediaInfo(_n)}var Mn=qt.getUint8(kt);if(Mn===0){this._onError(oe.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else Mn>1&&c.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(Mn));kt++;for(var li=0;li<Mn;li++){var ai=qt.getUint16(kt,!wt);if(kt+=2,ai===0)continue;kt+=ai}Ve.avcc=new Uint8Array(je),Ve.avcc.set(new Uint8Array(ue,Ee,je),0),c.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",Ve)}},{key:"_parseAVCVideoData",value:function(ue,Ee,je,Ve,$e,wt,qt){for(var Mr=this._littleEndian,an=new DataView(ue,Ee,je),_t=[],at=0,bt=0,kt=this._naluLengthSize,Pt=this._timestampBase+Ve,Et=wt===1;bt<je;){if(bt+4>=je){c.w(this.TAG,"Malformed Nalu near timestamp ".concat(Pt,", offset = ").concat(bt,", dataSize = ").concat(je));break}var Ht=an.getUint32(bt,!Mr);if(kt===3&&(Ht>>>=8),Ht>je-kt){c.w(this.TAG,"Malformed Nalus near timestamp ".concat(Pt,", NaluSize > DataSize!"));return}var ot=an.getUint8(bt+kt)&31;ot===5&&(Et=!0);var Mt=new Uint8Array(ue,Ee+bt,kt+Ht),xr={type:ot,data:Mt};_t.push(xr),at+=Mt.byteLength,bt+=kt+Ht}if(_t.length){var ur=this._videoTrack,gr={units:_t,length:at,isKeyframe:Et,dts:Pt,cts:qt,pts:Pt+qt};Et&&(gr.fileposition=$e),ur.samples.push(gr),ur.length+=at}}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(ue){this._onTrackMetadata=ue}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(ue){this._onMediaInfo=ue}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(ue){this._onMetaDataArrived=ue}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(ue){this._onScriptDataArrived=ue}},{key:"onError",get:function(){return this._onError},set:function(ue){this._onError=ue}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(ue){this._onDataAvailable=ue}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(ue){this._timestampBase=ue}},{key:"overridedDuration",get:function(){return this._duration},set:function(ue){this._durationOverrided=!0,this._duration=ue,this._mediaInfo.duration=ue}},{key:"overridedHasAudio",set:function(ue){this._hasAudioFlagOverrided=!0,this._hasAudio=ue,this._mediaInfo.hasAudio=ue}},{key:"overridedHasVideo",set:function(ue){this._hasVideoFlagOverrided=!0,this._hasVideo=ue,this._mediaInfo.hasVideo=ue}}],[{key:"probe",value:function(ue){var Ee=new Uint8Array(ue),je={match:!1};if(Ee[0]!==70||Ee[1]!==76||Ee[2]!==86||Ee[3]!==1)return je;var Ve=(Ee[4]&4)>>>2!==0,$e=(Ee[4]&1)!==0,wt=Ye(Ee,5);return wt<9?je:{match:!0,consumed:wt,dataOffset:wt,hasAudioTrack:Ve,hasVideoTrack:$e}}}]),Gt}(),et=it,Te=function(){function Gt(){Object(O.a)(this,Gt)}return Object(x.a)(Gt,null,[{key:"init",value:function(){Gt.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(var ue in Gt.types)Gt.types.hasOwnProperty(ue)&&(Gt.types[ue]=[ue.charCodeAt(0),ue.charCodeAt(1),ue.charCodeAt(2),ue.charCodeAt(3)]);var Ee=Gt.constants={};Ee.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),Ee.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),Ee.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),Ee.STSC=Ee.STCO=Ee.STTS,Ee.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Ee.HDLR_VIDEO=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]),Ee.HDLR_AUDIO=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]),Ee.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Ee.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Ee.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(ue){for(var Ee=8,je=null,Ve=Array.prototype.slice.call(arguments,1),$e=Ve.length,wt=0;wt<$e;wt++)Ee+=Ve[wt].byteLength;je=new Uint8Array(Ee),je[0]=Ee>>>24&255,je[1]=Ee>>>16&255,je[2]=Ee>>>8&255,je[3]=Ee&255,je.set(ue,4);for(var qt=8,Mr=0;Mr<$e;Mr++)je.set(Ve[Mr],qt),qt+=Ve[Mr].byteLength;return je}},{key:"generateInitSegment",value:function(ue){var Ee=Gt.box(Gt.types.ftyp,Gt.constants.FTYP),je=Gt.moov(ue),Ve=new Uint8Array(Ee.byteLength+je.byteLength);return Ve.set(Ee,0),Ve.set(je,Ee.byteLength),Ve}},{key:"moov",value:function(ue){var Ee=Gt.mvhd(ue.timescale,ue.duration),je=Gt.trak(ue),Ve=Gt.mvex(ue);return Gt.box(Gt.types.moov,Ee,je,Ve)}},{key:"mvhd",value:function(ue,Ee){return Gt.box(Gt.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,ue>>>24&255,ue>>>16&255,ue>>>8&255,ue&255,Ee>>>24&255,Ee>>>16&255,Ee>>>8&255,Ee&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]))}},{key:"trak",value:function(ue){return Gt.box(Gt.types.trak,Gt.tkhd(ue),Gt.mdia(ue))}},{key:"tkhd",value:function(ue){var Ee=ue.id,je=ue.duration,Ve=ue.presentWidth,$e=ue.presentHeight;return Gt.box(Gt.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,Ee>>>24&255,Ee>>>16&255,Ee>>>8&255,Ee&255,0,0,0,0,je>>>24&255,je>>>16&255,je>>>8&255,je&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,Ve>>>8&255,Ve&255,0,0,$e>>>8&255,$e&255,0,0]))}},{key:"mdia",value:function(ue){return Gt.box(Gt.types.mdia,Gt.mdhd(ue),Gt.hdlr(ue),Gt.minf(ue))}},{key:"mdhd",value:function(ue){var Ee=ue.timescale,je=ue.duration;return Gt.box(Gt.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Ee>>>24&255,Ee>>>16&255,Ee>>>8&255,Ee&255,je>>>24&255,je>>>16&255,je>>>8&255,je&255,85,196,0,0]))}},{key:"hdlr",value:function(ue){var Ee=null;return ue.type==="audio"?Ee=Gt.constants.HDLR_AUDIO:Ee=Gt.constants.HDLR_VIDEO,Gt.box(Gt.types.hdlr,Ee)}},{key:"minf",value:function(ue){var Ee=null;return ue.type==="audio"?Ee=Gt.box(Gt.types.smhd,Gt.constants.SMHD):Ee=Gt.box(Gt.types.vmhd,Gt.constants.VMHD),Gt.box(Gt.types.minf,Ee,Gt.dinf(),Gt.stbl(ue))}},{key:"dinf",value:function(){var ue=Gt.box(Gt.types.dinf,Gt.box(Gt.types.dref,Gt.constants.DREF));return ue}},{key:"stbl",value:function(ue){var Ee=Gt.box(Gt.types.stbl,Gt.stsd(ue),Gt.box(Gt.types.stts,Gt.constants.STTS),Gt.box(Gt.types.stsc,Gt.constants.STSC),Gt.box(Gt.types.stsz,Gt.constants.STSZ),Gt.box(Gt.types.stco,Gt.constants.STCO));return Ee}},{key:"stsd",value:function(ue){return ue.type==="audio"?ue.codec==="mp3"?Gt.box(Gt.types.stsd,Gt.constants.STSD_PREFIX,Gt.mp3(ue)):Gt.box(Gt.types.stsd,Gt.constants.STSD_PREFIX,Gt.mp4a(ue)):Gt.box(Gt.types.stsd,Gt.constants.STSD_PREFIX,Gt.avc1(ue))}},{key:"mp3",value:function(ue){var Ee=ue.channelCount,je=ue.audioSampleRate,Ve=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Ee,0,16,0,0,0,0,je>>>8&255,je&255,0,0]);return Gt.box(Gt.types[".mp3"],Ve)}},{key:"mp4a",value:function(ue){var Ee=ue.channelCount,je=ue.audioSampleRate,Ve=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Ee,0,16,0,0,0,0,je>>>8&255,je&255,0,0]);return Gt.box(Gt.types.mp4a,Ve,Gt.esds(ue))}},{key:"esds",value:function(ue){var Ee=ue.config||[],je=Ee.length,Ve=new Uint8Array([0,0,0,0,3,23+je,0,1,0,4,15+je,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([je]).concat(Ee).concat([6,1,2]));return Gt.box(Gt.types.esds,Ve)}},{key:"avc1",value:function(ue){var Ee=ue.avcc,je=ue.codecWidth,Ve=ue.codecHeight,$e=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,je>>>8&255,je&255,Ve>>>8&255,Ve&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return Gt.box(Gt.types.avc1,$e,Gt.box(Gt.types.avcC,Ee))}},{key:"mvex",value:function(ue){return Gt.box(Gt.types.mvex,Gt.trex(ue))}},{key:"trex",value:function(ue){var Ee=ue.id,je=new Uint8Array([0,0,0,0,Ee>>>24&255,Ee>>>16&255,Ee>>>8&255,Ee&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return Gt.box(Gt.types.trex,je)}},{key:"moof",value:function(ue,Ee){return Gt.box(Gt.types.moof,Gt.mfhd(ue.sequenceNumber),Gt.traf(ue,Ee))}},{key:"mfhd",value:function(ue){var Ee=new Uint8Array([0,0,0,0,ue>>>24&255,ue>>>16&255,ue>>>8&255,ue&255]);return Gt.box(Gt.types.mfhd,Ee)}},{key:"traf",value:function(ue,Ee){var je=ue.id,Ve=Gt.box(Gt.types.tfhd,new Uint8Array([0,0,0,0,je>>>24&255,je>>>16&255,je>>>8&255,je&255])),$e=Gt.box(Gt.types.tfdt,new Uint8Array([0,0,0,0,Ee>>>24&255,Ee>>>16&255,Ee>>>8&255,Ee&255])),wt=Gt.sdtp(ue),qt=Gt.trun(ue,wt.byteLength+16+16+8+16+8+8);return Gt.box(Gt.types.traf,Ve,$e,qt,wt)}},{key:"sdtp",value:function(ue){for(var Ee=ue.samples||[],je=Ee.length,Ve=new Uint8Array(4+je),$e=0;$e<je;$e++){var wt=Ee[$e].flags;Ve[$e+4]=wt.isLeading<<6|wt.dependsOn<<4|wt.isDependedOn<<2|wt.hasRedundancy}return Gt.box(Gt.types.sdtp,Ve)}},{key:"trun",value:function(ue,Ee){var je=ue.samples||[],Ve=je.length,$e=12+16*Ve,wt=new Uint8Array($e);Ee+=8+$e,wt.set([0,0,15,1,Ve>>>24&255,Ve>>>16&255,Ve>>>8&255,Ve&255,Ee>>>24&255,Ee>>>16&255,Ee>>>8&255,Ee&255],0);for(var qt=0;qt<Ve;qt++){var Mr=je[qt].duration,an=je[qt].size,_t=je[qt].flags,at=je[qt].cts;wt.set([Mr>>>24&255,Mr>>>16&255,Mr>>>8&255,Mr&255,an>>>24&255,an>>>16&255,an>>>8&255,an&255,_t.isLeading<<2|_t.dependsOn,_t.isDependedOn<<6|_t.hasRedundancy<<4|_t.isNonSync,0,0,at>>>24&255,at>>>16&255,at>>>8&255,at&255],12+16*qt)}return Gt.box(Gt.types.trun,wt)}},{key:"mdat",value:function(ue){return Gt.box(Gt.types.mdat,ue)}}]),Gt}();Te.init();var tt=Te,ze=function(){function Gt(){Object(O.a)(this,Gt)}return Object(x.a)(Gt,null,[{key:"getSilentFrame",value:function(ue,Ee){if(ue==="mp4a.40.2"){if(Ee===1)return new Uint8Array([0,200,0,128,35,128]);if(Ee===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(Ee===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(Ee===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(Ee===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(Ee===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])}else{if(Ee===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(Ee===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(Ee===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])}return null}}]),Gt}(),dt=ze,Ot=function Gt(st,ue,Ee,je,Ve){Object(O.a)(this,Gt),this.dts=st,this.pts=ue,this.duration=Ee,this.originalDts=je,this.isSyncPoint=Ve,this.fileposition=null},Tt=function(){function Gt(){Object(O.a)(this,Gt),this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return Object(x.a)(Gt,[{key:"appendSyncPoint",value:function(ue){ue.isSyncPoint=!0,this.syncPoints.push(ue)}}]),Gt}(),Ct=function(){function Gt(){Object(O.a)(this,Gt),this._list=[]}return Object(x.a)(Gt,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(ue){var Ee=this._list;if(ue.length===0)return;Ee.length>0&&ue[0].originalDts<Ee[Ee.length-1].originalDts&&this.clear(),Array.prototype.push.apply(Ee,ue)}},{key:"getLastSyncPointBeforeDts",value:function(ue){if(this._list.length==0)return null;var Ee=this._list,je=0,Ve=Ee.length-1,$e=0,wt=0,qt=Ve;for(ue<Ee[0].dts&&(je=0,wt=qt+1);wt<=qt;)if($e=wt+Math.floor((qt-wt)/2),$e===Ve||ue>=Ee[$e].dts&&ue<Ee[$e+1].dts){je=$e;break}else Ee[$e].dts<ue?wt=$e+1:qt=$e-1;return this._list[je]}}]),Gt}(),Nt=function(){function Gt(st){Object(O.a)(this,Gt),this._type=st,this._list=[],this._lastAppendLocation=-1}return Object(x.a)(Gt,[{key:"isEmpty",value:function(){return this._list.length===0}},{key:"clear",value:function(){this._list=[],this._lastAppendLocation=-1}},{key:"_searchNearestSegmentBefore",value:function(ue){var Ee=this._list;if(Ee.length===0)return-2;var je=Ee.length-1,Ve=0,$e=0,wt=je,qt=0;if(ue<Ee[0].originalBeginDts)return qt=-1,qt;for(;$e<=wt;)if(Ve=$e+Math.floor((wt-$e)/2),Ve===je||ue>Ee[Ve].lastSample.originalDts&&ue<Ee[Ve+1].originalBeginDts){qt=Ve;break}else Ee[Ve].originalBeginDts<ue?$e=Ve+1:wt=Ve-1;return qt}},{key:"_searchNearestSegmentAfter",value:function(ue){return this._searchNearestSegmentBefore(ue)+1}},{key:"append",value:function(ue){var Ee=this._list,je=ue,Ve=this._lastAppendLocation,$e=0;Ve!==-1&&Ve<Ee.length&&je.originalBeginDts>=Ee[Ve].lastSample.originalDts&&(Ve===Ee.length-1||Ve<Ee.length-1&&je.originalBeginDts<Ee[Ve+1].originalBeginDts)?$e=Ve+1:Ee.length>0&&($e=this._searchNearestSegmentBefore(je.originalBeginDts)+1),this._lastAppendLocation=$e,this._list.splice($e,0,je)}},{key:"getLastSegmentBefore",value:function(ue){var Ee=this._searchNearestSegmentBefore(ue);return Ee>=0?this._list[Ee]:null}},{key:"getLastSampleBefore",value:function(ue){var Ee=this.getLastSegmentBefore(ue);return Ee!=null?Ee.lastSample:null}},{key:"getLastSyncPointBefore",value:function(ue){for(var Ee=this._searchNearestSegmentBefore(ue),je=this._list[Ee].syncPoints;je.length===0&&Ee>0;)Ee--,je=this._list[Ee].syncPoints;return je.length>0?je[je.length-1]:null}},{key:"type",get:function(){return this._type}},{key:"length",get:function(){return this._list.length}}]),Gt}(),Be=function(){function Gt(st){Object(O.a)(this,Gt),this.TAG="MP4Remuxer",this._config=st,this._isLive=st.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=Infinity,this._videoDtsBase=Infinity,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Nt("audio"),this._videoSegmentInfoList=new Nt("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(C.chrome&&(C.version.major<50||C.version.major===50&&C.version.build<2661)),this._fillSilentAfterSeek=C.msedge||C.msie,this._mp3UseMpegAudio=!C.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(x.a)(Gt,[{key:"destroy",value:function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}},{key:"bindDataSource",value:function(ue){return ue.onDataAvailable=this.remux.bind(this),ue.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(ue){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(ue,Ee){if(!this._onMediaSegment)throw new s("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(ue,Ee),this._remuxVideo(Ee),this._remuxAudio(ue)}},{key:"_onTrackMetadataReceived",value:function(ue,Ee){var je=null,Ve="mp4",$e=Ee.codec;if(ue==="audio")this._audioMeta=Ee,Ee.codec==="mp3"&&this._mp3UseMpegAudio?(Ve="mpeg",$e="",je=new Uint8Array):je=tt.generateInitSegment(Ee);else if(ue==="video")this._videoMeta=Ee,je=tt.generateInitSegment(Ee);else return;if(!this._onInitSegment)throw new s("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(ue,{type:ue,data:je.buffer,codec:$e,container:"".concat(ue,"/").concat(Ve),mediaDuration:Ee.duration})}},{key:"_calculateDtsBase",value:function(ue,Ee){if(this._dtsBaseInited)return;ue.samples&&ue.samples.length&&(this._audioDtsBase=ue.samples[0].dts),Ee.samples&&Ee.samples.length&&(this._videoDtsBase=Ee.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var ue=this._videoStashedLastSample,Ee=this._audioStashedLastSample,je={type:"video",id:1,sequenceNumber:0,samples:[],length:0};ue!=null&&(je.samples.push(ue),je.length=ue.length);var Ve={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};Ee!=null&&(Ve.samples.push(Ee),Ve.length=Ee.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(je,!0),this._remuxAudio(Ve,!0)}},{key:"_remuxAudio",value:function(ue,Ee){if(this._audioMeta==null)return;var je=ue,Ve=je.samples,$e=void 0,wt=-1,qt=-1,Mr=-1,an=this._audioMeta.refSampleDuration,_t=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,at=this._dtsBaseInited&&this._audioNextDts===void 0,bt=!1;if(!Ve||Ve.length===0)return;if(Ve.length===1&&!Ee)return;var kt=0,Pt=null,Et=0;_t?(kt=0,Et=je.length):(kt=8,Et=8+je.length);var Ht=null;if(Ve.length>1&&(Ht=Ve.pop(),Et-=Ht.length),this._audioStashedLastSample!=null){var ot=this._audioStashedLastSample;this._audioStashedLastSample=null,Ve.unshift(ot),Et+=ot.length}Ht!=null&&(this._audioStashedLastSample=Ht);var Mt=Ve[0].dts-this._dtsBase;if(this._audioNextDts)$e=Mt-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())$e=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(bt=!0));else{var xr=this._audioSegmentInfoList.getLastSampleBefore(Mt);if(xr!=null){var ur=Mt-(xr.originalDts+xr.duration);ur<=3&&(ur=0);var gr=xr.dts+xr.duration+ur;$e=Mt-gr}else $e=0}if(bt){var Qr=Mt-$e,ln=this._videoSegmentInfoList.getLastSegmentBefore(Mt);if(ln!=null&&ln.beginDts<Qr){var _n=dt.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(_n){var Mn=ln.beginDts,li=Qr-ln.beginDts;c.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(Mn,", duration: ").concat(li)),Ve.unshift({unit:_n,dts:Mn,pts:Mn}),Et+=_n.byteLength}}else bt=!1}for(var ai=[],pi=0;pi<Ve.length;pi++){var Oi=Ve[pi],Ze=Oi.unit,be=Oi.dts-this._dtsBase,Ne=be-$e;wt===-1&&(wt=Ne);var Ue=0;if(pi!==Ve.length-1){var Qe=Ve[pi+1].dts-this._dtsBase-$e;Ue=Qe-Ne}else if(Ht!=null){var Xe=Ht.dts-this._dtsBase-$e;Ue=Xe-Ne}else ai.length>=1?Ue=ai[ai.length-1].duration:Ue=Math.floor(an);var qe=!1,yt=null;if(Ue>an*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!C.safari){qe=!0;var ht=Math.abs(Ue-an),Jt=Math.ceil(ht/an),kr=Ne+an;c.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
|
`+"dts: ".concat(Ne+Ue," ms, expected: ").concat(Ne+Math.round(an)," ms, ")+"delta: ".concat(Math.round(ht)," ms, generate: ").concat(Jt," frames"));var _r=dt.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);_r==null&&(c.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),_r=Ze),yt=[];for(var Xr=0;Xr<Jt;Xr++){var Bt=Math.round(kr);if(yt.length>0){var gn=yt[yt.length-1];gn.duration=Bt-gn.dts}var hr={dts:Bt,pts:Bt,cts:0,unit:_r,size:_r.byteLength,duration:0,originalDts:be,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};yt.push(hr),Et+=hr.size,kr+=an}var vn=yt[yt.length-1];vn.duration=Ne+Ue-vn.dts,Ue=Math.round(an)}ai.push({dts:Ne,pts:Ne,cts:0,unit:Oi.unit,size:Oi.unit.byteLength,duration:Ue,originalDts:be,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),qe&&ai.push.apply(ai,yt)}_t?Pt=new Uint8Array(Et):(Pt=new Uint8Array(Et),Pt[0]=Et>>>24&255,Pt[1]=Et>>>16&255,Pt[2]=Et>>>8&255,Pt[3]=Et&255,Pt.set(tt.types.mdat,4));for(var en=0;en<ai.length;en++){var Dt=ai[en].unit;Pt.set(Dt,kt),kt+=Dt.byteLength}var jr=ai[ai.length-1];qt=jr.dts+jr.duration,this._audioNextDts=qt;var un=new Tt;un.beginDts=wt,un.endDts=qt,un.beginPts=wt,un.endPts=qt,un.originalBeginDts=ai[0].originalDts,un.originalEndDts=jr.originalDts+jr.duration,un.firstSample=new Ot(ai[0].dts,ai[0].pts,ai[0].duration,ai[0].originalDts,!1),un.lastSample=new Ot(jr.dts,jr.pts,jr.duration,jr.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(un),je.samples=ai,je.sequenceNumber++;var Hr=null;_t?Hr=new Uint8Array:Hr=tt.moof(je,wt),je.samples=[],je.length=0;var Wt={type:"audio",data:this._mergeBoxes(Hr,Pt).buffer,sampleCount:ai.length,info:un};_t&&at&&(Wt.timestampOffset=wt),this._onMediaSegment("audio",Wt)}},{key:"_remuxVideo",value:function(ue,Ee){if(this._videoMeta==null)return;var je=ue,Ve=je.samples,$e=void 0,wt=-1,qt=-1,Mr=-1,an=-1;if(!Ve||Ve.length===0)return;if(Ve.length===1&&!Ee)return;var _t=8,at=null,bt=8+ue.length,kt=null;if(Ve.length>1&&(kt=Ve.pop(),bt-=kt.length),this._videoStashedLastSample!=null){var Pt=this._videoStashedLastSample;this._videoStashedLastSample=null,Ve.unshift(Pt),bt+=Pt.length}kt!=null&&(this._videoStashedLastSample=kt);var Et=Ve[0].dts-this._dtsBase;if(this._videoNextDts)$e=Et-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())$e=0;else{var Ht=this._videoSegmentInfoList.getLastSampleBefore(Et);if(Ht!=null){var ot=Et-(Ht.originalDts+Ht.duration);ot<=3&&(ot=0);var Mt=Ht.dts+Ht.duration+ot;$e=Et-Mt}else $e=0}for(var xr=new Tt,ur=[],gr=0;gr<Ve.length;gr++){var Qr=Ve[gr],ln=Qr.dts-this._dtsBase,_n=Qr.isKeyframe,Mn=ln-$e,li=Qr.cts,ai=Mn+li;wt===-1&&(wt=Mn,Mr=ai);var pi=0;if(gr!==Ve.length-1){var Oi=Ve[gr+1].dts-this._dtsBase-$e;pi=Oi-Mn}else if(kt!=null){var Ze=kt.dts-this._dtsBase-$e;pi=Ze-Mn}else ur.length>=1?pi=ur[ur.length-1].duration:pi=Math.floor(this._videoMeta.refSampleDuration);if(_n){var be=new Ot(Mn,ai,pi,Qr.dts,!0);be.fileposition=Qr.fileposition,xr.appendSyncPoint(be)}ur.push({dts:Mn,pts:ai,cts:li,units:Qr.units,size:Qr.length,isKeyframe:_n,duration:pi,originalDts:ln,flags:{isLeading:0,dependsOn:_n?2:1,isDependedOn:_n?1:0,hasRedundancy:0,isNonSync:_n?0:1}})}at=new Uint8Array(bt),at[0]=bt>>>24&255,at[1]=bt>>>16&255,at[2]=bt>>>8&255,at[3]=bt&255,at.set(tt.types.mdat,4);for(var Ne=0;Ne<ur.length;Ne++)for(var Ue=ur[Ne].units;Ue.length;){var Qe=Ue.shift(),Xe=Qe.data;at.set(Xe,_t),_t+=Xe.byteLength}var qe=ur[ur.length-1];if(qt=qe.dts+qe.duration,an=qe.pts+qe.duration,this._videoNextDts=qt,xr.beginDts=wt,xr.endDts=qt,xr.beginPts=Mr,xr.endPts=an,xr.originalBeginDts=ur[0].originalDts,xr.originalEndDts=qe.originalDts+qe.duration,xr.firstSample=new Ot(ur[0].dts,ur[0].pts,ur[0].duration,ur[0].originalDts,ur[0].isKeyframe),xr.lastSample=new Ot(qe.dts,qe.pts,qe.duration,qe.originalDts,qe.isKeyframe),this._isLive||this._videoSegmentInfoList.append(xr),je.samples=ur,je.sequenceNumber++,this._forceFirstIDR){var yt=ur[0].flags;yt.dependsOn=2,yt.isNonSync=0}var ht=tt.moof(je,wt);je.samples=[],je.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(ht,at).buffer,sampleCount:ur.length,info:xr})}},{key:"_mergeBoxes",value:function(ue,Ee){var je=new Uint8Array(ue.byteLength+Ee.byteLength);return je.set(ue,0),je.set(Ee,ue.byteLength),je}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(ue){this._onInitSegment=ue}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(ue){this._onMediaSegment=ue}}]),Gt}(),$=Be,Z={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"},Re=Z,De=function(){function Gt(st,ue){Object(O.a)(this,Gt),this.TAG="TransmuxingController",this._emitter=new m.a,this._config=ue,st.segments||(st.segments=[{duration:st.duration,filesize:st.filesize,url:st.url}]),typeof st.cors!="boolean"&&(st.cors=!0),typeof st.withCredentials!="boolean"&&(st.withCredentials=!1),this._mediaDataSource=st,this._currentSegmentIndex=0;var Ee=0;this._mediaDataSource.segments.forEach(function(je){je.timestampBase=Ee,Ee+=je.duration,je.cors=st.cors,je.withCredentials=st.withCredentials,ue.referrerPolicy&&(je.referrerPolicy=ue.referrerPolicy)}),!isNaN(Ee)&&this._mediaDataSource.duration!==Ee&&(this._mediaDataSource.duration=Ee),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return Object(x.a)(Gt,[{key:"destroy",value:function(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(ue,Ee){this._emitter.addListener(ue,Ee)}},{key:"off",value:function(ue,Ee){this._emitter.removeListener(ue,Ee)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(ue,Ee){this._currentSegmentIndex=ue;var je=this._mediaDataSource.segments[ue],Ve=this._ioctl=new z(je,this._config,ue);Ve.onError=this._onIOException.bind(this),Ve.onSeeked=this._onIOSeeked.bind(this),Ve.onComplete=this._onIOComplete.bind(this),Ve.onRedirect=this._onIORedirect.bind(this),Ve.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),Ee?this._demuxer.bindDataSource(this._ioctl):Ve.onDataArrival=this._onInitChunkArrival.bind(this),Ve.open(Ee)}},{key:"stop",value:function(){this._internalAbort(),this._disableStatisticsReporter()}},{key:"_internalAbort",value:function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}},{key:"pause",value:function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}},{key:"resume",value:function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}},{key:"seek",value:function(ue){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;var Ee=this._searchSegmentIndexContains(ue);if(Ee===this._currentSegmentIndex){var je=this._mediaInfo.segments[Ee];if(je==null)this._pendingSeekTime=ue;else{var Ve=je.getNearestKeyframe(ue);this._remuxer.seek(Ve.milliseconds),this._ioctl.seek(Ve.fileposition),this._pendingResolveSeekPoint=Ve.milliseconds}}else{var $e=this._mediaInfo.segments[Ee];if($e==null)this._pendingSeekTime=ue,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(Ee);else{var wt=$e.getNearestKeyframe(ue);this._internalAbort(),this._remuxer.seek(ue),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[Ee].timestampBase,this._loadSegment(Ee,wt.fileposition),this._pendingResolveSeekPoint=wt.milliseconds,this._reportSegmentMediaInfo(Ee)}}this._enableStatisticsReporter()}},{key:"_searchSegmentIndexContains",value:function(ue){for(var Ee=this._mediaDataSource.segments,je=Ee.length-1,Ve=0;Ve<Ee.length;Ve++)if(ue<Ee[Ve].timestampBase){je=Ve-1;break}return je}},{key:"_onInitChunkArrival",value:function(ue,Ee){var je=this,Ve=null,$e=0;if(Ee>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,$e=this._demuxer.parseChunks(ue,Ee);else if((Ve=et.probe(ue)).match){this._demuxer=new et(Ve,this._config),this._remuxer||(this._remuxer=new $(this._config));var wt=this._mediaDataSource;wt.duration!=null&&!isNaN(wt.duration)&&(this._demuxer.overridedDuration=wt.duration),typeof wt.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=wt.hasAudio),typeof wt.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=wt.hasVideo),this._demuxer.timestampBase=wt.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),$e=this._demuxer.parseChunks(ue,Ee)}else Ve=null,c.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){je._internalAbort()}),this._emitter.emit(Re.DEMUX_ERROR,oe.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),$e=0;return $e}},{key:"_onMediaInfo",value:function(ue){var Ee=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},ue),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Pe.prototype));var je=Object.assign({},ue);Object.setPrototypeOf(je,Pe.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=je,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var Ve=Ee._pendingSeekTime;Ee._pendingSeekTime=null,Ee.seek(Ve)})}},{key:"_onMetaDataArrived",value:function(ue){this._emitter.emit(Re.METADATA_ARRIVED,ue)}},{key:"_onScriptDataArrived",value:function(ue){this._emitter.emit(Re.SCRIPTDATA_ARRIVED,ue)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(ue){var Ee=ue,je=Ee+1;je<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(je)):(this._remuxer.flushStashedSamples(),this._emitter.emit(Re.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(ue){var Ee=this._ioctl.extraData;this._mediaDataSource.segments[Ee].redirectedURL=ue}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(Re.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(ue,Ee){c.e(this.TAG,"IOException: type = ".concat(ue,", code = ").concat(Ee.code,", msg = ").concat(Ee.msg)),this._emitter.emit(Re.IO_ERROR,ue,Ee),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(ue,Ee){c.e(this.TAG,"DemuxException: type = ".concat(ue,", info = ").concat(Ee)),this._emitter.emit(Re.DEMUX_ERROR,ue,Ee)}},{key:"_onRemuxerInitSegmentArrival",value:function(ue,Ee){this._emitter.emit(Re.INIT_SEGMENT,ue,Ee)}},{key:"_onRemuxerMediaSegmentArrival",value:function(ue,Ee){if(this._pendingSeekTime!=null)return;if(this._emitter.emit(Re.MEDIA_SEGMENT,ue,Ee),this._pendingResolveSeekPoint!=null&&ue==="video"){var je=Ee.info.syncPoints,Ve=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,C.safari&&je.length>0&&je[0].originalDts===Ve&&(Ve=je[0].pts),this._emitter.emit(Re.RECOMMEND_SEEKPOINT,Ve)}}},{key:"_enableStatisticsReporter",value:function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}},{key:"_disableStatisticsReporter",value:function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"_reportSegmentMediaInfo",value:function(ue){var Ee=this._mediaInfo.segments[ue],je=Object.assign({},Ee);je.duration=this._mediaInfo.duration,je.segmentCount=this._mediaInfo.segmentCount,delete je.segments,delete je.keyframesIndex,this._emitter.emit(Re.MEDIA_INFO,je)}},{key:"_reportStatisticsInfo",value:function(){var ue={};ue.url=this._ioctl.currentURL,ue.hasRedirect=this._ioctl.hasRedirect,ue.hasRedirect&&(ue.redirectedURL=this._ioctl.currentRedirectedURL),ue.speed=this._ioctl.currentSpeed,ue.loaderType=this._ioctl.loaderType,ue.currentSegmentIndex=this._currentSegmentIndex,ue.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Re.STATISTICS_INFO,ue)}}]),Gt}(),ae=De,gt=function(st){var ue="TransmuxingWorker",Ee=null,je=Et.bind(this);v.install(),st.addEventListener("message",function(Ht){switch(Ht.data.cmd){case"init":Ee=new ae(Ht.data.param[0],Ht.data.param[1]),Ee.on(Re.IO_ERROR,bt.bind(this)),Ee.on(Re.DEMUX_ERROR,kt.bind(this)),Ee.on(Re.INIT_SEGMENT,Ve.bind(this)),Ee.on(Re.MEDIA_SEGMENT,$e.bind(this)),Ee.on(Re.LOADING_COMPLETE,wt.bind(this)),Ee.on(Re.RECOVERED_EARLY_EOF,qt.bind(this)),Ee.on(Re.MEDIA_INFO,Mr.bind(this)),Ee.on(Re.METADATA_ARRIVED,an.bind(this)),Ee.on(Re.SCRIPTDATA_ARRIVED,_t.bind(this)),Ee.on(Re.STATISTICS_INFO,at.bind(this)),Ee.on(Re.RECOMMEND_SEEKPOINT,Pt.bind(this));break;case"destroy":Ee&&(Ee.destroy(),Ee=null),st.postMessage({msg:"destroyed"});break;case"start":Ee.start();break;case"stop":Ee.stop();break;case"seek":Ee.seek(Ht.data.param);break;case"pause":Ee.pause();break;case"resume":Ee.resume();break;case"logging_config":{var ot=Ht.data.param;He.applyConfig(ot),ot.enableCallback===!0?He.addLogListener(je):He.removeLogListener(je);break}}});function Ve(Ht,ot){var Mt={msg:Re.INIT_SEGMENT,data:{type:Ht,data:ot}};st.postMessage(Mt,[ot.data])}function $e(Ht,ot){var Mt={msg:Re.MEDIA_SEGMENT,data:{type:Ht,data:ot}};st.postMessage(Mt,[ot.data])}function wt(){var Ht={msg:Re.LOADING_COMPLETE};st.postMessage(Ht)}function qt(){var Ht={msg:Re.RECOVERED_EARLY_EOF};st.postMessage(Ht)}function Mr(Ht){var ot={msg:Re.MEDIA_INFO,data:Ht};st.postMessage(ot)}function an(Ht){var ot={msg:Re.METADATA_ARRIVED,data:Ht};st.postMessage(ot)}function _t(Ht){var ot={msg:Re.SCRIPTDATA_ARRIVED,data:Ht};st.postMessage(ot)}function at(Ht){var ot={msg:Re.STATISTICS_INFO,data:Ht};st.postMessage(ot)}function bt(Ht,ot){st.postMessage({msg:Re.IO_ERROR,data:{type:Ht,info:ot}})}function kt(Ht,ot){st.postMessage({msg:Re.DEMUX_ERROR,data:{type:Ht,info:ot}})}function Pt(Ht){st.postMessage({msg:Re.RECOMMEND_SEEKPOINT,data:Ht})}function Et(Ht,ot){st.postMessage({msg:"logcat_callback",data:{type:Ht,logcat:ot}})}},jt=gt,ut=function(){function Gt(st,ue){if(Object(O.a)(this,Gt),this.TAG="Transmuxer",this._emitter=new m.a,ue.enableWorker&&typeof Worker!="undefined")try{var Ee=d("0r65");this._worker=Ee(jt),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[st,ue]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},He.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:He.getConfig()})}catch(Ve){c.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new ae(st,ue)}else this._controller=new ae(st,ue);if(this._controller){var je=this._controller;je.on(Re.IO_ERROR,this._onIOError.bind(this)),je.on(Re.DEMUX_ERROR,this._onDemuxError.bind(this)),je.on(Re.INIT_SEGMENT,this._onInitSegment.bind(this)),je.on(Re.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),je.on(Re.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),je.on(Re.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),je.on(Re.MEDIA_INFO,this._onMediaInfo.bind(this)),je.on(Re.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),je.on(Re.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),je.on(Re.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),je.on(Re.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(x.a)(Gt,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),He.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(ue,Ee){this._emitter.addListener(ue,Ee)}},{key:"off",value:function(ue,Ee){this._emitter.removeListener(ue,Ee)}},{key:"hasWorker",value:function(){return this._worker!=null}},{key:"open",value:function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}},{key:"close",value:function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}},{key:"seek",value:function(ue){this._worker?this._worker.postMessage({cmd:"seek",param:ue}):this._controller.seek(ue)}},{key:"pause",value:function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}},{key:"resume",value:function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}},{key:"_onInitSegment",value:function(ue,Ee){var je=this;Promise.resolve().then(function(){je._emitter.emit(Re.INIT_SEGMENT,ue,Ee)})}},{key:"_onMediaSegment",value:function(ue,Ee){var je=this;Promise.resolve().then(function(){je._emitter.emit(Re.MEDIA_SEGMENT,ue,Ee)})}},{key:"_onLoadingComplete",value:function(){var ue=this;Promise.resolve().then(function(){ue._emitter.emit(Re.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var ue=this;Promise.resolve().then(function(){ue._emitter.emit(Re.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(ue){var Ee=this;Promise.resolve().then(function(){Ee._emitter.emit(Re.MEDIA_INFO,ue)})}},{key:"_onMetaDataArrived",value:function(ue){var Ee=this;Promise.resolve().then(function(){Ee._emitter.emit(Re.METADATA_ARRIVED,ue)})}},{key:"_onScriptDataArrived",value:function(ue){var Ee=this;Promise.resolve().then(function(){Ee._emitter.emit(Re.SCRIPTDATA_ARRIVED,ue)})}},{key:"_onStatisticsInfo",value:function(ue){var Ee=this;Promise.resolve().then(function(){Ee._emitter.emit(Re.STATISTICS_INFO,ue)})}},{key:"_onIOError",value:function(ue,Ee){var je=this;Promise.resolve().then(function(){je._emitter.emit(Re.IO_ERROR,ue,Ee)})}},{key:"_onDemuxError",value:function(ue,Ee){var je=this;Promise.resolve().then(function(){je._emitter.emit(Re.DEMUX_ERROR,ue,Ee)})}},{key:"_onRecommendSeekpoint",value:function(ue){var Ee=this;Promise.resolve().then(function(){Ee._emitter.emit(Re.RECOMMEND_SEEKPOINT,ue)})}},{key:"_onLoggingConfigChanged",value:function(ue){this._worker&&this._worker.postMessage({cmd:"logging_config",param:ue})}},{key:"_onWorkerMessage",value:function(ue){var Ee=ue.data,je=Ee.data;if(Ee.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(Ee.msg){case Re.INIT_SEGMENT:case Re.MEDIA_SEGMENT:this._emitter.emit(Ee.msg,je.type,je.data);break;case Re.LOADING_COMPLETE:case Re.RECOVERED_EARLY_EOF:this._emitter.emit(Ee.msg);break;case Re.MEDIA_INFO:Object.setPrototypeOf(je,Pe.prototype),this._emitter.emit(Ee.msg,je);break;case Re.METADATA_ARRIVED:case Re.SCRIPTDATA_ARRIVED:case Re.STATISTICS_INFO:this._emitter.emit(Ee.msg,je);break;case Re.IO_ERROR:case Re.DEMUX_ERROR:this._emitter.emit(Ee.msg,je.type,je.info);break;case Re.RECOMMEND_SEEKPOINT:this._emitter.emit(Ee.msg,je);break;case"logcat_callback":c.emitter.emit("log",je.type,je.logcat);break;default:break}}}]),Gt}(),rr=ut,pr={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},nn=pr,mr=function(){function Gt(st){Object(O.a)(this,Gt),this.TAG="MSEController",this._config=st,this._emitter=new m.a,this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new Ct}return Object(x.a)(Gt,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(ue,Ee){this._emitter.addListener(ue,Ee)}},{key:"off",value:function(ue,Ee){this._emitter.removeListener(ue,Ee)}},{key:"attachMediaElement",value:function(ue){if(this._mediaSource)throw new s("MediaSource has been attached to an HTMLMediaElement!");var Ee=this._mediaSource=new window.MediaSource;Ee.addEventListener("sourceopen",this.e.onSourceOpen),Ee.addEventListener("sourceended",this.e.onSourceEnded),Ee.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=ue,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),ue.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var ue=this._mediaSource;for(var Ee in this._sourceBuffers){var je=this._pendingSegments[Ee];je.splice(0,je.length),this._pendingSegments[Ee]=null,this._pendingRemoveRanges[Ee]=null,this._lastInitSegments[Ee]=null;var Ve=this._sourceBuffers[Ee];if(Ve){if(ue.readyState!=="closed"){try{ue.removeSourceBuffer(Ve)}catch($e){c.e(this.TAG,$e.message)}Ve.removeEventListener("error",this.e.onSourceBufferError),Ve.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[Ee]=null,this._sourceBuffers[Ee]=null}}if(ue.readyState==="open")try{ue.endOfStream()}catch($e){c.e(this.TAG,$e.message)}ue.removeEventListener("sourceopen",this.e.onSourceOpen),ue.removeEventListener("sourceended",this.e.onSourceEnded),ue.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}},{key:"appendInitSegment",value:function(ue,Ee){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(ue),this._pendingSegments[ue.type].push(ue);return}var je=ue,Ve="".concat(je.container);je.codec&&je.codec.length>0&&(Ve+=";codecs=".concat(je.codec));var $e=!1;if(c.v(this.TAG,"Received Initialization Segment, mimeType: "+Ve),this._lastInitSegments[je.type]=je,Ve!==this._mimeTypes[je.type]){if(this._mimeTypes[je.type])c.v(this.TAG,"Notice: ".concat(je.type," mimeType changed, origin: ").concat(this._mimeTypes[je.type],", target: ").concat(Ve));else{$e=!0;try{var wt=this._sourceBuffers[je.type]=this._mediaSource.addSourceBuffer(Ve);wt.addEventListener("error",this.e.onSourceBufferError),wt.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(qt){c.e(this.TAG,qt.message),this._emitter.emit(nn.ERROR,{code:qt.code,msg:qt.message});return}}this._mimeTypes[je.type]=Ve}Ee||this._pendingSegments[je.type].push(je),$e||this._sourceBuffers[je.type]&&!this._sourceBuffers[je.type].updating&&this._doAppendSegments(),C.safari&&je.container==="audio/mpeg"&&je.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=je.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(ue){var Ee=ue;this._pendingSegments[Ee.type].push(Ee),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var je=this._sourceBuffers[Ee.type];je&&!je.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(ue){for(var Ee in this._sourceBuffers){if(!this._sourceBuffers[Ee])continue;var je=this._sourceBuffers[Ee];if(this._mediaSource.readyState==="open")try{je.abort()}catch(an){c.e(this.TAG,an.message)}this._idrList.clear();var Ve=this._pendingSegments[Ee];if(Ve.splice(0,Ve.length),this._mediaSource.readyState==="closed")continue;for(var $e=0;$e<je.buffered.length;$e++){var wt=je.buffered.start($e),qt=je.buffered.end($e);this._pendingRemoveRanges[Ee].push({start:wt,end:qt})}if(je.updating||this._doRemoveRanges(),C.safari){var Mr=this._lastInitSegments[Ee];Mr&&(this._pendingSegments[Ee].push(Mr),je.updating||this._doAppendSegments())}}}},{key:"endOfStream",value:function(){var ue=this._mediaSource,Ee=this._sourceBuffers;if(!ue||ue.readyState!=="open"){ue&&ue.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}Ee.video&&Ee.video.updating||Ee.audio&&Ee.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,ue.endOfStream())}},{key:"getNearestKeyframe",value:function(ue){return this._idrList.getLastSyncPointBeforeDts(ue)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var ue=this._mediaElement.currentTime;for(var Ee in this._sourceBuffers){var je=this._sourceBuffers[Ee];if(je){var Ve=je.buffered;if(Ve.length>=1&&ue-Ve.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var ue=this._mediaElement.currentTime;for(var Ee in this._sourceBuffers){var je=this._sourceBuffers[Ee];if(je){for(var Ve=je.buffered,$e=!1,wt=0;wt<Ve.length;wt++){var qt=Ve.start(wt),Mr=Ve.end(wt);if(qt<=ue&&ue<Mr+3){if(ue-qt>=this._config.autoCleanupMaxBackwardDuration){$e=!0;var an=ue-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[Ee].push({start:qt,end:an})}}else Mr<ue&&($e=!0,this._pendingRemoveRanges[Ee].push({start:qt,end:Mr}))}$e&&!je.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var ue=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open")return;if(ue.video&&ue.video.updating||ue.audio&&ue.audio.updating)return;var Ee=this._mediaSource.duration,je=this._pendingMediaDuration;je>0&&(isNaN(Ee)||je>Ee)&&(c.v(this.TAG,"Update MediaSource duration from ".concat(Ee," to ").concat(je)),this._mediaSource.duration=je),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var ue in this._pendingRemoveRanges){if(!this._sourceBuffers[ue]||this._sourceBuffers[ue].updating)continue;for(var Ee=this._sourceBuffers[ue],je=this._pendingRemoveRanges[ue];je.length&&!Ee.updating;){var Ve=je.shift();Ee.remove(Ve.start,Ve.end)}}}},{key:"_doAppendSegments",value:function(){var ue=this._pendingSegments;for(var Ee in ue){if(!this._sourceBuffers[Ee]||this._sourceBuffers[Ee].updating)continue;if(ue[Ee].length>0){var je=ue[Ee].shift();if(je.timestampOffset){var Ve=this._sourceBuffers[Ee].timestampOffset,$e=je.timestampOffset/1e3,wt=Math.abs(Ve-$e);wt>.1&&(c.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(Ve," to ").concat($e)),this._sourceBuffers[Ee].timestampOffset=$e),delete je.timestampOffset}if(!je.data||je.data.byteLength===0)continue;try{this._sourceBuffers[Ee].appendBuffer(je.data),this._isBufferFull=!1,Ee==="video"&&je.hasOwnProperty("info")&&this._idrList.appendArray(je.info.syncPoints)}catch(qt){this._pendingSegments[Ee].unshift(je),qt.code===22?(this._isBufferFull||this._emitter.emit(nn.BUFFER_FULL),this._isBufferFull=!0):(c.e(this.TAG,qt.message),this._emitter.emit(nn.ERROR,{code:qt.code,msg:qt.message}))}}}}},{key:"_onSourceOpen",value:function(){if(c.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var ue=this._pendingSourceBufferInit;ue.length;){var Ee=ue.shift();this.appendInitSegment(Ee,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(nn.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){c.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){c.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}},{key:"_hasPendingSegments",value:function(){var ue=this._pendingSegments;return ue.video.length>0||ue.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var ue=this._pendingRemoveRanges;return ue.video.length>0||ue.audio.length>0}},{key:"_onSourceBufferUpdateEnd",value:function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(nn.UPDATE_END)}},{key:"_onSourceBufferError",value:function(ue){c.e(this.TAG,"SourceBuffer Error: ".concat(ue))}}]),Gt}(),vr=mr,$t={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Xt={NETWORK_EXCEPTION:u.EXCEPTION,NETWORK_STATUS_CODE_INVALID:u.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:u.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:u.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:oe.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:oe.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:oe.CODEC_UNSUPPORTED},ft=function(){function Gt(st,ue){if(Object(O.a)(this,Gt),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new m.a,this._config=ee(),typeof ue=="object"&&Object.assign(this._config,ue),st.type.toLowerCase()!=="flv")throw new t("FlvPlayer requires an flv MediaDataSource input!");st.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=st,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var Ee=C.chrome&&(C.version.major<50||C.version.major===50&&C.version.build<2661);this._alwaysSeekKeyframe=!!(Ee||C.msedge||C.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(x.a)(Gt,[{key:"destroy",value:function(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(ue,Ee){var je=this;ue===Ce.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){je._emitter.emit(Ce.MEDIA_INFO,je.mediaInfo)}):ue===Ce.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){je._emitter.emit(Ce.STATISTICS_INFO,je.statisticsInfo)})),this._emitter.addListener(ue,Ee)}},{key:"off",value:function(ue,Ee){this._emitter.removeListener(ue,Ee)}},{key:"attachMediaElement",value:function(ue){var Ee=this;if(this._mediaElement=ue,ue.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),ue.addEventListener("seeking",this.e.onvSeeking),ue.addEventListener("canplay",this.e.onvCanPlay),ue.addEventListener("stalled",this.e.onvStalled),ue.addEventListener("progress",this.e.onvProgress),this._msectl=new vr(this._config),this._msectl.on(nn.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(nn.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(nn.SOURCE_OPEN,function(){Ee._mseSourceOpened=!0,Ee._hasPendingLoad&&(Ee._hasPendingLoad=!1,Ee.load())}),this._msectl.on(nn.ERROR,function(je){Ee._emitter.emit(Ce.ERROR,$t.MEDIA_ERROR,Xt.MEDIA_MSE_ERROR,je)}),this._msectl.attachMediaElement(ue),this._pendingSeekTime!=null)try{ue.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(je){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}},{key:"load",value:function(){var ue=this;if(!this._mediaElement)throw new s("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new s("FlvPlayer.load() has been called, please call unload() first!");if(this._hasPendingLoad)return;if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new rr(this._mediaDataSource,this._config),this._transmuxer.on(Re.INIT_SEGMENT,function(Ee,je){ue._msectl.appendInitSegment(je)}),this._transmuxer.on(Re.MEDIA_SEGMENT,function(Ee,je){if(ue._msectl.appendMediaSegment(je),ue._config.lazyLoad&&!ue._config.isLive){var Ve=ue._mediaElement.currentTime;je.info.endDts>=(Ve+ue._config.lazyLoadMaxDuration)*1e3&&(ue._progressChecker==null&&(c.v(ue.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),ue._suspendTransmuxer()))}}),this._transmuxer.on(Re.LOADING_COMPLETE,function(){ue._msectl.endOfStream(),ue._emitter.emit(Ce.LOADING_COMPLETE)}),this._transmuxer.on(Re.RECOVERED_EARLY_EOF,function(){ue._emitter.emit(Ce.RECOVERED_EARLY_EOF)}),this._transmuxer.on(Re.IO_ERROR,function(Ee,je){ue._emitter.emit(Ce.ERROR,$t.NETWORK_ERROR,Ee,je)}),this._transmuxer.on(Re.DEMUX_ERROR,function(Ee,je){ue._emitter.emit(Ce.ERROR,$t.MEDIA_ERROR,Ee,{code:-1,msg:je})}),this._transmuxer.on(Re.MEDIA_INFO,function(Ee){ue._mediaInfo=Ee,ue._emitter.emit(Ce.MEDIA_INFO,Object.assign({},Ee))}),this._transmuxer.on(Re.METADATA_ARRIVED,function(Ee){ue._emitter.emit(Ce.METADATA_ARRIVED,Ee)}),this._transmuxer.on(Re.SCRIPTDATA_ARRIVED,function(Ee){ue._emitter.emit(Ce.SCRIPTDATA_ARRIVED,Ee)}),this._transmuxer.on(Re.STATISTICS_INFO,function(Ee){ue._statisticsInfo=ue._fillStatisticsInfo(Ee),ue._emitter.emit(Ce.STATISTICS_INFO,Object.assign({},ue._statisticsInfo))}),this._transmuxer.on(Re.RECOMMEND_SEEKPOINT,function(Ee){ue._mediaElement&&!ue._config.accurateSeek&&(ue._requestSetTime=!0,ue._mediaElement.currentTime=Ee/1e3)}),this._transmuxer.open()}},{key:"unload",value:function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"_fillStatisticsInfo",value:function(ue){if(ue.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return ue;var Ee=!0,je=0,Ve=0;if(this._mediaElement.getVideoPlaybackQuality){var $e=this._mediaElement.getVideoPlaybackQuality();je=$e.totalVideoFrames,Ve=$e.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(je=this._mediaElement.webkitDecodedFrameCount,Ve=this._mediaElement.webkitDroppedFrameCount):Ee=!1;return Ee&&(ue.decodedFrames=je,ue.droppedFrames=Ve),ue}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var ue=this._mediaElement.buffered,Ee=this._mediaElement.currentTime,je=0,Ve=0,$e=0;$e<ue.length;$e++){var wt=ue.start($e),qt=ue.end($e);if(wt<=Ee&&Ee<qt){je=wt,Ve=qt;break}}Ve>=Ee+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(c.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},{key:"_onmseBufferFull",value:function(){c.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}},{key:"_suspendTransmuxer",value:function(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}},{key:"_checkProgressAndResume",value:function(){for(var ue=this._mediaElement.currentTime,Ee=this._mediaElement.buffered,je=!1,Ve=0;Ve<Ee.length;Ve++){var $e=Ee.start(Ve),wt=Ee.end(Ve);if(ue>=$e&&ue<wt){ue>=wt-this._config.lazyLoadRecoverDuration&&(je=!0);break}}je&&(window.clearInterval(this._progressChecker),this._progressChecker=null,je&&(c.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(ue){for(var Ee=this._mediaElement.buffered,je=0;je<Ee.length;je++){var Ve=Ee.start(je),$e=Ee.end(je);if(ue>=Ve&&ue<$e)return!0}return!1}},{key:"_internalSeek",value:function(ue){var Ee=this._isTimepointBuffered(ue),je=!1,Ve=0;if(ue<1&&this._mediaElement.buffered.length>0){var $e=this._mediaElement.buffered.start(0);($e<1&&ue<$e||C.safari)&&(je=!0,Ve=C.safari?.1:$e)}if(je)this._requestSetTime=!0,this._mediaElement.currentTime=Ve;else if(Ee){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=ue;else{var wt=this._msectl.getNearestKeyframe(Math.floor(ue*1e3));this._requestSetTime=!0,wt!=null?this._mediaElement.currentTime=wt.dts/1e3:this._mediaElement.currentTime=ue}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(ue),this._transmuxer.seek(Math.floor(ue*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ue)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var ue=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(ue)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(ue),this._transmuxer.seek(Math.floor(ue*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ue))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(ue){var Ee=this._mediaElement;if(ue||!this._receivedCanPlay||Ee.readyState<2){var je=Ee.buffered;je.length>0&&Ee.currentTime<je.start(0)&&(c.w(this.TAG,"Playback seems stuck at ".concat(Ee.currentTime,", seek to ").concat(je.start(0))),this._requestSetTime=!0,this._mediaElement.currentTime=je.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}},{key:"_onvLoadedMetadata",value:function(ue){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(ue){var Ee=this._mediaElement.currentTime,je=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(Ee<1&&je.length>0){var Ve=je.start(0);if(Ve<1&&Ee<Ve||C.safari){this._requestSetTime=!0,this._mediaElement.currentTime=C.safari?.1:Ve;return}}if(this._isTimepointBuffered(Ee)){if(this._alwaysSeekKeyframe){var $e=this._msectl.getNearestKeyframe(Math.floor(Ee*1e3));$e!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=$e.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:Ee,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_onvCanPlay",value:function(ue){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(ue){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(ue){this._checkAndResumeStuckPlayback()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(ue){this._mediaElement.volume=ue}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(ue){this._mediaElement.muted=ue}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(ue){this._mediaElement?this._internalSeek(ue):this._pendingSeekTime=ue}},{key:"mediaInfo",get:function(){return Object.assign({},this._mediaInfo)}},{key:"statisticsInfo",get:function(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}}]),Gt}(),Ur=ft,yn=function(){function Gt(st,ue){if(Object(O.a)(this,Gt),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new m.a,this._config=ee(),typeof ue=="object"&&Object.assign(this._config,ue),st.type.toLowerCase()==="flv")throw new t("NativePlayer does't support flv MediaDataSource input!");if(st.hasOwnProperty("segments"))throw new t("NativePlayer(".concat(st.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=st,this._mediaElement=null}return Object(x.a)(Gt,[{key:"destroy",value:function(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(ue,Ee){var je=this;ue===Ce.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){je._emitter.emit(Ce.MEDIA_INFO,je.mediaInfo)}):ue===Ce.STATISTICS_INFO&&(this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){je._emitter.emit(Ce.STATISTICS_INFO,je.statisticsInfo)})),this._emitter.addListener(ue,Ee)}},{key:"off",value:function(ue,Ee){this._emitter.removeListener(ue,Ee)}},{key:"attachMediaElement",value:function(ue){if(this._mediaElement=ue,ue.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{ue.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Ee){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"load",value:function(){if(!this._mediaElement)throw new s("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}},{key:"unload",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"_onvLoadedMetadata",value:function(ue){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(Ce.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(Ce.STATISTICS_INFO,this.statisticsInfo)}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(ue){this._mediaElement.volume=ue}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(ue){this._mediaElement.muted=ue}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(ue){this._mediaElement?this._mediaElement.currentTime=ue:this._pendingSeekTime=ue}},{key:"mediaInfo",get:function(){var ue=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",Ee={mimeType:ue+this._mediaDataSource.type};return this._mediaElement&&(Ee.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(Ee.width=this._mediaElement.videoWidth,Ee.height=this._mediaElement.videoHeight)),Ee}},{key:"statisticsInfo",get:function(){var ue={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return ue;var Ee=!0,je=0,Ve=0;if(this._mediaElement.getVideoPlaybackQuality){var $e=this._mediaElement.getVideoPlaybackQuality();je=$e.totalVideoFrames,Ve=$e.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(je=this._mediaElement.webkitDecodedFrameCount,Ve=this._mediaElement.webkitDroppedFrameCount):Ee=!1;return Ee&&(ue.decodedFrames=je,ue.droppedFrames=Ve),ue}}]),Gt}(),Dn=yn;v.install();function Un(Gt,st){var ue=Gt;if(ue==null||typeof ue!="object")throw new t("MediaDataSource must be an javascript object!");if(!ue.hasOwnProperty("type"))throw new t("MediaDataSource must has type field to indicate video file type!");switch(ue.type){case"flv":return new Ur(ue,st);default:return new Dn(ue,st)}}function wi(){return ie.supportMSEH264Playback()}function Rn(){return ie.getFeatureList()}var kn={};kn.createPlayer=Un,kn.isSupported=wi,kn.getFeatureList=Rn,kn.BaseLoader=h,kn.LoaderStatus=l,kn.LoaderErrors=u,kn.Events=Ce,kn.ErrorTypes=$t,kn.ErrorDetails=Xt,kn.FlvPlayer=Ur,kn.NativePlayer=Dn,kn.LoggingControl=He,Object.defineProperty(kn,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Vn=P.a=kn},GVMX:function(U,P,d){var O=d("JEkh"),x=O.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});U.exports=x},GdRQ:function(U,P,d){"use strict";function O(E){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(w){return typeof w}:O=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},O(E)}Object.defineProperty(P,"__esModule",{value:!0}),P.isMac=l,P.isWindows=u,P.isIOS=h,P.isSafari=p,P.isIE=g,P.isEdge=A,P.isFirefox=y,P.hasScrollbarGutter=P.supportsImageMetadata=P.supportsCursorURIs=P.dragThreshold=P.isTouchDevice=void 0;var x=v(d("Lo0S"));function T(){if(typeof WeakMap!="function")return null;var E=new WeakMap;return T=function(){return E},E}function v(E){if(E&&E.__esModule)return E;if(E===null||O(E)!=="object"&&typeof E!="function")return{default:E};var C=T();if(C&&C.has(E))return C.get(E);var w={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in E)if(Object.prototype.hasOwnProperty.call(E,I)){var _=b?Object.getOwnPropertyDescriptor(E,I):null;_&&(_.get||_.set)?Object.defineProperty(w,I,_):w[I]=E[I]}return w.default=E,C&&C.set(E,w),w}var S="ontouchstart"in document.documentElement||document.ontouchstart!==void 0||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;P.isTouchDevice=S,window.addEventListener("touchstart",function E(){P.isTouchDevice=S=!0,window.removeEventListener("touchstart",E,!1)},!1);var m=10*(window.devicePixelRatio||1);P.dragThreshold=m;var f=!1;try{var c=document.createElement("canvas");c.style.cursor='url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default',c.style.cursor.indexOf("url")===0?(x.Info("Data URI scheme cursor supported"),f=!0):x.Warn("Data URI scheme cursor not supported")}catch(E){x.Error("Data URI scheme cursor test exception: "+E)}var o=f;P.supportsCursorURIs=o;var r=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),r=!0}catch(E){}var a=r;P.supportsImageMetadata=a;var n=!0;try{var e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);var s=document.createElement("div");e.appendChild(s);var t=e.offsetWidth-s.offsetWidth;e.parentNode.removeChild(e),n=t!=0}catch(E){x.Error("Scrollbar test exception: "+E)}var i=n;P.hasScrollbarGutter=i;function l(){return navigator&&!!/mac/i.exec(navigator.platform)}function u(){return navigator&&!!/win/i.exec(navigator.platform)}function h(){return navigator&&(!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform))}function p(){return navigator&&navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1}function g(){return navigator&&!!/trident/i.exec(navigator.userAgent)}function A(){return navigator&&!!/edge/i.exec(navigator.userAgent)}function y(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}},GeKi:function(U,P,d){var O=d("bYtY"),x=d("6Ic6"),T=d("IwbS"),v=d("y+Vt"),S=d("sK/D"),m=S.createClipPath,f=["itemStyle"],c=["emphasis","itemStyle"],o=["color","color0","borderColor","borderColor0"],r=x.extend({type:"candlestick",render:function(p,g,A){this.group.removeClipPath(),this._updateDrawMode(p),this._isLargeDraw?this._renderLarge(p):this._renderNormal(p)},incrementalPrepareRender:function(p,g,A){this._clear(),this._updateDrawMode(p)},incrementalRender:function(p,g,A,y){this._isLargeDraw?this._incrementalRenderLarge(p,g):this._incrementalRenderNormal(p,g)},_updateDrawMode:function(p){var g=p.pipelineContext.large;(this._isLargeDraw==null||g^this._isLargeDraw)&&(this._isLargeDraw=g,this._clear())},_renderNormal:function(p){var g=p.getData(),A=this._data,y=this.group,E=g.getLayout("isSimpleBox"),C=p.get("clip",!0),w=p.coordinateSystem,b=w.getArea&&w.getArea();this._data||y.removeAll(),g.diff(A).add(function(I){if(g.hasValue(I)){var _,L=g.getItemLayout(I);if(C&&e(b,L))return;_=n(L,I,!0),T.initProps(_,{shape:{points:L.ends}},p,I),s(_,g,I,E),y.add(_),g.setItemGraphicEl(I,_)}}).update(function(I,_){var L=A.getItemGraphicEl(_);if(!g.hasValue(I)){y.remove(L);return}var D=g.getItemLayout(I);if(C&&e(b,D)){y.remove(L);return}L?T.updateProps(L,{shape:{points:D.ends}},p,I):L=n(D,I),s(L,g,I,E),y.add(L),g.setItemGraphicEl(I,L)}).remove(function(I){var _=A.getItemGraphicEl(I);_&&y.remove(_)}).execute(),this._data=g},_renderLarge:function(p){this._clear(),l(p,this.group);var g=p.get("clip",!0)?m(p.coordinateSystem,!1,p):null;g?this.group.setClipPath(g):this.group.removeClipPath()},_incrementalRenderNormal:function(p,g){for(var A=g.getData(),y=A.getLayout("isSimpleBox"),E;(E=p.next())!=null;){var C,w=A.getItemLayout(E);C=n(w,E),s(C,A,E,y),C.incremental=!0,this.group.add(C)}},_incrementalRenderLarge:function(p,g){l(g,this.group,!0)},remove:function(p){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:O.noop}),a=v.extend({type:"normalCandlestickBox",shape:{},buildPath:function(p,g){var A=g.points;this.__simpleBox?(p.moveTo(A[4][0],A[4][1]),p.lineTo(A[6][0],A[6][1])):(p.moveTo(A[0][0],A[0][1]),p.lineTo(A[1][0],A[1][1]),p.lineTo(A[2][0],A[2][1]),p.lineTo(A[3][0],A[3][1]),p.closePath(),p.moveTo(A[4][0],A[4][1]),p.lineTo(A[5][0],A[5][1]),p.moveTo(A[6][0],A[6][1]),p.lineTo(A[7][0],A[7][1]))}});function n(p,g,A){var y=p.ends;return new a({shape:{points:A?t(y,p):y},z2:100})}function e(p,g){for(var A=!0,y=0;y<g.ends.length;y++)if(p.contain(g.ends[y][0],g.ends[y][1])){A=!1;break}return A}function s(p,g,A,y){var E=g.getItemModel(A),C=E.getModel(f),w=g.getItemVisual(A,"color"),b=g.getItemVisual(A,"borderColor")||w,I=C.getItemStyle(o);p.useStyle(I),p.style.strokeNoScale=!0,p.style.fill=w,p.style.stroke=b,p.__simpleBox=y;var _=E.getModel(c).getItemStyle();T.setHoverStyle(p,_)}function t(p,g){return O.map(p,function(A){return A=A.slice(),A[1]=g.initBaseline,A})}var i=v.extend({type:"largeCandlestickBox",shape:{},buildPath:function(p,g){for(var A=g.points,y=0;y<A.length;)if(this.__sign===A[y++]){var E=A[y++];p.moveTo(E,A[y++]),p.lineTo(E,A[y++])}else y+=3}});function l(p,g,A){var y=p.getData(),E=y.getLayout("largePoints"),C=new i({shape:{points:E},__sign:1});g.add(C);var w=new i({shape:{points:E},__sign:-1});g.add(w),u(1,C,p,y),u(-1,w,p,y),A&&(C.incremental=!0,w.incremental=!0)}function u(p,g,A,y){var E=p>0?"P":"N",C=y.getVisual("borderColor"+E)||y.getVisual("color"+E),w=A.getModel(f).getItemStyle(o);g.useStyle(w),g.style.fill=null,g.style.stroke=C}var h=r;U.exports=h},Gev7:function(U,P,d){var O=d("bYtY"),x=d("K2GJ"),T=d("1bdT"),v=d("ni6a");function S(f){f=f||{},T.call(this,f);for(var c in f)f.hasOwnProperty(c)&&c!=="style"&&(this[c]=f[c]);this.style=new x(f.style,this),this._rect=null,this.__clipPaths=null}S.prototype={constructor:S,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(c){},afterBrush:function(c){},brush:function(c,o){},getBoundingRect:function(){},contain:function(c,o){return this.rectContain(c,o)},traverse:function(c,o){c.call(o,this)},rectContain:function(c,o){var r=this.transformCoordToLocal(c,o),a=this.getBoundingRect();return a.contain(r[0],r[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(c){return this.animate("style",c)},attrKV:function(c,o){c!=="style"?T.prototype.attrKV.call(this,c,o):this.style.set(o)},setStyle:function(c,o){return this.style.set(c,o),this.dirty(!1),this},useStyle:function(c){return this.style=new x(c,this),this.dirty(!1),this},calculateTextPosition:null},O.inherits(S,T),O.mixin(S,v);var m=S;U.exports=m},GrNh:function(U,P,d){var O=d("bYtY"),x=d("IwbS"),T=d("6Ic6");function v(r,a,n,e){var s=a.getData(),t=this.dataIndex,i=s.getName(t),l=a.get("selectedOffset");e.dispatchAction({type:"pieToggleSelect",from:r,name:i,seriesId:a.id}),s.each(function(u){S(s.getItemGraphicEl(u),s.getItemLayout(u),a.isSelected(s.getName(u)),l,n)})}function S(r,a,n,e,s){var t=(a.startAngle+a.endAngle)/2,i=Math.cos(t),l=Math.sin(t),u=n?e:0,h=[i*u,l*u];s?r.animate().when(200,{position:h}).start("bounceOut"):r.attr("position",h)}function m(r,a){x.Group.call(this);var n=new x.Sector({z2:2}),e=new x.Polyline,s=new x.Text;this.add(n),this.add(e),this.add(s),this.updateData(r,a,!0)}var f=m.prototype;f.updateData=function(r,a,n){var e=this.childAt(0),s=this.childAt(1),t=this.childAt(2),i=r.hostModel,l=r.getItemModel(a),u=r.getItemLayout(a),h=O.extend({},u);h.label=null;var p=i.getShallow("animationTypeUpdate");if(n){e.setShape(h);var g=i.getShallow("animationType");g==="scale"?(e.shape.r=u.r0,x.initProps(e,{shape:{r:u.r}},i,a)):(e.shape.endAngle=u.startAngle,x.updateProps(e,{shape:{endAngle:u.endAngle}},i,a))}else p==="expansion"?e.setShape(h):x.updateProps(e,{shape:h},i,a);var A=r.getItemVisual(a,"color");e.useStyle(O.defaults({lineJoin:"bevel",fill:A},l.getModel("itemStyle").getItemStyle())),e.hoverStyle=l.getModel("emphasis.itemStyle").getItemStyle();var y=l.getShallow("cursor");y&&e.attr("cursor",y),S(this,r.getItemLayout(a),i.isSelected(r.getName(a)),i.get("selectedOffset"),i.get("animation"));var E=!n&&p==="transition";this._updateLabel(r,a,E),this.highDownOnUpdate=i.get("silent")?null:function(C,w){var b=i.isAnimationEnabled()&&l.get("hoverAnimation");w==="emphasis"?(s.ignore=s.hoverIgnore,t.ignore=t.hoverIgnore,b&&(e.stopAnimation(!0),e.animateTo({shape:{r:u.r+i.get("hoverOffset")}},300,"elasticOut"))):(s.ignore=s.normalIgnore,t.ignore=t.normalIgnore,b&&(e.stopAnimation(!0),e.animateTo({shape:{r:u.r}},300,"elasticOut")))},x.setHoverStyle(this)},f._updateLabel=function(r,a,n){var e=this.childAt(1),s=this.childAt(2),t=r.hostModel,i=r.getItemModel(a),l=r.getItemLayout(a),u=l.label,h=r.getItemVisual(a,"color");if(!u||isNaN(u.x)||isNaN(u.y)){s.ignore=s.normalIgnore=s.hoverIgnore=e.ignore=e.normalIgnore=e.hoverIgnore=!0;return}var p={points:u.linePoints||[[u.x,u.y],[u.x,u.y],[u.x,u.y]]},g={x:u.x,y:u.y};n?(x.updateProps(e,{shape:p},t,a),x.updateProps(s,{style:g},t,a)):(e.attr({shape:p}),s.attr({style:g})),s.attr({rotation:u.rotation,origin:[u.x,u.y],z2:10});var A=i.getModel("label"),y=i.getModel("emphasis.label"),E=i.getModel("labelLine"),C=i.getModel("emphasis.labelLine"),h=r.getItemVisual(a,"color");x.setLabelStyle(s.style,s.hoverStyle={},A,y,{labelFetcher:r.hostModel,labelDataIndex:a,defaultText:u.text,autoColor:h,useInsideStyle:!!u.inside},{textAlign:u.textAlign,textVerticalAlign:u.verticalAlign,opacity:r.getItemVisual(a,"opacity")}),s.ignore=s.normalIgnore=!A.get("show"),s.hoverIgnore=!y.get("show"),e.ignore=e.normalIgnore=!E.get("show"),e.hoverIgnore=!C.get("show"),e.setStyle({stroke:h,opacity:r.getItemVisual(a,"opacity")}),e.setStyle(E.getModel("lineStyle").getLineStyle()),e.hoverStyle=C.getModel("lineStyle").getLineStyle();var w=E.get("smooth");w&&w===!0&&(w=.4),e.setShape({smooth:w})},O.inherits(m,x.Group);var c=T.extend({type:"pie",init:function(){var r=new x.Group;this._sectorGroup=r},render:function(r,a,n,e){if(e&&e.from===this.uid)return;var s=r.getData(),t=this._data,i=this.group,l=a.get("animation"),u=!t,h=r.get("animationType"),p=r.get("animationTypeUpdate"),g=O.curry(v,this.uid,r,l,n),A=r.get("selectedMode");if(s.diff(t).add(function(b){var I=new m(s,b);u&&h!=="scale"&&I.eachChild(function(_){_.stopAnimation(!0)}),A&&I.on("click",g),s.setItemGraphicEl(b,I),i.add(I)}).update(function(b,I){var _=t.getItemGraphicEl(I);!u&&p!=="transition"&&_.eachChild(function(L){L.stopAnimation(!0)}),_.updateData(s,b),_.off("click"),A&&_.on("click",g),i.add(_),s.setItemGraphicEl(b,_)}).remove(function(b){var I=t.getItemGraphicEl(b);i.remove(I)}).execute(),l&&s.count()>0&&(u?h!=="scale":p!=="transition")){for(var y=s.getItemLayout(0),E=1;isNaN(y.startAngle)&&E<s.count();++E)y=s.getItemLayout(E);var C=Math.max(n.getWidth(),n.getHeight())/2,w=O.bind(i.removeClipPath,i);i.setClipPath(this._createClipPath(y.cx,y.cy,C,y.startAngle,y.clockwise,w,r,u))}else i.removeClipPath();this._data=s},dispose:function(){},_createClipPath:function(r,a,n,e,s,t,i,l){var u=new x.Sector({shape:{cx:r,cy:a,r0:0,r:n,startAngle:e,endAngle:e,clockwise:s}}),h=l?x.initProps:x.updateProps;return h(u,{shape:{endAngle:e+(s?1:-1)*Math.PI*2}},i,t),u},containPoint:function(r,a){var n=a.getData(),e=n.getItemLayout(0);if(e){var s=r[0]-e.cx,t=r[1]-e.cy,i=Math.sqrt(s*s+t*t);return i<=e.r&&i>=e.r0}}}),o=c;U.exports=o},Gytx:function(U,P){U.exports=function(O,x,T,v){var S=T?T.call(v,O,x):void 0;if(S!==void 0)return!!S;if(O===x)return!0;if(typeof O!="object"||!O||typeof x!="object"||!x)return!1;var m=Object.keys(O),f=Object.keys(x);if(m.length!==f.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(x),o=0;o<m.length;o++){var r=m[o];if(!c(r))return!1;var a=O[r],n=x[r];if(S=T?T.call(v,a,n,r):void 0,S===!1||S===void 0&&a!==n)return!1}return!0}},GzdX:function(U,P,d){"use strict";var O=d("pVnL"),x=d.n(O),T=d("q1tI"),v=d.n(T),S=d("rePB"),m=d("1OyB"),f=d("vuIU"),c=d("Ji7U"),o=d("md7G"),r=d("foSv"),a=d("m+aA"),n=d("TSYQ"),e=d.n(n),s=d("4IlW");function t(H){var F=H.pageXOffset,K="scrollLeft";if(typeof F!="number"){var j=H.document;F=j.documentElement[K],typeof F!="number"&&(F=j.body[K])}return F}function i(H){var F,K,j=H.ownerDocument,V=j.body,z=j&&j.documentElement,Y=H.getBoundingClientRect();return F=Y.left,K=Y.top,F-=z.clientLeft||V.clientLeft||0,K-=z.clientTop||V.clientTop||0,{left:F,top:K}}function l(H){var F=i(H),K=H.ownerDocument,j=K.defaultView||K.parentWindow;return F.left+=t(j),F.left}function u(H){var F=h();return function(){var j=Object(r.a)(H),V;if(F){var z=Object(r.a)(this).constructor;V=Reflect.construct(j,arguments,z)}else V=j.apply(this,arguments);return Object(o.a)(this,V)}}function h(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(H){return!1}}var p=function(H){Object(c.a)(K,H);var F=u(K);function K(){var j;return Object(m.a)(this,K),j=F.apply(this,arguments),j.onHover=function(V){var z=j.props,Y=z.onHover,ee=z.index;Y(V,ee)},j.onClick=function(V){var z=j.props,Y=z.onClick,ee=z.index;Y(V,ee)},j.onKeyDown=function(V){var z=j.props,Y=z.onClick,ee=z.index;V.keyCode===13&&Y(V,ee)},j}return Object(f.a)(K,[{key:"getClassName",value:function(){var V=this.props,z=V.prefixCls,Y=V.index,ee=V.value,fe=V.allowHalf,ie=V.focused,we=Y+1,Ce=z;return ee===0&&Y===0&&ie?Ce+=" ".concat(z,"-focused"):fe&&ee+.5>=we&&ee<we?(Ce+=" ".concat(z,"-half ").concat(z,"-active"),ie&&(Ce+=" ".concat(z,"-focused"))):(Ce+=we<=ee?" ".concat(z,"-full"):" ".concat(z,"-zero"),we===ee&&ie&&(Ce+=" ".concat(z,"-focused"))),Ce}},{key:"render",value:function(){var V=this.onHover,z=this.onClick,Y=this.onKeyDown,ee=this.props,fe=ee.disabled,ie=ee.prefixCls,we=ee.character,Ce=ee.characterRender,Le=ee.index,He=ee.count,ce=ee.value,Pe=typeof we=="function"?we(this.props):we,Q=v.a.createElement("li",{className:this.getClassName()},v.a.createElement("div",{onClick:fe?null:z,onKeyDown:fe?null:Y,onMouseMove:fe?null:V,role:"radio","aria-checked":ce>Le?"true":"false","aria-posinset":Le+1,"aria-setsize":He,tabIndex:fe?-1:0},v.a.createElement("div",{className:"".concat(ie,"-first")},Pe),v.a.createElement("div",{className:"".concat(ie,"-second")},Pe)));return Ce&&(Q=Ce(Q,this.props)),Q}}]),K}(v.a.Component);function g(H,F){var K=Object.keys(H);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(H);F&&(j=j.filter(function(V){return Object.getOwnPropertyDescriptor(H,V).enumerable})),K.push.apply(K,j)}return K}function A(H){for(var F=1;F<arguments.length;F++){var K=arguments[F]!=null?arguments[F]:{};F%2?g(Object(K),!0).forEach(function(j){Object(S.a)(H,j,K[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(K)):g(Object(K)).forEach(function(j){Object.defineProperty(H,j,Object.getOwnPropertyDescriptor(K,j))})}return H}function y(H){var F=E();return function(){var j=Object(r.a)(H),V;if(F){var z=Object(r.a)(this).constructor;V=Reflect.construct(j,arguments,z)}else V=j.apply(this,arguments);return Object(o.a)(this,V)}}function E(){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 C(){}var w=function(H){Object(c.a)(K,H);var F=y(K);function K(j){var V;Object(m.a)(this,K),V=F.call(this,j),V.onHover=function(Y,ee){var fe=V.props.onHoverChange,ie=V.getStarValue(ee,Y.pageX),we=V.state.cleanedValue;ie!==we&&V.setState({hoverValue:ie,cleanedValue:null}),fe(ie)},V.onMouseLeave=function(){var Y=V.props.onHoverChange;V.setState({hoverValue:void 0,cleanedValue:null}),Y(void 0)},V.onClick=function(Y,ee){var fe=V.props.allowClear,ie=V.state.value,we=V.getStarValue(ee,Y.pageX),Ce=!1;fe&&(Ce=we===ie),V.onMouseLeave(),V.changeValue(Ce?0:we),V.setState({cleanedValue:Ce?we:null})},V.onFocus=function(){var Y=V.props.onFocus;V.setState({focused:!0}),Y&&Y()},V.onBlur=function(){var Y=V.props.onBlur;V.setState({focused:!1}),Y&&Y()},V.onKeyDown=function(Y){var ee=Y.keyCode,fe=V.props,ie=fe.count,we=fe.allowHalf,Ce=fe.onKeyDown,Le=fe.direction,He=Le==="rtl",ce=V.state.value;ee===s.a.RIGHT&&ce<ie&&!He?(we?ce+=.5:ce+=1,V.changeValue(ce),Y.preventDefault()):ee===s.a.LEFT&&ce>0&&!He||ee===s.a.RIGHT&&ce>0&&He?(we?ce-=.5:ce-=1,V.changeValue(ce),Y.preventDefault()):ee===s.a.LEFT&&ce<ie&&He&&(we?ce+=.5:ce+=1,V.changeValue(ce),Y.preventDefault()),Ce&&Ce(Y)},V.saveRef=function(Y){return function(ee){V.stars[Y]=ee}},V.saveRate=function(Y){V.rate=Y};var z=j.value;return z===void 0&&(z=j.defaultValue),V.stars={},V.state={value:z,focused:!1,cleanedValue:null},V}return Object(f.a)(K,[{key:"componentDidMount",value:function(){var V=this.props,z=V.autoFocus,Y=V.disabled;z&&!Y&&this.focus()}},{key:"getStarDOM",value:function(V){return Object(a.a)(this.stars[V])}},{key:"getStarValue",value:function(V,z){var Y=this.props,ee=Y.allowHalf,fe=Y.direction,ie=fe==="rtl",we=V+1;if(ee){var Ce=this.getStarDOM(V),Le=l(Ce),He=Ce.clientWidth;(ie&&z-Le>He/2||!ie&&z-Le<He/2)&&(we-=.5)}return we}},{key:"focus",value:function(){var V=this.props.disabled;V||this.rate.focus()}},{key:"blur",value:function(){var V=this.props.disabled;V||this.rate.blur()}},{key:"changeValue",value:function(V){var z=this.props.onChange;"value"in this.props||this.setState({value:V}),z(V)}},{key:"render",value:function(){for(var V=this.props,z=V.count,Y=V.allowHalf,ee=V.style,fe=V.prefixCls,ie=V.disabled,we=V.className,Ce=V.character,Le=V.characterRender,He=V.tabIndex,ce=V.direction,Pe=this.state,Q=Pe.value,me=Pe.hoverValue,Je=Pe.focused,re=[],G=ie?"".concat(fe,"-disabled"):"",X=0;X<z;X+=1)re.push(v.a.createElement(p,{ref:this.saveRef(X),index:X,count:z,disabled:ie,prefixCls:"".concat(fe,"-star"),allowHalf:Y,value:me===void 0?Q:me,onClick:this.onClick,onHover:this.onHover,key:X,character:Ce,characterRender:Le,focused:Je}));var J=e()(fe,G,we,Object(S.a)({},"".concat(fe,"-rtl"),ce==="rtl"));return v.a.createElement("ul",{className:J,style:ee,onMouseLeave:ie?null:this.onMouseLeave,tabIndex:ie?-1:He,onFocus:ie?null:this.onFocus,onBlur:ie?null:this.onBlur,onKeyDown:ie?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},re)}}],[{key:"getDerivedStateFromProps",value:function(V,z){return"value"in V&&V.value!==void 0?A(A({},z),{},{value:V.value}):z}}]),K}(v.a.Component);w.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:C,character:"\u2605",onHoverChange:C,tabIndex:0,direction:"ltr"};var b=w,I=b,_=d("Lerx"),L=d.n(_),D=d("3S7+"),N=d("H84U"),R=function(H,F){var K={};for(var j in H)Object.prototype.hasOwnProperty.call(H,j)&&F.indexOf(j)<0&&(K[j]=H[j]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,j=Object.getOwnPropertySymbols(H);V<j.length;V++)F.indexOf(j[V])<0&&Object.prototype.propertyIsEnumerable.call(H,j[V])&&(K[j[V]]=H[j[V]]);return K},B=T.forwardRef(function(H,F){var K=H.prefixCls,j=H.tooltips,V=R(H,["prefixCls","tooltips"]),z=function(Ce,Le){var He=Le.index;return j?T.createElement(D.a,{title:j[He]},Ce):Ce},Y=T.useContext(N.b),ee=Y.getPrefixCls,fe=Y.direction,ie=ee("rate",K);return T.createElement(I,x()({ref:F,characterRender:z},V,{prefixCls:ie,direction:fe}))});B.displayName="Rate",B.defaultProps={character:T.createElement(L.a,null)};var M=P.a=B},H6uX:function(U,P){var d=Array.prototype.slice,O=function(m){this._$handlers={},this._$eventProcessor=m};O.prototype={constructor:O,one:function(m,f,c,o){return T(this,m,f,c,o,!0)},on:function(m,f,c,o){return T(this,m,f,c,o,!1)},isSilent:function(m){var f=this._$handlers;return!f[m]||!f[m].length},off:function(m,f){var c=this._$handlers;if(!m)return this._$handlers={},this;if(f){if(c[m]){for(var o=[],r=0,a=c[m].length;r<a;r++)c[m][r].h!==f&&o.push(c[m][r]);c[m]=o}c[m]&&c[m].length===0&&delete c[m]}else delete c[m];return this},trigger:function(m){var f=this._$handlers[m],c=this._$eventProcessor;if(f){var o=arguments,r=o.length;r>3&&(o=d.call(o,1));for(var a=f.length,n=0;n<a;){var e=f[n];if(c&&c.filter&&e.query!=null&&!c.filter(m,e.query)){n++;continue}switch(r){case 1:e.h.call(e.ctx);break;case 2:e.h.call(e.ctx,o[1]);break;case 3:e.h.call(e.ctx,o[1],o[2]);break;default:e.h.apply(e.ctx,o);break}e.one?(f.splice(n,1),a--):n++}}return c&&c.afterTrigger&&c.afterTrigger(m),this},triggerWithContext:function(m){var f=this._$handlers[m],c=this._$eventProcessor;if(f){var o=arguments,r=o.length;r>4&&(o=d.call(o,1,o.length-1));for(var a=o[o.length-1],n=f.length,e=0;e<n;){var s=f[e];if(c&&c.filter&&s.query!=null&&!c.filter(m,s.query)){e++;continue}switch(r){case 1:s.h.call(a);break;case 2:s.h.call(a,o[1]);break;case 3:s.h.call(a,o[1],o[2]);break;default:s.h.apply(a,o);break}s.one?(f.splice(e,1),n--):e++}}return c&&c.afterTrigger&&c.afterTrigger(m),this}};function x(S,m){var f=S._$eventProcessor;return m!=null&&f&&f.normalizeQuery&&(m=f.normalizeQuery(m)),m}function T(S,m,f,c,o,r){var a=S._$handlers;if(typeof f=="function"&&(o=c,c=f,f=null),!c||!m)return S;f=x(S,f),a[m]||(a[m]=[]);for(var n=0;n<a[m].length;n++)if(a[m][n].h===c)return S;var e={h:c,one:r,query:f,ctx:o||S,callAtLast:c.zrEventfulCallAtLast},s=a[m].length-1,t=a[m][s];return t&&t.callAtLast?a[m].splice(s,0,e):a[m].push(e),S}var v=O;U.exports=v},H7XF:function(U,P,d){"use strict";P.byteLength=c,P.toByteArray=r,P.fromByteArray=e;for(var O=[],x=[],T=typeof Uint8Array!="undefined"?Uint8Array:Array,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=0,m=v.length;S<m;++S)O[S]=v[S],x[v.charCodeAt(S)]=S;x["-".charCodeAt(0)]=62,x["_".charCodeAt(0)]=63;function f(s){var t=s.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=s.indexOf("=");i===-1&&(i=t);var l=i===t?0:4-i%4;return[i,l]}function c(s){var t=f(s),i=t[0],l=t[1];return(i+l)*3/4-l}function o(s,t,i){return(t+i)*3/4-i}function r(s){var t,i=f(s),l=i[0],u=i[1],h=new T(o(s,l,u)),p=0,g=u>0?l-4:l,A;for(A=0;A<g;A+=4)t=x[s.charCodeAt(A)]<<18|x[s.charCodeAt(A+1)]<<12|x[s.charCodeAt(A+2)]<<6|x[s.charCodeAt(A+3)],h[p++]=t>>16&255,h[p++]=t>>8&255,h[p++]=t&255;return u===2&&(t=x[s.charCodeAt(A)]<<2|x[s.charCodeAt(A+1)]>>4,h[p++]=t&255),u===1&&(t=x[s.charCodeAt(A)]<<10|x[s.charCodeAt(A+1)]<<4|x[s.charCodeAt(A+2)]>>2,h[p++]=t>>8&255,h[p++]=t&255),h}function a(s){return O[s>>18&63]+O[s>>12&63]+O[s>>6&63]+O[s&63]}function n(s,t,i){for(var l,u=[],h=t;h<i;h+=3)l=(s[h]<<16&16711680)+(s[h+1]<<8&65280)+(s[h+2]&255),u.push(a(l));return u.join("")}function e(s){for(var t,i=s.length,l=i%3,u=[],h=16383,p=0,g=i-l;p<g;p+=h)u.push(n(s,p,p+h>g?g:p+h));return l===1?(t=s[i-1],u.push(O[t>>2]+O[t<<4&63]+"==")):l===2&&(t=(s[i-2]<<8)+s[i-1],u.push(O[t>>10]+O[t>>4&63]+O[t<<2&63]+"=")),u.join("")}},HBhm:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};P.default=O},HDXh:function(U,P,d){"use strict";(function(O){/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/var x=d("H7XF"),T=d("kVK+"),v=d("49sm");P.Buffer=c,P.SlowBuffer=u,P.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=O.TYPED_ARRAY_SUPPORT!==void 0?O.TYPED_ARRAY_SUPPORT:S(),P.kMaxLength=m();function S(){try{var re=new Uint8Array(1);return re.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},re.foo()===42&&typeof re.subarray=="function"&&re.subarray(1,1).byteLength===0}catch(G){return!1}}function m(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(re,G){if(m()<G)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(re=new Uint8Array(G),re.__proto__=c.prototype):(re===null&&(re=new c(G)),re.length=G),re}function c(re,G,X){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(re,G,X);if(typeof re=="number"){if(typeof G=="string")throw new Error("If encoding is specified then the first argument must be a string");return n(this,re)}return o(this,re,G,X)}c.poolSize=8192,c._augment=function(re){return re.__proto__=c.prototype,re};function o(re,G,X,J){if(typeof G=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&G instanceof ArrayBuffer?t(re,G,X,J):typeof G=="string"?e(re,G,X):i(re,G)}c.from=function(re,G,X){return o(null,re,G,X)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0}));function r(re){if(typeof re!="number")throw new TypeError('"size" argument must be a number');if(re<0)throw new RangeError('"size" argument must not be negative')}function a(re,G,X,J){return r(G),G<=0?f(re,G):X!==void 0?typeof J=="string"?f(re,G).fill(X,J):f(re,G).fill(X):f(re,G)}c.alloc=function(re,G,X){return a(null,re,G,X)};function n(re,G){if(r(G),re=f(re,G<0?0:l(G)|0),!c.TYPED_ARRAY_SUPPORT)for(var X=0;X<G;++X)re[X]=0;return re}c.allocUnsafe=function(re){return n(null,re)},c.allocUnsafeSlow=function(re){return n(null,re)};function e(re,G,X){if((typeof X!="string"||X==="")&&(X="utf8"),!c.isEncoding(X))throw new TypeError('"encoding" must be a valid string encoding');var J=h(G,X)|0;re=f(re,J);var Ae=re.write(G,X);return Ae!==J&&(re=re.slice(0,Ae)),re}function s(re,G){var X=G.length<0?0:l(G.length)|0;re=f(re,X);for(var J=0;J<X;J+=1)re[J]=G[J]&255;return re}function t(re,G,X,J){if(G.byteLength,X<0||G.byteLength<X)throw new RangeError("'offset' is out of bounds");if(G.byteLength<X+(J||0))throw new RangeError("'length' is out of bounds");return X===void 0&&J===void 0?G=new Uint8Array(G):J===void 0?G=new Uint8Array(G,X):G=new Uint8Array(G,X,J),c.TYPED_ARRAY_SUPPORT?(re=G,re.__proto__=c.prototype):re=s(re,G),re}function i(re,G){if(c.isBuffer(G)){var X=l(G.length)|0;return re=f(re,X),re.length===0||G.copy(re,0,0,X),re}if(G){if(typeof ArrayBuffer!="undefined"&&G.buffer instanceof ArrayBuffer||"length"in G)return typeof G.length!="number"||Je(G.length)?f(re,0):s(re,G);if(G.type==="Buffer"&&v(G.data))return s(re,G.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function l(re){if(re>=m())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m().toString(16)+" bytes");return re|0}function u(re){return+re!=re&&(re=0),c.alloc(+re)}c.isBuffer=function(G){return!!(G!=null&&G._isBuffer)},c.compare=function(G,X){if(!c.isBuffer(G)||!c.isBuffer(X))throw new TypeError("Arguments must be Buffers");if(G===X)return 0;for(var J=G.length,Ae=X.length,he=0,Me=Math.min(J,Ae);he<Me;++he)if(G[he]!==X[he]){J=G[he],Ae=X[he];break}return J<Ae?-1:Ae<J?1:0},c.isEncoding=function(G){switch(String(G).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(G,X){if(!v(G))throw new TypeError('"list" argument must be an Array of Buffers');if(G.length===0)return c.alloc(0);var J;if(X===void 0)for(X=0,J=0;J<G.length;++J)X+=G[J].length;var Ae=c.allocUnsafe(X),he=0;for(J=0;J<G.length;++J){var Me=G[J];if(!c.isBuffer(Me))throw new TypeError('"list" argument must be an Array of Buffers');Me.copy(Ae,he),he+=Me.length}return Ae};function h(re,G){if(c.isBuffer(re))return re.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(re)||re instanceof ArrayBuffer))return re.byteLength;typeof re!="string"&&(re=""+re);var X=re.length;if(X===0)return 0;for(var J=!1;;)switch(G){case"ascii":case"latin1":case"binary":return X;case"utf8":case"utf-8":case void 0:return He(re).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X*2;case"hex":return X>>>1;case"base64":return Q(re).length;default:if(J)return He(re).length;G=(""+G).toLowerCase(),J=!0}}c.byteLength=h;function p(re,G,X){var J=!1;if((G===void 0||G<0)&&(G=0),G>this.length)return"";if((X===void 0||X>this.length)&&(X=this.length),X<=0)return"";if(X>>>=0,G>>>=0,X<=G)return"";for(re||(re="utf8");;)switch(re){case"hex":return H(this,G,X);case"utf8":case"utf-8":return D(this,G,X);case"ascii":return B(this,G,X);case"latin1":case"binary":return M(this,G,X);case"base64":return L(this,G,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,G,X);default:if(J)throw new TypeError("Unknown encoding: "+re);re=(re+"").toLowerCase(),J=!0}}c.prototype._isBuffer=!0;function g(re,G,X){var J=re[G];re[G]=re[X],re[X]=J}c.prototype.swap16=function(){var G=this.length;if(G%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var X=0;X<G;X+=2)g(this,X,X+1);return this},c.prototype.swap32=function(){var G=this.length;if(G%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var X=0;X<G;X+=4)g(this,X,X+3),g(this,X+1,X+2);return this},c.prototype.swap64=function(){var G=this.length;if(G%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var X=0;X<G;X+=8)g(this,X,X+7),g(this,X+1,X+6),g(this,X+2,X+5),g(this,X+3,X+4);return this},c.prototype.toString=function(){var G=this.length|0;return G===0?"":arguments.length===0?D(this,0,G):p.apply(this,arguments)},c.prototype.equals=function(G){if(!c.isBuffer(G))throw new TypeError("Argument must be a Buffer");return this===G?!0:c.compare(this,G)===0},c.prototype.inspect=function(){var G="",X=P.INSPECT_MAX_BYTES;return this.length>0&&(G=this.toString("hex",0,X).match(/.{2}/g).join(" "),this.length>X&&(G+=" ... ")),"<Buffer "+G+">"},c.prototype.compare=function(G,X,J,Ae,he){if(!c.isBuffer(G))throw new TypeError("Argument must be a Buffer");if(X===void 0&&(X=0),J===void 0&&(J=G?G.length:0),Ae===void 0&&(Ae=0),he===void 0&&(he=this.length),X<0||J>G.length||Ae<0||he>this.length)throw new RangeError("out of range index");if(Ae>=he&&X>=J)return 0;if(Ae>=he)return-1;if(X>=J)return 1;if(X>>>=0,J>>>=0,Ae>>>=0,he>>>=0,this===G)return 0;for(var Me=he-Ae,Ie=J-X,oe=Math.min(Me,Ie),pe=this.slice(Ae,he),Oe=G.slice(X,J),Ye=0;Ye<oe;++Ye)if(pe[Ye]!==Oe[Ye]){Me=pe[Ye],Ie=Oe[Ye];break}return Me<Ie?-1:Ie<Me?1:0};function A(re,G,X,J,Ae){if(re.length===0)return-1;if(typeof X=="string"?(J=X,X=0):X>2147483647?X=2147483647:X<-2147483648&&(X=-2147483648),X=+X,isNaN(X)&&(X=Ae?0:re.length-1),X<0&&(X=re.length+X),X>=re.length){if(Ae)return-1;X=re.length-1}else if(X<0)if(Ae)X=0;else return-1;if(typeof G=="string"&&(G=c.from(G,J)),c.isBuffer(G))return G.length===0?-1:y(re,G,X,J,Ae);if(typeof G=="number")return G=G&255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Ae?Uint8Array.prototype.indexOf.call(re,G,X):Uint8Array.prototype.lastIndexOf.call(re,G,X):y(re,[G],X,J,Ae);throw new TypeError("val must be string, number or Buffer")}function y(re,G,X,J,Ae){var he=1,Me=re.length,Ie=G.length;if(J!==void 0&&(J=String(J).toLowerCase(),J==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(re.length<2||G.length<2)return-1;he=2,Me/=2,Ie/=2,X/=2}function oe(et,Te){return he===1?et[Te]:et.readUInt16BE(Te*he)}var pe;if(Ae){var Oe=-1;for(pe=X;pe<Me;pe++)if(oe(re,pe)===oe(G,Oe===-1?0:pe-Oe)){if(Oe===-1&&(Oe=pe),pe-Oe+1===Ie)return Oe*he}else Oe!==-1&&(pe-=pe-Oe),Oe=-1}else for(X+Ie>Me&&(X=Me-Ie),pe=X;pe>=0;pe--){for(var Ye=!0,it=0;it<Ie;it++)if(oe(re,pe+it)!==oe(G,it)){Ye=!1;break}if(Ye)return pe}return-1}c.prototype.includes=function(G,X,J){return this.indexOf(G,X,J)!==-1},c.prototype.indexOf=function(G,X,J){return A(this,G,X,J,!0)},c.prototype.lastIndexOf=function(G,X,J){return A(this,G,X,J,!1)};function E(re,G,X,J){X=Number(X)||0;var Ae=re.length-X;J?(J=Number(J),J>Ae&&(J=Ae)):J=Ae;var he=G.length;if(he%2!==0)throw new TypeError("Invalid hex string");J>he/2&&(J=he/2);for(var Me=0;Me<J;++Me){var Ie=parseInt(G.substr(Me*2,2),16);if(isNaN(Ie))return Me;re[X+Me]=Ie}return Me}function C(re,G,X,J){return me(He(G,re.length-X),re,X,J)}function w(re,G,X,J){return me(ce(G),re,X,J)}function b(re,G,X,J){return w(re,G,X,J)}function I(re,G,X,J){return me(Q(G),re,X,J)}function _(re,G,X,J){return me(Pe(G,re.length-X),re,X,J)}c.prototype.write=function(G,X,J,Ae){if(X===void 0)Ae="utf8",J=this.length,X=0;else if(J===void 0&&typeof X=="string")Ae=X,J=this.length,X=0;else if(isFinite(X))X=X|0,isFinite(J)?(J=J|0,Ae===void 0&&(Ae="utf8")):(Ae=J,J=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var he=this.length-X;if((J===void 0||J>he)&&(J=he),G.length>0&&(J<0||X<0)||X>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ae||(Ae="utf8");for(var Me=!1;;)switch(Ae){case"hex":return E(this,G,X,J);case"utf8":case"utf-8":return C(this,G,X,J);case"ascii":return w(this,G,X,J);case"latin1":case"binary":return b(this,G,X,J);case"base64":return I(this,G,X,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,G,X,J);default:if(Me)throw new TypeError("Unknown encoding: "+Ae);Ae=(""+Ae).toLowerCase(),Me=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L(re,G,X){return G===0&&X===re.length?x.fromByteArray(re):x.fromByteArray(re.slice(G,X))}function D(re,G,X){X=Math.min(re.length,X);for(var J=[],Ae=G;Ae<X;){var he=re[Ae],Me=null,Ie=he>239?4:he>223?3:he>191?2:1;if(Ae+Ie<=X){var oe,pe,Oe,Ye;switch(Ie){case 1:he<128&&(Me=he);break;case 2:oe=re[Ae+1],(oe&192)===128&&(Ye=(he&31)<<6|oe&63,Ye>127&&(Me=Ye));break;case 3:oe=re[Ae+1],pe=re[Ae+2],(oe&192)===128&&(pe&192)===128&&(Ye=(he&15)<<12|(oe&63)<<6|pe&63,Ye>2047&&(Ye<55296||Ye>57343)&&(Me=Ye));break;case 4:oe=re[Ae+1],pe=re[Ae+2],Oe=re[Ae+3],(oe&192)===128&&(pe&192)===128&&(Oe&192)===128&&(Ye=(he&15)<<18|(oe&63)<<12|(pe&63)<<6|Oe&63,Ye>65535&&Ye<1114112&&(Me=Ye))}}Me===null?(Me=65533,Ie=1):Me>65535&&(Me-=65536,J.push(Me>>>10&1023|55296),Me=56320|Me&1023),J.push(Me),Ae+=Ie}return R(J)}var N=4096;function R(re){var G=re.length;if(G<=N)return String.fromCharCode.apply(String,re);for(var X="",J=0;J<G;)X+=String.fromCharCode.apply(String,re.slice(J,J+=N));return X}function B(re,G,X){var J="";X=Math.min(re.length,X);for(var Ae=G;Ae<X;++Ae)J+=String.fromCharCode(re[Ae]&127);return J}function M(re,G,X){var J="";X=Math.min(re.length,X);for(var Ae=G;Ae<X;++Ae)J+=String.fromCharCode(re[Ae]);return J}function H(re,G,X){var J=re.length;(!G||G<0)&&(G=0),(!X||X<0||X>J)&&(X=J);for(var Ae="",he=G;he<X;++he)Ae+=Le(re[he]);return Ae}function F(re,G,X){for(var J=re.slice(G,X),Ae="",he=0;he<J.length;he+=2)Ae+=String.fromCharCode(J[he]+J[he+1]*256);return Ae}c.prototype.slice=function(G,X){var J=this.length;G=~~G,X=X===void 0?J:~~X,G<0?(G+=J,G<0&&(G=0)):G>J&&(G=J),X<0?(X+=J,X<0&&(X=0)):X>J&&(X=J),X<G&&(X=G);var Ae;if(c.TYPED_ARRAY_SUPPORT)Ae=this.subarray(G,X),Ae.__proto__=c.prototype;else{var he=X-G;Ae=new c(he,void 0);for(var Me=0;Me<he;++Me)Ae[Me]=this[Me+G]}return Ae};function K(re,G,X){if(re%1!==0||re<0)throw new RangeError("offset is not uint");if(re+G>X)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUIntLE=function(G,X,J){G=G|0,X=X|0,J||K(G,X,this.length);for(var Ae=this[G],he=1,Me=0;++Me<X&&(he*=256);)Ae+=this[G+Me]*he;return Ae},c.prototype.readUIntBE=function(G,X,J){G=G|0,X=X|0,J||K(G,X,this.length);for(var Ae=this[G+--X],he=1;X>0&&(he*=256);)Ae+=this[G+--X]*he;return Ae},c.prototype.readUInt8=function(G,X){return X||K(G,1,this.length),this[G]},c.prototype.readUInt16LE=function(G,X){return X||K(G,2,this.length),this[G]|this[G+1]<<8},c.prototype.readUInt16BE=function(G,X){return X||K(G,2,this.length),this[G]<<8|this[G+1]},c.prototype.readUInt32LE=function(G,X){return X||K(G,4,this.length),(this[G]|this[G+1]<<8|this[G+2]<<16)+this[G+3]*16777216},c.prototype.readUInt32BE=function(G,X){return X||K(G,4,this.length),this[G]*16777216+(this[G+1]<<16|this[G+2]<<8|this[G+3])},c.prototype.readIntLE=function(G,X,J){G=G|0,X=X|0,J||K(G,X,this.length);for(var Ae=this[G],he=1,Me=0;++Me<X&&(he*=256);)Ae+=this[G+Me]*he;return he*=128,Ae>=he&&(Ae-=Math.pow(2,8*X)),Ae},c.prototype.readIntBE=function(G,X,J){G=G|0,X=X|0,J||K(G,X,this.length);for(var Ae=X,he=1,Me=this[G+--Ae];Ae>0&&(he*=256);)Me+=this[G+--Ae]*he;return he*=128,Me>=he&&(Me-=Math.pow(2,8*X)),Me},c.prototype.readInt8=function(G,X){return X||K(G,1,this.length),this[G]&128?(255-this[G]+1)*-1:this[G]},c.prototype.readInt16LE=function(G,X){X||K(G,2,this.length);var J=this[G]|this[G+1]<<8;return J&32768?J|4294901760:J},c.prototype.readInt16BE=function(G,X){X||K(G,2,this.length);var J=this[G+1]|this[G]<<8;return J&32768?J|4294901760:J},c.prototype.readInt32LE=function(G,X){return X||K(G,4,this.length),this[G]|this[G+1]<<8|this[G+2]<<16|this[G+3]<<24},c.prototype.readInt32BE=function(G,X){return X||K(G,4,this.length),this[G]<<24|this[G+1]<<16|this[G+2]<<8|this[G+3]},c.prototype.readFloatLE=function(G,X){return X||K(G,4,this.length),T.read(this,G,!0,23,4)},c.prototype.readFloatBE=function(G,X){return X||K(G,4,this.length),T.read(this,G,!1,23,4)},c.prototype.readDoubleLE=function(G,X){return X||K(G,8,this.length),T.read(this,G,!0,52,8)},c.prototype.readDoubleBE=function(G,X){return X||K(G,8,this.length),T.read(this,G,!1,52,8)};function j(re,G,X,J,Ae,he){if(!c.isBuffer(re))throw new TypeError('"buffer" argument must be a Buffer instance');if(G>Ae||G<he)throw new RangeError('"value" argument is out of bounds');if(X+J>re.length)throw new RangeError("Index out of range")}c.prototype.writeUIntLE=function(G,X,J,Ae){if(G=+G,X=X|0,J=J|0,!Ae){var he=Math.pow(2,8*J)-1;j(this,G,X,J,he,0)}var Me=1,Ie=0;for(this[X]=G&255;++Ie<J&&(Me*=256);)this[X+Ie]=G/Me&255;return X+J},c.prototype.writeUIntBE=function(G,X,J,Ae){if(G=+G,X=X|0,J=J|0,!Ae){var he=Math.pow(2,8*J)-1;j(this,G,X,J,he,0)}var Me=J-1,Ie=1;for(this[X+Me]=G&255;--Me>=0&&(Ie*=256);)this[X+Me]=G/Ie&255;return X+J},c.prototype.writeUInt8=function(G,X,J){return G=+G,X=X|0,J||j(this,G,X,1,255,0),c.TYPED_ARRAY_SUPPORT||(G=Math.floor(G)),this[X]=G&255,X+1};function V(re,G,X,J){G<0&&(G=65535+G+1);for(var Ae=0,he=Math.min(re.length-X,2);Ae<he;++Ae)re[X+Ae]=(G&255<<8*(J?Ae:1-Ae))>>>(J?Ae:1-Ae)*8}c.prototype.writeUInt16LE=function(G,X,J){return G=+G,X=X|0,J||j(this,G,X,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[X]=G&255,this[X+1]=G>>>8):V(this,G,X,!0),X+2},c.prototype.writeUInt16BE=function(G,X,J){return G=+G,X=X|0,J||j(this,G,X,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[X]=G>>>8,this[X+1]=G&255):V(this,G,X,!1),X+2};function z(re,G,X,J){G<0&&(G=4294967295+G+1);for(var Ae=0,he=Math.min(re.length-X,4);Ae<he;++Ae)re[X+Ae]=G>>>(J?Ae:3-Ae)*8&255}c.prototype.writeUInt32LE=function(G,X,J){return G=+G,X=X|0,J||j(this,G,X,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[X+3]=G>>>24,this[X+2]=G>>>16,this[X+1]=G>>>8,this[X]=G&255):z(this,G,X,!0),X+4},c.prototype.writeUInt32BE=function(G,X,J){return G=+G,X=X|0,J||j(this,G,X,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[X]=G>>>24,this[X+1]=G>>>16,this[X+2]=G>>>8,this[X+3]=G&255):z(this,G,X,!1),X+4},c.prototype.writeIntLE=function(G,X,J,Ae){if(G=+G,X=X|0,!Ae){var he=Math.pow(2,8*J-1);j(this,G,X,J,he-1,-he)}var Me=0,Ie=1,oe=0;for(this[X]=G&255;++Me<J&&(Ie*=256);)G<0&&oe===0&&this[X+Me-1]!==0&&(oe=1),this[X+Me]=(G/Ie>>0)-oe&255;return X+J},c.prototype.writeIntBE=function(G,X,J,Ae){if(G=+G,X=X|0,!Ae){var he=Math.pow(2,8*J-1);j(this,G,X,J,he-1,-he)}var Me=J-1,Ie=1,oe=0;for(this[X+Me]=G&255;--Me>=0&&(Ie*=256);)G<0&&oe===0&&this[X+Me+1]!==0&&(oe=1),this[X+Me]=(G/Ie>>0)-oe&255;return X+J},c.prototype.writeInt8=function(G,X,J){return G=+G,X=X|0,J||j(this,G,X,1,127,-128),c.TYPED_ARRAY_SUPPORT||(G=Math.floor(G)),G<0&&(G=255+G+1),this[X]=G&255,X+1},c.prototype.writeInt16LE=function(G,X,J){return G=+G,X=X|0,J||j(this,G,X,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[X]=G&255,this[X+1]=G>>>8):V(this,G,X,!0),X+2},c.prototype.writeInt16BE=function(G,X,J){return G=+G,X=X|0,J||j(this,G,X,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[X]=G>>>8,this[X+1]=G&255):V(this,G,X,!1),X+2},c.prototype.writeInt32LE=function(G,X,J){return G=+G,X=X|0,J||j(this,G,X,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[X]=G&255,this[X+1]=G>>>8,this[X+2]=G>>>16,this[X+3]=G>>>24):z(this,G,X,!0),X+4},c.prototype.writeInt32BE=function(G,X,J){return G=+G,X=X|0,J||j(this,G,X,4,2147483647,-2147483648),G<0&&(G=4294967295+G+1),c.TYPED_ARRAY_SUPPORT?(this[X]=G>>>24,this[X+1]=G>>>16,this[X+2]=G>>>8,this[X+3]=G&255):z(this,G,X,!1),X+4};function Y(re,G,X,J,Ae,he){if(X+J>re.length)throw new RangeError("Index out of range");if(X<0)throw new RangeError("Index out of range")}function ee(re,G,X,J,Ae){return Ae||Y(re,G,X,4,34028234663852886e22,-34028234663852886e22),T.write(re,G,X,J,23,4),X+4}c.prototype.writeFloatLE=function(G,X,J){return ee(this,G,X,!0,J)},c.prototype.writeFloatBE=function(G,X,J){return ee(this,G,X,!1,J)};function fe(re,G,X,J,Ae){return Ae||Y(re,G,X,8,17976931348623157e292,-17976931348623157e292),T.write(re,G,X,J,52,8),X+8}c.prototype.writeDoubleLE=function(G,X,J){return fe(this,G,X,!0,J)},c.prototype.writeDoubleBE=function(G,X,J){return fe(this,G,X,!1,J)},c.prototype.copy=function(G,X,J,Ae){if(J||(J=0),!Ae&&Ae!==0&&(Ae=this.length),X>=G.length&&(X=G.length),X||(X=0),Ae>0&&Ae<J&&(Ae=J),Ae===J)return 0;if(G.length===0||this.length===0)return 0;if(X<0)throw new RangeError("targetStart out of bounds");if(J<0||J>=this.length)throw new RangeError("sourceStart out of bounds");if(Ae<0)throw new RangeError("sourceEnd out of bounds");Ae>this.length&&(Ae=this.length),G.length-X<Ae-J&&(Ae=G.length-X+J);var he=Ae-J,Me;if(this===G&&J<X&&X<Ae)for(Me=he-1;Me>=0;--Me)G[Me+X]=this[Me+J];else if(he<1e3||!c.TYPED_ARRAY_SUPPORT)for(Me=0;Me<he;++Me)G[Me+X]=this[Me+J];else Uint8Array.prototype.set.call(G,this.subarray(J,J+he),X);return he},c.prototype.fill=function(G,X,J,Ae){if(typeof G=="string"){if(typeof X=="string"?(Ae=X,X=0,J=this.length):typeof J=="string"&&(Ae=J,J=this.length),G.length===1){var he=G.charCodeAt(0);he<256&&(G=he)}if(Ae!==void 0&&typeof Ae!="string")throw new TypeError("encoding must be a string");if(typeof Ae=="string"&&!c.isEncoding(Ae))throw new TypeError("Unknown encoding: "+Ae)}else typeof G=="number"&&(G=G&255);if(X<0||this.length<X||this.length<J)throw new RangeError("Out of range index");if(J<=X)return this;X=X>>>0,J=J===void 0?this.length:J>>>0,G||(G=0);var Me;if(typeof G=="number")for(Me=X;Me<J;++Me)this[Me]=G;else{var Ie=c.isBuffer(G)?G:He(new c(G,Ae).toString()),oe=Ie.length;for(Me=0;Me<J-X;++Me)this[Me+X]=Ie[Me%oe]}return this};var ie=/[^+\/0-9A-Za-z-_]/g;function we(re){if(re=Ce(re).replace(ie,""),re.length<2)return"";for(;re.length%4!==0;)re=re+"=";return re}function Ce(re){return re.trim?re.trim():re.replace(/^\s+|\s+$/g,"")}function Le(re){return re<16?"0"+re.toString(16):re.toString(16)}function He(re,G){G=G||Infinity;for(var X,J=re.length,Ae=null,he=[],Me=0;Me<J;++Me){if(X=re.charCodeAt(Me),X>55295&&X<57344){if(!Ae){if(X>56319){(G-=3)>-1&&he.push(239,191,189);continue}else if(Me+1===J){(G-=3)>-1&&he.push(239,191,189);continue}Ae=X;continue}if(X<56320){(G-=3)>-1&&he.push(239,191,189),Ae=X;continue}X=(Ae-55296<<10|X-56320)+65536}else Ae&&((G-=3)>-1&&he.push(239,191,189));if(Ae=null,X<128){if((G-=1)<0)break;he.push(X)}else if(X<2048){if((G-=2)<0)break;he.push(X>>6|192,X&63|128)}else if(X<65536){if((G-=3)<0)break;he.push(X>>12|224,X>>6&63|128,X&63|128)}else if(X<1114112){if((G-=4)<0)break;he.push(X>>18|240,X>>12&63|128,X>>6&63|128,X&63|128)}else throw new Error("Invalid code point")}return he}function ce(re){for(var G=[],X=0;X<re.length;++X)G.push(re.charCodeAt(X)&255);return G}function Pe(re,G){for(var X,J,Ae,he=[],Me=0;Me<re.length&&!((G-=2)<0);++Me)X=re.charCodeAt(Me),J=X>>8,Ae=X%256,he.push(Ae),he.push(J);return he}function Q(re){return x.toByteArray(we(re))}function me(re,G,X,J){for(var Ae=0;Ae<J&&!(Ae+X>=G.length||Ae>=re.length);++Ae)G[Ae+X]=re[Ae];return Ae}function Je(re){return re!==re}}).call(this,d("yLpj"))},"HF/U":function(U,P,d){var O=d("QBsz");function x(v){var S=v.coordinateSystem;if(S&&S.type!=="view")return;var m=v.getGraph();m.eachNode(function(f){var c=f.getModel();f.setLayout([+c.get("x"),+c.get("y")])}),T(m)}function T(v){v.eachEdge(function(S){var m=S.getModel().get("lineStyle.curveness")||0,f=O.clone(S.node1.getLayout()),c=O.clone(S.node2.getLayout()),o=[f,c];+m&&o.push([(f[0]+c[0])/2-(f[1]-c[1])*m,(f[1]+c[1])/2-(c[0]-f[0])*m]),S.setLayout(o)})}P.simpleLayout=x,P.simpleLayoutEdge=T},"HM/N":function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("bYtY"),v=d("/SeX"),S=d("OELB"),m=S.parsePercent,f=d("aX7z"),c=f.createScaleByModel,o=f.niceScaleExtent,r=d("IDmD"),a=d("7hqr"),n=a.getStackedDimension;d("ePAk");function e(l,u,h){var p=u.get("center"),g=h.getWidth(),A=h.getHeight();l.cx=m(p[0],g),l.cy=m(p[1],A);var y=l.getRadiusAxis(),E=Math.min(g,A)/2,C=u.get("radius");C==null?C=[0,"100%"]:T.isArray(C)||(C=[0,C]),C=[m(C[0],E),m(C[1],E)],y.inverse?y.setExtent(C[1],C[0]):y.setExtent(C[0],C[1])}function s(l,u){var h=this,p=h.getAngleAxis(),g=h.getRadiusAxis();if(p.scale.setExtent(Infinity,-Infinity),g.scale.setExtent(Infinity,-Infinity),l.eachSeries(function(E){if(E.coordinateSystem===h){var C=E.getData();T.each(C.mapDimension("radius",!0),function(w){g.scale.unionExtentFromData(C,n(C,w))}),T.each(C.mapDimension("angle",!0),function(w){p.scale.unionExtentFromData(C,n(C,w))})}}),o(p.scale,p.model),o(g.scale,g.model),p.type==="category"&&!p.onBand){var A=p.getExtent(),y=360/p.scale.count();p.inverse?A[1]+=y:A[1]-=y,p.setExtent(A[0],A[1])}}function t(l,u){if(l.type=u.get("type"),l.scale=c(u),l.onBand=u.get("boundaryGap")&&l.type==="category",l.inverse=u.get("inverse"),u.mainType==="angleAxis"){l.inverse^=u.get("clockwise");var h=u.get("startAngle");l.setExtent(h,h+(l.inverse?-360:360))}u.axis=l,l.model=u}var i={dimensions:v.prototype.dimensions,create:function(l,u){var h=[];return l.eachComponent("polar",function(p,g){var A=new v(g);A.update=s;var y=A.getRadiusAxis(),E=A.getAngleAxis(),C=p.findAxisModel("radiusAxis"),w=p.findAxisModel("angleAxis");t(y,C),t(E,w),e(A,p,u),h.push(A),p.coordinateSystem=A,A.model=p}),l.eachSeries(function(p){if(p.get("coordinateSystem")==="polar"){var g=l.queryComponents({mainType:"polar",index:p.get("polarIndex"),id:p.get("polarId")})[0];p.coordinateSystem=g.coordinateSystem}}),h}};r.register("polar",i)},HQEm:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("Sj0X"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},HjIi:function(U,P,d){var O=d("bYtY"),x=d("OELB"),T=x.parsePercent,v=d("7hqr"),S=v.isDimensionStacked;function m(a){return a.get("stack")||"__ec_stack_"+a.seriesIndex}function f(a,n){return n.dim+a.model.componentIndex}function c(a,n,e){var s={},t=o(O.filter(n.getSeriesByType(a),function(i){return!n.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));n.eachSeriesByType(a,function(i){if(i.coordinateSystem.type!=="polar")return;var l=i.getData(),u=i.coordinateSystem,h=u.getBaseAxis(),p=f(u,h),g=m(i),A=t[p][g],y=A.offset,E=A.width,C=u.getOtherAxis(h),w=i.coordinateSystem.cx,b=i.coordinateSystem.cy,I=i.get("barMinHeight")||0,_=i.get("barMinAngle")||0;s[g]=s[g]||[];for(var L=l.mapDimension(C.dim),D=l.mapDimension(h.dim),N=S(l,L),R=h.dim!=="radius"||!i.get("roundCap",!0),B=C.getExtent()[0],M=0,H=l.count();M<H;M++){var F=l.get(L,M),K=l.get(D,M),j=F>=0?"p":"n",V=B;N&&(s[g][K]||(s[g][K]={p:B,n:B}),V=s[g][K][j]);var z,Y,ee,fe;if(C.dim==="radius"){var ie=C.dataToRadius(F)-B,we=h.dataToAngle(K);Math.abs(ie)<I&&(ie=(ie<0?-1:1)*I),z=V,Y=V+ie,ee=we-y,fe=ee-E,N&&(s[g][K][j]=Y)}else{var Ce=C.dataToAngle(F,R)-B,Le=h.dataToRadius(K);Math.abs(Ce)<_&&(Ce=(Ce<0?-1:1)*_),z=Le+y,Y=z+E,ee=V,fe=V+Ce,N&&(s[g][K][j]=fe)}l.setItemLayout(M,{cx:w,cy:b,r0:z,r:Y,startAngle:-ee*Math.PI/180,endAngle:-fe*Math.PI/180})}},this)}function o(a,n){var e={};O.each(a,function(t,i){var l=t.getData(),u=t.coordinateSystem,h=u.getBaseAxis(),p=f(u,h),g=h.getExtent(),A=h.type==="category"?h.getBandWidth():Math.abs(g[1]-g[0])/l.count(),y=e[p]||{bandWidth:A,remainedWidth:A,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},E=y.stacks;e[p]=y;var C=m(t);E[C]||y.autoWidthCount++,E[C]=E[C]||{width:0,maxWidth:0};var w=T(t.get("barWidth"),A),b=T(t.get("barMaxWidth"),A),I=t.get("barGap"),_=t.get("barCategoryGap");w&&!E[C].width&&(w=Math.min(y.remainedWidth,w),E[C].width=w,y.remainedWidth-=w),b&&(E[C].maxWidth=b),I!=null&&(y.gap=I),_!=null&&(y.categoryGap=_)});var s={};return O.each(e,function(t,i){s[i]={};var l=t.stacks,u=t.bandWidth,h=T(t.categoryGap,u),p=T(t.gap,1),g=t.remainedWidth,A=t.autoWidthCount,y=(g-h)/(A+(A-1)*p);y=Math.max(y,0),O.each(l,function(b,I){var _=b.maxWidth;_&&_<y&&(_=Math.min(_,g),b.width&&(_=Math.min(_,b.width)),g-=_,b.width=_,A--)}),y=(g-h)/(A+(A-1)*p),y=Math.max(y,0);var E=0,C;O.each(l,function(b,I){b.width||(b.width=y),C=b,E+=b.width*(1+p)}),C&&(E-=C.width*p);var w=-E/2;O.each(l,function(b,I){s[i][I]=s[i][I]||{offset:w,width:b.width},w+=b.width*(1+p)})}),s}var r=c;U.exports=r},HjOm:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O={locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",yearFormat:"YYYY\u5E74",dayFormat:"D\u65E5",dateFormat:"YYYY\u5E74M\u6708D\u65E5",dateTimeFormat:"YYYY\u5E74M\u6708D\u65E5 HH\u65F6mm\u5206ss\u79D2",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA"},x=O;P.default=x},Hw7h:function(U,P,d){var O=d("y+Vt"),x=O.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(T,v){var S=Math.cos,m=Math.sin,f=v.r,c=v.width,o=v.angle,r=v.x-S(o)*c*(c>=f/3?1:2),a=v.y-m(o)*c*(c>=f/3?1:2);o=v.angle-Math.PI/2,T.moveTo(r,a),T.lineTo(v.x+S(o)*c,v.y+m(o)*c),T.lineTo(v.x+S(v.angle)*f,v.y+m(v.angle)*f),T.lineTo(v.x-S(o)*c,v.y-m(o)*c),T.lineTo(r,a);return}});U.exports=x},Hxpc:function(U,P,d){var O=d("bYtY"),x=d("4NO4"),T=d("bLfw"),v=d("Qxkt"),S=d("cCMj"),m=d("7uqq"),f=T.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(o){T.prototype.init.apply(this,arguments),x.defaultEmphasis(o,"label",["show"])},optionUpdated:function(){var o=this.option,r=this;o.regions=m.getFilledRegions(o.regions,o.map,o.nameMap),this._optionModelMap=O.reduce(o.regions||[],function(a,n){return n.name&&a.set(n.name,new v(n,r)),a},O.createHashMap()),this.updateSelectedMap(o.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(o){return this._optionModelMap.get(o)||new v(null,this,this.ecModel)},getFormattedLabel:function(o,r){var a=this.getRegionModel(o),n=a.get("label"+(r==="normal"?".":r+".")+"formatter"),e={name:o};if(typeof n=="function")return e.status=r,n(e);if(typeof n=="string")return n.replace("{a}",o!=null?o:"")},setZoom:function(o){this.option.zoom=o},setCenter:function(o){this.option.center=o}});O.mixin(f,S);var c=f;U.exports=c},"I+77":function(U,P,d){var O=d("ProS");d("h54F"),d("lwQL"),d("10cm");var x=d("Z1r0"),T=d("f5Yq"),v=d("KUOm"),S=d("3m61"),m=d("01d+"),f=d("rdor"),c=d("WGYa"),o=d("ewwo");O.registerProcessor(x),O.registerVisual(T("graph","circle",null)),O.registerVisual(v),O.registerVisual(S),O.registerLayout(m),O.registerLayout(O.PRIORITY.VISUAL.POST_CHART_LAYOUT,f),O.registerLayout(c),O.registerCoordinateSystem("graphView",{create:o})},"I+Bx":function(U,P,d){var O=d("bYtY"),x=d("eIcI"),T=d("ieMj"),v=d("OELB"),S=d("aX7z"),m=S.getScaleExtent,f=S.niceScaleExtent,c=d("IDmD"),o=d("jCoz");function r(n,e,s){this._model=n,this.dimensions=[],this._indicatorAxes=O.map(n.getIndicatorModels(),function(t,i){var l="indicator_"+i,u=new x(l,t.get("axisType")==="log"?new o:new T);return u.name=t.get("name"),u.model=t,t.axis=u,this.dimensions.push(l),u},this),this.resize(n,s),this.cx,this.cy,this.r,this.r0,this.startAngle}r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(n,e){var s=this._indicatorAxes[e];return this.coordToPoint(s.dataToCoord(n),e)},r.prototype.coordToPoint=function(n,e){var s=this._indicatorAxes[e],t=s.angle,i=this.cx+n*Math.cos(t),l=this.cy-n*Math.sin(t);return[i,l]},r.prototype.pointToData=function(n){var e=n[0]-this.cx,s=n[1]-this.cy,t=Math.sqrt(e*e+s*s);e/=t,s/=t;for(var i=Math.atan2(-s,e),l=Infinity,u,h=-1,p=0;p<this._indicatorAxes.length;p++){var g=this._indicatorAxes[p],A=Math.abs(i-g.angle);A<l&&(u=g,h=p,l=A)}return[h,+(u&&u.coordToData(t))]},r.prototype.resize=function(n,e){var s=n.get("center"),t=e.getWidth(),i=e.getHeight(),l=Math.min(t,i)/2;this.cx=v.parsePercent(s[0],t),this.cy=v.parsePercent(s[1],i),this.startAngle=n.get("startAngle")*Math.PI/180;var u=n.get("radius");(typeof u=="string"||typeof u=="number")&&(u=[0,u]),this.r0=v.parsePercent(u[0],l),this.r=v.parsePercent(u[1],l),O.each(this._indicatorAxes,function(h,p){h.setExtent(this.r0,this.r);var g=this.startAngle+p*Math.PI*2/this._indicatorAxes.length;g=Math.atan2(Math.sin(g),Math.cos(g)),h.angle=g},this)},r.prototype.update=function(n,e){var s=this._indicatorAxes,t=this._model;O.each(s,function(u){u.scale.setExtent(Infinity,-Infinity)}),n.eachSeriesByType("radar",function(u,h){if(u.get("coordinateSystem")!=="radar"||n.getComponent("radar",u.get("radarIndex"))!==t)return;var p=u.getData();O.each(s,function(g){g.scale.unionExtentFromData(p,p.mapDimension(g.dim))})},this);var i=t.get("splitNumber");function l(u){var h=Math.pow(10,Math.floor(Math.log(u)/Math.LN10)),p=u/h;return p===2?p=5:p*=2,p*h}O.each(s,function(u,h){var p=m(u.scale,u.model).extent;f(u.scale,u.model);var g=u.model,A=u.scale,y=g.getMin(),E=g.getMax(),C=A.getInterval();if(y!=null&&E!=null)A.setExtent(+y,+E),A.setInterval((E-y)/i);else if(y!=null){var w;do w=y+C*i,A.setExtent(+y,w),A.setInterval(C),C=l(C);while(w<p[1]&&isFinite(w)&&isFinite(p[1]))}else if(E!=null){var b;do b=E-C*i,A.setExtent(b,+E),A.setInterval(C),C=l(C);while(b>p[0]&&isFinite(b)&&isFinite(p[0]))}else{var I=A.getTicks().length-1;I>i&&(C=l(C));var w=Math.ceil(p[1]/C)*C,b=v.round(w-C*i);A.setExtent(b,w),A.setInterval(C)}})},r.dimensions=[],r.create=function(n,e){var s=[];return n.eachComponent("radar",function(t){var i=new r(t,n,e);s.push(i),t.coordinateSystem=i}),n.eachSeriesByType("radar",function(t){t.get("coordinateSystem")==="radar"&&(t.coordinateSystem=s[t.get("radarIndex")||0])}),s},c.register("radar",r);var a=r;U.exports=a},"I3/A":function(U,P,d){var O=d("bYtY"),x=d("YXkt"),T=d("c2i1"),v=d("Mdki"),S=d("sdST"),m=d("IDmD"),f=d("MwEJ");function c(o,r,a,n,e){for(var s=new T(n),t=0;t<o.length;t++)s.addNode(O.retrieve(o[t].id,o[t].name,t),t);for(var i=[],l=[],u=0,t=0;t<r.length;t++){var h=r[t],p=h.source,g=h.target;s.addEdge(p,g,u)&&(l.push(h),i.push(O.retrieve(h.id,p+" > "+g)),u++)}var A=a.get("coordinateSystem"),y;if(A==="cartesian2d"||A==="polar")y=f(o,a);else{var E=m.get(A),C=E&&E.type!=="view"?E.dimensions||[]:[];O.indexOf(C,"value")<0&&C.concat(["value"]);var w=S(o,{coordDimensions:C});y=new x(w,a),y.initData(o)}var b=new x(["value"],a);return b.initData(l,i),e&&e(y,b),v({mainData:y,struct:s,structAttr:"graph",datas:{node:y,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),s.update(),s}U.exports=c},I8Z2:function(U,P,d){"use strict";d.d(P,"a",function(){return v}),d.d(P,"b",function(){return e}),d.d(P,"c",function(){return t});var O=d("q1tI"),x=function(){var i=function(u,h){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var A in g)g.hasOwnProperty(A)&&(p[A]=g[A])},i(u,h)};return function(l,u){i(l,u);function h(){this.constructor=l}l.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}}(),T=O.createContext(null),v=function(i){x(l,i);function l(){return i!==null&&i.apply(this,arguments)||this}return l.prototype.render=function(){return O.createElement(T.Provider,{value:this.props.store},this.props.children)},l}(O.Component),S=d("Gytx"),m=d.n(S),f=d("2mql"),c=d.n(f),o=function(){var i=function(u,h){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var A in g)g.hasOwnProperty(A)&&(p[A]=g[A])},i(u,h)};return function(l,u){i(l,u);function h(){this.constructor=l}l.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}}(),r=function(){return r=Object.assign||function(i){for(var l,u=1,h=arguments.length;u<h;u++){l=arguments[u];for(var p in l)Object.prototype.hasOwnProperty.call(l,p)&&(i[p]=l[p])}return i},r.apply(this,arguments)};function a(i){return i.displayName||i.name||"Component"}var n=function(){return{}};function e(i,l){l===void 0&&(l={});var u=!!i,h=i||n;return function(g){var A=function(E){o(C,E);function C(w,b){var I=E.call(this,w,b)||this;return I.unsubscribe=null,I.handleChange=function(){if(!I.unsubscribe)return;var _=h(I.store.getState(),I.props);I.setState({subscribed:_})},I.store=I.context,I.state={subscribed:h(I.store.getState(),w),store:I.store,props:w},I}return C.getDerivedStateFromProps=function(w,b){return i&&i.length===2&&w!==b.props?{subscribed:h(b.store.getState(),w),props:w}:{props:w}},C.prototype.componentDidMount=function(){this.trySubscribe()},C.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},C.prototype.shouldComponentUpdate=function(w,b){return!m()(this.props,w)||!m()(this.state.subscribed,b.subscribed)},C.prototype.trySubscribe=function(){u&&(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 w=r(r(r({},this.props),this.state.subscribed),{store:this.store});return O.createElement(g,r({},w,{ref:this.props.miniStoreForwardedRef}))},C.displayName="Connect("+a(g)+")",C.contextType=T,C}(O.Component);if(l.forwardRef){var y=O.forwardRef(function(E,C){return O.createElement(A,r({},E,{miniStoreForwardedRef:C}))});return c()(y,g)}return c()(A,g)}}var s=function(){return s=Object.assign||function(i){for(var l,u=1,h=arguments.length;u<h;u++){l=arguments[u];for(var p in l)Object.prototype.hasOwnProperty.call(l,p)&&(i[p]=l[p])}return i},s.apply(this,arguments)};function t(i){var l=i,u=[];function h(A){l=s(s({},l),A);for(var y=0;y<u.length;y++)u[y]()}function p(){return l}function g(A){return u.push(A),function(){var E=u.indexOf(A);u.splice(E,1)}}return{setState:h,getState:p,subscribe:g}}},"I9Y+":function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("4xFK")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="DoubleRightOutlined";var c=v.forwardRef(f);P.default=c},ICMv:function(U,P,d){var O=d("bYtY"),x={getMin:function(T){var v=this.option,S=!T&&v.rangeStart!=null?v.rangeStart:v.min;return this.axis&&S!=null&&S!=="dataMin"&&typeof S!="function"&&!O.eqNaN(S)&&(S=this.axis.scale.parse(S)),S},getMax:function(T){var v=this.option,S=!T&&v.rangeEnd!=null?v.rangeEnd:v.max;return this.axis&&S!=null&&S!=="dataMax"&&typeof S!="function"&&!O.eqNaN(S)&&(S=this.axis.scale.parse(S)),S},getNeedCrossZero:function(){var T=this.option;return T.rangeStart!=null||T.rangeEnd!=null?!1:!T.scale},getCoordSysModel:O.noop,setRange:function(T,v){this.option.rangeStart=T,this.option.rangeEnd=v},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};U.exports=x},IDmD:function(U,P,d){var O=d("bYtY"),x={};function T(){this._coordinateSystems=[]}T.prototype={constructor:T,create:function(S,m){var f=[];O.each(x,function(c,o){var r=c.create(S,m);f=f.concat(r||[])}),this._coordinateSystems=f},update:function(S,m){O.each(this._coordinateSystems,function(f){f.update&&f.update(S,m)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},T.register=function(S,m){x[S]=m},T.get=function(S){return x[S]};var v=T;U.exports=v},IMiH:function(U,P,d){var O=d("Sj9i"),x=d("QBsz"),T=d("4mN7"),v=d("mFDi"),S=d("LPTA"),m=S.devicePixelRatio,f={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},c=[],o=[],r=[],a=[],n=Math.min,e=Math.max,s=Math.cos,t=Math.sin,i=Math.sqrt,l=Math.abs,u=typeof Float32Array!="undefined",h=function(A){this._saveData=!(A||!1),this._saveData&&(this.data=[]),this._ctx=null};h.prototype={constructor:h,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(A,y,E){E=E||0,this._ux=l(E/m/A)||0,this._uy=l(E/m/y)||0},getContext:function(){return this._ctx},beginPath:function(A){return this._ctx=A,A&&A.beginPath(),A&&(this.dpr=A.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(A,y){return this.addData(f.M,A,y),this._ctx&&this._ctx.moveTo(A,y),this._x0=A,this._y0=y,this._xi=A,this._yi=y,this},lineTo:function(A,y){var E=l(A-this._xi)>this._ux||l(y-this._yi)>this._uy||this._len<5;return this.addData(f.L,A,y),this._ctx&&E&&(this._needsDash()?this._dashedLineTo(A,y):this._ctx.lineTo(A,y)),E&&(this._xi=A,this._yi=y),this},bezierCurveTo:function(A,y,E,C,w,b){return this.addData(f.C,A,y,E,C,w,b),this._ctx&&(this._needsDash()?this._dashedBezierTo(A,y,E,C,w,b):this._ctx.bezierCurveTo(A,y,E,C,w,b)),this._xi=w,this._yi=b,this},quadraticCurveTo:function(A,y,E,C){return this.addData(f.Q,A,y,E,C),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(A,y,E,C):this._ctx.quadraticCurveTo(A,y,E,C)),this._xi=E,this._yi=C,this},arc:function(A,y,E,C,w,b){return this.addData(f.A,A,y,E,E,C,w-C,0,b?0:1),this._ctx&&this._ctx.arc(A,y,E,C,w,b),this._xi=s(w)*E+A,this._yi=t(w)*E+y,this},arcTo:function(A,y,E,C,w){return this._ctx&&this._ctx.arcTo(A,y,E,C,w),this},rect:function(A,y,E,C){return this._ctx&&this._ctx.rect(A,y,E,C),this.addData(f.R,A,y,E,C),this},closePath:function(){this.addData(f.Z);var A=this._ctx,y=this._x0,E=this._y0;return A&&(this._needsDash()&&this._dashedLineTo(y,E),A.closePath()),this._xi=y,this._yi=E,this},fill:function(A){A&&A.fill(),this.toStatic()},stroke:function(A){A&&A.stroke(),this.toStatic()},setLineDash:function(A){if(A instanceof Array){this._lineDash=A,this._dashIdx=0;for(var y=0,E=0;E<A.length;E++)y+=A[E];this._dashSum=y}return this},setLineDashOffset:function(A){return this._dashOffset=A,this},len:function(){return this._len},setData:function(A){var y=A.length;!(this.data&&this.data.length===y)&&u&&(this.data=new Float32Array(y));for(var E=0;E<y;E++)this.data[E]=A[E];this._len=y},appendPath:function(A){A instanceof Array||(A=[A]);for(var y=A.length,E=0,C=this._len,w=0;w<y;w++)E+=A[w].len();u&&this.data instanceof Float32Array&&(this.data=new Float32Array(C+E));for(var w=0;w<y;w++)for(var b=A[w].data,I=0;I<b.length;I++)this.data[C++]=b[I];this._len=C},addData:function(A){if(!this._saveData)return;var y=this.data;this._len+arguments.length>y.length&&(this._expandData(),y=this.data);for(var E=0;E<arguments.length;E++)y[this._len++]=arguments[E];this._prevCmd=A},_expandData:function(){if(!(this.data instanceof Array)){for(var A=[],y=0;y<this._len;y++)A[y]=this.data[y];this.data=A}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(A,y){var E=this._dashSum,C=this._dashOffset,w=this._lineDash,b=this._ctx,I=this._xi,_=this._yi,L=A-I,D=y-_,N=i(L*L+D*D),R=I,B=_,M,H=w.length,F;for(L/=N,D/=N,C<0&&(C=E+C),C%=E,R-=C*L,B-=C*D;L>0&&R<=A||L<0&&R>=A||L===0&&(D>0&&B<=y||D<0&&B>=y);){if(F=this._dashIdx,M=w[F],R+=L*M,B+=D*M,this._dashIdx=(F+1)%H,L>0&&R<I||L<0&&R>I||D>0&&B<_||D<0&&B>_)continue;b[F%2?"moveTo":"lineTo"](L>=0?n(R,A):e(R,A),D>=0?n(B,y):e(B,y))}L=R-A,D=B-y,this._dashOffset=-i(L*L+D*D)},_dashedBezierTo:function(A,y,E,C,w,b){var I=this._dashSum,_=this._dashOffset,L=this._lineDash,D=this._ctx,N=this._xi,R=this._yi,B,M,H,F=O.cubicAt,K=0,j=this._dashIdx,V=L.length,z,Y,ee=0;for(_<0&&(_=I+_),_%=I,B=0;B<1;B+=.1)M=F(N,A,E,w,B+.1)-F(N,A,E,w,B),H=F(R,y,C,b,B+.1)-F(R,y,C,b,B),K+=i(M*M+H*H);for(;j<V&&!(ee+=L[j],ee>_);j++);for(B=(ee-_)/K;B<=1;)z=F(N,A,E,w,B),Y=F(R,y,C,b,B),j%2?D.moveTo(z,Y):D.lineTo(z,Y),B+=L[j]/K,j=(j+1)%V;j%2!==0&&D.lineTo(w,b),M=w-z,H=b-Y,this._dashOffset=-i(M*M+H*H)},_dashedQuadraticTo:function(A,y,E,C){var w=E,b=C;E=(E+2*A)/3,C=(C+2*y)/3,A=(this._xi+2*A)/3,y=(this._yi+2*y)/3,this._dashedBezierTo(A,y,E,C,w,b)},toStatic:function(){var A=this.data;A instanceof Array&&(A.length=this._len,u&&(this.data=new Float32Array(A)))},getBoundingRect:function(){c[0]=c[1]=r[0]=r[1]=Number.MAX_VALUE,o[0]=o[1]=a[0]=a[1]=-Number.MAX_VALUE;for(var A=this.data,y=0,E=0,C=0,w=0,b=0;b<A.length;){var I=A[b++];b===1&&(y=A[b],E=A[b+1],C=y,w=E);switch(I){case f.M:C=A[b++],w=A[b++],y=C,E=w,r[0]=C,r[1]=w,a[0]=C,a[1]=w;break;case f.L:T.fromLine(y,E,A[b],A[b+1],r,a),y=A[b++],E=A[b++];break;case f.C:T.fromCubic(y,E,A[b++],A[b++],A[b++],A[b++],A[b],A[b+1],r,a),y=A[b++],E=A[b++];break;case f.Q:T.fromQuadratic(y,E,A[b++],A[b++],A[b],A[b+1],r,a),y=A[b++],E=A[b++];break;case f.A:var _=A[b++],L=A[b++],D=A[b++],N=A[b++],R=A[b++],B=A[b++]+R;b+=1;var M=1-A[b++];b===1&&(C=s(R)*D+_,w=t(R)*N+L),T.fromArc(_,L,D,N,R,B,M,r,a),y=s(B)*D+_,E=t(B)*N+L;break;case f.R:C=y=A[b++],w=E=A[b++];var H=A[b++],F=A[b++];T.fromLine(C,w,C+H,w+F,r,a);break;case f.Z:y=C,E=w;break}x.min(c,c,r),x.max(o,o,a)}return b===0&&(c[0]=c[1]=o[0]=o[1]=0),new v(c[0],c[1],o[0]-c[0],o[1]-c[1])},rebuildPath:function(A){for(var y=this.data,E,C,w,b,I,_,L=this._ux,D=this._uy,N=this._len,R=0;R<N;){var B=y[R++];R===1&&(w=y[R],b=y[R+1],E=w,C=b);switch(B){case f.M:E=w=y[R++],C=b=y[R++],A.moveTo(w,b);break;case f.L:I=y[R++],_=y[R++],(l(I-w)>L||l(_-b)>D||R===N-1)&&(A.lineTo(I,_),w=I,b=_);break;case f.C:A.bezierCurveTo(y[R++],y[R++],y[R++],y[R++],y[R++],y[R++]),w=y[R-2],b=y[R-1];break;case f.Q:A.quadraticCurveTo(y[R++],y[R++],y[R++],y[R++]),w=y[R-2],b=y[R-1];break;case f.A:var M=y[R++],H=y[R++],F=y[R++],K=y[R++],j=y[R++],V=y[R++],z=y[R++],Y=y[R++],ee=F>K?F:K,fe=F>K?1:F/K,ie=F>K?K/F:1,we=Math.abs(F-K)>.001,Ce=j+V;we?(A.translate(M,H),A.rotate(z),A.scale(fe,ie),A.arc(0,0,ee,j,Ce,1-Y),A.scale(1/fe,1/ie),A.rotate(-z),A.translate(-M,-H)):A.arc(M,H,ee,j,Ce,1-Y),R===1&&(E=s(j)*F+M,C=t(j)*K+H),w=s(Ce)*F+M,b=t(Ce)*K+H;break;case f.R:E=w=y[R],C=b=y[R+1],A.rect(y[R++],y[R++],y[R++],y[R++]);break;case f.Z:A.closePath(),w=E,b=C}}}},h.CMD=f;var p=h;U.exports=p},IUWy:function(U,P){var d={};function O(T,v){d[T]=v}function x(T){return d[T]}P.register=O,P.get=x},IWNH:function(U,P,d){var O=d("T4UG"),x=d("Bsck"),T=d("7aKB"),v=T.encodeHTML,S=d("Qxkt"),m=O.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(f){var c={name:f.name,children:f.data},o=f.leaves||{},r=new S(o,this,this.ecModel),a=x.createTree(c,this,{},n);function n(i){i.wrapMethod("getItemModel",function(l,u){var h=a.getNodeByDataIndex(u);return(!h.children.length||!h.isExpand)&&(l.parentModel=r),l})}var e=0;a.eachNode("preorder",function(i){i.depth>e&&(e=i.depth)});var s=f.expandAndCollapse,t=s&&f.initialTreeDepth>=0?f.initialTreeDepth:e;return a.root.eachNode("preorder",function(i){var l=i.hostTree.data.getRawDataItem(i.dataIndex);i.isExpand=l&&l.collapsed!=null?!l.collapsed:i.depth<=t}),a.data},getOrient:function(){var f=this.get("orient");return f==="horizontal"?f="LR":f==="vertical"&&(f="TB"),f},setZoom:function(f){this.option.zoom=f},setCenter:function(f){this.option.center=f},formatTooltip:function(f){for(var c=this.getData().tree,o=c.root.children[0],r=c.getNodeByDataIndex(f),a=r.getValue(),n=r.name;r&&r!==o;)n=r.parentNode.name+"."+n,r=r.parentNode;return v(n+(isNaN(a)||a==null?"":" : "+a))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});U.exports=m},IWp7:function(U,P,d){var O=d("bYtY"),x=d("OELB"),T=d("7aKB"),v=d("lE7J"),S=d("ieMj"),m=S.prototype,f=Math.ceil,c=Math.floor,o=1e3,r=o*60,a=r*60,n=a*24,e=function(l,u,h,p){for(;h<p;){var g=h+p>>>1;l[g][1]<u?h=g+1:p=g}return h},s=S.extend({type:"time",getLabel:function(l){var u=this._stepLvl,h=new Date(l);return T.formatTime(u[0],h,this.getSetting("useUTC"))},niceExtent:function(l){var u=this._extent;if(u[0]===u[1]&&(u[0]-=n,u[1]+=n),u[1]===-Infinity&&u[0]===Infinity){var h=new Date;u[1]=+new Date(h.getFullYear(),h.getMonth(),h.getDate()),u[0]=u[1]-n}this.niceTicks(l.splitNumber,l.minInterval,l.maxInterval);var p=this._interval;l.fixMin||(u[0]=x.round(c(u[0]/p)*p)),l.fixMax||(u[1]=x.round(f(u[1]/p)*p))},niceTicks:function(l,u,h){l=l||10;var p=this._extent,g=p[1]-p[0],A=g/l;u!=null&&A<u&&(A=u),h!=null&&A>h&&(A=h);var y=t.length,E=e(t,A,0,y),C=t[Math.min(E,y-1)],w=C[1];if(C[0]==="year"){var b=g/w,I=x.nice(b/l,!0);w*=I}var _=this.getSetting("useUTC")?0:new Date(+p[0]||+p[1]).getTimezoneOffset()*60*1e3,L=[Math.round(f((p[0]-_)/w)*w+_),Math.round(c((p[1]-_)/w)*w+_)];v.fixExtent(L,p),this._stepLvl=C,this._interval=w,this._niceExtent=L},parse:function(l){return+x.parseDate(l)}});O.each(["contain","normalize"],function(l){s.prototype[l]=function(u){return m[l].call(this,this.parse(u))}});var t=[["hh:mm:ss",o],["hh:mm:ss",o*5],["hh:mm:ss",o*10],["hh:mm:ss",o*15],["hh:mm:ss",o*30],[`hh:mm
|
|
|
MM-dd`,r],[`hh:mm
|
|
|
MM-dd`,r*5],[`hh:mm
|
|
|
MM-dd`,r*10],[`hh:mm
|
|
|
MM-dd`,r*15],[`hh:mm
|
|
|
MM-dd`,r*30],[`hh:mm
|
|
|
MM-dd`,a],[`hh:mm
|
|
|
MM-dd`,a*2],[`hh:mm
|
|
|
MM-dd`,a*6],[`hh:mm
|
|
|
MM-dd`,a*12],[`MM-dd
|
|
|
yyyy`,n],[`MM-dd
|
|
|
yyyy`,n*2],[`MM-dd
|
|
|
yyyy`,n*3],[`MM-dd
|
|
|
yyyy`,n*4],[`MM-dd
|
|
|
yyyy`,n*5],[`MM-dd
|
|
|
yyyy`,n*6],["week",n*7],[`MM-dd
|
|
|
yyyy`,n*10],["week",n*14],["week",n*21],["month",n*31],["week",n*42],["month",n*62],["week",n*70],["quarter",n*95],["month",n*31*4],["month",n*31*5],["half-year",n*380/2],["month",n*31*8],["month",n*31*10],["year",n*380]];s.create=function(l){return new s({useUTC:l.ecModel.get("useUTC")})};var i=s;U.exports=i},IXuL:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("MwEJ"),v=d("T4UG"),S=v.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(m,f){return T(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:Infinity}});U.exports=S},IXyC:function(U,P,d){var O=d("bYtY"),x=d("bLfw");d("3zoK");var T=x.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){x.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(v){var S=this.option;v&&O.merge(S,v,!0),this._initDimensions()},contains:function(v,S){var m=v.get("parallelIndex");return m!=null&&S.getComponent("parallel",m)===this},setAxisExpand:function(v){O.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(S){v.hasOwnProperty(S)&&(this.option[S]=v[S])},this)},_initDimensions:function(){var v=this.dimensions=[],S=this.parallelAxisIndex=[],m=O.filter(this.dependentModels.parallelAxis,function(f){return(f.get("parallelIndex")||0)===this.componentIndex},this);O.each(m,function(f){v.push("dim"+f.get("dim")),S.push(f.componentIndex)})}});U.exports=T},Ib8C:function(U,P,d){(function(O){(function(x,T){U.exports=P=T()})(this,function(){var x=x||function(T,v){var S;if(typeof window!="undefined"&&window.crypto&&(S=window.crypto),typeof self!="undefined"&&self.crypto&&(S=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(S=globalThis.crypto),!S&&typeof window!="undefined"&&window.msCrypto&&(S=window.msCrypto),!S&&typeof O!="undefined"&&O.crypto&&(S=O.crypto),!S&&!0)try{S=d(4)}catch(h){}var m=function(){if(S){if(typeof S.getRandomValues=="function")try{return S.getRandomValues(new Uint32Array(1))[0]}catch(p){}if(typeof S.randomBytes=="function")try{return S.randomBytes(4).readInt32LE()}catch(p){}}throw new Error("Native crypto module could not be used to get secure random number.")},f=Object.create||function(){function h(){}return function(p){var g;return h.prototype=p,g=new h,h.prototype=null,g}}(),c={},o=c.lib={},r=o.Base=function(){return{extend:function(p){var g=f(this);return p&&g.mixIn(p),(!g.hasOwnProperty("init")||this.init===g.init)&&(g.init=function(){g.$super.init.apply(this,arguments)}),g.init.prototype=g,g.$super=this,g},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var g in p)p.hasOwnProperty(g)&&(this[g]=p[g]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),a=o.WordArray=r.extend({init:function(p,g){p=this.words=p||[],g!=v?this.sigBytes=g:this.sigBytes=p.length*4},toString:function(p){return(p||e).stringify(this)},concat:function(p){var g=this.words,A=p.words,y=this.sigBytes,E=p.sigBytes;if(this.clamp(),y%4)for(var C=0;C<E;C++){var w=A[C>>>2]>>>24-C%4*8&255;g[y+C>>>2]|=w<<24-(y+C)%4*8}else for(var b=0;b<E;b+=4)g[y+b>>>2]=A[b>>>2];return this.sigBytes+=E,this},clamp:function(){var p=this.words,g=this.sigBytes;p[g>>>2]&=4294967295<<32-g%4*8,p.length=T.ceil(g/4)},clone:function(){var p=r.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var g=[],A=0;A<p;A+=4)g.push(m());return new a.init(g,p)}}),n=c.enc={},e=n.Hex={stringify:function(p){for(var g=p.words,A=p.sigBytes,y=[],E=0;E<A;E++){var C=g[E>>>2]>>>24-E%4*8&255;y.push((C>>>4).toString(16)),y.push((C&15).toString(16))}return y.join("")},parse:function(p){for(var g=p.length,A=[],y=0;y<g;y+=2)A[y>>>3]|=parseInt(p.substr(y,2),16)<<24-y%8*4;return new a.init(A,g/2)}},s=n.Latin1={stringify:function(p){for(var g=p.words,A=p.sigBytes,y=[],E=0;E<A;E++){var C=g[E>>>2]>>>24-E%4*8&255;y.push(String.fromCharCode(C))}return y.join("")},parse:function(p){for(var g=p.length,A=[],y=0;y<g;y++)A[y>>>2]|=(p.charCodeAt(y)&255)<<24-y%4*8;return new a.init(A,g)}},t=n.Utf8={stringify:function(p){try{return decodeURIComponent(escape(s.stringify(p)))}catch(g){throw new Error("Malformed UTF-8 data")}},parse:function(p){return s.parse(unescape(encodeURIComponent(p)))}},i=o.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=t.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var g,A=this._data,y=A.words,E=A.sigBytes,C=this.blockSize,w=C*4,b=E/w;p?b=T.ceil(b):b=T.max((b|0)-this._minBufferSize,0);var I=b*C,_=T.min(I*4,E);if(I){for(var L=0;L<I;L+=C)this._doProcessBlock(y,L);g=y.splice(0,I),A.sigBytes-=_}return new a.init(g,_)},clone:function(){var p=r.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0}),l=o.Hasher=i.extend({cfg:r.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){i.reset.call(this),this._doReset()},update:function(p){return this._append(p),this._process(),this},finalize:function(p){p&&this._append(p);var g=this._doFinalize();return g},blockSize:512/32,_createHelper:function(p){return function(g,A){return new p.init(A).finalize(g)}},_createHmacHelper:function(p){return function(g,A){return new u.HMAC.init(p,A).finalize(g)}}}),u=c.algo={};return c}(Math);return x})}).call(this,d("yLpj"))},ItGF:function(U,P){var d={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?d={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?d={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?d={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:d=x(navigator.userAgent);var O=d;function x(T){var v={},S={},m=T.match(/Firefox\/([\d.]+)/),f=T.match(/MSIE\s([\d.]+)/)||T.match(/Trident\/.+?rv:(([\d.]+))/),c=T.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(T);return m&&(S.firefox=!0,S.version=m[1]),f&&(S.ie=!0,S.version=f[1]),c&&(S.edge=!0,S.version=c[1]),o&&(S.weChat=!0),{browser:S,os:v,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!S.ie&&!S.edge,pointerEventsSupported:"onpointerdown"in window&&(S.edge||S.ie&&S.version>=11),domSupported:typeof document!="undefined"}}U.exports=O},ItS6:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=d("eP3c"),x=T(d("1q3G"));function T(c){return c&&c.__esModule?c:{default:c}}function v(c,o){if(!(c instanceof o))throw new TypeError("Cannot call a class as a function")}function S(c,o){for(var r=0;r<o.length;r++){var a=o[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(c,a.key,a)}}function m(c,o,r){return o&&S(c.prototype,o),r&&S(c,r),c}var f=function(){function c(){v(this,c),this.strm=new x.default,this.chunkSize=1024*10*10,this.strm.output=new Uint8Array(this.chunkSize),this.windowBits=5,(0,O.inflateInit)(this.strm,this.windowBits)}return m(c,[{key:"setInput",value:function(r){r?(this.strm.input=r,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0):(this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0)}},{key:"inflate",value:function(r){r>this.chunkSize&&(this.chunkSize=r,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=r;var a=(0,O.inflate)(this.strm,0);if(a<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=r)throw new Error("Incomplete zlib block");return new Uint8Array(this.strm.output.buffer,0,this.strm.next_out)}},{key:"reset",value:function(){(0,O.inflateReset)(this.strm)}}]),c}();P.default=f},Itpr:function(U,P,d){var O=d("+TT/");function x(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var i=[t],l,u;l=i.pop();)if(u=l.children,l.isExpand&&u.length)for(var h=u.length,p=h-1;p>=0;p--){var g=u[p];g.hierNode={defaultAncestor:null,ancestor:g,prelim:0,modifier:0,change:0,shift:0,i:p,thread:null},i.push(g)}}function T(t,i){var l=t.isExpand?t.children:[],u=t.parentNode.children,h=t.hierNode.i?u[t.hierNode.i-1]:null;if(l.length){c(t);var p=(l[0].hierNode.prelim+l[l.length-1].hierNode.prelim)/2;h?(t.hierNode.prelim=h.hierNode.prelim+i(t,h),t.hierNode.modifier=t.hierNode.prelim-p):t.hierNode.prelim=p}else h&&(t.hierNode.prelim=h.hierNode.prelim+i(t,h));t.parentNode.hierNode.defaultAncestor=o(t,h,t.parentNode.hierNode.defaultAncestor||u[0],i)}function v(t){var i=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:i},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function S(t){return arguments.length?t:s}function m(t,i){var l={};return t-=Math.PI/2,l.x=i*Math.cos(t),l.y=i*Math.sin(t),l}function f(t,i){return O.getLayoutRect(t.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}function c(t){for(var i=t.children,l=i.length,u=0,h=0;--l>=0;){var p=i[l];p.hierNode.prelim+=u,p.hierNode.modifier+=u,h+=p.hierNode.change,u+=p.hierNode.shift+h}}function o(t,i,l,u){if(i){for(var h=t,p=t,g=p.parentNode.children[0],A=i,y=h.hierNode.modifier,E=p.hierNode.modifier,C=g.hierNode.modifier,w=A.hierNode.modifier;A=r(A),p=a(p),A&&p;){h=r(h),g=a(g),h.hierNode.ancestor=t;var b=A.hierNode.prelim+w-p.hierNode.prelim-E+u(A,p);b>0&&(e(n(A,t,l),t,b),E+=b,y+=b),w+=A.hierNode.modifier,E+=p.hierNode.modifier,y+=h.hierNode.modifier,C+=g.hierNode.modifier}A&&!r(h)&&(h.hierNode.thread=A,h.hierNode.modifier+=w-y),p&&!a(g)&&(g.hierNode.thread=p,g.hierNode.modifier+=E-C,l=t)}return l}function r(t){var i=t.children;return i.length&&t.isExpand?i[i.length-1]:t.hierNode.thread}function a(t){var i=t.children;return i.length&&t.isExpand?i[0]:t.hierNode.thread}function n(t,i,l){return t.hierNode.ancestor.parentNode===i.parentNode?t.hierNode.ancestor:l}function e(t,i,l){var u=l/(i.hierNode.i-t.hierNode.i);i.hierNode.change-=u,i.hierNode.shift+=l,i.hierNode.modifier+=l,i.hierNode.prelim+=l,t.hierNode.change+=u}function s(t,i){return t.parentNode===i.parentNode?1:2}P.init=x,P.firstWalk=T,P.secondWalk=v,P.separation=S,P.radialCoordinate=m,P.getViewRect=f},IwbS:function(U,P,d){var O=d("bYtY"),x=d("NC18"),T=d("Qe9p"),v=d("Fofx"),S=d("QBsz"),m=d("y+Vt"),f=d("DN4a"),c=d("Dagg");P.Image=c;var o=d("4fz+");P.Group=o;var r=d("dqUG");P.Text=r;var a=d("2fw6");P.Circle=a;var n=d("SqI9");P.Sector=n;var e=d("RXMa");P.Ring=e;var s=d("h7HQ");P.Polygon=s;var t=d("1Jh7");P.Polyline=t;var i=d("x6Kt");P.Rect=i;var l=d("yxFR");P.Line=l;var u=d("rA99");P.BezierCurve=u;var h=d("jTL6");P.Arc=h;var p=d("1MYJ");P.CompoundPath=p;var g=d("SKnc");P.LinearGradient=g;var A=d("3e3G");P.RadialGradient=A;var y=d("mFDi");P.BoundingRect=y;var E=d("OS9S");P.IncrementalDisplayable=E;var C=d("nPnh"),w=Math.max,b=Math.min,I={},_=1,L={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},D="emphasis",N="normal",R=1,B={},M={};function H(Xt){return m.extend(Xt)}function F(Xt,ft){return x.extendFromString(Xt,ft)}function K(Xt,ft){M[Xt]=ft}function j(Xt){if(M.hasOwnProperty(Xt))return M[Xt]}function V(Xt,ft,Ur,yn){var Dn=x.createFromString(Xt,ft);return Ur&&(yn==="center"&&(Ur=Y(Ur,Dn.getBoundingRect())),fe(Dn,Ur)),Dn}function z(Xt,ft,Ur){var yn=new c({style:{image:Xt,x:ft.x,y:ft.y,width:ft.width,height:ft.height},onload:function(Dn){if(Ur==="center"){var Un={width:Dn.width,height:Dn.height};yn.setStyle(Y(ft,Un))}}});return yn}function Y(Xt,ft){var Ur=ft.width/ft.height,yn=Xt.height*Ur,Dn;yn<=Xt.width?Dn=Xt.height:(yn=Xt.width,Dn=yn/Ur);var Un=Xt.x+Xt.width/2,wi=Xt.y+Xt.height/2;return{x:Un-yn/2,y:wi-Dn/2,width:yn,height:Dn}}var ee=x.mergePath;function fe(Xt,ft){if(!Xt.applyTransform)return;var Ur=Xt.getBoundingRect(),yn=Ur.calculateTransform(ft);Xt.applyTransform(yn)}function ie(Xt){return C.subPixelOptimizeLine(Xt.shape,Xt.shape,Xt.style),Xt}function we(Xt){return C.subPixelOptimizeRect(Xt.shape,Xt.shape,Xt.style),Xt}var Ce=C.subPixelOptimize;function Le(Xt){return Xt!=null&&Xt!=="none"}var He=O.createHashMap(),ce=0;function Pe(Xt){if(typeof Xt!="string")return Xt;var ft=He.get(Xt);return ft||(ft=T.lift(Xt,-.1),ce<1e4&&(He.set(Xt,ft),ce++)),ft}function Q(Xt){if(!Xt.__hoverStlDirty)return;Xt.__hoverStlDirty=!1;var ft=Xt.__hoverStl;if(!ft){Xt.__cachedNormalStl=Xt.__cachedNormalZ2=null;return}var Ur=Xt.__cachedNormalStl={};Xt.__cachedNormalZ2=Xt.z2;var yn=Xt.style;for(var Dn in ft)ft[Dn]!=null&&(Ur[Dn]=yn[Dn]);Ur.fill=yn.fill,Ur.stroke=yn.stroke}function me(Xt){var ft=Xt.__hoverStl;if(!ft||Xt.__highlighted)return;var Ur=Xt.__zr,yn=Xt.useHoverLayer&&Ur&&Ur.painter.type==="canvas";if(Xt.__highlighted=yn?"layer":"plain",Xt.isGroup||!Ur&&Xt.useHoverLayer)return;var Dn=Xt,Un=Xt.style;yn&&(Dn=Ur.addHover(Xt),Un=Dn.style),Nt(Un),yn||Q(Dn),Un.extendFrom(ft),Je(Un,ft,"fill"),Je(Un,ft,"stroke"),Ct(Un),yn||(Xt.dirty(!1),Xt.z2+=_)}function Je(Xt,ft,Ur){!Le(ft[Ur])&&Le(Xt[Ur])&&(Xt[Ur]=Pe(Xt[Ur]))}function re(Xt){var ft=Xt.__highlighted;if(!ft)return;if(Xt.__highlighted=!1,Xt.isGroup)return;if(ft==="layer")Xt.__zr&&Xt.__zr.removeHover(Xt);else{var Ur=Xt.style,yn=Xt.__cachedNormalStl;yn&&(Nt(Ur),Xt.setStyle(yn),Ct(Ur));var Dn=Xt.__cachedNormalZ2;Dn!=null&&Xt.z2-Dn===_&&(Xt.z2=Dn)}}function G(Xt,ft,Ur){var yn=N,Dn=N,Un;Xt.__highlighted&&(yn=D,Un=!0),ft(Xt,Ur),Xt.__highlighted&&(Dn=D,Un=!0),Xt.isGroup&&Xt.traverse(function(wi){!wi.isGroup&&ft(wi,Ur)}),Un&&Xt.__highDownOnUpdate&&Xt.__highDownOnUpdate(yn,Dn)}function X(Xt,ft){ft=Xt.__hoverStl=ft!==!1&&(Xt.hoverStyle||ft||{}),Xt.__hoverStlDirty=!0,Xt.__highlighted&&(Xt.__cachedNormalStl=null,re(Xt),me(Xt))}function J(Xt){!Ie(this,Xt)&&!this.__highByOuter&&G(this,me)}function Ae(Xt){!Ie(this,Xt)&&!this.__highByOuter&&G(this,re)}function he(Xt){this.__highByOuter|=1<<(Xt||0),G(this,me)}function Me(Xt){!(this.__highByOuter&=~(1<<(Xt||0)))&&G(this,re)}function Ie(Xt,ft){return Xt.__highDownSilentOnTouch&&ft.zrByTouch}function oe(Xt,ft){pe(Xt,!0),G(Xt,X,ft)}function pe(Xt,ft){var Ur=ft===!1;if(Xt.__highDownSilentOnTouch=Xt.highDownSilentOnTouch,Xt.__highDownOnUpdate=Xt.highDownOnUpdate,!Ur||Xt.__highDownDispatcher){var yn=Ur?"off":"on";Xt[yn]("mouseover",J)[yn]("mouseout",Ae),Xt[yn]("emphasis",he)[yn]("normal",Me),Xt.__highByOuter=Xt.__highByOuter||0,Xt.__highDownDispatcher=!Ur}}function Oe(Xt){return!!(Xt&&Xt.__highDownDispatcher)}function Ye(Xt){var ft=B[Xt];return ft==null&&R<=32&&(ft=B[Xt]=R++),ft}function it(Xt,ft,Ur,yn,Dn,Un,wi){Dn=Dn||I;var Rn=Dn.labelFetcher,kn=Dn.labelDataIndex,Vn=Dn.labelDimIndex,Gt=Dn.labelProp,st=Ur.getShallow("show"),ue=yn.getShallow("show"),Ee;(st||ue)&&(Rn&&(Ee=Rn.getFormattedLabel(kn,"normal",null,Vn,Gt)),Ee==null&&(Ee=O.isFunction(Dn.defaultText)?Dn.defaultText(kn,Dn):Dn.defaultText));var je=st?Ee:null,Ve=ue?O.retrieve2(Rn?Rn.getFormattedLabel(kn,"emphasis",null,Vn,Gt):null,Ee):null;(je!=null||Ve!=null)&&(Te(Xt,Ur,Un,Dn),Te(ft,yn,wi,Dn,!0)),Xt.text=je,ft.text=Ve}function et(Xt,ft,Ur){var yn=Xt.style;ft&&(Nt(yn),Xt.setStyle(ft),Ct(yn)),yn=Xt.__hoverStl,Ur&&yn&&(Nt(yn),O.extend(yn,Ur),Ct(yn))}function Te(Xt,ft,Ur,yn,Dn){return ze(Xt,ft,yn,Dn),Ur&&O.extend(Xt,Ur),Xt}function tt(Xt,ft,Ur){var yn={isRectText:!0},Dn;Ur===!1?Dn=!0:yn.autoColor=Ur,ze(Xt,ft,yn,Dn)}function ze(Xt,ft,Ur,yn){if(Ur=Ur||I,Ur.isRectText){var Dn;Ur.getTextPosition?Dn=Ur.getTextPosition(ft,yn):(Dn=ft.getShallow("position")||(yn?null:"inside"),Dn==="outside"&&(Dn="top")),Xt.textPosition=Dn,Xt.textOffset=ft.getShallow("offset");var Un=ft.getShallow("rotate");Un!=null&&(Un*=Math.PI/180),Xt.textRotation=Un,Xt.textDistance=O.retrieve2(ft.getShallow("distance"),yn?null:5)}var wi=ft.ecModel,Rn=wi&&wi.option.textStyle,kn=dt(ft),Vn;if(kn){Vn={};for(var Gt in kn)if(kn.hasOwnProperty(Gt)){var st=ft.getModel(["rich",Gt]);Ot(Vn[Gt]={},st,Rn,Ur,yn)}}return Xt.rich=Vn,Ot(Xt,ft,Rn,Ur,yn,!0),Ur.forceRich&&!Ur.textStyle&&(Ur.textStyle={}),Xt}function dt(Xt){for(var ft;Xt&&Xt!==Xt.ecModel;){var Ur=(Xt.option||I).rich;if(Ur){ft=ft||{};for(var yn in Ur)Ur.hasOwnProperty(yn)&&(ft[yn]=1)}Xt=Xt.parentModel}return ft}function Ot(Xt,ft,Ur,yn,Dn,Un){Ur=!Dn&&Ur||I,Xt.textFill=Tt(ft.getShallow("color"),yn)||Ur.color,Xt.textStroke=Tt(ft.getShallow("textBorderColor"),yn)||Ur.textBorderColor,Xt.textStrokeWidth=O.retrieve2(ft.getShallow("textBorderWidth"),Ur.textBorderWidth),Dn||(Un&&(Xt.insideRollbackOpt=yn,Ct(Xt)),Xt.textFill==null&&(Xt.textFill=yn.autoColor)),Xt.fontStyle=ft.getShallow("fontStyle")||Ur.fontStyle,Xt.fontWeight=ft.getShallow("fontWeight")||Ur.fontWeight,Xt.fontSize=ft.getShallow("fontSize")||Ur.fontSize,Xt.fontFamily=ft.getShallow("fontFamily")||Ur.fontFamily,Xt.textAlign=ft.getShallow("align"),Xt.textVerticalAlign=ft.getShallow("verticalAlign")||ft.getShallow("baseline"),Xt.textLineHeight=ft.getShallow("lineHeight"),Xt.textWidth=ft.getShallow("width"),Xt.textHeight=ft.getShallow("height"),Xt.textTag=ft.getShallow("tag"),(!Un||!yn.disableBox)&&(Xt.textBackgroundColor=Tt(ft.getShallow("backgroundColor"),yn),Xt.textPadding=ft.getShallow("padding"),Xt.textBorderColor=Tt(ft.getShallow("borderColor"),yn),Xt.textBorderWidth=ft.getShallow("borderWidth"),Xt.textBorderRadius=ft.getShallow("borderRadius"),Xt.textBoxShadowColor=ft.getShallow("shadowColor"),Xt.textBoxShadowBlur=ft.getShallow("shadowBlur"),Xt.textBoxShadowOffsetX=ft.getShallow("shadowOffsetX"),Xt.textBoxShadowOffsetY=ft.getShallow("shadowOffsetY")),Xt.textShadowColor=ft.getShallow("textShadowColor")||Ur.textShadowColor,Xt.textShadowBlur=ft.getShallow("textShadowBlur")||Ur.textShadowBlur,Xt.textShadowOffsetX=ft.getShallow("textShadowOffsetX")||Ur.textShadowOffsetX,Xt.textShadowOffsetY=ft.getShallow("textShadowOffsetY")||Ur.textShadowOffsetY}function Tt(Xt,ft){return Xt!=="auto"?Xt:ft&&ft.autoColor?ft.autoColor:null}function Ct(Xt){var ft=Xt.textPosition,Ur=Xt.insideRollbackOpt,yn;if(Ur&&Xt.textFill==null){var Dn=Ur.autoColor,Un=Ur.isRectText,wi=Ur.useInsideStyle,Rn=wi!==!1&&(wi===!0||Un&&ft&&typeof ft=="string"&&ft.indexOf("inside")>=0),kn=!Rn&&Dn!=null;(Rn||kn)&&(yn={textFill:Xt.textFill,textStroke:Xt.textStroke,textStrokeWidth:Xt.textStrokeWidth}),Rn&&(Xt.textFill="#fff",Xt.textStroke==null&&(Xt.textStroke=Dn,Xt.textStrokeWidth==null&&(Xt.textStrokeWidth=2))),kn&&(Xt.textFill=Dn)}Xt.insideRollback=yn}function Nt(Xt){var ft=Xt.insideRollback;ft&&(Xt.textFill=ft.textFill,Xt.textStroke=ft.textStroke,Xt.textStrokeWidth=ft.textStrokeWidth,Xt.insideRollback=null)}function Be(Xt,ft){var Ur=ft&&ft.getModel("textStyle");return O.trim([Xt.fontStyle||Ur&&Ur.getShallow("fontStyle")||"",Xt.fontWeight||Ur&&Ur.getShallow("fontWeight")||"",(Xt.fontSize||Ur&&Ur.getShallow("fontSize")||12)+"px",Xt.fontFamily||Ur&&Ur.getShallow("fontFamily")||"sans-serif"].join(" "))}function $(Xt,ft,Ur,yn,Dn,Un){typeof Dn=="function"&&(Un=Dn,Dn=null);var wi=yn&&yn.isAnimationEnabled();if(wi){var Rn=Xt?"Update":"",kn=yn.getShallow("animationDuration"+Rn),Vn=yn.getShallow("animationEasing"+Rn),Gt=yn.getShallow("animationDelay"+Rn);typeof Gt=="function"&&(Gt=Gt(Dn,yn.getAnimationDelayParams?yn.getAnimationDelayParams(ft,Dn):null)),typeof kn=="function"&&(kn=kn(Dn)),kn>0?ft.animateTo(Ur,kn,Gt||0,Vn,Un,!!Un):(ft.stopAnimation(),ft.attr(Ur),Un&&Un())}else ft.stopAnimation(),ft.attr(Ur),Un&&Un()}function Z(Xt,ft,Ur,yn,Dn){$(!0,Xt,ft,Ur,yn,Dn)}function Re(Xt,ft,Ur,yn,Dn){$(!1,Xt,ft,Ur,yn,Dn)}function De(Xt,ft){for(var Ur=v.identity([]);Xt&&Xt!==ft;)v.mul(Ur,Xt.getLocalTransform(),Ur),Xt=Xt.parent;return Ur}function ae(Xt,ft,Ur){return ft&&!O.isArrayLike(ft)&&(ft=f.getLocalTransform(ft)),Ur&&(ft=v.invert([],ft)),S.applyTransform([],Xt,ft)}function gt(Xt,ft,Ur){var yn=ft[4]===0||ft[5]===0||ft[0]===0?1:Math.abs(2*ft[4]/ft[0]),Dn=ft[4]===0||ft[5]===0||ft[2]===0?1:Math.abs(2*ft[4]/ft[2]),Un=[Xt==="left"?-yn:Xt==="right"?yn:0,Xt==="top"?-Dn:Xt==="bottom"?Dn:0];return Un=ae(Un,ft,Ur),Math.abs(Un[0])>Math.abs(Un[1])?Un[0]>0?"right":"left":Un[1]>0?"bottom":"top"}function jt(Xt,ft,Ur,yn){if(!Xt||!ft)return;function Dn(Rn){var kn={};return Rn.traverse(function(Vn){!Vn.isGroup&&Vn.anid&&(kn[Vn.anid]=Vn)}),kn}function Un(Rn){var kn={position:S.clone(Rn.position),rotation:Rn.rotation};return Rn.shape&&(kn.shape=O.extend({},Rn.shape)),kn}var wi=Dn(Xt);ft.traverse(function(Rn){if(!Rn.isGroup&&Rn.anid){var kn=wi[Rn.anid];if(kn){var Vn=Un(Rn);Rn.attr(Un(kn)),Z(Rn,Vn,Ur,Rn.dataIndex)}}})}function ut(Xt,ft){return O.map(Xt,function(Ur){var yn=Ur[0];yn=w(yn,ft.x),yn=b(yn,ft.x+ft.width);var Dn=Ur[1];return Dn=w(Dn,ft.y),Dn=b(Dn,ft.y+ft.height),[yn,Dn]})}function rr(Xt,ft){var Ur=w(Xt.x,ft.x),yn=b(Xt.x+Xt.width,ft.x+ft.width),Dn=w(Xt.y,ft.y),Un=b(Xt.y+Xt.height,ft.y+ft.height);if(yn>=Ur&&Un>=Dn)return{x:Ur,y:Dn,width:yn-Ur,height:Un-Dn}}function pr(Xt,ft,Ur){ft=O.extend({rectHover:!0},ft);var yn=ft.style={strokeNoScale:!0};if(Ur=Ur||{x:-1,y:-1,width:2,height:2},Xt)return Xt.indexOf("image://")===0?(yn.image=Xt.slice(8),O.defaults(yn,Ur),new c(ft)):V(Xt.replace("path://",""),ft,Ur,"center")}function nn(Xt,ft,Ur,yn,Dn){for(var Un=0,wi=Dn[Dn.length-1];Un<Dn.length;Un++){var Rn=Dn[Un];if(mr(Xt,ft,Ur,yn,Rn[0],Rn[1],wi[0],wi[1]))return!0;wi=Rn}}function mr(Xt,ft,Ur,yn,Dn,Un,wi,Rn){var kn=Ur-Xt,Vn=yn-ft,Gt=wi-Dn,st=Rn-Un,ue=vr(Gt,st,kn,Vn);if($t(ue))return!1;var Ee=Xt-Dn,je=ft-Un,Ve=vr(Ee,je,kn,Vn)/ue;if(Ve<0||Ve>1)return!1;var $e=vr(Ee,je,Gt,st)/ue;return!($e<0||$e>1)}function vr(Xt,ft,Ur,yn){return Xt*yn-Ur*ft}function $t(Xt){return Xt<=1e-6&&Xt>=-1e-6}K("circle",a),K("sector",n),K("ring",e),K("polygon",s),K("polyline",t),K("rect",i),K("line",l),K("bezierCurve",u),K("arc",h),P.Z2_EMPHASIS_LIFT=_,P.CACHED_LABEL_STYLE_PROPERTIES=L,P.extendShape=H,P.extendPath=F,P.registerShape=K,P.getShapeClass=j,P.makePath=V,P.makeImage=z,P.mergePath=ee,P.resizePath=fe,P.subPixelOptimizeLine=ie,P.subPixelOptimizeRect=we,P.subPixelOptimize=Ce,P.setElementHoverStyle=X,P.setHoverStyle=oe,P.setAsHighDownDispatcher=pe,P.isHighDownDispatcher=Oe,P.getHighlightDigit=Ye,P.setLabelStyle=it,P.modifyLabelStyle=et,P.setTextStyle=Te,P.setText=tt,P.getFont=Be,P.updateProps=Z,P.initProps=Re,P.getTransform=De,P.applyTransform=ae,P.transformDirection=gt,P.groupTransition=jt,P.clipPointsByRect=ut,P.clipRectByRect=rr,P.createIcon=pr,P.linePolygonIntersect=nn,P.lineLineIntersect=mr},IyUQ:function(U,P,d){var O=d("bYtY"),x=d("YH21"),T=d("IwbS"),v=d("iLNv"),S=d("fc+c"),m=d("OELB"),f=d("+TT/"),c=d("72pK"),o=T.Rect,r=m.linearMap,a=m.asc,n=O.bind,e=O.each,s=7,t=1,i=30,l="horizontal",u="vertical",h=5,p=["line","bar","candlestick","scatter"],g=S.extend({type:"dataZoom.slider",init:function(C,w){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=w},render:function(C,w,b,I){if(g.superApply(this,"render",arguments),v.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=C.get("orient"),this.dataZoomModel.get("show")===!1){this.group.removeAll();return}(!I||I.type!=="dataZoom"||I.from!==this.uid)&&this._buildView(),this._updateView()},remove:function(){g.superApply(this,"remove",arguments),v.clear(this,"_dispatchZoomAction")},dispose:function(){g.superApply(this,"dispose",arguments),v.clear(this,"_dispatchZoomAction")},_buildView:function(){var C=this.group;C.removeAll(),this._resetLocation(),this._resetInterval();var w=this._displayables.barGroup=new T.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),C.add(w),this._positionGroup()},_resetLocation:function(){var C=this.dataZoomModel,w=this.api,b=this._findCoordRect(),I={width:w.getWidth(),height:w.getHeight()},_=this._orient===l?{right:I.width-b.x-b.width,top:I.height-i-s,width:b.width,height:i}:{right:s,top:b.y,width:i,height:b.height},L=f.getLayoutParams(C.option);O.each(["right","top","width","height"],function(N){L[N]==="ph"&&(L[N]=_[N])});var D=f.getLayoutRect(L,I,C.padding);this._location={x:D.x,y:D.y},this._size=[D.width,D.height],this._orient===u&&this._size.reverse()},_positionGroup:function(){var C=this.group,w=this._location,b=this._orient,I=this.dataZoomModel.getFirstTargetAxisModel(),_=I&&I.get("inverse"),L=this._displayables.barGroup,D=(this._dataShadowInfo||{}).otherAxisInverse;L.attr(b===l&&!_?{scale:D?[1,1]:[1,-1]}:b===l&&_?{scale:D?[-1,1]:[-1,-1]}:b===u&&!_?{scale:D?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:D?[-1,-1]:[-1,1],rotation:Math.PI/2});var N=C.getBoundingRect([L]);C.attr("position",[w.x-N.x,w.y-N.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var C=this.dataZoomModel,w=this._size,b=this._displayables.barGroup;b.add(new o({silent:!0,shape:{x:0,y:0,width:w[0],height:w[1]},style:{fill:C.get("backgroundColor")},z2:-40})),b.add(new o({shape:{x:0,y:0,width:w[0],height:w[1]},style:{fill:"transparent"},z2:0,onclick:O.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var C=this._dataShadowInfo=this._prepareDataShadowInfo();if(!C)return;var w=this._size,b=C.series,I=b.getRawData(),_=b.getShadowDim?b.getShadowDim():C.otherDim;if(_==null)return;var L=I.getDataExtent(_),D=(L[1]-L[0])*.3;L=[L[0]-D,L[1]+D];var N=[0,w[1]],R=[0,w[0]],B=[[w[0],0],[0,0]],M=[],H=R[1]/(I.count()-1),F=0,K=Math.round(I.count()/w[0]),j;I.each([_],function(z,Y){if(K>0&&Y%K){F+=H;return}var ee=z==null||isNaN(z)||z==="",fe=ee?0:r(z,L,N,!0);ee&&!j&&Y?(B.push([B[B.length-1][0],0]),M.push([M[M.length-1][0],0])):!ee&&j&&(B.push([F,0]),M.push([F,0])),B.push([F,fe]),M.push([F,fe]),F+=H,j=ee});var V=this.dataZoomModel;this._displayables.barGroup.add(new T.Polygon({shape:{points:B},style:O.defaults({fill:V.get("dataBackgroundColor")},V.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new T.Polyline({shape:{points:M},style:V.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))},_prepareDataShadowInfo:function(){var C=this.dataZoomModel,w=C.get("showDataShadow");if(w===!1)return;var b,I=this.ecModel;return C.eachTargetAxis(function(_,L){var D=C.getAxisProxy(_.name,L).getTargetSeriesModels();O.each(D,function(N){if(b)return;if(w!==!0&&O.indexOf(p,N.get("type"))<0)return;var R=I.getComponent(_.axis,L).axis,B=A(_.name),M,H=N.coordinateSystem;B!=null&&H.getOtherAxis&&(M=H.getOtherAxis(R).inverse),B=N.getData().mapDimension(B),b={thisAxis:R,series:N,thisDim:_.name,otherDim:B,otherAxisInverse:M}},this)},this),b},_renderHandle:function(){var C=this._displayables,w=C.handles=[],b=C.handleLabels=[],I=this._displayables.barGroup,_=this._size,L=this.dataZoomModel;I.add(C.filler=new o({draggable:!0,cursor:y(this._orient),drift:n(this._onDragMove,this,"all"),ondragstart:n(this._showDataInfo,this,!0),ondragend:n(this._onDragEnd,this),onmouseover:n(this._showDataInfo,this,!0),onmouseout:n(this._showDataInfo,this,!1),style:{fill:L.get("fillerColor"),textPosition:"inside"}})),I.add(new o({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:_[0],height:_[1]},style:{stroke:L.get("dataBackgroundColor")||L.get("borderColor"),lineWidth:t,fill:"rgba(0,0,0,0)"}})),e([0,1],function(D){var N=T.createIcon(L.get("handleIcon"),{cursor:y(this._orient),draggable:!0,drift:n(this._onDragMove,this,D),ondragend:n(this._onDragEnd,this),onmouseover:n(this._showDataInfo,this,!0),onmouseout:n(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),R=N.getBoundingRect();this._handleHeight=m.parsePercent(L.get("handleSize"),this._size[1]),this._handleWidth=R.width/R.height*this._handleHeight,N.setStyle(L.getModel("handleStyle").getItemStyle());var B=L.get("handleColor");B!=null&&(N.style.fill=B),I.add(w[D]=N);var M=L.textStyleModel;this.group.add(b[D]=new T.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:M.getTextColor(),textFont:M.getFont()},z2:10}))},this)},_resetInterval:function(){var C=this._range=this.dataZoomModel.getPercentRange(),w=this._getViewExtent();this._handleEnds=[r(C[0],[0,100],w,!0),r(C[1],[0,100],w,!0)]},_updateInterval:function(C,w){var b=this.dataZoomModel,I=this._handleEnds,_=this._getViewExtent(),L=b.findRepresentativeAxisProxy().getMinMaxSpan(),D=[0,100];c(w,I,_,b.get("zoomLock")?"all":C,L.minSpan!=null?r(L.minSpan,D,_,!0):null,L.maxSpan!=null?r(L.maxSpan,D,_,!0):null);var N=this._range,R=this._range=a([r(I[0],_,D,!0),r(I[1],_,D,!0)]);return!N||N[0]!==R[0]||N[1]!==R[1]},_updateView:function(C){var w=this._displayables,b=this._handleEnds,I=a(b.slice()),_=this._size;e([0,1],function(L){var D=w.handles[L],N=this._handleHeight;D.attr({scale:[N/2,N/2],position:[b[L],_[1]/2-N/2]})},this),w.filler.setShape({x:I[0],y:0,width:I[1]-I[0],height:_[1]}),this._updateDataInfo(C)},_updateDataInfo:function(C){var w=this.dataZoomModel,b=this._displayables,I=b.handleLabels,_=this._orient,L=["",""];if(w.get("showDetail")){var D=w.findRepresentativeAxisProxy();if(D){var N=D.getAxisModel().axis,R=this._range,B=C?D.calculateDataWindow({start:R[0],end:R[1]}).valueWindow:D.getDataValueWindow();L=[this._formatLabel(B[0],N),this._formatLabel(B[1],N)]}}var M=a(this._handleEnds.slice());H.call(this,0),H.call(this,1);function H(F){var K=T.getTransform(b.handles[F].parent,this.group),j=T.transformDirection(F===0?"right":"left",K),V=this._handleWidth/2+h,z=T.applyTransform([M[F]+(F===0?-V:V),this._size[1]/2],K);I[F].setStyle({x:z[0],y:z[1],textVerticalAlign:_===l?"middle":j,textAlign:_===l?j:"center",text:L[F]})}},_formatLabel:function(C,w){var b=this.dataZoomModel,I=b.get("labelFormatter"),_=b.get("labelPrecision");(_==null||_==="auto")&&(_=w.getPixelPrecision());var L=C==null||isNaN(C)?"":w.type==="category"||w.type==="time"?w.scale.getLabel(Math.round(C)):C.toFixed(Math.min(_,20));return O.isFunction(I)?I(C,L):O.isString(I)?I.replace("{value}",L):L},_showDataInfo:function(C){C=this._dragging||C;var w=this._displayables.handleLabels;w[0].attr("invisible",!C),w[1].attr("invisible",!C)},_onDragMove:function(C,w,b,I){this._dragging=!0,x.stop(I.event);var _=this._displayables.barGroup.getLocalTransform(),L=T.applyTransform([w,b],_,!0),D=this._updateInterval(C,L[0]),N=this.dataZoomModel.get("realtime");this._updateView(!N),D&&N&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var C=this.dataZoomModel.get("realtime");!C&&this._dispatchZoomAction()},_onClickPanelClick:function(C){var w=this._size,b=this._displayables.barGroup.transformCoordToLocal(C.offsetX,C.offsetY);if(b[0]<0||b[0]>w[0]||b[1]<0||b[1]>w[1])return;var I=this._handleEnds,_=(I[0]+I[1])/2,L=this._updateInterval("all",b[0]-_);this._updateView(),L&&this._dispatchZoomAction()},_dispatchZoomAction:function(){var C=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:C[0],end:C[1]})},_findCoordRect:function(){var C;if(e(this.getTargetCoordInfo(),function(I){if(!C&&I.length){var _=I[0].model.coordinateSystem;C=_.getRect&&_.getRect()}}),!C){var w=this.api.getWidth(),b=this.api.getHeight();C={x:w*.2,y:b*.2,width:w*.6,height:b*.6}}return C}});function A(C){var w={x:"y",y:"x",radius:"angle",angle:"radius"};return w[C]}function y(C){return C==="vertical"?"ns-resize":"ew-resize"}var E=g;U.exports=E},IzEo:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("lnY3"),v=d.n(T),S=d("Znn+"),m=d("14J3"),f=d("jCWc")},J66h:function(U,P,d){(function(O){var x,T;(function(v,S){U.exports=S(v)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof O!="undefined"?O:this,function(v){"use strict";v=v||{};var S=v.Base64,m="2.6.4",f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=function(N){for(var R={},B=0,M=N.length;B<M;B++)R[N.charAt(B)]=B;return R}(f),o=String.fromCharCode,r=function(R){if(R.length<2){var B=R.charCodeAt(0);return B<128?R:B<2048?o(192|B>>>6)+o(128|B&63):o(224|B>>>12&15)+o(128|B>>>6&63)+o(128|B&63)}else{var B=65536+(R.charCodeAt(0)-55296)*1024+(R.charCodeAt(1)-56320);return o(240|B>>>18&7)+o(128|B>>>12&63)+o(128|B>>>6&63)+o(128|B&63)}},a=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,n=function(R){return R.replace(a,r)},e=function(R){var B=[0,2,1][R.length%3],M=R.charCodeAt(0)<<16|(R.length>1?R.charCodeAt(1):0)<<8|(R.length>2?R.charCodeAt(2):0),H=[f.charAt(M>>>18),f.charAt(M>>>12&63),B>=2?"=":f.charAt(M>>>6&63),B>=1?"=":f.charAt(M&63)];return H.join("")},s=v.btoa&&typeof v.btoa=="function"?function(N){return v.btoa(N)}:function(N){if(N.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return N.replace(/[\s\S]{1,3}/g,e)},t=function(R){return s(n(String(R)))},i=function(R){return R.replace(/[+\/]/g,function(B){return B=="+"?"-":"_"}).replace(/=/g,"")},l=function(R,B){return B?i(t(R)):t(R)},u=function(R){return l(R,!0)},h;v.Uint8Array&&(h=function(R,B){for(var M="",H=0,F=R.length;H<F;H+=3){var K=R[H],j=R[H+1],V=R[H+2],z=K<<16|j<<8|V;M+=f.charAt(z>>>18)+f.charAt(z>>>12&63)+(typeof j!="undefined"?f.charAt(z>>>6&63):"=")+(typeof V!="undefined"?f.charAt(z&63):"=")}return B?i(M):M});var p=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,g=function(R){switch(R.length){case 4:var B=(7&R.charCodeAt(0))<<18|(63&R.charCodeAt(1))<<12|(63&R.charCodeAt(2))<<6|63&R.charCodeAt(3),M=B-65536;return o((M>>>10)+55296)+o((M&1023)+56320);case 3:return o((15&R.charCodeAt(0))<<12|(63&R.charCodeAt(1))<<6|63&R.charCodeAt(2));default:return o((31&R.charCodeAt(0))<<6|63&R.charCodeAt(1))}},A=function(R){return R.replace(p,g)},y=function(R){var B=R.length,M=B%4,H=(B>0?c[R.charAt(0)]<<18:0)|(B>1?c[R.charAt(1)]<<12:0)|(B>2?c[R.charAt(2)]<<6:0)|(B>3?c[R.charAt(3)]:0),F=[o(H>>>16),o(H>>>8&255),o(H&255)];return F.length-=[0,0,2,1][M],F.join("")},E=v.atob&&typeof v.atob=="function"?function(N){return v.atob(N)}:function(N){return N.replace(/\S{1,4}/g,y)},C=function(R){return E(String(R).replace(/[^A-Za-z0-9\+\/]/g,""))},w=function(R){return A(E(R))},b=function(R){return String(R).replace(/[-_]/g,function(B){return B=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},I=function(R){return w(b(R))},_;v.Uint8Array&&(_=function(R){return Uint8Array.from(C(b(R)),function(B){return B.charCodeAt(0)})});var L=function(){var R=v.Base64;return v.Base64=S,R};if(v.Base64={VERSION:m,atob:C,btoa:s,fromBase64:I,toBase64:l,utob:n,encode:l,encodeURI:u,btou:A,decode:I,noConflict:L,fromUint8Array:h,toUint8Array:_},typeof Object.defineProperty=="function"){var D=function(R){return{value:R,enumerable:!1,writable:!0,configurable:!0}};v.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",D(function(){return I(this)})),Object.defineProperty(String.prototype,"toBase64",D(function(N){return l(this,N)})),Object.defineProperty(String.prototype,"toBase64URI",D(function(){return l(this,!0)}))}}return v.Meteor&&(Base64=v.Base64),U.exports?U.exports.Base64=v.Base64:!(x=[],T=function(){return v.Base64}.apply(P,x),T!==void 0&&(U.exports=T)),{Base64:v.Base64}})}).call(this,d("yLpj"))},JEkh:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("ProS"),v=d("bYtY"),S=d("ItGF"),m=d("4NO4"),f=d("7aKB"),c=d("OKJ2"),o=f.addCommas,r=f.encodeHTML;function a(s){m.defaultEmphasis(s,"label",["show"])}var n=T.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(s,t,i){this.mergeDefaultAndTheme(s,i),this._mergeOption(s,i,!1,!0)},isAnimationEnabled:function(){if(S.node)return!1;var s=this.__hostSeries;return this.getShallow("animation")&&s&&s.isAnimationEnabled()},mergeOption:function(s,t){this._mergeOption(s,t,!1,!1)},_mergeOption:function(s,t,i,l){var u=this.constructor,h=this.mainType+"Model";i||t.eachSeries(function(p){var g=p.get(this.mainType,!0),A=p[h];if(!g||!g.data){p[h]=null;return}A?A._mergeOption(g,t,!0):(l&&a(g),v.each(g.data,function(y){y instanceof Array?(a(y[0]),a(y[1])):a(y)}),A=new u(g,this,t),v.extend(A,{mainType:this.mainType,seriesIndex:p.seriesIndex,name:p.name,createdBySelf:!0}),A.__hostSeries=p),p[h]=A},this)},formatTooltip:function(s){var t=this.getData(),i=this.getRawValue(s),l=v.isArray(i)?v.map(i,o).join(", "):o(i),u=t.getName(s),h=r(this.name);return(i!=null||u)&&(h+="<br />"),u&&(h+=r(u),i!=null&&(h+=" : ")),i!=null&&(h+=r(l)),h},getData:function(){return this._data},setData:function(s){this._data=s}});v.mixin(n,c);var e=n;U.exports=e},JGo8:function(U,P,d){},JLnu:function(U,P,d){var O=d("+TT/"),x=d("OELB"),T=x.parsePercent,v=x.linearMap;function S(o,r){return O.getLayoutRect(o.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})}function m(o,r){for(var a=o.mapDimension("value"),n=o.mapArray(a,function(l){return l}),e=[],s=r==="ascending",t=0,i=o.count();t<i;t++)e[t]=t;return typeof r=="function"?e.sort(r):r!=="none"&&e.sort(function(l,u){return s?n[l]-n[u]:n[u]-n[l]}),e}function f(o){o.each(function(r){var a=o.getItemModel(r),n=a.getModel("label"),e=n.get("position"),s=a.getModel("labelLine"),t=o.getItemLayout(r),i=t.points,l=e==="inner"||e==="inside"||e==="center"||e==="insideLeft"||e==="insideRight",u,h,p,g;if(l)e==="insideLeft"?(h=(i[0][0]+i[3][0])/2+5,p=(i[0][1]+i[3][1])/2,u="left"):e==="insideRight"?(h=(i[1][0]+i[2][0])/2-5,p=(i[1][1]+i[2][1])/2,u="right"):(h=(i[0][0]+i[1][0]+i[2][0]+i[3][0])/4,p=(i[0][1]+i[1][1]+i[2][1]+i[3][1])/4,u="center"),g=[[h,p],[h,p]];else{var A,y,E,C=s.get("length");e==="left"?(A=(i[3][0]+i[0][0])/2,y=(i[3][1]+i[0][1])/2,E=A-C,h=E-5,u="right"):e==="right"?(A=(i[1][0]+i[2][0])/2,y=(i[1][1]+i[2][1])/2,E=A+C,h=E+5,u="left"):e==="rightTop"?(A=i[1][0],y=i[1][1],E=A+C,h=E+5,u="top"):e==="rightBottom"?(A=i[2][0],y=i[2][1],E=A+C,h=E+5,u="bottom"):e==="leftTop"?(A=i[0][0],y=i[1][1],E=A-C,h=E-5,u="right"):e==="leftBottom"?(A=i[3][0],y=i[2][1],E=A-C,h=E-5,u="right"):(A=(i[1][0]+i[2][0])/2,y=(i[1][1]+i[2][1])/2,E=A+C,h=E+5,u="left");var w=y;g=[[A,y],[E,w]],p=w}t.label={linePoints:g,x:h,y:p,verticalAlign:"middle",textAlign:u,inside:l}})}function c(o,r,a){o.eachSeriesByType("funnel",function(n){var e=n.getData(),s=e.mapDimension("value"),t=n.get("sort"),i=S(n,r),l=m(e,t),u=[T(n.get("minSize"),i.width),T(n.get("maxSize"),i.width)],h=e.getDataExtent(s),p=n.get("min"),g=n.get("max");p==null&&(p=Math.min(h[0],0)),g==null&&(g=h[1]);var A=n.get("funnelAlign"),y=n.get("gap"),E=(i.height-y*(e.count()-1))/e.count(),C=i.y,w=function(B,M){var H=e.get(s,B)||0,F=v(H,[p,g],u,!0),K;switch(A){case"left":K=i.x;break;case"center":K=i.x+(i.width-F)/2;break;case"right":K=i.x+i.width-F;break}return[[K,M],[K+F,M]]};t==="ascending"&&(E=-E,y=-y,C+=i.height,l=l.reverse());for(var b=0;b<l.length;b++){var I=l[b],_=l[b+1],L=e.getItemModel(I),D=L.get("itemStyle.height");D==null?D=E:(D=T(D,i.height),t==="ascending"&&(D=-D));var N=w(I,C),R=w(_,C+D);C+=D+y,e.setItemLayout(I,{points:N.concat(R.slice().reverse())})}f(e)})}U.exports=c},JSwD:function(U,P,d){"use strict";function O(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(u){return typeof u}:O=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},O(i)}Object.defineProperty(P,"__esModule",{value:!0}),P.default=t;var x=v(d("6BzB"));function T(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return T=function(){return i},i}function v(i){if(i&&i.__esModule)return i;if(i===null||O(i)!=="object"&&typeof i!="function")return{default:i};var l=T();if(l&&l.has(i))return l.get(i);var u={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in i)if(Object.prototype.hasOwnProperty.call(i,p)){var g=h?Object.getOwnPropertyDescriptor(i,p):null;g&&(g.get||g.set)?Object.defineProperty(u,p,g):u[p]=i[p]}return u.default=i,l&&l.set(i,u),u}var S=15,m=852,f=592,c=0,o=1,r=2,a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],n=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],e=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function t(i,l,u,h,p,g,A,y){var E=y.bits,C=0,w=0,b=0,I=0,_=0,L=0,D=0,N=0,R=0,B=0,M,H,F,K,j,V=null,z=0,Y,ee=new x.Buf16(S+1),fe=new x.Buf16(S+1),ie=null,we=0,Ce,Le,He;for(C=0;C<=S;C++)ee[C]=0;for(w=0;w<h;w++)ee[l[u+w]]++;for(_=E,I=S;I>=1&&!(ee[I]!==0);I--);if(_>I&&(_=I),I===0)return p[g++]=1<<24|64<<16|0,p[g++]=1<<24|64<<16|0,y.bits=1,0;for(b=1;b<I&&!(ee[b]!==0);b++);for(_<b&&(_=b),N=1,C=1;C<=S;C++)if(N<<=1,N-=ee[C],N<0)return-1;if(N>0&&(i===c||I!==1))return-1;for(fe[1]=0,C=1;C<S;C++)fe[C+1]=fe[C]+ee[C];for(w=0;w<h;w++)l[u+w]!==0&&(A[fe[l[u+w]]++]=w);if(i===c?(V=ie=A,Y=19):i===o?(V=a,z-=257,ie=n,we-=257,Y=256):(V=e,ie=s,Y=-1),B=0,w=0,C=b,j=g,L=_,D=0,F=-1,R=1<<_,K=R-1,i===o&&R>m||i===r&&R>f)return 1;for(;;){Ce=C-D,A[w]<Y?(Le=0,He=A[w]):A[w]>Y?(Le=ie[we+A[w]],He=V[z+A[w]]):(Le=32+64,He=0),M=1<<C-D,H=1<<L,b=H;do H-=M,p[j+(B>>D)+H]=Ce<<24|Le<<16|He|0;while(H!==0);for(M=1<<C-1;B&M;)M>>=1;if(M!==0?(B&=M-1,B+=M):B=0,w++,--ee[C]===0){if(C===I)break;C=l[u+A[w]]}if(C>_&&(B&K)!==F){for(D===0&&(D=_),j+=b,L=C-D,N=1<<L;L+D<I&&!(N-=ee[L+D],N<=0);)L++,N<<=1;if(R+=1<<L,i===o&&R>m||i===r&&R>f)return 1;F=B&K,p[F]=_<<24|L<<16|j-g|0}}return B!==0&&(p[j+B]=C-D<<24|64<<16|0),y.bits=_,0}},JVwQ:function(U,P,d){var O=d("ProS"),x=d("1NG9"),T=x.Polygon,v=d("IwbS"),S=d("bYtY"),m=S.bind,f=S.extend,c=d("gPAo"),o=O.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(a,n,e){var s=a.getData(),t=this.group,i=a.getLayerSeries(),l=s.getLayout("layoutInfo"),u=l.rect,h=l.boundaryGap;t.attr("position",[0,u.y+h[0]]);function p(E){return E.name}var g=new c(this._layersSeries||[],i,p,p),A={};g.add(m(y,this,"add")).update(m(y,this,"update")).remove(m(y,this,"remove")).execute();function y(E,C,w){var b=this._layers;if(E==="remove"){t.remove(b[C]);return}for(var I=[],_=[],L,D=i[C].indices,N=0;N<D.length;N++){var R=s.getItemLayout(D[N]),B=R.x,M=R.y0,H=R.y;I.push([B,M]),_.push([B,M+H]),L=s.getItemVisual(D[N],"color")}var F,K,j=s.getItemLayout(D[0]),V=s.getItemModel(D[N-1]),z=V.getModel("label"),Y=z.get("margin");if(E==="add"){var ee=A[C]=new v.Group;F=new T({shape:{points:I,stackedOnPoints:_,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),K=new v.Text({style:{x:j.x-Y,y:j.y0+j.y/2}}),ee.add(F),ee.add(K),t.add(ee),F.setClipPath(r(F.getBoundingRect(),a,function(){F.removeClipPath()}))}else{var ee=b[w];F=ee.childAt(0),K=ee.childAt(1),t.add(ee),A[C]=ee,v.updateProps(F,{shape:{points:I,stackedOnPoints:_}},a),v.updateProps(K,{style:{x:j.x-Y,y:j.y0+j.y/2}},a)}var fe=V.getModel("emphasis.itemStyle"),ie=V.getModel("itemStyle");v.setTextStyle(K.style,z,{text:z.get("show")?a.getFormattedLabel(D[N-1],"normal")||s.getName(D[N-1]):null,textVerticalAlign:"middle"}),F.setStyle(f({fill:L},ie.getItemStyle(["color"]))),v.setHoverStyle(F,fe.getItemStyle())}this._layersSeries=i,this._layers=A},dispose:function(){}});function r(a,n,e){var s=new v.Rect({shape:{x:a.x-10,y:a.y-10,width:0,height:a.height+20}});return v.initProps(s,{shape:{width:a.width+20,height:a.height+20}},n,e),s}U.exports=o},JgUQ:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};P.default=O},JsLm:function(U,P,d){"use strict";var O=d("pVnL"),x=d.n(O),T=d("lSNA"),v=d.n(T),S=d("lwsE"),m=d.n(S),f=d("W8MJ"),c=d.n(f),o=d("PJYZ"),r=d.n(o),a=d("7W2i"),n=d.n(a),e=d("LQ03"),s=d.n(e),t=d("q1tI"),i=d("i8i4"),l=d("TSYQ"),u=d.n(l),h=d("zT1h"),p=d("cDf5"),g=d.n(p),A=d("BGR+"),y=d("VTBJ"),E=d("1OyB"),C=d("vuIU"),w=d("Ji7U"),b=d("LK+K"),I=d("m+aA"),_=d("Zm9Q"),L=d("Kwbf"),D=d("c+Xe"),N=d("bdgK"),R="rc-observer-key",B=function(it){Object(w.a)(Te,it);var et=Object(b.a)(Te);function Te(){var tt;return Object(E.a)(this,Te),tt=et.apply(this,arguments),tt.resizeObserver=null,tt.childNode=null,tt.currentElement=null,tt.state={width:0,height:0,offsetHeight:0,offsetWidth:0},tt.onResize=function(ze){var dt=tt.props.onResize,Ot=ze[0].target,Tt=Ot.getBoundingClientRect(),Ct=Tt.width,Nt=Tt.height,Be=Ot.offsetWidth,$=Ot.offsetHeight,Z=Math.floor(Ct),Re=Math.floor(Nt);if(tt.state.width!==Z||tt.state.height!==Re||tt.state.offsetWidth!==Be||tt.state.offsetHeight!==$){var De={width:Z,height:Re,offsetWidth:Be,offsetHeight:$};tt.setState(De),dt&&Promise.resolve().then(function(){dt(Object(y.a)(Object(y.a)({},De),{},{offsetWidth:Be,offsetHeight:$}))})}},tt.setChildNode=function(ze){tt.childNode=ze},tt}return Object(C.a)(Te,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var ze=this.props.disabled;if(ze){this.destroyObserver();return}var dt=Object(I.a)(this.childNode||this),Ot=dt!==this.currentElement;Ot&&(this.destroyObserver(),this.currentElement=dt),!this.resizeObserver&&dt&&(this.resizeObserver=new N.default(this.onResize),this.resizeObserver.observe(dt))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var ze=this.props.children,dt=Object(_.a)(ze);if(dt.length>1)Object(L.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(dt.length===0)return Object(L.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Ot=dt[0];if(t.isValidElement(Ot)&&Object(D.c)(Ot)){var Tt=Ot.ref;dt[0]=t.cloneElement(Ot,{ref:Object(D.a)(Tt,this.setChildNode)})}return dt.length===1?dt[0]:dt.map(function(Ct,Nt){return!t.isValidElement(Ct)||"key"in Ct&&Ct.key!==null?Ct:t.cloneElement(Ct,{key:"".concat(R,"-").concat(Nt)})})}}]),Te}(t.Component);B.displayName="ResizeObserver";var M=B,H=d("H84U"),F=d("RIqP"),K=d.n(F),j=d("xEkU"),V=d.n(j);function z(it){var et,Te=function(dt){return function(){et=null,it.apply(void 0,K()(dt))}},tt=function(){if(et==null){for(var dt=arguments.length,Ot=new Array(dt),Tt=0;Tt<dt;Tt++)Ot[Tt]=arguments[Tt];et=V()(Te(Ot))}};return tt.cancel=function(){return V.a.cancel(et)},tt}function Y(){return function(it,et,Te){var tt=Te.value,ze=!1;return{configurable:!0,get:function(){if(ze||this===it.prototype||this.hasOwnProperty(et))return tt;var Ot=z(tt.bind(this));return ze=!0,Object.defineProperty(this,et,{value:Ot,configurable:!0,writable:!0}),ze=!1,Ot}}}}function ee(it){return it!==window?it.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function fe(it,et,Te){return Te!==void 0&&et.top>it.top-Te?Te+et.top:void 0}function ie(it,et,Te){if(Te!==void 0&&et.bottom<it.bottom+Te){var tt=window.innerHeight-et.bottom;return Te+tt}return}var we=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],Ce=[];function Le(){return Ce}function He(it,et){if(!it)return;var Te=Ce.find(function(tt){return tt.target===it});Te?Te.affixList.push(et):(Te={target:it,affixList:[et],eventHandlers:{}},Ce.push(Te),we.forEach(function(tt){Te.eventHandlers[tt]=Object(h.a)(it,tt,function(){Te.affixList.forEach(function(ze){ze.lazyUpdatePosition()})})}))}function ce(it){var et=Ce.find(function(Te){var tt=Te.affixList.some(function(ze){return ze===it});return tt&&(Te.affixList=Te.affixList.filter(function(ze){return ze!==it})),tt});et&&et.affixList.length===0&&(Ce=Ce.filter(function(Te){return Te!==et}),we.forEach(function(Te){var tt=et.eventHandlers[Te];tt&&tt.remove&&tt.remove()}))}var Pe=function(it,et,Te,tt){var ze=arguments.length,dt=ze<3?et:tt===null?tt=Object.getOwnPropertyDescriptor(et,Te):tt,Ot;if((typeof Reflect=="undefined"?"undefined":g()(Reflect))==="object"&&typeof Reflect.decorate=="function")dt=Reflect.decorate(it,et,Te,tt);else for(var Tt=it.length-1;Tt>=0;Tt--)(Ot=it[Tt])&&(dt=(ze<3?Ot(dt):ze>3?Ot(et,Te,dt):Ot(et,Te))||dt);return ze>3&&dt&&Object.defineProperty(et,Te,dt),dt};function Q(){return typeof window!="undefined"?window:null}var me;(function(it){it[it.None=0]="None",it[it.Prepare=1]="Prepare"})(me||(me={}));var Je=function(it){n()(Te,it);var et=s()(Te);function Te(){var tt;return m()(this,Te),tt=et.apply(this,arguments),tt.state={status:me.None,lastAffix:!1,prevTarget:null},tt.getOffsetTop=function(){var ze=tt.props.offsetBottom,dt=tt.props.offsetTop;return ze===void 0&&dt===void 0&&(dt=0),dt},tt.getOffsetBottom=function(){return tt.props.offsetBottom},tt.savePlaceholderNode=function(ze){tt.placeholderNode=ze},tt.saveFixedNode=function(ze){tt.fixedNode=ze},tt.measure=function(){var ze=tt.state,dt=ze.status,Ot=ze.lastAffix,Tt=tt.props.onChange,Ct=tt.getTargetFunc();if(dt!==me.Prepare||!tt.fixedNode||!tt.placeholderNode||!Ct)return;var Nt=tt.getOffsetTop(),Be=tt.getOffsetBottom(),$=Ct();if(!$)return;var Z={status:me.None},Re=ee($),De=ee(tt.placeholderNode),ae=fe(De,Re,Nt),gt=ie(De,Re,Be);ae!==void 0?(Z.affixStyle={position:"fixed",top:ae,width:De.width,height:De.height},Z.placeholderStyle={width:De.width,height:De.height}):gt!==void 0&&(Z.affixStyle={position:"fixed",bottom:gt,width:De.width,height:De.height},Z.placeholderStyle={width:De.width,height:De.height}),Z.lastAffix=!!Z.affixStyle,Tt&&Ot!==Z.lastAffix&&Tt(Z.lastAffix),tt.setState(Z)},tt.prepareMeasure=function(){if(tt.setState({status:me.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var ze},tt.render=function(){var ze=tt.context.getPrefixCls,dt=tt.state,Ot=dt.affixStyle,Tt=dt.placeholderStyle,Ct=tt.props,Nt=Ct.prefixCls,Be=Ct.children,$=u()(v()({},ze("affix",Nt),Ot)),Z=Object(A.default)(tt.props,["prefixCls","offsetTop","offsetBottom","target","onChange"]);return t.createElement(M,{onResize:function(){tt.updatePosition()}},t.createElement("div",x()({},Z,{ref:tt.savePlaceholderNode}),Ot&&t.createElement("div",{style:Tt,"aria-hidden":"true"}),t.createElement("div",{className:$,ref:tt.saveFixedNode,style:Ot},t.createElement(M,{onResize:function(){tt.updatePosition()}},Be))))},tt}return c()(Te,[{key:"getTargetFunc",value:function(){var ze=this.context.getTargetContainer,dt=this.props.target;return dt!==void 0?dt:ze||Q}},{key:"componentDidMount",value:function(){var ze=this,dt=this.getTargetFunc();dt&&(this.timeout=setTimeout(function(){He(dt(),ze),ze.updatePosition()}))}},{key:"componentDidUpdate",value:function(ze){var dt=this.state.prevTarget,Ot=this.getTargetFunc(),Tt=null;Ot&&(Tt=Ot()||null),dt!==Tt&&(ce(this),Tt&&(He(Tt,this),this.updatePosition()),this.setState({prevTarget:Tt})),(ze.offsetTop!==this.props.offsetTop||ze.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),ce(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var ze=this.getTargetFunc(),dt=this.state.affixStyle;if(ze&&dt){var Ot=this.getOffsetTop(),Tt=this.getOffsetBottom(),Ct=ze();if(Ct&&this.placeholderNode){var Nt=ee(Ct),Be=ee(this.placeholderNode),$=fe(Be,Nt,Ot),Z=ie(Be,Nt,Tt);if($!==void 0&&dt.top===$||Z!==void 0&&dt.bottom===Z)return}}this.prepareMeasure()}}]),Te}(t.Component);Je.contextType=H.b,Pe([Y()],Je.prototype,"updatePosition",null),Pe([Y()],Je.prototype,"lazyUpdatePosition",null);var re=Je,G=d("zAh6"),X=d("i6bk"),J=t.createContext(null),Ae=J;function he(){return window}function Me(it,et){if(!it.getClientRects().length)return 0;var Te=it.getBoundingClientRect();return Te.width||Te.height?et===window?(et=it.ownerDocument.documentElement,Te.top-et.clientTop):Te.top-et.getBoundingClientRect().top:Te.top}var Ie=/#(\S+)$/,oe=function(it){n()(Te,it);var et=s()(Te);function Te(){var tt;return m()(this,Te),tt=et.apply(this,arguments),tt.state={activeLink:null},tt.links=[],tt.registerLink=function(ze){tt.links.includes(ze)||tt.links.push(ze)},tt.unregisterLink=function(ze){var dt=tt.links.indexOf(ze);dt!==-1&&tt.links.splice(dt,1)},tt.getContainer=function(){var ze=tt.context.getTargetContainer,dt=tt.props.getContainer,Ot=dt||ze||he;return Ot()},tt.handleScrollTo=function(ze){var dt=tt.props,Ot=dt.offsetTop,Tt=dt.targetOffset;tt.setCurrentActiveLink(ze);var Ct=tt.getContainer(),Nt=Object(X.a)(Ct,!0),Be=Ie.exec(ze);if(!Be)return;var $=document.getElementById(Be[1]);if(!$)return;var Z=Me($,Ct),Re=Nt+Z;Re-=Tt!==void 0?Tt:Ot||0,tt.animating=!0,Object(G.a)(Re,{callback:function(){tt.animating=!1},getContainer:tt.getContainer})},tt.saveInkNode=function(ze){tt.inkNode=ze},tt.setCurrentActiveLink=function(ze){var dt=tt.state.activeLink,Ot=tt.props.onChange;dt!==ze&&(tt.setState({activeLink:ze}),Ot&&Ot(ze))},tt.handleScroll=function(){if(tt.animating)return;var ze=tt.props,dt=ze.offsetTop,Ot=ze.bounds,Tt=ze.targetOffset,Ct=tt.getCurrentAnchor(Tt!==void 0?Tt:dt||0,Ot);tt.setCurrentActiveLink(Ct)},tt.updateInk=function(){var ze=r()(tt),dt=ze.prefixCls,Ot=i.findDOMNode(r()(tt)),Tt=Ot.getElementsByClassName("".concat(dt,"-link-title-active"))[0];Tt&&(tt.inkNode.style.top="".concat(Tt.offsetTop+Tt.clientHeight/2-4.5,"px"))},tt.render=function(){var ze=tt.context,dt=ze.getPrefixCls,Ot=ze.direction,Tt=tt.props,Ct=Tt.prefixCls,Nt=Tt.className,Be=Nt===void 0?"":Nt,$=Tt.style,Z=Tt.offsetTop,Re=Tt.affix,De=Tt.showInkInFixed,ae=Tt.children,gt=tt.state.activeLink,jt=dt("anchor",Ct);tt.prefixCls=jt;var ut=u()("".concat(jt,"-ink-ball"),{visible:gt}),rr=u()(Be,"".concat(jt,"-wrapper"),v()({},"".concat(jt,"-rtl"),Ot==="rtl")),pr=u()(jt,{fixed:!Re&&!De}),nn=x()({maxHeight:Z?"calc(100vh - ".concat(Z,"px)"):"100vh"},$),mr=t.createElement("div",{className:rr,style:nn},t.createElement("div",{className:pr},t.createElement("div",{className:"".concat(jt,"-ink")},t.createElement("span",{className:ut,ref:tt.saveInkNode})),ae));return t.createElement(Ae.Provider,{value:{registerLink:tt.registerLink,unregisterLink:tt.unregisterLink,activeLink:tt.state.activeLink,scrollTo:tt.handleScrollTo,onClick:tt.props.onClick}},Re?t.createElement(re,{offsetTop:Z,target:tt.getContainer},mr):mr)},tt}return c()(Te,[{key:"componentDidMount",value:function(){this.scrollContainer=this.getContainer(),this.scrollEvent=Object(h.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll()}},{key:"componentDidUpdate",value:function(){if(this.scrollEvent){var ze=this.getContainer();this.scrollContainer!==ze&&(this.scrollContainer=ze,this.scrollEvent.remove(),this.scrollEvent=Object(h.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll())}this.updateInk()}},{key:"componentWillUnmount",value:function(){this.scrollEvent&&this.scrollEvent.remove()}},{key:"getCurrentAnchor",value:function(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,Ot=this.props.getCurrentAnchor;if(typeof Ot=="function")return Ot();var Tt=[],Ct=this.getContainer();if(this.links.forEach(function(Be){var $=Ie.exec(Be.toString());if(!$)return;var Z=document.getElementById($[1]);if(Z){var Re=Me(Z,Ct);Re<ze+dt&&Tt.push({link:Be,top:Re})}}),Tt.length){var Nt=Tt.reduce(function(Be,$){return $.top>Be.top?$:Be});return Nt.link}return""}}]),Te}(t.Component);oe.defaultProps={affix:!0,showInkInFixed:!1},oe.contextType=H.b;var pe=function(it){n()(Te,it);var et=s()(Te);function Te(){var tt;return m()(this,Te),tt=et.apply(this,arguments),tt.handleClick=function(ze){var dt=tt.context,Ot=dt.scrollTo,Tt=dt.onClick,Ct=tt.props,Nt=Ct.href,Be=Ct.title;Tt&&Tt(ze,{title:Be,href:Nt}),Ot(Nt)},tt.renderAnchorLink=function(ze){var dt=ze.getPrefixCls,Ot=tt.props,Tt=Ot.prefixCls,Ct=Ot.href,Nt=Ot.title,Be=Ot.children,$=Ot.className,Z=Ot.target,Re=dt("anchor",Tt),De=tt.context.activeLink===Ct,ae=u()($,"".concat(Re,"-link"),v()({},"".concat(Re,"-link-active"),De)),gt=u()("".concat(Re,"-link-title"),v()({},"".concat(Re,"-link-title-active"),De));return t.createElement("div",{className:ae},t.createElement("a",{className:gt,href:Ct,title:typeof Nt=="string"?Nt:"",target:Z,onClick:tt.handleClick},Nt),Be)},tt}return c()(Te,[{key:"componentDidMount",value:function(){this.context.registerLink(this.props.href)}},{key:"componentDidUpdate",value:function(ze){var dt=ze.href,Ot=this.props.href;dt!==Ot&&(this.context.unregisterLink(dt),this.context.registerLink(Ot))}},{key:"componentWillUnmount",value:function(){this.context.unregisterLink(this.props.href)}},{key:"render",value:function(){return t.createElement(H.a,null,this.renderAnchorLink)}}]),Te}(t.Component);pe.defaultProps={href:"#"},pe.contextType=Ae;var Oe=pe;oe.Link=Oe;var Ye=P.a=oe},JuEJ:function(U,P,d){var O=d("bYtY"),x=d("4NO4"),T=O.each,v=O.isObject,S=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function m(t){var i=t&&t.itemStyle;if(!i)return;for(var l=0,u=S.length;l<u;l++){var h=S[l],p=i.normal,g=i.emphasis;p&&p[h]&&(t[h]=t[h]||{},t[h].normal?O.merge(t[h].normal,p[h]):t[h].normal=p[h],p[h]=null),g&&g[h]&&(t[h]=t[h]||{},t[h].emphasis?O.merge(t[h].emphasis,g[h]):t[h].emphasis=g[h],g[h]=null)}}function f(t,i,l){if(t&&t[i]&&(t[i].normal||t[i].emphasis)){var u=t[i].normal,h=t[i].emphasis;u&&(l?(t[i].normal=t[i].emphasis=null,O.defaults(t[i],u)):t[i]=u),h&&(t.emphasis=t.emphasis||{},t.emphasis[i]=h)}}function c(t){f(t,"itemStyle"),f(t,"lineStyle"),f(t,"areaStyle"),f(t,"label"),f(t,"labelLine"),f(t,"upperLabel"),f(t,"edgeLabel")}function o(t,i){var l=v(t)&&t[i],u=v(l)&&l.textStyle;if(u)for(var h=0,p=x.TEXT_STYLE_OPTIONS.length;h<p;h++){var i=x.TEXT_STYLE_OPTIONS[h];u.hasOwnProperty(i)&&(l[i]=u[i])}}function r(t){t&&(c(t),o(t,"label"),t.emphasis&&o(t.emphasis,"label"))}function a(t){if(!v(t))return;m(t),c(t),o(t,"label"),o(t,"upperLabel"),o(t,"edgeLabel"),t.emphasis&&(o(t.emphasis,"label"),o(t.emphasis,"upperLabel"),o(t.emphasis,"edgeLabel"));var i=t.markPoint;i&&(m(i),r(i));var l=t.markLine;l&&(m(l),r(l));var u=t.markArea;u&&r(u);var h=t.data;if(t.type==="graph"){h=h||t.nodes;var p=t.links||t.edges;if(p&&!O.isTypedArray(p))for(var g=0;g<p.length;g++)r(p[g]);O.each(t.categories,function(E){c(E)})}if(h&&!O.isTypedArray(h))for(var g=0;g<h.length;g++)r(h[g]);var i=t.markPoint;if(i&&i.data)for(var A=i.data,g=0;g<A.length;g++)r(A[g]);var l=t.markLine;if(l&&l.data)for(var y=l.data,g=0;g<y.length;g++)O.isArray(y[g])?(r(y[g][0]),r(y[g][1])):r(y[g]);t.type==="gauge"?(o(t,"axisLabel"),o(t,"title"),o(t,"detail")):t.type==="treemap"?(f(t.breadcrumb,"itemStyle"),O.each(t.levels,function(E){c(E)})):t.type==="tree"&&c(t.leaves)}function n(t){return O.isArray(t)?t:t?[t]:[]}function e(t){return(O.isArray(t)?t[0]:t)||{}}function s(t,i){T(n(t.series),function(u){v(u)&&a(u)});var l=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];i&&l.push("valueAxis","categoryAxis","logAxis","timeAxis"),T(l,function(u){T(n(t[u]),function(h){h&&(o(h,"axisLabel"),o(h.axisPointer,"label"))})}),T(n(t.parallel),function(u){var h=u&&u.parallelAxisDefault;o(h,"axisLabel"),o(h&&h.axisPointer,"label")}),T(n(t.calendar),function(u){f(u,"itemStyle"),o(u,"dayLabel"),o(u,"monthLabel"),o(u,"yearLabel")}),T(n(t.radar),function(u){o(u,"name")}),T(n(t.geo),function(u){v(u)&&(r(u),T(n(u.regions),function(h){r(h)}))}),T(n(t.timeline),function(u){r(u),f(u,"label"),f(u,"itemStyle"),f(u,"controlStyle",!0);var h=u.data;O.isArray(h)&&O.each(h,function(p){O.isObject(p)&&(f(p,"label"),f(p,"itemStyle"))})}),T(n(t.toolbox),function(u){f(u,"iconStyle"),T(u.feature,function(h){f(h,"iconStyle")})}),o(e(t.axisPointer),"label"),o(e(t.tooltip).axisPointer,"label")}U.exports=s},K2GJ:function(U,P,d){var O=d("fW2E"),x=d("gut8"),T=x.ContextCachedBy,v=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],S=function(e){this.extendFrom(e,!1)};function m(n,e,s){var t=e.x==null?0:e.x,i=e.x2==null?1:e.x2,l=e.y==null?0:e.y,u=e.y2==null?0:e.y2;e.global||(t=t*s.width+s.x,i=i*s.width+s.x,l=l*s.height+s.y,u=u*s.height+s.y),t=isNaN(t)?0:t,i=isNaN(i)?1:i,l=isNaN(l)?0:l,u=isNaN(u)?0:u;var h=n.createLinearGradient(t,l,i,u);return h}function f(n,e,s){var t=s.width,i=s.height,l=Math.min(t,i),u=e.x==null?.5:e.x,h=e.y==null?.5:e.y,p=e.r==null?.5:e.r;e.global||(u=u*t+s.x,h=h*i+s.y,p=p*l);var g=n.createRadialGradient(u,h,0,u,h,p);return g}S.prototype={constructor:S,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(e,s,t){var i=this,l=t&&t.style,u=!l||e.__attrCachedBy!==T.STYLE_BIND;e.__attrCachedBy=T.STYLE_BIND;for(var h=0;h<v.length;h++){var p=v[h],g=p[0];(u||i[g]!==l[g])&&(e[g]=O(e,g,i[g]||p[1]))}if((u||i.fill!==l.fill)&&(e.fillStyle=i.fill),(u||i.stroke!==l.stroke)&&(e.strokeStyle=i.stroke),(u||i.opacity!==l.opacity)&&(e.globalAlpha=i.opacity==null?1:i.opacity),(u||i.blend!==l.blend)&&(e.globalCompositeOperation=i.blend||"source-over"),this.hasStroke()){var A=i.lineWidth;e.lineWidth=A/(this.strokeNoScale&&s&&s.getLineScale?s.getLineScale():1)}},hasFill:function(){var e=this.fill;return e!=null&&e!=="none"},hasStroke:function(){var e=this.stroke;return e!=null&&e!=="none"&&this.lineWidth>0},extendFrom:function(e,s){if(e)for(var t in e)e.hasOwnProperty(t)&&(s===!0||(s===!1?!this.hasOwnProperty(t):e[t]!=null))&&(this[t]=e[t])},set:function(e,s){typeof e=="string"?this[e]=s:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,s,t){for(var i=s.type==="radial"?f:m,l=i(e,s,t),u=s.colorStops,h=0;h<u.length;h++)l.addColorStop(u[h].offset,u[h].color);return l}};for(var c=S.prototype,o=0;o<v.length;o++){var r=v[o];r[0]in c||(c[r[0]]=r[1])}S.getGradient=c.getGradient;var a=S;U.exports=a},K3mO:function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("3y9D"),d("WYAk"))})(this,function(O){return function(){var x=O,T=x.lib,v=T.Base,S=T.WordArray,m=x.algo,f=m.MD5,c=m.EvpKDF=v.extend({cfg:v.extend({keySize:128/32,hasher:f,iterations:1}),init:function(r){this.cfg=this.cfg.extend(r)},compute:function(r,a){for(var n,e=this.cfg,s=e.hasher.create(),t=S.create(),i=t.words,l=e.keySize,u=e.iterations;i.length<l;){n&&s.update(n),n=s.update(r).finalize(a),s.reset();for(var h=1;h<u;h++)n=s.finalize(n),s.reset();t.concat(n)}return t.sigBytes=l*4,t}});x.EvpKDF=function(o,r,a){return c.create(a).compute(o,r)}}(),O.EvpKDF})},K4ya:function(U,P,d){var O=d("bYtY"),x=d("XxSj"),T=O.each;function v(o){if(o){for(var r in o)if(o.hasOwnProperty(r))return!0}}function S(o,r,a){var n={};return T(r,function(s){var t=n[s]=e();T(o[s],function(i,l){if(!x.isValidType(l))return;var u={type:l,visual:i};a&&a(u,s),t[l]=new x(u),l==="opacity"&&(u=O.clone(u),u.type="colorAlpha",t.__hidden.__alphaForOpacity=new x(u))})}),n;function e(){var s=function(){};s.prototype.__hidden=s.prototype;var t=new s;return t}}function m(o,r,a){var n;O.each(a,function(e){r.hasOwnProperty(e)&&v(r[e])&&(n=!0)}),n&&O.each(a,function(e){r.hasOwnProperty(e)&&v(r[e])?o[e]=O.clone(r[e]):delete o[e]})}function f(o,r,a,n,e,s){var t={};O.each(o,function(p){var g=x.prepareVisualTypes(r[p]);t[p]=g});var i;function l(p){return a.getItemVisual(i,p)}function u(p,g){a.setItemVisual(i,p,g)}s==null?a.each(h):a.each([s],h);function h(p,g){i=s==null?p:g;var A=a.getRawDataItem(i);if(A&&A.visualMap===!1)return;for(var y=n.call(e,p),E=r[y],C=t[y],w=0,b=C.length;w<b;w++){var I=C[w];E[I]&&E[I].applyVisual(p,l,u)}}}function c(o,r,a,n){var e={};O.each(o,function(t){var i=x.prepareVisualTypes(r[t]);e[t]=i});function s(t,i){n!=null&&(n=i.getDimension(n));function l(I){return i.getItemVisual(h,I)}function u(I,_){i.setItemVisual(h,I,_)}for(var h;(h=t.next())!=null;){var p=i.getRawDataItem(h);if(p&&p.visualMap===!1)continue;for(var g=n!=null?i.get(n,h,!0):h,A=a(g),y=r[A],E=e[A],C=0,w=E.length;C<w;C++){var b=E[C];y[b]&&y[b].applyVisual(g,l,u)}}}return{progress:s}}P.createVisualMappings=S,P.replaceVisualOption=m,P.applyVisual=f,P.incrementalApplyVisual=c},KCsZ:function(U,P,d){var O=d("bYtY");function x(T){for(var v=0;v<T.length;v++)T[v][1]||(T[v][1]=T[v][0]);return function(S,m,f){for(var c={},o=0;o<T.length;o++){var r=T[o][1];if(m&&O.indexOf(m,r)>=0||f&&O.indexOf(f,r)<0)continue;var a=S.getShallow(r);a!=null&&(c[T[o][0]]=a)}return c}}U.exports=x},KPFz:function(U,P,d){},KQeH:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};P.default=O},KS52:function(U,P,d){var O=d("OELB"),x=O.parsePercent,T=O.linearMap,v=d("+TT/"),S=d("u3DP"),m=d("bYtY"),f=Math.PI*2,c=Math.PI/180;function o(a,n){return v.getLayoutRect(a.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})}function r(a,n,e,s){n.eachSeriesByType(a,function(t){var i=t.getData(),l=i.mapDimension("value"),u=o(t,e),h=t.get("center"),p=t.get("radius");m.isArray(p)||(p=[0,p]),m.isArray(h)||(h=[h,h]);var g=x(u.width,e.getWidth()),A=x(u.height,e.getHeight()),y=Math.min(g,A),E=x(h[0],g)+u.x,C=x(h[1],A)+u.y,w=x(p[0],y/2),b=x(p[1],y/2),I=-t.get("startAngle")*c,_=t.get("minAngle")*c,L=0;i.each(l,function(Y){!isNaN(Y)&&L++});var D=i.getSum(l),N=Math.PI/(D||L)*2,R=t.get("clockwise"),B=t.get("roseType"),M=t.get("stillShowZeroSum"),H=i.getDataExtent(l);H[0]=0;var F=f,K=0,j=I,V=R?1:-1;if(i.each(l,function(Y,ee){var fe;if(isNaN(Y)){i.setItemLayout(ee,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:R,cx:E,cy:C,r0:w,r:B?NaN:b,viewRect:u});return}B!=="area"?fe=D===0&&M?N:Y*N:fe=f/L,fe<_?(fe=_,F-=_):K+=Y;var ie=j+V*fe;i.setItemLayout(ee,{angle:fe,startAngle:j,endAngle:ie,clockwise:R,cx:E,cy:C,r0:w,r:B?T(Y,H,[w,b]):b,viewRect:u}),j=ie}),F<f&&L)if(F<=.001){var z=f/L;i.each(l,function(Y,ee){if(!isNaN(Y)){var fe=i.getItemLayout(ee);fe.angle=z,fe.startAngle=I+V*ee*z,fe.endAngle=I+V*(ee+1)*z}})}else N=F/K,j=I,i.each(l,function(Y,ee){if(!isNaN(Y)){var fe=i.getItemLayout(ee),ie=fe.angle===_?_:Y*N;fe.startAngle=j,fe.endAngle=j+V*ie,j+=V*ie}});S(t,b,u.width,u.height,u.x,u.y)})}U.exports=r},KUOm:function(U,P){function d(O){var x={};O.eachSeriesByType("graph",function(T){var v=T.getCategoriesData(),S=T.getData(),m={};v.each(function(f){var c=v.getName(f);m["ec-"+c]=f;var o=v.getItemModel(f),r=o.get("itemStyle.color")||T.getColorFromPalette(c,x);v.setItemVisual(f,"color",r);for(var a=["opacity","symbol","symbolSize","symbolKeepAspect"],n=0;n<a.length;n++){var e=o.getShallow(a[n],!0);e!=null&&v.setItemVisual(f,a[n],e)}}),v.count()&&S.each(function(f){var c=S.getItemModel(f),o=c.getShallow("category");if(o!=null){typeof o=="string"&&(o=m["ec-"+o]);for(var r=["color","opacity","symbol","symbolSize","symbolKeepAspect"],a=0;a<r.length;a++)S.getItemVisual(f,r[a],!0)==null&&S.setItemVisual(f,r[a],v.getItemVisual(o,r[a]))}})})}U.exports=d},Kagy:function(U,P){var d={legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};U.exports=d},KamJ:function(U,P,d){var O=d("ProS"),x=d("szbU");d("vF/C"),d("qwVE"),d("BuqR"),d("AE9C"),d("1u/T"),O.registerPreprocessor(x)},KmBX:function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("CP8R")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="FilterFilled";var c=v.forwardRef(f);P.default=c},KmYQ:function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.ZeroPadding={pad:function(T,v){var S=v*4;T.clamp(),T.sigBytes+=S-(T.sigBytes%S||S)},unpad:function(T){for(var v=T.words,S=T.sigBytes-1,S=T.sigBytes-1;S>=0;S--)if(v[S>>>2]>>>24-S%4*8&255){T.sigBytes=S+1;break}}},O.pad.ZeroPadding})},"KpQ+":function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("E/ki")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="ClockCircleOutlined";var c=v.forwardRef(f);P.default=c},KrTs:function(U,P,d){"use strict";var O=d("lSNA"),x=d.n(O),T=d("cDf5"),v=d.n(T),S=d("pVnL"),m=d.n(S),f=d("q1tI"),c=d("UmKh"),o=d("TSYQ"),r=d.n(o),a=d("J4zp"),n=d.n(a),e=d("H84U"),s=d("0n0R"),t=function(b,I){var _={};for(var L in b)Object.prototype.hasOwnProperty.call(b,L)&&I.indexOf(L)<0&&(_[L]=b[L]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,L=Object.getOwnPropertySymbols(b);D<L.length;D++)I.indexOf(L[D])<0&&Object.prototype.propertyIsEnumerable.call(b,L[D])&&(_[L[D]]=b[L[D]]);return _};function i(b){return b?b.toString().split("").reverse().map(function(I){var _=Number(I);return isNaN(_)?I:_}):[]}function l(b,I){for(var _=[],L=0;L<30;L++)_.push(f.createElement("p",{key:L.toString(),className:r()(I,{current:b===L})},L%10));return _}var u=function(I){var _=I.prefixCls,L=I.count,D=I.className,N=I.style,R=I.title,B=I.component,M=B===void 0?"sup":B,H=I.displayComponent,F=I.onAnimated,K=F===void 0?function(){}:F,j=t(I,["prefixCls","count","className","style","title","component","displayComponent","onAnimated"]),V=f.useState(!0),z=n()(V,2),Y=z[0],ee=z[1],fe=f.useState(L),ie=n()(fe,2),we=ie[0],Ce=ie[1],Le=f.useState(L),He=n()(Le,2),ce=He[0],Pe=He[1],Q=f.useState(L),me=n()(Q,2),Je=me[0],re=me[1],G=f.useContext(e.b),X=G.getPrefixCls,J=X("scroll-number",_);ce!==L&&(ee(!0),Pe(L)),f.useEffect(function(){re(we);var oe;return Y&&(oe=setTimeout(function(){ee(!1),Ce(L),K()})),function(){oe&&clearTimeout(oe)}},[Y,L,K]);var Ae=function(pe,Oe){var Ye=Math.abs(Number(we)),it=Math.abs(Number(Je)),et=Math.abs(i(we)[Oe]),Te=Math.abs(i(it)[Oe]);return Y?10+pe:Ye>it?et>=Te?10+pe:20+pe:et<=Te?10+pe:pe},he=function(pe,Oe){if(typeof pe=="number"){var Ye=Ae(pe,Oe),it=Y||i(Je)[Oe]===void 0;return f.createElement("span",{className:"".concat(J,"-only"),style:{transition:it?"none":void 0,msTransform:"translateY(".concat(-Ye*100,"%)"),WebkitTransform:"translateY(".concat(-Ye*100,"%)"),transform:"translateY(".concat(-Ye*100,"%)")},key:Oe},l(Ye,"".concat(J,"-only-unit")))}return f.createElement("span",{key:"symbol",className:"".concat(J,"-symbol")},pe)},Me=function(){return we&&Number(we)%1===0?i(we).map(function(pe,Oe){return he(pe,Oe)}).reverse():we},Ie=m()(m()({},j),{style:N,className:r()(J,D),title:R});return N&&N.borderColor&&(Ie.style=m()(m()({},N),{boxShadow:"0 0 0 1px ".concat(N.borderColor," inset")})),H?Object(s.a)(H,{className:r()("".concat(J,"-custom-component"),H.props&&H.props.className)}):f.createElement(M,Ie,Me())},h=u,p=d("09Wf");function g(b){return p.a.indexOf(b)!==-1}var A=function(I){var _,L=I.className,D=I.prefixCls,N=I.style,R=I.color,B=I.children,M=I.text,H=I.placement,F=H===void 0?"end":H,K=f.useContext(e.b),j=K.getPrefixCls,V=K.direction,z=j("ribbon",D),Y=g(R),ee=r()(z,L,"".concat(z,"-placement-").concat(F),(_={},x()(_,"".concat(z,"-rtl"),V==="rtl"),x()(_,"".concat(z,"-color-").concat(R),Y),_)),fe={},ie={};return R&&!Y&&(fe.background=R,ie.color=R),f.createElement("div",{className:"".concat(z,"-wrapper")},B,f.createElement("div",{className:ee,style:m()(m()({},fe),N)},M,f.createElement("div",{className:"".concat(z,"-corner"),style:ie})))},y=A,E=function(b,I){var _={};for(var L in b)Object.prototype.hasOwnProperty.call(b,L)&&I.indexOf(L)<0&&(_[L]=b[L]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,L=Object.getOwnPropertySymbols(b);D<L.length;D++)I.indexOf(L[D])<0&&Object.prototype.propertyIsEnumerable.call(b,L[D])&&(_[L[D]]=b[L[D]]);return _},C=function(I){var _,L,D=I.prefixCls,N=I.scrollNumberPrefixCls,R=I.children,B=I.status,M=I.text,H=I.color,F=I.count,K=F===void 0?null:F,j=I.overflowCount,V=j===void 0?99:j,z=I.dot,Y=z===void 0?!1:z,ee=I.size,fe=ee===void 0?"default":ee,ie=I.title,we=I.offset,Ce=I.style,Le=I.className,He=I.showZero,ce=He===void 0?!1:He,Pe=E(I,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),Q=f.useContext(e.b),me=Q.getPrefixCls,Je=Q.direction,re=me("badge",D),G=function(){var Ot=K>V?"".concat(V,"+"):K;return Ot},X=function(){return!!B||!!H},J=function(){var Ot=G();return Ot==="0"||Ot===0},Ae=function(){return Y&&!J()||X()},he=function(){return Ae()?"":G()},Me=function(){return ie||(typeof K=="string"||typeof K=="number"?K:void 0)},Ie=function(){return Je==="rtl"?we?m()({left:parseInt(we[0],10),marginTop:we[1]},Ce):Ce:we?m()({right:-parseInt(we[0],10),marginTop:we[1]},Ce):Ce},oe=function(){var Ot=he(),Tt=Ot==null||Ot==="";return(Tt||J()&&!ce)&&!Ae()},pe=function(){var Ot=oe();return Ot||!M?null:f.createElement("span",{className:"".concat(re,"-status-text")},M)},Oe=function(){var Ot=K;return!Ot||v()(Ot)!=="object"?void 0:Object(s.a)(Ot,{style:m()(m()({},Ie()),Ot.props&&Ot.props.style)})},Ye=function(){var Ot,Tt=me("scroll-number",N),Ct=he(),Nt=Ae(),Be=oe(),$=r()((Ot={},x()(Ot,"".concat(re,"-dot"),Nt),x()(Ot,"".concat(re,"-count"),!Nt),x()(Ot,"".concat(re,"-count-sm"),fe==="small"),x()(Ot,"".concat(re,"-multiple-words"),!Nt&&K&&K.toString&&K.toString().length>1),x()(Ot,"".concat(re,"-status-").concat(B),!!B),x()(Ot,"".concat(re,"-status-").concat(H),g(H)),Ot)),Z=Ie();return H&&!g(H)&&(Z=Z||{},Z.background=H),Be?null:f.createElement(h,{prefixCls:Tt,"data-show":!Be,className:$,count:Ct,displayComponent:Oe(),title:Me(),style:Z,key:"scrollNumber"})},it=r()((_={},x()(_,"".concat(re,"-status-dot"),X()),x()(_,"".concat(re,"-status-").concat(B),!!B),x()(_,"".concat(re,"-status-").concat(H),g(H)),_)),et={};H&&!g(H)&&(et.background=H);var Te=r()(Le,re,(L={},x()(L,"".concat(re,"-status"),X()),x()(L,"".concat(re,"-not-a-wrapper"),!R),x()(L,"".concat(re,"-rtl"),Je==="rtl"),L));if(!R&&X()){var tt=Ie(),ze=tt&&tt.color;return f.createElement("span",m()({},Pe,{className:Te,style:tt}),f.createElement("span",{className:it,style:et}),f.createElement("span",{style:{color:ze},className:"".concat(re,"-status-text")},M))}return f.createElement("span",m()({},Pe,{className:Te}),R,f.createElement(c.a,{component:"",showProp:"data-show",transitionName:R?"".concat(re,"-zoom"):"",transitionAppear:!0},Ye()),pe())};C.Ribbon=y;var w=P.a=C},Kvyg:function(U,P,d){},KxBF:function(U,P){function d(O,x,T){var v=-1,S=O.length;x<0&&(x=-x>S?0:S+x),T=T>S?S:T,T<0&&(T+=S),S=x>T?0:T-x>>>0,x>>>=0;for(var m=Array(S);++v<S;)m[v]=O[v+x];return m}U.exports=d},KxFI:function(U,P,d){},KxfA:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("bYtY"),v=T.isTypedArray,S=T.extend,m=T.assert,f=T.each,c=T.isObject,o=d("4NO4"),r=o.getDataItemValue,a=o.isDataItemOption,n=d("OELB"),e=n.parseDate,s=d("7G+c"),t=d("k9D9"),i=t.SOURCE_FORMAT_TYPED_ARRAY,l=t.SOURCE_FORMAT_ARRAY_ROWS,u=t.SOURCE_FORMAT_ORIGINAL,h=t.SOURCE_FORMAT_OBJECT_ROWS;function p(R,B){s.isInstance(R)||(R=s.seriesDataToSource(R)),this._source=R;var M=this._data=R.data,H=R.sourceFormat;H===i&&(this._offset=0,this._dimSize=B,this._data=M);var F=A[H===l?H+"_"+R.seriesLayoutBy:H];S(this,F)}var g=p.prototype;g.pure=!1,g.persistent=!0,g.getSource=function(){return this._source};var A={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(R){return this._data[R+this._source.startIndex]},appendData:C},arrayRows_row:{pure:!0,count:function(){var R=this._data[0];return R?Math.max(0,R.length-this._source.startIndex):0},getItem:function(R){R+=this._source.startIndex;for(var B=[],M=this._data,H=0;H<M.length;H++){var F=M[H];B.push(F?F[R]:null)}return B},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:y,getItem:E,appendData:C},keyedColumns:{pure:!0,count:function(){var R=this._source.dimensionsDefine[0].name,B=this._data[R];return B?B.length:0},getItem:function(R){for(var B=[],M=this._source.dimensionsDefine,H=0;H<M.length;H++){var F=this._data[M[H].name];B.push(F?F[R]:null)}return B},appendData:function(R){var B=this._data;f(R,function(M,H){for(var F=B[H]||(B[H]=[]),K=0;K<(M||[]).length;K++)F.push(M[K])})}},original:{count:y,getItem:E,appendData:C},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(R,B){R=R-this._offset,B=B||[];for(var M=this._dimSize*R,H=0;H<this._dimSize;H++)B[H]=this._data[M+H];return B},appendData:function(R){this._data=R},clean:function(){this._offset+=this.count(),this._data=null}}};function y(){return this._data.length}function E(R){return this._data[R]}function C(R){for(var B=0;B<R.length;B++)this._data.push(R[B])}var w={arrayRows:b,objectRows:function(R,B,M,H){return M!=null?R[H]:R},keyedColumns:b,original:function(R,B,M,H){var F=r(R);return M==null||!(F instanceof Array)?F:F[M]},typedArray:b};function b(R,B,M,H){return M!=null?R[M]:R}var I={arrayRows:_,objectRows:function(R,B,M,H){return L(R[B],this._dimensionInfos[B])},keyedColumns:_,original:function(R,B,M,H){var F=R&&(R.value==null?R:R.value);return!this._rawData.pure&&a(R)&&(this.hasItemOption=!0),L(F instanceof Array?F[H]:F,this._dimensionInfos[B])},typedArray:function(R,B,M,H){return R[H]}};function _(R,B,M,H){return L(R[H],this._dimensionInfos[B])}function L(R,B){var M=B&&B.type;if(M==="ordinal"){var H=B&&B.ordinalMeta;return H?H.parseAndCollect(R):R}return M==="time"&&typeof R!="number"&&R!=null&&R!=="-"&&(R=+e(R)),R==null||R===""?NaN:+R}function D(R,B,M){if(!R)return;var H=R.getRawDataItem(B);if(H==null)return;var F=R.getProvider().getSource().sourceFormat,K,j,V=R.getDimensionInfo(M);return V&&(K=V.name,j=V.index),w[F](H,B,j,K)}function N(R,B,M){if(!R)return;var H=R.getProvider().getSource().sourceFormat;if(H!==u&&H!==h)return;var F=R.getRawDataItem(B);if(H===u&&!c(F)&&(F=null),F)return F[M]}P.DefaultDataProvider=p,P.defaultDimValueGetters=I,P.retrieveRawValue=D,P.retrieveRawAttr=N},L0Ub:function(U,P,d){var O=d("bYtY"),x=O.each,T=O.createHashMap,v=O.assert,S=d("Tghj"),m=S.__DEV__,f=T(["tooltip","label","itemName","itemId","seriesName"]);function c(n){var e={},s=e.encode={},t=T(),i=[],l=[],u=e.userOutput={dimensionNames:n.dimensions.slice(),encode:{}};x(n.dimensions,function(y){var E=n.getDimensionInfo(y),C=E.coordDim;if(C){var w=E.coordDimIndex;o(s,C)[w]=y,E.isExtraCoord||(t.set(C,1),a(E.type)&&(i[0]=y),o(u.encode,C)[w]=E.index),E.defaultTooltip&&l.push(y)}f.each(function(b,I){var _=o(s,I),L=E.otherDims[I];L!=null&&L!==!1&&(_[L]=E.name)})});var h=[],p={};t.each(function(y,E){var C=s[E];p[E]=C[0],h=h.concat(C)}),e.dataDimsOnCoord=h,e.encodeFirstDimNotExtra=p;var g=s.label;g&&g.length&&(i=g.slice());var A=s.tooltip;return A&&A.length?l=A.slice():l.length||(l=i.slice()),s.defaultedLabel=i,s.defaultedTooltip=l,e}function o(n,e){return n.hasOwnProperty(e)||(n[e]=[]),n[e]}function r(n){return n==="category"?"ordinal":n==="time"?"time":"float"}function a(n){return!(n==="ordinal"||n==="time")}P.OTHER_DIMENSIONS=f,P.summarizeDimensions=c,P.getDimensionTypeByAxis=r},L3Oj:function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("HjIi");d("HM/N"),d("9eas"),d("eS4l"),d("y4/Y"),d("as94"),O.registerLayout(x.curry(T,"bar")),O.extendComponentView({type:"polar"})},L41K:function(U,P,d){"use strict";d.d(P,"a",function(){return H});var O=d("pVnL"),x=d.n(O),T=d("lSNA"),v=d.n(T),S=d("lwsE"),m=d.n(S),f=d("W8MJ"),c=d.n(f),o=d("7W2i"),r=d.n(o),a=d("LQ03"),n=d.n(a),e=d("q1tI"),s=d.n(e),t=d("BGR+"),i=d("VTBJ"),l=d("rePB"),u=d("Ff2n"),h=d("1OyB"),p=d("vuIU"),g=d("Ji7U"),A=d("LK+K"),y=d("Zm9Q"),E=d("TSYQ"),C=d.n(E);function w(F){return typeof F=="string"}var b=function(F){Object(g.a)(j,F);var K=Object(A.a)(j);function j(){var V;return Object(h.a)(this,j),V=K.apply(this,arguments),V.onClick=function(){var z=V.props,Y=z.onClick,ee=z.onStepClick,fe=z.stepIndex;Y&&Y.apply(void 0,arguments),ee(fe)},V}return Object(p.a)(j,[{key:"renderIconNode",value:function(){var z,Y=this.props,ee=Y.prefixCls,fe=Y.progressDot,ie=Y.stepIcon,we=Y.stepNumber,Ce=Y.status,Le=Y.title,He=Y.description,ce=Y.icon,Pe=Y.iconPrefix,Q=Y.icons,me,Je=C()("".concat(ee,"-icon"),"".concat(Pe,"icon"),(z={},Object(l.a)(z,"".concat(Pe,"icon-").concat(ce),ce&&w(ce)),Object(l.a)(z,"".concat(Pe,"icon-check"),!ce&&Ce==="finish"&&(Q&&!Q.finish||!Q)),Object(l.a)(z,"".concat(Pe,"icon-cross"),!ce&&Ce==="error"&&(Q&&!Q.error||!Q)),z)),re=s.a.createElement("span",{className:"".concat(ee,"-icon-dot")});return fe?typeof fe=="function"?me=s.a.createElement("span",{className:"".concat(ee,"-icon")},fe(re,{index:we-1,status:Ce,title:Le,description:He})):me=s.a.createElement("span",{className:"".concat(ee,"-icon")},re):ce&&!w(ce)?me=s.a.createElement("span",{className:"".concat(ee,"-icon")},ce):Q&&Q.finish&&Ce==="finish"?me=s.a.createElement("span",{className:"".concat(ee,"-icon")},Q.finish):Q&&Q.error&&Ce==="error"?me=s.a.createElement("span",{className:"".concat(ee,"-icon")},Q.error):ce||Ce==="finish"||Ce==="error"?me=s.a.createElement("span",{className:Je}):me=s.a.createElement("span",{className:"".concat(ee,"-icon")},we),ie&&(me=ie({index:we-1,status:Ce,title:Le,description:He,node:me})),me}},{key:"render",value:function(){var z,Y=this.props,ee=Y.className,fe=Y.prefixCls,ie=Y.style,we=Y.active,Ce=Y.status,Le=Ce===void 0?"wait":Ce,He=Y.iconPrefix,ce=Y.icon,Pe=Y.wrapperStyle,Q=Y.stepNumber,me=Y.disabled,Je=Y.description,re=Y.title,G=Y.subTitle,X=Y.progressDot,J=Y.stepIcon,Ae=Y.tailContent,he=Y.icons,Me=Y.stepIndex,Ie=Y.onStepClick,oe=Y.onClick,pe=Object(u.a)(Y,["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"]),Oe=C()("".concat(fe,"-item"),"".concat(fe,"-item-").concat(Le),ee,(z={},Object(l.a)(z,"".concat(fe,"-item-custom"),ce),Object(l.a)(z,"".concat(fe,"-item-active"),we),Object(l.a)(z,"".concat(fe,"-item-disabled"),me===!0),z)),Ye=Object(i.a)({},ie),it={};return Ie&&!me&&(it.role="button",it.tabIndex=0,it.onClick=this.onClick),s.a.createElement("div",Object.assign({},pe,{className:Oe,style:Ye}),s.a.createElement("div",Object.assign({onClick:oe},it,{className:"".concat(fe,"-item-container")}),s.a.createElement("div",{className:"".concat(fe,"-item-tail")},Ae),s.a.createElement("div",{className:"".concat(fe,"-item-icon")},this.renderIconNode()),s.a.createElement("div",{className:"".concat(fe,"-item-content")},s.a.createElement("div",{className:"".concat(fe,"-item-title")},re,G&&s.a.createElement("div",{title:typeof G=="string"?G:void 0,className:"".concat(fe,"-item-subtitle")},G)),Je&&s.a.createElement("div",{className:"".concat(fe,"-item-description")},Je))))}}]),j}(s.a.Component),I=function(F){Object(g.a)(j,F);var K=Object(A.a)(j);function j(){var V;return Object(h.a)(this,j),V=K.apply(this,arguments),V.onStepClick=function(z){var Y=V.props,ee=Y.onChange,fe=Y.current;ee&&fe!==z&&ee(z)},V}return Object(p.a)(j,[{key:"render",value:function(){var z,Y=this,ee=this.props,fe=ee.prefixCls,ie=ee.style,we=ie===void 0?{}:ie,Ce=ee.className,Le=ee.children,He=ee.direction,ce=ee.type,Pe=ee.labelPlacement,Q=ee.iconPrefix,me=ee.status,Je=ee.size,re=ee.current,G=ee.progressDot,X=ee.stepIcon,J=ee.initial,Ae=ee.icons,he=ee.onChange,Me=Object(u.a)(ee,["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"]),Ie=ce==="navigation",oe=G?"vertical":Pe,pe=C()(fe,"".concat(fe,"-").concat(He),Ce,(z={},Object(l.a)(z,"".concat(fe,"-").concat(Je),Je),Object(l.a)(z,"".concat(fe,"-label-").concat(oe),He==="horizontal"),Object(l.a)(z,"".concat(fe,"-dot"),!!G),Object(l.a)(z,"".concat(fe,"-navigation"),Ie),z));return s.a.createElement("div",Object.assign({className:pe,style:we},Me),Object(y.a)(Le).map(function(Oe,Ye){var it=J+Ye,et=Object(i.a)({stepNumber:"".concat(it+1),stepIndex:it,key:it,prefixCls:fe,iconPrefix:Q,wrapperStyle:we,progressDot:G,stepIcon:X,icons:Ae,onStepClick:he&&Y.onStepClick},Oe.props);return me==="error"&&Ye===re-1&&(et.className="".concat(fe,"-next-error")),Oe.props.status||(it===re?et.status=me:it<re?et.status="finish":et.status="wait"),et.active=it===re,Object(e.cloneElement)(Oe,et)}))}}]),j}(s.a.Component);I.Step=b,I.defaultProps={type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1};var _=I,L=d("NAnI"),D=d.n(L),N=d("V/uB"),R=d.n(N),B=d("H84U"),M=d("CFYs"),H=function(F){r()(j,F);var K=n()(j);function j(){var V;return m()(this,j),V=K.apply(this,arguments),V.renderSteps=function(z){var Y=z.getPrefixCls,ee=z.direction,fe=Y("steps",V.props.prefixCls),ie=Y("",V.props.iconPrefix),we=V.props,Ce=we.percent,Le=we.size,He=C()(V.props.className,v()({},"".concat(fe,"-rtl"),ee==="rtl")),ce={finish:e.createElement(D.a,{className:"".concat(fe,"-finish-icon")}),error:e.createElement(R.a,{className:"".concat(fe,"-error-icon")})},Pe=function(me){var Je=me.node,re=me.status;if(re==="process"&&Ce!==void 0){var G=Le==="small"?32:40,X=e.createElement("div",{className:"".concat(fe,"-progress-icon")},e.createElement(M.a,{type:"circle",percent:Ce,width:G,strokeWidth:4,format:function(){return null}}),Je);return X}return Je};return e.createElement(_,x()({icons:ce},Object(t.default)(V.props,["progress"]),{stepIcon:Pe,prefixCls:fe,iconPrefix:ie,className:He}))},V}return c()(j,[{key:"render",value:function(){return e.createElement(B.a,null,this.renderSteps)}}]),j}(e.Component);H.Step=_.Step,H.defaultProps={current:0}},L5E0:function(U,P){var d=["itemStyle","borderColor"];function O(x,T){var v=x.get("color");x.eachRawSeriesByType("boxplot",function(S){var m=v[S.seriesIndex%v.length],f=S.getData();f.setVisual({legendSymbol:"roundRect",color:S.get(d)||m}),x.isSeriesFiltered(S)||f.each(function(c){var o=f.getItemModel(c);f.setItemVisual(c,{color:o.get(d,!0)})})})}U.exports=O},LBfv:function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=x.createHashMap,v=x.each;O.registerProcessor({getTargetSeries:function(S){var m=T();return S.eachComponent("dataZoom",function(f){f.eachTargetAxis(function(c,o,r){var a=r.getAxisProxy(c.name,o);v(a.getTargetSeriesModels(),function(n){m.set(n.uid,n)})})}),m},modifyOutputEnd:!0,overallReset:function(S,m){S.eachComponent("dataZoom",function(f){f.eachTargetAxis(function(c,o,r){r.getAxisProxy(c.name,o).reset(r,m)}),f.eachTargetAxis(function(c,o,r){r.getAxisProxy(c.name,o).filterData(r,m)})}),S.eachComponent("dataZoom",function(f){var c=f.findRepresentativeAxisProxy(),o=c.getDataPercentWindow(),r=c.getDataValueWindow();f.setCalculatedRange({start:o[0],end:o[1],startValue:r[0],endValue:r[1]})})}})},LCi9:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;function O(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function x(p,g){for(var A=0;A<g.length;A++){var y=g[A];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}function T(p,g,A){return g&&x(p.prototype,g),A&&x(p,A),p}var v=0,S=1,m=2,f=4,c=8,o=16,r=32,a=64,n=127,e=50,s=90,t=250,i=1e3,l=1e3,u=50,h=function(){function p(){O(this,p),this._target=null,this._state=n,this._tracked=[],this._ignored=[],this._waitingRelease=!1,this._releaseStart=0,this._longpressTimeoutId=null,this._twoTouchTimeoutId=null,this._boundEventHandler=this._eventHandler.bind(this)}return T(p,[{key:"attach",value:function(A){this.detach(),this._target=A,this._target.addEventListener("touchstart",this._boundEventHandler),this._target.addEventListener("touchmove",this._boundEventHandler),this._target.addEventListener("touchend",this._boundEventHandler),this._target.addEventListener("touchcancel",this._boundEventHandler)}},{key:"detach",value:function(){if(!this._target)return;this._stopLongpressTimeout(),this._stopTwoTouchTimeout(),this._target.removeEventListener("touchstart",this._boundEventHandler),this._target.removeEventListener("touchmove",this._boundEventHandler),this._target.removeEventListener("touchend",this._boundEventHandler),this._target.removeEventListener("touchcancel",this._boundEventHandler),this._target=null}},{key:"_eventHandler",value:function(A){var y;A.stopPropagation(),A.preventDefault();switch(A.type){case"touchstart":y=this._touchStart;break;case"touchmove":y=this._touchMove;break;case"touchend":case"touchcancel":y=this._touchEnd;break}for(var E=0;E<A.changedTouches.length;E++){var C=A.changedTouches[E];y.call(this,C.identifier,C.clientX,C.clientY)}}},{key:"_touchStart",value:function(A,y,E){if(this._hasDetectedGesture()||this._state===v){this._ignored.push(A);return}if(this._tracked.length>0&&Date.now()-this._tracked[0].started>t){this._state=v,this._ignored.push(A);return}if(this._waitingRelease){this._state=v,this._ignored.push(A);return}this._tracked.push({id:A,started:Date.now(),active:!0,firstX:y,firstY:E,lastX:y,lastY:E,angle:0});switch(this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=~(S|c|o),this._stopLongpressTimeout();break;case 3:this._state&=~(m|r|a);break;default:this._state=v}}},{key:"_touchMove",value:function(A,y,E){var C=this._tracked.find(function(D){return D.id===A});if(C===void 0)return;C.lastX=y,C.lastY=E;var w=y-C.firstX,b=E-C.firstY;if((C.firstX!==C.lastX||C.firstY!==C.lastY)&&(C.angle=Math.atan2(b,w)*180/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(w,b)<e)return;if(this._state&=~(S|m|f|o),this._stopLongpressTimeout(),this._tracked.length!==1&&(this._state&=~c),this._tracked.length!==2&&(this._state&=~(r|a)),this._tracked.length===2){var I=this._tracked.find(function(D){return D.id!==A}),_=Math.hypot(I.firstX-I.lastX,I.firstY-I.lastY);if(_>e){var L=Math.abs(C.angle-I.angle);L=Math.abs((L+180)%360-180),L>s?this._state&=~r:this._state&=~a,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}},{key:"_touchEnd",value:function(A,y,E){if(this._ignored.indexOf(A)!==-1){this._ignored.splice(this._ignored.indexOf(A),1),this._ignored.length===0&&this._tracked.length===0&&(this._state=n,this._waitingRelease=!1);return}if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=v),!this._hasDetectedGesture()&&(this._state&=~(c|r|a),this._state&=~o,this._stopLongpressTimeout(),!this._waitingRelease)){this._releaseStart=Date.now(),this._waitingRelease=!0;switch(this._tracked.length){case 1:this._state&=~(m|f);break;case 2:this._state&=~(S|f);break}}if(this._waitingRelease){Date.now()-this._releaseStart>t&&(this._state=v),this._tracked.some(function(b){return Date.now()-b.started>i})&&(this._state=v);var C=this._tracked.find(function(b){return b.id===A});if(C.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==v)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(var w=0;w<this._tracked.length;w++)this._tracked[w].active&&this._ignored.push(this._tracked[w].id);this._tracked=[],this._state=v,this._ignored.indexOf(A)!==-1&&this._ignored.splice(this._ignored.indexOf(A),1),this._ignored.length===0&&(this._state=n,this._waitingRelease=!1)}},{key:"_hasDetectedGesture",value:function(){return this._state===v||this._state&this._state-1?!1:!(this._state&(S|m|f)&&this._tracked.some(function(A){return A.active}))}},{key:"_startLongpressTimeout",value:function(){var A=this;this._stopLongpressTimeout(),this._longpressTimeoutId=setTimeout(function(){return A._longpressTimeout()},l)}},{key:"_stopLongpressTimeout",value:function(){clearTimeout(this._longpressTimeoutId),this._longpressTimeoutId=null}},{key:"_longpressTimeout",value:function(){if(this._hasDetectedGesture())throw new Error("A longpress gesture failed, conflict with a different gesture");this._state=o,this._pushEvent("gesturestart")}},{key:"_startTwoTouchTimeout",value:function(){var A=this;this._stopTwoTouchTimeout(),this._twoTouchTimeoutId=setTimeout(function(){return A._twoTouchTimeout()},u)}},{key:"_stopTwoTouchTimeout",value:function(){clearTimeout(this._twoTouchTimeoutId),this._twoTouchTimeoutId=null}},{key:"_isTwoTouchTimeoutRunning",value:function(){return this._twoTouchTimeoutId!==null}},{key:"_twoTouchTimeout",value:function(){if(this._tracked.length===0)throw new Error("A pinch or two drag gesture failed, no tracked touches");var A=this._getAverageMovement(),y=Math.abs(A.x),E=Math.abs(A.y),C=this._getAverageDistance(),w=Math.abs(Math.hypot(C.first.x,C.first.y)-Math.hypot(C.last.x,C.last.y));E<w&&y<w?this._state=a:this._state=r,this._pushEvent("gesturestart"),this._pushEvent("gesturemove")}},{key:"_pushEvent",value:function(A){var y={type:this._stateToGesture(this._state)},E=this._getPosition(),C=E.last;A==="gesturestart"&&(C=E.first);switch(this._state){case r:case a:C=E.first;break}if(y.clientX=C.x,y.clientY=C.y,this._state===a){var w=this._getAverageDistance();A==="gesturestart"?(y.magnitudeX=w.first.x,y.magnitudeY=w.first.y):(y.magnitudeX=w.last.x,y.magnitudeY=w.last.y)}else if(this._state===r)if(A==="gesturestart")y.magnitudeX=0,y.magnitudeY=0;else{var b=this._getAverageMovement();y.magnitudeX=b.x,y.magnitudeY=b.y}var I=new CustomEvent(A,{detail:y});this._target.dispatchEvent(I)}},{key:"_stateToGesture",value:function(A){switch(A){case S:return"onetap";case m:return"twotap";case f:return"threetap";case c:return"drag";case o:return"longpress";case r:return"twodrag";case a:return"pinch"}throw new Error("Unknown gesture state: "+A)}},{key:"_getPosition",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture position, no tracked touches");for(var A=this._tracked.length,y=0,E=0,C=0,w=0,b=0;b<this._tracked.length;b++)y+=this._tracked[b].firstX,E+=this._tracked[b].firstY,C+=this._tracked[b].lastX,w+=this._tracked[b].lastY;return{first:{x:y/A,y:E/A},last:{x:C/A,y:w/A}}}},{key:"_getAverageMovement",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture movement, no tracked touches");var A,y;A=y=0;for(var E=this._tracked.length,C=0;C<this._tracked.length;C++)A+=this._tracked[C].lastX-this._tracked[C].firstX,y+=this._tracked[C].lastY-this._tracked[C].firstY;return{x:A/E,y:y/E}}},{key:"_getAverageDistance",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture distance, no tracked touches");var A=this._tracked[0],y=this._tracked[this._tracked.length-1],E=Math.abs(y.firstX-A.firstX),C=Math.abs(y.firstY-A.firstY),w=Math.abs(y.lastX-A.lastX),b=Math.abs(y.lastY-A.lastY);return{first:{x:E,y:C},last:{x:w,y:b}}}}]),p}();P.default=h},LPTA:function(U,P){var d=1;typeof window!="undefined"&&(d=Math.max(window.devicePixelRatio||1,1));var O=0,x=d;P.debugMode=O,P.devicePixelRatio=x},LPzL:function(U,P,d){var O=d("ProS");d("QzjZ"),d("vL6D"),d("xiyX"),d("y4/Y"),d("8Th4"),O.extendComponentView({type:"single"})},LSTS:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O=function(){function n(e,s){for(var t=0;t<s.length;t++){var i=s[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,s,t){return s&&n(e.prototype,s),t&&n(e,t),e}}(),x=d("q1tI"),T=m(x),v=d("17x9"),S=m(v);function m(n){return n&&n.__esModule?n:{default:n}}function f(n,e){var s={};for(var t in n){if(e.indexOf(t)>=0)continue;if(!Object.prototype.hasOwnProperty.call(n,t))continue;s[t]=n[t]}return s}function c(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function o(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function r(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var a=function(n){r(e,n);function e(s){c(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,s));return t.scrollListener=t.scrollListener.bind(t),t.eventListenerOptions=t.eventListenerOptions.bind(t),t.mousewheelListener=t.mousewheelListener.bind(t),t}return O(e,[{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 t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var t=!1,i={get passive(){t=!0}};try{document.addEventListener("test",null,i),document.removeEventListener("test",null,i)}catch(l){}return t}},{key:"eventListenerOptions",value:function(){var t=this.props.useCapture;return this.isPassiveSupported()&&(t={useCapture:this.props.useCapture,passive:!0}),t}},{key:"setDefaultLoader",value:function(t){this.defaultLoader=t}},{key:"detachMousewheelListener",value:function(){var t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(t){var i=this.props.getScrollParent&&this.props.getScrollParent();return i!=null?i:t&&t.parentNode}},{key:"filterProps",value:function(t){return t}},{key:"attachScrollListener",value:function(){var t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;var i=window;this.props.useWindow===!1&&(i=t),i.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),i.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),i.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}},{key:"scrollListener",value:function(){var t=this.scrollComponent,i=window,l=this.getParentElement(t),u=void 0;if(this.props.useWindow){var h=document.documentElement||document.body.parentNode||document.body,p=i.pageYOffset!==void 0?i.pageYOffset:h.scrollTop;this.props.isReverse?u=p:u=this.calculateOffset(t,p)}else this.props.isReverse?u=l.scrollTop:u=t.scrollHeight-l.scrollTop-l.clientHeight;u<Number(this.props.threshold)&&t&&t.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=l.scrollHeight,this.beforeScrollTop=l.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(t,i){return t?this.calculateTopPosition(t)+(t.offsetHeight-i-window.innerHeight):0}},{key:"calculateTopPosition",value:function(t){return t?t.offsetTop+this.calculateTopPosition(t.offsetParent):0}},{key:"render",value:function(){var t=this,i=this.filterProps(this.props),l=i.children,u=i.element,h=i.hasMore,p=i.initialLoad,g=i.isReverse,A=i.loader,y=i.loadMore,E=i.pageStart,C=i.ref,w=i.threshold,b=i.useCapture,I=i.useWindow,_=i.getScrollParent,L=f(i,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);L.ref=function(N){t.scrollComponent=N,C&&C(N)};var D=[l];return h&&(A?g?D.unshift(A):D.push(A):this.defaultLoader&&(g?D.unshift(this.defaultLoader):D.push(this.defaultLoader))),T.default.createElement(u,L,D)}}]),e}(x.Component);a.propTypes={children:S.default.node.isRequired,element:S.default.node,hasMore:S.default.bool,initialLoad:S.default.bool,isReverse:S.default.bool,loader:S.default.node,loadMore:S.default.func.isRequired,pageStart:S.default.number,ref:S.default.func,getScrollParent:S.default.func,threshold:S.default.number,useCapture:S.default.bool,useWindow:S.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},P.default=a,U.exports=P.default},Lerx:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("Mds0"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},Llu2:function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z"}}]},name:"delivered-procedure",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="DeliveredProcedureOutlined";var f=P.a=x.forwardRef(m)},Lo0S:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.initLogging=m,P.getLogging=f,P.Error=P.Warn=P.Info=P.Debug=void 0;var O="warn",x=function(){};P.Debug=x;var T=function(){};P.Info=T;var v=function(){};P.Warn=v;var S=function(){};P.Error=S;function m(c){if(typeof c=="undefined"?c=O:O=c,P.Debug=x=P.Info=T=P.Warn=v=P.Error=S=function(){},typeof window.console!="undefined")switch(c){case"debug":P.Debug=x=console.debug.bind(window.console);case"info":P.Info=T=console.info.bind(window.console);case"warn":P.Warn=v=console.warn.bind(window.console);case"error":P.Error=S=console.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+c+"'")}}function f(){return O}m()},LtfV:function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="InboxOutlined";var f=P.a=x.forwardRef(m)},Lyp1:function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="QuestionCircleOutlined";var f=P.a=x.forwardRef(m)},LzGr:function(U,P,d){var O=d("ProS"),x=d("rnVJ");d("EMyp"),d("8x+h"),d("wt3j"),d("uOyE"),d("/stD"),O.registerPreprocessor(x)},MBQ8:function(U,P,d){var O=d("T4UG"),x=d("MwEJ"),T=O.extend({type:"series.__base_bar__",getInitialData:function(v,S){return x(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(v){var S=this.coordinateSystem;if(S){var m=S.dataToPoint(S.clampData(v)),f=this.getData(),c=f.getLayout("offset"),o=f.getLayout("size"),r=S.getBaseAxis().isHorizontal()?0:1;return m[r]+=c+o/2,m}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});U.exports=T},MEGo:function(U,P,d){var O=d("4fz+"),x=d("Dagg"),T=d("dqUG"),v=d("2fw6"),S=d("x6Kt"),m=d("rmlV"),f=d("yxFR"),c=d("y+Vt"),o=d("h7HQ"),r=d("1Jh7"),a=d("SKnc"),n=d("K2GJ"),e=d("Fofx"),s=d("NC18"),t=s.createFromString,i=d("bYtY"),l=i.isString,u=i.extend,h=i.defaults,p=i.trim,g=i.each,A=/[\s,]+/;function y(V){if(l(V)){var z=new DOMParser;V=z.parseFromString(V,"text/xml")}for(V.nodeType===9&&(V=V.firstChild);V.nodeName.toLowerCase()!=="svg"||V.nodeType!==1;)V=V.nextSibling;return V}function E(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}E.prototype.parse=function(V,z){z=z||{};var Y=y(V);if(!Y)throw new Error("Illegal svg");var ee=new O;this._root=ee;var fe=Y.getAttribute("viewBox")||"",ie=parseFloat(Y.getAttribute("width")||z.width),we=parseFloat(Y.getAttribute("height")||z.height);isNaN(ie)&&(ie=null),isNaN(we)&&(we=null),D(Y,ee,null,!0);for(var Ce=Y.firstChild;Ce;)this._parseNode(Ce,ee),Ce=Ce.nextSibling;var Le,He;if(fe){var ce=p(fe).split(A);ce.length>=4&&(Le={x:parseFloat(ce[0]||0),y:parseFloat(ce[1]||0),width:parseFloat(ce[2]),height:parseFloat(ce[3])})}if(Le&&ie!=null&&we!=null&&(He=K(Le,ie,we),!z.ignoreViewBox)){var Pe=ee;ee=new O,ee.add(Pe),Pe.scale=He.scale.slice(),Pe.position=He.position.slice()}return!z.ignoreRootClip&&ie!=null&&we!=null&&ee.setClipPath(new S({shape:{x:0,y:0,width:ie,height:we}})),{root:ee,width:ie,height:we,viewBoxRect:Le,viewBoxTransform:He}},E.prototype._parseNode=function(V,z){var Y=V.nodeName.toLowerCase();Y==="defs"?this._isDefine=!0:Y==="text"&&(this._isText=!0);var ee;if(this._isDefine){var fe=w[Y];if(fe){var ie=fe.call(this,V),we=V.getAttribute("id");we&&(this._defs[we]=ie)}}else{var fe=C[Y];fe&&(ee=fe.call(this,V,z),z.add(ee))}for(var Ce=V.firstChild;Ce;)Ce.nodeType===1&&this._parseNode(Ce,ee),Ce.nodeType===3&&this._isText&&this._parseText(Ce,ee),Ce=Ce.nextSibling;Y==="defs"?this._isDefine=!1:Y==="text"&&(this._isText=!1)},E.prototype._parseText=function(V,z){if(V.nodeType===1){var Y=V.getAttribute("dx")||0,ee=V.getAttribute("dy")||0;this._textX+=parseFloat(Y),this._textY+=parseFloat(ee)}var fe=new T({style:{text:V.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});I(z,fe),D(V,fe,this._defs);var ie=fe.style.fontSize;ie&&ie<9&&(fe.style.fontSize=9,fe.scale=fe.scale||[1,1],fe.scale[0]*=ie/9,fe.scale[1]*=ie/9);var we=fe.getBoundingRect();return this._textX+=we.width,z.add(fe),fe};var C={g:function(z,Y){var ee=new O;return I(Y,ee),D(z,ee,this._defs),ee},rect:function(z,Y){var ee=new S;return I(Y,ee),D(z,ee,this._defs),ee.setShape({x:parseFloat(z.getAttribute("x")||0),y:parseFloat(z.getAttribute("y")||0),width:parseFloat(z.getAttribute("width")||0),height:parseFloat(z.getAttribute("height")||0)}),ee},circle:function(z,Y){var ee=new v;return I(Y,ee),D(z,ee,this._defs),ee.setShape({cx:parseFloat(z.getAttribute("cx")||0),cy:parseFloat(z.getAttribute("cy")||0),r:parseFloat(z.getAttribute("r")||0)}),ee},line:function(z,Y){var ee=new f;return I(Y,ee),D(z,ee,this._defs),ee.setShape({x1:parseFloat(z.getAttribute("x1")||0),y1:parseFloat(z.getAttribute("y1")||0),x2:parseFloat(z.getAttribute("x2")||0),y2:parseFloat(z.getAttribute("y2")||0)}),ee},ellipse:function(z,Y){var ee=new m;return I(Y,ee),D(z,ee,this._defs),ee.setShape({cx:parseFloat(z.getAttribute("cx")||0),cy:parseFloat(z.getAttribute("cy")||0),rx:parseFloat(z.getAttribute("rx")||0),ry:parseFloat(z.getAttribute("ry")||0)}),ee},polygon:function(z,Y){var ee=z.getAttribute("points");ee&&(ee=_(ee));var fe=new o({shape:{points:ee||[]}});return I(Y,fe),D(z,fe,this._defs),fe},polyline:function(z,Y){var ee=new c;I(Y,ee),D(z,ee,this._defs);var fe=z.getAttribute("points");fe&&(fe=_(fe));var ie=new r({shape:{points:fe||[]}});return ie},image:function(z,Y){var ee=new x;return I(Y,ee),D(z,ee,this._defs),ee.setStyle({image:z.getAttribute("xlink:href"),x:z.getAttribute("x"),y:z.getAttribute("y"),width:z.getAttribute("width"),height:z.getAttribute("height")}),ee},text:function(z,Y){var ee=z.getAttribute("x")||0,fe=z.getAttribute("y")||0,ie=z.getAttribute("dx")||0,we=z.getAttribute("dy")||0;this._textX=parseFloat(ee)+parseFloat(ie),this._textY=parseFloat(fe)+parseFloat(we);var Ce=new O;return I(Y,Ce),D(z,Ce,this._defs),Ce},tspan:function(z,Y){var ee=z.getAttribute("x"),fe=z.getAttribute("y");ee!=null&&(this._textX=parseFloat(ee)),fe!=null&&(this._textY=parseFloat(fe));var ie=z.getAttribute("dx")||0,we=z.getAttribute("dy")||0,Ce=new O;return I(Y,Ce),D(z,Ce,this._defs),this._textX+=ie,this._textY+=we,Ce},path:function(z,Y){var ee=z.getAttribute("d")||"",fe=t(ee);return I(Y,fe),D(z,fe,this._defs),fe}},w={lineargradient:function(z){var Y=parseInt(z.getAttribute("x1")||0,10),ee=parseInt(z.getAttribute("y1")||0,10),fe=parseInt(z.getAttribute("x2")||10,10),ie=parseInt(z.getAttribute("y2")||0,10),we=new a(Y,ee,fe,ie);return b(z,we),we},radialgradient:function(z){}};function b(V,z){for(var Y=V.firstChild;Y;){if(Y.nodeType===1){var ee=Y.getAttribute("offset");ee.indexOf("%")>0?ee=parseInt(ee,10)/100:ee?ee=parseFloat(ee):ee=0;var fe=Y.getAttribute("stop-color")||"#000000";z.addColorStop(ee,fe)}Y=Y.nextSibling}}function I(V,z){V&&V.__inheritedStyle&&(z.__inheritedStyle||(z.__inheritedStyle={}),h(z.__inheritedStyle,V.__inheritedStyle))}function _(V){for(var z=p(V).split(A),Y=[],ee=0;ee<z.length;ee+=2){var fe=parseFloat(z[ee]),ie=parseFloat(z[ee+1]);Y.push([fe,ie])}return Y}var L={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 D(V,z,Y,ee){var fe=z.__inheritedStyle||{},ie=z.type==="text";if(V.nodeType===1&&(M(V,z),u(fe,F(V)),!ee)){for(var we in L)if(L.hasOwnProperty(we)){var Ce=V.getAttribute(we);Ce!=null&&(fe[L[we]]=Ce)}}var Le=ie?"textFill":"fill",He=ie?"textStroke":"stroke";z.style=z.style||new n;var ce=z.style;fe.fill!=null&&ce.set(Le,R(fe.fill,Y)),fe.stroke!=null&&ce.set(He,R(fe.stroke,Y)),g(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(Pe){var Q=Pe==="lineWidth"&&ie?"textStrokeWidth":Pe;fe[Pe]!=null&&ce.set(Q,parseFloat(fe[Pe]))}),(!fe.textBaseline||fe.textBaseline==="auto")&&(fe.textBaseline="alphabetic"),fe.textBaseline==="alphabetic"&&(fe.textBaseline="bottom"),fe.textAlign==="start"&&(fe.textAlign="left"),fe.textAlign==="end"&&(fe.textAlign="right"),g(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(Pe){fe[Pe]!=null&&ce.set(Pe,fe[Pe])}),fe.lineDash&&(z.style.lineDash=p(fe.lineDash).split(A)),ce[He]&&ce[He]!=="none"&&(z[He]=!0),z.__inheritedStyle=fe}var N=/url\(\s*#(.*?)\)/;function R(V,z){var Y=z&&V&&V.match(N);if(Y){var ee=p(Y[1]),fe=z[ee];return fe}return V}var B=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function M(V,z){var Y=V.getAttribute("transform");if(Y){Y=Y.replace(/,/g," ");var ee=null,fe=[];Y.replace(B,function(Le,He,ce){fe.push(He,ce)});for(var ie=fe.length-1;ie>0;ie-=2){var we=fe[ie],Ce=fe[ie-1];ee=ee||e.create();switch(Ce){case"translate":we=p(we).split(A),e.translate(ee,ee,[parseFloat(we[0]),parseFloat(we[1]||0)]);break;case"scale":we=p(we).split(A),e.scale(ee,ee,[parseFloat(we[0]),parseFloat(we[1]||we[0])]);break;case"rotate":we=p(we).split(A),e.rotate(ee,ee,parseFloat(we[0]));break;case"skew":we=p(we).split(A),console.warn("Skew transform is not supported yet");break;case"matrix":var we=p(we).split(A);ee[0]=parseFloat(we[0]),ee[1]=parseFloat(we[1]),ee[2]=parseFloat(we[2]),ee[3]=parseFloat(we[3]),ee[4]=parseFloat(we[4]),ee[5]=parseFloat(we[5]);break}}z.setLocalTransform(ee)}}var H=/([^\s:;]+)\s*:\s*([^:;]+)/g;function F(V){var z=V.getAttribute("style"),Y={};if(!z)return Y;var ee={};H.lastIndex=0;for(var fe;(fe=H.exec(z))!=null;)ee[fe[1]]=fe[2];for(var ie in L)L.hasOwnProperty(ie)&&ee[ie]!=null&&(Y[L[ie]]=ee[ie]);return Y}function K(V,z,Y){var ee=z/V.width,fe=Y/V.height,ie=Math.min(ee,fe),we=[ie,ie],Ce=[-(V.x+V.width/2)*ie+z/2,-(V.y+V.height/2)*ie+Y/2];return{scale:we,position:Ce}}function j(V,z){var Y=new E;return Y.parse(V,z)}P.parseXML=y,P.makeViewBoxTransform=K,P.parseSVG=j},MFOe:function(U,P,d){(function(O){var x=m(),T=f(),v=c(),S=typeof window!="undefined"?window:O;U.exports={assign:x,create:T,trim:v,bind:o,slice:r,each:a,map:n,pluck:e,isList:s,isFunction:t,isObject:i,Global:S};function m(){return Object.assign?Object.assign:function(u,h,p,g){for(var A=1;A<arguments.length;A++)a(Object(arguments[A]),function(y,E){u[E]=y});return u}}function f(){if(Object.create)return function(h,p,g,A){var y=r(arguments,1);return x.apply(this,[Object.create(h)].concat(y))};var l=function(){};return function(h,p,g,A){var y=r(arguments,1);return l.prototype=h,x.apply(this,[new l].concat(y))}}function c(){return String.prototype.trim?function(u){return String.prototype.trim.call(u)}:function(u){return u.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function o(l,u){return function(){return u.apply(l,Array.prototype.slice.call(arguments,0))}}function r(l,u){return Array.prototype.slice.call(l,u||0)}function a(l,u){e(l,function(h,p){return u(h,p),!1})}function n(l,u){var h=s(l)?[]:{};return e(l,function(p,g){return h[g]=u(p,g),!1}),h}function e(l,u){if(s(l)){for(var h=0;h<l.length;h++)if(u(l[h],h))return l[h]}else for(var p in l)if(l.hasOwnProperty(p)&&u(l[p],p))return l[p]}function s(l){return l!=null&&typeof l!="function"&&typeof l.length=="number"}function t(l){return l&&{}.toString.call(l)==="[object Function]"}function i(l){return l&&{}.toString.call(l)==="[object Object]"}}).call(this,d("yLpj"))},MH26:function(U,P,d){var O=d("bYtY"),x=d("YXkt"),T=d("OELB"),v=d("kj2x"),S=d("c8qY"),m=d("iPDy"),f=d("7hqr"),c=f.getStackedDimension,o=function(i,l,u,h){var p=i.getData(),g=h.type;if(!O.isArray(h)&&(g==="min"||g==="max"||g==="average"||g==="median"||h.xAxis!=null||h.yAxis!=null)){var A,y;if(h.yAxis!=null||h.xAxis!=null)A=l.getAxis(h.yAxis!=null?"y":"x"),y=O.retrieve(h.yAxis,h.xAxis);else{var E=v.getAxisInfo(h,p,l,i);A=E.valueAxis;var C=c(p,E.valueDataDim);y=v.numCalculate(p,C,g)}var w=A.dim==="x"?0:1,b=1-w,I=O.clone(h),_={};I.type=null,I.coord=[],_.coord=[],I.coord[b]=-Infinity,_.coord[b]=Infinity;var L=u.get("precision");L>=0&&typeof y=="number"&&(y=+y.toFixed(Math.min(L,20))),I.coord[w]=_.coord[w]=y,h=[I,_,{type:g,valueIndex:h.valueIndex,value:y}]}return h=[v.dataTransform(i,h[0]),v.dataTransform(i,h[1]),O.extend({},h[2])],h[2].type=h[2].type||"",O.merge(h[2],h[0]),O.merge(h[2],h[1]),h};function r(i){return!isNaN(i)&&!isFinite(i)}function a(i,l,u,h){var p=1-i,g=h.dimensions[i];return r(l[p])&&r(u[p])&&l[i]===u[i]&&h.getAxis(g).containData(l[i])}function n(i,l){if(i.type==="cartesian2d"){var u=l[0].coord,h=l[1].coord;if(u&&h&&(a(1,u,h,i)||a(0,u,h,i)))return!0}return v.dataFilter(i,l[0])&&v.dataFilter(i,l[1])}function e(i,l,u,h,p){var g=h.coordinateSystem,A=i.getItemModel(l),y,E=T.parsePercent(A.get("x"),p.getWidth()),C=T.parsePercent(A.get("y"),p.getHeight());if(!isNaN(E)&&!isNaN(C))y=[E,C];else{if(h.getMarkerPosition)y=h.getMarkerPosition(i.getValues(i.dimensions,l));else{var w=g.dimensions,b=i.get(w[0],l),I=i.get(w[1],l);y=g.dataToPoint([b,I])}if(g.type==="cartesian2d"){var _=g.getAxis("x"),L=g.getAxis("y"),w=g.dimensions;r(i.get(w[0],l))?y[0]=_.toGlobalCoord(_.getExtent()[u?0:1]):r(i.get(w[1],l))&&(y[1]=L.toGlobalCoord(L.getExtent()[u?0:1]))}isNaN(E)||(y[0]=E),isNaN(C)||(y[1]=C)}i.setItemLayout(l,y)}var s=m.extend({type:"markLine",updateTransform:function(i,l,u){l.eachSeries(function(h){var p=h.markLineModel;if(p){var g=p.getData(),A=p.__from,y=p.__to;A.each(function(E){e(A,E,!0,h,u),e(y,E,!1,h,u)}),g.each(function(E){g.setItemLayout(E,[A.getItemLayout(E),y.getItemLayout(E)])}),this.markerGroupMap.get(h.id).updateLayout()}},this)},renderSeries:function(i,l,u,h){var p=i.coordinateSystem,g=i.id,A=i.getData(),y=this.markerGroupMap,E=y.get(g)||y.set(g,new S);this.group.add(E.group);var C=t(p,i,l),w=C.from,b=C.to,I=C.line;l.__from=w,l.__to=b,l.setData(I);var _=l.get("symbol"),L=l.get("symbolSize");O.isArray(_)||(_=[_,_]),typeof L=="number"&&(L=[L,L]),C.from.each(function(N){D(w,N,!0),D(b,N,!1)}),I.each(function(N){var R=I.getItemModel(N).get("lineStyle.color");I.setItemVisual(N,{color:R||w.getItemVisual(N,"color")}),I.setItemLayout(N,[w.getItemLayout(N),b.getItemLayout(N)]),I.setItemVisual(N,{fromSymbolSize:w.getItemVisual(N,"symbolSize"),fromSymbol:w.getItemVisual(N,"symbol"),toSymbolSize:b.getItemVisual(N,"symbolSize"),toSymbol:b.getItemVisual(N,"symbol")})}),E.updateData(I),C.line.eachItemGraphicEl(function(N,R){N.traverse(function(B){B.dataModel=l})});function D(N,R,B){var M=N.getItemModel(R);e(N,R,B,i,h),N.setItemVisual(R,{symbolSize:M.get("symbolSize")||L[B?0:1],symbol:M.get("symbol",!0)||_[B?0:1],color:M.get("itemStyle.color")||A.getVisual("color")})}E.__keep=!0,E.group.silent=l.get("silent")||i.get("silent")}});function t(i,l,u){var h;i?h=O.map(i&&i.dimensions,function(C){var w=l.getData().getDimensionInfo(l.getData().mapDimension(C))||{};return O.defaults({name:C},w)}):h=[{name:"value",type:"float"}];var p=new x(h,u),g=new x(h,u),A=new x([],u),y=O.map(u.get("data"),O.curry(o,l,i,u));i&&(y=O.filter(y,O.curry(n,i)));var E=i?v.dimValueGetter:function(C){return C.value};return p.initData(O.map(y,function(C){return C[0]}),null,E),g.initData(O.map(y,function(C){return C[1]}),null,E),A.initData(O.map(y,function(C){return C[2]})),A.hasItemOption=!0,{from:p,to:g,line:A}}U.exports=s},MHoB:function(U,P,d){var O=d("bYtY"),x=d("6uqw"),T=d("OELB"),v=[20,140],S=x.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(c,o){S.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(r){r.mappingMethod="linear",r.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){S.superApply(this,"resetItemSize",arguments);var c=this.itemSize;this._orient==="horizontal"&&c.reverse(),(c[0]==null||isNaN(c[0]))&&(c[0]=v[0]),(c[1]==null||isNaN(c[1]))&&(c[1]=v[1])},_resetRange:function(){var c=this.getExtent(),o=this.option.range;!o||o.auto?(c.auto=1,this.option.range=c):O.isArray(o)&&(o[0]>o[1]&&o.reverse(),o[0]=Math.max(o[0],c[0]),o[1]=Math.min(o[1],c[1]))},completeVisualOption:function(){x.prototype.completeVisualOption.apply(this,arguments),O.each(this.stateList,function(c){var o=this.option.controller[c].symbolSize;o&&o[0]!==o[1]&&(o[0]=0)},this)},setSelected:function(c){this.option.range=c.slice(),this._resetRange()},getSelected:function(){var c=this.getExtent(),o=T.asc((this.get("range")||[]).slice());return o[0]>c[1]&&(o[0]=c[1]),o[1]>c[1]&&(o[1]=c[1]),o[0]<c[0]&&(o[0]=c[0]),o[1]<c[0]&&(o[1]=c[0]),o},getValueState:function(c){var o=this.option.range,r=this.getExtent();return(o[0]<=r[0]||o[0]<=c)&&(o[1]>=r[1]||c<=o[1])?"inRange":"outOfRange"},findTargetDataIndices:function(c){var o=[];return this.eachTargetSeries(function(r){var a=[],n=r.getData();n.each(this.getDataDimension(n),function(e,s){c[0]<=e&&e<=c[1]&&a.push(s)},this),o.push({seriesId:r.id,dataIndex:a})},this),o},getVisualMeta:function(c){var o=m(this,"outOfRange",this.getExtent()),r=m(this,"inRange",this.option.range.slice()),a=[];function n(h,p){a.push({value:h,color:c(h,p)})}for(var e=0,s=0,t=r.length,i=o.length;s<i&&(!r.length||o[s]<=r[0]);s++)o[s]<r[e]&&n(o[s],"outOfRange");for(var l=1;e<t;e++,l=0)l&&a.length&&n(r[e],"outOfRange"),n(r[e],"inRange");for(var l=1;s<i;s++)(!r.length||r[r.length-1]<o[s])&&(l&&(a.length&&n(a[a.length-1].value,"outOfRange"),l=0),n(o[s],"outOfRange"));var u=a.length;return{stops:a,outerColors:[u?a[0].color:"transparent",u?a[u-1].color:"transparent"]}}});function m(c,o,r){if(r[0]===r[1])return r.slice();for(var a=200,n=(r[1]-r[0])/a,e=r[0],s=[],t=0;t<=a&&e<r[1];t++)s.push(e),e+=n;return s.push(r[1]),s}var f=S;U.exports=f},MHtr:function(U,P,d){var O=d("bYtY");function x(v,S){var m=this.getAxis(),f=S instanceof Array?S[0]:S,c=(v instanceof Array?v[0]:v)/2;return m.type==="category"?m.getBandWidth():Math.abs(m.dataToCoord(f-c)-m.dataToCoord(f+c))}function T(v){var S=v.getRect();return{coordSys:{type:"singleAxis",x:S.x,y:S.y,width:S.width,height:S.height},api:{coord:function(m){return v.dataToPoint(m)},size:O.bind(x,v)}}}U.exports=T},MJZm:function(U,P,d){"use strict";var O=d("lSNA"),x=d.n(O),T=d("pVnL"),v=d.n(T),S=d("q1tI"),m=d("rePB"),f=d("VTBJ"),c=d("KQm4"),o=d("1OyB"),r=d("vuIU"),a=d("Ji7U"),n=d("LK+K"),e=d("4IlW"),s=d("Kwbf"),t=d("TSYQ"),i=d.n(t),l=d("FTAc"),u=d("wPhX"),h=d("c3jg"),p=d("ODXe"),g=d("Ff2n"),A=d("+nKL"),y=d("HTfv"),E=d("lr6o"),C=function(Ct,Nt){var Be=Ct.className,$=Ct.style,Z=Ct.motion,Re=Ct.motionNodes,De=Ct.motionType,ae=Ct.onMotionStart,gt=Ct.onMotionEnd,jt=Ct.active,ut=Ct.treeNodeRequiredProps,rr=Object(g.a)(Ct,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),pr=S.useState(!0),nn=Object(p.a)(pr,2),mr=nn[0],vr=nn[1],$t=S.useContext(l.a),Xt=$t.prefixCls,ft=S.useRef(!1),Ur=function(){ft.current||gt(),ft.current=!0};return Object(S.useEffect)(function(){Re&&De==="hide"&&mr&&vr(!1)},[Re]),Object(S.useEffect)(function(){return Re&&ae(),function(){Re&&Ur()}},[]),Re?S.createElement(y.default,Object.assign({ref:Nt,visible:mr},Z,{motionAppear:De==="show",onAppearEnd:Ur,onLeaveEnd:Ur}),function(yn,Dn){var Un=yn.className,wi=yn.style;return S.createElement("div",{ref:Dn,className:i()("".concat(Xt,"-treenode-motion"),Un),style:wi},Re.map(function(Rn){var kn=Rn.data,Vn=kn.key,Gt=Object(g.a)(kn,["key"]),st=Rn.isStart,ue=Rn.isEnd;delete Gt.children;var Ee=Object(h.f)(Vn,ut);return S.createElement(E.a,Object.assign({},Gt,Ee,{active:jt,data:Rn.data,key:Vn,isStart:st,isEnd:ue}))}))}):S.createElement(E.a,Object.assign({domRef:Nt,className:Be,style:$},rr,{active:jt}))};C.displayName="MotionTreeNode";var w=S.forwardRef(C),b=w;function I(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Nt=Tt.length,Be=Ct.length;if(Math.abs(Nt-Be)!==1)return{add:!1,key:null};function $(Z,Re){var De=new Map;Z.forEach(function(gt){De.set(gt,!0)});var ae=Re.filter(function(gt){return!De.has(gt)});return ae.length===1?ae[0]:null}return Nt<Be?{add:!0,key:$(Tt,Ct)}:{add:!1,key:$(Ct,Tt)}}function _(Tt,Ct,Nt){var Be=Tt.findIndex(function(De){var ae=De.data;return ae.key===Nt}),$=Tt[Be+1],Z=Ct.findIndex(function(De){var ae=De.data;return ae.key===Nt});if($){var Re=Ct.findIndex(function(De){var ae=De.data;return ae.key===$.data.key});return Ct.slice(Z+1,Re)}return Ct.slice(Z+1)}var L={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},D=function(){},N="RC_TREE_MOTION_".concat(Math.random()),R={key:N},B={key:N,level:0,index:0,pos:"0",node:R},M={parent:null,children:[],pos:B.pos,data:R,isStart:[],isEnd:[]};function H(Tt,Ct,Nt,Be){return Ct===!1||!Nt?Tt:Tt.slice(0,Math.ceil(Nt/Be)+1)}function F(Tt){var Ct=Tt.data.key,Nt=Tt.pos;return Object(h.e)(Ct,Nt)}function K(Tt){for(var Ct=String(Tt.data.key),Nt=Tt;Nt.parent;)Nt=Nt.parent,Ct="".concat(Nt.data.key," > ").concat(Ct);return Ct}var j=function(Ct,Nt){var Be=Ct.prefixCls,$=Ct.data,Z=Ct.selectable,Re=Ct.checkable,De=Ct.expandedKeys,ae=Ct.selectedKeys,gt=Ct.checkedKeys,jt=Ct.loadedKeys,ut=Ct.loadingKeys,rr=Ct.halfCheckedKeys,pr=Ct.keyEntities,nn=Ct.disabled,mr=Ct.dragging,vr=Ct.dragOverNodeKey,$t=Ct.dropPosition,Xt=Ct.motion,ft=Ct.height,Ur=Ct.itemHeight,yn=Ct.virtual,Dn=Ct.focusable,Un=Ct.activeItem,wi=Ct.focused,Rn=Ct.tabIndex,kn=Ct.onKeyDown,Vn=Ct.onFocus,Gt=Ct.onBlur,st=Ct.onActiveChange,ue=Ct.onListChangeStart,Ee=Ct.onListChangeEnd,je=Object(g.a)(Ct,["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"]),Ve=S.useRef(null);S.useImperativeHandle(Nt,function(){return{scrollTo:function(Oi){Ve.current.scrollTo(Oi)}}});var $e=S.useState(De),wt=Object(p.a)($e,2),qt=wt[0],Mr=wt[1],an=S.useState($),_t=Object(p.a)(an,2),at=_t[0],bt=_t[1],kt=S.useState($),Pt=Object(p.a)(kt,2),Et=Pt[0],Ht=Pt[1],ot=S.useState([]),Mt=Object(p.a)(ot,2),xr=Mt[0],ur=Mt[1],gr=S.useState(null),Qr=Object(p.a)(gr,2),ln=Qr[0],_n=Qr[1];function Mn(){bt($),Ht($),ur([]),_n(null),Ee()}S.useEffect(function(){Mr(De);var pi=I(qt,De);if(pi.key!==null)if(pi.add){var Oi=at.findIndex(function(Xe){var qe=Xe.data.key;return qe===pi.key}),Ze=H(_(at,$,pi.key),yn,ft,Ur),be=at.slice();be.splice(Oi+1,0,M),Ht(be),ur(Ze),_n("show")}else{var Ne=$.findIndex(function(Xe){var qe=Xe.data.key;return qe===pi.key}),Ue=H(_($,at,pi.key),yn,ft,Ur),Qe=$.slice();Qe.splice(Ne+1,0,M),Ht(Qe),ur(Ue),_n("hide")}else at!==$&&(bt($),Ht($))},[De,$]),S.useEffect(function(){mr||Mn()},[mr]);var li=Xt?Et:$,ai={expandedKeys:De,selectedKeys:ae,loadedKeys:jt,loadingKeys:ut,checkedKeys:gt,halfCheckedKeys:rr,dragOverNodeKey:vr,dropPosition:$t,keyEntities:pr};return S.createElement(S.Fragment,null,wi&&Un&&S.createElement("span",{style:L,"aria-live":"assertive"},K(Un)),S.createElement("div",{role:"tree"},S.createElement("input",{style:L,disabled:Dn===!1||nn,tabIndex:Dn!==!1?Rn:null,onKeyDown:kn,onFocus:Vn,onBlur:Gt,value:"",onChange:D})),S.createElement(A.a,Object.assign({},je,{data:li,itemKey:F,height:ft,fullHeight:!1,virtual:yn,itemHeight:Ur,prefixCls:"".concat(Be,"-list"),ref:Ve}),function(pi){var Oi=pi.pos,Ze=pi.data,be=Ze.key,Ne=Object(g.a)(Ze,["key"]),Ue=pi.isStart,Qe=pi.isEnd,Xe=Object(h.e)(be,Oi);delete Ne.children;var qe=Object(h.f)(Xe,ai);return S.createElement(b,Object.assign({},Ne,qe,{active:Un&&be===Un.data.key,pos:Oi,data:pi.data,isStart:Ue,isEnd:Qe,motion:Xt,motionNodes:be===N?xr:null,motionType:ln,onMotionStart:ue,onMotionEnd:Mn,treeNodeRequiredProps:ai,onMouseMove:function(){st(null)}}))}))},V=S.forwardRef(j);V.displayName="NodeList";var z=V,Y=d("qOx5"),ee=function(Tt){Object(a.a)(Nt,Tt);var Ct=Object(n.a)(Nt);function Nt(){var Be;return Object(o.a)(this,Nt),Be=Ct.apply(this,arguments),Be.destroyed=!1,Be.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},Be.listRef=S.createRef(),Be.onNodeDragStart=function($,Z){var Re=Be.state,De=Re.expandedKeys,ae=Re.keyEntities,gt=Be.props.onDragStart,jt=Z.props.eventKey;Be.dragNode=Z;var ut=Object(u.b)(De,jt);Be.setState({dragging:!0,dragNodesKeys:Object(u.g)(jt,ae)}),Be.setExpandedKeys(ut),gt&>({event:$,node:Object(h.b)(Z.props)})},Be.onNodeDragEnter=function($,Z){var Re=Be.state,De=Re.expandedKeys,ae=Re.keyEntities,gt=Re.dragNodesKeys,jt=Be.props.onDragEnter,ut=Z.props,rr=ut.pos,pr=ut.eventKey;if(!Be.dragNode||gt.indexOf(pr)!==-1)return;var nn=Object(u.c)($,Z);if(Be.dragNode.props.eventKey===pr&&nn===0){Be.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){Be.setState({dragOverNodeKey:pr,dropPosition:nn}),Be.delayedDragEnterLogic||(Be.delayedDragEnterLogic={}),Object.keys(Be.delayedDragEnterLogic).forEach(function(mr){clearTimeout(Be.delayedDragEnterLogic[mr])}),Be.delayedDragEnterLogic[rr]=window.setTimeout(function(){if(!Be.state.dragging)return;var mr=Object(c.a)(De),vr=ae[pr];vr&&(vr.children||[]).length&&(mr=Object(u.a)(De,pr)),"expandedKeys"in Be.props||Be.setExpandedKeys(mr),jt&&jt({event:$,node:Object(h.b)(Z.props),expandedKeys:mr})},400)},0)},Be.onNodeDragOver=function($,Z){var Re=Be.state.dragNodesKeys,De=Be.props.onDragOver,ae=Z.props.eventKey;if(Re.indexOf(ae)!==-1)return;if(Be.dragNode&&ae===Be.state.dragOverNodeKey){var gt=Object(u.c)($,Z);if(gt===Be.state.dropPosition)return;Be.setState({dropPosition:gt})}De&&De({event:$,node:Object(h.b)(Z.props)})},Be.onNodeDragLeave=function($,Z){var Re=Be.props.onDragLeave;Be.setState({dragOverNodeKey:""}),Re&&Re({event:$,node:Object(h.b)(Z.props)})},Be.onNodeDragEnd=function($,Z){var Re=Be.props.onDragEnd;Be.setState({dragOverNodeKey:""}),Be.cleanDragState(),Re&&Re({event:$,node:Object(h.b)(Z.props)}),Be.dragNode=null},Be.onNodeDrop=function($,Z){var Re=Be.state,De=Re.dragNodesKeys,ae=De===void 0?[]:De,gt=Re.dropPosition,jt=Be.props.onDrop,ut=Z.props,rr=ut.eventKey,pr=ut.pos;if(Be.setState({dragOverNodeKey:""}),Be.cleanDragState(),ae.indexOf(rr)!==-1){Object(s.a)(!1,"Can not drop to dragNode(include it's children node)");return}var nn=Object(u.k)(pr),mr={event:$,node:Object(h.b)(Z.props),dragNode:Be.dragNode?Object(h.b)(Be.dragNode.props):null,dragNodesKeys:ae.slice(),dropPosition:gt+Number(nn[nn.length-1]),dropToGap:!1};gt!==0&&(mr.dropToGap=!0),jt&&jt(mr),Be.dragNode=null},Be.cleanDragState=function(){var $=Be.state.dragging;$&&Be.setState({dragging:!1})},Be.onNodeClick=function($,Z){var Re=Be.props.onClick;Re&&Re($,Z)},Be.onNodeDoubleClick=function($,Z){var Re=Be.props.onDoubleClick;Re&&Re($,Z)},Be.onNodeSelect=function($,Z){var Re=Be.state.selectedKeys,De=Be.state.keyEntities,ae=Be.props,gt=ae.onSelect,jt=ae.multiple,ut=Z.selected,rr=Z.key,pr=!ut;pr?jt?Re=Object(u.a)(Re,rr):Re=[rr]:Re=Object(u.b)(Re,rr);var nn=Re.map(function(mr){var vr=De[mr];return vr?vr.node:null}).filter(function(mr){return mr});Be.setUncontrolledState({selectedKeys:Re}),gt&>(Re,{event:"select",selected:pr,node:Z,selectedNodes:nn,nativeEvent:$.nativeEvent})},Be.onNodeCheck=function($,Z,Re){var De=Be.state,ae=De.keyEntities,gt=De.checkedKeys,jt=De.halfCheckedKeys,ut=Be.props,rr=ut.checkStrictly,pr=ut.onCheck,nn=Z.key,mr,vr={event:"check",node:Z,checked:Re,nativeEvent:$.nativeEvent};if(rr){var $t=Re?Object(u.a)(gt,nn):Object(u.b)(gt,nn),Xt=Object(u.b)(jt,nn);mr={checked:$t,halfChecked:Xt},vr.checkedNodes=$t.map(function(wi){return ae[wi]}).filter(function(wi){return wi}).map(function(wi){return wi.node}),Be.setUncontrolledState({checkedKeys:$t})}else{var ft=Object(Y.a)([].concat(Object(c.a)(gt),[nn]),!0,ae),Ur=ft.checkedKeys,yn=ft.halfCheckedKeys;if(!Re){var Dn=new Set(Ur);Dn.delete(nn);var Un=Object(Y.a)(Array.from(Dn),{checked:!1,halfCheckedKeys:yn},ae);Ur=Un.checkedKeys,yn=Un.halfCheckedKeys}mr=Ur,vr.checkedNodes=[],vr.checkedNodesPositions=[],vr.halfCheckedKeys=yn,Ur.forEach(function(wi){var Rn=ae[wi];if(!Rn)return;var kn=Rn.node,Vn=Rn.pos;vr.checkedNodes.push(kn),vr.checkedNodesPositions.push({node:kn,pos:Vn})}),Be.setUncontrolledState({checkedKeys:Ur},!1,{halfCheckedKeys:yn})}pr&&pr(mr,vr)},Be.onNodeLoad=function($){return new Promise(function(Z){Be.setState(function(Re){var De=Re.loadedKeys,ae=De===void 0?[]:De,gt=Re.loadingKeys,jt=gt===void 0?[]:gt,ut=Be.props,rr=ut.loadData,pr=ut.onLoad,nn=$.key;if(!rr||ae.indexOf(nn)!==-1||jt.indexOf(nn)!==-1)return{};var mr=rr($);return mr.then(function(){var vr=Be.state,$t=vr.loadedKeys,Xt=vr.loadingKeys,ft=Object(u.a)($t,nn),Ur=Object(u.b)(Xt,nn);pr&&pr(ft,{event:"load",node:$}),Be.setUncontrolledState({loadedKeys:ft}),Be.setState({loadingKeys:Ur}),Z()}),{loadingKeys:Object(u.a)(jt,nn)}})})},Be.onNodeMouseEnter=function($,Z){var Re=Be.props.onMouseEnter;Re&&Re({event:$,node:Z})},Be.onNodeMouseLeave=function($,Z){var Re=Be.props.onMouseLeave;Re&&Re({event:$,node:Z})},Be.onNodeContextMenu=function($,Z){var Re=Be.props.onRightClick;Re&&($.preventDefault(),Re({event:$,node:Z}))},Be.onFocus=function(){var $=Be.props.onFocus;Be.setState({focused:!0}),$&&$.apply(void 0,arguments)},Be.onBlur=function(){var $=Be.props.onBlur;Be.setState({focused:!1}),Be.onActiveChange(null),$&&$.apply(void 0,arguments)},Be.getTreeNodeRequiredProps=function(){var $=Be.state,Z=$.expandedKeys,Re=$.selectedKeys,De=$.loadedKeys,ae=$.loadingKeys,gt=$.checkedKeys,jt=$.halfCheckedKeys,ut=$.dragOverNodeKey,rr=$.dropPosition,pr=$.keyEntities;return{expandedKeys:Z||[],selectedKeys:Re||[],loadedKeys:De||[],loadingKeys:ae||[],checkedKeys:gt||[],halfCheckedKeys:jt||[],dragOverNodeKey:ut,dropPosition:rr,keyEntities:pr}},Be.setExpandedKeys=function($){var Z=Be.state.treeData,Re=Object(h.d)(Z,$);Be.setUncontrolledState({expandedKeys:$,flattenNodes:Re},!0)},Be.onNodeExpand=function($,Z){var Re=Be.state.expandedKeys,De=Be.state.listChanging,ae=Be.props,gt=ae.onExpand,jt=ae.loadData,ut=Z.key,rr=Z.expanded;if(De)return;var pr=Re.indexOf(ut),nn=!rr;if(Object(s.a)(rr&&pr!==-1||!rr&&pr===-1,"Expand state not sync with index check"),nn?Re=Object(u.a)(Re,ut):Re=Object(u.b)(Re,ut),Be.setExpandedKeys(Re),gt&>(Re,{node:Z,expanded:nn,nativeEvent:$.nativeEvent}),nn&&jt){var mr=Be.onNodeLoad(Z);mr&&mr.then(function(){var vr=Object(h.d)(Be.state.treeData,Re);Be.setUncontrolledState({flattenNodes:vr})})}},Be.onListChangeStart=function(){Be.setUncontrolledState({listChanging:!0})},Be.onListChangeEnd=function(){setTimeout(function(){Be.setUncontrolledState({listChanging:!1})})},Be.onActiveChange=function($){var Z=Be.state.activeKey,Re=Be.props.onActiveChange;if(Z===$)return;Be.setState({activeKey:$}),$!==null&&Be.scrollTo({key:$}),Re&&Re($)},Be.getActiveItem=function(){var $=Be.state,Z=$.activeKey,Re=$.flattenNodes;return Z===null?null:Re.find(function(De){var ae=De.data.key;return ae===Z})||null},Be.offsetActiveKey=function($){var Z=Be.state,Re=Z.flattenNodes,De=Z.activeKey,ae=Re.findIndex(function(ut){var rr=ut.data.key;return rr===De});ae===-1&&$<0&&(ae=Re.length),ae=(ae+$+Re.length)%Re.length;var gt=Re[ae];if(gt){var jt=gt.data.key;Be.onActiveChange(jt)}else Be.onActiveChange(null)},Be.onKeyDown=function($){var Z=Be.state,Re=Z.activeKey,De=Z.expandedKeys,ae=Z.checkedKeys,gt=Be.props,jt=gt.onKeyDown,ut=gt.checkable,rr=gt.selectable;switch($.which){case e.a.UP:{Be.offsetActiveKey(-1),$.preventDefault();break}case e.a.DOWN:{Be.offsetActiveKey(1),$.preventDefault();break}}var pr=Be.getActiveItem();if(pr&&pr.data){var nn=Be.getTreeNodeRequiredProps(),mr=pr.data.isLeaf===!1||!!(pr.data.children||[]).length,vr=Object(h.b)(Object(f.a)(Object(f.a)({},Object(h.f)(Re,nn)),{},{data:pr.data,active:!0}));switch($.which){case e.a.LEFT:{mr&&De.includes(Re)?Be.onNodeExpand({},vr):pr.parent&&Be.onActiveChange(pr.parent.data.key),$.preventDefault();break}case e.a.RIGHT:{mr&&!De.includes(Re)?Be.onNodeExpand({},vr):pr.children&&pr.children.length&&Be.onActiveChange(pr.children[0].data.key),$.preventDefault();break}case e.a.ENTER:case e.a.SPACE:{ut&&!vr.disabled&&vr.checkable!==!1&&!vr.disableCheckbox?Be.onNodeCheck({},vr,!ae.includes(Re)):!ut&&rr&&!vr.disabled&&vr.selectable!==!1&&Be.onNodeSelect({},vr);break}}}jt&&jt($)},Be.setUncontrolledState=function($){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(Be.destroyed)return;var De=!1,ae=!0,gt={};Object.keys($).forEach(function(jt){if(jt in Be.props){ae=!1;return}De=!0,gt[jt]=$[jt]}),De&&(!Z||ae)&&Be.setState(Object(f.a)(Object(f.a)({},gt),Re))},Be.scrollTo=function($){Be.listRef.current.scrollTo($)},Be}return Object(r.a)(Nt,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var $,Z=this.state,Re=Z.focused,De=Z.flattenNodes,ae=Z.keyEntities,gt=Z.dragging,jt=Z.activeKey,ut=this.props,rr=ut.prefixCls,pr=ut.className,nn=ut.style,mr=ut.showLine,vr=ut.focusable,$t=ut.tabIndex,Xt=$t===void 0?0:$t,ft=ut.selectable,Ur=ut.showIcon,yn=ut.icon,Dn=ut.switcherIcon,Un=ut.draggable,wi=ut.checkable,Rn=ut.checkStrictly,kn=ut.disabled,Vn=ut.motion,Gt=ut.loadData,st=ut.filterTreeNode,ue=ut.height,Ee=ut.itemHeight,je=ut.virtual,Ve=ut.titleRender,$e=ut.onContextMenu,wt=Object(u.f)(this.props);return S.createElement(l.a.Provider,{value:{prefixCls:rr,selectable:ft,showIcon:Ur,icon:yn,switcherIcon:Dn,draggable:Un,checkable:wi,checkStrictly:Rn,disabled:kn,keyEntities:ae,loadData:Gt,filterTreeNode:st,titleRender:Ve,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}},S.createElement("div",{className:i()(rr,pr,($={},Object(m.a)($,"".concat(rr,"-show-line"),mr),Object(m.a)($,"".concat(rr,"-focused"),Re),Object(m.a)($,"".concat(rr,"-active-focused"),jt!==null),$))},S.createElement(z,Object.assign({ref:this.listRef,prefixCls:rr,style:nn,data:De,disabled:kn,selectable:ft,checkable:!!wi,motion:Vn,dragging:gt,height:ue,itemHeight:Ee,virtual:je,focusable:vr,focused:Re,tabIndex:Xt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:$e},this.getTreeNodeRequiredProps(),wt))))}}],[{key:"getDerivedStateFromProps",value:function($,Z){var Re=Z.prevProps,De={prevProps:$};function ae(yn){return!Re&&yn in $||Re&&Re[yn]!==$[yn]}var gt;if(ae("treeData")?gt=$.treeData:ae("children")&&(Object(s.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),gt=Object(h.c)($.children)),gt){De.treeData=gt;var jt=Object(h.a)(gt);De.keyEntities=Object(f.a)(Object(m.a)({},N,B),jt.keyEntities)}var ut=De.keyEntities||Z.keyEntities;if(ae("expandedKeys")||Re&&ae("autoExpandParent"))De.expandedKeys=$.autoExpandParent||!Re&&$.defaultExpandParent?Object(u.e)($.expandedKeys,ut):$.expandedKeys;else if(!Re&&$.defaultExpandAll){var rr=Object(f.a)({},ut);delete rr[N],De.expandedKeys=Object.keys(rr).map(function(yn){return rr[yn].key})}else!Re&&$.defaultExpandedKeys&&(De.expandedKeys=$.autoExpandParent||$.defaultExpandParent?Object(u.e)($.defaultExpandedKeys,ut):$.defaultExpandedKeys);if(De.expandedKeys||delete De.expandedKeys,gt||De.expandedKeys){var pr=Object(h.d)(gt||Z.treeData,De.expandedKeys||Z.expandedKeys);De.flattenNodes=pr}if($.selectable&&(ae("selectedKeys")?De.selectedKeys=Object(u.d)($.selectedKeys,$):!Re&&$.defaultSelectedKeys&&(De.selectedKeys=Object(u.d)($.defaultSelectedKeys,$))),$.checkable){var nn;if(ae("checkedKeys")?nn=Object(u.j)($.checkedKeys)||{}:!Re&&$.defaultCheckedKeys?nn=Object(u.j)($.defaultCheckedKeys)||{}:gt&&(nn=Object(u.j)($.checkedKeys)||{checkedKeys:Z.checkedKeys,halfCheckedKeys:Z.halfCheckedKeys}),nn){var mr=nn,vr=mr.checkedKeys,$t=vr===void 0?[]:vr,Xt=mr.halfCheckedKeys,ft=Xt===void 0?[]:Xt;if(!$.checkStrictly){var Ur=Object(Y.a)($t,!0,ut);$t=Ur.checkedKeys,ft=Ur.halfCheckedKeys}De.checkedKeys=$t,De.halfCheckedKeys=ft}}return ae("loadedKeys")&&(De.loadedKeys=$.loadedKeys),De}}]),Nt}(S.Component);ee.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:[]},ee.TreeNode=E.a;var fe=ee,ie=fe,we=d("RIqP"),Ce=d.n(we),Le=d("J4zp"),He=d.n(Le),ce=d("sEfC"),Pe=d.n(ce),Q=d("vk+C"),me=d.n(Q),Je=d("Vy0f"),re=d.n(Je),G=d("kGiB"),X=d.n(G),J=d("H84U"),Ae;(function(Tt){Tt[Tt.None=0]="None",Tt[Tt.Start=1]="Start",Tt[Tt.End=2]="End"})(Ae||(Ae={}));function he(Tt,Ct){function Nt(Be){var $=Be.key,Z=Be.children;Ct($,Be)!==!1&&he(Z||[],Ct)}Tt.forEach(Nt)}function Me(Tt){var Ct=Tt.treeData,Nt=Tt.expandedKeys,Be=Tt.startKey,$=Tt.endKey,Z=[],Re=Ae.None;if(Be&&Be===$)return[Be];if(!Be||!$)return[];function De(ae){return ae===Be||ae===$}return he(Ct,function(ae){if(Re===Ae.End)return!1;if(De(ae)){if(Z.push(ae),Re===Ae.None)Re=Ae.Start;else if(Re===Ae.Start)return Re=Ae.End,!1}else Re===Ae.Start&&Z.push(ae);return!(Nt.indexOf(ae)===-1)}),Z}function Ie(Tt,Ct){var Nt=Ce()(Ct),Be=[];return he(Tt,function($,Z){var Re=Nt.indexOf($);return Re!==-1&&(Be.push(Z),Nt.splice(Re,1)),!!Nt.length}),Be}var oe=function(Tt,Ct){var Nt={};for(var Be in Tt)Object.prototype.hasOwnProperty.call(Tt,Be)&&Ct.indexOf(Be)<0&&(Nt[Be]=Tt[Be]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,Be=Object.getOwnPropertySymbols(Tt);$<Be.length;$++)Ct.indexOf(Be[$])<0&&Object.prototype.propertyIsEnumerable.call(Tt,Be[$])&&(Nt[Be[$]]=Tt[Be[$]]);return Nt};function pe(Tt){var Ct=Tt.isLeaf,Nt=Tt.expanded;return Ct?S.createElement(me.a,null):Nt?S.createElement(re.a,null):S.createElement(X.a,null)}function Oe(Tt){var Ct=Tt.treeData,Nt=Tt.children;return Ct||Object(h.c)(Nt)}var Ye=function(Ct,Nt){var Be=Ct.defaultExpandAll,$=Ct.defaultExpandParent,Z=Ct.defaultExpandedKeys,Re=oe(Ct,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),De=S.useRef(),ae=S.useRef(),gt=S.createRef();S.useImperativeHandle(Nt,function(){return gt.current});var jt=function(){var $e=Object(h.a)(Oe(Re)),wt=$e.keyEntities,qt;return Be?qt=Object.keys(wt):$?qt=Object(u.e)(Re.expandedKeys||Z,wt):qt=Re.expandedKeys||Z,qt},ut=S.useState(Re.selectedKeys||Re.defaultSelectedKeys||[]),rr=He()(ut,2),pr=rr[0],nn=rr[1],mr=S.useState(jt()),vr=He()(mr,2),$t=vr[0],Xt=vr[1];S.useEffect(function(){"selectedKeys"in Re&&nn(Re.selectedKeys)},[Re.selectedKeys]),S.useEffect(function(){"expandedKeys"in Re&&Xt(Re.expandedKeys)},[Re.expandedKeys]);var ft=function($e,wt){var qt=wt.isLeaf;if(qt||$e.shiftKey||$e.metaKey||$e.ctrlKey)return;gt.current.onNodeExpand($e,wt)},Ur=Pe()(ft,200,{leading:!0}),yn=function($e,wt){return"expandedKeys"in Re||Xt($e),Re.onExpand?Re.onExpand($e,wt):void 0},Dn=function($e,wt){var qt=Re.expandAction;qt==="click"&&Ur($e,wt),Re.onClick&&Re.onClick($e,wt)},Un=function($e,wt){var qt=Re.expandAction;qt==="doubleClick"&&Ur($e,wt),Re.onDoubleClick&&Re.onDoubleClick($e,wt)},wi=function($e,wt){var qt=Re.multiple,Mr=wt.node,an=wt.nativeEvent,_t=Mr.key,at=_t===void 0?"":_t,bt=Oe(Re),kt=v()(v()({},wt),{selected:!0}),Pt=an.ctrlKey||an.metaKey,Et=an.shiftKey,Ht;qt&&Pt?(Ht=$e,De.current=at,ae.current=Ht,kt.selectedNodes=Ie(bt,Ht)):qt&&Et?(Ht=Array.from(new Set([].concat(Ce()(ae.current||[]),Ce()(Me({treeData:bt,expandedKeys:$t,startKey:at,endKey:De.current}))))),kt.selectedNodes=Ie(bt,Ht)):(Ht=[at],De.current=at,ae.current=Ht,kt.selectedNodes=Ie(bt,Ht)),Re.onSelect&&Re.onSelect(Ht,kt),"selectedKeys"in Re||nn(Ht)},Rn=S.useContext(J.b),kn=Rn.getPrefixCls,Vn=Rn.direction,Gt=Re.prefixCls,st=Re.className,ue=oe(Re,["prefixCls","className"]),Ee=kn("tree",Gt),je=i()("".concat(Ee,"-directory"),st,x()({},"".concat(Ee,"-directory-rtl"),Vn==="rtl"));return S.createElement(dt,v()({icon:pe,ref:gt,blockNode:!0},ue,{prefixCls:Ee,className:je,expandedKeys:$t,selectedKeys:pr,onSelect:wi,onClick:Dn,onDoubleClick:Un,onExpand:yn}))},it=S.forwardRef(Ye);it.displayName="DirectoryTree",it.defaultProps={showIcon:!0,expandAction:"click"};var et=it,Te=d("EXcs"),tt=d("2jpz"),ze=S.forwardRef(function(Tt,Ct){var Nt,Be=S.useContext(J.b),$=Be.getPrefixCls,Z=Be.direction,Re=Be.virtual,De=Tt.prefixCls,ae=Tt.className,gt=Tt.showIcon,jt=Tt.showLine,ut=Tt.switcherIcon,rr=Tt.blockNode,pr=Tt.children,nn=Tt.checkable,mr=v()(v()({},Tt),{showLine:Boolean(jt)}),vr=$("tree",De);return S.createElement(ie,v()({itemHeight:20,ref:Ct,virtual:Re},mr,{prefixCls:vr,className:i()(ae,(Nt={},x()(Nt,"".concat(vr,"-icon-hide"),!gt),x()(Nt,"".concat(vr,"-block-node"),rr),x()(Nt,"".concat(vr,"-rtl"),Z==="rtl"),Nt)),checkable:nn&&S.createElement("span",{className:"".concat(vr,"-checkbox-inner")}),switcherIcon:function(Xt){return Object(tt.a)(vr,ut,jt,Xt)}}),pr)});ze.TreeNode=E.a,ze.DirectoryTree=et,ze.defaultProps={checkable:!1,showIcon:!1,motion:v()(v()({},Te.a),{motionAppear:!1}),blockNode:!1};var dt=ze,Ot=P.a=dt},MKOG:function(U,P,d){var O=d("bYtY"),x=d("YH21"),T=x.Dispatcher,v=d("mLcG"),S=d("Bq2U"),m=function(o){o=o||{},this.stage=o.stage||{},this.onframe=o.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,T.call(this)};m.prototype={constructor:m,addClip:function(o){this._clips.push(o)},addAnimator:function(o){o.animation=this;for(var r=o.getClips(),a=0;a<r.length;a++)this.addClip(r[a])},removeClip:function(o){var r=O.indexOf(this._clips,o);r>=0&&this._clips.splice(r,1)},removeAnimator:function(o){for(var r=o.getClips(),a=0;a<r.length;a++)this.removeClip(r[a]);o.animation=null},_update:function(){for(var o=new Date().getTime()-this._pausedTime,r=o-this._time,a=this._clips,n=a.length,e=[],s=[],t=0;t<n;t++){var i=a[t],l=i.step(o,r);l&&(e.push(l),s.push(i))}for(var t=0;t<n;)a[t]._needsRemove?(a[t]=a[n-1],a.pop(),n--):t++;n=e.length;for(var t=0;t<n;t++)s[t].fire(e[t]);this._time=o,this.onframe(r),this.trigger("frame",r),this.stage.update&&this.stage.update()},_startLoop:function(){var o=this;this._running=!0;function r(){o._running&&(v(r),!o._paused&&o._update())}v(r)},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(o,r){r=r||{};var a=new S(o,r.loop,r.getter,r.setter);return this.addAnimator(a),a}},O.mixin(m,T);var f=m;U.exports=f},MRoa:function(U,P,d){var O=d("ProS");d("0Bwj"),d("W2nI"),d("vcCh");var x=d("gawk"),T=d("Dg8C");O.registerLayout(x),O.registerVisual(T)},MT78:function(U,P,d){var O=d("ProS");(function(){for(var T in O){if(O==null||!O.hasOwnProperty(T)||T==="default"||T==="__esModule")return;P[T]=O[T]}})();var x=d("txkQ");(function(){for(var T in x){if(x==null||!x.hasOwnProperty(T)||T==="default"||T==="__esModule")return;P[T]=x[T]}})(),d("A1Ka"),d("75ce"),d("lLGD"),d("wDdD"),d("Fa/5"),d("jett"),d("Z1wy"),d("75ev"),d("2uGb"),d("I+77"),d("B+YJ"),d("pLH3"),d("CBdT"),d("MRoa"),d("+lIL"),d("CF2D"),d("ERHi"),d("p+If"),d("XOKv"),d("qt/9"),d("bBL8"),d("1xaR"),d("4Feb"),d("zRKj"),d("L3Oj"),d("0HBW"),d("LPzL"),d("8waO"),d("k5C7"),d("f1nB"),d("sRwP"),d("AH3D"),d("y4/Y"),d("LzGr"),d("Ynxi"),d("7pVf"),d("2w7y"),d("laiN"),d("fjKi"),d("C0tN"),d("0o9m"),d("Cm0C"),d("f3JH"),d("5NHt"),d("VFCP"),d("dBmv"),d("KamJ"),d("8XDt"),d("juDX")},MXD1:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("Kvyg"),v=d.n(T)},MZdM:function(U,P,d){"use strict";function O(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(t){return typeof t}:O=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(e)}Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var x=c(d("Lo0S")),T=m(d("N/zr")),v=d("GdRQ"),S=d("GQ8N");function m(e){return e&&e.__esModule?e:{default:e}}function f(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return f=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(e===null||O(e)!=="object"&&typeof e!="function")return{default:e};var s=f();if(s&&s.has(e))return s.get(e);var t={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var u=i?Object.getOwnPropertyDescriptor(e,l):null;u&&(u.get||u.set)?Object.defineProperty(t,l,u):t[l]=e[l]}return t.default=e,s&&s.set(e,t),t}function o(e,s){if(!(e instanceof s))throw new TypeError("Cannot call a class as a function")}function r(e,s){for(var t=0;t<s.length;t++){var i=s[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,s,t){return s&&r(e.prototype,s),t&&r(e,t),e}var n=function(){function e(s){if(o(this,e),this._drawCtx=null,this._renderQ=[],this._flushing=!1,this._fbWidth=0,this._fbHeight=0,this._prevDrawStyle="",this._tile=null,this._tile16x16=null,this._tileX=0,this._tileY=0,x.Debug(">> Display.constructor"),this._target=s,!this._target)throw new Error("Target must be set");if(typeof this._target=="string")throw new Error("target must be a DOM element");if(!this._target.getContext)throw new Error("no getContext method");if(this._targetCtx=this._target.getContext("2d"),this._viewportLoc={x:0,y:0,w:this._target.width,h:this._target.height},this._backbuffer=document.createElement("canvas"),this._drawCtx=this._backbuffer.getContext("2d"),this._damageBounds={left:0,top:0,right:this._backbuffer.width,bottom:this._backbuffer.height},x.Debug("User Agent: "+navigator.userAgent),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._tile16x16=this._drawCtx.createImageData(16,16),x.Debug("<< Display.constructor"),this._scale=1,this._clipViewport=!1,this.onflush=function(){}}return a(e,[{key:"viewportChangePos",value:function(t,i){var l=this._viewportLoc;t=Math.floor(t),i=Math.floor(i),this._clipViewport||(t=-l.w,i=-l.h);var u=l.x+l.w-1,h=l.y+l.h-1;if(t<0&&l.x+t<0&&(t=-l.x),u+t>=this._fbWidth&&(t-=u+t-this._fbWidth+1),l.y+i<0&&(i=-l.y),h+i>=this._fbHeight&&(i-=h+i-this._fbHeight+1),t===0&&i===0)return;x.Debug("viewportChange deltaX: "+t+", deltaY: "+i),l.x+=t,l.y+=i,this._damage(l.x,l.y,l.w,l.h),this.flip()}},{key:"viewportChangeSize",value:function(t,i){(!this._clipViewport||typeof t=="undefined"||typeof i=="undefined")&&(x.Debug("Setting viewport to full display region"),t=this._fbWidth,i=this._fbHeight),t=Math.floor(t),i=Math.floor(i),t>this._fbWidth&&(t=this._fbWidth),i>this._fbHeight&&(i=this._fbHeight);var l=this._viewportLoc;if(l.w!==t||l.h!==i){l.w=t,l.h=i;var u=this._target;u.width=t,u.height=i,this.viewportChangePos(0,0),this._damage(l.x,l.y,l.w,l.h),this.flip(),this._rescale(this._scale)}}},{key:"absX",value:function(t){return this._scale===0?0:(0,S.toSigned32bit)(t/this._scale+this._viewportLoc.x)}},{key:"absY",value:function(t){return this._scale===0?0:(0,S.toSigned32bit)(t/this._scale+this._viewportLoc.y)}},{key:"resize",value:function(t,i){this._prevDrawStyle="",this._fbWidth=t,this._fbHeight=i;var l=this._backbuffer;if(l.width!==t||l.height!==i){var u=null;l.width>0&&l.height>0&&(u=this._drawCtx.getImageData(0,0,l.width,l.height)),l.width!==t&&(l.width=t),l.height!==i&&(l.height=i),u&&this._drawCtx.putImageData(u,0,0)}var h=this._viewportLoc;this.viewportChangeSize(h.w,h.h),this.viewportChangePos(0,0)}},{key:"_damage",value:function(t,i,l,u){t<this._damageBounds.left&&(this._damageBounds.left=t),i<this._damageBounds.top&&(this._damageBounds.top=i),t+l>this._damageBounds.right&&(this._damageBounds.right=t+l),i+u>this._damageBounds.bottom&&(this._damageBounds.bottom=i+u)}},{key:"flip",value:function(t){if(this._renderQ.length!==0&&!t)this._renderQPush({type:"flip"});else{var i=this._damageBounds.left,l=this._damageBounds.top,u=this._damageBounds.right-i,h=this._damageBounds.bottom-l,p=i-this._viewportLoc.x,g=l-this._viewportLoc.y;p<0&&(u+=p,i-=p,p=0),g<0&&(h+=g,l-=g,g=0),p+u>this._viewportLoc.w&&(u=this._viewportLoc.w-p),g+h>this._viewportLoc.h&&(h=this._viewportLoc.h-g),u>0&&h>0&&this._targetCtx.drawImage(this._backbuffer,i,l,u,h,p,g,u,h),this._damageBounds.left=this._damageBounds.top=65535,this._damageBounds.right=this._damageBounds.bottom=0}}},{key:"pending",value:function(){return this._renderQ.length>0}},{key:"flush",value:function(){this._renderQ.length===0?this.onflush():this._flushing=!0}},{key:"fillRect",value:function(t,i,l,u,h,p){this._renderQ.length!==0&&!p?this._renderQPush({type:"fill",x:t,y:i,width:l,height:u,color:h}):(this._setFillColor(h),this._drawCtx.fillRect(t,i,l,u),this._damage(t,i,l,u))}},{key:"copyImage",value:function(t,i,l,u,h,p,g){this._renderQ.length!==0&&!g?this._renderQPush({type:"copy",oldX:t,oldY:i,x:l,y:u,width:h,height:p}):(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,t,i,h,p,l,u,h,p),this._damage(l,u,h,p))}},{key:"imageRect",value:function(t,i,l,u,h,p){if(l===0||u===0)return;var g=new Image;g.src="data: "+h+";base64,"+T.default.encode(p),this._renderQPush({type:"img",img:g,x:t,y:i,width:l,height:u})}},{key:"startTile",value:function(t,i,l,u,h){this._tileX=t,this._tileY=i,l===16&&u===16?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(l,u);for(var p=h[2],g=h[1],A=h[0],y=this._tile.data,E=0;E<l*u*4;E+=4)y[E]=p,y[E+1]=g,y[E+2]=A,y[E+3]=255}},{key:"subTile",value:function(t,i,l,u,h){for(var p=h[2],g=h[1],A=h[0],y=t+l,E=i+u,C=this._tile.data,w=this._tile.width,b=i;b<E;b++)for(var I=t;I<y;I++){var _=(I+b*w)*4;C[_]=p,C[_+1]=g,C[_+2]=A,C[_+3]=255}}},{key:"finishTile",value:function(){this._drawCtx.putImageData(this._tile,this._tileX,this._tileY),this._damage(this._tileX,this._tileY,this._tile.width,this._tile.height)}},{key:"blitImage",value:function(t,i,l,u,h,p,g){if(this._renderQ.length!==0&&!g){var A=new Uint8Array(l*u*4);A.set(new Uint8Array(h.buffer,0,A.length)),this._renderQPush({type:"blit",data:A,x:t,y:i,width:l,height:u})}else this._bgrxImageData(t,i,l,u,h,p)}},{key:"blitRgbImage",value:function(t,i,l,u,h,p,g){if(this._renderQ.length!==0&&!g){var A=new Uint8Array(l*u*3);A.set(new Uint8Array(h.buffer,0,A.length)),this._renderQPush({type:"blitRgb",data:A,x:t,y:i,width:l,height:u})}else this._rgbImageData(t,i,l,u,h,p)}},{key:"blitRgbxImage",value:function(t,i,l,u,h,p,g){if(this._renderQ.length!==0&&!g){var A=new Uint8Array(l*u*4);A.set(new Uint8Array(h.buffer,0,A.length)),this._renderQPush({type:"blitRgbx",data:A,x:t,y:i,width:l,height:u})}else this._rgbxImageData(t,i,l,u,h,p)}},{key:"drawImage",value:function(t,i,l){this._drawCtx.drawImage(t,i,l),this._damage(i,l,t.width,t.height)}},{key:"autoscale",value:function(t,i){var l;if(t===0||i===0)l=0;else{var u=this._viewportLoc,h=t/i,p=u.w/u.h;p>=h?l=t/u.w:l=i/u.h}this._rescale(l)}},{key:"_rescale",value:function(t){this._scale=t;var i=this._viewportLoc,l=t*i.w+"px",u=t*i.h+"px";(this._target.style.width!==l||this._target.style.height!==u)&&(this._target.style.width=l,this._target.style.height=u)}},{key:"_setFillColor",value:function(t){var i="rgb("+t[2]+","+t[1]+","+t[0]+")";i!==this._prevDrawStyle&&(this._drawCtx.fillStyle=i,this._prevDrawStyle=i)}},{key:"_rgbImageData",value:function(t,i,l,u,h,p){for(var g=this._drawCtx.createImageData(l,u),A=g.data,y=0,E=p;y<l*u*4;y+=4,E+=3)A[y]=h[E],A[y+1]=h[E+1],A[y+2]=h[E+2],A[y+3]=255;this._drawCtx.putImageData(g,t,i),this._damage(t,i,g.width,g.height)}},{key:"_bgrxImageData",value:function(t,i,l,u,h,p){for(var g=this._drawCtx.createImageData(l,u),A=g.data,y=0,E=p;y<l*u*4;y+=4,E+=4)A[y]=h[E+2],A[y+1]=h[E+1],A[y+2]=h[E],A[y+3]=255;this._drawCtx.putImageData(g,t,i),this._damage(t,i,g.width,g.height)}},{key:"_rgbxImageData",value:function(t,i,l,u,h,p){var g;v.supportsImageMetadata?g=new ImageData(new Uint8ClampedArray(h.buffer,h.byteOffset,l*u*4),l,u):(g=this._drawCtx.createImageData(l,u),g.data.set(new Uint8ClampedArray(h.buffer,h.byteOffset,l*u*4))),this._drawCtx.putImageData(g,t,i),this._damage(t,i,g.width,g.height)}},{key:"_renderQPush",value:function(t){this._renderQ.push(t),this._renderQ.length===1&&this._scanRenderQ()}},{key:"_resumeRenderQ",value:function(){this.removeEventListener("load",this._noVNCDisplay._resumeRenderQ),this._noVNCDisplay._scanRenderQ()}},{key:"_scanRenderQ",value:function(){for(var t=!0;t&&this._renderQ.length>0;){var i=this._renderQ[0];switch(i.type){case"flip":this.flip(!0);break;case"copy":this.copyImage(i.oldX,i.oldY,i.x,i.y,i.width,i.height,!0);break;case"fill":this.fillRect(i.x,i.y,i.width,i.height,i.color,!0);break;case"blit":this.blitImage(i.x,i.y,i.width,i.height,i.data,0,!0);break;case"blitRgb":this.blitRgbImage(i.x,i.y,i.width,i.height,i.data,0,!0);break;case"blitRgbx":this.blitRgbxImage(i.x,i.y,i.width,i.height,i.data,0,!0);break;case"img":if(i.img.complete&&i.img.width!==0&&i.img.height!==0){if(i.img.width!==i.width||i.img.height!==i.height){x.Error("Decoded image has incorrect dimensions. Got "+i.img.width+"x"+i.img.height+". Expected "+i.width+"x"+i.height+".");return}this.drawImage(i.img,i.x,i.y)}else i.img._noVNCDisplay=this,i.img.addEventListener("load",this._resumeRenderQ),t=!1;break}t&&this._renderQ.shift()}this._renderQ.length===0&&this._flushing&&(this._flushing=!1,this.onflush())}},{key:"scale",get:function(){return this._scale},set:function(t){this._rescale(t)}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(t){this._clipViewport=t;var i=this._viewportLoc;this.viewportChangeSize(i.w,i.h),this.viewportChangePos(0,0)}},{key:"width",get:function(){return this._fbWidth}},{key:"height",get:function(){return this._fbHeight}}]),e}();P.default=n},Mdki:function(U,P,d){var O=d("bYtY"),x=O.each,T="\0__link_datas",v="\0__link_mainData";function S(s){var t=s.mainData,i=s.datas;i||(i={main:t},s.datasAttr={main:"data"}),s.datas=s.mainData=null,a(t,i,s),x(i,function(l){x(t.TRANSFERABLE_METHODS,function(u){l.wrapMethod(u,O.curry(m,s))})}),t.wrapMethod("cloneShallow",O.curry(c,s)),x(t.CHANGABLE_METHODS,function(l){t.wrapMethod(l,O.curry(f,s))}),O.assert(i[t.dataType]===t)}function m(s,t){if(r(this)){var i=O.extend({},this[T]);i[this.dataType]=t,a(t,i,s)}else n(t,this.dataType,this[v],s);return t}function f(s,t){return s.struct&&s.struct.update(this),t}function c(s,t){return x(t[T],function(i,l){i!==t&&n(i.cloneShallow(),l,t,s)}),t}function o(s){var t=this[v];return s==null||t==null?t:t[T][s]}function r(s){return s[v]===s}function a(s,t,i){s[T]={},x(t,function(l,u){n(l,u,s,i)})}function n(s,t,i,l){i[T][t]=s,s[v]=i,s.dataType=t,l.struct&&(s[l.structAttr]=l.struct,l.struct[l.datasAttr[t]]=s),s.getLinkedData=o}var e=S;U.exports=e},Mds0:function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("8IMR")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="StarFilled";var c=v.forwardRef(f);P.default=c},Mgri:function(U,P,d){for(var O=d("bYtY"),x=d("8nly"),T=[126,25],v=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],S=0;S<v.length;S++)for(var m=0;m<v[S].length;m++)v[S][m][0]/=10.5,v[S][m][1]/=-10.5/.75,v[S][m][0]+=T[0],v[S][m][1]+=T[1];function f(c,o){c==="china"&&o.push(new x("\u5357\u6D77\u8BF8\u5C9B",O.map(v,function(r){return{type:"polygon",exterior:r}}),T))}U.exports=f},MlIO:function(U,P,d){(function(O,x){U.exports=P=x(d("Ib8C"))})(this,function(O){return function(x){var T=O,v=T.lib,S=v.Base,m=v.WordArray,f=T.x64={},c=f.Word=S.extend({init:function(a,n){this.high=a,this.low=n}}),o=f.WordArray=S.extend({init:function(a,n){a=this.words=a||[],n!=x?this.sigBytes=n:this.sigBytes=a.length*8},toX32:function(){for(var a=this.words,n=a.length,e=[],s=0;s<n;s++){var t=a[s];e.push(t.high),e.push(t.low)}return m.create(e,this.sigBytes)},clone:function(){for(var a=S.clone.call(this),n=a.words=this.words.slice(0),e=n.length,s=0;s<e;s++)n[s]=n[s].clone();return a}})}(),O})},Mmt2:function(U,P,d){"use strict";function O(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(e){return typeof e}:O=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(a)}Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var x=v(d("Lo0S"));function T(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return T=function(){return a},a}function v(a){if(a&&a.__esModule)return a;if(a===null||O(a)!=="object"&&typeof a!="function")return{default:a};var n=T();if(n&&n.has(a))return n.get(a);var e={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in a)if(Object.prototype.hasOwnProperty.call(a,t)){var i=s?Object.getOwnPropertyDescriptor(a,t):null;i&&(i.get||i.set)?Object.defineProperty(e,t,i):e[t]=a[t]}return e.default=a,n&&n.set(a,e),e}function S(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function m(a,n){for(var e=0;e<n.length;e++){var s=n[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,s.key,s)}}function f(a,n,e){return n&&m(a.prototype,n),e&&m(a,e),a}var c=!1,o=40*1024*1024,r=function(){function a(){S(this,a),this._websocket=null,this._rQi=0,this._rQlen=0,this._rQbufferSize=1024*1024*4,this._rQ=null,this._sQbufferSize=1024*10,this._sQlen=0,this._sQ=null,this._eventHandlers={message:function(){},open:function(){},close:function(){},error:function(){}}}return f(a,[{key:"rQpeek8",value:function(){return this._rQ[this._rQi]}},{key:"rQskipBytes",value:function(e){this._rQi+=e}},{key:"rQshift8",value:function(){return this._rQshift(1)}},{key:"rQshift16",value:function(){return this._rQshift(2)}},{key:"rQshift32",value:function(){return this._rQshift(4)}},{key:"_rQshift",value:function(e){for(var s=0,t=e-1;t>=0;t--)s+=this._rQ[this._rQi++]<<t*8;return s}},{key:"rQshiftStr",value:function(e){typeof e=="undefined"&&(e=this.rQlen);for(var s="",t=0;t<e;t+=4096){var i=this.rQshiftBytes(Math.min(4096,e-t));s+=String.fromCharCode.apply(null,i)}return s}},{key:"rQshiftBytes",value:function(e){return typeof e=="undefined"&&(e=this.rQlen),this._rQi+=e,new Uint8Array(this._rQ.buffer,this._rQi-e,e)}},{key:"rQshiftTo",value:function(e,s){s===void 0&&(s=this.rQlen),e.set(new Uint8Array(this._rQ.buffer,this._rQi,s)),this._rQi+=s}},{key:"rQslice",value:function(e){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.rQlen;return new Uint8Array(this._rQ.buffer,this._rQi+e,s-e)}},{key:"rQwait",value:function(e,s,t){if(this.rQlen<s){if(t){if(this._rQi<t)throw new Error("rQwait cannot backup "+t+" bytes");this._rQi-=t}return!0}return!1}},{key:"flush",value:function(){this._sQlen>0&&this._websocket.readyState===WebSocket.OPEN&&(this._websocket.send(this._encodeMessage()),this._sQlen=0)}},{key:"send",value:function(e){this._sQ.set(e,this._sQlen),this._sQlen+=e.length,this.flush()}},{key:"sendString",value:function(e){this.send(e.split("").map(function(s){return s.charCodeAt(0)}))}},{key:"off",value:function(e){this._eventHandlers[e]=function(){}}},{key:"on",value:function(e,s){this._eventHandlers[e]=s}},{key:"_allocateBuffers",value:function(){this._rQ=new Uint8Array(this._rQbufferSize),this._sQ=new Uint8Array(this._sQbufferSize)}},{key:"init",value:function(){this._allocateBuffers(),this._rQi=0,this._websocket=null}},{key:"open",value:function(e,s){var t=this;this.init(),this._websocket=new WebSocket(e,s),this._websocket.binaryType="arraybuffer",this._websocket.onmessage=this._recvMessage.bind(this),this._websocket.onopen=function(){x.Debug(">> WebSock.onopen"),t._websocket.protocol&&x.Info("Server choose sub-protocol: "+t._websocket.protocol),t._eventHandlers.open(),x.Debug("<< WebSock.onopen")},this._websocket.onclose=function(i){x.Debug(">> WebSock.onclose"),t._eventHandlers.close(i),x.Debug("<< WebSock.onclose")},this._websocket.onerror=function(i){x.Debug(">> WebSock.onerror: "+i),t._eventHandlers.error(i),x.Debug("<< WebSock.onerror: "+i)}}},{key:"close",value:function(){this._websocket&&((this._websocket.readyState===WebSocket.OPEN||this._websocket.readyState===WebSocket.CONNECTING)&&(x.Info("Closing WebSocket connection"),this._websocket.close()),this._websocket.onmessage=function(){})}},{key:"_encodeMessage",value:function(){return new Uint8Array(this._sQ.buffer,0,this._sQlen)}},{key:"_expandCompactRQ",value:function(e){var s=(this._rQlen-this._rQi+e)*8,t=this._rQbufferSize<s;if(t&&(this._rQbufferSize=Math.max(this._rQbufferSize*2,s)),this._rQbufferSize>o&&(this._rQbufferSize=o,this._rQbufferSize-this.rQlen<e))throw new Error("Receive Queue buffer exceeded "+o+" bytes, and the new message could not fit");if(t){var i=this._rQ.buffer;this._rQ=new Uint8Array(this._rQbufferSize),this._rQ.set(new Uint8Array(i,this._rQi,this._rQlen-this._rQi))}else c?this._rQ.copyWithin(0,this._rQi,this._rQlen):this._rQ.set(new Uint8Array(this._rQ.buffer,this._rQi,this._rQlen-this._rQi));this._rQlen=this._rQlen-this._rQi,this._rQi=0}},{key:"_DecodeMessage",value:function(e){var s=new Uint8Array(e);s.length>this._rQbufferSize-this._rQlen&&this._expandCompactRQ(s.length),this._rQ.set(s,this._rQlen),this._rQlen+=s.length}},{key:"_recvMessage",value:function(e){this._DecodeMessage(e.data),this.rQlen>0?(this._eventHandlers.message(),this._rQlen==this._rQi&&(this._rQlen=0,this._rQi=0)):x.Debug("Ignoring empty message")}},{key:"sQ",get:function(){return this._sQ}},{key:"rQ",get:function(){return this._rQ}},{key:"rQi",get:function(){return this._rQi},set:function(e){this._rQi=e}},{key:"rQlen",get:function(){return this._rQlen-this._rQi}}]),a}();P.default=r},MqEG:function(U,P,d){var O=d("bYtY"),x=d("fc+c"),T=d("72pK"),v=d("VXYp"),S=O.bind,m=x.extend({type:"dataZoom.inside",init:function(a,n){this._range},render:function(a,n,e,s){m.superApply(this,"render",arguments),this._range=a.getPercentRange(),O.each(this.getTargetCoordInfo(),function(t,i){var l=O.map(t,function(u){return v.generateCoordId(u.model)});O.each(t,function(u){var h=u.model,p={};O.each(["pan","zoom","scrollMove"],function(g){p[g]=S(f[g],this,u,i)},this),v.register(e,{coordId:v.generateCoordId(h),allCoordIds:l,containsPoint:function(g,A,y){return h.coordinateSystem.containPoint([A,y])},dataZoomId:a.id,dataZoomModel:a,getRange:p})},this)},this)},dispose:function(){v.unregister(this.api,this.dataZoomModel.id),m.superApply(this,"dispose",arguments),this._range=null}}),f={zoom:function(a,n,e,s){var t=this._range,i=t.slice(),l=a.axisModels[0];if(!l)return;var u=o[n](null,[s.originX,s.originY],l,e,a),h=(u.signal>0?u.pixelStart+u.pixelLength-u.pixel:u.pixel-u.pixelStart)/u.pixelLength*(i[1]-i[0])+i[0],p=Math.max(1/s.scale,0);i[0]=(i[0]-h)*p+h,i[1]=(i[1]-h)*p+h;var g=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(T(0,i,[0,100],0,g.minSpan,g.maxSpan),this._range=i,t[0]!==i[0]||t[1]!==i[1])return i},pan:c(function(a,n,e,s,t,i){var l=o[s]([i.oldX,i.oldY],[i.newX,i.newY],n,t,e);return l.signal*(a[1]-a[0])*l.pixel/l.pixelLength}),scrollMove:c(function(a,n,e,s,t,i){var l=o[s]([0,0],[i.scrollDelta,i.scrollDelta],n,t,e);return l.signal*(a[1]-a[0])*i.scrollDelta})};function c(a){return function(n,e,s,t){var i=this._range,l=i.slice(),u=n.axisModels[0];if(!u)return;var h=a(l,u,n,e,s,t);if(T(h,l,[0,100],"all"),this._range=l,i[0]!==l[0]||i[1]!==l[1])return l}}var o={grid:function(a,n,e,s,t){var i=e.axis,l={},u=t.model.coordinateSystem.getRect();return a=a||[0,0],i.dim==="x"?(l.pixel=n[0]-a[0],l.pixelLength=u.width,l.pixelStart=u.x,l.signal=i.inverse?1:-1):(l.pixel=n[1]-a[1],l.pixelLength=u.height,l.pixelStart=u.y,l.signal=i.inverse?-1:1),l},polar:function(a,n,e,s,t){var i=e.axis,l={},u=t.model.coordinateSystem,h=u.getRadiusAxis().getExtent(),p=u.getAngleAxis().getExtent();return a=a?u.pointToCoord(a):[0,0],n=u.pointToCoord(n),e.mainType==="radiusAxis"?(l.pixel=n[0]-a[0],l.pixelLength=h[1]-h[0],l.pixelStart=h[0],l.signal=i.inverse?1:-1):(l.pixel=n[1]-a[1],l.pixelLength=p[1]-p[0],l.pixelStart=p[0],l.signal=i.inverse?-1:1),l},singleAxis:function(a,n,e,s,t){var i=e.axis,l=t.model.coordinateSystem.getRect(),u={};return a=a||[0,0],i.orient==="horizontal"?(u.pixel=n[0]-a[0],u.pixelLength=l.width,u.pixelStart=l.x,u.signal=i.inverse?1:-1):(u.pixel=n[1]-a[1],u.pixelLength=l.height,u.pixelStart=l.y,u.signal=i.inverse?-1:1),u}},r=m;U.exports=r},MwEJ:function(U,P,d){var O=d("bYtY"),x=d("YXkt"),T=d("sdST"),v=d("k9D9"),S=v.SOURCE_FORMAT_ORIGINAL,m=d("L0Ub"),f=m.getDimensionTypeByAxis,c=d("4NO4"),o=c.getDataItemValue,r=d("IDmD"),a=d("i38C"),n=a.getCoordSysInfoBySeries,e=d("7G+c"),s=d("7hqr"),t=s.enableDataStack,i=d("D5nY"),l=i.makeSeriesEncodeForAxisCoordSys;function u(A,y,E){E=E||{},e.isInstance(A)||(A=e.seriesDataToSource(A));var C=y.get("coordinateSystem"),w=r.get(C),b=n(y),I;b&&(I=O.map(b.coordSysDims,function(M){var H={name:M},F=b.axisMap.get(M);if(F){var K=F.get("type");H.type=f(K)}return H})),I||(I=w&&(w.getDimensionsInfo?w.getDimensionsInfo():w.dimensions.slice())||["x","y"]);var _=T(A,{coordDimensions:I,generateCoord:E.generateCoord,encodeDefaulter:E.useEncodeDefaulter?O.curry(l,I,y):null}),L,D;b&&O.each(_,function(M,H){var F=M.coordDim,K=b.categoryAxisMap.get(F);K&&(L==null&&(L=H),M.ordinalMeta=K.getOrdinalMeta()),M.otherDims.itemName!=null&&(D=!0)}),!D&&L!=null&&(_[L].otherDims.itemName=0);var N=t(y,_),R=new x(_,y);R.setCalculationInfo(N);var B=L!=null&&h(A)?function(M,H,F,K){return K===L?F:this.defaultDimValueGetter(M,H,F,K)}:null;return R.hasItemOption=!1,R.initData(A,null,B),R}function h(A){if(A.sourceFormat===S){var y=p(A.data||[]);return y!=null&&!O.isArray(o(y))}}function p(A){for(var y=0;y<A.length&&A[y]==null;)y++;return A[y]}var g=u;U.exports=g},Mylv:function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("IwbS"),v=d("oVpE"),S=v.createSymbol,m=d("OELB"),f=m.parsePercent,c=m.isNumeric,o=d("56rv"),r=o.setLabel,a=["itemStyle","borderWidth"],n=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],e=new T.Circle,s=O.extendChartView({type:"pictorialBar",render:function(j,V,z){var Y=this.group,ee=j.getData(),fe=this._data,ie=j.coordinateSystem,we=ie.getBaseAxis(),Ce=!!we.isHorizontal(),Le=ie.grid.getRect(),He={ecSize:{width:z.getWidth(),height:z.getHeight()},seriesModel:j,coordSys:ie,coordSysExtent:[[Le.x,Le.x+Le.width],[Le.y,Le.y+Le.height]],isHorizontal:Ce,valueDim:n[+Ce],categoryDim:n[1-Ce]};return ee.diff(fe).add(function(ce){if(!ee.hasValue(ce))return;var Pe=w(ee,ce),Q=t(ee,ce,Pe,He),me=L(ee,He,Q);ee.setItemGraphicEl(ce,me),Y.add(me),H(me,He,Q)}).update(function(ce,Pe){var Q=fe.getItemGraphicEl(Pe);if(!ee.hasValue(ce)){Y.remove(Q);return}var me=w(ee,ce),Je=t(ee,ce,me,He),re=R(ee,Je);Q&&re!==Q.__pictorialShapeStr&&(Y.remove(Q),ee.setItemGraphicEl(ce,null),Q=null),Q?D(Q,He,Je):Q=L(ee,He,Je,!0),ee.setItemGraphicEl(ce,Q),Q.__pictorialSymbolMeta=Je,Y.add(Q),H(Q,He,Je)}).remove(function(ce){var Pe=fe.getItemGraphicEl(ce);Pe&&N(fe,ce,Pe.__pictorialSymbolMeta.animationModel,Pe)}).execute(),this._data=ee,this.group},dispose:x.noop,remove:function(j,V){var z=this.group,Y=this._data;j.get("animation")?Y&&Y.eachItemGraphicEl(function(ee){N(Y,ee.dataIndex,j,ee)}):z.removeAll()}});function t(j,V,z,Y){var ee=j.getItemLayout(V),fe=z.get("symbolRepeat"),ie=z.get("symbolClip"),we=z.get("symbolPosition")||"start",Ce=z.get("symbolRotate"),Le=(Ce||0)*Math.PI/180||0,He=z.get("symbolPatternSize")||2,ce=z.isAnimationEnabled(),Pe={dataIndex:V,layout:ee,itemModel:z,symbolType:j.getItemVisual(V,"symbol")||"circle",color:j.getItemVisual(V,"color"),symbolClip:ie,symbolRepeat:fe,symbolRepeatDirection:z.get("symbolRepeatDirection"),symbolPatternSize:He,rotation:Le,animationModel:ce?z:null,hoverAnimation:ce&&z.get("hoverAnimation"),z2:z.getShallow("z",!0)||0};i(z,fe,ee,Y,Pe),u(j,V,ee,fe,ie,Pe.boundingLength,Pe.pxSign,He,Y,Pe),h(z,Pe.symbolScale,Le,Y,Pe);var Q=Pe.symbolSize,me=z.get("symbolOffset");return x.isArray(me)&&(me=[f(me[0],Q[0]),f(me[1],Q[1])]),p(z,Q,ee,fe,ie,me,we,Pe.valueLineWidth,Pe.boundingLength,Pe.repeatCutLength,Y,Pe),Pe}function i(j,V,z,Y,ee){var fe=Y.valueDim,ie=j.get("symbolBoundingData"),we=Y.coordSys.getOtherAxis(Y.coordSys.getBaseAxis()),Ce=we.toGlobalCoord(we.dataToCoord(0)),Le=1-+(z[fe.wh]<=0),He;if(x.isArray(ie)){var ce=[l(we,ie[0])-Ce,l(we,ie[1])-Ce];ce[1]<ce[0]&&ce.reverse(),He=ce[Le]}else ie!=null?He=l(we,ie)-Ce:V?He=Y.coordSysExtent[fe.index][Le]-Ce:He=z[fe.wh];ee.boundingLength=He,V&&(ee.repeatCutLength=z[fe.wh]),ee.pxSign=He>0?1:He<0?-1:0}function l(j,V){return j.toGlobalCoord(j.dataToCoord(j.scale.parse(V)))}function u(j,V,z,Y,ee,fe,ie,we,Ce,Le){var He=Ce.valueDim,ce=Ce.categoryDim,Pe=Math.abs(z[ce.wh]),Q=j.getItemVisual(V,"symbolSize");x.isArray(Q)?Q=Q.slice():(Q==null&&(Q="100%"),Q=[Q,Q]),Q[ce.index]=f(Q[ce.index],Pe),Q[He.index]=f(Q[He.index],Y?Pe:Math.abs(fe)),Le.symbolSize=Q;var me=Le.symbolScale=[Q[0]/we,Q[1]/we];me[He.index]*=(Ce.isHorizontal?-1:1)*ie}function h(j,V,z,Y,ee){var fe=j.get(a)||0;fe&&(e.attr({scale:V.slice(),rotation:z}),e.updateTransform(),fe/=e.getLineScale(),fe*=V[Y.valueDim.index]),ee.valueLineWidth=fe}function p(j,V,z,Y,ee,fe,ie,we,Ce,Le,He,ce){var Pe=He.categoryDim,Q=He.valueDim,me=ce.pxSign,Je=Math.max(V[Q.index]+we,0),re=Je;if(Y){var G=Math.abs(Ce),X=x.retrieve(j.get("symbolMargin"),"15%")+"",J=!1;X.lastIndexOf("!")===X.length-1&&(J=!0,X=X.slice(0,X.length-1)),X=f(X,V[Q.index]);var Ae=Math.max(Je+X*2,0),he=J?0:X*2,Me=c(Y),Ie=Me?Y:F((G+he)/Ae),oe=G-Ie*Je;X=oe/2/(J?Ie:Ie-1),Ae=Je+X*2,he=J?0:X*2,!Me&&Y!=="fixed"&&(Ie=Le?F((Math.abs(Le)+he)/Ae):0),re=Ie*Ae-he,ce.repeatTimes=Ie,ce.symbolMargin=X}var pe=me*(re/2),Oe=ce.pathPosition=[];Oe[Pe.index]=z[Pe.wh]/2,Oe[Q.index]=ie==="start"?pe:ie==="end"?Ce-pe:Ce/2,fe&&(Oe[0]+=fe[0],Oe[1]+=fe[1]);var Ye=ce.bundlePosition=[];Ye[Pe.index]=z[Pe.xy],Ye[Q.index]=z[Q.xy];var it=ce.barRectShape=x.extend({},z);it[Q.wh]=me*Math.max(Math.abs(z[Q.wh]),Math.abs(Oe[Q.index]+pe)),it[Pe.wh]=z[Pe.wh];var et=ce.clipShape={};et[Pe.xy]=-z[Pe.xy],et[Pe.wh]=He.ecSize[Pe.wh],et[Q.xy]=0,et[Q.wh]=z[Q.wh]}function g(j){var V=j.symbolPatternSize,z=S(j.symbolType,-V/2,-V/2,V,V,j.color);return z.attr({culling:!0}),z.type!=="image"&&z.setStyle({strokeNoScale:!0}),z}function A(j,V,z,Y){var ee=j.__pictorialBundle,fe=z.symbolSize,ie=z.valueLineWidth,we=z.pathPosition,Ce=V.valueDim,Le=z.repeatTimes||0,He=0,ce=fe[V.valueDim.index]+ie+z.symbolMargin*2;for(B(j,function(G){G.__pictorialAnimationIndex=He,G.__pictorialRepeatTimes=Le,He<Le?M(G,null,me(He),z,Y):M(G,null,{scale:[0,0]},z,Y,function(){ee.remove(G)}),_(G,z),He++});He<Le;He++){var Pe=g(z);Pe.__pictorialAnimationIndex=He,Pe.__pictorialRepeatTimes=Le,ee.add(Pe);var Q=me(He);M(Pe,{position:Q.position,scale:[0,0]},{scale:Q.scale,rotation:Q.rotation},z,Y),Pe.on("mouseover",Je).on("mouseout",re),_(Pe,z)}function me(G){var X=we.slice(),J=z.pxSign,Ae=G;return(z.symbolRepeatDirection==="start"?J>0:J<0)&&(Ae=Le-1-G),X[Ce.index]=ce*(Ae-Le/2+.5)+we[Ce.index],{position:X,scale:z.symbolScale.slice(),rotation:z.rotation}}function Je(){B(j,function(G){G.trigger("emphasis")})}function re(){B(j,function(G){G.trigger("normal")})}}function y(j,V,z,Y){var ee=j.__pictorialBundle,fe=j.__pictorialMainPath;fe?M(fe,null,{position:z.pathPosition.slice(),scale:z.symbolScale.slice(),rotation:z.rotation},z,Y):(fe=j.__pictorialMainPath=g(z),ee.add(fe),M(fe,{position:z.pathPosition.slice(),scale:[0,0],rotation:z.rotation},{scale:z.symbolScale.slice()},z,Y),fe.on("mouseover",ie).on("mouseout",we)),_(fe,z);function ie(){this.trigger("emphasis")}function we(){this.trigger("normal")}}function E(j,V,z){var Y=x.extend({},V.barRectShape),ee=j.__pictorialBarRect;ee?M(ee,null,{shape:Y},V,z):(ee=j.__pictorialBarRect=new T.Rect({z2:2,shape:Y,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),j.add(ee))}function C(j,V,z,Y){if(z.symbolClip){var ee=j.__pictorialClipPath,fe=x.extend({},z.clipShape),ie=V.valueDim,we=z.animationModel,Ce=z.dataIndex;if(ee)T.updateProps(ee,{shape:fe},we,Ce);else{fe[ie.wh]=0,ee=new T.Rect({shape:fe}),j.__pictorialBundle.setClipPath(ee),j.__pictorialClipPath=ee;var Le={};Le[ie.wh]=z.clipShape[ie.wh],T[Y?"updateProps":"initProps"](ee,{shape:Le},we,Ce)}}}function w(j,V){var z=j.getItemModel(V);return z.getAnimationDelayParams=b,z.isAnimationEnabled=I,z}function b(j){return{index:j.__pictorialAnimationIndex,count:j.__pictorialRepeatTimes}}function I(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function _(j,V){j.off("emphasis").off("normal");var z=V.symbolScale.slice();V.hoverAnimation&&j.on("emphasis",function(){this.animateTo({scale:[z[0]*1.1,z[1]*1.1]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:z.slice()},400,"elasticOut")})}function L(j,V,z,Y){var ee=new T.Group,fe=new T.Group;return ee.add(fe),ee.__pictorialBundle=fe,fe.attr("position",z.bundlePosition.slice()),z.symbolRepeat?A(ee,V,z):y(ee,V,z),E(ee,z,Y),C(ee,V,z,Y),ee.__pictorialShapeStr=R(j,z),ee.__pictorialSymbolMeta=z,ee}function D(j,V,z){var Y=z.animationModel,ee=z.dataIndex,fe=j.__pictorialBundle;T.updateProps(fe,{position:z.bundlePosition.slice()},Y,ee),z.symbolRepeat?A(j,V,z,!0):y(j,V,z,!0),E(j,z,!0),C(j,V,z,!0)}function N(j,V,z,Y){var ee=Y.__pictorialBarRect;ee&&(ee.style.text=null);var fe=[];B(Y,function(ie){fe.push(ie)}),Y.__pictorialMainPath&&fe.push(Y.__pictorialMainPath),Y.__pictorialClipPath&&(z=null),x.each(fe,function(ie){T.updateProps(ie,{scale:[0,0]},z,V,function(){Y.parent&&Y.parent.remove(Y)})}),j.setItemGraphicEl(V,null)}function R(j,V){return[j.getItemVisual(V.dataIndex,"symbol")||"none",!!V.symbolRepeat,!!V.symbolClip].join(":")}function B(j,V,z){x.each(j.__pictorialBundle.children(),function(Y){Y!==j.__pictorialBarRect&&V.call(z,Y)})}function M(j,V,z,Y,ee,fe){V&&j.attr(V),Y.symbolClip&&!ee?z&&j.attr(z):z&&T[ee?"updateProps":"initProps"](j,z,Y.animationModel,Y.dataIndex,fe)}function H(j,V,z){var Y=z.color,ee=z.dataIndex,fe=z.itemModel,ie=fe.getModel("itemStyle").getItemStyle(["color"]),we=fe.getModel("emphasis.itemStyle").getItemStyle(),Ce=fe.getShallow("cursor");B(j,function(Pe){Pe.setColor(Y),Pe.setStyle(x.defaults({fill:Y,opacity:z.opacity},ie)),T.setHoverStyle(Pe,we),Ce&&(Pe.cursor=Ce),Pe.z2=z.z2});var Le={},He=V.valueDim.posDesc[+(z.boundingLength>0)],ce=j.__pictorialBarRect;r(ce.style,Le,fe,Y,V.seriesModel,ee,He),T.setHoverStyle(ce,Le)}function F(j){var V=Math.round(j);return Math.abs(j-V)<1e-4?V:Math.ceil(j)}var K=s;U.exports=K},"N/zr":function(U,P,d){"use strict";function O(m){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(c){return typeof c}:O=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},O(m)}Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var x=v(d("Lo0S"));function T(){if(typeof WeakMap!="function")return null;var m=new WeakMap;return T=function(){return m},m}function v(m){if(m&&m.__esModule)return m;if(m===null||O(m)!=="object"&&typeof m!="function")return{default:m};var f=T();if(f&&f.has(m))return f.get(m);var c={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in m)if(Object.prototype.hasOwnProperty.call(m,r)){var a=o?Object.getOwnPropertyDescriptor(m,r):null;a&&(a.get||a.set)?Object.defineProperty(c,r,a):c[r]=m[r]}return c.default=m,f&&f.set(m,c),c}var S={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode:function(f){"use strict";for(var c="",o=f.length,r=o%3,a=0;a<o-2;a+=3)c+=this.toBase64Table[f[a]>>2],c+=this.toBase64Table[((f[a]&3)<<4)+(f[a+1]>>4)],c+=this.toBase64Table[((f[a+1]&15)<<2)+(f[a+2]>>6)],c+=this.toBase64Table[f[a+2]&63];var n=o-r;return r===2?(c+=this.toBase64Table[f[n]>>2],c+=this.toBase64Table[((f[n]&3)<<4)+(f[n+1]>>4)],c+=this.toBase64Table[(f[n+1]&15)<<2],c+=this.toBase64Table[64]):r===1&&(c+=this.toBase64Table[f[n]>>2],c+=this.toBase64Table[(f[n]&3)<<4],c+=this.toBase64Table[64],c+=this.toBase64Table[64]),c},toBinaryTable:[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1],decode:function(f){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=f.indexOf("=")-c;o<0&&(o=f.length-c);for(var r=(o>>2)*3+Math.floor(o%4/1.5),a=new Array(r),n=0,e=0,s=0,t=c;t<f.length;t++){var i=this.toBinaryTable[f.charCodeAt(t)&127],l=f.charAt(t)===this.base64Pad;if(i===-1){x.Error("Illegal character code "+f.charCodeAt(t)+" at position "+t);continue}e=e<<6|i,n+=6,n>=8&&(n-=8,l||(a[s++]=e>>n&255),e&=(1<<n)-1)}if(n){var u=new Error("Corrupted base64 string");throw u.name="Base64-Error",u}return a}};P.default=S},N5BQ:function(U,P,d){var O=d("OlYY"),x=O.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),T=x;U.exports=T},NA0q:function(U,P,d){var O=d("bYtY"),x=d("6Ic6"),T=d("TkdX"),v=d("gPAo"),S=d("7aKB"),m=S.windowOpen,f="sunburstRootToNode",c=x.extend({type:"sunburst",init:function(){},render:function(r,a,n,e){var s=this;this.seriesModel=r,this.api=n,this.ecModel=a;var t=r.getData(),i=t.tree.root,l=r.getViewRoot(),u=this.group,h=r.get("renderLabelForZeroData"),p=[];l.eachNode(function(I){p.push(I)});var g=this._oldChildren||[];if(E(p,g),b(i,l),e&&e.highlight&&e.highlight.piece){var A=r.getShallow("highlightPolicy");e.highlight.piece.onEmphasis(A)}else if(e&&e.unhighlight){var y=this.virtualPiece;!y&&i.children.length&&(y=i.children[0].piece),y&&y.onNormal()}this._initEvents(),this._oldChildren=p;function E(I,_){if(I.length===0&&_.length===0)return;new v(_,I,L,L).add(D).update(D).remove(O.curry(D,null)).execute();function L(N){return N.getId()}function D(N,R){var B=N==null?null:I[N],M=R==null?null:_[R];C(B,M)}}function C(I,_){if(!h&&I&&!I.getValue()&&(I=null),I!==i&&_!==i){if(_&&_.piece)I?(_.piece.updateData(!1,I,"normal",r,a),t.setItemGraphicEl(I.dataIndex,_.piece)):w(_);else if(I){var L=new T(I,r,a);u.add(L),t.setItemGraphicEl(I.dataIndex,L)}}}function w(I){if(!I)return;I.piece&&(u.remove(I.piece),I.piece=null)}function b(I,_){if(_.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,I,"normal",r,a):(s.virtualPiece=new T(I,r,a),u.add(s.virtualPiece)),_.piece._onclickEvent&&_.piece.off("click",_.piece._onclickEvent);var L=function(D){s._rootToNode(_.parentNode)};_.piece._onclickEvent=L,s.virtualPiece.on("click",L)}else s.virtualPiece&&(u.remove(s.virtualPiece),s.virtualPiece=null)}},dispose:function(){},_initEvents:function(){var r=this,a=function(n){var e=!1,s=r.seriesModel.getViewRoot();s.eachNode(function(t){if(!e&&t.piece&&t.piece.childAt(0)===n.target){var i=t.getModel().get("nodeClick");if(i==="rootToNode")r._rootToNode(t);else if(i==="link"){var l=t.getModel(),u=l.get("link");if(u){var h=l.get("target",!0)||"_blank";m(u,h)}}e=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",a),this.group._onclickEvent=a},_rootToNode:function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:f,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},containPoint:function(r,a){var n=a.getData(),e=n.getItemLayout(0);if(e){var s=r[0]-e.cx,t=r[1]-e.cy,i=Math.sqrt(s*s+t*t);return i<=e.r&&i>=e.r0}}}),o=c;U.exports=o},NAnI:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("wXyp"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},NBmB:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.encodingName=x,P.encodings=void 0;var O={encodingRaw:0,encodingCopyRect:1,encodingRRE:2,encodingHextile:5,encodingTight:7,encodingTightPNG:-260,pseudoEncodingQualityLevel9:-23,pseudoEncodingQualityLevel0:-32,pseudoEncodingDesktopSize:-223,pseudoEncodingLastRect:-224,pseudoEncodingCursor:-239,pseudoEncodingQEMUExtendedKeyEvent:-258,pseudoEncodingDesktopName:-307,pseudoEncodingExtendedDesktopSize:-308,pseudoEncodingXvp:-309,pseudoEncodingFence:-312,pseudoEncodingContinuousUpdates:-313,pseudoEncodingCompressLevel9:-247,pseudoEncodingCompressLevel0:-256,pseudoEncodingVMwareCursor:1464686180,pseudoEncodingExtendedClipboard:3231835598};P.encodings=O;function x(T){switch(T){case O.encodingRaw:return"Raw";case O.encodingCopyRect:return"CopyRect";case O.encodingRRE:return"RRE";case O.encodingHextile:return"Hextile";case O.encodingTight:return"Tight";case O.encodingTightPNG:return"TightPNG";default:return"[unknown encoding "+T+"]"}}},NC18:function(U,P,d){var O=d("y+Vt"),x=d("IMiH"),T=d("7oTu"),v=Math.sqrt,S=Math.sin,m=Math.cos,f=Math.PI,c=function(p){return Math.sqrt(p[0]*p[0]+p[1]*p[1])},o=function(p,g){return(p[0]*g[0]+p[1]*g[1])/(c(p)*c(g))},r=function(p,g){return(p[0]*g[1]<p[1]*g[0]?-1:1)*Math.acos(o(p,g))};function a(h,p,g,A,y,E,C,w,b,I,_){var L=b*(f/180),D=m(L)*(h-g)/2+S(L)*(p-A)/2,N=-1*S(L)*(h-g)/2+m(L)*(p-A)/2,R=D*D/(C*C)+N*N/(w*w);R>1&&(C*=v(R),w*=v(R));var B=(y===E?-1:1)*v((C*C*(w*w)-C*C*(N*N)-w*w*(D*D))/(C*C*(N*N)+w*w*(D*D)))||0,M=B*C*N/w,H=B*-w*D/C,F=(h+g)/2+m(L)*M-S(L)*H,K=(p+A)/2+S(L)*M+m(L)*H,j=r([1,0],[(D-M)/C,(N-H)/w]),V=[(D-M)/C,(N-H)/w],z=[(-1*D-M)/C,(-1*N-H)/w],Y=r(V,z);o(V,z)<=-1&&(Y=f),o(V,z)>=1&&(Y=0),E===0&&Y>0&&(Y=Y-2*f),E===1&&Y<0&&(Y=Y+2*f),_.addData(I,F,K,C,w,j,Y,L,E)}var n=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function s(h){if(!h)return new x;for(var p=0,g=0,A=p,y=g,E,C=new x,w=x.CMD,b=h.match(n),I=0;I<b.length;I++){for(var _=b[I],L=_.charAt(0),D,N=_.match(e)||[],R=N.length,B=0;B<R;B++)N[B]=parseFloat(N[B]);for(var M=0;M<R;){var H,F,K,j,V,z,Y,ee=p,fe=g;switch(L){case"l":p+=N[M++],g+=N[M++],D=w.L,C.addData(D,p,g);break;case"L":p=N[M++],g=N[M++],D=w.L,C.addData(D,p,g);break;case"m":p+=N[M++],g+=N[M++],D=w.M,C.addData(D,p,g),A=p,y=g,L="l";break;case"M":p=N[M++],g=N[M++],D=w.M,C.addData(D,p,g),A=p,y=g,L="L";break;case"h":p+=N[M++],D=w.L,C.addData(D,p,g);break;case"H":p=N[M++],D=w.L,C.addData(D,p,g);break;case"v":g+=N[M++],D=w.L,C.addData(D,p,g);break;case"V":g=N[M++],D=w.L,C.addData(D,p,g);break;case"C":D=w.C,C.addData(D,N[M++],N[M++],N[M++],N[M++],N[M++],N[M++]),p=N[M-2],g=N[M-1];break;case"c":D=w.C,C.addData(D,N[M++]+p,N[M++]+g,N[M++]+p,N[M++]+g,N[M++]+p,N[M++]+g),p+=N[M-2],g+=N[M-1];break;case"S":H=p,F=g;var ie=C.len(),we=C.data;E===w.C&&(H+=p-we[ie-4],F+=g-we[ie-3]),D=w.C,ee=N[M++],fe=N[M++],p=N[M++],g=N[M++],C.addData(D,H,F,ee,fe,p,g);break;case"s":H=p,F=g;var ie=C.len(),we=C.data;E===w.C&&(H+=p-we[ie-4],F+=g-we[ie-3]),D=w.C,ee=p+N[M++],fe=g+N[M++],p+=N[M++],g+=N[M++],C.addData(D,H,F,ee,fe,p,g);break;case"Q":ee=N[M++],fe=N[M++],p=N[M++],g=N[M++],D=w.Q,C.addData(D,ee,fe,p,g);break;case"q":ee=N[M++]+p,fe=N[M++]+g,p+=N[M++],g+=N[M++],D=w.Q,C.addData(D,ee,fe,p,g);break;case"T":H=p,F=g;var ie=C.len(),we=C.data;E===w.Q&&(H+=p-we[ie-4],F+=g-we[ie-3]),p=N[M++],g=N[M++],D=w.Q,C.addData(D,H,F,p,g);break;case"t":H=p,F=g;var ie=C.len(),we=C.data;E===w.Q&&(H+=p-we[ie-4],F+=g-we[ie-3]),p+=N[M++],g+=N[M++],D=w.Q,C.addData(D,H,F,p,g);break;case"A":K=N[M++],j=N[M++],V=N[M++],z=N[M++],Y=N[M++],ee=p,fe=g,p=N[M++],g=N[M++],D=w.A,a(ee,fe,p,g,z,Y,K,j,V,D,C);break;case"a":K=N[M++],j=N[M++],V=N[M++],z=N[M++],Y=N[M++],ee=p,fe=g,p+=N[M++],g+=N[M++],D=w.A,a(ee,fe,p,g,z,Y,K,j,V,D,C);break}}(L==="z"||L==="Z")&&(D=w.Z,C.addData(D),p=A,g=y),E=D}return C.toStatic(),C}function t(h,p){var g=s(h);return p=p||{},p.buildPath=function(A){if(A.setData){A.setData(g.data);var y=A.getContext();y&&A.rebuildPath(y)}else{var y=A;g.rebuildPath(y)}},p.applyTransform=function(A){T(g,A),this.dirty(!0)},p}function i(h,p){return new O(t(h,p))}function l(h,p){return O.extend(t(h,p))}function u(h,p){for(var g=[],A=h.length,y=0;y<A;y++){var E=h[y];E.path||E.createPathProxy(),E.__dirtyPath&&E.buildPath(E.path,E.shape,!0),g.push(E.path)}var C=new O(p);return C.createPathProxy(),C.buildPath=function(w){w.appendPath(g);var b=w.getContext();b&&w.rebuildPath(b)},C}P.createFromString=i,P.extendFromString=l,P.mergePath=u},NFKh:function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("MlIO"),d("F+F2"),d("qM6L"),d("ETIr"),d("wbyO"),d("cv67"),d("3y9D"),d("lPiR"),d("GRuw"),d("1uat"),d("uGsb"),d("5hvy"),d("ELcG"),d("WYAk"),d("e7zE"),d("K3mO"),d("OLod"),d("ALsQ"),d("9OqN"),d("qu8F"),d("S6kV"),d("gb/T"),d("qBft"),d("oRuE"),d("jO9C"),d("KmYQ"),d("uGxW"),d("bQjk"),d("wZgz"),d("pA7S"),d("w7YG"),d("E4JC"),d("PVpz"))})(this,function(O){return O})},NH9N:function(U,P,d){var O=d("bYtY"),x=d("mFDi"),T=d("Fofx"),v=d("IwbS"),S=d("+TT/"),m=d("kzvK"),f=d("CMP+"),c=d("oVpE"),o=c.createSymbol,r=d("aX7z"),a=d("OELB"),n=d("7aKB"),e=n.encodeHTML,s=O.bind,t=O.each,i=Math.PI,l=m.extend({type:"timeline.slider",init:function(A,y){this.api=y,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(A,y,E,C){if(this.model=A,this.api=E,this.ecModel=y,this.group.removeAll(),A.get("show",!0)){var w=this._layout(A,E),b=this._createGroup("mainGroup"),I=this._createGroup("labelGroup"),_=this._axis=this._createAxis(w,A);A.formatTooltip=function(L){return e(_.scale.getLabel(L))},t(["AxisLine","AxisTick","Control","CurrentPointer"],function(L){this["_render"+L](w,b,_,A)},this),this._renderAxisLabel(w,I,_,A),this._position(w,A)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(A,y){var E=A.get("label.position"),C=A.get("orient"),w=u(A,y);E==null||E==="auto"?E=C==="horizontal"?w.y+w.height/2<y.getHeight()/2?"-":"+":w.x+w.width/2<y.getWidth()/2?"+":"-":isNaN(E)&&(E={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[C][E]);var b={horizontal:"center",vertical:E>=0||E==="+"?"left":"right"},I={horizontal:E>=0||E==="+"?"top":"bottom",vertical:"middle"},_={horizontal:0,vertical:i/2},L=C==="vertical"?w.height:w.width,D=A.getModel("controlStyle"),N=D.get("show",!0),R=N?D.get("itemSize"):0,B=N?D.get("itemGap"):0,M=R+B,H=A.get("label.rotate")||0;H=H*i/180;var F,K,j,V,z=D.get("position",!0),Y=N&&D.get("showPlayBtn",!0),ee=N&&D.get("showPrevBtn",!0),fe=N&&D.get("showNextBtn",!0),ie=0,we=L;return z==="left"||z==="bottom"?(Y&&(F=[0,0],ie+=M),ee&&(K=[ie,0],ie+=M),fe&&(j=[we-R,0],we-=M)):(Y&&(F=[we-R,0],we-=M),ee&&(K=[0,0],ie+=M),fe&&(j=[we-R,0],we-=M)),V=[ie,we],A.get("inverse")&&V.reverse(),{viewRect:w,mainLength:L,orient:C,rotation:_[C],labelRotation:H,labelPosOpt:E,labelAlign:A.get("label.align")||b[C],labelBaseline:A.get("label.verticalAlign")||A.get("label.baseline")||I[C],playPosition:F,prevBtnPosition:K,nextBtnPosition:j,axisExtent:V,controlSize:R,controlGap:B}},_position:function(A,y){var E=this._mainGroup,C=this._labelGroup,w=A.viewRect;if(A.orient==="vertical"){var b=T.create(),I=w.x,_=w.y+w.height;T.translate(b,b,[-I,-_]),T.rotate(b,b,-i/2),T.translate(b,b,[I,_]),w=w.clone(),w.applyTransform(b)}var L=K(w),D=K(E.getBoundingRect()),N=K(C.getBoundingRect()),R=E.position,B=C.position;B[0]=R[0]=L[0][0];var M=A.labelPosOpt;if(isNaN(M)){var H=M==="+"?0:1;j(R,D,L,1,H),j(B,N,L,1,1-H)}else{var H=M>=0?0:1;j(R,D,L,1,H),B[1]=R[1]+M}E.attr("position",R),C.attr("position",B),E.rotation=C.rotation=A.rotation,F(E),F(C);function F(V){var z=V.position;V.origin=[L[0][0]-z[0],L[1][0]-z[1]]}function K(V){return[[V.x,V.x+V.width],[V.y,V.y+V.height]]}function j(V,z,Y,ee,fe){V[ee]+=Y[ee][fe]-z[ee][fe]}},_createAxis:function(A,y){var E=y.getData(),C=y.get("axisType"),w=r.createScaleByModel(y,C);w.getTicks=function(){return E.mapArray(["value"],function(_){return _})};var b=E.getDataExtent("value");w.setExtent(b[0],b[1]),w.niceTicks();var I=new f("value",w,A.axisExtent,C);return I.model=y,I},_createGroup:function(A){var y=this["_"+A]=new v.Group;return this.group.add(y),y},_renderAxisLine:function(A,y,E,C){var w=E.getExtent();if(!C.get("lineStyle.show"))return;y.add(new v.Line({shape:{x1:w[0],y1:0,x2:w[1],y2:0},style:O.extend({lineCap:"round"},C.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(A,y,E,C){var w=C.getData(),b=E.scale.getTicks();t(b,function(I){var _=E.dataToCoord(I),L=w.getItemModel(I),D=L.getModel("itemStyle"),N=L.getModel("emphasis.itemStyle"),R={position:[_,0],onclick:s(this._changeTimeline,this,I)},B=p(L,D,y,R);v.setHoverStyle(B,N.getItemStyle()),L.get("tooltip")?(B.dataIndex=I,B.dataModel=C):B.dataIndex=B.dataModel=null},this)},_renderAxisLabel:function(A,y,E,C){var w=E.getLabelModel();if(!w.get("show"))return;var b=C.getData(),I=E.getViewLabels();t(I,function(_){var L=_.tickValue,D=b.getItemModel(L),N=D.getModel("label"),R=D.getModel("emphasis.label"),B=E.dataToCoord(_.tickValue),M=new v.Text({position:[B,0],rotation:A.labelRotation-A.rotation,onclick:s(this._changeTimeline,this,L),silent:!1});v.setTextStyle(M.style,N,{text:_.formattedLabel,textAlign:A.labelAlign,textVerticalAlign:A.labelBaseline}),y.add(M),v.setHoverStyle(M,v.setTextStyle({},R))},this)},_renderControl:function(A,y,E,C){var w=A.controlSize,b=A.rotation,I=C.getModel("controlStyle").getItemStyle(),_=C.getModel("emphasis.controlStyle").getItemStyle(),L=[0,-w/2,w,w],D=C.getPlayState(),N=C.get("inverse",!0);R(A.nextBtnPosition,"controlStyle.nextIcon",s(this._changeTimeline,this,N?"-":"+")),R(A.prevBtnPosition,"controlStyle.prevIcon",s(this._changeTimeline,this,N?"+":"-")),R(A.playPosition,"controlStyle."+(D?"stopIcon":"playIcon"),s(this._handlePlayClick,this,!D),!0);function R(B,M,H,F){if(!B)return;var K={position:B,origin:[w/2,0],rotation:F?-b:0,rectHover:!0,style:I,onclick:H},j=h(C,M,L,K);y.add(j),v.setHoverStyle(j,_)}},_renderCurrentPointer:function(A,y,E,C){var w=C.getData(),b=C.getCurrentIndex(),I=w.getItemModel(b).getModel("checkpointStyle"),_=this,L={onCreate:function(D){D.draggable=!0,D.drift=s(_._handlePointerDrag,_),D.ondragend=s(_._handlePointerDragend,_),g(D,b,E,C,!0)},onUpdate:function(D){g(D,b,E,C)}};this._currentPointer=p(I,I,this._mainGroup,{},this._currentPointer,L)},_handlePlayClick:function(A){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:A,from:this.uid})},_handlePointerDrag:function(A,y,E){this._clearTimer(),this._pointerChangeTimeline([E.offsetX,E.offsetY])},_handlePointerDragend:function(A){this._pointerChangeTimeline([A.offsetX,A.offsetY],!0)},_pointerChangeTimeline:function(A,y){var E=this._toAxisCoord(A)[0],C=this._axis,w=a.asc(C.getExtent().slice());E>w[1]&&(E=w[1]),E<w[0]&&(E=w[0]),this._currentPointer.position[0]=E,this._currentPointer.dirty();var b=this._findNearestTick(E),I=this.model;(y||b!==I.getCurrentIndex()&&I.get("realtime"))&&this._changeTimeline(b)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(s(A,this),this.model.get("playInterval")));function A(){var y=this.model;this._changeTimeline(y.getCurrentIndex()+(y.get("rewind",!0)?-1:1))}},_toAxisCoord:function(A){var y=this._mainGroup.getLocalTransform();return v.applyTransform(A,y,!0)},_findNearestTick:function(A){var y=this.model.getData(),E=Infinity,C,w=this._axis;return y.each(["value"],function(b,I){var _=w.dataToCoord(b),L=Math.abs(_-A);L<E&&(E=L,C=I)}),C},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(A){var y=this.model.getCurrentIndex();A==="+"?A=y+1:A==="-"&&(A=y-1),this.api.dispatchAction({type:"timelineChange",currentIndex:A,from:this.uid})}});function u(A,y){return S.getLayoutRect(A.getBoxLayoutParams(),{width:y.getWidth(),height:y.getHeight()},A.get("padding"))}function h(A,y,E,C){var w=v.makePath(A.get(y).replace(/^path:\/\//,""),O.clone(C||{}),new x(E[0],E[1],E[2],E[3]),"center");return w}function p(A,y,E,C,w,b){var I=y.get("color");if(w)w.setColor(I),E.add(w),b&&b.onUpdate(w);else{var _=A.get("symbol");w=o(_,-1,-1,2,2,I),w.setStyle("strokeNoScale",!0),E.add(w),b&&b.onCreate(w)}var L=y.getItemStyle(["color","symbol","symbolSize"]);w.setStyle(L),C=O.merge({rectHover:!0,z2:100},C,!0);var D=A.get("symbolSize");D=D instanceof Array?D.slice():[+D,+D],D[0]/=2,D[1]/=2,C.scale=D;var N=A.get("symbolOffset");if(N){var R=C.position=C.position||[0,0];R[0]+=a.parsePercent(N[0],D[0]),R[1]+=a.parsePercent(N[1],D[1])}var B=A.get("symbolRotate");return C.rotation=(B||0)*Math.PI/180||0,w.attr(C),w.updateTransform(),w}function g(A,y,E,C,w){if(A.dragging)return;var b=C.getModel("checkpointStyle"),I=E.dataToCoord(C.getData().get(["value"],y));w||!b.get("animation",!0)?A.attr({position:[I,0]}):(A.stopAnimation(!0),A.animateTo({position:[I,0]},b.get("animationDuration",!0),b.get("animationEasing",!0)))}U.exports=l},NJEC:function(U,P,d){"use strict";var O=d("pVnL"),x=d.n(O),T=d("J4zp"),v=d.n(T),S=d("q1tI"),m=d.n(S),f=d("TSYQ"),c=d.n(f),o=d("sKbD"),r=d.n(o),a=d("4IlW"),n=d("3S7+"),e=d("2/Rp"),s=d("zvFY"),t=d("YMnH"),i=d("ZvpZ"),l=d("H84U"),u=d("bogI"),h=d("0n0R"),p=void 0,g=function(y,E){var C={};for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&E.indexOf(w)<0&&(C[w]=y[w]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,w=Object.getOwnPropertySymbols(y);b<w.length;b++)E.indexOf(w[b])<0&&Object.prototype.propertyIsEnumerable.call(y,w[b])&&(C[w[b]]=y[w[b]]);return C},A=S.forwardRef(function(y,E){var C=S.useState(y.visible),w=v()(C,2),b=w[0],I=w[1];S.useEffect(function(){"visible"in y&&I(y.visible)},[y.visible]),S.useEffect(function(){"defaultVisible"in y&&I(y.defaultVisible)},[y.defaultVisible]);var _=function(Ce,Le){"visible"in y||I(Ce),y.onVisibleChange&&y.onVisibleChange(Ce,Le)},L=function(Ce){_(!1,Ce),y.onConfirm&&y.onConfirm.call(p,Ce)},D=function(Ce){_(!1,Ce),y.onCancel&&y.onCancel.call(p,Ce)},N=function(Ce){Ce.keyCode===a.a.ESC&&b&&_(!1,Ce)},R=function(Ce){var Le=y.disabled;if(Le)return;_(Ce)},B=function(Ce,Le){var He=y.okButtonProps,ce=y.cancelButtonProps,Pe=y.title,Q=y.cancelText,me=y.okText,Je=y.okType,re=y.icon;return S.createElement("div",{className:"".concat(Ce,"-inner-content")},S.createElement("div",{className:"".concat(Ce,"-message")},re,S.createElement("div",{className:"".concat(Ce,"-message-title")},Object(u.a)(Pe))),S.createElement("div",{className:"".concat(Ce,"-buttons")},S.createElement(e.a,x()({onClick:D,size:"small"},ce),Q||Le.cancelText),S.createElement(e.a,x()({onClick:L},Object(s.a)(Je),{size:"small"},He),me||Le.okText)))},M=S.useContext(l.b),H=M.getPrefixCls,F=y.prefixCls,K=y.placement,j=y.children,V=y.overlayClassName,z=g(y,["prefixCls","placement","children","overlayClassName"]),Y=H("popover",F),ee=H("popconfirm",F),fe=c()(ee,V),ie=S.createElement(t.a,{componentName:"Popconfirm",defaultLocale:i.a.Popconfirm},function(we){return B(Y,we)});return S.createElement(n.a,x()({},z,{prefixCls:Y,placement:K,onVisibleChange:R,visible:b,overlay:ie,overlayClassName:fe,ref:E}),Object(h.a)(j,{onKeyDown:function(Ce){var Le,He;(He=j==null?void 0:(Le=j.props).onKeyDown)===null||He===void 0||He.call(Le,Ce),N(Ce)}}))});A.defaultProps={transitionName:"zoom-big",placement:"top",trigger:"click",okType:"primary",icon:S.createElement(r.a,null),disabled:!1},P.a=A},NUBc:function(U,P,d){"use strict";var O=d("lSNA"),x=d.n(O),T=d("pVnL"),v=d.n(T),S=d("q1tI"),m=d.n(S),f=d("wx14"),c=d("rePB"),o=d("VTBJ"),r=d("1OyB"),a=d("vuIU"),n=d("Ji7U"),e=d("LK+K"),s=d("TSYQ"),t=d.n(s),i=function(Le){var He,ce="".concat(Le.rootPrefixCls,"-item"),Pe=t()(ce,"".concat(ce,"-").concat(Le.page),(He={},Object(c.a)(He,"".concat(ce,"-active"),Le.active),Object(c.a)(He,Le.className,!!Le.className),Object(c.a)(He,"".concat(ce,"-disabled"),!Le.page),He)),Q=function(){Le.onClick(Le.page)},me=function(re){Le.onKeyPress(re,Le.onClick,Le.page)};return m.a.createElement("li",{title:Le.showTitle?Le.page:null,className:Pe,onClick:Q,onKeyPress:me,tabIndex:"0"},Le.itemRender(Le.page,"page",m.a.createElement("a",{rel:"nofollow"},Le.page)))},l=i,u={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},h=function(Ce){Object(n.a)(He,Ce);var Le=Object(e.a)(He);function He(){var ce;Object(r.a)(this,He);for(var Pe=arguments.length,Q=new Array(Pe),me=0;me<Pe;me++)Q[me]=arguments[me];return ce=Le.call.apply(Le,[this].concat(Q)),ce.state={goInputText:""},ce.buildOptionText=function(Je){return"".concat(Je," ").concat(ce.props.locale.items_per_page)},ce.changeSize=function(Je){ce.props.changeSize(Number(Je))},ce.handleChange=function(Je){ce.setState({goInputText:Je.target.value})},ce.handleBlur=function(Je){var re=ce.props,G=re.goButton,X=re.quickGo,J=re.rootPrefixCls,Ae=ce.state.goInputText;if(G||Ae==="")return;if(Je.relatedTarget&&(Je.relatedTarget.className.indexOf("".concat(J,"-prev"))>=0||Je.relatedTarget.className.indexOf("".concat(J,"-next"))>=0))return;ce.setState({goInputText:""}),X(ce.getValidValue())},ce.go=function(Je){var re=ce.state.goInputText;if(re==="")return;(Je.keyCode===u.ENTER||Je.type==="click")&&(ce.setState({goInputText:""}),ce.props.quickGo(ce.getValidValue()))},ce}return Object(a.a)(He,[{key:"getValidValue",value:function(){var Pe=this.state,Q=Pe.goInputText,me=Pe.current;return!Q||isNaN(Q)?me:Number(Q)}},{key:"getPageSizeOptions",value:function(){var Pe=this.props,Q=Pe.pageSize,me=Pe.pageSizeOptions;return me.some(function(Je){return Je.toString()===Q.toString()})?me:me.concat([Q.toString()]).sort(function(Je,re){var G=isNaN(Number(Je))?0:Number(Je),X=isNaN(Number(re))?0:Number(re);return G-X})}},{key:"render",value:function(){var Pe=this,Q=this.props,me=Q.pageSize,Je=Q.locale,re=Q.rootPrefixCls,G=Q.changeSize,X=Q.quickGo,J=Q.goButton,Ae=Q.selectComponentClass,he=Q.buildOptionText,Me=Q.selectPrefixCls,Ie=Q.disabled,oe=this.state.goInputText,pe="".concat(re,"-options"),Oe=Ae,Ye=null,it=null,et=null;if(!G&&!X)return null;var Te=this.getPageSizeOptions();if(G&&Oe){var tt=Te.map(function(ze,dt){return m.a.createElement(Oe.Option,{key:dt,value:ze.toString()},(he||Pe.buildOptionText)(ze))});Ye=m.a.createElement(Oe,{disabled:Ie,prefixCls:Me,showSearch:!1,className:"".concat(pe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(me||Te[0]).toString(),onChange:this.changeSize,getPopupContainer:function(dt){return dt.parentNode}},tt)}return X&&(J&&(et=typeof J=="boolean"?m.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Ie,className:"".concat(pe,"-quick-jumper-button")},Je.jump_to_confirm):m.a.createElement("span",{onClick:this.go,onKeyUp:this.go},J)),it=m.a.createElement("div",{className:"".concat(pe,"-quick-jumper")},Je.jump_to,m.a.createElement("input",{disabled:Ie,type:"text",value:oe,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),Je.page,et)),m.a.createElement("li",{className:"".concat(pe)},Ye,it)}}]),He}(m.a.Component);h.defaultProps={pageSizeOptions:["10","20","50","100"]};var p=h,g=d("N2Kk");function A(){}function y(Ce){return typeof Ce=="number"&&isFinite(Ce)&&Math.floor(Ce)===Ce}function E(Ce,Le,He){return He}function C(Ce,Le,He){var ce=typeof Ce=="undefined"?Le.pageSize:Ce;return Math.floor((He.total-1)/ce)+1}var w=function(Ce){Object(n.a)(He,Ce);var Le=Object(e.a)(He);function He(ce){var Pe;Object(r.a)(this,He),Pe=Le.call(this,ce),Pe.getJumpPrevPage=function(){return Math.max(1,Pe.state.current-(Pe.props.showLessItems?3:5))},Pe.getJumpNextPage=function(){return Math.min(C(void 0,Pe.state,Pe.props),Pe.state.current+(Pe.props.showLessItems?3:5))},Pe.getItemIcon=function(G,X){var J=Pe.props.prefixCls,Ae=G||m.a.createElement("button",{type:"button","aria-label":X,className:"".concat(J,"-item-link")});return typeof G=="function"&&(Ae=m.a.createElement(G,Object(o.a)({},Pe.props))),Ae},Pe.savePaginationNode=function(G){Pe.paginationNode=G},Pe.isValid=function(G){return y(G)&&G!==Pe.state.current},Pe.shouldDisplayQuickJumper=function(){var G=Pe.props,X=G.showQuickJumper,J=G.pageSize,Ae=G.total;return Ae<=J?!1:X},Pe.handleKeyDown=function(G){(G.keyCode===u.ARROW_UP||G.keyCode===u.ARROW_DOWN)&&G.preventDefault()},Pe.handleKeyUp=function(G){var X=Pe.getValidValue(G),J=Pe.state.currentInputValue;X!==J&&Pe.setState({currentInputValue:X}),G.keyCode===u.ENTER?Pe.handleChange(X):G.keyCode===u.ARROW_UP?Pe.handleChange(X-1):G.keyCode===u.ARROW_DOWN&&Pe.handleChange(X+1)},Pe.changePageSize=function(G){var X=Pe.state.current,J=C(G,Pe.state,Pe.props);X=X>J?J:X,J===0&&(X=Pe.state.current),typeof G=="number"&&("pageSize"in Pe.props||Pe.setState({pageSize:G}),"current"in Pe.props||Pe.setState({current:X,currentInputValue:X})),Pe.props.onShowSizeChange(X,G),"onChange"in Pe.props&&Pe.props.onChange&&Pe.props.onChange(X,G)},Pe.handleChange=function(G){var X=Pe.props.disabled,J=G;if(Pe.isValid(J)&&!X){var Ae=C(void 0,Pe.state,Pe.props);J>Ae?J=Ae:J<1&&(J=1),"current"in Pe.props||Pe.setState({current:J,currentInputValue:J});var he=Pe.state.pageSize;return Pe.props.onChange(J,he),J}return Pe.state.current},Pe.prev=function(){Pe.hasPrev()&&Pe.handleChange(Pe.state.current-1)},Pe.next=function(){Pe.hasNext()&&Pe.handleChange(Pe.state.current+1)},Pe.jumpPrev=function(){Pe.handleChange(Pe.getJumpPrevPage())},Pe.jumpNext=function(){Pe.handleChange(Pe.getJumpNextPage())},Pe.hasPrev=function(){return Pe.state.current>1},Pe.hasNext=function(){return Pe.state.current<C(void 0,Pe.state,Pe.props)},Pe.runIfEnter=function(G,X){if(G.key==="Enter"||G.charCode===13){for(var J=arguments.length,Ae=new Array(J>2?J-2:0),he=2;he<J;he++)Ae[he-2]=arguments[he];X.apply(void 0,Ae)}},Pe.runIfEnterPrev=function(G){Pe.runIfEnter(G,Pe.prev)},Pe.runIfEnterNext=function(G){Pe.runIfEnter(G,Pe.next)},Pe.runIfEnterJumpPrev=function(G){Pe.runIfEnter(G,Pe.jumpPrev)},Pe.runIfEnterJumpNext=function(G){Pe.runIfEnter(G,Pe.jumpNext)},Pe.handleGoTO=function(G){(G.keyCode===u.ENTER||G.type==="click")&&Pe.handleChange(Pe.state.currentInputValue)};var Q=ce.onChange!==A,me="current"in ce;me&&!Q&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Je=ce.defaultCurrent;"current"in ce&&(Je=ce.current);var re=ce.defaultPageSize;return"pageSize"in ce&&(re=ce.pageSize),Je=Math.min(Je,C(re,void 0,ce)),Pe.state={current:Je,currentInputValue:Je,pageSize:re},Pe}return Object(a.a)(He,[{key:"componentDidUpdate",value:function(Pe,Q){var me=this.props.prefixCls;if(Q.current!==this.state.current&&this.paginationNode){var Je=this.paginationNode.querySelector(".".concat(me,"-item-").concat(Q.current));Je&&document.activeElement===Je&&Je.blur()}}},{key:"getValidValue",value:function(Pe){var Q=Pe.target.value,me=C(void 0,this.state,this.props),Je=this.state.currentInputValue,re;return Q===""?re=Q:isNaN(Number(Q))?re=Je:Q>=me?re=me:re=Number(Q),re}},{key:"getShowSizeChanger",value:function(){var Pe=this.props,Q=Pe.showSizeChanger,me=Pe.total,Je=Pe.totalBoundaryShowSizeChanger;return typeof Q!="undefined"?Q:me>Je}},{key:"renderPrev",value:function(Pe){var Q=this.props,me=Q.prevIcon,Je=Q.itemRender,re=Je(Pe,"prev",this.getItemIcon(me,"prev page")),G=!this.hasPrev();return Object(S.isValidElement)(re)?Object(S.cloneElement)(re,{disabled:G}):re}},{key:"renderNext",value:function(Pe){var Q=this.props,me=Q.nextIcon,Je=Q.itemRender,re=Je(Pe,"next",this.getItemIcon(me,"next page")),G=!this.hasNext();return Object(S.isValidElement)(re)?Object(S.cloneElement)(re,{disabled:G}):re}},{key:"render",value:function(){var Pe=this,Q=this.props,me=Q.prefixCls,Je=Q.className,re=Q.style,G=Q.disabled,X=Q.hideOnSinglePage,J=Q.total,Ae=Q.locale,he=Q.showQuickJumper,Me=Q.showLessItems,Ie=Q.showTitle,oe=Q.showTotal,pe=Q.simple,Oe=Q.itemRender,Ye=Q.showPrevNextJumpers,it=Q.jumpPrevIcon,et=Q.jumpNextIcon,Te=Q.selectComponentClass,tt=Q.selectPrefixCls,ze=Q.pageSizeOptions,dt=this.state,Ot=dt.current,Tt=dt.pageSize,Ct=dt.currentInputValue;if(X===!0&&J<=Tt)return null;var Nt=C(void 0,this.state,this.props),Be=[],$=null,Z=null,Re=null,De=null,ae=null,gt=he&&he.goButton,jt=Me?1:2,ut=Ot-1>0?Ot-1:0,rr=Ot+1<Nt?Ot+1:Nt,pr=Object.keys(this.props).reduce(function(kn,Vn){return(Vn.substr(0,5)==="data-"||Vn.substr(0,5)==="aria-"||Vn==="role")&&(kn[Vn]=Pe.props[Vn]),kn},{});if(pe)return gt&&(typeof gt=="boolean"?ae=m.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ae.jump_to_confirm):ae=m.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},gt),ae=m.a.createElement("li",{title:Ie?"".concat(Ae.jump_to).concat(Ot,"/").concat(Nt):null,className:"".concat(me,"-simple-pager")},ae)),m.a.createElement("ul",Object(f.a)({className:t()(me,"".concat(me,"-simple"),Object(c.a)({},"".concat(me,"-disabled"),G),Je),style:re,ref:this.savePaginationNode},pr),m.a.createElement("li",{title:Ie?Ae.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:t()("".concat(me,"-prev"),Object(c.a)({},"".concat(me,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(ut)),m.a.createElement("li",{title:Ie?"".concat(Ot,"/").concat(Nt):null,className:"".concat(me,"-simple-pager")},m.a.createElement("input",{type:"text",value:Ct,disabled:G,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),m.a.createElement("span",{className:"".concat(me,"-slash")},"/"),Nt),m.a.createElement("li",{title:Ie?Ae.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:t()("".concat(me,"-next"),Object(c.a)({},"".concat(me,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(rr)),ae);if(Nt<=3+jt*2){var nn={locale:Ae,rootPrefixCls:me,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Ie,itemRender:Oe};Nt||Be.push(m.a.createElement(l,Object(f.a)({},nn,{key:"noPager",page:Nt,className:"".concat(me,"-disabled")})));for(var mr=1;mr<=Nt;mr+=1){var vr=Ot===mr;Be.push(m.a.createElement(l,Object(f.a)({},nn,{key:mr,page:mr,active:vr})))}}else{var $t=Me?Ae.prev_3:Ae.prev_5,Xt=Me?Ae.next_3:Ae.next_5;Ye&&($=m.a.createElement("li",{title:Ie?$t:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:t()("".concat(me,"-jump-prev"),Object(c.a)({},"".concat(me,"-jump-prev-custom-icon"),!!it))},Oe(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(it,"prev page"))),Z=m.a.createElement("li",{title:Ie?Xt:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:t()("".concat(me,"-jump-next"),Object(c.a)({},"".concat(me,"-jump-next-custom-icon"),!!et))},Oe(this.getJumpNextPage(),"jump-next",this.getItemIcon(et,"next page")))),De=m.a.createElement(l,{locale:Ae,last:!0,rootPrefixCls:me,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Nt,page:Nt,active:!1,showTitle:Ie,itemRender:Oe}),Re=m.a.createElement(l,{locale:Ae,rootPrefixCls:me,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Ie,itemRender:Oe});var ft=Math.max(1,Ot-jt),Ur=Math.min(Ot+jt,Nt);Ot-1<=jt&&(Ur=1+jt*2),Nt-Ot<=jt&&(ft=Nt-jt*2);for(var yn=ft;yn<=Ur;yn+=1){var Dn=Ot===yn;Be.push(m.a.createElement(l,{locale:Ae,rootPrefixCls:me,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:yn,page:yn,active:Dn,showTitle:Ie,itemRender:Oe}))}Ot-1>=jt*2&&Ot!==1+2&&(Be[0]=Object(S.cloneElement)(Be[0],{className:"".concat(me,"-item-after-jump-prev")}),Be.unshift($)),Nt-Ot>=jt*2&&Ot!==Nt-2&&(Be[Be.length-1]=Object(S.cloneElement)(Be[Be.length-1],{className:"".concat(me,"-item-before-jump-next")}),Be.push(Z)),ft!==1&&Be.unshift(Re),Ur!==Nt&&Be.push(De)}var Un=null;oe&&(Un=m.a.createElement("li",{className:"".concat(me,"-total-text")},oe(J,[J===0?0:(Ot-1)*Tt+1,Ot*Tt>J?J:Ot*Tt])));var wi=!this.hasPrev()||!Nt,Rn=!this.hasNext()||!Nt;return m.a.createElement("ul",Object(f.a)({className:t()(me,Je,Object(c.a)({},"".concat(me,"-disabled"),G)),style:re,unselectable:"unselectable",ref:this.savePaginationNode},pr),Un,m.a.createElement("li",{title:Ie?Ae.prev_page:null,onClick:this.prev,tabIndex:wi?null:0,onKeyPress:this.runIfEnterPrev,className:t()("".concat(me,"-prev"),Object(c.a)({},"".concat(me,"-disabled"),wi)),"aria-disabled":wi},this.renderPrev(ut)),Be,m.a.createElement("li",{title:Ie?Ae.next_page:null,onClick:this.next,tabIndex:Rn?null:0,onKeyPress:this.runIfEnterNext,className:t()("".concat(me,"-next"),Object(c.a)({},"".concat(me,"-disabled"),Rn)),"aria-disabled":Rn},this.renderNext(rr)),m.a.createElement(p,{disabled:G,locale:Ae,rootPrefixCls:me,selectComponentClass:Te,selectPrefixCls:tt,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ot,pageSize:Tt,pageSizeOptions:ze,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:gt}))}}],[{key:"getDerivedStateFromProps",value:function(Pe,Q){var me={};if("current"in Pe&&(me.current=Pe.current,Pe.current!==Q.current&&(me.currentInputValue=me.current)),"pageSize"in Pe&&Pe.pageSize!==Q.pageSize){var Je=Q.current,re=C(Pe.pageSize,Q,Pe);Je=Je>re?re:Je,"current"in Pe||(me.current=Je,me.currentInputValue=Je),me.pageSize=Pe.pageSize}return me}}]),He}(m.a.Component);w.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:A,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:A,locale:g.a,style:{},itemRender:E,totalBoundaryShowSizeChanger:50};var b=w,I=d("H4fg"),_=d("DFhj"),L=d.n(_),D=d("fEPi"),N=d.n(D),R=d("u9fO"),B=d.n(R),M=d("mO/d"),H=d.n(M),F=d("2fM7"),K=function(Le){return S.createElement(F.a,v()({size:"small"},Le))};K.Option=F.a.Option;var j=K,V=d("YMnH"),z=d("H84U"),Y=d("5OYt"),ee=function(Ce,Le){var He={};for(var ce in Ce)Object.prototype.hasOwnProperty.call(Ce,ce)&&Le.indexOf(ce)<0&&(He[ce]=Ce[ce]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,ce=Object.getOwnPropertySymbols(Ce);Pe<ce.length;Pe++)Le.indexOf(ce[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Ce,ce[Pe])&&(He[ce[Pe]]=Ce[ce[Pe]]);return He},fe=function(Le){var He=Le.prefixCls,ce=Le.selectPrefixCls,Pe=Le.className,Q=Le.size,me=Le.locale,Je=ee(Le,["prefixCls","selectPrefixCls","className","size","locale"]),re=Object(Y.a)(),G=re.xs,X=S.useContext(z.b),J=X.getPrefixCls,Ae=X.direction,he=J("pagination",He),Me=function(){var pe=S.createElement("span",{className:"".concat(he,"-item-ellipsis")},"\u2022\u2022\u2022"),Oe=S.createElement("button",{className:"".concat(he,"-item-link"),type:"button",tabIndex:-1},S.createElement(L.a,null)),Ye=S.createElement("button",{className:"".concat(he,"-item-link"),type:"button",tabIndex:-1},S.createElement(N.a,null)),it=S.createElement("a",{className:"".concat(he,"-item-link")},S.createElement("div",{className:"".concat(he,"-item-container")},S.createElement(B.a,{className:"".concat(he,"-item-link-icon")}),pe)),et=S.createElement("a",{className:"".concat(he,"-item-link")},S.createElement("div",{className:"".concat(he,"-item-container")},S.createElement(H.a,{className:"".concat(he,"-item-link-icon")}),pe));if(Ae==="rtl"){var Te=[Ye,Oe];Oe=Te[0],Ye=Te[1];var tt=[et,it];it=tt[0],et=tt[1]}return{prevIcon:Oe,nextIcon:Ye,jumpPrevIcon:it,jumpNextIcon:et}},Ie=function(pe){var Oe=v()(v()({},pe),me),Ye=Q==="small"||!!(G&&!Q&&Je.responsive),it=J("select",ce),et=t()(Pe,x()({mini:Ye},"".concat(he,"-rtl"),Ae==="rtl"));return S.createElement(b,v()({},Je,{prefixCls:he,selectPrefixCls:it},Me(),{className:et,selectComponentClass:Ye?j:F.a,locale:Oe}))};return S.createElement(V.a,{componentName:"Pagination",defaultLocale:I.a},Ie)},ie=fe,we=P.a=ie},NohK:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=function(T){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,S=null;return function(){for(var m=this,f=arguments.length,c=new Array(f),o=0;o<f;o++)c[o]=arguments[o];clearTimeout(S),S=setTimeout(function(){T.apply(m,c)},v)}};P.default=O},Nu4q:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:function(T,v){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:T}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:v}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:v}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:v}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:T}}]}},name:"picture",theme:"twotone"};P.default=O},"O/iA":function(U,P,d){},O3gP:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("O/iA"),v=d.n(T),S=d("OaEy")},OELB:function(U,P,d){var O=d("bYtY"),x=1e-4;function T(y){return y.replace(/^\s+|\s+$/g,"")}function v(y,E,C,w){var b=E[1]-E[0],I=C[1]-C[0];if(b===0)return I===0?C[0]:(C[0]+C[1])/2;if(w)if(b>0){if(y<=E[0])return C[0];if(y>=E[1])return C[1]}else{if(y>=E[0])return C[0];if(y<=E[1])return C[1]}else{if(y===E[0])return C[0];if(y===E[1])return C[1]}return(y-E[0])/b*I+C[0]}function S(y,E){switch(y){case"center":case"middle":y="50%";break;case"left":case"top":y="0%";break;case"right":case"bottom":y="100%";break}return typeof y=="string"?T(y).match(/%$/)?parseFloat(y)/100*E:parseFloat(y):y==null?NaN:+y}function m(y,E,C){return E==null&&(E=10),E=Math.min(Math.max(0,E),20),y=(+y).toFixed(E),C?y:+y}function f(y){return y.sort(function(E,C){return E-C}),y}function c(y){if(y=+y,isNaN(y))return 0;for(var E=1,C=0;Math.round(y*E)/E!==y;)E*=10,C++;return C}function o(y){var E=y.toString(),C=E.indexOf("e");if(C>0){var w=+E.slice(C+1);return w<0?-w:0}else{var b=E.indexOf(".");return b<0?0:E.length-1-b}}function r(y,E){var C=Math.log,w=Math.LN10,b=Math.floor(C(y[1]-y[0])/w),I=Math.round(C(Math.abs(E[1]-E[0]))/w),_=Math.min(Math.max(-b+I,0),20);return isFinite(_)?_:20}function a(y,E,C){if(!y[E])return 0;var w=O.reduce(y,function(F,K){return F+(isNaN(K)?0:K)},0);if(w===0)return 0;for(var b=Math.pow(10,C),I=O.map(y,function(F){return(isNaN(F)?0:F)/w*b*100}),_=b*100,L=O.map(I,function(F){return Math.floor(F)}),D=O.reduce(L,function(F,K){return F+K},0),N=O.map(I,function(F,K){return F-L[K]});D<_;){for(var R=Number.NEGATIVE_INFINITY,B=null,M=0,H=N.length;M<H;++M)N[M]>R&&(R=N[M],B=M);++L[B],N[B]=0,++D}return L[E]/b}var n=9007199254740991;function e(y){var E=Math.PI*2;return(y%E+E)%E}function s(y){return y>-x&&y<x}var t=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function i(y){if(y instanceof Date)return y;if(typeof y=="string"){var E=t.exec(y);if(!E)return new Date(NaN);if(E[8]){var C=+E[4]||0;return E[8].toUpperCase()!=="Z"&&(C-=E[8].slice(0,3)),new Date(Date.UTC(+E[1],+(E[2]||1)-1,+E[3]||1,C,+(E[5]||0),+E[6]||0,+E[7]||0))}else return new Date(+E[1],+(E[2]||1)-1,+E[3]||1,+E[4]||0,+(E[5]||0),+E[6]||0,+E[7]||0)}else if(y==null)return new Date(NaN);return new Date(Math.round(y))}function l(y){return Math.pow(10,u(y))}function u(y){if(y===0)return 0;var E=Math.floor(Math.log(y)/Math.LN10);return y/Math.pow(10,E)>=10&&E++,E}function h(y,E){var C=u(y),w=Math.pow(10,C),b=y/w,I;return E?b<1.5?I=1:b<2.5?I=2:b<4?I=3:b<7?I=5:I=10:b<1?I=1:b<2?I=2:b<3?I=3:b<5?I=5:I=10,y=I*w,C>=-20?+y.toFixed(C<0?-C:0):y}function p(y,E){var C=(y.length-1)*E+1,w=Math.floor(C),b=+y[w-1],I=C-w;return I?b+I*(y[w]-b):b}function g(y){y.sort(function(D,N){return L(D,N,0)?-1:1});for(var E=-Infinity,C=1,w=0;w<y.length;){for(var b=y[w].interval,I=y[w].close,_=0;_<2;_++)b[_]<=E&&(b[_]=E,I[_]=_?1:1-C),E=b[_],C=I[_];b[0]===b[1]&&I[0]*I[1]!==1?y.splice(w,1):w++}return y;function L(D,N,R){return D.interval[R]<N.interval[R]||D.interval[R]===N.interval[R]&&(D.close[R]-N.close[R]===(R?-1:1)||!R&&L(D,N,1))}}function A(y){return y-parseFloat(y)>=0}P.linearMap=v,P.parsePercent=S,P.round=m,P.asc=f,P.getPrecision=c,P.getPrecisionSafe=o,P.getPixelPrecision=r,P.getPercentWithPrecision=a,P.MAX_SAFE_INTEGER=n,P.remRadian=e,P.isRadianAroundZero=s,P.parseDate=i,P.quantity=l,P.quantityExponent=u,P.nice=h,P.quantile=p,P.reformIntervals=g,P.isNumeric=A},OKJ2:function(U,P,d){var O=d("KxfA"),x=O.retrieveRawValue,T=d("7aKB"),v=T.getTooltipMarker,S=T.formatTpl,m=d("4NO4"),f=m.getTooltipRenderMode,c=/\{@(.+?)\}/g,o={getDataParams:function(r,a){var n=this.getData(a),e=this.getRawValue(r,a),s=n.getRawIndex(r),t=n.getName(r),i=n.getRawDataItem(r),l=n.getItemVisual(r,"color"),u=n.getItemVisual(r,"borderColor"),h=this.ecModel.getComponent("tooltip"),p=h&&h.get("renderMode"),g=f(p),A=this.mainType,y=A==="series",E=n.userOutput;return{componentType:A,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:y?this.subType:null,seriesIndex:this.seriesIndex,seriesId:y?this.id:null,seriesName:y?this.name:null,name:t,dataIndex:s,data:i,dataType:a,value:e,color:l,borderColor:u,dimensionNames:E?E.dimensionNames:null,encode:E?E.encode:null,marker:v({color:l,renderMode:g}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(r,a,n,e,s){a=a||"normal";var t=this.getData(n),i=t.getItemModel(r),l=this.getDataParams(r,n);e!=null&&l.value instanceof Array&&(l.value=l.value[e]);var u=i.get(a==="normal"?[s||"label","formatter"]:[a,s||"label","formatter"]);if(typeof u=="function")return l.status=a,l.dimensionIndex=e,u(l);if(typeof u=="string"){var h=S(u,l);return h.replace(c,function(p,g){var A=g.length;return g.charAt(0)==="["&&g.charAt(A-1)==="]"&&(g=+g.slice(1,A-1)),x(t,r,g)})}},getRawValue:function(r,a){return x(this.getData(a),r)},formatTooltip:function(){}};U.exports=o},OLod:function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("K3mO"))})(this,function(O){O.lib.Cipher||function(x){var T=O,v=T.lib,S=v.Base,m=v.WordArray,f=v.BufferedBlockAlgorithm,c=T.enc,o=c.Utf8,r=c.Base64,a=T.algo,n=a.EvpKDF,e=v.Cipher=f.extend({cfg:S.extend(),createEncryptor:function(_,L){return this.create(this._ENC_XFORM_MODE,_,L)},createDecryptor:function(_,L){return this.create(this._DEC_XFORM_MODE,_,L)},init:function(_,L,D){this.cfg=this.cfg.extend(D),this._xformMode=_,this._key=L,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(_){return this._append(_),this._process()},finalize:function(_){_&&this._append(_);var L=this._doFinalize();return L},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function I(_){return typeof _=="string"?b:E}return function(_){return{encrypt:function(D,N,R){return I(N).encrypt(_,D,N,R)},decrypt:function(D,N,R){return I(N).decrypt(_,D,N,R)}}}}()}),s=v.StreamCipher=e.extend({_doFinalize:function(){var _=this._process(!0);return _},blockSize:1}),t=T.mode={},i=v.BlockCipherMode=S.extend({createEncryptor:function(_,L){return this.Encryptor.create(_,L)},createDecryptor:function(_,L){return this.Decryptor.create(_,L)},init:function(_,L){this._cipher=_,this._iv=L}}),l=t.CBC=function(){var I=i.extend();I.Encryptor=I.extend({processBlock:function(D,N){var R=this._cipher,B=R.blockSize;_.call(this,D,N,B),R.encryptBlock(D,N),this._prevBlock=D.slice(N,N+B)}}),I.Decryptor=I.extend({processBlock:function(D,N){var R=this._cipher,B=R.blockSize,M=D.slice(N,N+B);R.decryptBlock(D,N),_.call(this,D,N,B),this._prevBlock=M}});function _(L,D,N){var R,B=this._iv;B?(R=B,this._iv=x):R=this._prevBlock;for(var M=0;M<N;M++)L[D+M]^=R[M]}return I}(),u=T.pad={},h=u.Pkcs7={pad:function(_,L){for(var D=L*4,N=D-_.sigBytes%D,R=N<<24|N<<16|N<<8|N,B=[],M=0;M<N;M+=4)B.push(R);var H=m.create(B,N);_.concat(H)},unpad:function(_){var L=_.words[_.sigBytes-1>>>2]&255;_.sigBytes-=L}},p=v.BlockCipher=e.extend({cfg:e.cfg.extend({mode:l,padding:h}),reset:function(){var _;e.reset.call(this);var L=this.cfg,D=L.iv,N=L.mode;this._xformMode==this._ENC_XFORM_MODE?_=N.createEncryptor:(_=N.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==_?this._mode.init(this,D&&D.words):(this._mode=_.call(N,this,D&&D.words),this._mode.__creator=_)},_doProcessBlock:function(_,L){this._mode.processBlock(_,L)},_doFinalize:function(){var _,L=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(L.pad(this._data,this.blockSize),_=this._process(!0)):(_=this._process(!0),L.unpad(_)),_},blockSize:128/32}),g=v.CipherParams=S.extend({init:function(_){this.mixIn(_)},toString:function(_){return(_||this.formatter).stringify(this)}}),A=T.format={},y=A.OpenSSL={stringify:function(_){var L,D=_.ciphertext,N=_.salt;return N?L=m.create([1398893684,1701076831]).concat(N).concat(D):L=D,L.toString(r)},parse:function(_){var L,D=r.parse(_),N=D.words;return N[0]==1398893684&&N[1]==1701076831&&(L=m.create(N.slice(2,4)),N.splice(0,4),D.sigBytes-=16),g.create({ciphertext:D,salt:L})}},E=v.SerializableCipher=S.extend({cfg:S.extend({format:y}),encrypt:function(_,L,D,N){N=this.cfg.extend(N);var R=_.createEncryptor(D,N),B=R.finalize(L),M=R.cfg;return g.create({ciphertext:B,key:D,iv:M.iv,algorithm:_,mode:M.mode,padding:M.padding,blockSize:_.blockSize,formatter:N.format})},decrypt:function(_,L,D,N){N=this.cfg.extend(N),L=this._parse(L,N.format);var R=_.createDecryptor(D,N).finalize(L.ciphertext);return R},_parse:function(_,L){return typeof _=="string"?L.parse(_,this):_}}),C=T.kdf={},w=C.OpenSSL={execute:function(_,L,D,N){N||(N=m.random(64/8));var R=n.create({keySize:L+D}).compute(_,N),B=m.create(R.words.slice(L),D*4);return R.sigBytes=L*4,g.create({key:R,iv:B,salt:N})}},b=v.PasswordBasedCipher=E.extend({cfg:E.cfg.extend({kdf:w}),encrypt:function(_,L,D,N){N=this.cfg.extend(N);var R=N.kdf.execute(D,_.keySize,_.ivSize);N.iv=R.iv;var B=E.encrypt.call(this,_,L,R.key,N);return B.mixIn(R),B},decrypt:function(_,L,D,N){N=this.cfg.extend(N),L=this._parse(L,N.format);var R=N.kdf.execute(D,_.keySize,_.ivSize,L.salt);N.iv=R.iv;var B=E.decrypt.call(this,_,L,R.key,N);return B}})}()})},OPEp:function(U,P,d){},OQFs:function(U,P,d){var O=d("KCsZ"),x=O([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),T={getLineStyle:function(v){var S=x(this,v);return S.lineDash=this.getLineDash(S.lineWidth),S},getLineDash:function(v){v==null&&(v=1);var S=this.get("type"),m=Math.max(v,2),f=v*4;return S==="solid"||S==null?!1:S==="dashed"?[f,f]:[m,m]}};U.exports=T},OS9S:function(U,P,d){var O=d("bYtY"),x=O.inherits,T=d("Gev7"),v=d("mFDi");function S(c){T.call(this,c),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}S.prototype.incremental=!0,S.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},S.prototype.addDisplayable=function(c,o){o?this._temporaryDisplayables.push(c):this._displayables.push(c),this.dirty()},S.prototype.addDisplayables=function(c,o){o=o||!1;for(var r=0;r<c.length;r++)this.addDisplayable(c[r],o)},S.prototype.eachPendingDisplayable=function(c){for(var o=this._cursor;o<this._displayables.length;o++)c&&c(this._displayables[o]);for(var o=0;o<this._temporaryDisplayables.length;o++)c&&c(this._temporaryDisplayables[o])},S.prototype.update=function(){this.updateTransform();for(var c=this._cursor;c<this._displayables.length;c++){var o=this._displayables[c];o.parent=this,o.update(),o.parent=null}for(var c=0;c<this._temporaryDisplayables.length;c++){var o=this._temporaryDisplayables[c];o.parent=this,o.update(),o.parent=null}},S.prototype.brush=function(c,o){for(var r=this._cursor;r<this._displayables.length;r++){var a=this._displayables[r];a.beforeBrush&&a.beforeBrush(c),a.brush(c,r===this._cursor?null:this._displayables[r-1]),a.afterBrush&&a.afterBrush(c)}this._cursor=r;for(var r=0;r<this._temporaryDisplayables.length;r++){var a=this._temporaryDisplayables[r];a.beforeBrush&&a.beforeBrush(c),a.brush(c,r===0?null:this._temporaryDisplayables[r-1]),a.afterBrush&&a.afterBrush(c)}this._temporaryDisplayables=[],this.notClear=!0};var m=[];S.prototype.getBoundingRect=function(){if(!this._rect){for(var c=new v(Infinity,Infinity,-Infinity,-Infinity),o=0;o<this._displayables.length;o++){var r=this._displayables[o],a=r.getBoundingRect().clone();r.needLocalTransform()&&a.applyTransform(r.getLocalTransform(m)),c.union(a)}this._rect=c}return this._rect},S.prototype.contain=function(c,o){var r=this.transformCoordToLocal(c,o),a=this.getBoundingRect();if(a.contain(r[0],r[1]))for(var n=0;n<this._displayables.length;n++){var e=this._displayables[n];if(e.contain(c,o))return!0}return!1},x(S,T);var f=S;U.exports=f},OUJF:function(U,P,d){var O=d("ProS"),x=d("bYtY");O.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(T,v){var S=v.getComponent("timeline");return S&&T.currentIndex!=null&&(S.setCurrentIndex(T.currentIndex),!S.get("loop",!0)&&S.isIndexMax()&&S.setPlayState(!1)),v.resetOption("timeline"),x.defaults({currentIndex:S.option.currentIndex},T)}),O.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(T,v){var S=v.getComponent("timeline");S&&T.playState!=null&&S.setPlayState(T.playState)})},OXB0:function(U,P,d){var O=d("T4UG"),x=d("MwEJ"),T=d("IDmD"),v=O.extend({type:"series.heatmap",getInitialData:function(S,m){return x(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var S=T.get(this.get("coordinateSystem"));if(S&&S.dimensions)return S.dimensions[0]==="lng"&&S.dimensions[1]==="lat"},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});U.exports=v},OaEy:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("bKJz"),v=d.n(T),S=d("R9oj")},Ol7k:function(U,P,d){"use strict";var O=d("PKem"),x=d("ZX9x");O.b.Sider=x.b,P.a=O.b},OlYY:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("ProS"),v=d("bYtY"),S=d("ItGF"),m=d("4NO4"),f=d("UOVi"),c=d("zDms"),o=v.each,r=f.eachAxisDim,a=T.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,i,l){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var u=n(t);this.settledOption=u,this.mergeDefaultAndTheme(t,l),this.doInit(u)},mergeOption:function(t){var i=n(t);v.merge(this.option,t,!0),v.merge(this.settledOption,i,!0),this.doInit(i)},doInit:function(t){var i=this.option;S.canvasSupported||(i.realtime=!1),this._setDefaultThrottle(t),e(this,t);var l=this.settledOption;o([["start","startValue"],["end","endValue"]],function(u,h){this._rangePropMode[h]==="value"&&(i[u[0]]=l[u[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(i,l,u,h){var p=this.dependentModels[i.axis][l],g=p.__dzAxisProxy||(p.__dzAxisProxy=new c(i.name,l,this,h));t[i.name+"_"+l]=g},this)},_resetTarget:function(){var t=this.option,i=this._judgeAutoMode();r(function(l){var u=l.axisIndex;t[u]=m.normalizeToArray(t[u])},this),i==="axisIndex"?this._autoSetAxisIndex():i==="orient"&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,i=!1;r(function(u){t[u.axisIndex]!=null&&(i=!0)},this);var l=t.orient;if(l==null&&i)return"orient";if(!i)return l==null&&(t.orient="horizontal"),"axisIndex"},_autoSetAxisIndex:function(){var t=!0,i=this.get("orient",!0),l=this.option,u=this.dependentModels;if(t){var h=i==="vertical"?"y":"x";u[h+"Axis"].length?(l[h+"AxisIndex"]=[0],t=!1):o(u.singleAxis,function(p){t&&p.get("orient",!0)===i&&(l.singleAxisIndex=[p.componentIndex],t=!1)})}t&&r(function(p){if(!t)return;var g=[],A=this.dependentModels[p.axis];if(A.length&&!g.length)for(var y=0,E=A.length;y<E;y++)A[y].get("type")==="category"&&g.push(y);l[p.axisIndex]=g,g.length&&(t=!1)},this),t&&this.ecModel.eachSeries(function(p){this._isSeriesHasAllAxesTypeOf(p,"value")&&r(function(g){var A=l[g.axisIndex],y=p.get(g.axisIndex),E=p.get(g.axisId),C=p.ecModel.queryComponents({mainType:g.axis,index:y,id:E})[0];y=C.componentIndex,v.indexOf(A,y)<0&&A.push(y)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(i){!t&&(t=i.name)},this),this.option.orient=t==="y"?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(t,i){var l=!0;return r(function(u){var h=t.get(u.axisIndex),p=this.dependentModels[u.axis][h];(!p||p.get("type")!==i)&&(l=!1)},this),l},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return r(function(i){if(t==null){var l=this.get(i.axisIndex);l.length&&(t=this.dependentModels[i.axis][l[0]])}},this),t},eachTargetAxis:function(t,i){var l=this.ecModel;r(function(u){o(this.get(u.axisIndex),function(h){t.call(i,u,h,this,l)},this)},this)},getAxisProxy:function(t,i){return this._axisProxies[t+"_"+i]},getAxisModel:function(t,i){var l=this.getAxisProxy(t,i);return l&&l.getAxisModel()},setRawRange:function(t){var i=this.option,l=this.settledOption;o([["start","startValue"],["end","endValue"]],function(u){(t[u[0]]!=null||t[u[1]]!=null)&&(i[u[0]]=l[u[0]]=t[u[0]],i[u[1]]=l[u[1]]=t[u[1]])},this),e(this,t)},setCalculatedRange:function(t){var i=this.option;o(["start","startValue","end","endValue"],function(l){i[l]=t[l]})},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,i){if(t==null&&i==null){var l=this.findRepresentativeAxisProxy();if(l)return l.getDataValueWindow()}else return this.getAxisProxy(t,i).getDataValueWindow()},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var i=this._axisProxies;for(var l in i)if(i.hasOwnProperty(l)&&i[l].hostedBy(this))return i[l];for(var l in i)if(i.hasOwnProperty(l)&&!i[l].hostedBy(this))return i[l]},getRangePropMode:function(){return this._rangePropMode.slice()}});function n(t){var i={};return o(["start","end","startValue","endValue","throttle"],function(l){t.hasOwnProperty(l)&&(i[l]=t[l])}),i}function e(t,i){var l=t._rangePropMode,u=t.get("rangeMode");o([["start","startValue"],["end","endValue"]],function(h,p){var g=i[h[0]]!=null,A=i[h[1]]!=null;g&&!A?l[p]="percent":!g&&A?l[p]="value":u?l[p]=u[p]:g&&(l[p]="percent")})}var s=a;U.exports=s},OnYD:function(U,P,d){},"Oy/b":function(U,P,d){(function(x,T){U.exports=T()})(typeof self!="undefined"?self:this,function(){return function(O){var x={};function T(v){if(x[v])return x[v].exports;var S=x[v]={i:v,l:!1,exports:{}};return O[v].call(S.exports,S,S.exports,T),S.l=!0,S.exports}return T.m=O,T.c=x,T.d=function(v,S,m){T.o(v,S)||Object.defineProperty(v,S,{enumerable:!0,get:m})},T.r=function(v){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},T.t=function(v,S){if(S&1&&(v=T(v)),S&8)return v;if(S&4&&typeof v=="object"&&v&&v.__esModule)return v;var m=Object.create(null);if(T.r(m),Object.defineProperty(m,"default",{enumerable:!0,value:v}),S&2&&typeof v!="string")for(var f in v)T.d(m,f,function(c){return v[c]}.bind(null,f));return m},T.n=function(v){var S=v&&v.__esModule?function(){return v.default}:function(){return v};return T.d(S,"a",S),S},T.o=function(v,S){return Object.prototype.hasOwnProperty.call(v,S)},T.p="",T(T.s=1)}([function(O,x,T){},function(O,x,T){"use strict";T.r(x);var v=T(0),S=function(){function At(se,ge,Se){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=se,this.start=ge,this.end=Se}return At.range=function(ge,Se){return Se?!ge||!ge.loc||!Se.loc||ge.loc.lexer!==Se.loc.lexer?null:new At(ge.loc.lexer,ge.loc.start,Se.loc.end):ge&&ge.loc},At}(),m=function(){function At(ge,Se){this.text=void 0,this.loc=void 0,this.text=ge,this.loc=Se}var se=At.prototype;return se.range=function(Se,We){return new At(We,S.range(this,Se))},At}(),f=function At(se,ge){this.position=void 0;var Se="KaTeX parse error: "+se,We,vt=ge&&ge.loc;if(vt&&vt.start<=vt.end){var Yt=vt.lexer.input;We=vt.start;var Rr=vt.end;We===Yt.length?Se+=" at end of input: ":Se+=" at position "+(We+1)+": ";var Yr=Yt.slice(We,Rr).replace(/[^]/g,"$&\u0332"),mn;We>15?mn="\u2026"+Yt.slice(We-15,We):mn=Yt.slice(0,We);var Wn;Rr+15<Yt.length?Wn=Yt.slice(Rr,Rr+15)+"\u2026":Wn=Yt.slice(Rr),Se+=mn+Yr+Wn}var Jn=new Error(Se);return Jn.name="ParseError",Jn.__proto__=At.prototype,Jn.position=We,Jn};f.prototype.__proto__=Error.prototype;var c=f,o=function(se,ge){return se.indexOf(ge)!==-1},r=function(se,ge){return se===void 0?ge:se},a=/([A-Z])/g,n=function(se){return se.replace(a,"-$1").toLowerCase()},e={"&":"&",">":">","<":"<",'"':""","'":"'"},s=/[&><"']/g;function t(At){return String(At).replace(s,function(se){return e[se]})}var i=function At(se){return se.type==="ordgroup"||se.type==="color"?se.body.length===1?At(se.body[0]):se:se.type==="font"?At(se.body):se},l=function(se){var ge=i(se);return ge.type==="mathord"||ge.type==="textord"||ge.type==="atom"},u=function(se){if(!se)throw new Error("Expected non-null, but got "+String(se));return se},h=function(se){var ge=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(se);return ge!=null?ge[1]:"_relative"},p={contains:o,deflt:r,escape:t,hyphenate:n,getBaseElem:i,isCharacterBox:l,protocolFromUrl:h},g=function(){function At(ge){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,ge=ge||{},this.displayMode=p.deflt(ge.displayMode,!1),this.output=p.deflt(ge.output,"htmlAndMathml"),this.leqno=p.deflt(ge.leqno,!1),this.fleqn=p.deflt(ge.fleqn,!1),this.throwOnError=p.deflt(ge.throwOnError,!0),this.errorColor=p.deflt(ge.errorColor,"#cc0000"),this.macros=ge.macros||{},this.minRuleThickness=Math.max(0,p.deflt(ge.minRuleThickness,0)),this.colorIsTextColor=p.deflt(ge.colorIsTextColor,!1),this.strict=p.deflt(ge.strict,"warn"),this.trust=p.deflt(ge.trust,!1),this.maxSize=Math.max(0,p.deflt(ge.maxSize,Infinity)),this.maxExpand=Math.max(0,p.deflt(ge.maxExpand,1e3))}var se=At.prototype;return se.reportNonstrict=function(Se,We,vt){var Yt=this.strict;if(typeof Yt=="function"&&(Yt=Yt(Se,We,vt)),!Yt||Yt==="ignore")return;if(Yt===!0||Yt==="error")throw new c("LaTeX-incompatible input and strict mode is set to 'error': "+(We+" ["+Se+"]"),vt);Yt==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(We+" ["+Se+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Yt+"': "+We+" ["+Se+"]"))},se.useStrictBehavior=function(Se,We,vt){var Yt=this.strict;if(typeof Yt=="function")try{Yt=Yt(Se,We,vt)}catch(Rr){Yt="error"}return!Yt||Yt==="ignore"?!1:Yt===!0||Yt==="error"?!0:Yt==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(We+" ["+Se+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Yt+"': "+We+" ["+Se+"]")),!1)},se.isTrusted=function(Se){Se.url&&!Se.protocol&&(Se.protocol=p.protocolFromUrl(Se.url));var We=typeof this.trust=="function"?this.trust(Se):this.trust;return Boolean(We)},At}(),A=function(){function At(ge,Se,We){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=ge,this.size=Se,this.cramped=We}var se=At.prototype;return se.sup=function(){return D[N[this.id]]},se.sub=function(){return D[R[this.id]]},se.fracNum=function(){return D[B[this.id]]},se.fracDen=function(){return D[M[this.id]]},se.cramp=function(){return D[H[this.id]]},se.text=function(){return D[F[this.id]]},se.isTight=function(){return this.size>=2},At}(),y=0,E=1,C=2,w=3,b=4,I=5,_=6,L=7,D=[new A(y,0,!1),new A(E,0,!0),new A(C,1,!1),new A(w,1,!0),new A(b,2,!1),new A(I,2,!0),new A(_,3,!1),new A(L,3,!0)],N=[b,I,b,I,_,L,_,L],R=[I,I,I,I,L,L,L,L],B=[C,w,b,I,_,L,_,L],M=[w,w,I,I,L,L,L,L],H=[E,E,w,w,I,I,L,L],F=[y,E,C,w,C,w,C,w],K={DISPLAY:D[y],TEXT:D[C],SCRIPT:D[b],SCRIPTSCRIPT:D[_]},j=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function V(At){for(var se=0;se<j.length;se++)for(var ge=j[se],Se=0;Se<ge.blocks.length;Se++){var We=ge.blocks[Se];if(At>=We[0]&&At<=We[1])return ge.name}return null}var z=[];j.forEach(function(At){return At.blocks.forEach(function(se){return z.push.apply(z,se)})});function Y(At){for(var se=0;se<z.length;se+=2)if(At>=z[se]&&At<=z[se+1])return!0;return!1}var ee=80,fe=function(se,ge){return"M95,"+(622+se+ge)+`
|
|
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
|
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
|
c69,-144,104.5,-217.7,106.5,-221
|
|
|
l`+se/2.075+" -"+se+`
|
|
|
c5.3,-9.3,12,-14,20,-14
|
|
|
H400000v`+(40+se)+`H845.2724
|
|
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
|
M`+(834+se)+" "+ge+"h400000v"+(40+se)+"h-400000z"},ie=function(se,ge){return"M263,"+(601+se+ge)+`c0.7,0,18,39.7,52,119
|
|
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
|
l`+se/2.084+" -"+se+`
|
|
|
c4.7,-7.3,11,-11,19,-11
|
|
|
H40000v`+(40+se)+`H1012.3
|
|
|
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
|
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
|
M`+(1001+se)+" "+ge+"h400000v"+(40+se)+"h-400000z"},we=function(se,ge){return"M983 "+(10+se+ge)+`
|
|
|
l`+se/3.13+" -"+se+`
|
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+se)+`
|
|
|
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
|
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
|
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
|
M`+(1001+se)+" "+ge+"h400000v"+(40+se)+"h-400000z"},Ce=function(se,ge){return"M424,"+(2398+se+ge)+`
|
|
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
|
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
|
l`+se/4.223+" -"+se+`c4,-6.7,10,-10,18,-10 H400000
|
|
|
v`+(40+se)+`H1014.6
|
|
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
|
c-2,6,-10,9,-24,9
|
|
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+se)+" "+ge+`
|
|
|
h400000v`+(40+se)+"h-400000z"},Le=function(se,ge){return"M473,"+(2713+se+ge)+`
|
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+se/5.298+" -"+se+`
|
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+se)+`H1017.7
|
|
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
|
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
|
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
|
606zM`+(1001+se)+" "+ge+"h400000v"+(40+se)+"H1017.7z"},He=function(se,ge,Se){var We=Se-54-ge-se;return"M702 "+(se+ge)+"H400000"+(40+se)+`
|
|
|
H742v`+We+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
|
219 661 l218 661zM702 `+ge+"H400000v"+(40+se)+"H742z"},ce=function(se,ge,Se){ge=1e3*ge;var We="";switch(se){case"sqrtMain":We=fe(ge,ee);break;case"sqrtSize1":We=ie(ge,ee);break;case"sqrtSize2":We=we(ge,ee);break;case"sqrtSize3":We=Ce(ge,ee);break;case"sqrtSize4":We=Le(ge,ee);break;case"sqrtTall":We=He(ge,ee,Se)}return We},Pe={doubleleftarrow:`M262 157
|
|
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
|
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
|
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
|
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
|
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
|
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
|
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
|
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
|
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
|
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
|
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
|
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
|
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
|
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
|
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
|
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
|
435 0h399565z`,leftgroupunder:`M400000 262
|
|
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
|
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
|
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
|
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
|
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
|
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
|
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
|
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
|
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
|
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
|
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
|
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
|
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
|
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
|
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
|
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
|
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
|
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
|
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
|
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
|
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
|
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
|
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
|
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
|
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
|
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
|
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
|
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
|
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
|
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
|
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
|
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
|
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
|
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
|
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
|
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
|
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
|
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
|
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
|
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
|
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
|
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
|
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
|
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
|
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
|
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
|
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
|
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
|
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
|
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
|
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
|
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
|
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
|
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
|
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
|
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
|
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
|
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
|
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
|
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
|
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
|
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
|
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
|
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
|
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
|
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
|
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
|
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
|
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
|
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
|
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
|
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
|
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Q=function(){function At(ge){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=ge,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var se=At.prototype;return se.hasClass=function(Se){return p.contains(this.classes,Se)},se.toNode=function(){for(var Se=document.createDocumentFragment(),We=0;We<this.children.length;We++)Se.appendChild(this.children[We].toNode());return Se},se.toMarkup=function(){for(var Se="",We=0;We<this.children.length;We++)Se+=this.children[We].toMarkup();return Se},se.toText=function(){var Se=function(vt){return vt.toText()};return this.children.map(Se).join("")},At}(),me=function(se){return se.filter(function(ge){return ge}).join(" ")},Je=function(se,ge,Se){if(this.classes=se||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=Se||{},ge){ge.style.isTight()&&this.classes.push("mtight");var We=ge.getColor();We&&(this.style.color=We)}},re=function(se){var ge=document.createElement(se);ge.className=me(this.classes);for(var Se in this.style)this.style.hasOwnProperty(Se)&&(ge.style[Se]=this.style[Se]);for(var We in this.attributes)this.attributes.hasOwnProperty(We)&&ge.setAttribute(We,this.attributes[We]);for(var vt=0;vt<this.children.length;vt++)ge.appendChild(this.children[vt].toNode());return ge},G=function(se){var ge="<"+se;this.classes.length&&(ge+=' class="'+p.escape(me(this.classes))+'"');var Se="";for(var We in this.style)this.style.hasOwnProperty(We)&&(Se+=p.hyphenate(We)+":"+this.style[We]+";");Se&&(ge+=' style="'+p.escape(Se)+'"');for(var vt in this.attributes)this.attributes.hasOwnProperty(vt)&&(ge+=" "+vt+'="'+p.escape(this.attributes[vt])+'"');ge+=">";for(var Yt=0;Yt<this.children.length;Yt++)ge+=this.children[Yt].toMarkup();return ge+="</"+se+">",ge},X=function(){function At(ge,Se,We,vt){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Je.call(this,ge,We,vt),this.children=Se||[]}var se=At.prototype;return se.setAttribute=function(Se,We){this.attributes[Se]=We},se.hasClass=function(Se){return p.contains(this.classes,Se)},se.toNode=function(){return re.call(this,"span")},se.toMarkup=function(){return G.call(this,"span")},At}(),J=function(){function At(ge,Se,We,vt){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Je.call(this,Se,vt),this.children=We||[],this.setAttribute("href",ge)}var se=At.prototype;return se.setAttribute=function(Se,We){this.attributes[Se]=We},se.hasClass=function(Se){return p.contains(this.classes,Se)},se.toNode=function(){return re.call(this,"a")},se.toMarkup=function(){return G.call(this,"a")},At}(),Ae=function(){function At(ge,Se,We){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=Se,this.src=ge,this.classes=["mord"],this.style=We}var se=At.prototype;return se.hasClass=function(Se){return p.contains(this.classes,Se)},se.toNode=function(){var Se=document.createElement("img");Se.src=this.src,Se.alt=this.alt,Se.className="mord";for(var We in this.style)this.style.hasOwnProperty(We)&&(Se.style[We]=this.style[We]);return Se},se.toMarkup=function(){var Se="<img src='"+this.src+" 'alt='"+this.alt+"' ",We="";for(var vt in this.style)this.style.hasOwnProperty(vt)&&(We+=p.hyphenate(vt)+":"+this.style[vt]+";");return We&&(Se+=' style="'+p.escape(We)+'"'),Se+="'/>",Se},At}(),he={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Me=function(){function At(ge,Se,We,vt,Yt,Rr,Yr,mn){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=ge,this.height=Se||0,this.depth=We||0,this.italic=vt||0,this.skew=Yt||0,this.width=Rr||0,this.classes=Yr||[],this.style=mn||{},this.maxFontSize=0;var Wn=V(this.text.charCodeAt(0));Wn&&this.classes.push(Wn+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=he[this.text])}var se=At.prototype;return se.hasClass=function(Se){return p.contains(this.classes,Se)},se.toNode=function(){var Se=document.createTextNode(this.text),We=null;this.italic>0&&(We=document.createElement("span"),We.style.marginRight=this.italic+"em"),this.classes.length>0&&(We=We||document.createElement("span"),We.className=me(this.classes));for(var vt in this.style)this.style.hasOwnProperty(vt)&&(We=We||document.createElement("span"),We.style[vt]=this.style[vt]);return We?(We.appendChild(Se),We):Se},se.toMarkup=function(){var Se=!1,We="<span";this.classes.length&&(Se=!0,We+=' class="',We+=p.escape(me(this.classes)),We+='"');var vt="";this.italic>0&&(vt+="margin-right:"+this.italic+"em;");for(var Yt in this.style)this.style.hasOwnProperty(Yt)&&(vt+=p.hyphenate(Yt)+":"+this.style[Yt]+";");vt&&(Se=!0,We+=' style="'+p.escape(vt)+'"');var Rr=p.escape(this.text);return Se?(We+=">",We+=Rr,We+="</span>",We):Rr},At}(),Ie=function(){function At(ge,Se){this.children=void 0,this.attributes=void 0,this.children=ge||[],this.attributes=Se||{}}var se=At.prototype;return se.toNode=function(){var Se="http://www.w3.org/2000/svg",We=document.createElementNS(Se,"svg");for(var vt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,vt)&&We.setAttribute(vt,this.attributes[vt]);for(var Yt=0;Yt<this.children.length;Yt++)We.appendChild(this.children[Yt].toNode());return We},se.toMarkup=function(){var Se="<svg";for(var We in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,We)&&(Se+=" "+We+"='"+this.attributes[We]+"'");Se+=">";for(var vt=0;vt<this.children.length;vt++)Se+=this.children[vt].toMarkup();return Se+="</svg>",Se},At}(),oe=function(){function At(ge,Se){this.pathName=void 0,this.alternate=void 0,this.pathName=ge,this.alternate=Se}var se=At.prototype;return se.toNode=function(){var Se="http://www.w3.org/2000/svg",We=document.createElementNS(Se,"path");return this.alternate?We.setAttribute("d",this.alternate):We.setAttribute("d",Pe[this.pathName]),We},se.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Pe[this.pathName]+"'/>"},At}(),pe=function(){function At(ge){this.attributes=void 0,this.attributes=ge||{}}var se=At.prototype;return se.toNode=function(){var Se="http://www.w3.org/2000/svg",We=document.createElementNS(Se,"line");for(var vt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,vt)&&We.setAttribute(vt,this.attributes[vt]);return We},se.toMarkup=function(){var Se="<line";for(var We in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,We)&&(Se+=" "+We+"='"+this.attributes[We]+"'");return Se+="/>",Se},At}();function Oe(At){if(At instanceof Me)return At;throw new Error("Expected symbolNode but got "+String(At)+".")}function Ye(At){if(At instanceof X)return At;throw new Error("Expected span<HtmlDomNode> but got "+String(At)+".")}var it={"AMS-Regular":{"65":[0,.68889,0,0,.72222],"66":[0,.68889,0,0,.66667],"67":[0,.68889,0,0,.72222],"68":[0,.68889,0,0,.72222],"69":[0,.68889,0,0,.66667],"70":[0,.68889,0,0,.61111],"71":[0,.68889,0,0,.77778],"72":[0,.68889,0,0,.77778],"73":[0,.68889,0,0,.38889],"74":[.16667,.68889,0,0,.5],"75":[0,.68889,0,0,.77778],"76":[0,.68889,0,0,.66667],"77":[0,.68889,0,0,.94445],"78":[0,.68889,0,0,.72222],"79":[.16667,.68889,0,0,.77778],"80":[0,.68889,0,0,.61111],"81":[.16667,.68889,0,0,.77778],"82":[0,.68889,0,0,.72222],"83":[0,.68889,0,0,.55556],"84":[0,.68889,0,0,.66667],"85":[0,.68889,0,0,.72222],"86":[0,.68889,0,0,.72222],"87":[0,.68889,0,0,1],"88":[0,.68889,0,0,.72222],"89":[0,.68889,0,0,.72222],"90":[0,.68889,0,0,.66667],"107":[0,.68889,0,0,.55556],"165":[0,.675,.025,0,.75],"174":[.15559,.69224,0,0,.94666],"240":[0,.68889,0,0,.55556],"295":[0,.68889,0,0,.54028],"710":[0,.825,0,0,2.33334],"732":[0,.9,0,0,2.33334],"770":[0,.825,0,0,2.33334],"771":[0,.9,0,0,2.33334],"989":[.08167,.58167,0,0,.77778],"1008":[0,.43056,.04028,0,.66667],"8245":[0,.54986,0,0,.275],"8463":[0,.68889,0,0,.54028],"8487":[0,.68889,0,0,.72222],"8498":[0,.68889,0,0,.55556],"8502":[0,.68889,0,0,.66667],"8503":[0,.68889,0,0,.44445],"8504":[0,.68889,0,0,.66667],"8513":[0,.68889,0,0,.63889],"8592":[-.03598,.46402,0,0,.5],"8594":[-.03598,.46402,0,0,.5],"8602":[-.13313,.36687,0,0,1],"8603":[-.13313,.36687,0,0,1],"8606":[.01354,.52239,0,0,1],"8608":[.01354,.52239,0,0,1],"8610":[.01354,.52239,0,0,1.11111],"8611":[.01354,.52239,0,0,1.11111],"8619":[0,.54986,0,0,1],"8620":[0,.54986,0,0,1],"8621":[-.13313,.37788,0,0,1.38889],"8622":[-.13313,.36687,0,0,1],"8624":[0,.69224,0,0,.5],"8625":[0,.69224,0,0,.5],"8630":[0,.43056,0,0,1],"8631":[0,.43056,0,0,1],"8634":[.08198,.58198,0,0,.77778],"8635":[.08198,.58198,0,0,.77778],"8638":[.19444,.69224,0,0,.41667],"8639":[.19444,.69224,0,0,.41667],"8642":[.19444,.69224,0,0,.41667],"8643":[.19444,.69224,0,0,.41667],"8644":[.1808,.675,0,0,1],"8646":[.1808,.675,0,0,1],"8647":[.1808,.675,0,0,1],"8648":[.19444,.69224,0,0,.83334],"8649":[.1808,.675,0,0,1],"8650":[.19444,.69224,0,0,.83334],"8651":[.01354,.52239,0,0,1],"8652":[.01354,.52239,0,0,1],"8653":[-.13313,.36687,0,0,1],"8654":[-.13313,.36687,0,0,1],"8655":[-.13313,.36687,0,0,1],"8666":[.13667,.63667,0,0,1],"8667":[.13667,.63667,0,0,1],"8669":[-.13313,.37788,0,0,1],"8672":[-.064,.437,0,0,1.334],"8674":[-.064,.437,0,0,1.334],"8705":[0,.825,0,0,.5],"8708":[0,.68889,0,0,.55556],"8709":[.08167,.58167,0,0,.77778],"8717":[0,.43056,0,0,.42917],"8722":[-.03598,.46402,0,0,.5],"8724":[.08198,.69224,0,0,.77778],"8726":[.08167,.58167,0,0,.77778],"8733":[0,.69224,0,0,.77778],"8736":[0,.69224,0,0,.72222],"8737":[0,.69224,0,0,.72222],"8738":[.03517,.52239,0,0,.72222],"8739":[.08167,.58167,0,0,.22222],"8740":[.25142,.74111,0,0,.27778],"8741":[.08167,.58167,0,0,.38889],"8742":[.25142,.74111,0,0,.5],"8756":[0,.69224,0,0,.66667],"8757":[0,.69224,0,0,.66667],"8764":[-.13313,.36687,0,0,.77778],"8765":[-.13313,.37788,0,0,.77778],"8769":[-.13313,.36687,0,0,.77778],"8770":[-.03625,.46375,0,0,.77778],"8774":[.30274,.79383,0,0,.77778],"8776":[-.01688,.48312,0,0,.77778],"8778":[.08167,.58167,0,0,.77778],"8782":[.06062,.54986,0,0,.77778],"8783":[.06062,.54986,0,0,.77778],"8785":[.08198,.58198,0,0,.77778],"8786":[.08198,.58198,0,0,.77778],"8787":[.08198,.58198,0,0,.77778],"8790":[0,.69224,0,0,.77778],"8791":[.22958,.72958,0,0,.77778],"8796":[.08198,.91667,0,0,.77778],"8806":[.25583,.75583,0,0,.77778],"8807":[.25583,.75583,0,0,.77778],"8808":[.25142,.75726,0,0,.77778],"8809":[.25142,.75726,0,0,.77778],"8812":[.25583,.75583,0,0,.5],"8814":[.20576,.70576,0,0,.77778],"8815":[.20576,.70576,0,0,.77778],"8816":[.30274,.79383,0,0,.77778],"8817":[.30274,.79383,0,0,.77778],"8818":[.22958,.72958,0,0,.77778],"8819":[.22958,.72958,0,0,.77778],"8822":[.1808,.675,0,0,.77778],"8823":[.1808,.675,0,0,.77778],"8828":[.13667,.63667,0,0,.77778],"8829":[.13667,.63667,0,0,.77778],"8830":[.22958,.72958,0,0,.77778],"8831":[.22958,.72958,0,0,.77778],"8832":[.20576,.70576,0,0,.77778],"8833":[.20576,.70576,0,0,.77778],"8840":[.30274,.79383,0,0,.77778],"8841":[.30274,.79383,0,0,.77778],"8842":[.13597,.63597,0,0,.77778],"8843":[.13597,.63597,0,0,.77778],"8847":[.03517,.54986,0,0,.77778],"8848":[.03517,.54986,0,0,.77778],"8858":[.08198,.58198,0,0,.77778],"8859":[.08198,.58198,0,0,.77778],"8861":[.08198,.58198,0,0,.77778],"8862":[0,.675,0,0,.77778],"8863":[0,.675,0,0,.77778],"8864":[0,.675,0,0,.77778],"8865":[0,.675,0,0,.77778],"8872":[0,.69224,0,0,.61111],"8873":[0,.69224,0,0,.72222],"8874":[0,.69224,0,0,.88889],"8876":[0,.68889,0,0,.61111],"8877":[0,.68889,0,0,.61111],"8878":[0,.68889,0,0,.72222],"8879":[0,.68889,0,0,.72222],"8882":[.03517,.54986,0,0,.77778],"8883":[.03517,.54986,0,0,.77778],"8884":[.13667,.63667,0,0,.77778],"8885":[.13667,.63667,0,0,.77778],"8888":[0,.54986,0,0,1.11111],"8890":[.19444,.43056,0,0,.55556],"8891":[.19444,.69224,0,0,.61111],"8892":[.19444,.69224,0,0,.61111],"8901":[0,.54986,0,0,.27778],"8903":[.08167,.58167,0,0,.77778],"8905":[.08167,.58167,0,0,.77778],"8906":[.08167,.58167,0,0,.77778],"8907":[0,.69224,0,0,.77778],"8908":[0,.69224,0,0,.77778],"8909":[-.03598,.46402,0,0,.77778],"8910":[0,.54986,0,0,.76042],"8911":[0,.54986,0,0,.76042],"8912":[.03517,.54986,0,0,.77778],"8913":[.03517,.54986,0,0,.77778],"8914":[0,.54986,0,0,.66667],"8915":[0,.54986,0,0,.66667],"8916":[0,.69224,0,0,.66667],"8918":[.0391,.5391,0,0,.77778],"8919":[.0391,.5391,0,0,.77778],"8920":[.03517,.54986,0,0,1.33334],"8921":[.03517,.54986,0,0,1.33334],"8922":[.38569,.88569,0,0,.77778],"8923":[.38569,.88569,0,0,.77778],"8926":[.13667,.63667,0,0,.77778],"8927":[.13667,.63667,0,0,.77778],"8928":[.30274,.79383,0,0,.77778],"8929":[.30274,.79383,0,0,.77778],"8934":[.23222,.74111,0,0,.77778],"8935":[.23222,.74111,0,0,.77778],"8936":[.23222,.74111,0,0,.77778],"8937":[.23222,.74111,0,0,.77778],"8938":[.20576,.70576,0,0,.77778],"8939":[.20576,.70576,0,0,.77778],"8940":[.30274,.79383,0,0,.77778],"8941":[.30274,.79383,0,0,.77778],"8994":[.19444,.69224,0,0,.77778],"8995":[.19444,.69224,0,0,.77778],"9416":[.15559,.69224,0,0,.90222],"9484":[0,.69224,0,0,.5],"9488":[0,.69224,0,0,.5],"9492":[0,.37788,0,0,.5],"9496":[0,.37788,0,0,.5],"9585":[.19444,.68889,0,0,.88889],"9586":[.19444,.74111,0,0,.88889],"9632":[0,.675,0,0,.77778],"9633":[0,.675,0,0,.77778],"9650":[0,.54986,0,0,.72222],"9651":[0,.54986,0,0,.72222],"9654":[.03517,.54986,0,0,.77778],"9660":[0,.54986,0,0,.72222],"9661":[0,.54986,0,0,.72222],"9664":[.03517,.54986,0,0,.77778],"9674":[.11111,.69224,0,0,.66667],"9733":[.19444,.69224,0,0,.94445],"10003":[0,.69224,0,0,.83334],"10016":[0,.69224,0,0,.83334],"10731":[.11111,.69224,0,0,.66667],"10846":[.19444,.75583,0,0,.61111],"10877":[.13667,.63667,0,0,.77778],"10878":[.13667,.63667,0,0,.77778],"10885":[.25583,.75583,0,0,.77778],"10886":[.25583,.75583,0,0,.77778],"10887":[.13597,.63597,0,0,.77778],"10888":[.13597,.63597,0,0,.77778],"10889":[.26167,.75726,0,0,.77778],"10890":[.26167,.75726,0,0,.77778],"10891":[.48256,.98256,0,0,.77778],"10892":[.48256,.98256,0,0,.77778],"10901":[.13667,.63667,0,0,.77778],"10902":[.13667,.63667,0,0,.77778],"10933":[.25142,.75726,0,0,.77778],"10934":[.25142,.75726,0,0,.77778],"10935":[.26167,.75726,0,0,.77778],"10936":[.26167,.75726,0,0,.77778],"10937":[.26167,.75726,0,0,.77778],"10938":[.26167,.75726,0,0,.77778],"10949":[.25583,.75583,0,0,.77778],"10950":[.25583,.75583,0,0,.77778],"10955":[.28481,.79383,0,0,.77778],"10956":[.28481,.79383,0,0,.77778],"57350":[.08167,.58167,0,0,.22222],"57351":[.08167,.58167,0,0,.38889],"57352":[.08167,.58167,0,0,.77778],"57353":[0,.43056,.04028,0,.66667],"57356":[.25142,.75726,0,0,.77778],"57357":[.25142,.75726,0,0,.77778],"57358":[.41951,.91951,0,0,.77778],"57359":[.30274,.79383,0,0,.77778],"57360":[.30274,.79383,0,0,.77778],"57361":[.41951,.91951,0,0,.77778],"57366":[.25142,.75726,0,0,.77778],"57367":[.25142,.75726,0,0,.77778],"57368":[.25142,.75726,0,0,.77778],"57369":[.25142,.75726,0,0,.77778],"57370":[.13597,.63597,0,0,.77778],"57371":[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{"48":[0,.43056,0,0,.5],"49":[0,.43056,0,0,.5],"50":[0,.43056,0,0,.5],"51":[.19444,.43056,0,0,.5],"52":[.19444,.43056,0,0,.5],"53":[.19444,.43056,0,0,.5],"54":[0,.64444,0,0,.5],"55":[.19444,.43056,0,0,.5],"56":[0,.64444,0,0,.5],"57":[.19444,.43056,0,0,.5],"65":[0,.68333,0,.19445,.79847],"66":[0,.68333,.03041,.13889,.65681],"67":[0,.68333,.05834,.13889,.52653],"68":[0,.68333,.02778,.08334,.77139],"69":[0,.68333,.08944,.11111,.52778],"70":[0,.68333,.09931,.11111,.71875],"71":[.09722,.68333,.0593,.11111,.59487],"72":[0,.68333,.00965,.11111,.84452],"73":[0,.68333,.07382,0,.54452],"74":[.09722,.68333,.18472,.16667,.67778],"75":[0,.68333,.01445,.05556,.76195],"76":[0,.68333,0,.13889,.68972],"77":[0,.68333,0,.13889,1.2009],"78":[0,.68333,.14736,.08334,.82049],"79":[0,.68333,.02778,.11111,.79611],"80":[0,.68333,.08222,.08334,.69556],"81":[.09722,.68333,0,.11111,.81667],"82":[0,.68333,0,.08334,.8475],"83":[0,.68333,.075,.13889,.60556],"84":[0,.68333,.25417,0,.54464],"85":[0,.68333,.09931,.08334,.62583],"86":[0,.68333,.08222,0,.61278],"87":[0,.68333,.08222,.08334,.98778],"88":[0,.68333,.14643,.13889,.7133],"89":[.09722,.68333,.08222,.08334,.66834],"90":[0,.68333,.07944,.13889,.72473]},"Fraktur-Regular":{"33":[0,.69141,0,0,.29574],"34":[0,.69141,0,0,.21471],"38":[0,.69141,0,0,.73786],"39":[0,.69141,0,0,.21201],"40":[.24982,.74947,0,0,.38865],"41":[.24982,.74947,0,0,.38865],"42":[0,.62119,0,0,.27764],"43":[.08319,.58283,0,0,.75623],"44":[0,.10803,0,0,.27764],"45":[.08319,.58283,0,0,.75623],"46":[0,.10803,0,0,.27764],"47":[.24982,.74947,0,0,.50181],"48":[0,.47534,0,0,.50181],"49":[0,.47534,0,0,.50181],"50":[0,.47534,0,0,.50181],"51":[.18906,.47534,0,0,.50181],"52":[.18906,.47534,0,0,.50181],"53":[.18906,.47534,0,0,.50181],"54":[0,.69141,0,0,.50181],"55":[.18906,.47534,0,0,.50181],"56":[0,.69141,0,0,.50181],"57":[.18906,.47534,0,0,.50181],"58":[0,.47534,0,0,.21606],"59":[.12604,.47534,0,0,.21606],"61":[-.13099,.36866,0,0,.75623],"63":[0,.69141,0,0,.36245],"65":[0,.69141,0,0,.7176],"66":[0,.69141,0,0,.88397],"67":[0,.69141,0,0,.61254],"68":[0,.69141,0,0,.83158],"69":[0,.69141,0,0,.66278],"70":[.12604,.69141,0,0,.61119],"71":[0,.69141,0,0,.78539],"72":[.06302,.69141,0,0,.7203],"73":[0,.69141,0,0,.55448],"74":[.12604,.69141,0,0,.55231],"75":[0,.69141,0,0,.66845],"76":[0,.69141,0,0,.66602],"77":[0,.69141,0,0,1.04953],"78":[0,.69141,0,0,.83212],"79":[0,.69141,0,0,.82699],"80":[.18906,.69141,0,0,.82753],"81":[.03781,.69141,0,0,.82699],"82":[0,.69141,0,0,.82807],"83":[0,.69141,0,0,.82861],"84":[0,.69141,0,0,.66899],"85":[0,.69141,0,0,.64576],"86":[0,.69141,0,0,.83131],"87":[0,.69141,0,0,1.04602],"88":[0,.69141,0,0,.71922],"89":[.18906,.69141,0,0,.83293],"90":[.12604,.69141,0,0,.60201],"91":[.24982,.74947,0,0,.27764],"93":[.24982,.74947,0,0,.27764],"94":[0,.69141,0,0,.49965],"97":[0,.47534,0,0,.50046],"98":[0,.69141,0,0,.51315],"99":[0,.47534,0,0,.38946],"100":[0,.62119,0,0,.49857],"101":[0,.47534,0,0,.40053],"102":[.18906,.69141,0,0,.32626],"103":[.18906,.47534,0,0,.5037],"104":[.18906,.69141,0,0,.52126],"105":[0,.69141,0,0,.27899],"106":[0,.69141,0,0,.28088],"107":[0,.69141,0,0,.38946],"108":[0,.69141,0,0,.27953],"109":[0,.47534,0,0,.76676],"110":[0,.47534,0,0,.52666],"111":[0,.47534,0,0,.48885],"112":[.18906,.52396,0,0,.50046],"113":[.18906,.47534,0,0,.48912],"114":[0,.47534,0,0,.38919],"115":[0,.47534,0,0,.44266],"116":[0,.62119,0,0,.33301],"117":[0,.47534,0,0,.5172],"118":[0,.52396,0,0,.5118],"119":[0,.52396,0,0,.77351],"120":[.18906,.47534,0,0,.38865],"121":[.18906,.47534,0,0,.49884],"122":[.18906,.47534,0,0,.39054],"8216":[0,.69141,0,0,.21471],"8217":[0,.69141,0,0,.21471],"58112":[0,.62119,0,0,.49749],"58113":[0,.62119,0,0,.4983],"58114":[.18906,.69141,0,0,.33328],"58115":[.18906,.69141,0,0,.32923],"58116":[.18906,.47534,0,0,.50343],"58117":[0,.69141,0,0,.33301],"58118":[0,.62119,0,0,.33409],"58119":[0,.47534,0,0,.50073]},"Main-Bold":{"33":[0,.69444,0,0,.35],"34":[0,.69444,0,0,.60278],"35":[.19444,.69444,0,0,.95833],"36":[.05556,.75,0,0,.575],"37":[.05556,.75,0,0,.95833],"38":[0,.69444,0,0,.89444],"39":[0,.69444,0,0,.31944],"40":[.25,.75,0,0,.44722],"41":[.25,.75,0,0,.44722],"42":[0,.75,0,0,.575],"43":[.13333,.63333,0,0,.89444],"44":[.19444,.15556,0,0,.31944],"45":[0,.44444,0,0,.38333],"46":[0,.15556,0,0,.31944],"47":[.25,.75,0,0,.575],"48":[0,.64444,0,0,.575],"49":[0,.64444,0,0,.575],"50":[0,.64444,0,0,.575],"51":[0,.64444,0,0,.575],"52":[0,.64444,0,0,.575],"53":[0,.64444,0,0,.575],"54":[0,.64444,0,0,.575],"55":[0,.64444,0,0,.575],"56":[0,.64444,0,0,.575],"57":[0,.64444,0,0,.575],"58":[0,.44444,0,0,.31944],"59":[.19444,.44444,0,0,.31944],"60":[.08556,.58556,0,0,.89444],"61":[-.10889,.39111,0,0,.89444],"62":[.08556,.58556,0,0,.89444],"63":[0,.69444,0,0,.54305],"64":[0,.69444,0,0,.89444],"65":[0,.68611,0,0,.86944],"66":[0,.68611,0,0,.81805],"67":[0,.68611,0,0,.83055],"68":[0,.68611,0,0,.88194],"69":[0,.68611,0,0,.75555],"70":[0,.68611,0,0,.72361],"71":[0,.68611,0,0,.90416],"72":[0,.68611,0,0,.9],"73":[0,.68611,0,0,.43611],"74":[0,.68611,0,0,.59444],"75":[0,.68611,0,0,.90138],"76":[0,.68611,0,0,.69166],"77":[0,.68611,0,0,1.09166],"78":[0,.68611,0,0,.9],"79":[0,.68611,0,0,.86388],"80":[0,.68611,0,0,.78611],"81":[.19444,.68611,0,0,.86388],"82":[0,.68611,0,0,.8625],"83":[0,.68611,0,0,.63889],"84":[0,.68611,0,0,.8],"85":[0,.68611,0,0,.88472],"86":[0,.68611,.01597,0,.86944],"87":[0,.68611,.01597,0,1.18888],"88":[0,.68611,0,0,.86944],"89":[0,.68611,.02875,0,.86944],"90":[0,.68611,0,0,.70277],"91":[.25,.75,0,0,.31944],"92":[.25,.75,0,0,.575],"93":[.25,.75,0,0,.31944],"94":[0,.69444,0,0,.575],"95":[.31,.13444,.03194,0,.575],"97":[0,.44444,0,0,.55902],"98":[0,.69444,0,0,.63889],"99":[0,.44444,0,0,.51111],"100":[0,.69444,0,0,.63889],"101":[0,.44444,0,0,.52708],"102":[0,.69444,.10903,0,.35139],"103":[.19444,.44444,.01597,0,.575],"104":[0,.69444,0,0,.63889],"105":[0,.69444,0,0,.31944],"106":[.19444,.69444,0,0,.35139],"107":[0,.69444,0,0,.60694],"108":[0,.69444,0,0,.31944],"109":[0,.44444,0,0,.95833],"110":[0,.44444,0,0,.63889],"111":[0,.44444,0,0,.575],"112":[.19444,.44444,0,0,.63889],"113":[.19444,.44444,0,0,.60694],"114":[0,.44444,0,0,.47361],"115":[0,.44444,0,0,.45361],"116":[0,.63492,0,0,.44722],"117":[0,.44444,0,0,.63889],"118":[0,.44444,.01597,0,.60694],"119":[0,.44444,.01597,0,.83055],"120":[0,.44444,0,0,.60694],"121":[.19444,.44444,.01597,0,.60694],"122":[0,.44444,0,0,.51111],"123":[.25,.75,0,0,.575],"124":[.25,.75,0,0,.31944],"125":[.25,.75,0,0,.575],"126":[.35,.34444,0,0,.575],"168":[0,.69444,0,0,.575],"172":[0,.44444,0,0,.76666],"176":[0,.69444,0,0,.86944],"177":[.13333,.63333,0,0,.89444],"184":[.17014,0,0,0,.51111],"198":[0,.68611,0,0,1.04166],"215":[.13333,.63333,0,0,.89444],"216":[.04861,.73472,0,0,.89444],"223":[0,.69444,0,0,.59722],"230":[0,.44444,0,0,.83055],"247":[.13333,.63333,0,0,.89444],"248":[.09722,.54167,0,0,.575],"305":[0,.44444,0,0,.31944],"338":[0,.68611,0,0,1.16944],"339":[0,.44444,0,0,.89444],"567":[.19444,.44444,0,0,.35139],"710":[0,.69444,0,0,.575],"711":[0,.63194,0,0,.575],"713":[0,.59611,0,0,.575],"714":[0,.69444,0,0,.575],"715":[0,.69444,0,0,.575],"728":[0,.69444,0,0,.575],"729":[0,.69444,0,0,.31944],"730":[0,.69444,0,0,.86944],"732":[0,.69444,0,0,.575],"733":[0,.69444,0,0,.575],"915":[0,.68611,0,0,.69166],"916":[0,.68611,0,0,.95833],"920":[0,.68611,0,0,.89444],"923":[0,.68611,0,0,.80555],"926":[0,.68611,0,0,.76666],"928":[0,.68611,0,0,.9],"931":[0,.68611,0,0,.83055],"933":[0,.68611,0,0,.89444],"934":[0,.68611,0,0,.83055],"936":[0,.68611,0,0,.89444],"937":[0,.68611,0,0,.83055],"8211":[0,.44444,.03194,0,.575],"8212":[0,.44444,.03194,0,1.14999],"8216":[0,.69444,0,0,.31944],"8217":[0,.69444,0,0,.31944],"8220":[0,.69444,0,0,.60278],"8221":[0,.69444,0,0,.60278],"8224":[.19444,.69444,0,0,.51111],"8225":[.19444,.69444,0,0,.51111],"8242":[0,.55556,0,0,.34444],"8407":[0,.72444,.15486,0,.575],"8463":[0,.69444,0,0,.66759],"8465":[0,.69444,0,0,.83055],"8467":[0,.69444,0,0,.47361],"8472":[.19444,.44444,0,0,.74027],"8476":[0,.69444,0,0,.83055],"8501":[0,.69444,0,0,.70277],"8592":[-.10889,.39111,0,0,1.14999],"8593":[.19444,.69444,0,0,.575],"8594":[-.10889,.39111,0,0,1.14999],"8595":[.19444,.69444,0,0,.575],"8596":[-.10889,.39111,0,0,1.14999],"8597":[.25,.75,0,0,.575],"8598":[.19444,.69444,0,0,1.14999],"8599":[.19444,.69444,0,0,1.14999],"8600":[.19444,.69444,0,0,1.14999],"8601":[.19444,.69444,0,0,1.14999],"8636":[-.10889,.39111,0,0,1.14999],"8637":[-.10889,.39111,0,0,1.14999],"8640":[-.10889,.39111,0,0,1.14999],"8641":[-.10889,.39111,0,0,1.14999],"8656":[-.10889,.39111,0,0,1.14999],"8657":[.19444,.69444,0,0,.70277],"8658":[-.10889,.39111,0,0,1.14999],"8659":[.19444,.69444,0,0,.70277],"8660":[-.10889,.39111,0,0,1.14999],"8661":[.25,.75,0,0,.70277],"8704":[0,.69444,0,0,.63889],"8706":[0,.69444,.06389,0,.62847],"8707":[0,.69444,0,0,.63889],"8709":[.05556,.75,0,0,.575],"8711":[0,.68611,0,0,.95833],"8712":[.08556,.58556,0,0,.76666],"8715":[.08556,.58556,0,0,.76666],"8722":[.13333,.63333,0,0,.89444],"8723":[.13333,.63333,0,0,.89444],"8725":[.25,.75,0,0,.575],"8726":[.25,.75,0,0,.575],"8727":[-.02778,.47222,0,0,.575],"8728":[-.02639,.47361,0,0,.575],"8729":[-.02639,.47361,0,0,.575],"8730":[.18,.82,0,0,.95833],"8733":[0,.44444,0,0,.89444],"8734":[0,.44444,0,0,1.14999],"8736":[0,.69224,0,0,.72222],"8739":[.25,.75,0,0,.31944],"8741":[.25,.75,0,0,.575],"8743":[0,.55556,0,0,.76666],"8744":[0,.55556,0,0,.76666],"8745":[0,.55556,0,0,.76666],"8746":[0,.55556,0,0,.76666],"8747":[.19444,.69444,.12778,0,.56875],"8764":[-.10889,.39111,0,0,.89444],"8768":[.19444,.69444,0,0,.31944],"8771":[.00222,.50222,0,0,.89444],"8776":[.02444,.52444,0,0,.89444],"8781":[.00222,.50222,0,0,.89444],"8801":[.00222,.50222,0,0,.89444],"8804":[.19667,.69667,0,0,.89444],"8805":[.19667,.69667,0,0,.89444],"8810":[.08556,.58556,0,0,1.14999],"8811":[.08556,.58556,0,0,1.14999],"8826":[.08556,.58556,0,0,.89444],"8827":[.08556,.58556,0,0,.89444],"8834":[.08556,.58556,0,0,.89444],"8835":[.08556,.58556,0,0,.89444],"8838":[.19667,.69667,0,0,.89444],"8839":[.19667,.69667,0,0,.89444],"8846":[0,.55556,0,0,.76666],"8849":[.19667,.69667,0,0,.89444],"8850":[.19667,.69667,0,0,.89444],"8851":[0,.55556,0,0,.76666],"8852":[0,.55556,0,0,.76666],"8853":[.13333,.63333,0,0,.89444],"8854":[.13333,.63333,0,0,.89444],"8855":[.13333,.63333,0,0,.89444],"8856":[.13333,.63333,0,0,.89444],"8857":[.13333,.63333,0,0,.89444],"8866":[0,.69444,0,0,.70277],"8867":[0,.69444,0,0,.70277],"8868":[0,.69444,0,0,.89444],"8869":[0,.69444,0,0,.89444],"8900":[-.02639,.47361,0,0,.575],"8901":[-.02639,.47361,0,0,.31944],"8902":[-.02778,.47222,0,0,.575],"8968":[.25,.75,0,0,.51111],"8969":[.25,.75,0,0,.51111],"8970":[.25,.75,0,0,.51111],"8971":[.25,.75,0,0,.51111],"8994":[-.13889,.36111,0,0,1.14999],"8995":[-.13889,.36111,0,0,1.14999],"9651":[.19444,.69444,0,0,1.02222],"9657":[-.02778,.47222,0,0,.575],"9661":[.19444,.69444,0,0,1.02222],"9667":[-.02778,.47222,0,0,.575],"9711":[.19444,.69444,0,0,1.14999],"9824":[.12963,.69444,0,0,.89444],"9825":[.12963,.69444,0,0,.89444],"9826":[.12963,.69444,0,0,.89444],"9827":[.12963,.69444,0,0,.89444],"9837":[0,.75,0,0,.44722],"9838":[.19444,.69444,0,0,.44722],"9839":[.19444,.69444,0,0,.44722],"10216":[.25,.75,0,0,.44722],"10217":[.25,.75,0,0,.44722],"10815":[0,.68611,0,0,.9],"10927":[.19667,.69667,0,0,.89444],"10928":[.19667,.69667,0,0,.89444],"57376":[.19444,.69444,0,0,0]},"Main-BoldItalic":{"33":[0,.69444,.11417,0,.38611],"34":[0,.69444,.07939,0,.62055],"35":[.19444,.69444,.06833,0,.94444],"37":[.05556,.75,.12861,0,.94444],"38":[0,.69444,.08528,0,.88555],"39":[0,.69444,.12945,0,.35555],"40":[.25,.75,.15806,0,.47333],"41":[.25,.75,.03306,0,.47333],"42":[0,.75,.14333,0,.59111],"43":[.10333,.60333,.03306,0,.88555],"44":[.19444,.14722,0,0,.35555],"45":[0,.44444,.02611,0,.41444],"46":[0,.14722,0,0,.35555],"47":[.25,.75,.15806,0,.59111],"48":[0,.64444,.13167,0,.59111],"49":[0,.64444,.13167,0,.59111],"50":[0,.64444,.13167,0,.59111],"51":[0,.64444,.13167,0,.59111],"52":[.19444,.64444,.13167,0,.59111],"53":[0,.64444,.13167,0,.59111],"54":[0,.64444,.13167,0,.59111],"55":[.19444,.64444,.13167,0,.59111],"56":[0,.64444,.13167,0,.59111],"57":[0,.64444,.13167,0,.59111],"58":[0,.44444,.06695,0,.35555],"59":[.19444,.44444,.06695,0,.35555],"61":[-.10889,.39111,.06833,0,.88555],"63":[0,.69444,.11472,0,.59111],"64":[0,.69444,.09208,0,.88555],"65":[0,.68611,0,0,.86555],"66":[0,.68611,.0992,0,.81666],"67":[0,.68611,.14208,0,.82666],"68":[0,.68611,.09062,0,.87555],"69":[0,.68611,.11431,0,.75666],"70":[0,.68611,.12903,0,.72722],"71":[0,.68611,.07347,0,.89527],"72":[0,.68611,.17208,0,.8961],"73":[0,.68611,.15681,0,.47166],"74":[0,.68611,.145,0,.61055],"75":[0,.68611,.14208,0,.89499],"76":[0,.68611,0,0,.69777],"77":[0,.68611,.17208,0,1.07277],"78":[0,.68611,.17208,0,.8961],"79":[0,.68611,.09062,0,.85499],"80":[0,.68611,.0992,0,.78721],"81":[.19444,.68611,.09062,0,.85499],"82":[0,.68611,.02559,0,.85944],"83":[0,.68611,.11264,0,.64999],"84":[0,.68611,.12903,0,.7961],"85":[0,.68611,.17208,0,.88083],"86":[0,.68611,.18625,0,.86555],"87":[0,.68611,.18625,0,1.15999],"88":[0,.68611,.15681,0,.86555],"89":[0,.68611,.19803,0,.86555],"90":[0,.68611,.14208,0,.70888],"91":[.25,.75,.1875,0,.35611],"93":[.25,.75,.09972,0,.35611],"94":[0,.69444,.06709,0,.59111],"95":[.31,.13444,.09811,0,.59111],"97":[0,.44444,.09426,0,.59111],"98":[0,.69444,.07861,0,.53222],"99":[0,.44444,.05222,0,.53222],"100":[0,.69444,.10861,0,.59111],"101":[0,.44444,.085,0,.53222],"102":[.19444,.69444,.21778,0,.4],"103":[.19444,.44444,.105,0,.53222],"104":[0,.69444,.09426,0,.59111],"105":[0,.69326,.11387,0,.35555],"106":[.19444,.69326,.1672,0,.35555],"107":[0,.69444,.11111,0,.53222],"108":[0,.69444,.10861,0,.29666],"109":[0,.44444,.09426,0,.94444],"110":[0,.44444,.09426,0,.64999],"111":[0,.44444,.07861,0,.59111],"112":[.19444,.44444,.07861,0,.59111],"113":[.19444,.44444,.105,0,.53222],"114":[0,.44444,.11111,0,.50167],"115":[0,.44444,.08167,0,.48694],"116":[0,.63492,.09639,0,.385],"117":[0,.44444,.09426,0,.62055],"118":[0,.44444,.11111,0,.53222],"119":[0,.44444,.11111,0,.76777],"120":[0,.44444,.12583,0,.56055],"121":[.19444,.44444,.105,0,.56166],"122":[0,.44444,.13889,0,.49055],"126":[.35,.34444,.11472,0,.59111],"163":[0,.69444,0,0,.86853],"168":[0,.69444,.11473,0,.59111],"176":[0,.69444,0,0,.94888],"184":[.17014,0,0,0,.53222],"198":[0,.68611,.11431,0,1.02277],"216":[.04861,.73472,.09062,0,.88555],"223":[.19444,.69444,.09736,0,.665],"230":[0,.44444,.085,0,.82666],"248":[.09722,.54167,.09458,0,.59111],"305":[0,.44444,.09426,0,.35555],"338":[0,.68611,.11431,0,1.14054],"339":[0,.44444,.085,0,.82666],"567":[.19444,.44444,.04611,0,.385],"710":[0,.69444,.06709,0,.59111],"711":[0,.63194,.08271,0,.59111],"713":[0,.59444,.10444,0,.59111],"714":[0,.69444,.08528,0,.59111],"715":[0,.69444,0,0,.59111],"728":[0,.69444,.10333,0,.59111],"729":[0,.69444,.12945,0,.35555],"730":[0,.69444,0,0,.94888],"732":[0,.69444,.11472,0,.59111],"733":[0,.69444,.11472,0,.59111],"915":[0,.68611,.12903,0,.69777],"916":[0,.68611,0,0,.94444],"920":[0,.68611,.09062,0,.88555],"923":[0,.68611,0,0,.80666],"926":[0,.68611,.15092,0,.76777],"928":[0,.68611,.17208,0,.8961],"931":[0,.68611,.11431,0,.82666],"933":[0,.68611,.10778,0,.88555],"934":[0,.68611,.05632,0,.82666],"936":[0,.68611,.10778,0,.88555],"937":[0,.68611,.0992,0,.82666],"8211":[0,.44444,.09811,0,.59111],"8212":[0,.44444,.09811,0,1.18221],"8216":[0,.69444,.12945,0,.35555],"8217":[0,.69444,.12945,0,.35555],"8220":[0,.69444,.16772,0,.62055],"8221":[0,.69444,.07939,0,.62055]},"Main-Italic":{"33":[0,.69444,.12417,0,.30667],"34":[0,.69444,.06961,0,.51444],"35":[.19444,.69444,.06616,0,.81777],"37":[.05556,.75,.13639,0,.81777],"38":[0,.69444,.09694,0,.76666],"39":[0,.69444,.12417,0,.30667],"40":[.25,.75,.16194,0,.40889],"41":[.25,.75,.03694,0,.40889],"42":[0,.75,.14917,0,.51111],"43":[.05667,.56167,.03694,0,.76666],"44":[.19444,.10556,0,0,.30667],"45":[0,.43056,.02826,0,.35778],"46":[0,.10556,0,0,.30667],"47":[.25,.75,.16194,0,.51111],"48":[0,.64444,.13556,0,.51111],"49":[0,.64444,.13556,0,.51111],"50":[0,.64444,.13556,0,.51111],"51":[0,.64444,.13556,0,.51111],"52":[.19444,.64444,.13556,0,.51111],"53":[0,.64444,.13556,0,.51111],"54":[0,.64444,.13556,0,.51111],"55":[.19444,.64444,.13556,0,.51111],"56":[0,.64444,.13556,0,.51111],"57":[0,.64444,.13556,0,.51111],"58":[0,.43056,.0582,0,.30667],"59":[.19444,.43056,.0582,0,.30667],"61":[-.13313,.36687,.06616,0,.76666],"63":[0,.69444,.1225,0,.51111],"64":[0,.69444,.09597,0,.76666],"65":[0,.68333,0,0,.74333],"66":[0,.68333,.10257,0,.70389],"67":[0,.68333,.14528,0,.71555],"68":[0,.68333,.09403,0,.755],"69":[0,.68333,.12028,0,.67833],"70":[0,.68333,.13305,0,.65277],"71":[0,.68333,.08722,0,.77361],"72":[0,.68333,.16389,0,.74333],"73":[0,.68333,.15806,0,.38555],"74":[0,.68333,.14028,0,.525],"75":[0,.68333,.14528,0,.76888],"76":[0,.68333,0,0,.62722],"77":[0,.68333,.16389,0,.89666],"78":[0,.68333,.16389,0,.74333],"79":[0,.68333,.09403,0,.76666],"80":[0,.68333,.10257,0,.67833],"81":[.19444,.68333,.09403,0,.76666],"82":[0,.68333,.03868,0,.72944],"83":[0,.68333,.11972,0,.56222],"84":[0,.68333,.13305,0,.71555],"85":[0,.68333,.16389,0,.74333],"86":[0,.68333,.18361,0,.74333],"87":[0,.68333,.18361,0,.99888],"88":[0,.68333,.15806,0,.74333],"89":[0,.68333,.19383,0,.74333],"90":[0,.68333,.14528,0,.61333],"91":[.25,.75,.1875,0,.30667],"93":[.25,.75,.10528,0,.30667],"94":[0,.69444,.06646,0,.51111],"95":[.31,.12056,.09208,0,.51111],"97":[0,.43056,.07671,0,.51111],"98":[0,.69444,.06312,0,.46],"99":[0,.43056,.05653,0,.46],"100":[0,.69444,.10333,0,.51111],"101":[0,.43056,.07514,0,.46],"102":[.19444,.69444,.21194,0,.30667],"103":[.19444,.43056,.08847,0,.46],"104":[0,.69444,.07671,0,.51111],"105":[0,.65536,.1019,0,.30667],"106":[.19444,.65536,.14467,0,.30667],"107":[0,.69444,.10764,0,.46],"108":[0,.69444,.10333,0,.25555],"109":[0,.43056,.07671,0,.81777],"110":[0,.43056,.07671,0,.56222],"111":[0,.43056,.06312,0,.51111],"112":[.19444,.43056,.06312,0,.51111],"113":[.19444,.43056,.08847,0,.46],"114":[0,.43056,.10764,0,.42166],"115":[0,.43056,.08208,0,.40889],"116":[0,.61508,.09486,0,.33222],"117":[0,.43056,.07671,0,.53666],"118":[0,.43056,.10764,0,.46],"119":[0,.43056,.10764,0,.66444],"120":[0,.43056,.12042,0,.46389],"121":[.19444,.43056,.08847,0,.48555],"122":[0,.43056,.12292,0,.40889],"126":[.35,.31786,.11585,0,.51111],"163":[0,.69444,0,0,.76909],"168":[0,.66786,.10474,0,.51111],"176":[0,.69444,0,0,.83129],"184":[.17014,0,0,0,.46],"198":[0,.68333,.12028,0,.88277],"216":[.04861,.73194,.09403,0,.76666],"223":[.19444,.69444,.10514,0,.53666],"230":[0,.43056,.07514,0,.71555],"248":[.09722,.52778,.09194,0,.51111],"305":[0,.43056,0,.02778,.32246],"338":[0,.68333,.12028,0,.98499],"339":[0,.43056,.07514,0,.71555],"567":[.19444,.43056,0,.08334,.38403],"710":[0,.69444,.06646,0,.51111],"711":[0,.62847,.08295,0,.51111],"713":[0,.56167,.10333,0,.51111],"714":[0,.69444,.09694,0,.51111],"715":[0,.69444,0,0,.51111],"728":[0,.69444,.10806,0,.51111],"729":[0,.66786,.11752,0,.30667],"730":[0,.69444,0,0,.83129],"732":[0,.66786,.11585,0,.51111],"733":[0,.69444,.1225,0,.51111],"915":[0,.68333,.13305,0,.62722],"916":[0,.68333,0,0,.81777],"920":[0,.68333,.09403,0,.76666],"923":[0,.68333,0,0,.69222],"926":[0,.68333,.15294,0,.66444],"928":[0,.68333,.16389,0,.74333],"931":[0,.68333,.12028,0,.71555],"933":[0,.68333,.11111,0,.76666],"934":[0,.68333,.05986,0,.71555],"936":[0,.68333,.11111,0,.76666],"937":[0,.68333,.10257,0,.71555],"8211":[0,.43056,.09208,0,.51111],"8212":[0,.43056,.09208,0,1.02222],"8216":[0,.69444,.12417,0,.30667],"8217":[0,.69444,.12417,0,.30667],"8220":[0,.69444,.1685,0,.51444],"8221":[0,.69444,.06961,0,.51444],"8463":[0,.68889,0,0,.54028]},"Main-Regular":{"32":[0,0,0,0,.25],"33":[0,.69444,0,0,.27778],"34":[0,.69444,0,0,.5],"35":[.19444,.69444,0,0,.83334],"36":[.05556,.75,0,0,.5],"37":[.05556,.75,0,0,.83334],"38":[0,.69444,0,0,.77778],"39":[0,.69444,0,0,.27778],"40":[.25,.75,0,0,.38889],"41":[.25,.75,0,0,.38889],"42":[0,.75,0,0,.5],"43":[.08333,.58333,0,0,.77778],"44":[.19444,.10556,0,0,.27778],"45":[0,.43056,0,0,.33333],"46":[0,.10556,0,0,.27778],"47":[.25,.75,0,0,.5],"48":[0,.64444,0,0,.5],"49":[0,.64444,0,0,.5],"50":[0,.64444,0,0,.5],"51":[0,.64444,0,0,.5],"52":[0,.64444,0,0,.5],"53":[0,.64444,0,0,.5],"54":[0,.64444,0,0,.5],"55":[0,.64444,0,0,.5],"56":[0,.64444,0,0,.5],"57":[0,.64444,0,0,.5],"58":[0,.43056,0,0,.27778],"59":[.19444,.43056,0,0,.27778],"60":[.0391,.5391,0,0,.77778],"61":[-.13313,.36687,0,0,.77778],"62":[.0391,.5391,0,0,.77778],"63":[0,.69444,0,0,.47222],"64":[0,.69444,0,0,.77778],"65":[0,.68333,0,0,.75],"66":[0,.68333,0,0,.70834],"67":[0,.68333,0,0,.72222],"68":[0,.68333,0,0,.76389],"69":[0,.68333,0,0,.68056],"70":[0,.68333,0,0,.65278],"71":[0,.68333,0,0,.78472],"72":[0,.68333,0,0,.75],"73":[0,.68333,0,0,.36111],"74":[0,.68333,0,0,.51389],"75":[0,.68333,0,0,.77778],"76":[0,.68333,0,0,.625],"77":[0,.68333,0,0,.91667],"78":[0,.68333,0,0,.75],"79":[0,.68333,0,0,.77778],"80":[0,.68333,0,0,.68056],"81":[.19444,.68333,0,0,.77778],"82":[0,.68333,0,0,.73611],"83":[0,.68333,0,0,.55556],"84":[0,.68333,0,0,.72222],"85":[0,.68333,0,0,.75],"86":[0,.68333,.01389,0,.75],"87":[0,.68333,.01389,0,1.02778],"88":[0,.68333,0,0,.75],"89":[0,.68333,.025,0,.75],"90":[0,.68333,0,0,.61111],"91":[.25,.75,0,0,.27778],"92":[.25,.75,0,0,.5],"93":[.25,.75,0,0,.27778],"94":[0,.69444,0,0,.5],"95":[.31,.12056,.02778,0,.5],"97":[0,.43056,0,0,.5],"98":[0,.69444,0,0,.55556],"99":[0,.43056,0,0,.44445],"100":[0,.69444,0,0,.55556],"101":[0,.43056,0,0,.44445],"102":[0,.69444,.07778,0,.30556],"103":[.19444,.43056,.01389,0,.5],"104":[0,.69444,0,0,.55556],"105":[0,.66786,0,0,.27778],"106":[.19444,.66786,0,0,.30556],"107":[0,.69444,0,0,.52778],"108":[0,.69444,0,0,.27778],"109":[0,.43056,0,0,.83334],"110":[0,.43056,0,0,.55556],"111":[0,.43056,0,0,.5],"112":[.19444,.43056,0,0,.55556],"113":[.19444,.43056,0,0,.52778],"114":[0,.43056,0,0,.39167],"115":[0,.43056,0,0,.39445],"116":[0,.61508,0,0,.38889],"117":[0,.43056,0,0,.55556],"118":[0,.43056,.01389,0,.52778],"119":[0,.43056,.01389,0,.72222],"120":[0,.43056,0,0,.52778],"121":[.19444,.43056,.01389,0,.52778],"122":[0,.43056,0,0,.44445],"123":[.25,.75,0,0,.5],"124":[.25,.75,0,0,.27778],"125":[.25,.75,0,0,.5],"126":[.35,.31786,0,0,.5],"160":[0,0,0,0,.25],"167":[.19444,.69444,0,0,.44445],"168":[0,.66786,0,0,.5],"172":[0,.43056,0,0,.66667],"176":[0,.69444,0,0,.75],"177":[.08333,.58333,0,0,.77778],"182":[.19444,.69444,0,0,.61111],"184":[.17014,0,0,0,.44445],"198":[0,.68333,0,0,.90278],"215":[.08333,.58333,0,0,.77778],"216":[.04861,.73194,0,0,.77778],"223":[0,.69444,0,0,.5],"230":[0,.43056,0,0,.72222],"247":[.08333,.58333,0,0,.77778],"248":[.09722,.52778,0,0,.5],"305":[0,.43056,0,0,.27778],"338":[0,.68333,0,0,1.01389],"339":[0,.43056,0,0,.77778],"567":[.19444,.43056,0,0,.30556],"710":[0,.69444,0,0,.5],"711":[0,.62847,0,0,.5],"713":[0,.56778,0,0,.5],"714":[0,.69444,0,0,.5],"715":[0,.69444,0,0,.5],"728":[0,.69444,0,0,.5],"729":[0,.66786,0,0,.27778],"730":[0,.69444,0,0,.75],"732":[0,.66786,0,0,.5],"733":[0,.69444,0,0,.5],"915":[0,.68333,0,0,.625],"916":[0,.68333,0,0,.83334],"920":[0,.68333,0,0,.77778],"923":[0,.68333,0,0,.69445],"926":[0,.68333,0,0,.66667],"928":[0,.68333,0,0,.75],"931":[0,.68333,0,0,.72222],"933":[0,.68333,0,0,.77778],"934":[0,.68333,0,0,.72222],"936":[0,.68333,0,0,.77778],"937":[0,.68333,0,0,.72222],"8211":[0,.43056,.02778,0,.5],"8212":[0,.43056,.02778,0,1],"8216":[0,.69444,0,0,.27778],"8217":[0,.69444,0,0,.27778],"8220":[0,.69444,0,0,.5],"8221":[0,.69444,0,0,.5],"8224":[.19444,.69444,0,0,.44445],"8225":[.19444,.69444,0,0,.44445],"8230":[0,.12,0,0,1.172],"8242":[0,.55556,0,0,.275],"8407":[0,.71444,.15382,0,.5],"8463":[0,.68889,0,0,.54028],"8465":[0,.69444,0,0,.72222],"8467":[0,.69444,0,.11111,.41667],"8472":[.19444,.43056,0,.11111,.63646],"8476":[0,.69444,0,0,.72222],"8501":[0,.69444,0,0,.61111],"8592":[-.13313,.36687,0,0,1],"8593":[.19444,.69444,0,0,.5],"8594":[-.13313,.36687,0,0,1],"8595":[.19444,.69444,0,0,.5],"8596":[-.13313,.36687,0,0,1],"8597":[.25,.75,0,0,.5],"8598":[.19444,.69444,0,0,1],"8599":[.19444,.69444,0,0,1],"8600":[.19444,.69444,0,0,1],"8601":[.19444,.69444,0,0,1],"8614":[.011,.511,0,0,1],"8617":[.011,.511,0,0,1.126],"8618":[.011,.511,0,0,1.126],"8636":[-.13313,.36687,0,0,1],"8637":[-.13313,.36687,0,0,1],"8640":[-.13313,.36687,0,0,1],"8641":[-.13313,.36687,0,0,1],"8652":[.011,.671,0,0,1],"8656":[-.13313,.36687,0,0,1],"8657":[.19444,.69444,0,0,.61111],"8658":[-.13313,.36687,0,0,1],"8659":[.19444,.69444,0,0,.61111],"8660":[-.13313,.36687,0,0,1],"8661":[.25,.75,0,0,.61111],"8704":[0,.69444,0,0,.55556],"8706":[0,.69444,.05556,.08334,.5309],"8707":[0,.69444,0,0,.55556],"8709":[.05556,.75,0,0,.5],"8711":[0,.68333,0,0,.83334],"8712":[.0391,.5391,0,0,.66667],"8715":[.0391,.5391,0,0,.66667],"8722":[.08333,.58333,0,0,.77778],"8723":[.08333,.58333,0,0,.77778],"8725":[.25,.75,0,0,.5],"8726":[.25,.75,0,0,.5],"8727":[-.03472,.46528,0,0,.5],"8728":[-.05555,.44445,0,0,.5],"8729":[-.05555,.44445,0,0,.5],"8730":[.2,.8,0,0,.83334],"8733":[0,.43056,0,0,.77778],"8734":[0,.43056,0,0,1],"8736":[0,.69224,0,0,.72222],"8739":[.25,.75,0,0,.27778],"8741":[.25,.75,0,0,.5],"8743":[0,.55556,0,0,.66667],"8744":[0,.55556,0,0,.66667],"8745":[0,.55556,0,0,.66667],"8746":[0,.55556,0,0,.66667],"8747":[.19444,.69444,.11111,0,.41667],"8764":[-.13313,.36687,0,0,.77778],"8768":[.19444,.69444,0,0,.27778],"8771":[-.03625,.46375,0,0,.77778],"8773":[-.022,.589,0,0,1],"8776":[-.01688,.48312,0,0,.77778],"8781":[-.03625,.46375,0,0,.77778],"8784":[-.133,.67,0,0,.778],"8801":[-.03625,.46375,0,0,.77778],"8804":[.13597,.63597,0,0,.77778],"8805":[.13597,.63597,0,0,.77778],"8810":[.0391,.5391,0,0,1],"8811":[.0391,.5391,0,0,1],"8826":[.0391,.5391,0,0,.77778],"8827":[.0391,.5391,0,0,.77778],"8834":[.0391,.5391,0,0,.77778],"8835":[.0391,.5391,0,0,.77778],"8838":[.13597,.63597,0,0,.77778],"8839":[.13597,.63597,0,0,.77778],"8846":[0,.55556,0,0,.66667],"8849":[.13597,.63597,0,0,.77778],"8850":[.13597,.63597,0,0,.77778],"8851":[0,.55556,0,0,.66667],"8852":[0,.55556,0,0,.66667],"8853":[.08333,.58333,0,0,.77778],"8854":[.08333,.58333,0,0,.77778],"8855":[.08333,.58333,0,0,.77778],"8856":[.08333,.58333,0,0,.77778],"8857":[.08333,.58333,0,0,.77778],"8866":[0,.69444,0,0,.61111],"8867":[0,.69444,0,0,.61111],"8868":[0,.69444,0,0,.77778],"8869":[0,.69444,0,0,.77778],"8872":[.249,.75,0,0,.867],"8900":[-.05555,.44445,0,0,.5],"8901":[-.05555,.44445,0,0,.27778],"8902":[-.03472,.46528,0,0,.5],"8904":[.005,.505,0,0,.9],"8942":[.03,.9,0,0,.278],"8943":[-.19,.31,0,0,1.172],"8945":[-.1,.82,0,0,1.282],"8968":[.25,.75,0,0,.44445],"8969":[.25,.75,0,0,.44445],"8970":[.25,.75,0,0,.44445],"8971":[.25,.75,0,0,.44445],"8994":[-.14236,.35764,0,0,1],"8995":[-.14236,.35764,0,0,1],"9136":[.244,.744,0,0,.412],"9137":[.244,.744,0,0,.412],"9651":[.19444,.69444,0,0,.88889],"9657":[-.03472,.46528,0,0,.5],"9661":[.19444,.69444,0,0,.88889],"9667":[-.03472,.46528,0,0,.5],"9711":[.19444,.69444,0,0,1],"9824":[.12963,.69444,0,0,.77778],"9825":[.12963,.69444,0,0,.77778],"9826":[.12963,.69444,0,0,.77778],"9827":[.12963,.69444,0,0,.77778],"9837":[0,.75,0,0,.38889],"9838":[.19444,.69444,0,0,.38889],"9839":[.19444,.69444,0,0,.38889],"10216":[.25,.75,0,0,.38889],"10217":[.25,.75,0,0,.38889],"10222":[.244,.744,0,0,.412],"10223":[.244,.744,0,0,.412],"10229":[.011,.511,0,0,1.609],"10230":[.011,.511,0,0,1.638],"10231":[.011,.511,0,0,1.859],"10232":[.024,.525,0,0,1.609],"10233":[.024,.525,0,0,1.638],"10234":[.024,.525,0,0,1.858],"10236":[.011,.511,0,0,1.638],"10815":[0,.68333,0,0,.75],"10927":[.13597,.63597,0,0,.77778],"10928":[.13597,.63597,0,0,.77778],"57376":[.19444,.69444,0,0,0]},"Math-BoldItalic":{"65":[0,.68611,0,0,.86944],"66":[0,.68611,.04835,0,.8664],"67":[0,.68611,.06979,0,.81694],"68":[0,.68611,.03194,0,.93812],"69":[0,.68611,.05451,0,.81007],"70":[0,.68611,.15972,0,.68889],"71":[0,.68611,0,0,.88673],"72":[0,.68611,.08229,0,.98229],"73":[0,.68611,.07778,0,.51111],"74":[0,.68611,.10069,0,.63125],"75":[0,.68611,.06979,0,.97118],"76":[0,.68611,0,0,.75555],"77":[0,.68611,.11424,0,1.14201],"78":[0,.68611,.11424,0,.95034],"79":[0,.68611,.03194,0,.83666],"80":[0,.68611,.15972,0,.72309],"81":[.19444,.68611,0,0,.86861],"82":[0,.68611,.00421,0,.87235],"83":[0,.68611,.05382,0,.69271],"84":[0,.68611,.15972,0,.63663],"85":[0,.68611,.11424,0,.80027],"86":[0,.68611,.25555,0,.67778],"87":[0,.68611,.15972,0,1.09305],"88":[0,.68611,.07778,0,.94722],"89":[0,.68611,.25555,0,.67458],"90":[0,.68611,.06979,0,.77257],"97":[0,.44444,0,0,.63287],"98":[0,.69444,0,0,.52083],"99":[0,.44444,0,0,.51342],"100":[0,.69444,0,0,.60972],"101":[0,.44444,0,0,.55361],"102":[.19444,.69444,.11042,0,.56806],"103":[.19444,.44444,.03704,0,.5449],"104":[0,.69444,0,0,.66759],"105":[0,.69326,0,0,.4048],"106":[.19444,.69326,.0622,0,.47083],"107":[0,.69444,.01852,0,.6037],"108":[0,.69444,.0088,0,.34815],"109":[0,.44444,0,0,1.0324],"110":[0,.44444,0,0,.71296],"111":[0,.44444,0,0,.58472],"112":[.19444,.44444,0,0,.60092],"113":[.19444,.44444,.03704,0,.54213],"114":[0,.44444,.03194,0,.5287],"115":[0,.44444,0,0,.53125],"116":[0,.63492,0,0,.41528],"117":[0,.44444,0,0,.68102],"118":[0,.44444,.03704,0,.56666],"119":[0,.44444,.02778,0,.83148],"120":[0,.44444,0,0,.65903],"121":[.19444,.44444,.03704,0,.59028],"122":[0,.44444,.04213,0,.55509],"915":[0,.68611,.15972,0,.65694],"916":[0,.68611,0,0,.95833],"920":[0,.68611,.03194,0,.86722],"923":[0,.68611,0,0,.80555],"926":[0,.68611,.07458,0,.84125],"928":[0,.68611,.08229,0,.98229],"931":[0,.68611,.05451,0,.88507],"933":[0,.68611,.15972,0,.67083],"934":[0,.68611,0,0,.76666],"936":[0,.68611,.11653,0,.71402],"937":[0,.68611,.04835,0,.8789],"945":[0,.44444,0,0,.76064],"946":[.19444,.69444,.03403,0,.65972],"947":[.19444,.44444,.06389,0,.59003],"948":[0,.69444,.03819,0,.52222],"949":[0,.44444,0,0,.52882],"950":[.19444,.69444,.06215,0,.50833],"951":[.19444,.44444,.03704,0,.6],"952":[0,.69444,.03194,0,.5618],"953":[0,.44444,0,0,.41204],"954":[0,.44444,0,0,.66759],"955":[0,.69444,0,0,.67083],"956":[.19444,.44444,0,0,.70787],"957":[0,.44444,.06898,0,.57685],"958":[.19444,.69444,.03021,0,.50833],"959":[0,.44444,0,0,.58472],"960":[0,.44444,.03704,0,.68241],"961":[.19444,.44444,0,0,.6118],"962":[.09722,.44444,.07917,0,.42361],"963":[0,.44444,.03704,0,.68588],"964":[0,.44444,.13472,0,.52083],"965":[0,.44444,.03704,0,.63055],"966":[.19444,.44444,0,0,.74722],"967":[.19444,.44444,0,0,.71805],"968":[.19444,.69444,.03704,0,.75833],"969":[0,.44444,.03704,0,.71782],"977":[0,.69444,0,0,.69155],"981":[.19444,.69444,0,0,.7125],"982":[0,.44444,.03194,0,.975],"1009":[.19444,.44444,0,0,.6118],"1013":[0,.44444,0,0,.48333]},"Math-Italic":{"65":[0,.68333,0,.13889,.75],"66":[0,.68333,.05017,.08334,.75851],"67":[0,.68333,.07153,.08334,.71472],"68":[0,.68333,.02778,.05556,.82792],"69":[0,.68333,.05764,.08334,.7382],"70":[0,.68333,.13889,.08334,.64306],"71":[0,.68333,0,.08334,.78625],"72":[0,.68333,.08125,.05556,.83125],"73":[0,.68333,.07847,.11111,.43958],"74":[0,.68333,.09618,.16667,.55451],"75":[0,.68333,.07153,.05556,.84931],"76":[0,.68333,0,.02778,.68056],"77":[0,.68333,.10903,.08334,.97014],"78":[0,.68333,.10903,.08334,.80347],"79":[0,.68333,.02778,.08334,.76278],"80":[0,.68333,.13889,.08334,.64201],"81":[.19444,.68333,0,.08334,.79056],"82":[0,.68333,.00773,.08334,.75929],"83":[0,.68333,.05764,.08334,.6132],"84":[0,.68333,.13889,.08334,.58438],"85":[0,.68333,.10903,.02778,.68278],"86":[0,.68333,.22222,0,.58333],"87":[0,.68333,.13889,0,.94445],"88":[0,.68333,.07847,.08334,.82847],"89":[0,.68333,.22222,0,.58056],"90":[0,.68333,.07153,.08334,.68264],"97":[0,.43056,0,0,.52859],"98":[0,.69444,0,0,.42917],"99":[0,.43056,0,.05556,.43276],"100":[0,.69444,0,.16667,.52049],"101":[0,.43056,0,.05556,.46563],"102":[.19444,.69444,.10764,.16667,.48959],"103":[.19444,.43056,.03588,.02778,.47697],"104":[0,.69444,0,0,.57616],"105":[0,.65952,0,0,.34451],"106":[.19444,.65952,.05724,0,.41181],"107":[0,.69444,.03148,0,.5206],"108":[0,.69444,.01968,.08334,.29838],"109":[0,.43056,0,0,.87801],"110":[0,.43056,0,0,.60023],"111":[0,.43056,0,.05556,.48472],"112":[.19444,.43056,0,.08334,.50313],"113":[.19444,.43056,.03588,.08334,.44641],"114":[0,.43056,.02778,.05556,.45116],"115":[0,.43056,0,.05556,.46875],"116":[0,.61508,0,.08334,.36111],"117":[0,.43056,0,.02778,.57246],"118":[0,.43056,.03588,.02778,.48472],"119":[0,.43056,.02691,.08334,.71592],"120":[0,.43056,0,.02778,.57153],"121":[.19444,.43056,.03588,.05556,.49028],"122":[0,.43056,.04398,.05556,.46505],"915":[0,.68333,.13889,.08334,.61528],"916":[0,.68333,0,.16667,.83334],"920":[0,.68333,.02778,.08334,.76278],"923":[0,.68333,0,.16667,.69445],"926":[0,.68333,.07569,.08334,.74236],"928":[0,.68333,.08125,.05556,.83125],"931":[0,.68333,.05764,.08334,.77986],"933":[0,.68333,.13889,.05556,.58333],"934":[0,.68333,0,.08334,.66667],"936":[0,.68333,.11,.05556,.61222],"937":[0,.68333,.05017,.08334,.7724],"945":[0,.43056,.0037,.02778,.6397],"946":[.19444,.69444,.05278,.08334,.56563],"947":[.19444,.43056,.05556,0,.51773],"948":[0,.69444,.03785,.05556,.44444],"949":[0,.43056,0,.08334,.46632],"950":[.19444,.69444,.07378,.08334,.4375],"951":[.19444,.43056,.03588,.05556,.49653],"952":[0,.69444,.02778,.08334,.46944],"953":[0,.43056,0,.05556,.35394],"954":[0,.43056,0,0,.57616],"955":[0,.69444,0,0,.58334],"956":[.19444,.43056,0,.02778,.60255],"957":[0,.43056,.06366,.02778,.49398],"958":[.19444,.69444,.04601,.11111,.4375],"959":[0,.43056,0,.05556,.48472],"960":[0,.43056,.03588,0,.57003],"961":[.19444,.43056,0,.08334,.51702],"962":[.09722,.43056,.07986,.08334,.36285],"963":[0,.43056,.03588,0,.57141],"964":[0,.43056,.1132,.02778,.43715],"965":[0,.43056,.03588,.02778,.54028],"966":[.19444,.43056,0,.08334,.65417],"967":[.19444,.43056,0,.05556,.62569],"968":[.19444,.69444,.03588,.11111,.65139],"969":[0,.43056,.03588,0,.62245],"977":[0,.69444,0,.08334,.59144],"981":[.19444,.69444,0,.08334,.59583],"982":[0,.43056,.02778,0,.82813],"1009":[.19444,.43056,0,.08334,.51702],"1013":[0,.43056,0,.05556,.4059]},"Math-Regular":{"65":[0,.68333,0,.13889,.75],"66":[0,.68333,.05017,.08334,.75851],"67":[0,.68333,.07153,.08334,.71472],"68":[0,.68333,.02778,.05556,.82792],"69":[0,.68333,.05764,.08334,.7382],"70":[0,.68333,.13889,.08334,.64306],"71":[0,.68333,0,.08334,.78625],"72":[0,.68333,.08125,.05556,.83125],"73":[0,.68333,.07847,.11111,.43958],"74":[0,.68333,.09618,.16667,.55451],"75":[0,.68333,.07153,.05556,.84931],"76":[0,.68333,0,.02778,.68056],"77":[0,.68333,.10903,.08334,.97014],"78":[0,.68333,.10903,.08334,.80347],"79":[0,.68333,.02778,.08334,.76278],"80":[0,.68333,.13889,.08334,.64201],"81":[.19444,.68333,0,.08334,.79056],"82":[0,.68333,.00773,.08334,.75929],"83":[0,.68333,.05764,.08334,.6132],"84":[0,.68333,.13889,.08334,.58438],"85":[0,.68333,.10903,.02778,.68278],"86":[0,.68333,.22222,0,.58333],"87":[0,.68333,.13889,0,.94445],"88":[0,.68333,.07847,.08334,.82847],"89":[0,.68333,.22222,0,.58056],"90":[0,.68333,.07153,.08334,.68264],"97":[0,.43056,0,0,.52859],"98":[0,.69444,0,0,.42917],"99":[0,.43056,0,.05556,.43276],"100":[0,.69444,0,.16667,.52049],"101":[0,.43056,0,.05556,.46563],"102":[.19444,.69444,.10764,.16667,.48959],"103":[.19444,.43056,.03588,.02778,.47697],"104":[0,.69444,0,0,.57616],"105":[0,.65952,0,0,.34451],"106":[.19444,.65952,.05724,0,.41181],"107":[0,.69444,.03148,0,.5206],"108":[0,.69444,.01968,.08334,.29838],"109":[0,.43056,0,0,.87801],"110":[0,.43056,0,0,.60023],"111":[0,.43056,0,.05556,.48472],"112":[.19444,.43056,0,.08334,.50313],"113":[.19444,.43056,.03588,.08334,.44641],"114":[0,.43056,.02778,.05556,.45116],"115":[0,.43056,0,.05556,.46875],"116":[0,.61508,0,.08334,.36111],"117":[0,.43056,0,.02778,.57246],"118":[0,.43056,.03588,.02778,.48472],"119":[0,.43056,.02691,.08334,.71592],"120":[0,.43056,0,.02778,.57153],"121":[.19444,.43056,.03588,.05556,.49028],"122":[0,.43056,.04398,.05556,.46505],"915":[0,.68333,.13889,.08334,.61528],"916":[0,.68333,0,.16667,.83334],"920":[0,.68333,.02778,.08334,.76278],"923":[0,.68333,0,.16667,.69445],"926":[0,.68333,.07569,.08334,.74236],"928":[0,.68333,.08125,.05556,.83125],"931":[0,.68333,.05764,.08334,.77986],"933":[0,.68333,.13889,.05556,.58333],"934":[0,.68333,0,.08334,.66667],"936":[0,.68333,.11,.05556,.61222],"937":[0,.68333,.05017,.08334,.7724],"945":[0,.43056,.0037,.02778,.6397],"946":[.19444,.69444,.05278,.08334,.56563],"947":[.19444,.43056,.05556,0,.51773],"948":[0,.69444,.03785,.05556,.44444],"949":[0,.43056,0,.08334,.46632],"950":[.19444,.69444,.07378,.08334,.4375],"951":[.19444,.43056,.03588,.05556,.49653],"952":[0,.69444,.02778,.08334,.46944],"953":[0,.43056,0,.05556,.35394],"954":[0,.43056,0,0,.57616],"955":[0,.69444,0,0,.58334],"956":[.19444,.43056,0,.02778,.60255],"957":[0,.43056,.06366,.02778,.49398],"958":[.19444,.69444,.04601,.11111,.4375],"959":[0,.43056,0,.05556,.48472],"960":[0,.43056,.03588,0,.57003],"961":[.19444,.43056,0,.08334,.51702],"962":[.09722,.43056,.07986,.08334,.36285],"963":[0,.43056,.03588,0,.57141],"964":[0,.43056,.1132,.02778,.43715],"965":[0,.43056,.03588,.02778,.54028],"966":[.19444,.43056,0,.08334,.65417],"967":[.19444,.43056,0,.05556,.62569],"968":[.19444,.69444,.03588,.11111,.65139],"969":[0,.43056,.03588,0,.62245],"977":[0,.69444,0,.08334,.59144],"981":[.19444,.69444,0,.08334,.59583],"982":[0,.43056,.02778,0,.82813],"1009":[.19444,.43056,0,.08334,.51702],"1013":[0,.43056,0,.05556,.4059]},"SansSerif-Bold":{"33":[0,.69444,0,0,.36667],"34":[0,.69444,0,0,.55834],"35":[.19444,.69444,0,0,.91667],"36":[.05556,.75,0,0,.55],"37":[.05556,.75,0,0,1.02912],"38":[0,.69444,0,0,.83056],"39":[0,.69444,0,0,.30556],"40":[.25,.75,0,0,.42778],"41":[.25,.75,0,0,.42778],"42":[0,.75,0,0,.55],"43":[.11667,.61667,0,0,.85556],"44":[.10556,.13056,0,0,.30556],"45":[0,.45833,0,0,.36667],"46":[0,.13056,0,0,.30556],"47":[.25,.75,0,0,.55],"48":[0,.69444,0,0,.55],"49":[0,.69444,0,0,.55],"50":[0,.69444,0,0,.55],"51":[0,.69444,0,0,.55],"52":[0,.69444,0,0,.55],"53":[0,.69444,0,0,.55],"54":[0,.69444,0,0,.55],"55":[0,.69444,0,0,.55],"56":[0,.69444,0,0,.55],"57":[0,.69444,0,0,.55],"58":[0,.45833,0,0,.30556],"59":[.10556,.45833,0,0,.30556],"61":[-.09375,.40625,0,0,.85556],"63":[0,.69444,0,0,.51945],"64":[0,.69444,0,0,.73334],"65":[0,.69444,0,0,.73334],"66":[0,.69444,0,0,.73334],"67":[0,.69444,0,0,.70278],"68":[0,.69444,0,0,.79445],"69":[0,.69444,0,0,.64167],"70":[0,.69444,0,0,.61111],"71":[0,.69444,0,0,.73334],"72":[0,.69444,0,0,.79445],"73":[0,.69444,0,0,.33056],"74":[0,.69444,0,0,.51945],"75":[0,.69444,0,0,.76389],"76":[0,.69444,0,0,.58056],"77":[0,.69444,0,0,.97778],"78":[0,.69444,0,0,.79445],"79":[0,.69444,0,0,.79445],"80":[0,.69444,0,0,.70278],"81":[.10556,.69444,0,0,.79445],"82":[0,.69444,0,0,.70278],"83":[0,.69444,0,0,.61111],"84":[0,.69444,0,0,.73334],"85":[0,.69444,0,0,.76389],"86":[0,.69444,.01528,0,.73334],"87":[0,.69444,.01528,0,1.03889],"88":[0,.69444,0,0,.73334],"89":[0,.69444,.0275,0,.73334],"90":[0,.69444,0,0,.67223],"91":[.25,.75,0,0,.34306],"93":[.25,.75,0,0,.34306],"94":[0,.69444,0,0,.55],"95":[.35,.10833,.03056,0,.55],"97":[0,.45833,0,0,.525],"98":[0,.69444,0,0,.56111],"99":[0,.45833,0,0,.48889],"100":[0,.69444,0,0,.56111],"101":[0,.45833,0,0,.51111],"102":[0,.69444,.07639,0,.33611],"103":[.19444,.45833,.01528,0,.55],"104":[0,.69444,0,0,.56111],"105":[0,.69444,0,0,.25556],"106":[.19444,.69444,0,0,.28611],"107":[0,.69444,0,0,.53056],"108":[0,.69444,0,0,.25556],"109":[0,.45833,0,0,.86667],"110":[0,.45833,0,0,.56111],"111":[0,.45833,0,0,.55],"112":[.19444,.45833,0,0,.56111],"113":[.19444,.45833,0,0,.56111],"114":[0,.45833,.01528,0,.37222],"115":[0,.45833,0,0,.42167],"116":[0,.58929,0,0,.40417],"117":[0,.45833,0,0,.56111],"118":[0,.45833,.01528,0,.5],"119":[0,.45833,.01528,0,.74445],"120":[0,.45833,0,0,.5],"121":[.19444,.45833,.01528,0,.5],"122":[0,.45833,0,0,.47639],"126":[.35,.34444,0,0,.55],"168":[0,.69444,0,0,.55],"176":[0,.69444,0,0,.73334],"180":[0,.69444,0,0,.55],"184":[.17014,0,0,0,.48889],"305":[0,.45833,0,0,.25556],"567":[.19444,.45833,0,0,.28611],"710":[0,.69444,0,0,.55],"711":[0,.63542,0,0,.55],"713":[0,.63778,0,0,.55],"728":[0,.69444,0,0,.55],"729":[0,.69444,0,0,.30556],"730":[0,.69444,0,0,.73334],"732":[0,.69444,0,0,.55],"733":[0,.69444,0,0,.55],"915":[0,.69444,0,0,.58056],"916":[0,.69444,0,0,.91667],"920":[0,.69444,0,0,.85556],"923":[0,.69444,0,0,.67223],"926":[0,.69444,0,0,.73334],"928":[0,.69444,0,0,.79445],"931":[0,.69444,0,0,.79445],"933":[0,.69444,0,0,.85556],"934":[0,.69444,0,0,.79445],"936":[0,.69444,0,0,.85556],"937":[0,.69444,0,0,.79445],"8211":[0,.45833,.03056,0,.55],"8212":[0,.45833,.03056,0,1.10001],"8216":[0,.69444,0,0,.30556],"8217":[0,.69444,0,0,.30556],"8220":[0,.69444,0,0,.55834],"8221":[0,.69444,0,0,.55834]},"SansSerif-Italic":{"33":[0,.69444,.05733,0,.31945],"34":[0,.69444,.00316,0,.5],"35":[.19444,.69444,.05087,0,.83334],"36":[.05556,.75,.11156,0,.5],"37":[.05556,.75,.03126,0,.83334],"38":[0,.69444,.03058,0,.75834],"39":[0,.69444,.07816,0,.27778],"40":[.25,.75,.13164,0,.38889],"41":[.25,.75,.02536,0,.38889],"42":[0,.75,.11775,0,.5],"43":[.08333,.58333,.02536,0,.77778],"44":[.125,.08333,0,0,.27778],"45":[0,.44444,.01946,0,.33333],"46":[0,.08333,0,0,.27778],"47":[.25,.75,.13164,0,.5],"48":[0,.65556,.11156,0,.5],"49":[0,.65556,.11156,0,.5],"50":[0,.65556,.11156,0,.5],"51":[0,.65556,.11156,0,.5],"52":[0,.65556,.11156,0,.5],"53":[0,.65556,.11156,0,.5],"54":[0,.65556,.11156,0,.5],"55":[0,.65556,.11156,0,.5],"56":[0,.65556,.11156,0,.5],"57":[0,.65556,.11156,0,.5],"58":[0,.44444,.02502,0,.27778],"59":[.125,.44444,.02502,0,.27778],"61":[-.13,.37,.05087,0,.77778],"63":[0,.69444,.11809,0,.47222],"64":[0,.69444,.07555,0,.66667],"65":[0,.69444,0,0,.66667],"66":[0,.69444,.08293,0,.66667],"67":[0,.69444,.11983,0,.63889],"68":[0,.69444,.07555,0,.72223],"69":[0,.69444,.11983,0,.59722],"70":[0,.69444,.13372,0,.56945],"71":[0,.69444,.11983,0,.66667],"72":[0,.69444,.08094,0,.70834],"73":[0,.69444,.13372,0,.27778],"74":[0,.69444,.08094,0,.47222],"75":[0,.69444,.11983,0,.69445],"76":[0,.69444,0,0,.54167],"77":[0,.69444,.08094,0,.875],"78":[0,.69444,.08094,0,.70834],"79":[0,.69444,.07555,0,.73611],"80":[0,.69444,.08293,0,.63889],"81":[.125,.69444,.07555,0,.73611],"82":[0,.69444,.08293,0,.64584],"83":[0,.69444,.09205,0,.55556],"84":[0,.69444,.13372,0,.68056],"85":[0,.69444,.08094,0,.6875],"86":[0,.69444,.1615,0,.66667],"87":[0,.69444,.1615,0,.94445],"88":[0,.69444,.13372,0,.66667],"89":[0,.69444,.17261,0,.66667],"90":[0,.69444,.11983,0,.61111],"91":[.25,.75,.15942,0,.28889],"93":[.25,.75,.08719,0,.28889],"94":[0,.69444,.0799,0,.5],"95":[.35,.09444,.08616,0,.5],"97":[0,.44444,.00981,0,.48056],"98":[0,.69444,.03057,0,.51667],"99":[0,.44444,.08336,0,.44445],"100":[0,.69444,.09483,0,.51667],"101":[0,.44444,.06778,0,.44445],"102":[0,.69444,.21705,0,.30556],"103":[.19444,.44444,.10836,0,.5],"104":[0,.69444,.01778,0,.51667],"105":[0,.67937,.09718,0,.23889],"106":[.19444,.67937,.09162,0,.26667],"107":[0,.69444,.08336,0,.48889],"108":[0,.69444,.09483,0,.23889],"109":[0,.44444,.01778,0,.79445],"110":[0,.44444,.01778,0,.51667],"111":[0,.44444,.06613,0,.5],"112":[.19444,.44444,.0389,0,.51667],"113":[.19444,.44444,.04169,0,.51667],"114":[0,.44444,.10836,0,.34167],"115":[0,.44444,.0778,0,.38333],"116":[0,.57143,.07225,0,.36111],"117":[0,.44444,.04169,0,.51667],"118":[0,.44444,.10836,0,.46111],"119":[0,.44444,.10836,0,.68334],"120":[0,.44444,.09169,0,.46111],"121":[.19444,.44444,.10836,0,.46111],"122":[0,.44444,.08752,0,.43472],"126":[.35,.32659,.08826,0,.5],"168":[0,.67937,.06385,0,.5],"176":[0,.69444,0,0,.73752],"184":[.17014,0,0,0,.44445],"305":[0,.44444,.04169,0,.23889],"567":[.19444,.44444,.04169,0,.26667],"710":[0,.69444,.0799,0,.5],"711":[0,.63194,.08432,0,.5],"713":[0,.60889,.08776,0,.5],"714":[0,.69444,.09205,0,.5],"715":[0,.69444,0,0,.5],"728":[0,.69444,.09483,0,.5],"729":[0,.67937,.07774,0,.27778],"730":[0,.69444,0,0,.73752],"732":[0,.67659,.08826,0,.5],"733":[0,.69444,.09205,0,.5],"915":[0,.69444,.13372,0,.54167],"916":[0,.69444,0,0,.83334],"920":[0,.69444,.07555,0,.77778],"923":[0,.69444,0,0,.61111],"926":[0,.69444,.12816,0,.66667],"928":[0,.69444,.08094,0,.70834],"931":[0,.69444,.11983,0,.72222],"933":[0,.69444,.09031,0,.77778],"934":[0,.69444,.04603,0,.72222],"936":[0,.69444,.09031,0,.77778],"937":[0,.69444,.08293,0,.72222],"8211":[0,.44444,.08616,0,.5],"8212":[0,.44444,.08616,0,1],"8216":[0,.69444,.07816,0,.27778],"8217":[0,.69444,.07816,0,.27778],"8220":[0,.69444,.14205,0,.5],"8221":[0,.69444,.00316,0,.5]},"SansSerif-Regular":{"33":[0,.69444,0,0,.31945],"34":[0,.69444,0,0,.5],"35":[.19444,.69444,0,0,.83334],"36":[.05556,.75,0,0,.5],"37":[.05556,.75,0,0,.83334],"38":[0,.69444,0,0,.75834],"39":[0,.69444,0,0,.27778],"40":[.25,.75,0,0,.38889],"41":[.25,.75,0,0,.38889],"42":[0,.75,0,0,.5],"43":[.08333,.58333,0,0,.77778],"44":[.125,.08333,0,0,.27778],"45":[0,.44444,0,0,.33333],"46":[0,.08333,0,0,.27778],"47":[.25,.75,0,0,.5],"48":[0,.65556,0,0,.5],"49":[0,.65556,0,0,.5],"50":[0,.65556,0,0,.5],"51":[0,.65556,0,0,.5],"52":[0,.65556,0,0,.5],"53":[0,.65556,0,0,.5],"54":[0,.65556,0,0,.5],"55":[0,.65556,0,0,.5],"56":[0,.65556,0,0,.5],"57":[0,.65556,0,0,.5],"58":[0,.44444,0,0,.27778],"59":[.125,.44444,0,0,.27778],"61":[-.13,.37,0,0,.77778],"63":[0,.69444,0,0,.47222],"64":[0,.69444,0,0,.66667],"65":[0,.69444,0,0,.66667],"66":[0,.69444,0,0,.66667],"67":[0,.69444,0,0,.63889],"68":[0,.69444,0,0,.72223],"69":[0,.69444,0,0,.59722],"70":[0,.69444,0,0,.56945],"71":[0,.69444,0,0,.66667],"72":[0,.69444,0,0,.70834],"73":[0,.69444,0,0,.27778],"74":[0,.69444,0,0,.47222],"75":[0,.69444,0,0,.69445],"76":[0,.69444,0,0,.54167],"77":[0,.69444,0,0,.875],"78":[0,.69444,0,0,.70834],"79":[0,.69444,0,0,.73611],"80":[0,.69444,0,0,.63889],"81":[.125,.69444,0,0,.73611],"82":[0,.69444,0,0,.64584],"83":[0,.69444,0,0,.55556],"84":[0,.69444,0,0,.68056],"85":[0,.69444,0,0,.6875],"86":[0,.69444,.01389,0,.66667],"87":[0,.69444,.01389,0,.94445],"88":[0,.69444,0,0,.66667],"89":[0,.69444,.025,0,.66667],"90":[0,.69444,0,0,.61111],"91":[.25,.75,0,0,.28889],"93":[.25,.75,0,0,.28889],"94":[0,.69444,0,0,.5],"95":[.35,.09444,.02778,0,.5],"97":[0,.44444,0,0,.48056],"98":[0,.69444,0,0,.51667],"99":[0,.44444,0,0,.44445],"100":[0,.69444,0,0,.51667],"101":[0,.44444,0,0,.44445],"102":[0,.69444,.06944,0,.30556],"103":[.19444,.44444,.01389,0,.5],"104":[0,.69444,0,0,.51667],"105":[0,.67937,0,0,.23889],"106":[.19444,.67937,0,0,.26667],"107":[0,.69444,0,0,.48889],"108":[0,.69444,0,0,.23889],"109":[0,.44444,0,0,.79445],"110":[0,.44444,0,0,.51667],"111":[0,.44444,0,0,.5],"112":[.19444,.44444,0,0,.51667],"113":[.19444,.44444,0,0,.51667],"114":[0,.44444,.01389,0,.34167],"115":[0,.44444,0,0,.38333],"116":[0,.57143,0,0,.36111],"117":[0,.44444,0,0,.51667],"118":[0,.44444,.01389,0,.46111],"119":[0,.44444,.01389,0,.68334],"120":[0,.44444,0,0,.46111],"121":[.19444,.44444,.01389,0,.46111],"122":[0,.44444,0,0,.43472],"126":[.35,.32659,0,0,.5],"168":[0,.67937,0,0,.5],"176":[0,.69444,0,0,.66667],"184":[.17014,0,0,0,.44445],"305":[0,.44444,0,0,.23889],"567":[.19444,.44444,0,0,.26667],"710":[0,.69444,0,0,.5],"711":[0,.63194,0,0,.5],"713":[0,.60889,0,0,.5],"714":[0,.69444,0,0,.5],"715":[0,.69444,0,0,.5],"728":[0,.69444,0,0,.5],"729":[0,.67937,0,0,.27778],"730":[0,.69444,0,0,.66667],"732":[0,.67659,0,0,.5],"733":[0,.69444,0,0,.5],"915":[0,.69444,0,0,.54167],"916":[0,.69444,0,0,.83334],"920":[0,.69444,0,0,.77778],"923":[0,.69444,0,0,.61111],"926":[0,.69444,0,0,.66667],"928":[0,.69444,0,0,.70834],"931":[0,.69444,0,0,.72222],"933":[0,.69444,0,0,.77778],"934":[0,.69444,0,0,.72222],"936":[0,.69444,0,0,.77778],"937":[0,.69444,0,0,.72222],"8211":[0,.44444,.02778,0,.5],"8212":[0,.44444,.02778,0,1],"8216":[0,.69444,0,0,.27778],"8217":[0,.69444,0,0,.27778],"8220":[0,.69444,0,0,.5],"8221":[0,.69444,0,0,.5]},"Script-Regular":{"65":[0,.7,.22925,0,.80253],"66":[0,.7,.04087,0,.90757],"67":[0,.7,.1689,0,.66619],"68":[0,.7,.09371,0,.77443],"69":[0,.7,.18583,0,.56162],"70":[0,.7,.13634,0,.89544],"71":[0,.7,.17322,0,.60961],"72":[0,.7,.29694,0,.96919],"73":[0,.7,.19189,0,.80907],"74":[.27778,.7,.19189,0,1.05159],"75":[0,.7,.31259,0,.91364],"76":[0,.7,.19189,0,.87373],"77":[0,.7,.15981,0,1.08031],"78":[0,.7,.3525,0,.9015],"79":[0,.7,.08078,0,.73787],"80":[0,.7,.08078,0,1.01262],"81":[0,.7,.03305,0,.88282],"82":[0,.7,.06259,0,.85],"83":[0,.7,.19189,0,.86767],"84":[0,.7,.29087,0,.74697],"85":[0,.7,.25815,0,.79996],"86":[0,.7,.27523,0,.62204],"87":[0,.7,.27523,0,.80532],"88":[0,.7,.26006,0,.94445],"89":[0,.7,.2939,0,.70961],"90":[0,.7,.24037,0,.8212]},"Size1-Regular":{"40":[.35001,.85,0,0,.45834],"41":[.35001,.85,0,0,.45834],"47":[.35001,.85,0,0,.57778],"91":[.35001,.85,0,0,.41667],"92":[.35001,.85,0,0,.57778],"93":[.35001,.85,0,0,.41667],"123":[.35001,.85,0,0,.58334],"125":[.35001,.85,0,0,.58334],"710":[0,.72222,0,0,.55556],"732":[0,.72222,0,0,.55556],"770":[0,.72222,0,0,.55556],"771":[0,.72222,0,0,.55556],"8214":[-99e-5,.601,0,0,.77778],"8593":[1e-5,.6,0,0,.66667],"8595":[1e-5,.6,0,0,.66667],"8657":[1e-5,.6,0,0,.77778],"8659":[1e-5,.6,0,0,.77778],"8719":[.25001,.75,0,0,.94445],"8720":[.25001,.75,0,0,.94445],"8721":[.25001,.75,0,0,1.05556],"8730":[.35001,.85,0,0,1],"8739":[-.00599,.606,0,0,.33333],"8741":[-.00599,.606,0,0,.55556],"8747":[.30612,.805,.19445,0,.47222],"8748":[.306,.805,.19445,0,.47222],"8749":[.306,.805,.19445,0,.47222],"8750":[.30612,.805,.19445,0,.47222],"8896":[.25001,.75,0,0,.83334],"8897":[.25001,.75,0,0,.83334],"8898":[.25001,.75,0,0,.83334],"8899":[.25001,.75,0,0,.83334],"8968":[.35001,.85,0,0,.47222],"8969":[.35001,.85,0,0,.47222],"8970":[.35001,.85,0,0,.47222],"8971":[.35001,.85,0,0,.47222],"9168":[-99e-5,.601,0,0,.66667],"10216":[.35001,.85,0,0,.47222],"10217":[.35001,.85,0,0,.47222],"10752":[.25001,.75,0,0,1.11111],"10753":[.25001,.75,0,0,1.11111],"10754":[.25001,.75,0,0,1.11111],"10756":[.25001,.75,0,0,.83334],"10758":[.25001,.75,0,0,.83334]},"Size2-Regular":{"40":[.65002,1.15,0,0,.59722],"41":[.65002,1.15,0,0,.59722],"47":[.65002,1.15,0,0,.81111],"91":[.65002,1.15,0,0,.47222],"92":[.65002,1.15,0,0,.81111],"93":[.65002,1.15,0,0,.47222],"123":[.65002,1.15,0,0,.66667],"125":[.65002,1.15,0,0,.66667],"710":[0,.75,0,0,1],"732":[0,.75,0,0,1],"770":[0,.75,0,0,1],"771":[0,.75,0,0,1],"8719":[.55001,1.05,0,0,1.27778],"8720":[.55001,1.05,0,0,1.27778],"8721":[.55001,1.05,0,0,1.44445],"8730":[.65002,1.15,0,0,1],"8747":[.86225,1.36,.44445,0,.55556],"8748":[.862,1.36,.44445,0,.55556],"8749":[.862,1.36,.44445,0,.55556],"8750":[.86225,1.36,.44445,0,.55556],"8896":[.55001,1.05,0,0,1.11111],"8897":[.55001,1.05,0,0,1.11111],"8898":[.55001,1.05,0,0,1.11111],"8899":[.55001,1.05,0,0,1.11111],"8968":[.65002,1.15,0,0,.52778],"8969":[.65002,1.15,0,0,.52778],"8970":[.65002,1.15,0,0,.52778],"8971":[.65002,1.15,0,0,.52778],"10216":[.65002,1.15,0,0,.61111],"10217":[.65002,1.15,0,0,.61111],"10752":[.55001,1.05,0,0,1.51112],"10753":[.55001,1.05,0,0,1.51112],"10754":[.55001,1.05,0,0,1.51112],"10756":[.55001,1.05,0,0,1.11111],"10758":[.55001,1.05,0,0,1.11111]},"Size3-Regular":{"40":[.95003,1.45,0,0,.73611],"41":[.95003,1.45,0,0,.73611],"47":[.95003,1.45,0,0,1.04445],"91":[.95003,1.45,0,0,.52778],"92":[.95003,1.45,0,0,1.04445],"93":[.95003,1.45,0,0,.52778],"123":[.95003,1.45,0,0,.75],"125":[.95003,1.45,0,0,.75],"710":[0,.75,0,0,1.44445],"732":[0,.75,0,0,1.44445],"770":[0,.75,0,0,1.44445],"771":[0,.75,0,0,1.44445],"8730":[.95003,1.45,0,0,1],"8968":[.95003,1.45,0,0,.58334],"8969":[.95003,1.45,0,0,.58334],"8970":[.95003,1.45,0,0,.58334],"8971":[.95003,1.45,0,0,.58334],"10216":[.95003,1.45,0,0,.75],"10217":[.95003,1.45,0,0,.75]},"Size4-Regular":{"40":[1.25003,1.75,0,0,.79167],"41":[1.25003,1.75,0,0,.79167],"47":[1.25003,1.75,0,0,1.27778],"91":[1.25003,1.75,0,0,.58334],"92":[1.25003,1.75,0,0,1.27778],"93":[1.25003,1.75,0,0,.58334],"123":[1.25003,1.75,0,0,.80556],"125":[1.25003,1.75,0,0,.80556],"710":[0,.825,0,0,1.8889],"732":[0,.825,0,0,1.8889],"770":[0,.825,0,0,1.8889],"771":[0,.825,0,0,1.8889],"8730":[1.25003,1.75,0,0,1],"8968":[1.25003,1.75,0,0,.63889],"8969":[1.25003,1.75,0,0,.63889],"8970":[1.25003,1.75,0,0,.63889],"8971":[1.25003,1.75,0,0,.63889],"9115":[.64502,1.155,0,0,.875],"9116":[1e-5,.6,0,0,.875],"9117":[.64502,1.155,0,0,.875],"9118":[.64502,1.155,0,0,.875],"9119":[1e-5,.6,0,0,.875],"9120":[.64502,1.155,0,0,.875],"9121":[.64502,1.155,0,0,.66667],"9122":[-99e-5,.601,0,0,.66667],"9123":[.64502,1.155,0,0,.66667],"9124":[.64502,1.155,0,0,.66667],"9125":[-99e-5,.601,0,0,.66667],"9126":[.64502,1.155,0,0,.66667],"9127":[1e-5,.9,0,0,.88889],"9128":[.65002,1.15,0,0,.88889],"9129":[.90001,0,0,0,.88889],"9130":[0,.3,0,0,.88889],"9131":[1e-5,.9,0,0,.88889],"9132":[.65002,1.15,0,0,.88889],"9133":[.90001,0,0,0,.88889],"9143":[.88502,.915,0,0,1.05556],"10216":[1.25003,1.75,0,0,.80556],"10217":[1.25003,1.75,0,0,.80556],"57344":[-.00499,.605,0,0,1.05556],"57345":[-.00499,.605,0,0,1.05556],"57680":[0,.12,0,0,.45],"57681":[0,.12,0,0,.45],"57682":[0,.12,0,0,.45],"57683":[0,.12,0,0,.45]},"Typewriter-Regular":{"32":[0,0,0,0,.525],"33":[0,.61111,0,0,.525],"34":[0,.61111,0,0,.525],"35":[0,.61111,0,0,.525],"36":[.08333,.69444,0,0,.525],"37":[.08333,.69444,0,0,.525],"38":[0,.61111,0,0,.525],"39":[0,.61111,0,0,.525],"40":[.08333,.69444,0,0,.525],"41":[.08333,.69444,0,0,.525],"42":[0,.52083,0,0,.525],"43":[-.08056,.53055,0,0,.525],"44":[.13889,.125,0,0,.525],"45":[-.08056,.53055,0,0,.525],"46":[0,.125,0,0,.525],"47":[.08333,.69444,0,0,.525],"48":[0,.61111,0,0,.525],"49":[0,.61111,0,0,.525],"50":[0,.61111,0,0,.525],"51":[0,.61111,0,0,.525],"52":[0,.61111,0,0,.525],"53":[0,.61111,0,0,.525],"54":[0,.61111,0,0,.525],"55":[0,.61111,0,0,.525],"56":[0,.61111,0,0,.525],"57":[0,.61111,0,0,.525],"58":[0,.43056,0,0,.525],"59":[.13889,.43056,0,0,.525],"60":[-.05556,.55556,0,0,.525],"61":[-.19549,.41562,0,0,.525],"62":[-.05556,.55556,0,0,.525],"63":[0,.61111,0,0,.525],"64":[0,.61111,0,0,.525],"65":[0,.61111,0,0,.525],"66":[0,.61111,0,0,.525],"67":[0,.61111,0,0,.525],"68":[0,.61111,0,0,.525],"69":[0,.61111,0,0,.525],"70":[0,.61111,0,0,.525],"71":[0,.61111,0,0,.525],"72":[0,.61111,0,0,.525],"73":[0,.61111,0,0,.525],"74":[0,.61111,0,0,.525],"75":[0,.61111,0,0,.525],"76":[0,.61111,0,0,.525],"77":[0,.61111,0,0,.525],"78":[0,.61111,0,0,.525],"79":[0,.61111,0,0,.525],"80":[0,.61111,0,0,.525],"81":[.13889,.61111,0,0,.525],"82":[0,.61111,0,0,.525],"83":[0,.61111,0,0,.525],"84":[0,.61111,0,0,.525],"85":[0,.61111,0,0,.525],"86":[0,.61111,0,0,.525],"87":[0,.61111,0,0,.525],"88":[0,.61111,0,0,.525],"89":[0,.61111,0,0,.525],"90":[0,.61111,0,0,.525],"91":[.08333,.69444,0,0,.525],"92":[.08333,.69444,0,0,.525],"93":[.08333,.69444,0,0,.525],"94":[0,.61111,0,0,.525],"95":[.09514,0,0,0,.525],"96":[0,.61111,0,0,.525],"97":[0,.43056,0,0,.525],"98":[0,.61111,0,0,.525],"99":[0,.43056,0,0,.525],"100":[0,.61111,0,0,.525],"101":[0,.43056,0,0,.525],"102":[0,.61111,0,0,.525],"103":[.22222,.43056,0,0,.525],"104":[0,.61111,0,0,.525],"105":[0,.61111,0,0,.525],"106":[.22222,.61111,0,0,.525],"107":[0,.61111,0,0,.525],"108":[0,.61111,0,0,.525],"109":[0,.43056,0,0,.525],"110":[0,.43056,0,0,.525],"111":[0,.43056,0,0,.525],"112":[.22222,.43056,0,0,.525],"113":[.22222,.43056,0,0,.525],"114":[0,.43056,0,0,.525],"115":[0,.43056,0,0,.525],"116":[0,.55358,0,0,.525],"117":[0,.43056,0,0,.525],"118":[0,.43056,0,0,.525],"119":[0,.43056,0,0,.525],"120":[0,.43056,0,0,.525],"121":[.22222,.43056,0,0,.525],"122":[0,.43056,0,0,.525],"123":[.08333,.69444,0,0,.525],"124":[.08333,.69444,0,0,.525],"125":[.08333,.69444,0,0,.525],"126":[0,.61111,0,0,.525],"127":[0,.61111,0,0,.525],"160":[0,0,0,0,.525],"176":[0,.61111,0,0,.525],"184":[.19445,0,0,0,.525],"305":[0,.43056,0,0,.525],"567":[.22222,.43056,0,0,.525],"711":[0,.56597,0,0,.525],"713":[0,.56555,0,0,.525],"714":[0,.61111,0,0,.525],"715":[0,.61111,0,0,.525],"728":[0,.61111,0,0,.525],"730":[0,.61111,0,0,.525],"770":[0,.61111,0,0,.525],"771":[0,.61111,0,0,.525],"776":[0,.61111,0,0,.525],"915":[0,.61111,0,0,.525],"916":[0,.61111,0,0,.525],"920":[0,.61111,0,0,.525],"923":[0,.61111,0,0,.525],"926":[0,.61111,0,0,.525],"928":[0,.61111,0,0,.525],"931":[0,.61111,0,0,.525],"933":[0,.61111,0,0,.525],"934":[0,.61111,0,0,.525],"936":[0,.61111,0,0,.525],"937":[0,.61111,0,0,.525],"8216":[0,.61111,0,0,.525],"8217":[0,.61111,0,0,.525],"8242":[0,.61111,0,0,.525],"9251":[.11111,.21944,0,0,.525]}},et={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Te={\u00C5:"A",\u00C7:"C",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00E7:"c",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function tt(At,se){it[At]=se}function ze(At,se,ge){if(!it[se])throw new Error("Font metrics not found for font: "+se+".");var Se=At.charCodeAt(0),We=it[se][Se];if(!We&&At[0]in Te&&(Se=Te[At[0]].charCodeAt(0),We=it[se][Se]),!We&&ge==="text"&&(Y(Se)&&(We=it[se][77])),We)return{depth:We[0],height:We[1],italic:We[2],skew:We[3],width:We[4]}}var dt={};function Ot(At){var se;if(At>=5?se=0:At>=3?se=1:se=2,!dt[se]){var ge=dt[se]={cssEmPerMu:et.quad[se]/18};for(var Se in et)et.hasOwnProperty(Se)&&(ge[Se]=et[Se][se])}return dt[se]}var Tt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Ct={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Nt={math:{},text:{}},Be=Nt;function $(At,se,ge,Se,We,vt){Nt[At][We]={font:se,group:ge,replace:Se},vt&&Se&&(Nt[At][Se]=Nt[At][We])}var Z="math",Re="text",De="main",ae="ams",gt="accent-token",jt="bin",ut="close",rr="inner",pr="mathord",nn="op-token",mr="open",vr="punct",$t="rel",Xt="spacing",ft="textord";$(Z,De,$t,"\u2261","\\equiv",!0),$(Z,De,$t,"\u227A","\\prec",!0),$(Z,De,$t,"\u227B","\\succ",!0),$(Z,De,$t,"\u223C","\\sim",!0),$(Z,De,$t,"\u22A5","\\perp"),$(Z,De,$t,"\u2AAF","\\preceq",!0),$(Z,De,$t,"\u2AB0","\\succeq",!0),$(Z,De,$t,"\u2243","\\simeq",!0),$(Z,De,$t,"\u2223","\\mid",!0),$(Z,De,$t,"\u226A","\\ll",!0),$(Z,De,$t,"\u226B","\\gg",!0),$(Z,De,$t,"\u224D","\\asymp",!0),$(Z,De,$t,"\u2225","\\parallel"),$(Z,De,$t,"\u22C8","\\bowtie",!0),$(Z,De,$t,"\u2323","\\smile",!0),$(Z,De,$t,"\u2291","\\sqsubseteq",!0),$(Z,De,$t,"\u2292","\\sqsupseteq",!0),$(Z,De,$t,"\u2250","\\doteq",!0),$(Z,De,$t,"\u2322","\\frown",!0),$(Z,De,$t,"\u220B","\\ni",!0),$(Z,De,$t,"\u221D","\\propto",!0),$(Z,De,$t,"\u22A2","\\vdash",!0),$(Z,De,$t,"\u22A3","\\dashv",!0),$(Z,De,$t,"\u220B","\\owns"),$(Z,De,vr,".","\\ldotp"),$(Z,De,vr,"\u22C5","\\cdotp"),$(Z,De,ft,"#","\\#"),$(Re,De,ft,"#","\\#"),$(Z,De,ft,"&","\\&"),$(Re,De,ft,"&","\\&"),$(Z,De,ft,"\u2135","\\aleph",!0),$(Z,De,ft,"\u2200","\\forall",!0),$(Z,De,ft,"\u210F","\\hbar",!0),$(Z,De,ft,"\u2203","\\exists",!0),$(Z,De,ft,"\u2207","\\nabla",!0),$(Z,De,ft,"\u266D","\\flat",!0),$(Z,De,ft,"\u2113","\\ell",!0),$(Z,De,ft,"\u266E","\\natural",!0),$(Z,De,ft,"\u2663","\\clubsuit",!0),$(Z,De,ft,"\u2118","\\wp",!0),$(Z,De,ft,"\u266F","\\sharp",!0),$(Z,De,ft,"\u2662","\\diamondsuit",!0),$(Z,De,ft,"\u211C","\\Re",!0),$(Z,De,ft,"\u2661","\\heartsuit",!0),$(Z,De,ft,"\u2111","\\Im",!0),$(Z,De,ft,"\u2660","\\spadesuit",!0),$(Re,De,ft,"\xA7","\\S",!0),$(Re,De,ft,"\xB6","\\P",!0),$(Z,De,ft,"\u2020","\\dag"),$(Re,De,ft,"\u2020","\\dag"),$(Re,De,ft,"\u2020","\\textdagger"),$(Z,De,ft,"\u2021","\\ddag"),$(Re,De,ft,"\u2021","\\ddag"),$(Re,De,ft,"\u2021","\\textdaggerdbl"),$(Z,De,ut,"\u23B1","\\rmoustache",!0),$(Z,De,mr,"\u23B0","\\lmoustache",!0),$(Z,De,ut,"\u27EF","\\rgroup",!0),$(Z,De,mr,"\u27EE","\\lgroup",!0),$(Z,De,jt,"\u2213","\\mp",!0),$(Z,De,jt,"\u2296","\\ominus",!0),$(Z,De,jt,"\u228E","\\uplus",!0),$(Z,De,jt,"\u2293","\\sqcap",!0),$(Z,De,jt,"\u2217","\\ast"),$(Z,De,jt,"\u2294","\\sqcup",!0),$(Z,De,jt,"\u25EF","\\bigcirc"),$(Z,De,jt,"\u2219","\\bullet"),$(Z,De,jt,"\u2021","\\ddagger"),$(Z,De,jt,"\u2240","\\wr",!0),$(Z,De,jt,"\u2A3F","\\amalg"),$(Z,De,jt,"&","\\And"),$(Z,De,$t,"\u27F5","\\longleftarrow",!0),$(Z,De,$t,"\u21D0","\\Leftarrow",!0),$(Z,De,$t,"\u27F8","\\Longleftarrow",!0),$(Z,De,$t,"\u27F6","\\longrightarrow",!0),$(Z,De,$t,"\u21D2","\\Rightarrow",!0),$(Z,De,$t,"\u27F9","\\Longrightarrow",!0),$(Z,De,$t,"\u2194","\\leftrightarrow",!0),$(Z,De,$t,"\u27F7","\\longleftrightarrow",!0),$(Z,De,$t,"\u21D4","\\Leftrightarrow",!0),$(Z,De,$t,"\u27FA","\\Longleftrightarrow",!0),$(Z,De,$t,"\u21A6","\\mapsto",!0),$(Z,De,$t,"\u27FC","\\longmapsto",!0),$(Z,De,$t,"\u2197","\\nearrow",!0),$(Z,De,$t,"\u21A9","\\hookleftarrow",!0),$(Z,De,$t,"\u21AA","\\hookrightarrow",!0),$(Z,De,$t,"\u2198","\\searrow",!0),$(Z,De,$t,"\u21BC","\\leftharpoonup",!0),$(Z,De,$t,"\u21C0","\\rightharpoonup",!0),$(Z,De,$t,"\u2199","\\swarrow",!0),$(Z,De,$t,"\u21BD","\\leftharpoondown",!0),$(Z,De,$t,"\u21C1","\\rightharpoondown",!0),$(Z,De,$t,"\u2196","\\nwarrow",!0),$(Z,De,$t,"\u21CC","\\rightleftharpoons",!0),$(Z,ae,$t,"\u226E","\\nless",!0),$(Z,ae,$t,"\uE010","\\@nleqslant"),$(Z,ae,$t,"\uE011","\\@nleqq"),$(Z,ae,$t,"\u2A87","\\lneq",!0),$(Z,ae,$t,"\u2268","\\lneqq",!0),$(Z,ae,$t,"\uE00C","\\@lvertneqq"),$(Z,ae,$t,"\u22E6","\\lnsim",!0),$(Z,ae,$t,"\u2A89","\\lnapprox",!0),$(Z,ae,$t,"\u2280","\\nprec",!0),$(Z,ae,$t,"\u22E0","\\npreceq",!0),$(Z,ae,$t,"\u22E8","\\precnsim",!0),$(Z,ae,$t,"\u2AB9","\\precnapprox",!0),$(Z,ae,$t,"\u2241","\\nsim",!0),$(Z,ae,$t,"\uE006","\\@nshortmid"),$(Z,ae,$t,"\u2224","\\nmid",!0),$(Z,ae,$t,"\u22AC","\\nvdash",!0),$(Z,ae,$t,"\u22AD","\\nvDash",!0),$(Z,ae,$t,"\u22EA","\\ntriangleleft"),$(Z,ae,$t,"\u22EC","\\ntrianglelefteq",!0),$(Z,ae,$t,"\u228A","\\subsetneq",!0),$(Z,ae,$t,"\uE01A","\\@varsubsetneq"),$(Z,ae,$t,"\u2ACB","\\subsetneqq",!0),$(Z,ae,$t,"\uE017","\\@varsubsetneqq"),$(Z,ae,$t,"\u226F","\\ngtr",!0),$(Z,ae,$t,"\uE00F","\\@ngeqslant"),$(Z,ae,$t,"\uE00E","\\@ngeqq"),$(Z,ae,$t,"\u2A88","\\gneq",!0),$(Z,ae,$t,"\u2269","\\gneqq",!0),$(Z,ae,$t,"\uE00D","\\@gvertneqq"),$(Z,ae,$t,"\u22E7","\\gnsim",!0),$(Z,ae,$t,"\u2A8A","\\gnapprox",!0),$(Z,ae,$t,"\u2281","\\nsucc",!0),$(Z,ae,$t,"\u22E1","\\nsucceq",!0),$(Z,ae,$t,"\u22E9","\\succnsim",!0),$(Z,ae,$t,"\u2ABA","\\succnapprox",!0),$(Z,ae,$t,"\u2246","\\ncong",!0),$(Z,ae,$t,"\uE007","\\@nshortparallel"),$(Z,ae,$t,"\u2226","\\nparallel",!0),$(Z,ae,$t,"\u22AF","\\nVDash",!0),$(Z,ae,$t,"\u22EB","\\ntriangleright"),$(Z,ae,$t,"\u22ED","\\ntrianglerighteq",!0),$(Z,ae,$t,"\uE018","\\@nsupseteqq"),$(Z,ae,$t,"\u228B","\\supsetneq",!0),$(Z,ae,$t,"\uE01B","\\@varsupsetneq"),$(Z,ae,$t,"\u2ACC","\\supsetneqq",!0),$(Z,ae,$t,"\uE019","\\@varsupsetneqq"),$(Z,ae,$t,"\u22AE","\\nVdash",!0),$(Z,ae,$t,"\u2AB5","\\precneqq",!0),$(Z,ae,$t,"\u2AB6","\\succneqq",!0),$(Z,ae,$t,"\uE016","\\@nsubseteqq"),$(Z,ae,jt,"\u22B4","\\unlhd"),$(Z,ae,jt,"\u22B5","\\unrhd"),$(Z,ae,$t,"\u219A","\\nleftarrow",!0),$(Z,ae,$t,"\u219B","\\nrightarrow",!0),$(Z,ae,$t,"\u21CD","\\nLeftarrow",!0),$(Z,ae,$t,"\u21CF","\\nRightarrow",!0),$(Z,ae,$t,"\u21AE","\\nleftrightarrow",!0),$(Z,ae,$t,"\u21CE","\\nLeftrightarrow",!0),$(Z,ae,$t,"\u25B3","\\vartriangle"),$(Z,ae,ft,"\u210F","\\hslash"),$(Z,ae,ft,"\u25BD","\\triangledown"),$(Z,ae,ft,"\u25CA","\\lozenge"),$(Z,ae,ft,"\u24C8","\\circledS"),$(Z,ae,ft,"\xAE","\\circledR"),$(Re,ae,ft,"\xAE","\\circledR"),$(Z,ae,ft,"\u2221","\\measuredangle",!0),$(Z,ae,ft,"\u2204","\\nexists"),$(Z,ae,ft,"\u2127","\\mho"),$(Z,ae,ft,"\u2132","\\Finv",!0),$(Z,ae,ft,"\u2141","\\Game",!0),$(Z,ae,ft,"\u2035","\\backprime"),$(Z,ae,ft,"\u25B2","\\blacktriangle"),$(Z,ae,ft,"\u25BC","\\blacktriangledown"),$(Z,ae,ft,"\u25A0","\\blacksquare"),$(Z,ae,ft,"\u29EB","\\blacklozenge"),$(Z,ae,ft,"\u2605","\\bigstar"),$(Z,ae,ft,"\u2222","\\sphericalangle",!0),$(Z,ae,ft,"\u2201","\\complement",!0),$(Z,ae,ft,"\xF0","\\eth",!0),$(Z,ae,ft,"\u2571","\\diagup"),$(Z,ae,ft,"\u2572","\\diagdown"),$(Z,ae,ft,"\u25A1","\\square"),$(Z,ae,ft,"\u25A1","\\Box"),$(Z,ae,ft,"\u25CA","\\Diamond"),$(Z,ae,ft,"\xA5","\\yen",!0),$(Re,ae,ft,"\xA5","\\yen",!0),$(Z,ae,ft,"\u2713","\\checkmark",!0),$(Re,ae,ft,"\u2713","\\checkmark"),$(Z,ae,ft,"\u2136","\\beth",!0),$(Z,ae,ft,"\u2138","\\daleth",!0),$(Z,ae,ft,"\u2137","\\gimel",!0),$(Z,ae,ft,"\u03DD","\\digamma",!0),$(Z,ae,ft,"\u03F0","\\varkappa"),$(Z,ae,mr,"\u250C","\\ulcorner",!0),$(Z,ae,ut,"\u2510","\\urcorner",!0),$(Z,ae,mr,"\u2514","\\llcorner",!0),$(Z,ae,ut,"\u2518","\\lrcorner",!0),$(Z,ae,$t,"\u2266","\\leqq",!0),$(Z,ae,$t,"\u2A7D","\\leqslant",!0),$(Z,ae,$t,"\u2A95","\\eqslantless",!0),$(Z,ae,$t,"\u2272","\\lesssim",!0),$(Z,ae,$t,"\u2A85","\\lessapprox",!0),$(Z,ae,$t,"\u224A","\\approxeq",!0),$(Z,ae,jt,"\u22D6","\\lessdot"),$(Z,ae,$t,"\u22D8","\\lll",!0),$(Z,ae,$t,"\u2276","\\lessgtr",!0),$(Z,ae,$t,"\u22DA","\\lesseqgtr",!0),$(Z,ae,$t,"\u2A8B","\\lesseqqgtr",!0),$(Z,ae,$t,"\u2251","\\doteqdot"),$(Z,ae,$t,"\u2253","\\risingdotseq",!0),$(Z,ae,$t,"\u2252","\\fallingdotseq",!0),$(Z,ae,$t,"\u223D","\\backsim",!0),$(Z,ae,$t,"\u22CD","\\backsimeq",!0),$(Z,ae,$t,"\u2AC5","\\subseteqq",!0),$(Z,ae,$t,"\u22D0","\\Subset",!0),$(Z,ae,$t,"\u228F","\\sqsubset",!0),$(Z,ae,$t,"\u227C","\\preccurlyeq",!0),$(Z,ae,$t,"\u22DE","\\curlyeqprec",!0),$(Z,ae,$t,"\u227E","\\precsim",!0),$(Z,ae,$t,"\u2AB7","\\precapprox",!0),$(Z,ae,$t,"\u22B2","\\vartriangleleft"),$(Z,ae,$t,"\u22B4","\\trianglelefteq"),$(Z,ae,$t,"\u22A8","\\vDash",!0),$(Z,ae,$t,"\u22AA","\\Vvdash",!0),$(Z,ae,$t,"\u2323","\\smallsmile"),$(Z,ae,$t,"\u2322","\\smallfrown"),$(Z,ae,$t,"\u224F","\\bumpeq",!0),$(Z,ae,$t,"\u224E","\\Bumpeq",!0),$(Z,ae,$t,"\u2267","\\geqq",!0),$(Z,ae,$t,"\u2A7E","\\geqslant",!0),$(Z,ae,$t,"\u2A96","\\eqslantgtr",!0),$(Z,ae,$t,"\u2273","\\gtrsim",!0),$(Z,ae,$t,"\u2A86","\\gtrapprox",!0),$(Z,ae,jt,"\u22D7","\\gtrdot"),$(Z,ae,$t,"\u22D9","\\ggg",!0),$(Z,ae,$t,"\u2277","\\gtrless",!0),$(Z,ae,$t,"\u22DB","\\gtreqless",!0),$(Z,ae,$t,"\u2A8C","\\gtreqqless",!0),$(Z,ae,$t,"\u2256","\\eqcirc",!0),$(Z,ae,$t,"\u2257","\\circeq",!0),$(Z,ae,$t,"\u225C","\\triangleq",!0),$(Z,ae,$t,"\u223C","\\thicksim"),$(Z,ae,$t,"\u2248","\\thickapprox"),$(Z,ae,$t,"\u2AC6","\\supseteqq",!0),$(Z,ae,$t,"\u22D1","\\Supset",!0),$(Z,ae,$t,"\u2290","\\sqsupset",!0),$(Z,ae,$t,"\u227D","\\succcurlyeq",!0),$(Z,ae,$t,"\u22DF","\\curlyeqsucc",!0),$(Z,ae,$t,"\u227F","\\succsim",!0),$(Z,ae,$t,"\u2AB8","\\succapprox",!0),$(Z,ae,$t,"\u22B3","\\vartriangleright"),$(Z,ae,$t,"\u22B5","\\trianglerighteq"),$(Z,ae,$t,"\u22A9","\\Vdash",!0),$(Z,ae,$t,"\u2223","\\shortmid"),$(Z,ae,$t,"\u2225","\\shortparallel"),$(Z,ae,$t,"\u226C","\\between",!0),$(Z,ae,$t,"\u22D4","\\pitchfork",!0),$(Z,ae,$t,"\u221D","\\varpropto"),$(Z,ae,$t,"\u25C0","\\blacktriangleleft"),$(Z,ae,$t,"\u2234","\\therefore",!0),$(Z,ae,$t,"\u220D","\\backepsilon"),$(Z,ae,$t,"\u25B6","\\blacktriangleright"),$(Z,ae,$t,"\u2235","\\because",!0),$(Z,ae,$t,"\u22D8","\\llless"),$(Z,ae,$t,"\u22D9","\\gggtr"),$(Z,ae,jt,"\u22B2","\\lhd"),$(Z,ae,jt,"\u22B3","\\rhd"),$(Z,ae,$t,"\u2242","\\eqsim",!0),$(Z,De,$t,"\u22C8","\\Join"),$(Z,ae,$t,"\u2251","\\Doteq",!0),$(Z,ae,jt,"\u2214","\\dotplus",!0),$(Z,ae,jt,"\u2216","\\smallsetminus"),$(Z,ae,jt,"\u22D2","\\Cap",!0),$(Z,ae,jt,"\u22D3","\\Cup",!0),$(Z,ae,jt,"\u2A5E","\\doublebarwedge",!0),$(Z,ae,jt,"\u229F","\\boxminus",!0),$(Z,ae,jt,"\u229E","\\boxplus",!0),$(Z,ae,jt,"\u22C7","\\divideontimes",!0),$(Z,ae,jt,"\u22C9","\\ltimes",!0),$(Z,ae,jt,"\u22CA","\\rtimes",!0),$(Z,ae,jt,"\u22CB","\\leftthreetimes",!0),$(Z,ae,jt,"\u22CC","\\rightthreetimes",!0),$(Z,ae,jt,"\u22CF","\\curlywedge",!0),$(Z,ae,jt,"\u22CE","\\curlyvee",!0),$(Z,ae,jt,"\u229D","\\circleddash",!0),$(Z,ae,jt,"\u229B","\\circledast",!0),$(Z,ae,jt,"\u22C5","\\centerdot"),$(Z,ae,jt,"\u22BA","\\intercal",!0),$(Z,ae,jt,"\u22D2","\\doublecap"),$(Z,ae,jt,"\u22D3","\\doublecup"),$(Z,ae,jt,"\u22A0","\\boxtimes",!0),$(Z,ae,$t,"\u21E2","\\dashrightarrow",!0),$(Z,ae,$t,"\u21E0","\\dashleftarrow",!0),$(Z,ae,$t,"\u21C7","\\leftleftarrows",!0),$(Z,ae,$t,"\u21C6","\\leftrightarrows",!0),$(Z,ae,$t,"\u21DA","\\Lleftarrow",!0),$(Z,ae,$t,"\u219E","\\twoheadleftarrow",!0),$(Z,ae,$t,"\u21A2","\\leftarrowtail",!0),$(Z,ae,$t,"\u21AB","\\looparrowleft",!0),$(Z,ae,$t,"\u21CB","\\leftrightharpoons",!0),$(Z,ae,$t,"\u21B6","\\curvearrowleft",!0),$(Z,ae,$t,"\u21BA","\\circlearrowleft",!0),$(Z,ae,$t,"\u21B0","\\Lsh",!0),$(Z,ae,$t,"\u21C8","\\upuparrows",!0),$(Z,ae,$t,"\u21BF","\\upharpoonleft",!0),$(Z,ae,$t,"\u21C3","\\downharpoonleft",!0),$(Z,ae,$t,"\u22B8","\\multimap",!0),$(Z,ae,$t,"\u21AD","\\leftrightsquigarrow",!0),$(Z,ae,$t,"\u21C9","\\rightrightarrows",!0),$(Z,ae,$t,"\u21C4","\\rightleftarrows",!0),$(Z,ae,$t,"\u21A0","\\twoheadrightarrow",!0),$(Z,ae,$t,"\u21A3","\\rightarrowtail",!0),$(Z,ae,$t,"\u21AC","\\looparrowright",!0),$(Z,ae,$t,"\u21B7","\\curvearrowright",!0),$(Z,ae,$t,"\u21BB","\\circlearrowright",!0),$(Z,ae,$t,"\u21B1","\\Rsh",!0),$(Z,ae,$t,"\u21CA","\\downdownarrows",!0),$(Z,ae,$t,"\u21BE","\\upharpoonright",!0),$(Z,ae,$t,"\u21C2","\\downharpoonright",!0),$(Z,ae,$t,"\u21DD","\\rightsquigarrow",!0),$(Z,ae,$t,"\u21DD","\\leadsto"),$(Z,ae,$t,"\u21DB","\\Rrightarrow",!0),$(Z,ae,$t,"\u21BE","\\restriction"),$(Z,De,ft,"\u2018","`"),$(Z,De,ft,"$","\\$"),$(Re,De,ft,"$","\\$"),$(Re,De,ft,"$","\\textdollar"),$(Z,De,ft,"%","\\%"),$(Re,De,ft,"%","\\%"),$(Z,De,ft,"_","\\_"),$(Re,De,ft,"_","\\_"),$(Re,De,ft,"_","\\textunderscore"),$(Z,De,ft,"\u2220","\\angle",!0),$(Z,De,ft,"\u221E","\\infty",!0),$(Z,De,ft,"\u2032","\\prime"),$(Z,De,ft,"\u25B3","\\triangle"),$(Z,De,ft,"\u0393","\\Gamma",!0),$(Z,De,ft,"\u0394","\\Delta",!0),$(Z,De,ft,"\u0398","\\Theta",!0),$(Z,De,ft,"\u039B","\\Lambda",!0),$(Z,De,ft,"\u039E","\\Xi",!0),$(Z,De,ft,"\u03A0","\\Pi",!0),$(Z,De,ft,"\u03A3","\\Sigma",!0),$(Z,De,ft,"\u03A5","\\Upsilon",!0),$(Z,De,ft,"\u03A6","\\Phi",!0),$(Z,De,ft,"\u03A8","\\Psi",!0),$(Z,De,ft,"\u03A9","\\Omega",!0),$(Z,De,ft,"A","\u0391"),$(Z,De,ft,"B","\u0392"),$(Z,De,ft,"E","\u0395"),$(Z,De,ft,"Z","\u0396"),$(Z,De,ft,"H","\u0397"),$(Z,De,ft,"I","\u0399"),$(Z,De,ft,"K","\u039A"),$(Z,De,ft,"M","\u039C"),$(Z,De,ft,"N","\u039D"),$(Z,De,ft,"O","\u039F"),$(Z,De,ft,"P","\u03A1"),$(Z,De,ft,"T","\u03A4"),$(Z,De,ft,"X","\u03A7"),$(Z,De,ft,"\xAC","\\neg",!0),$(Z,De,ft,"\xAC","\\lnot"),$(Z,De,ft,"\u22A4","\\top"),$(Z,De,ft,"\u22A5","\\bot"),$(Z,De,ft,"\u2205","\\emptyset"),$(Z,ae,ft,"\u2205","\\varnothing"),$(Z,De,pr,"\u03B1","\\alpha",!0),$(Z,De,pr,"\u03B2","\\beta",!0),$(Z,De,pr,"\u03B3","\\gamma",!0),$(Z,De,pr,"\u03B4","\\delta",!0),$(Z,De,pr,"\u03F5","\\epsilon",!0),$(Z,De,pr,"\u03B6","\\zeta",!0),$(Z,De,pr,"\u03B7","\\eta",!0),$(Z,De,pr,"\u03B8","\\theta",!0),$(Z,De,pr,"\u03B9","\\iota",!0),$(Z,De,pr,"\u03BA","\\kappa",!0),$(Z,De,pr,"\u03BB","\\lambda",!0),$(Z,De,pr,"\u03BC","\\mu",!0),$(Z,De,pr,"\u03BD","\\nu",!0),$(Z,De,pr,"\u03BE","\\xi",!0),$(Z,De,pr,"\u03BF","\\omicron",!0),$(Z,De,pr,"\u03C0","\\pi",!0),$(Z,De,pr,"\u03C1","\\rho",!0),$(Z,De,pr,"\u03C3","\\sigma",!0),$(Z,De,pr,"\u03C4","\\tau",!0),$(Z,De,pr,"\u03C5","\\upsilon",!0),$(Z,De,pr,"\u03D5","\\phi",!0),$(Z,De,pr,"\u03C7","\\chi",!0),$(Z,De,pr,"\u03C8","\\psi",!0),$(Z,De,pr,"\u03C9","\\omega",!0),$(Z,De,pr,"\u03B5","\\varepsilon",!0),$(Z,De,pr,"\u03D1","\\vartheta",!0),$(Z,De,pr,"\u03D6","\\varpi",!0),$(Z,De,pr,"\u03F1","\\varrho",!0),$(Z,De,pr,"\u03C2","\\varsigma",!0),$(Z,De,pr,"\u03C6","\\varphi",!0),$(Z,De,jt,"\u2217","*"),$(Z,De,jt,"+","+"),$(Z,De,jt,"\u2212","-"),$(Z,De,jt,"\u22C5","\\cdot",!0),$(Z,De,jt,"\u2218","\\circ"),$(Z,De,jt,"\xF7","\\div",!0),$(Z,De,jt,"\xB1","\\pm",!0),$(Z,De,jt,"\xD7","\\times",!0),$(Z,De,jt,"\u2229","\\cap",!0),$(Z,De,jt,"\u222A","\\cup",!0),$(Z,De,jt,"\u2216","\\setminus"),$(Z,De,jt,"\u2227","\\land"),$(Z,De,jt,"\u2228","\\lor"),$(Z,De,jt,"\u2227","\\wedge",!0),$(Z,De,jt,"\u2228","\\vee",!0),$(Z,De,ft,"\u221A","\\surd"),$(Z,De,mr,"(","("),$(Z,De,mr,"[","["),$(Z,De,mr,"\u27E8","\\langle",!0),$(Z,De,mr,"\u2223","\\lvert"),$(Z,De,mr,"\u2225","\\lVert"),$(Z,De,ut,")",")"),$(Z,De,ut,"]","]"),$(Z,De,ut,"?","?"),$(Z,De,ut,"!","!"),$(Z,De,ut,"\u27E9","\\rangle",!0),$(Z,De,ut,"\u2223","\\rvert"),$(Z,De,ut,"\u2225","\\rVert"),$(Z,De,$t,"=","="),$(Z,De,$t,"<","<"),$(Z,De,$t,">",">"),$(Z,De,$t,":",":"),$(Z,De,$t,"\u2248","\\approx",!0),$(Z,De,$t,"\u2245","\\cong",!0),$(Z,De,$t,"\u2265","\\ge"),$(Z,De,$t,"\u2265","\\geq",!0),$(Z,De,$t,"\u2190","\\gets"),$(Z,De,$t,">","\\gt"),$(Z,De,$t,"\u2208","\\in",!0),$(Z,De,$t,"\uE020","\\@not"),$(Z,De,$t,"\u2282","\\subset",!0),$(Z,De,$t,"\u2283","\\supset",!0),$(Z,De,$t,"\u2286","\\subseteq",!0),$(Z,De,$t,"\u2287","\\supseteq",!0),$(Z,ae,$t,"\u2288","\\nsubseteq",!0),$(Z,ae,$t,"\u2289","\\nsupseteq",!0),$(Z,De,$t,"\u22A8","\\models"),$(Z,De,$t,"\u2190","\\leftarrow",!0),$(Z,De,$t,"\u2264","\\le"),$(Z,De,$t,"\u2264","\\leq",!0),$(Z,De,$t,"<","\\lt"),$(Z,De,$t,"\u2192","\\rightarrow",!0),$(Z,De,$t,"\u2192","\\to"),$(Z,ae,$t,"\u2271","\\ngeq",!0),$(Z,ae,$t,"\u2270","\\nleq",!0),$(Z,De,Xt,"\xA0","\\ "),$(Z,De,Xt,"\xA0","~"),$(Z,De,Xt,"\xA0","\\space"),$(Z,De,Xt,"\xA0","\\nobreakspace"),$(Re,De,Xt,"\xA0","\\ "),$(Re,De,Xt,"\xA0","~"),$(Re,De,Xt,"\xA0","\\space"),$(Re,De,Xt,"\xA0","\\nobreakspace"),$(Z,De,Xt,null,"\\nobreak"),$(Z,De,Xt,null,"\\allowbreak"),$(Z,De,vr,",",","),$(Z,De,vr,";",";"),$(Z,ae,jt,"\u22BC","\\barwedge",!0),$(Z,ae,jt,"\u22BB","\\veebar",!0),$(Z,De,jt,"\u2299","\\odot",!0),$(Z,De,jt,"\u2295","\\oplus",!0),$(Z,De,jt,"\u2297","\\otimes",!0),$(Z,De,ft,"\u2202","\\partial",!0),$(Z,De,jt,"\u2298","\\oslash",!0),$(Z,ae,jt,"\u229A","\\circledcirc",!0),$(Z,ae,jt,"\u22A1","\\boxdot",!0),$(Z,De,jt,"\u25B3","\\bigtriangleup"),$(Z,De,jt,"\u25BD","\\bigtriangledown"),$(Z,De,jt,"\u2020","\\dagger"),$(Z,De,jt,"\u22C4","\\diamond"),$(Z,De,jt,"\u22C6","\\star"),$(Z,De,jt,"\u25C3","\\triangleleft"),$(Z,De,jt,"\u25B9","\\triangleright"),$(Z,De,mr,"{","\\{"),$(Re,De,ft,"{","\\{"),$(Re,De,ft,"{","\\textbraceleft"),$(Z,De,ut,"}","\\}"),$(Re,De,ft,"}","\\}"),$(Re,De,ft,"}","\\textbraceright"),$(Z,De,mr,"{","\\lbrace"),$(Z,De,ut,"}","\\rbrace"),$(Z,De,mr,"[","\\lbrack"),$(Re,De,ft,"[","\\lbrack"),$(Z,De,ut,"]","\\rbrack"),$(Re,De,ft,"]","\\rbrack"),$(Z,De,mr,"(","\\lparen"),$(Z,De,ut,")","\\rparen"),$(Re,De,ft,"<","\\textless"),$(Re,De,ft,">","\\textgreater"),$(Z,De,mr,"\u230A","\\lfloor",!0),$(Z,De,ut,"\u230B","\\rfloor",!0),$(Z,De,mr,"\u2308","\\lceil",!0),$(Z,De,ut,"\u2309","\\rceil",!0),$(Z,De,ft,"\\","\\backslash"),$(Z,De,ft,"\u2223","|"),$(Z,De,ft,"\u2223","\\vert"),$(Re,De,ft,"|","\\textbar"),$(Z,De,ft,"\u2225","\\|"),$(Z,De,ft,"\u2225","\\Vert"),$(Re,De,ft,"\u2225","\\textbardbl"),$(Re,De,ft,"~","\\textasciitilde"),$(Re,De,ft,"\\","\\textbackslash"),$(Re,De,ft,"^","\\textasciicircum"),$(Z,De,$t,"\u2191","\\uparrow",!0),$(Z,De,$t,"\u21D1","\\Uparrow",!0),$(Z,De,$t,"\u2193","\\downarrow",!0),$(Z,De,$t,"\u21D3","\\Downarrow",!0),$(Z,De,$t,"\u2195","\\updownarrow",!0),$(Z,De,$t,"\u21D5","\\Updownarrow",!0),$(Z,De,nn,"\u2210","\\coprod"),$(Z,De,nn,"\u22C1","\\bigvee"),$(Z,De,nn,"\u22C0","\\bigwedge"),$(Z,De,nn,"\u2A04","\\biguplus"),$(Z,De,nn,"\u22C2","\\bigcap"),$(Z,De,nn,"\u22C3","\\bigcup"),$(Z,De,nn,"\u222B","\\int"),$(Z,De,nn,"\u222B","\\intop"),$(Z,De,nn,"\u222C","\\iint"),$(Z,De,nn,"\u222D","\\iiint"),$(Z,De,nn,"\u220F","\\prod"),$(Z,De,nn,"\u2211","\\sum"),$(Z,De,nn,"\u2A02","\\bigotimes"),$(Z,De,nn,"\u2A01","\\bigoplus"),$(Z,De,nn,"\u2A00","\\bigodot"),$(Z,De,nn,"\u222E","\\oint"),$(Z,De,nn,"\u222F","\\oiint"),$(Z,De,nn,"\u2230","\\oiiint"),$(Z,De,nn,"\u2A06","\\bigsqcup"),$(Z,De,nn,"\u222B","\\smallint"),$(Re,De,rr,"\u2026","\\textellipsis"),$(Z,De,rr,"\u2026","\\mathellipsis"),$(Re,De,rr,"\u2026","\\ldots",!0),$(Z,De,rr,"\u2026","\\ldots",!0),$(Z,De,rr,"\u22EF","\\@cdots",!0),$(Z,De,rr,"\u22F1","\\ddots",!0),$(Z,De,ft,"\u22EE","\\varvdots"),$(Z,De,gt,"\u02CA","\\acute"),$(Z,De,gt,"\u02CB","\\grave"),$(Z,De,gt,"\xA8","\\ddot"),$(Z,De,gt,"~","\\tilde"),$(Z,De,gt,"\u02C9","\\bar"),$(Z,De,gt,"\u02D8","\\breve"),$(Z,De,gt,"\u02C7","\\check"),$(Z,De,gt,"^","\\hat"),$(Z,De,gt,"\u20D7","\\vec"),$(Z,De,gt,"\u02D9","\\dot"),$(Z,De,gt,"\u02DA","\\mathring"),$(Z,De,pr,"\u0131","\\imath",!0),$(Z,De,pr,"\u0237","\\jmath",!0),$(Re,De,ft,"\u0131","\\i",!0),$(Re,De,ft,"\u0237","\\j",!0),$(Re,De,ft,"\xDF","\\ss",!0),$(Re,De,ft,"\xE6","\\ae",!0),$(Re,De,ft,"\xE6","\\ae",!0),$(Re,De,ft,"\u0153","\\oe",!0),$(Re,De,ft,"\xF8","\\o",!0),$(Re,De,ft,"\xC6","\\AE",!0),$(Re,De,ft,"\u0152","\\OE",!0),$(Re,De,ft,"\xD8","\\O",!0),$(Re,De,gt,"\u02CA","\\'"),$(Re,De,gt,"\u02CB","\\`"),$(Re,De,gt,"\u02C6","\\^"),$(Re,De,gt,"\u02DC","\\~"),$(Re,De,gt,"\u02C9","\\="),$(Re,De,gt,"\u02D8","\\u"),$(Re,De,gt,"\u02D9","\\."),$(Re,De,gt,"\u02DA","\\r"),$(Re,De,gt,"\u02C7","\\v"),$(Re,De,gt,"\xA8",'\\"'),$(Re,De,gt,"\u02DD","\\H"),$(Re,De,gt,"\u25EF","\\textcircled");var Ur={"--":!0,"---":!0,"``":!0,"''":!0};$(Re,De,ft,"\u2013","--"),$(Re,De,ft,"\u2013","\\textendash"),$(Re,De,ft,"\u2014","---"),$(Re,De,ft,"\u2014","\\textemdash"),$(Re,De,ft,"\u2018","`"),$(Re,De,ft,"\u2018","\\textquoteleft"),$(Re,De,ft,"\u2019","'"),$(Re,De,ft,"\u2019","\\textquoteright"),$(Re,De,ft,"\u201C","``"),$(Re,De,ft,"\u201C","\\textquotedblleft"),$(Re,De,ft,"\u201D","''"),$(Re,De,ft,"\u201D","\\textquotedblright"),$(Z,De,ft,"\xB0","\\degree",!0),$(Re,De,ft,"\xB0","\\degree"),$(Re,De,ft,"\xB0","\\textdegree",!0),$(Z,De,pr,"\xA3","\\pounds"),$(Z,De,pr,"\xA3","\\mathsterling",!0),$(Re,De,pr,"\xA3","\\pounds"),$(Re,De,pr,"\xA3","\\textsterling",!0),$(Z,ae,ft,"\u2720","\\maltese"),$(Re,ae,ft,"\u2720","\\maltese"),$(Re,De,Xt,"\xA0","\\ "),$(Re,De,Xt,"\xA0"," "),$(Re,De,Xt,"\xA0","~");for(var yn='0123456789/@."',Dn=0;Dn<yn.length;Dn++){var Un=yn.charAt(Dn);$(Z,De,ft,Un,Un)}for(var wi='0123456789!@*()-=+[]<>|";:?/.,',Rn=0;Rn<wi.length;Rn++){var kn=wi.charAt(Rn);$(Re,De,ft,kn,kn)}for(var Vn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Gt=0;Gt<Vn.length;Gt++){var st=Vn.charAt(Gt);$(Z,De,pr,st,st),$(Re,De,ft,st,st)}$(Z,ae,ft,"C","\u2102"),$(Re,ae,ft,"C","\u2102"),$(Z,ae,ft,"H","\u210D"),$(Re,ae,ft,"H","\u210D"),$(Z,ae,ft,"N","\u2115"),$(Re,ae,ft,"N","\u2115"),$(Z,ae,ft,"P","\u2119"),$(Re,ae,ft,"P","\u2119"),$(Z,ae,ft,"Q","\u211A"),$(Re,ae,ft,"Q","\u211A"),$(Z,ae,ft,"R","\u211D"),$(Re,ae,ft,"R","\u211D"),$(Z,ae,ft,"Z","\u2124"),$(Re,ae,ft,"Z","\u2124"),$(Z,De,pr,"h","\u210E"),$(Re,De,pr,"h","\u210E");for(var ue="",Ee=0;Ee<Vn.length;Ee++){var je=Vn.charAt(Ee);ue=String.fromCharCode(55349,56320+Ee),$(Z,De,pr,je,ue),$(Re,De,ft,je,ue),ue=String.fromCharCode(55349,56372+Ee),$(Z,De,pr,je,ue),$(Re,De,ft,je,ue),ue=String.fromCharCode(55349,56424+Ee),$(Z,De,pr,je,ue),$(Re,De,ft,je,ue),ue=String.fromCharCode(55349,56580+Ee),$(Z,De,pr,je,ue),$(Re,De,ft,je,ue),ue=String.fromCharCode(55349,56736+Ee),$(Z,De,pr,je,ue),$(Re,De,ft,je,ue),ue=String.fromCharCode(55349,56788+Ee),$(Z,De,pr,je,ue),$(Re,De,ft,je,ue),ue=String.fromCharCode(55349,56840+Ee),$(Z,De,pr,je,ue),$(Re,De,ft,je,ue),ue=String.fromCharCode(55349,56944+Ee),$(Z,De,pr,je,ue),$(Re,De,ft,je,ue),Ee<26&&(ue=String.fromCharCode(55349,56632+Ee),$(Z,De,pr,je,ue),$(Re,De,ft,je,ue),ue=String.fromCharCode(55349,56476+Ee),$(Z,De,pr,je,ue),$(Re,De,ft,je,ue))}ue=String.fromCharCode(55349,56668),$(Z,De,pr,"k",ue),$(Re,De,ft,"k",ue);for(var Ve=0;Ve<10;Ve++){var $e=Ve.toString();ue=String.fromCharCode(55349,57294+Ve),$(Z,De,pr,$e,ue),$(Re,De,ft,$e,ue),ue=String.fromCharCode(55349,57314+Ve),$(Z,De,pr,$e,ue),$(Re,De,ft,$e,ue),ue=String.fromCharCode(55349,57324+Ve),$(Z,De,pr,$e,ue),$(Re,De,ft,$e,ue),ue=String.fromCharCode(55349,57334+Ve),$(Z,De,pr,$e,ue),$(Re,De,ft,$e,ue)}for(var wt="\xC7\xD0\xDE\xE7\xFE",qt=0;qt<wt.length;qt++){var Mr=wt.charAt(qt);$(Z,De,pr,Mr,Mr),$(Re,De,ft,Mr,Mr)}$(Re,De,ft,"\xF0","\xF0"),$(Re,De,ft,"\u2013","\u2013"),$(Re,De,ft,"\u2014","\u2014"),$(Re,De,ft,"\u2018","\u2018"),$(Re,De,ft,"\u2019","\u2019"),$(Re,De,ft,"\u201C","\u201C"),$(Re,De,ft,"\u201D","\u201D");var an=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathdefault","textit","Math-Italic"],["mathdefault","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],_t=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],at=function(se,ge){var Se=se.charCodeAt(0),We=se.charCodeAt(1),vt=(Se-55296)*1024+(We-56320)+65536,Yt=ge==="math"?0:1;if(119808<=vt&&vt<120484){var Rr=Math.floor((vt-119808)/26);return[an[Rr][2],an[Rr][Yt]]}else if(120782<=vt&&vt<=120831){var Yr=Math.floor((vt-120782)/10);return[_t[Yr][2],_t[Yr][Yt]]}else{if(vt===120485||vt===120486)return[an[0][2],an[0][Yt]];if(120486<vt&&vt<120782)return["",""];throw new c("Unsupported character: "+se)}},bt=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],kt=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Pt=function(se,ge){return ge.size<2?se:bt[se-1][ge.size-1]},Et=function(){function At(ge){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=ge.style,this.color=ge.color,this.size=ge.size||At.BASESIZE,this.textSize=ge.textSize||this.size,this.phantom=!!ge.phantom,this.font=ge.font||"",this.fontFamily=ge.fontFamily||"",this.fontWeight=ge.fontWeight||"",this.fontShape=ge.fontShape||"",this.sizeMultiplier=kt[this.size-1],this.maxSize=ge.maxSize,this.minRuleThickness=ge.minRuleThickness,this._fontMetrics=void 0}var se=At.prototype;return se.extend=function(Se){var We={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var vt in Se)Se.hasOwnProperty(vt)&&(We[vt]=Se[vt]);return new At(We)},se.havingStyle=function(Se){return this.style===Se?this:this.extend({style:Se,size:Pt(this.textSize,Se)})},se.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},se.havingSize=function(Se){return this.size===Se&&this.textSize===Se?this:this.extend({style:this.style.text(),size:Se,textSize:Se,sizeMultiplier:kt[Se-1]})},se.havingBaseStyle=function(Se){Se=Se||this.style.text();var We=Pt(At.BASESIZE,Se);return this.size===We&&this.textSize===At.BASESIZE&&this.style===Se?this:this.extend({style:Se,size:We})},se.havingBaseSizing=function(){var Se;switch(this.style.id){case 4:case 5:Se=3;break;case 6:case 7:Se=1;break;default:Se=6}return this.extend({style:this.style.text(),size:Se})},se.withColor=function(Se){return this.extend({color:Se})},se.withPhantom=function(){return this.extend({phantom:!0})},se.withFont=function(Se){return this.extend({font:Se})},se.withTextFontFamily=function(Se){return this.extend({fontFamily:Se,font:""})},se.withTextFontWeight=function(Se){return this.extend({fontWeight:Se,font:""})},se.withTextFontShape=function(Se){return this.extend({fontShape:Se,font:""})},se.sizingClasses=function(Se){return Se.size!==this.size?["sizing","reset-size"+Se.size,"size"+this.size]:[]},se.baseSizingClasses=function(){return this.size!==At.BASESIZE?["sizing","reset-size"+this.size,"size"+At.BASESIZE]:[]},se.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=Ot(this.size)),this._fontMetrics},se.getColor=function(){return this.phantom?"transparent":this.color},At}();Et.BASESIZE=6;var Ht=Et,ot={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Mt={ex:!0,em:!0,mu:!0},xr=function(se){return typeof se!="string"&&(se=se.unit),se in ot||se in Mt||se==="ex"},ur=function(se,ge){var Se;if(se.unit in ot)Se=ot[se.unit]/ge.fontMetrics().ptPerEm/ge.sizeMultiplier;else if(se.unit==="mu")Se=ge.fontMetrics().cssEmPerMu;else{var We;if(ge.style.isTight()?We=ge.havingStyle(ge.style.text()):We=ge,se.unit==="ex")Se=We.fontMetrics().xHeight;else if(se.unit==="em")Se=We.fontMetrics().quad;else throw new c("Invalid unit: '"+se.unit+"'");We!==ge&&(Se*=We.sizeMultiplier/ge.sizeMultiplier)}return Math.min(se.number*Se,ge.maxSize)},gr=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],Qr=function(se,ge,Se){return Be[Se][se]&&Be[Se][se].replace&&(se=Be[Se][se].replace),{value:se,metrics:ze(se,ge,Se)}},ln=function(se,ge,Se,We,vt){var Yt=Qr(se,ge,Se),Rr=Yt.metrics;se=Yt.value;var Yr;if(Rr){var mn=Rr.italic;(Se==="text"||We&&We.font==="mathit")&&(mn=0),Yr=new Me(se,Rr.height,Rr.depth,mn,Rr.skew,Rr.width,vt)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+se+"' in style '"+ge+"' and mode '"+Se+"'")),Yr=new Me(se,0,0,0,0,0,vt);if(We){Yr.maxFontSize=We.sizeMultiplier,We.style.isTight()&&Yr.classes.push("mtight");var Wn=We.getColor();Wn&&(Yr.style.color=Wn)}return Yr},_n=function(se,ge,Se,We){return We===void 0&&(We=[]),Se.font==="boldsymbol"&&Qr(se,"Main-Bold",ge).metrics?ln(se,"Main-Bold",ge,Se,We.concat(["mathbf"])):se==="\\"||Be[ge][se].font==="main"?ln(se,"Main-Regular",ge,Se,We):ln(se,"AMS-Regular",ge,Se,We.concat(["amsrm"]))},Mn=function(se,ge,Se,We){return/[0-9]/.test(se.charAt(0))||p.contains(gr,se)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},li=function(se,ge,Se,We){return p.contains(gr,se)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(se.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},ai=function(se,ge,Se,We){return Qr(se,"Math-BoldItalic",ge).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},pi=function(se,ge,Se){var We=se.mode,vt=se.text,Yt=["mord"],Rr=We==="math"||We==="text"&&ge.font,Yr=Rr?ge.font:ge.fontFamily;if(vt.charCodeAt(0)===55349){var mn=at(vt,We),Wn=mn[0],Jn=mn[1];return ln(vt,Wn,We,ge,Yt.concat(Jn))}else if(Yr){var ri,Ii;if(Yr==="boldsymbol"||Yr==="mathnormal"){var Yi=Yr==="boldsymbol"?ai(vt,We,ge,Yt):li(vt,We,ge,Yt);ri=Yi.fontName,Ii=[Yi.fontClass]}else p.contains(gr,vt)?(ri="Main-Italic",Ii=["mathit"]):Rr?(ri=Xr[Yr].fontName,Ii=[Yr]):(ri=_r(Yr,ge.fontWeight,ge.fontShape),Ii=[Yr,ge.fontWeight,ge.fontShape]);if(Qr(vt,ri,We).metrics)return ln(vt,ri,We,ge,Yt.concat(Ii));if(Ur.hasOwnProperty(vt)&&ri.substr(0,10)==="Typewriter"){for(var ma=[],Ta=0;Ta<vt.length;Ta++)ma.push(ln(vt[Ta],ri,We,ge,Yt.concat(Ii)));return qe(ma)}}if(Se==="mathord"){var uo=Mn(vt,We,ge,Yt);return ln(vt,uo.fontName,We,ge,Yt.concat([uo.fontClass]))}else if(Se==="textord"){var bo=Be[We][vt]&&Be[We][vt].font;if(bo==="ams"){var co=_r("amsrm",ge.fontWeight,ge.fontShape);return ln(vt,co,We,ge,Yt.concat("amsrm",ge.fontWeight,ge.fontShape))}else if(bo==="main"||!bo){var Zo=_r("textrm",ge.fontWeight,ge.fontShape);return ln(vt,Zo,We,ge,Yt.concat(ge.fontWeight,ge.fontShape))}else{var Oo=_r(bo,ge.fontWeight,ge.fontShape);return ln(vt,Oo,We,ge,Yt.concat(Oo,ge.fontWeight,ge.fontShape))}}else throw new Error("unexpected type: "+Se+" in makeOrd")},Oi=function(se,ge){if(me(se.classes)!==me(ge.classes)||se.skew!==ge.skew||se.maxFontSize!==ge.maxFontSize)return!1;for(var Se in se.style)if(se.style.hasOwnProperty(Se)&&se.style[Se]!==ge.style[Se])return!1;for(var We in ge.style)if(ge.style.hasOwnProperty(We)&&se.style[We]!==ge.style[We])return!1;return!0},Ze=function(se){for(var ge=0;ge<se.length-1;ge++){var Se=se[ge],We=se[ge+1];Se instanceof Me&&We instanceof Me&&Oi(Se,We)&&(Se.text+=We.text,Se.height=Math.max(Se.height,We.height),Se.depth=Math.max(Se.depth,We.depth),Se.italic=We.italic,se.splice(ge+1,1),ge--)}return se},be=function(se){for(var ge=0,Se=0,We=0,vt=0;vt<se.children.length;vt++){var Yt=se.children[vt];Yt.height>ge&&(ge=Yt.height),Yt.depth>Se&&(Se=Yt.depth),Yt.maxFontSize>We&&(We=Yt.maxFontSize)}se.height=ge,se.depth=Se,se.maxFontSize=We},Ne=function(se,ge,Se,We){var vt=new X(se,ge,Se,We);return be(vt),vt},Ue=function(se,ge,Se,We){return new X(se,ge,Se,We)},Qe=function(se,ge,Se){var We=Ne([se],[],ge);return We.height=Math.max(Se||ge.fontMetrics().defaultRuleThickness,ge.minRuleThickness),We.style.borderBottomWidth=We.height+"em",We.maxFontSize=1,We},Xe=function(se,ge,Se,We){var vt=new J(se,ge,Se,We);return be(vt),vt},qe=function(se){var ge=new Q(se);return be(ge),ge},yt=function(se,ge){return se instanceof Q?Ne([],[se],ge):se},ht=function(se){if(se.positionType==="individualShift"){for(var ge=se.children,Se=[ge[0]],We=-ge[0].shift-ge[0].elem.depth,vt=We,Yt=1;Yt<ge.length;Yt++){var Rr=-ge[Yt].shift-vt-ge[Yt].elem.depth,Yr=Rr-(ge[Yt-1].elem.height+ge[Yt-1].elem.depth);vt=vt+Rr,Se.push({type:"kern",size:Yr}),Se.push(ge[Yt])}return{children:Se,depth:We}}var mn;if(se.positionType==="top"){for(var Wn=se.positionData,Jn=0;Jn<se.children.length;Jn++){var ri=se.children[Jn];Wn-=ri.type==="kern"?ri.size:ri.elem.height+ri.elem.depth}mn=Wn}else if(se.positionType==="bottom")mn=-se.positionData;else{var Ii=se.children[0];if(Ii.type!=="elem")throw new Error('First child must have type "elem".');if(se.positionType==="shift")mn=-Ii.elem.depth-se.positionData;else if(se.positionType==="firstBaseline")mn=-Ii.elem.depth;else throw new Error("Invalid positionType "+se.positionType+".")}return{children:se.children,depth:mn}},Jt=function(se,ge){for(var Se=ht(se),We=Se.children,vt=Se.depth,Yt=0,Rr=0;Rr<We.length;Rr++){var Yr=We[Rr];if(Yr.type==="elem"){var mn=Yr.elem;Yt=Math.max(Yt,mn.maxFontSize,mn.height)}}Yt+=2;var Wn=Ne(["pstrut"],[]);Wn.style.height=Yt+"em";for(var Jn=[],ri=vt,Ii=vt,Yi=vt,ma=0;ma<We.length;ma++){var Ta=We[ma];if(Ta.type==="kern")Yi+=Ta.size;else{var uo=Ta.elem,bo=Ta.wrapperClasses||[],co=Ta.wrapperStyle||{},Zo=Ne(bo,[Wn,uo],void 0,co);Zo.style.top=-Yt-Yi-uo.depth+"em",Ta.marginLeft&&(Zo.style.marginLeft=Ta.marginLeft),Ta.marginRight&&(Zo.style.marginRight=Ta.marginRight),Jn.push(Zo),Yi+=uo.height+uo.depth}ri=Math.min(ri,Yi),Ii=Math.max(Ii,Yi)}var Oo=Ne(["vlist"],Jn);Oo.style.height=Ii+"em";var Do;if(ri<0){var Ha=Ne([],[]),Ya=Ne(["vlist"],[Ha]);Ya.style.height=-ri+"em";var ps=Ne(["vlist-s"],[new Me("\u200B")]);Do=[Ne(["vlist-r"],[Oo,ps]),Ne(["vlist-r"],[Ya])]}else Do=[Ne(["vlist-r"],[Oo])];var ts=Ne(["vlist-t"],Do);return Do.length===2&&ts.classes.push("vlist-t2"),ts.height=Ii,ts.depth=-ri,ts},kr=function(se,ge){var Se=Ne(["mspace"],[],ge),We=ur(se,ge);return Se.style.marginRight=We+"em",Se},_r=function(se,ge,Se){var We="";switch(se){case"amsrm":We="AMS";break;case"textrm":We="Main";break;case"textsf":We="SansSerif";break;case"texttt":We="Typewriter";break;default:We=se}var vt;return ge==="textbf"&&Se==="textit"?vt="BoldItalic":ge==="textbf"?vt="Bold":ge==="textit"?vt="Italic":vt="Regular",We+"-"+vt},Xr={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Bt={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},gn=function(se,ge){var Se=Bt[se],We=Se[0],vt=Se[1],Yt=Se[2],Rr=new oe(We),Yr=new Ie([Rr],{width:vt+"em",height:Yt+"em",style:"width:"+vt+"em",viewBox:"0 0 "+1e3*vt+" "+1e3*Yt,preserveAspectRatio:"xMinYMin"}),mn=Ue(["overlay"],[Yr],ge);return mn.height=Yt,mn.style.height=Yt+"em",mn.style.width=vt+"em",mn},hr={fontMap:Xr,makeSymbol:ln,mathsym:_n,makeSpan:Ne,makeSvgSpan:Ue,makeLineSpan:Qe,makeAnchor:Xe,makeFragment:qe,wrapFragment:yt,makeVList:Jt,makeOrd:pi,makeGlue:kr,staticSvg:gn,svgData:Bt,tryCombineChars:Ze};function vn(At,se){var ge=en(At,se);if(!ge)throw new Error("Expected node of type "+se+", but got "+(At?"node of type "+At.type:String(At)));return ge}function en(At,se){return At&&At.type===se?At:null}function Dt(At,se){var ge=jr(At,se);if(!ge)throw new Error('Expected node of type "atom" and family "'+se+'", but got '+(At?At.type==="atom"?"atom of family "+At.family:"node of type "+At.type:String(At)));return ge}function jr(At,se){return At&&At.type==="atom"&&At.family===se?At:null}function un(At){var se=Hr(At);if(!se)throw new Error("Expected node of symbol group type, but got "+(At?"node of type "+At.type:String(At)));return se}function Hr(At){return At&&(At.type==="atom"||Ct.hasOwnProperty(At.type))?At:null}var Wt={number:3,unit:"mu"},wr={number:4,unit:"mu"},fn={number:5,unit:"mu"},zt={mord:{mop:Wt,mbin:wr,mrel:fn,minner:Wt},mop:{mord:Wt,mop:Wt,mrel:fn,minner:Wt},mbin:{mord:wr,mop:wr,mopen:wr,minner:wr},mrel:{mord:fn,mop:fn,mopen:fn,minner:fn},mopen:{},mclose:{mop:Wt,mbin:wr,mrel:fn,minner:Wt},mpunct:{mord:Wt,mop:Wt,mrel:fn,mopen:Wt,mclose:Wt,mpunct:Wt,minner:Wt},minner:{mord:Wt,mop:Wt,mbin:wr,mrel:fn,mopen:Wt,mpunct:Wt,minner:Wt}},Dr={mord:{mop:Wt},mop:{mord:Wt,mop:Wt},mbin:{},mrel:{},mopen:{},mclose:{mop:Wt},mpunct:{},minner:{mop:Wt}},ir={},Lt={},Qt={};function It(At){for(var se=At.type,ge=At.names,Se=At.props,We=At.handler,vt=At.htmlBuilder,Yt=At.mathmlBuilder,Rr={type:se,numArgs:Se.numArgs,argTypes:Se.argTypes,greediness:Se.greediness===void 0?1:Se.greediness,allowedInText:!!Se.allowedInText,allowedInMath:Se.allowedInMath===void 0?!0:Se.allowedInMath,numOptionalArgs:Se.numOptionalArgs||0,infix:!!Se.infix,handler:We},Yr=0;Yr<ge.length;++Yr)ir[ge[Yr]]=Rr;se&&(vt&&(Lt[se]=vt),Yt&&(Qt[se]=Yt))}function or(At){var se=At.type,ge=At.htmlBuilder,Se=At.mathmlBuilder;It({type:se,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:ge,mathmlBuilder:Se})}var Cr=function(se){var ge=en(se,"ordgroup");return ge?ge.body:[se]},Er=hr.makeSpan,Kr=["leftmost","mbin","mopen","mrel","mop","mpunct"],jn=["rightmost","mrel","mclose","mpunct"],Nn={display:K.DISPLAY,text:K.TEXT,script:K.SCRIPT,scriptscript:K.SCRIPTSCRIPT},ei={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Zr=function(se,ge,Se,We){We===void 0&&(We=[null,null]);for(var vt=[],Yt=0;Yt<se.length;Yt++){var Rr=ui(se[Yt],ge);if(Rr instanceof Q){var Yr=Rr.children;vt.push.apply(vt,Yr)}else vt.push(Rr)}if(!Se)return vt;var mn=ge;if(se.length===1){var Wn=en(se[0],"sizing")||en(se[0],"styling");Wn&&(Wn.type==="sizing"?mn=ge.havingSize(Wn.size):Wn.type==="styling"&&(mn=ge.havingStyle(Nn[Wn.style])))}var Jn=Er([We[0]||"leftmost"],[],ge),ri=Er([We[1]||"rightmost"],[],ge);return br(vt,function(Ii,Yi){var ma=Yi.classes[0],Ta=Ii.classes[0];ma==="mbin"&&p.contains(jn,Ta)?Yi.classes[0]="mord":Ta==="mbin"&&p.contains(Kr,ma)&&(Ii.classes[0]="mord")},{node:Jn},ri),br(vt,function(Ii,Yi){var ma=Fn(Yi),Ta=Fn(Ii),uo=ma&&Ta?Ii.hasClass("mtight")?Dr[ma][Ta]:zt[ma][Ta]:null;if(uo)return hr.makeGlue(uo,mn)},{node:Jn},ri),vt},br=function At(se,ge,Se,We){We&&se.push(We);for(var vt=0;vt<se.length;vt++){var Yt=se[vt],Rr=dn(Yt);if(Rr){At(Rr.children,ge,Se);continue}if(Yt.classes[0]==="mspace")continue;var Yr=ge(Yt,Se.node);Yr&&(Se.insertAfter?Se.insertAfter(Yr):(se.unshift(Yr),vt++)),Se.node=Yt,Se.insertAfter=function(mn){return function(Wn){se.splice(mn+1,0,Wn),vt++}}(vt)}We&&se.pop()},dn=function(se){return se instanceof Q||se instanceof J?se:null},Ln=function At(se,ge){var Se=dn(se);if(Se){var We=Se.children;if(We.length){if(ge==="right")return At(We[We.length-1],"right");if(ge==="left")return At(We[0],"left")}}return se},Fn=function(se,ge){return se?(ge&&(se=Ln(se,ge)),ei[se.classes[0]]||null):null},zn=function(se,ge){var Se=["nulldelimiter"].concat(se.baseSizingClasses());return Er(ge.concat(Se))},ui=function(se,ge,Se){if(!se)return Er();if(Lt[se.type]){var We=Lt[se.type](se,ge);if(Se&&ge.size!==Se.size){We=Er(ge.sizingClasses(Se),[We],ge);var vt=ge.sizeMultiplier/Se.sizeMultiplier;We.height*=vt,We.depth*=vt}return We}else throw new c("Got group of unknown type: '"+se.type+"'")};function ii(At,se){var ge=Er(["base"],At,se),Se=Er(["strut"]);return Se.style.height=ge.height+ge.depth+"em",Se.style.verticalAlign=-ge.depth+"em",ge.children.unshift(Se),ge}function qn(At,se){var ge=null;At.length===1&&At[0].type==="tag"&&(ge=At[0].tag,At=At[0].body);for(var Se=Zr(At,se,!0),We=[],vt=[],Yt=0;Yt<Se.length;Yt++)if(vt.push(Se[Yt]),Se[Yt].hasClass("mbin")||Se[Yt].hasClass("mrel")||Se[Yt].hasClass("allowbreak")){for(var Rr=!1;Yt<Se.length-1&&Se[Yt+1].hasClass("mspace")&&!Se[Yt+1].hasClass("newline");)Yt++,vt.push(Se[Yt]),Se[Yt].hasClass("nobreak")&&(Rr=!0);Rr||(We.push(ii(vt,se)),vt=[])}else Se[Yt].hasClass("newline")&&(vt.pop(),vt.length>0&&(We.push(ii(vt,se)),vt=[]),We.push(Se[Yt]));vt.length>0&&We.push(ii(vt,se));var Yr;ge&&(Yr=ii(Zr(ge,se,!0)),Yr.classes=["tag"],We.push(Yr));var mn=Er(["katex-html"],We);if(mn.setAttribute("aria-hidden","true"),Yr){var Wn=Yr.children[0];Wn.style.height=mn.height+mn.depth+"em",Wn.style.verticalAlign=-mn.depth+"em"}return mn}function Li(At){return new Q(At)}var zi=function(){function At(ge,Se){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=ge,this.attributes={},this.children=Se||[]}var se=At.prototype;return se.setAttribute=function(Se,We){this.attributes[Se]=We},se.getAttribute=function(Se){return this.attributes[Se]},se.toNode=function(){var Se=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var We in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,We)&&Se.setAttribute(We,this.attributes[We]);for(var vt=0;vt<this.children.length;vt++)Se.appendChild(this.children[vt].toNode());return Se},se.toMarkup=function(){var Se="<"+this.type;for(var We in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,We)&&(Se+=" "+We+'="',Se+=p.escape(this.attributes[We]),Se+='"');Se+=">";for(var vt=0;vt<this.children.length;vt++)Se+=this.children[vt].toMarkup();return Se+="</"+this.type+">",Se},se.toText=function(){return this.children.map(function(Se){return Se.toText()}).join("")},At}(),Ri=function(){function At(ge){this.text=void 0,this.text=ge}var se=At.prototype;return se.toNode=function(){return document.createTextNode(this.text)},se.toMarkup=function(){return p.escape(this.toText())},se.toText=function(){return this.text},At}(),ga=function(){function At(ge){this.width=void 0,this.character=void 0,this.width=ge,ge>=.05555&&ge<=.05556?this.character="\u200A":ge>=.1666&&ge<=.1667?this.character="\u2009":ge>=.2222&&ge<=.2223?this.character="\u2005":ge>=.2777&&ge<=.2778?this.character="\u2005\u200A":ge>=-.05556&&ge<=-.05555?this.character="\u200A\u2063":ge>=-.1667&&ge<=-.1666?this.character="\u2009\u2063":ge>=-.2223&&ge<=-.2222?this.character="\u205F\u2063":ge>=-.2778&&ge<=-.2777?this.character="\u2005\u2063":this.character=null}var se=At.prototype;return se.toNode=function(){if(this.character)return document.createTextNode(this.character);var Se=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return Se.setAttribute("width",this.width+"em"),Se},se.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},se.toText=function(){return this.character?this.character:" "},At}(),oi={MathNode:zi,TextNode:Ri,SpaceNode:ga,newDocumentFragment:Li},hn=function(se,ge,Se){return Be[ge][se]&&Be[ge][se].replace&&se.charCodeAt(0)!==55349&&!(Ur.hasOwnProperty(se)&&Se&&(Se.fontFamily&&Se.fontFamily.substr(4,2)==="tt"||Se.font&&Se.font.substr(4,2)==="tt"))&&(se=Be[ge][se].replace),new oi.TextNode(se)},Ei=function(se){return se.length===1?se[0]:new oi.MathNode("mrow",se)},Hi=function(se,ge){if(ge.fontFamily==="texttt")return"monospace";if(ge.fontFamily==="textsf")return ge.fontShape==="textit"&&ge.fontWeight==="textbf"?"sans-serif-bold-italic":ge.fontShape==="textit"?"sans-serif-italic":ge.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(ge.fontShape==="textit"&&ge.fontWeight==="textbf")return"bold-italic";if(ge.fontShape==="textit")return"italic";if(ge.fontWeight==="textbf")return"bold";var Se=ge.font;if(!Se||Se==="mathnormal")return null;var We=se.mode;if(Se==="mathit")return"italic";if(Se==="boldsymbol")return"bold-italic";if(Se==="mathbf")return"bold";if(Se==="mathbb")return"double-struck";if(Se==="mathfrak")return"fraktur";if(Se==="mathscr"||Se==="mathcal")return"script";if(Se==="mathsf")return"sans-serif";if(Se==="mathtt")return"monospace";var vt=se.text;if(p.contains(["\\imath","\\jmath"],vt))return null;Be[We][vt]&&Be[We][vt].replace&&(vt=Be[We][vt].replace);var Yt=hr.fontMap[Se].fontName;return ze(vt,Yt,We)?hr.fontMap[Se].variant:null},ki=function(se,ge,Se){if(se.length===1){var We=dr(se[0],ge);return Se&&We instanceof zi&&We.type==="mo"&&(We.setAttribute("lspace","0em"),We.setAttribute("rspace","0em")),[We]}for(var vt=[],Yt,Rr=0;Rr<se.length;Rr++){var Yr=dr(se[Rr],ge);if(Yr instanceof zi&&Yt instanceof zi){if(Yr.type==="mtext"&&Yt.type==="mtext"&&Yr.getAttribute("mathvariant")===Yt.getAttribute("mathvariant")){var mn;(mn=Yt.children).push.apply(mn,Yr.children);continue}else if(Yr.type==="mn"&&Yt.type==="mn"){var Wn;(Wn=Yt.children).push.apply(Wn,Yr.children);continue}else if(Yr.type==="mi"&&Yr.children.length===1&&Yt.type==="mn"){var Jn=Yr.children[0];if(Jn instanceof Ri&&Jn.text==="."){var ri;(ri=Yt.children).push.apply(ri,Yr.children);continue}}else if(Yt.type==="mi"&&Yt.children.length===1){var Ii=Yt.children[0];if(Ii instanceof Ri&&Ii.text==="\u0338"&&(Yr.type==="mo"||Yr.type==="mi"||Yr.type==="mn")){var Yi=Yr.children[0];Yi instanceof Ri&&Yi.text.length>0&&(Yi.text=Yi.text.slice(0,1)+"\u0338"+Yi.text.slice(1),vt.pop())}}}vt.push(Yr),Yt=Yr}return vt},ji=function(se,ge,Se){return Ei(ki(se,ge,Se))},dr=function(se,ge){if(!se)return new oi.MathNode("mrow");if(Qt[se.type]){var Se=Qt[se.type](se,ge);return Se}else throw new c("Got group of unknown type: '"+se.type+"'")};function sr(At,se,ge,Se){var We=ki(At,ge),vt;We.length===1&&We[0]instanceof zi&&p.contains(["mrow","mtable"],We[0].type)?vt=We[0]:vt=new oi.MathNode("mrow",We);var Yt=new oi.MathNode("annotation",[new oi.TextNode(se)]);Yt.setAttribute("encoding","application/x-tex");var Rr=new oi.MathNode("semantics",[vt,Yt]),Yr=new oi.MathNode("math",[Rr]);Yr.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var mn=Se?"katex":"katex-mathml";return hr.makeSpan([mn],[Yr])}var cn=function(se){return new Ht({style:se.displayMode?K.DISPLAY:K.TEXT,maxSize:se.maxSize,minRuleThickness:se.minRuleThickness})},Zt=function(se,ge){if(ge.displayMode){var Se=["katex-display"];ge.leqno&&Se.push("leqno"),ge.fleqn&&Se.push("fleqn"),se=hr.makeSpan(Se,[se])}return se},Ar=function(se,ge,Se){var We=cn(Se),vt;if(Se.output==="mathml")return sr(se,ge,We,!0);if(Se.output==="html"){var Yt=qn(se,We);vt=hr.makeSpan(["katex"],[Yt])}else{var Rr=sr(se,ge,We,!1),Yr=qn(se,We);vt=hr.makeSpan(["katex"],[Rr,Yr])}return Zt(vt,Se)},Nr=function(se,ge,Se){var We=cn(Se),vt=qn(se,We),Yt=hr.makeSpan(["katex"],[vt]);return Zt(Yt,Se)},tn=Ar,pn={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB"},St=function(se){var ge=new oi.MathNode("mo",[new oi.TextNode(pn[se.substr(1)])]);return ge.setAttribute("stretchy","true"),ge},cr={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},fr=function(se){return se.type==="ordgroup"?se.body.length:1},Br=function(se,ge){function Se(){var Yr=4e5,mn=se.label.substr(1);if(p.contains(["widehat","widecheck","widetilde","utilde"],mn)){var Wn=se,Jn=fr(Wn.base),ri,Ii,Yi;if(Jn>5)mn==="widehat"||mn==="widecheck"?(ri=420,Yr=2364,Yi=.42,Ii=mn+"4"):(ri=312,Yr=2340,Yi=.34,Ii="tilde4");else{var ma=[1,1,2,2,3,3][Jn];mn==="widehat"||mn==="widecheck"?(Yr=[0,1062,2364,2364,2364][ma],ri=[0,239,300,360,420][ma],Yi=[0,.24,.3,.3,.36,.42][ma],Ii=mn+ma):(Yr=[0,600,1033,2339,2340][ma],ri=[0,260,286,306,312][ma],Yi=[0,.26,.286,.3,.306,.34][ma],Ii="tilde"+ma)}var Ta=new oe(Ii),uo=new Ie([Ta],{width:"100%",height:Yi+"em",viewBox:"0 0 "+Yr+" "+ri,preserveAspectRatio:"none"});return{span:hr.makeSvgSpan([],[uo],ge),minWidth:0,height:Yi}}else{var bo=[],co=cr[mn],Zo=co[0],Oo=co[1],Do=co[2],Ha=Do/1e3,Ya=Zo.length,ps,ts;if(Ya===1){var $o=co[3];ps=["hide-tail"],ts=[$o]}else if(Ya===2)ps=["halfarrow-left","halfarrow-right"],ts=["xMinYMin","xMaxYMin"];else if(Ya===3)ps=["brace-left","brace-center","brace-right"],ts=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+Ya+" children.");for(var Ds=0;Ds<Ya;Ds++){var Hs=new oe(Zo[Ds]),xs=new Ie([Hs],{width:"400em",height:Ha+"em",viewBox:"0 0 "+Yr+" "+Do,preserveAspectRatio:ts[Ds]+" slice"}),Xo=hr.makeSvgSpan([ps[Ds]],[xs],ge);if(Ya===1)return{span:Xo,minWidth:Oo,height:Ha};Xo.style.height=Ha+"em",bo.push(Xo)}return{span:hr.makeSpan(["stretchy"],bo,ge),minWidth:Oo,height:Ha}}}var We=Se(),vt=We.span,Yt=We.minWidth,Rr=We.height;return vt.height=Rr,vt.style.height=Rr+"em",Yt>0&&(vt.style.minWidth=Yt+"em"),vt},$r=function(se,ge,Se,We){var vt,Yt=se.height+se.depth+2*Se;if(/fbox|color/.test(ge)){if(vt=hr.makeSpan(["stretchy",ge],[],We),ge==="fbox"){var Rr=We.color&&We.getColor();Rr&&(vt.style.borderColor=Rr)}}else{var Yr=[];/^[bx]cancel$/.test(ge)&&Yr.push(new pe({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(ge)&&Yr.push(new pe({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var mn=new Ie(Yr,{width:"100%",height:Yt+"em"});vt=hr.makeSvgSpan([],[mn],We)}return vt.height=Yt,vt.style.height=Yt+"em",vt},wn={encloseSpan:$r,mathMLnode:St,svgSpan:Br},rn=function(se,ge){var Se,We,vt=en(se,"supsub"),Yt;vt?(We=vn(vt.base,"accent"),Se=We.base,vt.base=Se,Yt=Ye(ui(vt,ge)),vt.base=We):(We=vn(se,"accent"),Se=We.base);var Rr=ui(Se,ge.havingCrampedStyle()),Yr=We.isShifty&&p.isCharacterBox(Se),mn=0;if(Yr){var Wn=p.getBaseElem(Se),Jn=ui(Wn,ge.havingCrampedStyle());mn=Oe(Jn).skew}var ri=Math.min(Rr.height,ge.fontMetrics().xHeight),Ii;if(We.isStretchy)Ii=wn.svgSpan(We,ge),Ii=hr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Rr},{type:"elem",elem:Ii,wrapperClasses:["svg-align"],wrapperStyle:mn>0?{width:"calc(100% - "+2*mn+"em)",marginLeft:2*mn+"em"}:void 0}]},ge);else{var Yi,ma;We.label==="\\vec"?(Yi=hr.staticSvg("vec",ge),ma=hr.svgData.vec[1]):(Yi=hr.makeOrd({mode:We.mode,text:We.label},ge,"textord"),Yi=Oe(Yi),Yi.italic=0,ma=Yi.width),Ii=hr.makeSpan(["accent-body"],[Yi]);var Ta=We.label==="\\textcircled";Ta&&(Ii.classes.push("accent-full"),ri=Rr.height);var uo=mn;Ta||(uo-=ma/2),Ii.style.left=uo+"em",We.label==="\\textcircled"&&(Ii.style.top=".2em"),Ii=hr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Rr},{type:"kern",size:-ri},{type:"elem",elem:Ii}]},ge)}var bo=hr.makeSpan(["mord","accent"],[Ii],ge);return Yt?(Yt.children[0]=bo,Yt.height=Math.max(bo.height,Yt.height),Yt.classes[0]="mord",Yt):bo},On=function(se,ge){var Se=se.isStretchy?wn.mathMLnode(se.label):new oi.MathNode("mo",[hn(se.label,se.mode)]),We=new oi.MathNode("mover",[dr(se.base,ge),Se]);return We.setAttribute("accent","true"),We},In=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(At){return"\\"+At}).join("|"));It({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(se,ge){var Se=ge[0],We=!In.test(se.funcName),vt=!We||se.funcName==="\\widehat"||se.funcName==="\\widetilde"||se.funcName==="\\widecheck";return{type:"accent",mode:se.parser.mode,label:se.funcName,isStretchy:We,isShifty:vt,base:Se}},htmlBuilder:rn,mathmlBuilder:On}),It({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(se,ge){var Se=ge[0];return{type:"accent",mode:se.parser.mode,label:se.funcName,isStretchy:!1,isShifty:!0,base:Se}},htmlBuilder:rn,mathmlBuilder:On}),It({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(se,ge){var Se=se.parser,We=se.funcName,vt=ge[0];return{type:"accentUnder",mode:Se.mode,label:We,base:vt}},htmlBuilder:function(se,ge){var Se=ui(se.base,ge),We=wn.svgSpan(se,ge),vt=se.label==="\\utilde"?.12:0,Yt=hr.makeVList({positionType:"bottom",positionData:We.height+vt,children:[{type:"elem",elem:We,wrapperClasses:["svg-align"]},{type:"kern",size:vt},{type:"elem",elem:Se}]},ge);return hr.makeSpan(["mord","accentunder"],[Yt],ge)},mathmlBuilder:function(se,ge){var Se=wn.mathMLnode(se.label),We=new oi.MathNode("munder",[dr(se.base,ge),Se]);return We.setAttribute("accentunder","true"),We}});var Gn=function(se){var ge=new oi.MathNode("mpadded",se?[se]:[]);return ge.setAttribute("width","+0.6em"),ge.setAttribute("lspace","0.3em"),ge};It({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(se,ge,Se){var We=se.parser,vt=se.funcName;return{type:"xArrow",mode:We.mode,label:vt,body:ge[0],below:Se[0]}},htmlBuilder:function(se,ge){var Se=ge.style,We=ge.havingStyle(Se.sup()),vt=hr.wrapFragment(ui(se.body,We,ge),ge);vt.classes.push("x-arrow-pad");var Yt;se.below&&(We=ge.havingStyle(Se.sub()),Yt=hr.wrapFragment(ui(se.below,We,ge),ge),Yt.classes.push("x-arrow-pad"));var Rr=wn.svgSpan(se,ge),Yr=-ge.fontMetrics().axisHeight+.5*Rr.height,mn=-ge.fontMetrics().axisHeight-.5*Rr.height-.111;(vt.depth>.25||se.label==="\\xleftequilibrium")&&(mn-=vt.depth);var Wn;if(Yt){var Jn=-ge.fontMetrics().axisHeight+Yt.height+.5*Rr.height+.111;Wn=hr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:vt,shift:mn},{type:"elem",elem:Rr,shift:Yr},{type:"elem",elem:Yt,shift:Jn}]},ge)}else Wn=hr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:vt,shift:mn},{type:"elem",elem:Rr,shift:Yr}]},ge);return Wn.children[0].children[0].children[1].classes.push("svg-align"),hr.makeSpan(["mrel","x-arrow"],[Wn],ge)},mathmlBuilder:function(se,ge){var Se=wn.mathMLnode(se.label),We;if(se.body){var vt=Gn(dr(se.body,ge));if(se.below){var Yt=Gn(dr(se.below,ge));We=new oi.MathNode("munderover",[Se,Yt,vt])}else We=new oi.MathNode("mover",[Se,vt])}else if(se.below){var Rr=Gn(dr(se.below,ge));We=new oi.MathNode("munder",[Se,Rr])}else We=Gn(),We=new oi.MathNode("mover",[Se,We]);return We}}),It({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(se,ge){for(var Se=se.parser,We=vn(ge[0],"ordgroup"),vt=We.body,Yt="",Rr=0;Rr<vt.length;Rr++){var Yr=vn(vt[Rr],"textord");Yt+=Yr.text}var mn=parseInt(Yt);if(isNaN(mn))throw new c("\\@char has non-numeric argument "+Yt);return{type:"textord",mode:Se.mode,text:String.fromCharCode(mn)}}});var fi=function(se,ge){var Se=Zr(se.body,ge.withColor(se.color),!1);return hr.makeFragment(Se)},Yn=function(se,ge){var Se=ki(se.body,ge.withColor(se.color)),We=new oi.MathNode("mstyle",Se);return We.setAttribute("mathcolor",se.color),We};It({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(se,ge){var Se=se.parser,We=vn(ge[0],"color-token").color,vt=ge[1];return{type:"color",mode:Se.mode,color:We,body:Cr(vt)}},htmlBuilder:fi,mathmlBuilder:Yn}),It({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(se,ge){var Se=se.parser,We=se.breakOnTokenText,vt=vn(ge[0],"color-token").color;Se.gullet.macros.set("\\current@color",vt);var Yt=Se.parseExpression(!0,We);return{type:"color",mode:Se.mode,color:vt,body:Yt}},htmlBuilder:fi,mathmlBuilder:Yn}),It({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(se,ge,Se){var We=se.parser,vt=se.funcName,Yt=Se[0],Rr=vt==="\\cr",Yr=!1;return Rr||(We.settings.displayMode&&We.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?Yr=!1:Yr=!0),{type:"cr",mode:We.mode,newLine:Yr,newRow:Rr,size:Yt&&vn(Yt,"size").value}},htmlBuilder:function(se,ge){if(se.newRow)throw new c("\\cr valid only within a tabular/array environment");var Se=hr.makeSpan(["mspace"],[],ge);return se.newLine&&(Se.classes.push("newline"),se.size&&(Se.style.marginTop=ur(se.size,ge)+"em")),Se},mathmlBuilder:function(se,ge){var Se=new oi.MathNode("mspace");return se.newLine&&(Se.setAttribute("linebreak","newline"),se.size&&Se.setAttribute("height",ur(se.size,ge)+"em")),Se}});var gi=function(se,ge,Se){var We=Be.math[se]&&Be.math[se].replace,vt=ze(We||se,ge,Se);if(!vt)throw new Error("Unsupported symbol "+se+" and font size "+ge+".");return vt},vi=function(se,ge,Se,We){var vt=Se.havingBaseStyle(ge),Yt=hr.makeSpan(We.concat(vt.sizingClasses(Se)),[se],Se),Rr=vt.sizeMultiplier/Se.sizeMultiplier;return Yt.height*=Rr,Yt.depth*=Rr,Yt.maxFontSize=vt.sizeMultiplier,Yt},Di=function(se,ge,Se){var We=ge.havingBaseStyle(Se),vt=(1-ge.sizeMultiplier/We.sizeMultiplier)*ge.fontMetrics().axisHeight;se.classes.push("delimcenter"),se.style.top=vt+"em",se.height-=vt,se.depth+=vt},Mi=function(se,ge,Se,We,vt,Yt){var Rr=hr.makeSymbol(se,"Main-Regular",vt,We),Yr=vi(Rr,ge,We,Yt);return Se&&Di(Yr,We,ge),Yr},xi=function(se,ge,Se,We){return hr.makeSymbol(se,"Size"+ge+"-Regular",Se,We)},bi=function(se,ge,Se,We,vt,Yt){var Rr=xi(se,ge,vt,We),Yr=vi(hr.makeSpan(["delimsizing","size"+ge],[Rr],We),K.TEXT,We,Yt);return Se&&Di(Yr,We,K.TEXT),Yr},Ci=function(se,ge,Se){var We;ge==="Size1-Regular"?We="delim-size1":We="delim-size4";var vt=hr.makeSpan(["delimsizinginner",We],[hr.makeSpan([],[hr.makeSymbol(se,ge,Se)])]);return{type:"elem",elem:vt}},$i={type:"kern",size:-.005},qi=function(se,ge,Se,We,vt,Yt){var Rr,Yr,mn,Wn;Rr=mn=Wn=se,Yr=null;var Jn="Size1-Regular";se==="\\uparrow"?mn=Wn="\u23D0":se==="\\Uparrow"?mn=Wn="\u2016":se==="\\downarrow"?Rr=mn="\u23D0":se==="\\Downarrow"?Rr=mn="\u2016":se==="\\updownarrow"?(Rr="\\uparrow",mn="\u23D0",Wn="\\downarrow"):se==="\\Updownarrow"?(Rr="\\Uparrow",mn="\u2016",Wn="\\Downarrow"):se==="["||se==="\\lbrack"?(Rr="\u23A1",mn="\u23A2",Wn="\u23A3",Jn="Size4-Regular"):se==="]"||se==="\\rbrack"?(Rr="\u23A4",mn="\u23A5",Wn="\u23A6",Jn="Size4-Regular"):se==="\\lfloor"||se==="\u230A"?(mn=Rr="\u23A2",Wn="\u23A3",Jn="Size4-Regular"):se==="\\lceil"||se==="\u2308"?(Rr="\u23A1",mn=Wn="\u23A2",Jn="Size4-Regular"):se==="\\rfloor"||se==="\u230B"?(mn=Rr="\u23A5",Wn="\u23A6",Jn="Size4-Regular"):se==="\\rceil"||se==="\u2309"?(Rr="\u23A4",mn=Wn="\u23A5",Jn="Size4-Regular"):se==="("||se==="\\lparen"?(Rr="\u239B",mn="\u239C",Wn="\u239D",Jn="Size4-Regular"):se===")"||se==="\\rparen"?(Rr="\u239E",mn="\u239F",Wn="\u23A0",Jn="Size4-Regular"):se==="\\{"||se==="\\lbrace"?(Rr="\u23A7",Yr="\u23A8",Wn="\u23A9",mn="\u23AA",Jn="Size4-Regular"):se==="\\}"||se==="\\rbrace"?(Rr="\u23AB",Yr="\u23AC",Wn="\u23AD",mn="\u23AA",Jn="Size4-Regular"):se==="\\lgroup"||se==="\u27EE"?(Rr="\u23A7",Wn="\u23A9",mn="\u23AA",Jn="Size4-Regular"):se==="\\rgroup"||se==="\u27EF"?(Rr="\u23AB",Wn="\u23AD",mn="\u23AA",Jn="Size4-Regular"):se==="\\lmoustache"||se==="\u23B0"?(Rr="\u23A7",Wn="\u23AD",mn="\u23AA",Jn="Size4-Regular"):(se==="\\rmoustache"||se==="\u23B1")&&(Rr="\u23AB",Wn="\u23A9",mn="\u23AA",Jn="Size4-Regular");var ri=gi(Rr,Jn,vt),Ii=ri.height+ri.depth,Yi=gi(mn,Jn,vt),ma=Yi.height+Yi.depth,Ta=gi(Wn,Jn,vt),uo=Ta.height+Ta.depth,bo=0,co=1;if(Yr!==null){var Zo=gi(Yr,Jn,vt);bo=Zo.height+Zo.depth,co=2}var Oo=Ii+uo+bo,Do=Math.max(0,Math.ceil((ge-Oo)/(co*ma))),Ha=Oo+Do*co*ma,Ya=We.fontMetrics().axisHeight;Se&&(Ya*=We.sizeMultiplier);var ps=Ha/2-Ya,ts=(Do+1)*.005-ma,$o=[];if($o.push(Ci(Wn,Jn,vt)),Yr===null)for(var Ds=0;Ds<Do;Ds++)$o.push($i),$o.push(Ci(mn,Jn,vt));else{for(var Hs=0;Hs<Do;Hs++)$o.push($i),$o.push(Ci(mn,Jn,vt));$o.push({type:"kern",size:ts}),$o.push(Ci(mn,Jn,vt)),$o.push($i),$o.push(Ci(Yr,Jn,vt));for(var xs=0;xs<Do;xs++)$o.push($i),$o.push(Ci(mn,Jn,vt))}$o.push({type:"kern",size:ts}),$o.push(Ci(mn,Jn,vt)),$o.push($i),$o.push(Ci(Rr,Jn,vt));var Xo=We.havingBaseStyle(K.TEXT),Js=hr.makeVList({positionType:"bottom",positionData:ps,children:$o},Xo);return vi(hr.makeSpan(["delimsizing","mult"],[Js],Xo),K.TEXT,We,Yt)},Ti=80,ia=.08,na=function(se,ge,Se,We,vt){var Yt=ce(se,We,Se),Rr=new oe(se,Yt),Yr=new Ie([Rr],{width:"400em",height:ge+"em",viewBox:"0 0 400000 "+Se,preserveAspectRatio:"xMinYMin slice"});return hr.makeSvgSpan(["hide-tail"],[Yr],vt)},Ui=function(se,ge){var Se=ge.havingBaseSizing(),We=So("\\surd",se*Se.sizeMultiplier,Ia,Se),vt=Se.sizeMultiplier,Yt=Math.max(0,ge.minRuleThickness-ge.fontMetrics().sqrtRuleThickness),Rr,Yr=0,mn=0,Wn=0,Jn;return We.type==="small"?(Wn=1e3+1e3*Yt+Ti,se<1?vt=1:se<1.4&&(vt=.7),Yr=(1+Yt+ia)/vt,mn=(1+Yt)/vt,Rr=na("sqrtMain",Yr,Wn,Yt,ge),Rr.style.minWidth="0.853em",Jn=.833/vt):We.type==="large"?(Wn=(1e3+Ti)*va[We.size],mn=(va[We.size]+Yt)/vt,Yr=(va[We.size]+Yt+ia)/vt,Rr=na("sqrtSize"+We.size,Yr,Wn,Yt,ge),Rr.style.minWidth="1.02em",Jn=1/vt):(Yr=se+Yt+ia,mn=se+Yt,Wn=Math.floor(1e3*se+Yt)+Ti,Rr=na("sqrtTall",Yr,Wn,Yt,ge),Rr.style.minWidth="0.742em",Jn=1.056),Rr.height=mn,Rr.style.height=Yr+"em",{span:Rr,advanceWidth:Jn,ruleWidth:(ge.fontMetrics().sqrtRuleThickness+Yt)*vt}},Ki=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],ra=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],ea=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],va=[0,1.2,1.8,2.4,3],sa=function(se,ge,Se,We,vt){if(se==="<"||se==="\\lt"||se==="\u27E8"?se="\\langle":(se===">"||se==="\\gt"||se==="\u27E9")&&(se="\\rangle"),p.contains(Ki,se)||p.contains(ea,se))return bi(se,ge,!1,Se,We,vt);if(p.contains(ra,se))return qi(se,va[ge],!1,Se,We,vt);throw new c("Illegal delimiter: '"+se+"'")},Pa=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],ka=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"stack"}],Ia=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Ea=function(se){if(se.type==="small")return"Main-Regular";if(se.type==="large")return"Size"+se.size+"-Regular";if(se.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+se.type+"' here.")},So=function(se,ge,Se,We){for(var vt=Math.min(2,3-We.style.size),Yt=vt;Yt<Se.length&&!(Se[Yt].type==="stack");Yt++){var Rr=gi(se,Ea(Se[Yt]),"math"),Yr=Rr.height+Rr.depth;if(Se[Yt].type==="small"){var mn=We.havingBaseStyle(Se[Yt].style);Yr*=mn.sizeMultiplier}if(Yr>ge)return Se[Yt]}return Se[Se.length-1]},Ga=function(se,ge,Se,We,vt,Yt){se==="<"||se==="\\lt"||se==="\u27E8"?se="\\langle":(se===">"||se==="\\gt"||se==="\u27E9")&&(se="\\rangle");var Rr;p.contains(ea,se)?Rr=Pa:p.contains(Ki,se)?Rr=Ia:Rr=ka;var Yr=So(se,ge,Rr,We);return Yr.type==="small"?Mi(se,Yr.style,Se,We,vt,Yt):Yr.type==="large"?bi(se,Yr.size,Se,We,vt,Yt):qi(se,ge,Se,We,vt,Yt)},Va=function(se,ge,Se,We,vt,Yt){var Rr=We.fontMetrics().axisHeight*We.sizeMultiplier,Yr=901,mn=5/We.fontMetrics().ptPerEm,Wn=Math.max(ge-Rr,Se+Rr),Jn=Math.max(Wn/500*Yr,2*Wn-mn);return Ga(se,Jn,!0,We,vt,Yt)},Ra={sqrtImage:Ui,sizedDelim:sa,customSizedDelim:Ga,leftRightDelim:Va},po={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},mo=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Aa(At,se){var ge=Hr(At);if(ge&&p.contains(mo,ge.text))return ge;throw new c("Invalid delimiter: '"+(ge?ge.text:JSON.stringify(At))+"' after '"+se.funcName+"'",At)}It({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(se,ge){var Se=Aa(ge[0],se);return{type:"delimsizing",mode:se.parser.mode,size:po[se.funcName].size,mclass:po[se.funcName].mclass,delim:Se.text}},htmlBuilder:function(se,ge){return se.delim==="."?hr.makeSpan([se.mclass]):Ra.sizedDelim(se.delim,se.size,ge,se.mode,[se.mclass])},mathmlBuilder:function(se){var ge=[];se.delim!=="."&&ge.push(hn(se.delim,se.mode));var Se=new oi.MathNode("mo",ge);return se.mclass==="mopen"||se.mclass==="mclose"?Se.setAttribute("fence","true"):Se.setAttribute("fence","false"),Se}});function Io(At){if(!At.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}It({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(se,ge){var Se=se.parser.gullet.macros.get("\\current@color");if(Se&&typeof Se!="string")throw new c("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:se.parser.mode,delim:Aa(ge[0],se).text,color:Se}}}),It({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(se,ge){var Se=Aa(ge[0],se),We=se.parser;++We.leftrightDepth;var vt=We.parseExpression(!1);--We.leftrightDepth,We.expect("\\right",!1);var Yt=vn(We.parseFunction(),"leftright-right");return{type:"leftright",mode:We.mode,body:vt,left:Se.text,right:Yt.delim,rightColor:Yt.color}},htmlBuilder:function(se,ge){Io(se);for(var Se=Zr(se.body,ge,!0,["mopen","mclose"]),We=0,vt=0,Yt=!1,Rr=0;Rr<Se.length;Rr++)Se[Rr].isMiddle?Yt=!0:(We=Math.max(Se[Rr].height,We),vt=Math.max(Se[Rr].depth,vt));We*=ge.sizeMultiplier,vt*=ge.sizeMultiplier;var Yr;if(se.left==="."?Yr=zn(ge,["mopen"]):Yr=Ra.leftRightDelim(se.left,We,vt,ge,se.mode,["mopen"]),Se.unshift(Yr),Yt)for(var mn=1;mn<Se.length;mn++){var Wn=Se[mn],Jn=Wn.isMiddle;Jn&&(Se[mn]=Ra.leftRightDelim(Jn.delim,We,vt,Jn.options,se.mode,[]))}var ri;if(se.right===".")ri=zn(ge,["mclose"]);else{var Ii=se.rightColor?ge.withColor(se.rightColor):ge;ri=Ra.leftRightDelim(se.right,We,vt,Ii,se.mode,["mclose"])}return Se.push(ri),hr.makeSpan(["minner"],Se,ge)},mathmlBuilder:function(se,ge){Io(se);var Se=ki(se.body,ge);if(se.left!=="."){var We=new oi.MathNode("mo",[hn(se.left,se.mode)]);We.setAttribute("fence","true"),Se.unshift(We)}if(se.right!=="."){var vt=new oi.MathNode("mo",[hn(se.right,se.mode)]);vt.setAttribute("fence","true"),se.rightColor&&vt.setAttribute("mathcolor",se.rightColor),Se.push(vt)}return Ei(Se)}}),It({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(se,ge){var Se=Aa(ge[0],se);if(!se.parser.leftrightDepth)throw new c("\\middle without preceding \\left",Se);return{type:"middle",mode:se.parser.mode,delim:Se.text}},htmlBuilder:function(se,ge){var Se;if(se.delim===".")Se=zn(ge,[]);else{Se=Ra.sizedDelim(se.delim,1,ge,se.mode,[]);var We={delim:se.delim,options:ge};Se.isMiddle=We}return Se},mathmlBuilder:function(se,ge){var Se=se.delim==="\\vert"||se.delim==="|"?hn("|","text"):hn(se.delim,se.mode),We=new oi.MathNode("mo",[Se]);return We.setAttribute("fence","true"),We.setAttribute("lspace","0.05em"),We.setAttribute("rspace","0.05em"),We}});var go=function(se,ge){var Se=hr.wrapFragment(ui(se.body,ge),ge),We=se.label.substr(1),vt=ge.sizeMultiplier,Yt,Rr=0,Yr=p.isCharacterBox(se.body);if(We==="sout")Yt=hr.makeSpan(["stretchy","sout"]),Yt.height=ge.fontMetrics().defaultRuleThickness/vt,Rr=-.5*ge.fontMetrics().xHeight;else{/cancel/.test(We)?Yr||Se.classes.push("cancel-pad"):Se.classes.push("boxpad");var mn=0,Wn=0;/box/.test(We)?(Wn=Math.max(ge.fontMetrics().fboxrule,ge.minRuleThickness),mn=ge.fontMetrics().fboxsep+(We==="colorbox"?0:Wn)):mn=Yr?.2:0,Yt=wn.encloseSpan(Se,We,mn,ge),/fbox|boxed|fcolorbox/.test(We)&&(Yt.style.borderStyle="solid",Yt.style.borderWidth=Wn+"em"),Rr=Se.depth+mn,se.backgroundColor&&(Yt.style.backgroundColor=se.backgroundColor,se.borderColor&&(Yt.style.borderColor=se.borderColor))}var Jn;return se.backgroundColor?Jn=hr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Yt,shift:Rr},{type:"elem",elem:Se,shift:0}]},ge):Jn=hr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Se,shift:0},{type:"elem",elem:Yt,shift:Rr,wrapperClasses:/cancel/.test(We)?["svg-align"]:[]}]},ge),/cancel/.test(We)&&(Jn.height=Se.height,Jn.depth=Se.depth),/cancel/.test(We)&&!Yr?hr.makeSpan(["mord","cancel-lap"],[Jn],ge):hr.makeSpan(["mord"],[Jn],ge)},Qa=function(se,ge){var Se=0,We=new oi.MathNode(se.label.indexOf("colorbox")>-1?"mpadded":"menclose",[dr(se.body,ge)]);switch(se.label){case"\\cancel":We.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":We.setAttribute("notation","downdiagonalstrike");break;case"\\sout":We.setAttribute("notation","horizontalstrike");break;case"\\fbox":We.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(Se=ge.fontMetrics().fboxsep*ge.fontMetrics().ptPerEm,We.setAttribute("width","+"+2*Se+"pt"),We.setAttribute("height","+"+2*Se+"pt"),We.setAttribute("lspace",Se+"pt"),We.setAttribute("voffset",Se+"pt"),se.label==="\\fcolorbox"){var vt=Math.max(ge.fontMetrics().fboxrule,ge.minRuleThickness);We.setAttribute("style","border: "+vt+"em solid "+String(se.borderColor))}break;case"\\xcancel":We.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return se.backgroundColor&&We.setAttribute("mathbackground",se.backgroundColor),We};It({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(se,ge,Se){var We=se.parser,vt=se.funcName,Yt=vn(ge[0],"color-token").color,Rr=ge[1];return{type:"enclose",mode:We.mode,label:vt,backgroundColor:Yt,body:Rr}},htmlBuilder:go,mathmlBuilder:Qa}),It({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(se,ge,Se){var We=se.parser,vt=se.funcName,Yt=vn(ge[0],"color-token").color,Rr=vn(ge[1],"color-token").color,Yr=ge[2];return{type:"enclose",mode:We.mode,label:vt,backgroundColor:Rr,borderColor:Yt,body:Yr}},htmlBuilder:go,mathmlBuilder:Qa}),It({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(se,ge){var Se=se.parser;return{type:"enclose",mode:Se.mode,label:"\\fbox",body:ge[0]}}}),It({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(se,ge,Se){var We=se.parser,vt=se.funcName,Yt=ge[0];return{type:"enclose",mode:We.mode,label:vt,body:Yt}},htmlBuilder:go,mathmlBuilder:Qa});var wo={};function pa(At){for(var se=At.type,ge=At.names,Se=At.props,We=At.handler,vt=At.htmlBuilder,Yt=At.mathmlBuilder,Rr={type:se,numArgs:Se.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:We},Yr=0;Yr<ge.length;++Yr)wo[ge[Yr]]=Rr;vt&&(Lt[se]=vt),Yt&&(Qt[se]=Yt)}function to(At){var se=[];At.consumeSpaces();for(var ge=At.fetch().text;ge==="\\hline"||ge==="\\hdashline";)At.consume(),se.push(ge==="\\hdashline"),At.consumeSpaces(),ge=At.fetch().text;return se}function ao(At,se,ge){var Se=se.hskipBeforeAndAfter,We=se.addJot,vt=se.cols,Yt=se.arraystretch,Rr=se.colSeparationType;if(At.gullet.beginGroup(),At.gullet.macros.set("\\\\","\\cr"),!Yt){var Yr=At.gullet.expandMacroAsText("\\arraystretch");if(Yr==null)Yt=1;else if(Yt=parseFloat(Yr),!Yt||Yt<0)throw new c("Invalid \\arraystretch: "+Yr)}At.gullet.beginGroup();var mn=[],Wn=[mn],Jn=[],ri=[];for(ri.push(to(At));;){var Ii=At.parseExpression(!1,"\\cr");At.gullet.endGroup(),At.gullet.beginGroup(),Ii={type:"ordgroup",mode:At.mode,body:Ii},ge&&(Ii={type:"styling",mode:At.mode,style:ge,body:[Ii]}),mn.push(Ii);var Yi=At.fetch().text;if(Yi==="&")At.consume();else if(Yi==="\\end"){mn.length===1&&Ii.type==="styling"&&Ii.body[0].body.length===0&&Wn.pop(),ri.length<Wn.length+1&&ri.push([]);break}else if(Yi==="\\cr"){var ma=vn(At.parseFunction(),"cr");Jn.push(ma.size),ri.push(to(At)),mn=[],Wn.push(mn)}else throw new c("Expected & or \\\\ or \\cr or \\end",At.nextToken)}return At.gullet.endGroup(),At.gullet.endGroup(),{type:"array",mode:At.mode,addJot:We,arraystretch:Yt,body:Wn,cols:vt,rowGaps:Jn,hskipBeforeAndAfter:Se,hLinesBeforeRow:ri,colSeparationType:Rr}}function Bo(At){return At.substr(0,1)==="d"?"display":"text"}var Ja=function(se,ge){var Se,We,vt=se.body.length,Yt=se.hLinesBeforeRow,Rr=0,Yr=new Array(vt),mn=[],Wn=Math.max(ge.fontMetrics().arrayRuleWidth,ge.minRuleThickness),Jn=1/ge.fontMetrics().ptPerEm,ri=5*Jn;if(se.colSeparationType&&se.colSeparationType==="small"){var Ii=ge.havingStyle(K.SCRIPT).sizeMultiplier;ri=.2778*(Ii/ge.sizeMultiplier)}var Yi=12*Jn,ma=3*Jn,Ta=se.arraystretch*Yi,uo=.7*Ta,bo=.3*Ta,co=0;function Zo(is){for(var ms=0;ms<is.length;++ms)ms>0&&(co+=.25),mn.push({pos:co,isDashed:is[ms]})}for(Zo(Yt[0]),Se=0;Se<se.body.length;++Se){var Oo=se.body[Se],Do=uo,Ha=bo;Rr<Oo.length&&(Rr=Oo.length);var Ya=new Array(Oo.length);for(We=0;We<Oo.length;++We){var ps=ui(Oo[We],ge);Ha<ps.depth&&(Ha=ps.depth),Do<ps.height&&(Do=ps.height),Ya[We]=ps}var ts=se.rowGaps[Se],$o=0;ts&&($o=ur(ts,ge),$o>0&&($o+=bo,Ha<$o&&(Ha=$o),$o=0)),se.addJot&&(Ha+=ma),Ya.height=Do,Ya.depth=Ha,co+=Do,Ya.pos=co,co+=Ha+$o,Yr[Se]=Ya,Zo(Yt[Se+1])}var Ds=co/2+ge.fontMetrics().axisHeight,Hs=se.cols||[],xs=[],Xo,Js;for(We=0,Js=0;We<Rr||Js<Hs.length;++We,++Js){for(var Cs=Hs[Js]||{},fl=!0;Cs.type==="separator";){if(fl||(Xo=hr.makeSpan(["arraycolsep"],[]),Xo.style.width=ge.fontMetrics().doubleRuleSep+"em",xs.push(Xo)),Cs.separator==="|"||Cs.separator===":"){var sl=Cs.separator==="|"?"solid":"dashed",Ks=hr.makeSpan(["vertical-separator"],[],ge);Ks.style.height=co+"em",Ks.style.borderRightWidth=Wn+"em",Ks.style.borderRightStyle=sl,Ks.style.margin="0 -"+Wn/2+"em",Ks.style.verticalAlign=-(co-Ds)+"em",xs.push(Ks)}else throw new c("Invalid separator type: "+Cs.separator);Js++,Cs=Hs[Js]||{},fl=!1}if(We>=Rr)continue;var as=void 0;(We>0||se.hskipBeforeAndAfter)&&(as=p.deflt(Cs.pregap,ri),as!==0&&(Xo=hr.makeSpan(["arraycolsep"],[]),Xo.style.width=as+"em",xs.push(Xo)));var ha=[];for(Se=0;Se<vt;++Se){var Zs=Yr[Se],ll=Zs[We];if(!ll)continue;var lo=Zs.pos-Ds;ll.depth=Zs.depth,ll.height=Zs.height,ha.push({type:"elem",elem:ll,shift:lo})}ha=hr.makeVList({positionType:"individualShift",children:ha},ge),ha=hr.makeSpan(["col-align-"+(Cs.align||"c")],[ha]),xs.push(ha),(We<Rr-1||se.hskipBeforeAndAfter)&&(as=p.deflt(Cs.postgap,ri),as!==0&&(Xo=hr.makeSpan(["arraycolsep"],[]),Xo.style.width=as+"em",xs.push(Xo)))}if(Yr=hr.makeSpan(["mtable"],xs),mn.length>0){for(var Ka=hr.makeLineSpan("hline",ge,Wn),Fo=hr.makeLineSpan("hdashline",ge,Wn),Ko=[{type:"elem",elem:Yr,shift:0}];mn.length>0;){var Wo=mn.pop(),Co=Wo.pos-Ds;Wo.isDashed?Ko.push({type:"elem",elem:Fo,shift:Co}):Ko.push({type:"elem",elem:Ka,shift:Co})}Yr=hr.makeVList({positionType:"individualShift",children:Ko},ge)}return hr.makeSpan(["mord"],[Yr],ge)},_o={c:"center ",l:"left ",r:"right "},Ao=function(se,ge){var Se=new oi.MathNode("mtable",se.body.map(function(co){return new oi.MathNode("mtr",co.map(function(Zo){return new oi.MathNode("mtd",[dr(Zo,ge)])}))})),We=se.arraystretch===.5?.1:.16+se.arraystretch-1+(se.addJot?.09:0);Se.setAttribute("rowspacing",We+"em");var vt="",Yt="";if(se.cols){var Rr=se.cols,Yr="",mn=!1,Wn=0,Jn=Rr.length;Rr[0].type==="separator"&&(vt+="top ",Wn=1),Rr[Rr.length-1].type==="separator"&&(vt+="bottom ",Jn-=1);for(var ri=Wn;ri<Jn;ri++)Rr[ri].type==="align"?(Yt+=_o[Rr[ri].align],mn&&(Yr+="none "),mn=!0):Rr[ri].type==="separator"&&(mn&&(Yr+=Rr[ri].separator==="|"?"solid ":"dashed ",mn=!1));Se.setAttribute("columnalign",Yt.trim()),/[sd]/.test(Yr)&&Se.setAttribute("columnlines",Yr.trim())}if(se.colSeparationType==="align"){for(var Ii=se.cols||[],Yi="",ma=1;ma<Ii.length;ma++)Yi+=ma%2?"0em ":"1em ";Se.setAttribute("columnspacing",Yi.trim())}else se.colSeparationType==="alignat"?Se.setAttribute("columnspacing","0em"):se.colSeparationType==="small"?Se.setAttribute("columnspacing","0.2778em"):Se.setAttribute("columnspacing","1em");var Ta="",uo=se.hLinesBeforeRow;vt+=uo[0].length>0?"left ":"",vt+=uo[uo.length-1].length>0?"right ":"";for(var bo=1;bo<uo.length-1;bo++)Ta+=uo[bo].length===0?"none ":uo[bo][0]?"dashed ":"solid ";return/[sd]/.test(Ta)&&Se.setAttribute("rowlines",Ta.trim()),vt!==""&&(Se=new oi.MathNode("menclose",[Se]),Se.setAttribute("notation",vt.trim())),se.arraystretch&&se.arraystretch<1&&(Se=new oi.MathNode("mstyle",[Se]),Se.setAttribute("scriptlevel","1")),Se},za=function(se,ge){var Se=[],We=ao(se.parser,{cols:Se,addJot:!0},"display"),vt,Yt=0,Rr={type:"ordgroup",mode:se.mode,body:[]},Yr=en(ge[0],"ordgroup");if(Yr){for(var mn="",Wn=0;Wn<Yr.body.length;Wn++){var Jn=vn(Yr.body[Wn],"textord");mn+=Jn.text}vt=Number(mn),Yt=vt*2}var ri=!Yt;We.body.forEach(function(Ta){for(var uo=1;uo<Ta.length;uo+=2){var bo=vn(Ta[uo],"styling"),co=vn(bo.body[0],"ordgroup");co.body.unshift(Rr)}if(ri)Yt<Ta.length&&(Yt=Ta.length);else{var Zo=Ta.length/2;if(vt<Zo)throw new c("Too many math in a row: "+("expected "+vt+", but got "+Zo),Ta[0])}});for(var Ii=0;Ii<Yt;++Ii){var Yi="r",ma=0;Ii%2===1?Yi="l":Ii>0&&ri&&(ma=1),Se[Ii]={type:"align",align:Yi,pregap:ma,postgap:0}}return We.colSeparationType=ri?"align":"alignat",We};pa({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(se,ge){var Se=Hr(ge[0]),We=Se?[ge[0]]:vn(ge[0],"ordgroup").body,vt=We.map(function(Rr){var Yr=un(Rr),mn=Yr.text;if("lcr".indexOf(mn)!==-1)return{type:"align",align:mn};if(mn==="|")return{type:"separator",separator:"|"};if(mn===":")return{type:"separator",separator:":"};throw new c("Unknown column alignment: "+mn,Rr)}),Yt={cols:vt,hskipBeforeAndAfter:!0};return ao(se.parser,Yt,Bo(se.envName))},htmlBuilder:Ja,mathmlBuilder:Ao}),pa({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(se){var ge={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[se.envName],Se={hskipBeforeAndAfter:!1},We=ao(se.parser,Se,Bo(se.envName));return ge?{type:"leftright",mode:se.mode,body:[We],left:ge[0],right:ge[1],rightColor:void 0}:We},htmlBuilder:Ja,mathmlBuilder:Ao}),pa({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(se){var ge={arraystretch:.5},Se=ao(se.parser,ge,"script");return Se.colSeparationType="small",Se},htmlBuilder:Ja,mathmlBuilder:Ao}),pa({type:"array",names:["subarray"],props:{numArgs:1},handler:function(se,ge){var Se=Hr(ge[0]),We=Se?[ge[0]]:vn(ge[0],"ordgroup").body,vt=We.map(function(Rr){var Yr=un(Rr),mn=Yr.text;if("lc".indexOf(mn)!==-1)return{type:"align",align:mn};throw new c("Unknown column alignment: "+mn,Rr)});if(vt.length>1)throw new c("{subarray} can contain only one column");var Yt={cols:vt,hskipBeforeAndAfter:!1,arraystretch:.5};if(Yt=ao(se.parser,Yt,"script"),Yt.body[0].length>1)throw new c("{subarray} can contain only one column");return Yt},htmlBuilder:Ja,mathmlBuilder:Ao}),pa({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(se){var ge={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Se=ao(se.parser,ge,Bo(se.envName));return{type:"leftright",mode:se.mode,body:[Se],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Ja,mathmlBuilder:Ao}),pa({type:"array",names:["aligned"],props:{numArgs:0},handler:za,htmlBuilder:Ja,mathmlBuilder:Ao}),pa({type:"array",names:["gathered"],props:{numArgs:0},handler:function(se){var ge={cols:[{type:"align",align:"c"}],addJot:!0};return ao(se.parser,ge,"display")},htmlBuilder:Ja,mathmlBuilder:Ao}),pa({type:"array",names:["alignedat"],props:{numArgs:1},handler:za,htmlBuilder:Ja,mathmlBuilder:Ao}),It({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(se,ge){throw new c(se.funcName+" valid only within array environment")}});var ja=wo,da=ja;It({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(se,ge){var Se=se.parser,We=se.funcName,vt=ge[0];if(vt.type!=="ordgroup")throw new c("Invalid environment name",vt);for(var Yt="",Rr=0;Rr<vt.body.length;++Rr)Yt+=vn(vt.body[Rr],"textord").text;if(We==="\\begin"){if(!da.hasOwnProperty(Yt))throw new c("No such environment: "+Yt,vt);var Yr=da[Yt],mn=Se.parseArguments("\\begin{"+Yt+"}",Yr),Wn=mn.args,Jn=mn.optArgs,ri={mode:Se.mode,envName:Yt,parser:Se},Ii=Yr.handler(ri,Wn,Jn);Se.expect("\\end",!1);var Yi=Se.nextToken,ma=vn(Se.parseFunction(),"environment");if(ma.name!==Yt)throw new c("Mismatch: \\begin{"+Yt+"} matched by \\end{"+ma.name+"}",Yi);return Ii}return{type:"environment",mode:Se.mode,name:Yt,nameGroup:vt}}});var rt=hr.makeSpan;function ar(At,se){var ge=Zr(At.body,se,!0);return rt([At.mclass],ge,se)}function Fr(At,se){var ge,Se=ki(At.body,se);return At.mclass==="minner"?oi.newDocumentFragment(Se):(At.mclass==="mord"?At.isCharacterBox?(ge=Se[0],ge.type="mi"):ge=new oi.MathNode("mi",Se):(At.isCharacterBox?(ge=Se[0],ge.type="mo"):ge=new oi.MathNode("mo",Se),At.mclass==="mbin"?(ge.attributes.lspace="0.22em",ge.attributes.rspace="0.22em"):At.mclass==="mpunct"?(ge.attributes.lspace="0em",ge.attributes.rspace="0.17em"):(At.mclass==="mopen"||At.mclass==="mclose")&&(ge.attributes.lspace="0em",ge.attributes.rspace="0em")),ge)}It({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(se,ge){var Se=se.parser,We=se.funcName,vt=ge[0];return{type:"mclass",mode:Se.mode,mclass:"m"+We.substr(5),body:Cr(vt),isCharacterBox:p.isCharacterBox(vt)}},htmlBuilder:ar,mathmlBuilder:Fr});var Ir=function(se){var ge=se.type==="ordgroup"&&se.body.length?se.body[0]:se;return ge.type==="atom"&&(ge.family==="bin"||ge.family==="rel")?"m"+ge.family:"mord"};It({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(se,ge){var Se=se.parser;return{type:"mclass",mode:Se.mode,mclass:Ir(ge[0]),body:[ge[1]],isCharacterBox:p.isCharacterBox(ge[1])}}}),It({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(se,ge){var Se=se.parser,We=se.funcName,vt=ge[1],Yt=ge[0],Rr;We!=="\\stackrel"?Rr=Ir(vt):Rr="mrel";var Yr={type:"op",mode:vt.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:We!=="\\stackrel",body:Cr(vt)},mn={type:"supsub",mode:Yt.mode,base:Yr,sup:We==="\\underset"?null:Yt,sub:We==="\\underset"?Yt:null};return{type:"mclass",mode:Se.mode,mclass:Rr,body:[mn],isCharacterBox:p.isCharacterBox(mn)}},htmlBuilder:ar,mathmlBuilder:Fr});var En=function(se,ge){var Se=se.font,We=ge.withFont(Se);return ui(se.body,We)},zr=function(se,ge){var Se=se.font,We=ge.withFont(Se);return dr(se.body,We)},yr={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};It({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(se,ge){var Se=se.parser,We=se.funcName,vt=ge[0],Yt=We;return Yt in yr&&(Yt=yr[Yt]),{type:"font",mode:Se.mode,font:Yt.slice(1),body:vt}},htmlBuilder:En,mathmlBuilder:zr}),It({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(se,ge){var Se=se.parser,We=ge[0],vt=p.isCharacterBox(We);return{type:"mclass",mode:Se.mode,mclass:Ir(We),body:[{type:"font",mode:Se.mode,font:"boldsymbol",body:We}],isCharacterBox:vt}}}),It({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(se,ge){var Se=se.parser,We=se.funcName,vt=se.breakOnTokenText,Yt=Se.mode,Rr=Se.parseExpression(!0,vt),Yr="math"+We.slice(1);return{type:"font",mode:Yt,font:Yr,body:{type:"ordgroup",mode:Se.mode,body:Rr}}},htmlBuilder:En,mathmlBuilder:zr});var Cn=function(se,ge){var Se=ge;return se==="display"?Se=Se.id>=K.SCRIPT.id?Se.text():K.DISPLAY:se==="text"&&Se.size===K.DISPLAY.size?Se=K.TEXT:se==="script"?Se=K.SCRIPT:se==="scriptscript"&&(Se=K.SCRIPTSCRIPT),Se},Pr=function(se,ge){var Se=Cn(se.size,ge.style),We=Se.fracNum(),vt=Se.fracDen(),Yt;Yt=ge.havingStyle(We);var Rr=ui(se.numer,Yt,ge);if(se.continued){var Yr=8.5/ge.fontMetrics().ptPerEm,mn=3.5/ge.fontMetrics().ptPerEm;Rr.height=Rr.height<Yr?Yr:Rr.height,Rr.depth=Rr.depth<mn?mn:Rr.depth}Yt=ge.havingStyle(vt);var Wn=ui(se.denom,Yt,ge),Jn,ri,Ii;se.hasBarLine?(se.barSize?(ri=ur(se.barSize,ge),Jn=hr.makeLineSpan("frac-line",ge,ri)):Jn=hr.makeLineSpan("frac-line",ge),ri=Jn.height,Ii=Jn.height):(Jn=null,ri=0,Ii=ge.fontMetrics().defaultRuleThickness);var Yi,ma,Ta;Se.size===K.DISPLAY.size||se.size==="display"?(Yi=ge.fontMetrics().num1,ri>0?ma=3*Ii:ma=7*Ii,Ta=ge.fontMetrics().denom1):(ri>0?(Yi=ge.fontMetrics().num2,ma=Ii):(Yi=ge.fontMetrics().num3,ma=3*Ii),Ta=ge.fontMetrics().denom2);var uo;if(Jn){var co=ge.fontMetrics().axisHeight;Yi-Rr.depth-(co+.5*ri)<ma&&(Yi+=ma-(Yi-Rr.depth-(co+.5*ri))),co-.5*ri-(Wn.height-Ta)<ma&&(Ta+=ma-(co-.5*ri-(Wn.height-Ta)));var Zo=-(co-.5*ri);uo=hr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Wn,shift:Ta},{type:"elem",elem:Jn,shift:Zo},{type:"elem",elem:Rr,shift:-Yi}]},ge)}else{var bo=Yi-Rr.depth-(Wn.height-Ta);bo<ma&&(Yi+=.5*(ma-bo),Ta+=.5*(ma-bo)),uo=hr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Wn,shift:Ta},{type:"elem",elem:Rr,shift:-Yi}]},ge)}Yt=ge.havingStyle(Se),uo.height*=Yt.sizeMultiplier/ge.sizeMultiplier,uo.depth*=Yt.sizeMultiplier/ge.sizeMultiplier;var Oo;Se.size===K.DISPLAY.size?Oo=ge.fontMetrics().delim1:Oo=ge.fontMetrics().delim2;var Do,Ha;return se.leftDelim==null?Do=zn(ge,["mopen"]):Do=Ra.customSizedDelim(se.leftDelim,Oo,!0,ge.havingStyle(Se),se.mode,["mopen"]),se.continued?Ha=hr.makeSpan([]):se.rightDelim==null?Ha=zn(ge,["mclose"]):Ha=Ra.customSizedDelim(se.rightDelim,Oo,!0,ge.havingStyle(Se),se.mode,["mclose"]),hr.makeSpan(["mord"].concat(Yt.sizingClasses(ge)),[Do,hr.makeSpan(["mfrac"],[uo]),Ha],ge)},xn=function(se,ge){var Se=new oi.MathNode("mfrac",[dr(se.numer,ge),dr(se.denom,ge)]);if(!se.hasBarLine)Se.setAttribute("linethickness","0px");else if(se.barSize){var We=ur(se.barSize,ge);Se.setAttribute("linethickness",We+"em")}var vt=Cn(se.size,ge.style);if(vt.size!==ge.style.size){Se=new oi.MathNode("mstyle",[Se]);var Yt=vt.size===K.DISPLAY.size?"true":"false";Se.setAttribute("displaystyle",Yt),Se.setAttribute("scriptlevel","0")}if(se.leftDelim!=null||se.rightDelim!=null){var Rr=[];if(se.leftDelim!=null){var Yr=new oi.MathNode("mo",[new oi.TextNode(se.leftDelim.replace("\\",""))]);Yr.setAttribute("fence","true"),Rr.push(Yr)}if(Rr.push(Se),se.rightDelim!=null){var mn=new oi.MathNode("mo",[new oi.TextNode(se.rightDelim.replace("\\",""))]);mn.setAttribute("fence","true"),Rr.push(mn)}return Ei(Rr)}return Se};It({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(se,ge){var Se=se.parser,We=se.funcName,vt=ge[0],Yt=ge[1],Rr,Yr=null,mn=null,Wn="auto";switch(We){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Rr=!0;break;case"\\\\atopfrac":Rr=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Rr=!1,Yr="(",mn=")";break;case"\\\\bracefrac":Rr=!1,Yr="\\{",mn="\\}";break;case"\\\\brackfrac":Rr=!1,Yr="[",mn="]";break;default:throw new Error("Unrecognized genfrac command")}switch(We){case"\\cfrac":case"\\dfrac":case"\\dbinom":Wn="display";break;case"\\tfrac":case"\\tbinom":Wn="text";break}return{type:"genfrac",mode:Se.mode,continued:We==="\\cfrac",numer:vt,denom:Yt,hasBarLine:Rr,leftDelim:Yr,rightDelim:mn,size:Wn,barSize:null}},htmlBuilder:Pr,mathmlBuilder:xn}),It({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(se){var ge=se.parser,Se=se.funcName,We=se.token,vt;switch(Se){case"\\over":vt="\\frac";break;case"\\choose":vt="\\binom";break;case"\\atop":vt="\\\\atopfrac";break;case"\\brace":vt="\\\\bracefrac";break;case"\\brack":vt="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:ge.mode,replaceWith:vt,token:We}}});var Qn=["display","text","script","scriptscript"],$n=function(se){var ge=null;return se.length>0&&(ge=se,ge=ge==="."?null:ge),ge};It({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(se,ge){var Se=se.parser,We=ge[4],vt=ge[5],Yt=en(ge[0],"atom");Yt&&(Yt=Dt(ge[0],"open"));var Rr=Yt?$n(Yt.text):null,Yr=en(ge[1],"atom");Yr&&(Yr=Dt(ge[1],"close"));var mn=Yr?$n(Yr.text):null,Wn=vn(ge[2],"size"),Jn,ri=null;Wn.isBlank?Jn=!0:(ri=Wn.value,Jn=ri.number>0);var Ii="auto",Yi=en(ge[3],"ordgroup");if(Yi){if(Yi.body.length>0){var ma=vn(Yi.body[0],"textord");Ii=Qn[Number(ma.text)]}}else Yi=vn(ge[3],"textord"),Ii=Qn[Number(Yi.text)];return{type:"genfrac",mode:Se.mode,numer:We,denom:vt,continued:!1,hasBarLine:Jn,barSize:ri,leftDelim:Rr,rightDelim:mn,size:Ii}},htmlBuilder:Pr,mathmlBuilder:xn}),It({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(se,ge){var Se=se.parser,We=se.funcName,vt=se.token;return{type:"infix",mode:Se.mode,replaceWith:"\\\\abovefrac",size:vn(ge[0],"size").value,token:vt}}}),It({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(se,ge){var Se=se.parser,We=se.funcName,vt=ge[0],Yt=u(vn(ge[1],"infix").size),Rr=ge[2],Yr=Yt.number>0;return{type:"genfrac",mode:Se.mode,numer:vt,denom:Rr,continued:!1,hasBarLine:Yr,barSize:Yt,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Pr,mathmlBuilder:xn});var Kn=function(se,ge){var Se=ge.style,We,vt,Yt=en(se,"supsub");Yt?(We=Yt.sup?ui(Yt.sup,ge.havingStyle(Se.sup()),ge):ui(Yt.sub,ge.havingStyle(Se.sub()),ge),vt=vn(Yt.base,"horizBrace")):vt=vn(se,"horizBrace");var Rr=ui(vt.base,ge.havingBaseStyle(K.DISPLAY)),Yr=wn.svgSpan(vt,ge),mn;if(vt.isOver?(mn=hr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Rr},{type:"kern",size:.1},{type:"elem",elem:Yr}]},ge),mn.children[0].children[0].children[1].classes.push("svg-align")):(mn=hr.makeVList({positionType:"bottom",positionData:Rr.depth+.1+Yr.height,children:[{type:"elem",elem:Yr},{type:"kern",size:.1},{type:"elem",elem:Rr}]},ge),mn.children[0].children[0].children[0].classes.push("svg-align")),We){var Wn=hr.makeSpan(["mord",vt.isOver?"mover":"munder"],[mn],ge);vt.isOver?mn=hr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Wn},{type:"kern",size:.2},{type:"elem",elem:We}]},ge):mn=hr.makeVList({positionType:"bottom",positionData:Wn.depth+.2+We.height+We.depth,children:[{type:"elem",elem:We},{type:"kern",size:.2},{type:"elem",elem:Wn}]},ge)}return hr.makeSpan(["mord",vt.isOver?"mover":"munder"],[mn],ge)},si=function(se,ge){var Se=wn.mathMLnode(se.label);return new oi.MathNode(se.isOver?"mover":"munder",[dr(se.base,ge),Se])};It({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(se,ge){var Se=se.parser,We=se.funcName;return{type:"horizBrace",mode:Se.mode,label:We,isOver:/^\\over/.test(We),base:ge[0]}},htmlBuilder:Kn,mathmlBuilder:si}),It({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(se,ge){var Se=se.parser,We=ge[1],vt=vn(ge[0],"url").url;return Se.settings.isTrusted({command:"\\href",url:vt})?{type:"href",mode:Se.mode,href:vt,body:Cr(We)}:Se.formatUnsupportedCmd("\\href")},htmlBuilder:function(se,ge){var Se=Zr(se.body,ge,!1);return hr.makeAnchor(se.href,[],Se,ge)},mathmlBuilder:function(se,ge){var Se=ji(se.body,ge);return Se instanceof zi||(Se=new zi("mrow",[Se])),Se.setAttribute("href",se.href),Se}}),It({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(se,ge){var Se=se.parser,We=vn(ge[0],"url").url;if(!Se.settings.isTrusted({command:"\\url",url:We}))return Se.formatUnsupportedCmd("\\url");for(var vt=[],Yt=0;Yt<We.length;Yt++){var Rr=We[Yt];Rr==="~"&&(Rr="\\textasciitilde"),vt.push({type:"textord",mode:"text",text:Rr})}var Yr={type:"text",mode:Se.mode,font:"\\texttt",body:vt};return{type:"href",mode:Se.mode,href:We,body:Cr(Yr)}}}),It({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(se,ge){var Se=se.parser;return{type:"htmlmathml",mode:Se.mode,html:Cr(ge[0]),mathml:Cr(ge[1])}},htmlBuilder:function(se,ge){var Se=Zr(se.html,ge,!1);return hr.makeFragment(Se)},mathmlBuilder:function(se,ge){return ji(se.mathml,ge)}});var Xn=function(se){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(se))return{number:+se,unit:"bp"};var ge=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(se);if(!ge)throw new c("Invalid size: '"+se+"' in \\includegraphics");var Se={number:+(ge[1]+ge[2]),unit:ge[3]};if(!xr(Se))throw new c("Invalid unit: '"+Se.unit+"' in \\includegraphics.");return Se};It({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(se,ge,Se){var We=se.parser,vt={number:0,unit:"em"},Yt={number:.9,unit:"em"},Rr={number:0,unit:"em"},Yr="";if(Se[0])for(var mn=vn(Se[0],"raw").string,Wn=mn.split(","),Jn=0;Jn<Wn.length;Jn++){var ri=Wn[Jn].split("=");if(ri.length===2){var Ii=ri[1].trim();switch(ri[0].trim()){case"alt":Yr=Ii;break;case"width":vt=Xn(Ii);break;case"height":Yt=Xn(Ii);break;case"totalheight":Rr=Xn(Ii);break;default:throw new c("Invalid key: '"+ri[0]+"' in \\includegraphics.")}}}var Yi=vn(ge[0],"url").url;return Yr===""&&(Yr=Yi,Yr=Yr.replace(/^.*[\\/]/,""),Yr=Yr.substring(0,Yr.lastIndexOf("."))),We.settings.isTrusted({command:"\\includegraphics",url:Yi})?{type:"includegraphics",mode:We.mode,alt:Yr,width:vt,height:Yt,totalheight:Rr,src:Yi}:We.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(se,ge){var Se=ur(se.height,ge),We=0;se.totalheight.number>0&&(We=ur(se.totalheight,ge)-Se,We=Number(We.toFixed(2)));var vt=0;se.width.number>0&&(vt=ur(se.width,ge));var Yt={height:Se+We+"em"};vt>0&&(Yt.width=vt+"em"),We>0&&(Yt.verticalAlign=-We+"em");var Rr=new Ae(se.src,se.alt,Yt);return Rr.height=Se,Rr.depth=We,Rr},mathmlBuilder:function(se,ge){var Se=new oi.MathNode("mglyph",[]);Se.setAttribute("alt",se.alt);var We=ur(se.height,ge),vt=0;if(se.totalheight.number>0&&(vt=ur(se.totalheight,ge)-We,vt=vt.toFixed(2),Se.setAttribute("valign","-"+vt+"em")),Se.setAttribute("height",We+vt+"em"),se.width.number>0){var Yt=ur(se.width,ge);Se.setAttribute("width",Yt+"em")}return Se.setAttribute("src",se.src),Se}}),It({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(se,ge){var Se=se.parser,We=se.funcName,vt=vn(ge[0],"size");if(Se.settings.strict){var Yt=We[1]==="m",Rr=vt.value.unit==="mu";Yt?(Rr||Se.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+We+" supports only mu units, "+("not "+vt.value.unit+" units")),Se.mode!=="math"&&Se.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+We+" works only in math mode")):Rr&&Se.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+We+" doesn't support mu units")}return{type:"kern",mode:Se.mode,dimension:vt.value}},htmlBuilder:function(se,ge){return hr.makeGlue(se.dimension,ge)},mathmlBuilder:function(se,ge){var Se=ur(se.dimension,ge);return new oi.SpaceNode(Se)}}),It({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(se,ge){var Se=se.parser,We=se.funcName,vt=ge[0];return{type:"lap",mode:Se.mode,alignment:We.slice(5),body:vt}},htmlBuilder:function(se,ge){var Se;se.alignment==="clap"?(Se=hr.makeSpan([],[ui(se.body,ge)]),Se=hr.makeSpan(["inner"],[Se],ge)):Se=hr.makeSpan(["inner"],[ui(se.body,ge)]);var We=hr.makeSpan(["fix"],[]),vt=hr.makeSpan([se.alignment],[Se,We],ge),Yt=hr.makeSpan(["strut"]);return Yt.style.height=vt.height+vt.depth+"em",Yt.style.verticalAlign=-vt.depth+"em",vt.children.unshift(Yt),vt=hr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:vt}]},ge),hr.makeSpan(["mord"],[vt],ge)},mathmlBuilder:function(se,ge){var Se=new oi.MathNode("mpadded",[dr(se.body,ge)]);if(se.alignment!=="rlap"){var We=se.alignment==="llap"?"-1":"-0.5";Se.setAttribute("lspace",We+"width")}return Se.setAttribute("width","0px"),Se}}),It({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(se,ge){var Se=se.funcName,We=se.parser,vt=We.mode;We.switchMode("math");var Yt=Se==="\\("?"\\)":"$",Rr=We.parseExpression(!1,Yt);return We.expect(Yt),We.switchMode(vt),{type:"styling",mode:We.mode,style:"text",body:Rr}}}),It({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(se,ge){throw new c("Mismatched "+se.funcName)}});var ti=function(se,ge){switch(ge.style.size){case K.DISPLAY.size:return se.display;case K.TEXT.size:return se.text;case K.SCRIPT.size:return se.script;case K.SCRIPTSCRIPT.size:return se.scriptscript;default:return se.text}};It({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(se,ge){var Se=se.parser;return{type:"mathchoice",mode:Se.mode,display:Cr(ge[0]),text:Cr(ge[1]),script:Cr(ge[2]),scriptscript:Cr(ge[3])}},htmlBuilder:function(se,ge){var Se=ti(se,ge),We=Zr(Se,ge,!1);return hr.makeFragment(We)},mathmlBuilder:function(se,ge){var Se=ti(se,ge);return ji(Se,ge)}});var di=function(se,ge,Se,We,vt,Yt,Rr){se=hr.makeSpan([],[se]);var Yr,mn;if(ge){var Wn=ui(ge,We.havingStyle(vt.sup()),We);mn={elem:Wn,kern:Math.max(We.fontMetrics().bigOpSpacing1,We.fontMetrics().bigOpSpacing3-Wn.depth)}}if(Se){var Jn=ui(Se,We.havingStyle(vt.sub()),We);Yr={elem:Jn,kern:Math.max(We.fontMetrics().bigOpSpacing2,We.fontMetrics().bigOpSpacing4-Jn.height)}}var ri;if(mn&&Yr){var Ii=We.fontMetrics().bigOpSpacing5+Yr.elem.height+Yr.elem.depth+Yr.kern+se.depth+Rr;ri=hr.makeVList({positionType:"bottom",positionData:Ii,children:[{type:"kern",size:We.fontMetrics().bigOpSpacing5},{type:"elem",elem:Yr.elem,marginLeft:-Yt+"em"},{type:"kern",size:Yr.kern},{type:"elem",elem:se},{type:"kern",size:mn.kern},{type:"elem",elem:mn.elem,marginLeft:Yt+"em"},{type:"kern",size:We.fontMetrics().bigOpSpacing5}]},We)}else if(Yr){var Yi=se.height-Rr;ri=hr.makeVList({positionType:"top",positionData:Yi,children:[{type:"kern",size:We.fontMetrics().bigOpSpacing5},{type:"elem",elem:Yr.elem,marginLeft:-Yt+"em"},{type:"kern",size:Yr.kern},{type:"elem",elem:se}]},We)}else if(mn){var ma=se.depth+Rr;ri=hr.makeVList({positionType:"bottom",positionData:ma,children:[{type:"elem",elem:se},{type:"kern",size:mn.kern},{type:"elem",elem:mn.elem,marginLeft:Yt+"em"},{type:"kern",size:We.fontMetrics().bigOpSpacing5}]},We)}else return se;return hr.makeSpan(["mop","op-limits"],[ri],We)},Bi=["\\smallint"],yi=function(se,ge){var Se,We,vt=!1,Yt,Rr=en(se,"supsub");Rr?(Se=Rr.sup,We=Rr.sub,Yt=vn(Rr.base,"op"),vt=!0):Yt=vn(se,"op");var Yr=ge.style,mn=!1;Yr.size===K.DISPLAY.size&&Yt.symbol&&!p.contains(Bi,Yt.name)&&(mn=!0);var Wn;if(Yt.symbol){var Jn=mn?"Size2-Regular":"Size1-Regular",ri="";if((Yt.name==="\\oiint"||Yt.name==="\\oiiint")&&(ri=Yt.name.substr(1),Yt.name=ri==="oiint"?"\\iint":"\\iiint"),Wn=hr.makeSymbol(Yt.name,Jn,"math",ge,["mop","op-symbol",mn?"large-op":"small-op"]),ri.length>0){var Ii=Wn.italic,Yi=hr.staticSvg(ri+"Size"+(mn?"2":"1"),ge);Wn=hr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Wn,shift:0},{type:"elem",elem:Yi,shift:mn?.08:0}]},ge),Yt.name="\\"+ri,Wn.classes.unshift("mop"),Wn.italic=Ii}}else if(Yt.body){var ma=Zr(Yt.body,ge,!0);ma.length===1&&ma[0]instanceof Me?(Wn=ma[0],Wn.classes[0]="mop"):Wn=hr.makeSpan(["mop"],hr.tryCombineChars(ma),ge)}else{for(var Ta=[],uo=1;uo<Yt.name.length;uo++)Ta.push(hr.mathsym(Yt.name[uo],Yt.mode,ge));Wn=hr.makeSpan(["mop"],Ta,ge)}var bo=0,co=0;return(Wn instanceof Me||Yt.name==="\\oiint"||Yt.name==="\\oiiint")&&!Yt.suppressBaseShift&&(bo=(Wn.height-Wn.depth)/2-ge.fontMetrics().axisHeight,co=Wn.italic),vt?di(Wn,Se,We,ge,Yr,co,bo):(bo&&(Wn.style.position="relative",Wn.style.top=bo+"em"),Wn)},Xi=function(se,ge){var Se;if(se.symbol)Se=new zi("mo",[hn(se.name,se.mode)]),p.contains(Bi,se.name)&&Se.setAttribute("largeop","false");else if(se.body)Se=new zi("mo",ki(se.body,ge));else{Se=new zi("mi",[new Ri(se.name.slice(1))]);var We=new zi("mo",[hn("\u2061","text")]);se.parentIsSupSub?Se=new zi("mo",[Se,We]):Se=Li([Se,We])}return Se},ba={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};It({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:function(se,ge){var Se=se.parser,We=se.funcName,vt=We;return vt.length===1&&(vt=ba[vt]),{type:"op",mode:Se.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:vt}},htmlBuilder:yi,mathmlBuilder:Xi}),It({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(se,ge){var Se=se.parser,We=ge[0];return{type:"op",mode:Se.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Cr(We)}},htmlBuilder:yi,mathmlBuilder:Xi});var ta={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};It({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(se){var ge=se.parser,Se=se.funcName;return{type:"op",mode:ge.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:Se}},htmlBuilder:yi,mathmlBuilder:Xi}),It({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(se){var ge=se.parser,Se=se.funcName;return{type:"op",mode:ge.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:Se}},htmlBuilder:yi,mathmlBuilder:Xi}),It({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(se){var ge=se.parser,Se=se.funcName,We=Se;return We.length===1&&(We=ta[We]),{type:"op",mode:ge.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:We}},htmlBuilder:yi,mathmlBuilder:Xi});var Qi=function(se,ge){var Se,We,vt=!1,Yt,Rr=en(se,"supsub");Rr?(Se=Rr.sup,We=Rr.sub,Yt=vn(Rr.base,"operatorname"),vt=!0):Yt=vn(se,"operatorname");var Yr;if(Yt.body.length>0){for(var mn=Yt.body.map(function(Ii){var Yi=Ii.text;return typeof Yi=="string"?{type:"textord",mode:Ii.mode,text:Yi}:Ii}),Wn=Zr(mn,ge.withFont("mathrm"),!0),Jn=0;Jn<Wn.length;Jn++){var ri=Wn[Jn];ri instanceof Me&&(ri.text=ri.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Yr=hr.makeSpan(["mop"],Wn,ge)}else Yr=hr.makeSpan(["mop"],[],ge);return vt?di(Yr,Se,We,ge,ge.style,0,0):Yr},aa=function(se,ge){for(var Se=ki(se.body,ge.withFont("mathrm")),We=!0,vt=0;vt<Se.length;vt++){var Yt=Se[vt];if(!(Yt instanceof oi.SpaceNode))if(Yt instanceof oi.MathNode)switch(Yt.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Rr=Yt.children[0];Yt.children.length===1&&Rr instanceof oi.TextNode?Rr.text=Rr.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):We=!1;break}default:We=!1}else We=!1}if(We){var Yr=Se.map(function(Jn){return Jn.toText()}).join("");Se=[new oi.TextNode(Yr)]}var mn=new oi.MathNode("mi",Se);mn.setAttribute("mathvariant","normal");var Wn=new oi.MathNode("mo",[hn("\u2061","text")]);return se.parentIsSupSub?new oi.MathNode("mo",[mn,Wn]):oi.newDocumentFragment([mn,Wn])};It({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(se,ge){var Se=se.parser,We=se.funcName,vt=ge[0];return{type:"operatorname",mode:Se.mode,body:Cr(vt),alwaysHandleSupSub:We==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:Qi,mathmlBuilder:aa}),or({type:"ordgroup",htmlBuilder:function(se,ge){return se.semisimple?hr.makeFragment(Zr(se.body,ge,!1)):hr.makeSpan(["mord"],Zr(se.body,ge,!0),ge)},mathmlBuilder:function(se,ge){return ji(se.body,ge,!0)}}),It({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(se,ge){var Se=se.parser,We=ge[0];return{type:"overline",mode:Se.mode,body:We}},htmlBuilder:function(se,ge){var Se=ui(se.body,ge.havingCrampedStyle()),We=hr.makeLineSpan("overline-line",ge),vt=ge.fontMetrics().defaultRuleThickness,Yt=hr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Se},{type:"kern",size:3*vt},{type:"elem",elem:We},{type:"kern",size:vt}]},ge);return hr.makeSpan(["mord","overline"],[Yt],ge)},mathmlBuilder:function(se,ge){var Se=new oi.MathNode("mo",[new oi.TextNode("\u203E")]);Se.setAttribute("stretchy","true");var We=new oi.MathNode("mover",[dr(se.body,ge),Se]);return We.setAttribute("accent","true"),We}}),It({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(se,ge){var Se=se.parser,We=ge[0];return{type:"phantom",mode:Se.mode,body:Cr(We)}},htmlBuilder:function(se,ge){var Se=Zr(se.body,ge.withPhantom(),!1);return hr.makeFragment(Se)},mathmlBuilder:function(se,ge){var Se=ki(se.body,ge);return new oi.MathNode("mphantom",Se)}}),It({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(se,ge){var Se=se.parser,We=ge[0];return{type:"hphantom",mode:Se.mode,body:We}},htmlBuilder:function(se,ge){var Se=hr.makeSpan([],[ui(se.body,ge.withPhantom())]);if(Se.height=0,Se.depth=0,Se.children)for(var We=0;We<Se.children.length;We++)Se.children[We].height=0,Se.children[We].depth=0;return Se=hr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Se}]},ge),hr.makeSpan(["mord"],[Se],ge)},mathmlBuilder:function(se,ge){var Se=ki(Cr(se.body),ge),We=new oi.MathNode("mphantom",Se),vt=new oi.MathNode("mpadded",[We]);return vt.setAttribute("height","0px"),vt.setAttribute("depth","0px"),vt}}),It({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(se,ge){var Se=se.parser,We=ge[0];return{type:"vphantom",mode:Se.mode,body:We}},htmlBuilder:function(se,ge){var Se=hr.makeSpan(["inner"],[ui(se.body,ge.withPhantom())]),We=hr.makeSpan(["fix"],[]);return hr.makeSpan(["mord","rlap"],[Se,We],ge)},mathmlBuilder:function(se,ge){var Se=ki(Cr(se.body),ge),We=new oi.MathNode("mphantom",Se),vt=new oi.MathNode("mpadded",[We]);return vt.setAttribute("width","0px"),vt}}),It({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(se,ge){var Se=se.parser,We=vn(ge[0],"size").value,vt=ge[1];return{type:"raisebox",mode:Se.mode,dy:We,body:vt}},htmlBuilder:function(se,ge){var Se=ui(se.body,ge),We=ur(se.dy,ge);return hr.makeVList({positionType:"shift",positionData:-We,children:[{type:"elem",elem:Se}]},ge)},mathmlBuilder:function(se,ge){var Se=new oi.MathNode("mpadded",[dr(se.body,ge)]),We=se.dy.number+se.dy.unit;return Se.setAttribute("voffset",We),Se}}),It({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(se,ge,Se){var We=se.parser,vt=Se[0],Yt=vn(ge[0],"size"),Rr=vn(ge[1],"size");return{type:"rule",mode:We.mode,shift:vt&&vn(vt,"size").value,width:Yt.value,height:Rr.value}},htmlBuilder:function(se,ge){var Se=hr.makeSpan(["mord","rule"],[],ge),We=ur(se.width,ge),vt=ur(se.height,ge),Yt=se.shift?ur(se.shift,ge):0;return Se.style.borderRightWidth=We+"em",Se.style.borderTopWidth=vt+"em",Se.style.bottom=Yt+"em",Se.width=We,Se.height=vt+Yt,Se.depth=-Yt,Se.maxFontSize=vt*1.125*ge.sizeMultiplier,Se},mathmlBuilder:function(se,ge){var Se=ur(se.width,ge),We=ur(se.height,ge),vt=se.shift?ur(se.shift,ge):0,Yt=ge.color&&ge.getColor()||"black",Rr=new oi.MathNode("mspace");Rr.setAttribute("mathbackground",Yt),Rr.setAttribute("width",Se+"em"),Rr.setAttribute("height",We+"em");var Yr=new oi.MathNode("mpadded",[Rr]);return vt>=0?Yr.setAttribute("height","+"+vt+"em"):(Yr.setAttribute("height",vt+"em"),Yr.setAttribute("depth","+"+-vt+"em")),Yr.setAttribute("voffset",vt+"em"),Yr}});function fa(At,se,ge){for(var Se=Zr(At,se,!1),We=se.sizeMultiplier/ge.sizeMultiplier,vt=0;vt<Se.length;vt++){var Yt=Se[vt].classes.indexOf("sizing");Yt<0?Array.prototype.push.apply(Se[vt].classes,se.sizingClasses(ge)):Se[vt].classes[Yt+1]==="reset-size"+se.size&&(Se[vt].classes[Yt+1]="reset-size"+ge.size),Se[vt].height*=We,Se[vt].depth*=We}return hr.makeFragment(Se)}var xo=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Za=function(se,ge){var Se=ge.havingSize(se.size);return fa(se.body,Se,ge)};It({type:"sizing",names:xo,props:{numArgs:0,allowedInText:!0},handler:function(se,ge){var Se=se.breakOnTokenText,We=se.funcName,vt=se.parser,Yt=vt.parseExpression(!1,Se);return{type:"sizing",mode:vt.mode,size:xo.indexOf(We)+1,body:Yt}},htmlBuilder:Za,mathmlBuilder:function(se,ge){var Se=ge.havingSize(se.size),We=ki(se.body,Se),vt=new oi.MathNode("mstyle",We);return vt.setAttribute("mathsize",Se.sizeMultiplier+"em"),vt}}),It({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(se,ge,Se){var We=se.parser,vt=!1,Yt=!1,Rr=Se[0]&&vn(Se[0],"ordgroup");if(Rr)for(var Yr="",mn=0;mn<Rr.body.length;++mn){var Wn=Rr.body[mn];if(Yr=Wn.text,Yr==="t")vt=!0;else if(Yr==="b")Yt=!0;else{vt=!1,Yt=!1;break}}else vt=!0,Yt=!0;var Jn=ge[0];return{type:"smash",mode:We.mode,body:Jn,smashHeight:vt,smashDepth:Yt}},htmlBuilder:function(se,ge){var Se=hr.makeSpan([],[ui(se.body,ge)]);if(!se.smashHeight&&!se.smashDepth)return Se;if(se.smashHeight&&(Se.height=0,Se.children))for(var We=0;We<Se.children.length;We++)Se.children[We].height=0;if(se.smashDepth&&(Se.depth=0,Se.children))for(var vt=0;vt<Se.children.length;vt++)Se.children[vt].depth=0;var Yt=hr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Se}]},ge);return hr.makeSpan(["mord"],[Yt],ge)},mathmlBuilder:function(se,ge){var Se=new oi.MathNode("mpadded",[dr(se.body,ge)]);return se.smashHeight&&Se.setAttribute("height","0px"),se.smashDepth&&Se.setAttribute("depth","0px"),Se}}),It({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(se,ge,Se){var We=se.parser,vt=Se[0],Yt=ge[0];return{type:"sqrt",mode:We.mode,body:Yt,index:vt}},htmlBuilder:function(se,ge){var Se=ui(se.body,ge.havingCrampedStyle());Se.height===0&&(Se.height=ge.fontMetrics().xHeight),Se=hr.wrapFragment(Se,ge);var We=ge.fontMetrics(),vt=We.defaultRuleThickness,Yt=vt;ge.style.id<K.TEXT.id&&(Yt=ge.fontMetrics().xHeight);var Rr=vt+Yt/4,Yr=Se.height+Se.depth+Rr+vt,mn=Ra.sqrtImage(Yr,ge),Wn=mn.span,Jn=mn.ruleWidth,ri=mn.advanceWidth,Ii=Wn.height-Jn;Ii>Se.height+Se.depth+Rr&&(Rr=(Rr+Ii-Se.height-Se.depth)/2);var Yi=Wn.height-Se.height-Rr-Jn;Se.style.paddingLeft=ri+"em";var ma=hr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Se,wrapperClasses:["svg-align"]},{type:"kern",size:-(Se.height+Yi)},{type:"elem",elem:Wn},{type:"kern",size:Jn}]},ge);if(se.index){var Ta=ge.havingStyle(K.SCRIPTSCRIPT),uo=ui(se.index,Ta,ge),bo=.6*(ma.height-ma.depth),co=hr.makeVList({positionType:"shift",positionData:-bo,children:[{type:"elem",elem:uo}]},ge),Zo=hr.makeSpan(["root"],[co]);return hr.makeSpan(["mord","sqrt"],[Zo,ma],ge)}else return hr.makeSpan(["mord","sqrt"],[ma],ge)},mathmlBuilder:function(se,ge){var Se=se.body,We=se.index;return We?new oi.MathNode("mroot",[dr(Se,ge),dr(We,ge)]):new oi.MathNode("msqrt",[dr(Se,ge)])}});var Wi={display:K.DISPLAY,text:K.TEXT,script:K.SCRIPT,scriptscript:K.SCRIPTSCRIPT};It({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(se,ge){var Se=se.breakOnTokenText,We=se.funcName,vt=se.parser,Yt=vt.parseExpression(!0,Se),Rr=We.slice(1,We.length-5);return{type:"styling",mode:vt.mode,style:Rr,body:Yt}},htmlBuilder:function(se,ge){var Se=Wi[se.style],We=ge.havingStyle(Se).withFont("");return fa(se.body,We,ge)},mathmlBuilder:function(se,ge){var Se=Wi[se.style],We=ge.havingStyle(Se),vt=ki(se.body,We),Yt=new oi.MathNode("mstyle",vt),Rr={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},Yr=Rr[se.style];return Yt.setAttribute("scriptlevel",Yr[0]),Yt.setAttribute("displaystyle",Yr[1]),Yt}});var Gi=function(se,ge){var Se=se.base;if(Se)if(Se.type==="op"){var We=Se.limits&&(ge.style.size===K.DISPLAY.size||Se.alwaysHandleSupSub);return We?yi:null}else if(Se.type==="operatorname"){var vt=Se.alwaysHandleSupSub&&(ge.style.size===K.DISPLAY.size||Se.limits);return vt?Qi:null}else{if(Se.type==="accent")return p.isCharacterBox(Se.base)?rn:null;if(Se.type==="horizBrace"){var Yt=!se.sub;return Yt===Se.isOver?Kn:null}else return null}else return null};or({type:"supsub",htmlBuilder:function(se,ge){var Se=Gi(se,ge);if(Se)return Se(se,ge);var We=se.base,vt=se.sup,Yt=se.sub,Rr=ui(We,ge),Yr,mn,Wn=ge.fontMetrics(),Jn=0,ri=0,Ii=We&&p.isCharacterBox(We);if(vt){var Yi=ge.havingStyle(ge.style.sup());Yr=ui(vt,Yi,ge),Ii||(Jn=Rr.height-Yi.fontMetrics().supDrop*Yi.sizeMultiplier/ge.sizeMultiplier)}if(Yt){var ma=ge.havingStyle(ge.style.sub());mn=ui(Yt,ma,ge),Ii||(ri=Rr.depth+ma.fontMetrics().subDrop*ma.sizeMultiplier/ge.sizeMultiplier)}var Ta;ge.style===K.DISPLAY?Ta=Wn.sup1:ge.style.cramped?Ta=Wn.sup3:Ta=Wn.sup2;var uo=ge.sizeMultiplier,bo=.5/Wn.ptPerEm/uo+"em",co=null;if(mn){var Zo=se.base&&se.base.type==="op"&&se.base.name&&(se.base.name==="\\oiint"||se.base.name==="\\oiiint");(Rr instanceof Me||Zo)&&(co=-Rr.italic+"em")}var Oo;if(Yr&&mn){Jn=Math.max(Jn,Ta,Yr.depth+.25*Wn.xHeight),ri=Math.max(ri,Wn.sub2);var Do=Wn.defaultRuleThickness,Ha=4*Do;if(Jn-Yr.depth-(mn.height-ri)<Ha){ri=Ha-(Jn-Yr.depth)+mn.height;var Ya=.8*Wn.xHeight-(Jn-Yr.depth);Ya>0&&(Jn+=Ya,ri-=Ya)}var ps=[{type:"elem",elem:mn,shift:ri,marginRight:bo,marginLeft:co},{type:"elem",elem:Yr,shift:-Jn,marginRight:bo}];Oo=hr.makeVList({positionType:"individualShift",children:ps},ge)}else if(mn){ri=Math.max(ri,Wn.sub1,mn.height-.8*Wn.xHeight);var ts=[{type:"elem",elem:mn,marginLeft:co,marginRight:bo}];Oo=hr.makeVList({positionType:"shift",positionData:ri,children:ts},ge)}else if(Yr)Jn=Math.max(Jn,Ta,Yr.depth+.25*Wn.xHeight),Oo=hr.makeVList({positionType:"shift",positionData:-Jn,children:[{type:"elem",elem:Yr,marginRight:bo}]},ge);else throw new Error("supsub must have either sup or sub.");var $o=Fn(Rr,"right")||"mord";return hr.makeSpan([$o],[Rr,hr.makeSpan(["msupsub"],[Oo])],ge)},mathmlBuilder:function(se,ge){var Se=!1,We,vt,Yt=en(se.base,"horizBrace");Yt&&(vt=!!se.sup,vt===Yt.isOver&&(Se=!0,We=Yt.isOver)),se.base&&(se.base.type==="op"||se.base.type==="operatorname")&&(se.base.parentIsSupSub=!0);var Rr=[dr(se.base,ge)];se.sub&&Rr.push(dr(se.sub,ge)),se.sup&&Rr.push(dr(se.sup,ge));var Yr;if(Se)Yr=We?"mover":"munder";else if(se.sub)if(se.sup){var Jn=se.base;Jn&&Jn.type==="op"&&Jn.limits&&ge.style===K.DISPLAY||Jn&&Jn.type==="operatorname"&&Jn.alwaysHandleSupSub&&(ge.style===K.DISPLAY||Jn.limits)?Yr="munderover":Yr="msubsup"}else{var Wn=se.base;Wn&&Wn.type==="op"&&Wn.limits&&(ge.style===K.DISPLAY||Wn.alwaysHandleSupSub)||Wn&&Wn.type==="operatorname"&&Wn.alwaysHandleSupSub&&(Wn.limits||ge.style===K.DISPLAY)?Yr="munder":Yr="msub"}else{var mn=se.base;mn&&mn.type==="op"&&mn.limits&&(ge.style===K.DISPLAY||mn.alwaysHandleSupSub)||mn&&mn.type==="operatorname"&&mn.alwaysHandleSupSub&&(mn.limits||ge.style===K.DISPLAY)?Yr="mover":Yr="msup"}var ri=new oi.MathNode(Yr,Rr);return ri}}),or({type:"atom",htmlBuilder:function(se,ge){return hr.mathsym(se.text,se.mode,ge,["m"+se.family])},mathmlBuilder:function(se,ge){var Se=new oi.MathNode("mo",[hn(se.text,se.mode)]);if(se.family==="bin"){var We=Hi(se,ge);We==="bold-italic"&&Se.setAttribute("mathvariant",We)}else se.family==="punct"?Se.setAttribute("separator","true"):(se.family==="open"||se.family==="close")&&Se.setAttribute("stretchy","false");return Se}});var ca={mi:"italic",mn:"normal",mtext:"normal"};or({type:"mathord",htmlBuilder:function(se,ge){return hr.makeOrd(se,ge,"mathord")},mathmlBuilder:function(se,ge){var Se=new oi.MathNode("mi",[hn(se.text,se.mode,ge)]),We=Hi(se,ge)||"italic";return We!==ca[Se.type]&&Se.setAttribute("mathvariant",We),Se}}),or({type:"textord",htmlBuilder:function(se,ge){return hr.makeOrd(se,ge,"textord")},mathmlBuilder:function(se,ge){var Se=hn(se.text,se.mode,ge),We=Hi(se,ge)||"normal",vt;return se.mode==="text"?vt=new oi.MathNode("mtext",[Se]):/[0-9]/.test(se.text)?vt=new oi.MathNode("mn",[Se]):se.text==="\\prime"?vt=new oi.MathNode("mo",[Se]):vt=new oi.MathNode("mi",[Se]),We!==ca[vt.type]&&vt.setAttribute("mathvariant",We),vt}});var ya={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Xa={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};or({type:"spacing",htmlBuilder:function(se,ge){if(Xa.hasOwnProperty(se.text)){var Se=Xa[se.text].className||"";if(se.mode==="text"){var We=hr.makeOrd(se,ge,"textord");return We.classes.push(Se),We}else return hr.makeSpan(["mspace",Se],[hr.mathsym(se.text,se.mode,ge)],ge)}else{if(ya.hasOwnProperty(se.text))return hr.makeSpan(["mspace",ya[se.text]],[],ge);throw new c('Unknown type of space "'+se.text+'"')}},mathmlBuilder:function(se,ge){var Se;if(Xa.hasOwnProperty(se.text))Se=new oi.MathNode("mtext",[new oi.TextNode("\xA0")]);else{if(ya.hasOwnProperty(se.text))return new oi.MathNode("mspace");throw new c('Unknown type of space "'+se.text+'"')}return Se}});var _a=function(){var se=new oi.MathNode("mtd",[]);return se.setAttribute("width","50%"),se};or({type:"tag",mathmlBuilder:function(se,ge){var Se=new oi.MathNode("mtable",[new oi.MathNode("mtr",[_a(),new oi.MathNode("mtd",[ji(se.body,ge)]),_a(),new oi.MathNode("mtd",[ji(se.tag,ge)])])]);return Se.setAttribute("width","100%"),Se}});var qa={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},ro={"\\textbf":"textbf","\\textmd":"textmd"},Uo={"\\textit":"textit","\\textup":"textup"},zo=function(se,ge){var Se=se.font;return Se?qa[Se]?ge.withTextFontFamily(qa[Se]):ro[Se]?ge.withTextFontWeight(ro[Se]):ge.withTextFontShape(Uo[Se]):ge};It({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(se,ge){var Se=se.parser,We=se.funcName,vt=ge[0];return{type:"text",mode:Se.mode,body:Cr(vt),font:We}},htmlBuilder:function(se,ge){var Se=zo(se,ge),We=Zr(se.body,Se,!0);return hr.makeSpan(["mord","text"],hr.tryCombineChars(We),Se)},mathmlBuilder:function(se,ge){var Se=zo(se,ge);return ji(se.body,Se)}}),It({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(se,ge){var Se=se.parser;return{type:"underline",mode:Se.mode,body:ge[0]}},htmlBuilder:function(se,ge){var Se=ui(se.body,ge),We=hr.makeLineSpan("underline-line",ge),vt=ge.fontMetrics().defaultRuleThickness,Yt=hr.makeVList({positionType:"top",positionData:Se.height,children:[{type:"kern",size:vt},{type:"elem",elem:We},{type:"kern",size:3*vt},{type:"elem",elem:Se}]},ge);return hr.makeSpan(["mord","underline"],[Yt],ge)},mathmlBuilder:function(se,ge){var Se=new oi.MathNode("mo",[new oi.TextNode("\u203E")]);Se.setAttribute("stretchy","true");var We=new oi.MathNode("munder",[dr(se.body,ge),Se]);return We.setAttribute("accentunder","true"),We}}),It({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(se,ge,Se){throw new c("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(se,ge){for(var Se=hs(se),We=[],vt=ge.havingStyle(ge.style.text()),Yt=0;Yt<Se.length;Yt++){var Rr=Se[Yt];Rr==="~"&&(Rr="\\textasciitilde"),We.push(hr.makeSymbol(Rr,"Typewriter-Regular",se.mode,vt,["mord","texttt"]))}return hr.makeSpan(["mord","text"].concat(vt.sizingClasses(ge)),hr.tryCombineChars(We),vt)},mathmlBuilder:function(se,ge){var Se=new oi.TextNode(hs(se)),We=new oi.MathNode("mtext",[Se]);return We.setAttribute("mathvariant","monospace"),We}});var hs=function(se){return se.body.replace(/ /g,se.star?"\u2423":"\xA0")},Po=ir,Mo=Po,Fa=`[ \r
|
|
|
]`,$a="\\\\[a-zA-Z@]+",Ca="\\\\[^\uD800-\uDFFF]",Eo=""+$a+Fa+"*",qo=new RegExp("^("+$a+")"+Fa+"*$"),vo="[\u0300-\u036F]",rs=new RegExp(vo+"+$"),ho="("+Fa+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(vo+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(vo+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+Eo)+("|"+Ca+")"),No=function(){function At(ge,Se){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=ge,this.settings=Se,this.tokenRegex=new RegExp(ho,"g"),this.catcodes={"%":14}}var se=At.prototype;return se.setCatcode=function(Se,We){this.catcodes[Se]=We},se.lex=function(){var Se=this.input,We=this.tokenRegex.lastIndex;if(We===Se.length)return new m("EOF",new S(this,We,We));var vt=this.tokenRegex.exec(Se);if(vt===null||vt.index!==We)throw new c("Unexpected character: '"+Se[We]+"'",new m(Se[We],new S(this,We,We+1)));var Yt=vt[2]||" ";if(this.catcodes[Yt]===14){var Rr=Se.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return Rr===-1?(this.tokenRegex.lastIndex=Se.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=Rr+1,this.lex()}var Yr=Yt.match(qo);return Yr&&(Yt=Yr[1]),new m(Yt,new S(this,We,this.tokenRegex.lastIndex))},At}(),us=function(){function At(ge,Se){ge===void 0&&(ge={}),Se===void 0&&(Se={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=Se,this.builtins=ge,this.undefStack=[]}var se=At.prototype;return se.beginGroup=function(){this.undefStack.push({})},se.endGroup=function(){if(this.undefStack.length===0)throw new c("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var Se=this.undefStack.pop();for(var We in Se)Se.hasOwnProperty(We)&&(Se[We]===void 0?delete this.current[We]:this.current[We]=Se[We])},se.has=function(Se){return this.current.hasOwnProperty(Se)||this.builtins.hasOwnProperty(Se)},se.get=function(Se){return this.current.hasOwnProperty(Se)?this.current[Se]:this.builtins[Se]},se.set=function(Se,We,vt){if(vt===void 0&&(vt=!1),vt){for(var Yt=0;Yt<this.undefStack.length;Yt++)delete this.undefStack[Yt][Se];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][Se]=We)}else{var Rr=this.undefStack[this.undefStack.length-1];Rr&&!Rr.hasOwnProperty(Se)&&(Rr[Se]=this.current[Se])}this.current[Se]=We},At}(),jo={},Qo=jo;function on(At,se){jo[At]=se}on("\\@firstoftwo",function(At){var se=At.consumeArgs(2);return{tokens:se[0],numArgs:0}}),on("\\@secondoftwo",function(At){var se=At.consumeArgs(2);return{tokens:se[1],numArgs:0}}),on("\\@ifnextchar",function(At){var se=At.consumeArgs(3),ge=At.future();return se[0].length===1&&se[0][0].text===ge.text?{tokens:se[1],numArgs:0}:{tokens:se[2],numArgs:0}}),on("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),on("\\TextOrMath",function(At){var se=At.consumeArgs(2);return At.mode==="text"?{tokens:se[0],numArgs:0}:{tokens:se[1],numArgs:0}});var Fi={"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};on("\\char",function(At){var se=At.popToken(),ge,Se="";if(se.text==="'")ge=8,se=At.popToken();else if(se.text==='"')ge=16,se=At.popToken();else if(se.text==="`")if(se=At.popToken(),se.text[0]==="\\")Se=se.text.charCodeAt(1);else{if(se.text==="EOF")throw new c("\\char` missing argument");Se=se.text.charCodeAt(0)}else ge=10;if(ge){if(Se=Fi[se.text],Se==null||Se>=ge)throw new c("Invalid base-"+ge+" digit "+se.text);for(var We;(We=Fi[At.future().text])!=null&&We<ge;)Se*=ge,Se+=We,At.popToken()}return"\\@char{"+Se+"}"});var Bs=function(se,ge){var Se=se.consumeArgs(1)[0];if(Se.length!==1)throw new c("\\gdef's first argument must be a macro name");var We=Se[0].text,vt=0;for(Se=se.consumeArgs(1)[0];Se.length===1&&Se[0].text==="#";){if(Se=se.consumeArgs(1)[0],Se.length!==1)throw new c('Invalid argument number length "'+Se.length+'"');if(!/^[1-9]$/.test(Se[0].text))throw new c('Invalid argument number "'+Se[0].text+'"');if(vt++,parseInt(Se[0].text)!==vt)throw new c('Argument number "'+Se[0].text+'" out of order');Se=se.consumeArgs(1)[0]}return se.macros.set(We,{tokens:Se,numArgs:vt},ge),""};on("\\gdef",function(At){return Bs(At,!0)}),on("\\def",function(At){return Bs(At,!1)}),on("\\global",function(At){var se=At.consumeArgs(1)[0];if(se.length!==1)throw new c("Invalid command after \\global");var ge=se[0].text;if(ge==="\\def")return Bs(At,!0);throw new c("Invalid command '"+ge+"' after \\global")});var ws=function(se,ge,Se){var We=se.consumeArgs(1)[0];if(We.length!==1)throw new c("\\newcommand's first argument must be a macro name");var vt=We[0].text,Yt=se.isDefined(vt);if(Yt&&!ge)throw new c("\\newcommand{"+vt+"} attempting to redefine "+(vt+"; use \\renewcommand"));if(!Yt&&!Se)throw new c("\\renewcommand{"+vt+"} when command "+vt+" does not yet exist; use \\newcommand");var Rr=0;if(We=se.consumeArgs(1)[0],We.length===1&&We[0].text==="["){for(var Yr="",mn=se.expandNextToken();mn.text!=="]"&&mn.text!=="EOF";)Yr+=mn.text,mn=se.expandNextToken();if(!Yr.match(/^\s*[0-9]+\s*$/))throw new c("Invalid number of arguments: "+Yr);Rr=parseInt(Yr),We=se.consumeArgs(1)[0]}return se.macros.set(vt,{tokens:We,numArgs:Rr}),""};on("\\newcommand",function(At){return ws(At,!1,!0)}),on("\\renewcommand",function(At){return ws(At,!0,!1)}),on("\\providecommand",function(At){return ws(At,!0,!0)}),on("\\bgroup","{"),on("\\egroup","}"),on("\\lq","`"),on("\\rq","'"),on("\\aa","\\r a"),on("\\AA","\\r A"),on("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),on("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),on("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),on("\u212C","\\mathscr{B}"),on("\u2130","\\mathscr{E}"),on("\u2131","\\mathscr{F}"),on("\u210B","\\mathscr{H}"),on("\u2110","\\mathscr{I}"),on("\u2112","\\mathscr{L}"),on("\u2133","\\mathscr{M}"),on("\u211B","\\mathscr{R}"),on("\u212D","\\mathfrak{C}"),on("\u210C","\\mathfrak{H}"),on("\u2128","\\mathfrak{Z}"),on("\\Bbbk","\\Bbb{k}"),on("\xB7","\\cdotp"),on("\\llap","\\mathllap{\\textrm{#1}}"),on("\\rlap","\\mathrlap{\\textrm{#1}}"),on("\\clap","\\mathclap{\\textrm{#1}}"),on("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),on("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),on("\\ne","\\neq"),on("\u2260","\\neq"),on("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),on("\u2209","\\notin"),on("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),on("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),on("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),on("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),on("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),on("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),on("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),on("\u27C2","\\perp"),on("\u203C","\\mathclose{!\\mkern-0.8mu!}"),on("\u220C","\\notni"),on("\u231C","\\ulcorner"),on("\u231D","\\urcorner"),on("\u231E","\\llcorner"),on("\u231F","\\lrcorner"),on("\xA9","\\copyright"),on("\xAE","\\textregistered"),on("\uFE0F","\\textregistered"),on("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),on("\u22EE","\\vdots"),on("\\varGamma","\\mathit{\\Gamma}"),on("\\varDelta","\\mathit{\\Delta}"),on("\\varTheta","\\mathit{\\Theta}"),on("\\varLambda","\\mathit{\\Lambda}"),on("\\varXi","\\mathit{\\Xi}"),on("\\varPi","\\mathit{\\Pi}"),on("\\varSigma","\\mathit{\\Sigma}"),on("\\varUpsilon","\\mathit{\\Upsilon}"),on("\\varPhi","\\mathit{\\Phi}"),on("\\varPsi","\\mathit{\\Psi}"),on("\\varOmega","\\mathit{\\Omega}"),on("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),on("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),on("\\boxed","\\fbox{$\\displaystyle{#1}$}"),on("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),on("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),on("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var cs={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};on("\\dots",function(At){var se="\\dotso",ge=At.expandAfterFuture().text;return ge in cs?se=cs[ge]:ge.substr(0,4)==="\\not"?se="\\dotsb":ge in Be.math&&(p.contains(["bin","rel"],Be.math[ge].group)&&(se="\\dotsb")),se});var Vo={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};on("\\dotso",function(At){var se=At.future().text;return se in Vo?"\\ldots\\,":"\\ldots"}),on("\\dotsc",function(At){var se=At.future().text;return se in Vo&&se!==","?"\\ldots\\,":"\\ldots"}),on("\\cdots",function(At){var se=At.future().text;return se in Vo?"\\@cdots\\,":"\\@cdots"}),on("\\dotsb","\\cdots"),on("\\dotsm","\\cdots"),on("\\dotsi","\\!\\cdots"),on("\\dotsx","\\ldots\\,"),on("\\DOTSI","\\relax"),on("\\DOTSB","\\relax"),on("\\DOTSX","\\relax"),on("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),on("\\,","\\tmspace+{3mu}{.1667em}"),on("\\thinspace","\\,"),on("\\>","\\mskip{4mu}"),on("\\:","\\tmspace+{4mu}{.2222em}"),on("\\medspace","\\:"),on("\\;","\\tmspace+{5mu}{.2777em}"),on("\\thickspace","\\;"),on("\\!","\\tmspace-{3mu}{.1667em}"),on("\\negthinspace","\\!"),on("\\negmedspace","\\tmspace-{4mu}{.2222em}"),on("\\negthickspace","\\tmspace-{5mu}{.277em}"),on("\\enspace","\\kern.5em "),on("\\enskip","\\hskip.5em\\relax"),on("\\quad","\\hskip1em\\relax"),on("\\qquad","\\hskip2em\\relax"),on("\\tag","\\@ifstar\\tag@literal\\tag@paren"),on("\\tag@paren","\\tag@literal{({#1})}"),on("\\tag@literal",function(At){if(At.macros.get("\\df@tag"))throw new c("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),on("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),on("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),on("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),on("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),on("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),on("\\\\","\\newline"),on("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var vs=it["Main-Regular"]["T".charCodeAt(0)][1]-.7*it["Main-Regular"]["A".charCodeAt(0)][1]+"em";on("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+vs+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),on("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+vs+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),on("\\hspace","\\@ifstar\\@hspacer\\@hspace"),on("\\@hspace","\\hskip #1\\relax"),on("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),on("\\ordinarycolon",":"),on("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),on("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),on("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),on("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),on("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),on("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),on("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),on("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),on("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),on("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),on("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),on("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),on("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),on("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),on("\u2237","\\dblcolon"),on("\u2239","\\eqcolon"),on("\u2254","\\coloneqq"),on("\u2255","\\eqqcolon"),on("\u2A74","\\Coloneqq"),on("\\ratio","\\vcentcolon"),on("\\coloncolon","\\dblcolon"),on("\\colonequals","\\coloneqq"),on("\\coloncolonequals","\\Coloneqq"),on("\\equalscolon","\\eqqcolon"),on("\\equalscoloncolon","\\Eqqcolon"),on("\\colonminus","\\coloneq"),on("\\coloncolonminus","\\Coloneq"),on("\\minuscolon","\\eqcolon"),on("\\minuscoloncolon","\\Eqcolon"),on("\\coloncolonapprox","\\Colonapprox"),on("\\coloncolonsim","\\Colonsim"),on("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),on("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),on("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),on("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),on("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),on("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),on("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),on("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),on("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),on("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),on("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),on("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),on("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),on("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),on("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),on("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),on("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),on("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),on("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),on("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),on("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),on("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),on("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),on("\u27E6","\\llbracket"),on("\u27E7","\\rrbracket"),on("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),on("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),on("\u2983","\\lBrace"),on("\u2984","\\rBrace"),on("\\darr","\\downarrow"),on("\\dArr","\\Downarrow"),on("\\Darr","\\Downarrow"),on("\\lang","\\langle"),on("\\rang","\\rangle"),on("\\uarr","\\uparrow"),on("\\uArr","\\Uparrow"),on("\\Uarr","\\Uparrow"),on("\\N","\\mathbb{N}"),on("\\R","\\mathbb{R}"),on("\\Z","\\mathbb{Z}"),on("\\alef","\\aleph"),on("\\alefsym","\\aleph"),on("\\Alpha","\\mathrm{A}"),on("\\Beta","\\mathrm{B}"),on("\\bull","\\bullet"),on("\\Chi","\\mathrm{X}"),on("\\clubs","\\clubsuit"),on("\\cnums","\\mathbb{C}"),on("\\Complex","\\mathbb{C}"),on("\\Dagger","\\ddagger"),on("\\diamonds","\\diamondsuit"),on("\\empty","\\emptyset"),on("\\Epsilon","\\mathrm{E}"),on("\\Eta","\\mathrm{H}"),on("\\exist","\\exists"),on("\\harr","\\leftrightarrow"),on("\\hArr","\\Leftrightarrow"),on("\\Harr","\\Leftrightarrow"),on("\\hearts","\\heartsuit"),on("\\image","\\Im"),on("\\infin","\\infty"),on("\\Iota","\\mathrm{I}"),on("\\isin","\\in"),on("\\Kappa","\\mathrm{K}"),on("\\larr","\\leftarrow"),on("\\lArr","\\Leftarrow"),on("\\Larr","\\Leftarrow"),on("\\lrarr","\\leftrightarrow"),on("\\lrArr","\\Leftrightarrow"),on("\\Lrarr","\\Leftrightarrow"),on("\\Mu","\\mathrm{M}"),on("\\natnums","\\mathbb{N}"),on("\\Nu","\\mathrm{N}"),on("\\Omicron","\\mathrm{O}"),on("\\plusmn","\\pm"),on("\\rarr","\\rightarrow"),on("\\rArr","\\Rightarrow"),on("\\Rarr","\\Rightarrow"),on("\\real","\\Re"),on("\\reals","\\mathbb{R}"),on("\\Reals","\\mathbb{R}"),on("\\Rho","\\mathrm{P}"),on("\\sdot","\\cdot"),on("\\sect","\\S"),on("\\spades","\\spadesuit"),on("\\sub","\\subset"),on("\\sube","\\subseteq"),on("\\supe","\\supseteq"),on("\\Tau","\\mathrm{T}"),on("\\thetasym","\\vartheta"),on("\\weierp","\\wp"),on("\\Zeta","\\mathrm{Z}"),on("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),on("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),on("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),on("\\blue","\\textcolor{##6495ed}{#1}"),on("\\orange","\\textcolor{##ffa500}{#1}"),on("\\pink","\\textcolor{##ff00af}{#1}"),on("\\red","\\textcolor{##df0030}{#1}"),on("\\green","\\textcolor{##28ae7b}{#1}"),on("\\gray","\\textcolor{gray}{#1}"),on("\\purple","\\textcolor{##9d38bd}{#1}"),on("\\blueA","\\textcolor{##ccfaff}{#1}"),on("\\blueB","\\textcolor{##80f6ff}{#1}"),on("\\blueC","\\textcolor{##63d9ea}{#1}"),on("\\blueD","\\textcolor{##11accd}{#1}"),on("\\blueE","\\textcolor{##0c7f99}{#1}"),on("\\tealA","\\textcolor{##94fff5}{#1}"),on("\\tealB","\\textcolor{##26edd5}{#1}"),on("\\tealC","\\textcolor{##01d1c1}{#1}"),on("\\tealD","\\textcolor{##01a995}{#1}"),on("\\tealE","\\textcolor{##208170}{#1}"),on("\\greenA","\\textcolor{##b6ffb0}{#1}"),on("\\greenB","\\textcolor{##8af281}{#1}"),on("\\greenC","\\textcolor{##74cf70}{#1}"),on("\\greenD","\\textcolor{##1fab54}{#1}"),on("\\greenE","\\textcolor{##0d923f}{#1}"),on("\\goldA","\\textcolor{##ffd0a9}{#1}"),on("\\goldB","\\textcolor{##ffbb71}{#1}"),on("\\goldC","\\textcolor{##ff9c39}{#1}"),on("\\goldD","\\textcolor{##e07d10}{#1}"),on("\\goldE","\\textcolor{##a75a05}{#1}"),on("\\redA","\\textcolor{##fca9a9}{#1}"),on("\\redB","\\textcolor{##ff8482}{#1}"),on("\\redC","\\textcolor{##f9685d}{#1}"),on("\\redD","\\textcolor{##e84d39}{#1}"),on("\\redE","\\textcolor{##bc2612}{#1}"),on("\\maroonA","\\textcolor{##ffbde0}{#1}"),on("\\maroonB","\\textcolor{##ff92c6}{#1}"),on("\\maroonC","\\textcolor{##ed5fa6}{#1}"),on("\\maroonD","\\textcolor{##ca337c}{#1}"),on("\\maroonE","\\textcolor{##9e034e}{#1}"),on("\\purpleA","\\textcolor{##ddd7ff}{#1}"),on("\\purpleB","\\textcolor{##c6b9fc}{#1}"),on("\\purpleC","\\textcolor{##aa87ff}{#1}"),on("\\purpleD","\\textcolor{##7854ab}{#1}"),on("\\purpleE","\\textcolor{##543b78}{#1}"),on("\\mintA","\\textcolor{##f5f9e8}{#1}"),on("\\mintB","\\textcolor{##edf2df}{#1}"),on("\\mintC","\\textcolor{##e0e5cc}{#1}"),on("\\grayA","\\textcolor{##f6f7f7}{#1}"),on("\\grayB","\\textcolor{##f0f1f2}{#1}"),on("\\grayC","\\textcolor{##e3e5e6}{#1}"),on("\\grayD","\\textcolor{##d6d8da}{#1}"),on("\\grayE","\\textcolor{##babec2}{#1}"),on("\\grayF","\\textcolor{##888d93}{#1}"),on("\\grayG","\\textcolor{##626569}{#1}"),on("\\grayH","\\textcolor{##3b3e40}{#1}"),on("\\grayI","\\textcolor{##21242c}{#1}"),on("\\kaBlue","\\textcolor{##314453}{#1}"),on("\\kaGreen","\\textcolor{##71B307}{#1}");var Ss={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},ns=function(){function At(ge,Se,We){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=Se,this.expansionCount=0,this.feed(ge),this.macros=new us(Qo,Se.macros),this.mode=We,this.stack=[]}var se=At.prototype;return se.feed=function(Se){this.lexer=new No(Se,this.settings)},se.switchMode=function(Se){this.mode=Se},se.beginGroup=function(){this.macros.beginGroup()},se.endGroup=function(){this.macros.endGroup()},se.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},se.popToken=function(){return this.future(),this.stack.pop()},se.pushToken=function(Se){this.stack.push(Se)},se.pushTokens=function(Se){var We;(We=this.stack).push.apply(We,Se)},se.consumeSpaces=function(){for(;;){var Se=this.future();if(Se.text===" ")this.stack.pop();else break}},se.consumeArgs=function(Se){for(var We=[],vt=0;vt<Se;++vt){this.consumeSpaces();var Yt=this.popToken();if(Yt.text==="{"){for(var Rr=[],Yr=1;Yr!==0;){var mn=this.popToken();if(Rr.push(mn),mn.text==="{")++Yr;else if(mn.text==="}")--Yr;else if(mn.text==="EOF")throw new c("End of input in macro argument",Yt)}Rr.pop(),Rr.reverse(),We[vt]=Rr}else{if(Yt.text==="EOF")throw new c("End of input expecting macro argument");We[vt]=[Yt]}}return We},se.expandOnce=function(){var Se=this.popToken(),We=Se.text,vt=this._getExpansion(We);if(vt==null)return this.pushToken(Se),Se;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new c("Too many expansions: infinite loop or need to increase maxExpand setting");var Yt=vt.tokens;if(vt.numArgs){var Rr=this.consumeArgs(vt.numArgs);Yt=Yt.slice();for(var Yr=Yt.length-1;Yr>=0;--Yr){var mn=Yt[Yr];if(mn.text==="#"){if(Yr===0)throw new c("Incomplete placeholder at end of macro body",mn);if(mn=Yt[--Yr],mn.text==="#")Yt.splice(Yr+1,1);else if(/^[1-9]$/.test(mn.text)){var Wn;(Wn=Yt).splice.apply(Wn,[Yr,2].concat(Rr[+mn.text-1]))}else throw new c("Not a valid argument number",mn)}}}return this.pushTokens(Yt),Yt},se.expandAfterFuture=function(){return this.expandOnce(),this.future()},se.expandNextToken=function(){for(;;){var Se=this.expandOnce();if(Se instanceof m)if(Se.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},se.expandMacro=function(Se){if(!this.macros.get(Se))return;var We=[],vt=this.stack.length;for(this.pushToken(new m(Se));this.stack.length>vt;){var Yt=this.expandOnce();Yt instanceof m&&We.push(this.stack.pop())}return We},se.expandMacroAsText=function(Se){var We=this.expandMacro(Se);return We&&We.map(function(vt){return vt.text}).join("")},se._getExpansion=function(Se){var We=this.macros.get(Se);if(We==null)return We;var vt=typeof We=="function"?We(this):We;if(typeof vt=="string"){var Yt=0;if(vt.indexOf("#")!==-1)for(var Rr=vt.replace(/##/g,"");Rr.indexOf("#"+(Yt+1))!==-1;)++Yt;for(var Yr=new No(vt,this.settings),mn=[],Wn=Yr.lex();Wn.text!=="EOF";)mn.push(Wn),Wn=Yr.lex();mn.reverse();var Jn={tokens:mn,numArgs:Yt};return Jn}return vt},se.isDefined=function(Se){return this.macros.has(Se)||Mo.hasOwnProperty(Se)||Be.math.hasOwnProperty(Se)||Be.text.hasOwnProperty(Se)||Ss.hasOwnProperty(Se)},At}(),es={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"}},fs={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u010F:"d\u030C",\u1E0B:"d\u0307",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u013A:"l\u0301",\u013E:"l\u030C",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u010E:"D\u030C",\u1E0A:"D\u0307",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0139:"L\u0301",\u013D:"L\u030C",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u0164:"T\u030C",\u1E6A:"T\u0307",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},ys=function(){function At(ge,Se){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new ns(ge,Se,this.mode),this.settings=Se,this.leftrightDepth=0}var se=At.prototype;return se.expect=function(Se,We){if(We===void 0&&(We=!0),this.fetch().text!==Se)throw new c("Expected '"+Se+"', got '"+this.fetch().text+"'",this.fetch());We&&this.consume()},se.consume=function(){this.nextToken=null},se.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},se.switchMode=function(Se){this.mode=Se,this.gullet.switchMode(Se)},se.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var Se=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),Se},se.parseExpression=function(Se,We){for(var vt=[];;){this.mode==="math"&&this.consumeSpaces();var Yt=this.fetch();if(At.endOfExpression.indexOf(Yt.text)!==-1)break;if(We&&Yt.text===We)break;if(Se&&Mo[Yt.text]&&Mo[Yt.text].infix)break;var Rr=this.parseAtom(We);if(!Rr)break;vt.push(Rr)}return this.mode==="text"&&this.formLigatures(vt),this.handleInfixNodes(vt)},se.handleInfixNodes=function(Se){for(var We=-1,vt,Yt=0;Yt<Se.length;Yt++){var Rr=en(Se[Yt],"infix");if(Rr){if(We!==-1)throw new c("only one infix operator per group",Rr.token);We=Yt,vt=Rr.replaceWith}}if(We!==-1&&vt){var Yr,mn,Wn=Se.slice(0,We),Jn=Se.slice(We+1);Wn.length===1&&Wn[0].type==="ordgroup"?Yr=Wn[0]:Yr={type:"ordgroup",mode:this.mode,body:Wn},Jn.length===1&&Jn[0].type==="ordgroup"?mn=Jn[0]:mn={type:"ordgroup",mode:this.mode,body:Jn};var ri;return vt==="\\\\abovefrac"?ri=this.callFunction(vt,[Yr,Se[We],mn],[]):ri=this.callFunction(vt,[Yr,mn],[]),[ri]}else return Se},se.handleSupSubscript=function(Se){var We=this.fetch(),vt=We.text;this.consume();var Yt=this.parseGroup(Se,!1,At.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!Yt)throw new c("Expected group after '"+vt+"'",We);return Yt},se.formatUnsupportedCmd=function(Se){for(var We=[],vt=0;vt<Se.length;vt++)We.push({type:"textord",mode:"text",text:Se[vt]});var Yt={type:"text",mode:this.mode,body:We},Rr={type:"color",mode:this.mode,color:this.settings.errorColor,body:[Yt]};return Rr},se.parseAtom=function(Se){var We=this.parseGroup("atom",!1,null,Se);if(this.mode==="text")return We;for(var vt,Yt;;){this.consumeSpaces();var Rr=this.fetch();if(Rr.text==="\\limits"||Rr.text==="\\nolimits"){var Yr=en(We,"op");if(Yr){var mn=Rr.text==="\\limits";Yr.limits=mn,Yr.alwaysHandleSupSub=!0}else if(Yr=en(We,"operatorname"),Yr&&Yr.alwaysHandleSupSub){var Wn=Rr.text==="\\limits";Yr.limits=Wn}else throw new c("Limit controls must follow a math operator",Rr);this.consume()}else if(Rr.text==="^"){if(vt)throw new c("Double superscript",Rr);vt=this.handleSupSubscript("superscript")}else if(Rr.text==="_"){if(Yt)throw new c("Double subscript",Rr);Yt=this.handleSupSubscript("subscript")}else if(Rr.text==="'"){if(vt)throw new c("Double superscript",Rr);var Jn={type:"textord",mode:this.mode,text:"\\prime"},ri=[Jn];for(this.consume();this.fetch().text==="'";)ri.push(Jn),this.consume();this.fetch().text==="^"&&ri.push(this.handleSupSubscript("superscript")),vt={type:"ordgroup",mode:this.mode,body:ri}}else break}return vt||Yt?{type:"supsub",mode:this.mode,base:We,sup:vt,sub:Yt}:We},se.parseFunction=function(Se,We,vt){var Yt=this.fetch(),Rr=Yt.text,Yr=Mo[Rr];if(!Yr)return null;if(this.consume(),vt!=null&&Yr.greediness<=vt)throw new c("Got function '"+Rr+"' with no arguments"+(We?" as "+We:""),Yt);if(this.mode==="text"&&!Yr.allowedInText)throw new c("Can't use function '"+Rr+"' in text mode",Yt);if(this.mode==="math"&&Yr.allowedInMath===!1)throw new c("Can't use function '"+Rr+"' in math mode",Yt);var mn=this.parseArguments(Rr,Yr),Wn=mn.args,Jn=mn.optArgs;return this.callFunction(Rr,Wn,Jn,Yt,Se)},se.callFunction=function(Se,We,vt,Yt,Rr){var Yr={funcName:Se,parser:this,token:Yt,breakOnTokenText:Rr},mn=Mo[Se];if(mn&&mn.handler)return mn.handler(Yr,We,vt);throw new c("No function handler for "+Se)},se.parseArguments=function(Se,We){var vt=We.numArgs+We.numOptionalArgs;if(vt===0)return{args:[],optArgs:[]};for(var Yt=We.greediness,Rr=[],Yr=[],mn=0;mn<vt;mn++){var Wn=We.argTypes&&We.argTypes[mn],Jn=mn<We.numOptionalArgs,ri=mn>0&&!Jn||mn===0&&!Jn&&this.mode==="math",Ii=this.parseGroupOfType("argument to '"+Se+"'",Wn,Jn,Yt,ri);if(!Ii){if(Jn){Yr.push(null);continue}throw new c("Expected group after '"+Se+"'",this.fetch())}(Jn?Yr:Rr).push(Ii)}return{args:Rr,optArgs:Yr}},se.parseGroupOfType=function(Se,We,vt,Yt,Rr){switch(We){case"color":return Rr&&this.consumeSpaces(),this.parseColorGroup(vt);case"size":return Rr&&this.consumeSpaces(),this.parseSizeGroup(vt);case"url":return this.parseUrlGroup(vt,Rr);case"math":case"text":return this.parseGroup(Se,vt,Yt,void 0,We,Rr);case"hbox":{var Yr=this.parseGroup(Se,vt,Yt,void 0,"text",Rr);if(!Yr)return Yr;var mn={type:"styling",mode:Yr.mode,body:[Yr],style:"text"};return mn}case"raw":{if(Rr&&this.consumeSpaces(),vt&&this.fetch().text==="{")return null;var Wn=this.parseStringGroup("raw",vt,!0);if(Wn)return{type:"raw",mode:"text",string:Wn.text};throw new c("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(Se,vt,Yt,void 0,void 0,Rr);default:throw new c("Unknown group type as "+Se,this.fetch())}},se.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},se.parseStringGroup=function(Se,We,vt){var Yt=We?"[":"{",Rr=We?"]":"}",Yr=this.fetch();if(Yr.text!==Yt){if(We)return null;if(vt&&Yr.text!=="EOF"&&/[^{}[\]]/.test(Yr.text))return this.consume(),Yr}var mn=this.mode;this.mode="text",this.expect(Yt);for(var Wn="",Jn=this.fetch(),ri=0,Ii=Jn,Yi;(Yi=this.fetch()).text!==Rr||vt&&ri>0;){switch(Yi.text){case"EOF":throw new c("Unexpected end of input in "+Se,Jn.range(Ii,Wn));case Yt:ri++;break;case Rr:ri--;break}Ii=Yi,Wn+=Ii.text,this.consume()}return this.expect(Rr),this.mode=mn,Jn.range(Ii,Wn)},se.parseRegexGroup=function(Se,We){var vt=this.mode;this.mode="text";for(var Yt=this.fetch(),Rr=Yt,Yr="",mn;(mn=this.fetch()).text!=="EOF"&&Se.test(Yr+mn.text);)Rr=mn,Yr+=Rr.text,this.consume();if(Yr==="")throw new c("Invalid "+We+": '"+Yt.text+"'",Yt);return this.mode=vt,Yt.range(Rr,Yr)},se.parseColorGroup=function(Se){var We=this.parseStringGroup("color",Se);if(!We)return null;var vt=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(We.text);if(!vt)throw new c("Invalid color: '"+We.text+"'",We);var Yt=vt[0];return/^[0-9a-f]{6}$/i.test(Yt)&&(Yt="#"+Yt),{type:"color-token",mode:this.mode,color:Yt}},se.parseSizeGroup=function(Se){var We,vt=!1;if(!Se&&this.fetch().text!=="{"?We=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):We=this.parseStringGroup("size",Se),!We)return null;!Se&&We.text.length===0&&(We.text="0pt",vt=!0);var Yt=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(We.text);if(!Yt)throw new c("Invalid size: '"+We.text+"'",We);var Rr={number:+(Yt[1]+Yt[2]),unit:Yt[3]};if(!xr(Rr))throw new c("Invalid unit: '"+Rr.unit+"'",We);return{type:"size",mode:this.mode,value:Rr,isBlank:vt}},se.parseUrlGroup=function(Se,We){this.gullet.lexer.setCatcode("%",13);var vt=this.parseStringGroup("url",Se,!0);if(this.gullet.lexer.setCatcode("%",14),!vt)return null;var Yt=vt.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:Yt}},se.parseGroup=function(Se,We,vt,Yt,Rr,Yr){var mn=this.mode;Rr&&this.switchMode(Rr),Yr&&this.consumeSpaces();var Wn=this.fetch(),Jn=Wn.text,ri;if(We?Jn==="[":Jn==="{"||Jn==="\\begingroup"){this.consume();var Ii=At.endOfGroup[Jn];this.gullet.beginGroup();var Yi=this.parseExpression(!1,Ii),ma=this.fetch();this.expect(Ii),this.gullet.endGroup(),ri={type:"ordgroup",mode:this.mode,loc:S.range(Wn,ma),body:Yi,semisimple:Jn==="\\begingroup"||void 0}}else if(We)ri=null;else if(ri=this.parseFunction(Yt,Se,vt)||this.parseSymbol(),ri==null&&Jn[0]==="\\"&&!Ss.hasOwnProperty(Jn)){if(this.settings.throwOnError)throw new c("Undefined control sequence: "+Jn,Wn);ri=this.formatUnsupportedCmd(Jn),this.consume()}return Rr&&this.switchMode(mn),ri},se.formLigatures=function(Se){for(var We=Se.length-1,vt=0;vt<We;++vt){var Yt=Se[vt],Rr=Yt.text;Rr==="-"&&Se[vt+1].text==="-"&&(vt+1<We&&Se[vt+2].text==="-"?(Se.splice(vt,3,{type:"textord",mode:"text",loc:S.range(Yt,Se[vt+2]),text:"---"}),We-=2):(Se.splice(vt,2,{type:"textord",mode:"text",loc:S.range(Yt,Se[vt+1]),text:"--"}),We-=1)),(Rr==="'"||Rr==="`")&&Se[vt+1].text===Rr&&(Se.splice(vt,2,{type:"textord",mode:"text",loc:S.range(Yt,Se[vt+1]),text:Rr+Rr}),We-=1)}},se.parseSymbol=function(){var Se=this.fetch(),We=Se.text;if(/^\\verb[^a-zA-Z]/.test(We)){this.consume();var vt=We.slice(5),Yt=vt.charAt(0)==="*";if(Yt&&(vt=vt.slice(1)),vt.length<2||vt.charAt(0)!==vt.slice(-1))throw new c(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return vt=vt.slice(1,-1),{type:"verb",mode:"text",body:vt,star:Yt}}fs.hasOwnProperty(We[0])&&!Be[this.mode][We[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+We[0]+'" used in math mode',Se),We=fs[We[0]]+We.substr(1));var Rr=rs.exec(We);Rr&&(We=We.substring(0,Rr.index),We==="i"?We="\u0131":We==="j"&&(We="\u0237"));var Yr;if(Be[this.mode][We]){this.settings.strict&&this.mode==="math"&&wt.indexOf(We)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+We[0]+'" used in math mode',Se);var mn=Be[this.mode][We].group,Wn=S.range(Se),Jn;if(Tt.hasOwnProperty(mn)){var ri=mn;Jn={type:"atom",mode:this.mode,family:ri,loc:Wn,text:We}}else Jn={type:mn,mode:this.mode,loc:Wn,text:We};Yr=Jn}else if(We.charCodeAt(0)>=128)this.settings.strict&&(Y(We.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+We[0]+'" used in math mode',Se):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+We[0]+'"'+(" ("+We.charCodeAt(0)+")"),Se)),Yr={type:"textord",mode:"text",loc:S.range(Se),text:We};else return null;if(this.consume(),Rr)for(var Ii=0;Ii<Rr[0].length;Ii++){var Yi=Rr[0][Ii];if(!es[Yi])throw new c("Unknown accent ' "+Yi+"'",Se);var ma=es[Yi][this.mode];if(!ma)throw new c("Accent "+Yi+" unsupported in "+this.mode+" mode",Se);Yr={type:"accent",mode:this.mode,loc:S.range(Se),label:ma,isStretchy:!1,isShifty:!0,base:Yr}}return Yr},At}();ys.endOfExpression=["}","\\endgroup","\\end","\\right","&"],ys.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},ys.SUPSUB_GREEDINESS=1;var ds=function(se,ge){if(!(typeof se=="string"||se instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var Se=new ys(se,ge);delete Se.gullet.macros.current["\\df@tag"];var We=Se.parse();if(Se.gullet.macros.get("\\df@tag")){if(!ge.displayMode)throw new c("\\tag works only in display equations");Se.gullet.feed("\\df@tag"),We=[{type:"tag",mode:"text",body:We,tag:Se.parse()}]}return We},yo=ds,no=function(se,ge,Se){ge.textContent="";var We=Ft(se,Se).toNode();ge.appendChild(We)};typeof document!="undefined"&&(document.compatMode!=="CSS1Compat"&&(typeof console!="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),no=function(){throw new c("KaTeX doesn't work in quirks mode.")}));var Jo=function(se,ge){var Se=Ft(se,ge).toMarkup();return Se},Go=function(se,ge){var Se=new g(ge);return yo(se,Se)},xt=function(se,ge,Se){if(Se.throwOnError||!(se instanceof c))throw se;var We=hr.makeSpan(["katex-error"],[new Me(ge)]);return We.setAttribute("title",se.toString()),We.setAttribute("style","color:"+Se.errorColor),We},Ft=function(se,ge){var Se=new g(ge);try{var We=yo(se,Se);return Ar(We,se,Se)}catch(vt){return xt(vt,se,Se)}},An=function(se,ge){var Se=new g(ge);try{var We=yo(se,Se);return Nr(We,se,Se)}catch(vt){return xt(vt,se,Se)}},Hn={version:"0.11.1",render:no,renderToString:Jo,ParseError:c,__parse:Go,__renderToDomTree:Ft,__renderToHTMLTree:An,__setFontMetrics:tt,__defineSymbol:$,__defineMacro:on,__domTree:{Span:X,Anchor:J,SymbolNode:Me,SvgNode:Ie,PathNode:oe,LineNode:pe}},hi=x.default=Hn}]).default})},P2fV:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("Q9mQ"),v=d("+L6B"),S=d("sE09"),m=d.n(S)},P2ho:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O={Again:57349,AltLeft:56,AltRight:57400,ArrowDown:57424,ArrowLeft:57419,ArrowRight:57421,ArrowUp:57416,AudioVolumeDown:57390,AudioVolumeMute:57376,AudioVolumeUp:57392,Backquote:41,Backslash:43,Backspace:14,BracketLeft:26,BracketRight:27,BrowserBack:57450,BrowserFavorites:57446,BrowserForward:57449,BrowserHome:57394,BrowserRefresh:57447,BrowserSearch:57445,BrowserStop:57448,CapsLock:58,Comma:51,ContextMenu:57437,ControlLeft:29,ControlRight:57373,Convert:121,Copy:57464,Cut:57404,Delete:57427,Digit0:11,Digit1:2,Digit2:3,Digit3:4,Digit4:5,Digit5:6,Digit6:7,Digit7:8,Digit8:9,Digit9:10,Eject:57469,End:57423,Enter:28,Equal:13,Escape:1,F1:59,F10:68,F11:87,F12:88,F13:93,F14:94,F15:95,F16:85,F17:57347,F18:57463,F19:57348,F2:60,F20:90,F21:116,F22:57465,F23:109,F24:111,F3:61,F4:62,F5:63,F6:64,F7:65,F8:66,F9:67,Find:57409,Help:57461,Hiragana:119,Home:57415,Insert:57426,IntlBackslash:86,IntlRo:115,IntlYen:125,KanaMode:112,Katakana:120,KeyA:30,KeyB:48,KeyC:46,KeyD:32,KeyE:18,KeyF:33,KeyG:34,KeyH:35,KeyI:23,KeyJ:36,KeyK:37,KeyL:38,KeyM:50,KeyN:49,KeyO:24,KeyP:25,KeyQ:16,KeyR:19,KeyS:31,KeyT:20,KeyU:22,KeyV:47,KeyW:17,KeyX:45,KeyY:21,KeyZ:44,Lang3:120,Lang4:119,Lang5:118,LaunchApp1:57451,LaunchApp2:57377,LaunchMail:57452,MediaPlayPause:57378,MediaSelect:57453,MediaStop:57380,MediaTrackNext:57369,MediaTrackPrevious:57360,MetaLeft:57435,MetaRight:57436,Minus:12,NonConvert:123,NumLock:69,Numpad0:82,Numpad1:79,Numpad2:80,Numpad3:81,Numpad4:75,Numpad5:76,Numpad6:77,Numpad7:71,Numpad8:72,Numpad9:73,NumpadAdd:78,NumpadComma:126,NumpadDecimal:83,NumpadDivide:57397,NumpadEnter:57372,NumpadEqual:89,NumpadMultiply:55,NumpadParenLeft:57462,NumpadParenRight:57467,NumpadSubtract:74,Open:100,PageDown:57425,PageUp:57417,Paste:101,Pause:57414,Period:52,Power:57438,PrintScreen:84,Props:57350,Quote:40,ScrollLock:70,Semicolon:39,ShiftLeft:42,ShiftRight:54,Slash:53,Sleep:57439,Space:57,Suspend:57381,Tab:15,Undo:57351,WakeUp:57443};P.default=O},P47w:function(U,P,d){var O=d("hydK"),x=O.createElement,T=d("IMiH"),v=d("mFDi"),S=d("Fofx"),m=d("6GrX"),f=d("pzxd"),c=d("dqUG"),o=T.CMD,r=Array.prototype.join,a="none",n=Math.round,e=Math.sin,s=Math.cos,t=Math.PI,i=Math.PI*2,l=180/t,u=1e-4;function h(V){return n(V*1e4)/1e4}function p(V){return V<u&&V>-u}function g(V,z){var Y=z?V.textFill:V.fill;return Y!=null&&Y!==a}function A(V,z){var Y=z?V.textStroke:V.stroke;return Y!=null&&Y!==a}function y(V,z){z&&E(V,"transform","matrix("+r.call(z,",")+")")}function E(V,z,Y){(!Y||Y.type!=="linear"&&Y.type!=="radial")&&V.setAttribute(z,Y)}function C(V,z,Y){V.setAttributeNS("http://www.w3.org/1999/xlink",z,Y)}function w(V,z,Y,ee){if(g(z,Y)){var fe=Y?z.textFill:z.fill;fe=fe==="transparent"?a:fe,E(V,"fill",fe),E(V,"fill-opacity",z.fillOpacity!=null?z.fillOpacity*z.opacity:z.opacity)}else E(V,"fill",a);if(A(z,Y)){var ie=Y?z.textStroke:z.stroke;ie=ie==="transparent"?a:ie,E(V,"stroke",ie);var we=Y?z.textStrokeWidth:z.lineWidth,Ce=!Y&&z.strokeNoScale?ee.getLineScale():1;E(V,"stroke-width",we/Ce),E(V,"paint-order",Y?"stroke":"fill"),E(V,"stroke-opacity",z.strokeOpacity!=null?z.strokeOpacity:z.opacity);var Le=z.lineDash;Le?(E(V,"stroke-dasharray",z.lineDash.join(",")),E(V,"stroke-dashoffset",n(z.lineDashOffset||0))):E(V,"stroke-dasharray",""),z.lineCap&&E(V,"stroke-linecap",z.lineCap),z.lineJoin&&E(V,"stroke-linejoin",z.lineJoin),z.miterLimit&&E(V,"stroke-miterlimit",z.miterLimit)}else E(V,"stroke",a)}function b(V){for(var z=[],Y=V.data,ee=V.len(),fe=0;fe<ee;){var ie=Y[fe++],we="",Ce=0;switch(ie){case o.M:we="M",Ce=2;break;case o.L:we="L",Ce=2;break;case o.Q:we="Q",Ce=4;break;case o.C:we="C",Ce=6;break;case o.A:var Le=Y[fe++],He=Y[fe++],ce=Y[fe++],Pe=Y[fe++],Q=Y[fe++],me=Y[fe++],Je=Y[fe++],re=Y[fe++],G=Math.abs(me),X=p(G-i)||(re?me>=i:-me>=i),J=me>0?me%i:me%i+i,Ae=!1;X?Ae=!0:p(G)?Ae=!1:Ae=J>=t===!!re;var he=h(Le+ce*s(Q)),Me=h(He+Pe*e(Q));X&&(re?me=i-1e-4:me=-i+1e-4,Ae=!0,fe===9&&z.push("M",he,Me));var Ie=h(Le+ce*s(Q+me)),oe=h(He+Pe*e(Q+me));z.push("A",h(ce),h(Pe),n(Je*l),+Ae,+re,Ie,oe);break;case o.Z:we="Z";break;case o.R:var Ie=h(Y[fe++]),oe=h(Y[fe++]),pe=h(Y[fe++]),Oe=h(Y[fe++]);z.push("M",Ie,oe,"L",Ie+pe,oe,"L",Ie+pe,oe+Oe,"L",Ie,oe+Oe,"L",Ie,oe);break}we&&z.push(we);for(var Ye=0;Ye<Ce;Ye++)z.push(h(Y[fe++]))}return z.join(" ")}var I={};I.brush=function(V){var z=V.style,Y=V.__svgEl;Y||(Y=x("path"),V.__svgEl=Y),V.path||V.createPathProxy();var ee=V.path;if(V.__dirtyPath){ee.beginPath(),ee.subPixelOptimize=!1,V.buildPath(ee,V.shape),V.__dirtyPath=!1;var fe=b(ee);fe.indexOf("NaN")<0&&E(Y,"d",fe)}w(Y,z,!1,V),y(Y,V.transform),z.text!=null?M(V,V.getBoundingRect()):j(V)};var _={};_.brush=function(V){var z=V.style,Y=z.image;if(Y instanceof HTMLImageElement){var ee=Y.src;Y=ee}if(!Y)return;var fe=z.x||0,ie=z.y||0,we=z.width,Ce=z.height,Le=V.__svgEl;Le||(Le=x("image"),V.__svgEl=Le),Y!==V.__imageSrc&&(C(Le,"href",Y),V.__imageSrc=Y),E(Le,"width",we),E(Le,"height",Ce),E(Le,"x",fe),E(Le,"y",ie),y(Le,V.transform),z.text!=null?M(V,V.getBoundingRect()):j(V)};var L={},D=new v,N={},R=[],B={left:"start",right:"end",center:"middle",middle:"middle"},M=function(z,Y){var ee=z.style,fe=z.transform,ie=z instanceof c||ee.transformText;z.__dirty&&f.normalizeTextStyle(ee,!0);var we=ee.text;if(we!=null&&(we+=""),!f.needDrawText(we,ee))return;we==null&&(we=""),!ie&&fe&&(D.copy(Y),D.applyTransform(fe),Y=D);var Ce=z.__textSvgEl;Ce||(Ce=x("text"),z.__textSvgEl=Ce);var Le=Ce.style,He=ee.font||m.DEFAULT_FONT,ce=Ce.__computedFont;He!==Ce.__styleFont&&(Le.font=Ce.__styleFont=He,ce=Ce.__computedFont=Le.font);var Pe=ee.textPadding,Q=ee.textLineHeight,me=z.__textCotentBlock;(!me||z.__dirtyText)&&(me=z.__textCotentBlock=m.parsePlainText(we,ce,Pe,Q,ee.truncate));var Je=me.outerHeight,re=me.lineHeight;f.getBoxPosition(N,z,ee,Y);var G=N.baseX,X=N.baseY,J=N.textAlign||"left",Ae=N.textVerticalAlign;H(Ce,ie,fe,ee,Y,G,X);var he=m.adjustTextY(X,Je,Ae),Me=G,Ie=he;Pe&&(Me=F(G,J,Pe),Ie+=Pe[0]),Ie+=re/2,w(Ce,ee,!0,z);var oe=me.canCacheByTextString,pe=z.__tspanList||(z.__tspanList=[]),Oe=pe.length;if(oe&&z.__canCacheByTextString&&z.__text===we){if(z.__dirtyText&&Oe)for(var Ye=0;Ye<Oe;++Ye)K(pe[Ye],J,Me,Ie+Ye*re)}else{z.__text=we,z.__canCacheByTextString=oe;for(var it=me.lines,et=it.length,Ye=0;Ye<et;Ye++){var Te=pe[Ye],tt=it[Ye];Te?Te.__zrText!==tt&&(Te.innerHTML="",Te.appendChild(document.createTextNode(tt))):(Te=pe[Ye]=x("tspan"),Ce.appendChild(Te),Te.appendChild(document.createTextNode(tt))),K(Te,J,Me,Ie+Ye*re)}if(Oe>et){for(;Ye<Oe;Ye++)Ce.removeChild(pe[Ye]);pe.length=et}}};function H(V,z,Y,ee,fe,ie,we){S.identity(R),z&&Y&&S.copy(R,Y);var Ce=ee.textRotation;if(fe&&Ce){var Le=ee.textOrigin;Le==="center"?(ie=fe.width/2+fe.x,we=fe.height/2+fe.y):Le&&(ie=Le[0]+fe.x,we=Le[1]+fe.y),R[4]-=ie,R[5]-=we,S.rotate(R,R,Ce),R[4]+=ie,R[5]+=we}y(V,R)}function F(V,z,Y){return z==="right"?V-Y[1]:z==="center"?V+Y[3]/2-Y[1]/2:V+Y[3]}function K(V,z,Y,ee){E(V,"dominant-baseline","middle"),E(V,"text-anchor",B[z]),E(V,"x",Y),E(V,"y",ee)}function j(V){V&&V.__textSvgEl&&(V.__textSvgEl.parentNode&&V.__textSvgEl.parentNode.removeChild(V.__textSvgEl),V.__textSvgEl=null,V.__tspanList=[],V.__text=null)}L.drawRectText=M,L.brush=function(V){var z=V.style;z.text!=null?M(V,!1):j(V)},P.path=I,P.image=_,P.text=L},P4Qj:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.removeSensor=P.getSensor=void 0;var O=v(d("chpo")),x=d("FxDU"),T=d("24YM");function v(c){return c&&c.__esModule?c:{default:c}}var S={},m=function(o){var r=o.getAttribute(T.SizeSensorId);if(r&&S[r])return S[r];var a=(0,O.default)();o.setAttribute(T.SizeSensorId,a);var n=(0,x.createSensor)(o);return S[a]=n,n};P.getSensor=m;var f=function(o){var r=o.element.getAttribute(T.SizeSensorId);o.element.removeAttribute(T.SizeSensorId),o.destroy(),r&&S[r]&&delete S[r]};P.removeSensor=f},P5Jw:function(U,P,d){"use strict";var O=d("rHrb"),x=O.CopyToClipboard;x.CopyToClipboard=x,U.exports=x},PArb:function(U,P,d){"use strict";var O=d("pVnL"),x=d.n(O),T=d("lSNA"),v=d.n(T),S=d("q1tI"),m=d.n(S),f=d("TSYQ"),c=d.n(f),o=d("H84U"),r=function(n,e){var s={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(s[t]=n[t]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(n);i<t.length;i++)e.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(n,t[i])&&(s[t[i]]=n[t[i]]);return s},a=function(e){return S.createElement(o.a,null,function(s){var t,i=s.getPrefixCls,l=s.direction,u=e.prefixCls,h=e.type,p=h===void 0?"horizontal":h,g=e.orientation,A=g===void 0?"center":g,y=e.className,E=e.children,C=e.dashed,w=e.plain,b=r(e,["prefixCls","type","orientation","className","children","dashed","plain"]),I=i("divider",u),_=A.length>0?"-".concat(A):A,L=!!E,D=c()(y,I,"".concat(I,"-").concat(p),(t={},v()(t,"".concat(I,"-with-text"),L),v()(t,"".concat(I,"-with-text").concat(_),L),v()(t,"".concat(I,"-dashed"),!!C),v()(t,"".concat(I,"-plain"),!!w),v()(t,"".concat(I,"-rtl"),l==="rtl"),t));return S.createElement("div",x()({className:D},b,{role:"separator"}),E&&S.createElement("span",{className:"".concat(I,"-inner-text")},E))})};P.a=a},PD8m:function(U,P){U.exports={name:"memoryStorage",read:O,write:x,each:T,remove:v,clearAll:S};var d={};function O(m){return d[m]}function x(m,f){d[m]=f}function T(m){for(var f in d)d.hasOwnProperty(f)&&m(d[f],f)}function v(m){delete d[m]}function S(m){d={}}},PKem:function(U,P,d){"use strict";d.d(P,"a",function(){return g});var O=d("RIqP"),x=d.n(O),T=d("lSNA"),v=d.n(T),S=d("pVnL"),m=d.n(S),f=d("lwsE"),c=d.n(f),o=d("W8MJ"),r=d.n(o),a=d("7W2i"),n=d.n(a),e=d("LQ03"),s=d.n(e),t=d("q1tI"),i=d.n(t),l=d("TSYQ"),u=d.n(l),h=d("H84U"),p=function(_,L){var D={};for(var N in _)Object.prototype.hasOwnProperty.call(_,N)&&L.indexOf(N)<0&&(D[N]=_[N]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,N=Object.getOwnPropertySymbols(_);R<N.length;R++)L.indexOf(N[R])<0&&Object.prototype.propertyIsEnumerable.call(_,N[R])&&(D[N[R]]=_[N[R]]);return D},g=t.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function A(_){var L=_.suffixCls,D=_.tagName,N=_.displayName;return function(R){var B;return B=function(M){n()(F,M);var H=s()(F);function F(){var K;return c()(this,F),K=H.apply(this,arguments),K.renderComponent=function(j){var V=j.getPrefixCls,z=K.props.prefixCls,Y=V(L,z);return t.createElement(R,m()({prefixCls:Y,tagName:D},K.props))},K}return r()(F,[{key:"render",value:function(){return t.createElement(h.a,null,this.renderComponent)}}]),F}(t.Component),B.displayName=N,B}}var y=function(L){var D=L.prefixCls,N=L.className,R=L.children,B=L.tagName,M=p(L,["prefixCls","className","children","tagName"]),H=u()(D,N);return t.createElement(B,m()({className:H},M),R)},E=function(_){n()(D,_);var L=s()(D);function D(){var N;return c()(this,D),N=L.apply(this,arguments),N.state={siders:[]},N.renderComponent=function(R){var B,M=R.direction,H=N.props,F=H.prefixCls,K=H.className,j=H.children,V=H.hasSider,z=H.tagName,Y=p(H,["prefixCls","className","children","hasSider","tagName"]),ee=u()(F,(B={},v()(B,"".concat(F,"-has-sider"),typeof V=="boolean"?V:N.state.siders.length>0),v()(B,"".concat(F,"-rtl"),M==="rtl"),B),K);return t.createElement(g.Provider,{value:{siderHook:N.getSiderHook()}},t.createElement(z,m()({className:ee},Y),j))},N}return r()(D,[{key:"getSiderHook",value:function(){var R=this;return{addSider:function(M){R.setState(function(H){return{siders:[].concat(x()(H.siders),[M])}})},removeSider:function(M){R.setState(function(H){return{siders:H.siders.filter(function(F){return F!==M})}})}}}},{key:"render",value:function(){return t.createElement(h.a,null,this.renderComponent)}}]),D}(t.Component),C=A({suffixCls:"layout",tagName:"section",displayName:"Layout"})(E),w=A({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(y),b=A({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(y),I=A({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(y);C.Header=w,C.Footer=b,C.Content=I,P.b=C},PNag:function(U,P,d){var O=d("bYtY"),x=d("SKnc"),T=d("YH21"),v=d("crZl"),S=d("IwbS"),m=d("OELB"),f=d("72pK"),c=d("y7Aq"),o=d("4NO4"),r=m.linearMap,a=O.each,n=Math.min,e=Math.max,s=12,t=6,i=v.extend({type:"visualMap.continuous",init:function(){i.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(E,C,w,b){(!b||b.type!=="selectDataRange"||b.from!==this.uid)&&this._buildView()},_buildView:function(){this.group.removeAll();var E=this.visualMapModel,C=this.group;this._orient=E.get("orient"),this._useHandle=E.get("calculable"),this._resetInterval(),this._renderBar(C);var w=E.get("text");this._renderEndsText(C,w,0),this._renderEndsText(C,w,1),this._updateView(!0),this.renderBackground(C),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(C)},_renderEndsText:function(E,C,w){if(!C)return;var b=C[1-w];b=b!=null?b+"":"";var I=this.visualMapModel,_=I.get("textGap"),L=I.itemSize,D=this._shapes.barGroup,N=this._applyTransform([L[0]/2,w===0?-_:L[1]+_],D),R=this._applyTransform(w===0?"bottom":"top",D),B=this._orient,M=this.visualMapModel.textStyleModel;this.group.add(new S.Text({style:{x:N[0],y:N[1],textVerticalAlign:B==="horizontal"?"middle":R,textAlign:B==="horizontal"?R:"center",text:b,textFont:M.getFont(),textFill:M.getTextColor()}}))},_renderBar:function(E){var C=this.visualMapModel,w=this._shapes,b=C.itemSize,I=this._orient,_=this._useHandle,L=c.getItemAlign(C,this.api,b),D=w.barGroup=this._createBarGroup(L);D.add(w.outOfRange=l()),D.add(w.inRange=l(null,_?A(this._orient):null,O.bind(this._dragHandle,this,"all",!1),O.bind(this._dragHandle,this,"all",!0)));var N=C.textStyleModel.getTextRect("\u56FD"),R=e(N.width,N.height);_&&(w.handleThumbs=[],w.handleLabels=[],w.handleLabelPoints=[],this._createHandle(D,0,b,R,I,L),this._createHandle(D,1,b,R,I,L)),this._createIndicator(D,b,R,I),E.add(D)},_createHandle:function(E,C,w,b,I){var _=O.bind(this._dragHandle,this,C,!1),L=O.bind(this._dragHandle,this,C,!0),D=l(u(C,b),A(this._orient),_,L);D.position[0]=w[0],E.add(D);var N=this.visualMapModel.textStyleModel,R=new S.Text({draggable:!0,drift:_,onmousemove:function(H){T.stop(H.event)},ondragend:L,style:{x:0,y:0,text:"",textFont:N.getFont(),textFill:N.getTextColor()}});this.group.add(R);var B=[I==="horizontal"?b/2:b*1.5,I==="horizontal"?C===0?-(b*1.5):b*1.5:C===0?-b/2:b/2],M=this._shapes;M.handleThumbs[C]=D,M.handleLabelPoints[C]=B,M.handleLabels[C]=R},_createIndicator:function(E,C,w,b){var I=l([[0,0]],"move");I.position[0]=C[0],I.attr({invisible:!0,silent:!0}),E.add(I);var _=this.visualMapModel.textStyleModel,L=new S.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:_.getFont(),textFill:_.getTextColor()}});this.group.add(L);var D=[b==="horizontal"?w/2:t+3,0],N=this._shapes;N.indicator=I,N.indicatorLabel=L,N.indicatorLabelPoint=D},_dragHandle:function(E,C,w,b){if(!this._useHandle)return;if(this._dragging=!C,!C){var I=this._applyTransform([w,b],this._shapes.barGroup,!0);this._updateInterval(E,I[1]),this._updateView()}C===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),C?!this._hovering&&this._clearHoverLinkToSeries():g(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[E],!1)},_resetInterval:function(){var E=this.visualMapModel,C=this._dataInterval=E.getSelected(),w=E.getExtent(),b=[0,E.itemSize[1]];this._handleEnds=[r(C[0],w,b,!0),r(C[1],w,b,!0)]},_updateInterval:function(E,C){C=C||0;var w=this.visualMapModel,b=this._handleEnds,I=[0,w.itemSize[1]];f(C,b,I,E,0);var _=w.getExtent();this._dataInterval=[r(b[0],I,_,!0),r(b[1],I,_,!0)]},_updateView:function(E){var C=this.visualMapModel,w=C.getExtent(),b=this._shapes,I=[0,C.itemSize[1]],_=E?I:this._handleEnds,L=this._createBarVisual(this._dataInterval,w,_,"inRange"),D=this._createBarVisual(w,w,I,"outOfRange");b.inRange.setStyle({fill:L.barColor,opacity:L.opacity}).setShape("points",L.barPoints),b.outOfRange.setStyle({fill:D.barColor,opacity:D.opacity}).setShape("points",D.barPoints),this._updateHandle(_,L)},_createBarVisual:function(E,C,w,b){var I={forceState:b,convertOpacityToAlpha:!0},_=this._makeColorGradient(E,I),L=[this.getControllerVisual(E[0],"symbolSize",I),this.getControllerVisual(E[1],"symbolSize",I)],D=this._createBarPoints(w,L);return{barColor:new x(0,0,0,1,_),barPoints:D,handlesColor:[_[0].color,_[_.length-1].color]}},_makeColorGradient:function(E,C){var w=100,b=[],I=(E[1]-E[0])/w;b.push({color:this.getControllerVisual(E[0],"color",C),offset:0});for(var _=1;_<w;_++){var L=E[0]+I*_;if(L>E[1])break;b.push({color:this.getControllerVisual(L,"color",C),offset:_/w})}return b.push({color:this.getControllerVisual(E[1],"color",C),offset:1}),b},_createBarPoints:function(E,C){var w=this.visualMapModel.itemSize;return[[w[0]-C[0],E[0]],[w[0],E[0]],[w[0],E[1]],[w[0]-C[1],E[1]]]},_createBarGroup:function(E){var C=this._orient,w=this.visualMapModel.get("inverse");return new S.Group(C==="horizontal"&&!w?{scale:E==="bottom"?[1,1]:[-1,1],rotation:Math.PI/2}:C==="horizontal"&&w?{scale:E==="bottom"?[-1,1]:[1,1],rotation:-Math.PI/2}:C==="vertical"&&!w?{scale:E==="left"?[1,-1]:[-1,-1]}:{scale:E==="left"?[1,1]:[-1,1]})},_updateHandle:function(E,C){if(!this._useHandle)return;var w=this._shapes,b=this.visualMapModel,I=w.handleThumbs,_=w.handleLabels;a([0,1],function(L){var D=I[L];D.setStyle("fill",C.handlesColor[L]),D.position[1]=E[L];var N=S.applyTransform(w.handleLabelPoints[L],S.getTransform(D,this.group));_[L].setStyle({x:N[0],y:N[1],text:b.formatValueText(this._dataInterval[L]),textVerticalAlign:"middle",textAlign:this._applyTransform(this._orient==="horizontal"?L===0?"bottom":"top":"left",w.barGroup)})},this)},_showIndicator:function(E,C,w,b){var I=this.visualMapModel,_=I.getExtent(),L=I.itemSize,D=[0,L[1]],N=r(E,_,D,!0),R=this._shapes,B=R.indicator;if(!B)return;B.position[1]=N,B.attr("invisible",!1),B.setShape("points",h(!!w,b,N,L[1]));var M={convertOpacityToAlpha:!0},H=this.getControllerVisual(E,"color",M);B.setStyle("fill",H);var F=S.applyTransform(R.indicatorLabelPoint,S.getTransform(B,this.group)),K=R.indicatorLabel;K.attr("invisible",!1);var j=this._applyTransform("left",R.barGroup),V=this._orient;K.setStyle({text:(w||"")+I.formatValueText(C),textVerticalAlign:V==="horizontal"?j:"middle",textAlign:V==="horizontal"?"center":j,x:F[0],y:F[1]})},_enableHoverLinkToSeries:function(){var E=this;this._shapes.barGroup.on("mousemove",function(C){if(E._hovering=!0,!E._dragging){var w=E.visualMapModel.itemSize,b=E._applyTransform([C.offsetX,C.offsetY],E._shapes.barGroup,!0,!0);b[1]=n(e(0,b[1]),w[1]),E._doHoverLinkToSeries(b[1],0<=b[0]&&b[0]<=w[0])}}).on("mouseout",function(){E._hovering=!1,!E._dragging&&E._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var E=this.api.getZr();this.visualMapModel.option.hoverLink?(E.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),E.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(E,C){var w=this.visualMapModel,b=w.itemSize;if(!w.option.hoverLink)return;var I=[0,b[1]],_=w.getExtent();E=n(e(I[0],E),I[1]);var L=p(w,_,I),D=[E-L,E+L],N=r(E,I,_,!0),R=[r(D[0],I,_,!0),r(D[1],I,_,!0)];D[0]<I[0]&&(R[0]=-Infinity),D[1]>I[1]&&(R[1]=Infinity),C&&(R[0]===-Infinity?this._showIndicator(N,R[1],"< ",L):R[1]===Infinity?this._showIndicator(N,R[0],"> ",L):this._showIndicator(N,N,"\u2248 ",L));var B=this._hoverLinkDataIndices,M=[];(C||g(w))&&(M=this._hoverLinkDataIndices=w.findTargetDataIndices(R));var H=o.compressBatches(B,M);this._dispatchHighDown("downplay",c.makeHighDownBatch(H[0],w)),this._dispatchHighDown("highlight",c.makeHighDownBatch(H[1],w))},_hoverLinkFromSeriesMouseOver:function(E){var C=E.target,w=this.visualMapModel;if(!C||C.dataIndex==null)return;var b=this.ecModel.getSeriesByIndex(C.seriesIndex);if(!w.isTargetSeries(b))return;var I=b.getData(C.dataType),_=I.get(w.getDataDimension(I),C.dataIndex,!0);isNaN(_)||this._showIndicator(_,_)},_hideIndicator:function(){var E=this._shapes;E.indicator&&E.indicator.attr("invisible",!0),E.indicatorLabel&&E.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var E=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",c.makeHighDownBatch(E,this.visualMapModel)),E.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var E=this.api.getZr();E.off("mouseover",this._hoverLinkFromSeriesMouseOver),E.off("mouseout",this._hideIndicator)},_applyTransform:function(E,C,w,b){var I=S.getTransform(C,b?null:this.group);return S[O.isArray(E)?"applyTransform":"transformDirection"](E,I,w)},_dispatchHighDown:function(E,C){C&&C.length&&this.api.dispatchAction({type:E,batch:C})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function l(E,C,w,b){return new S.Polygon({shape:{points:E},draggable:!!w,cursor:C,drift:w,onmousemove:function(I){T.stop(I.event)},ondragend:b})}function u(E,C){return E===0?[[0,0],[C,0],[C,-C]]:[[0,0],[C,0],[C,C]]}function h(E,C,w,b){return E?[[0,-n(C,e(w,0))],[t,0],[0,n(C,e(b-w,0))]]:[[0,0],[5,-5],[5,5]]}function p(E,C,w){var b=s/2,I=E.get("hoverLinkDataSize");return I&&(b=r(I,C,w,!0)/2),b}function g(E){var C=E.get("hoverLinkOnHandle");return!!(C==null?E.get("realtime"):C)}function A(E){return E==="vertical"?"ns-resize":"ew-resize"}var y=i;U.exports=y},PQMj:function(U,P,d){},PSzr:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};P.default=O},PVpz:function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var x=O,T=x.lib,v=T.StreamCipher,S=x.algo,m=[],f=[],c=[],o=S.RabbitLegacy=v.extend({_doReset:function(){var n=this._key.words,e=this.cfg.iv,s=this._X=[n[0],n[3]<<16|n[2]>>>16,n[1],n[0]<<16|n[3]>>>16,n[2],n[1]<<16|n[0]>>>16,n[3],n[2]<<16|n[1]>>>16],t=this._C=[n[2]<<16|n[2]>>>16,n[0]&4294901760|n[1]&65535,n[3]<<16|n[3]>>>16,n[1]&4294901760|n[2]&65535,n[0]<<16|n[0]>>>16,n[2]&4294901760|n[3]&65535,n[1]<<16|n[1]>>>16,n[3]&4294901760|n[0]&65535];this._b=0;for(var i=0;i<4;i++)r.call(this);for(var i=0;i<8;i++)t[i]^=s[i+4&7];if(e){var l=e.words,u=l[0],h=l[1],p=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360,g=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,A=p>>>16|g&4294901760,y=g<<16|p&65535;t[0]^=p,t[1]^=A,t[2]^=g,t[3]^=y,t[4]^=p,t[5]^=A,t[6]^=g,t[7]^=y;for(var i=0;i<4;i++)r.call(this)}},_doProcessBlock:function(n,e){var s=this._X;r.call(this),m[0]=s[0]^s[5]>>>16^s[3]<<16,m[1]=s[2]^s[7]>>>16^s[5]<<16,m[2]=s[4]^s[1]>>>16^s[7]<<16,m[3]=s[6]^s[3]>>>16^s[1]<<16;for(var t=0;t<4;t++)m[t]=(m[t]<<8|m[t]>>>24)&16711935|(m[t]<<24|m[t]>>>8)&4278255360,n[e+t]^=m[t]},blockSize:128/32,ivSize:64/32});function r(){for(var a=this._X,n=this._C,e=0;e<8;e++)f[e]=n[e];n[0]=n[0]+1295307597+this._b|0,n[1]=n[1]+3545052371+(n[0]>>>0<f[0]>>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0<f[1]>>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0<f[2]>>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0<f[3]>>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0<f[4]>>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0<f[5]>>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0<f[6]>>>0?1:0)|0,this._b=n[7]>>>0<f[7]>>>0?1:0;for(var e=0;e<8;e++){var s=a[e]+n[e],t=s&65535,i=s>>>16,l=((t*t>>>17)+t*i>>>15)+i*i,u=((s&4294901760)*s|0)+((s&65535)*s|0);c[e]=l^u}a[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,a[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,a[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,a[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,a[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,a[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,a[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,a[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}x.RabbitLegacy=v._createHelper(o)}(),O.RabbitLegacy})},ProS:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("aX58"),v=d("bYtY"),S=d("Qe9p"),m=d("ItGF"),f=d("BPZU"),c=d("H6uX"),o=d("fmMI"),r=d("hD7B"),a=d("IDmD"),n=d("ypgQ"),e=d("+wW9"),s=d("0V0F"),t=d("bLfw"),i=d("T4UG"),l=d("sS/r"),u=d("6Ic6"),h=d("IwbS"),p=d("4NO4"),g=d("iLNv"),A=g.throttle,y=d("/WM3"),E=d("uAnK"),C=d("mYwL"),w=d("af/B"),b=d("xTNl"),I=d("8hn6");d("A1Ka");var _=d("7DRL"),L=v.assert,D=v.each,N=v.isFunction,R=v.isObject,B=t.parseClassType,M="4.8.0",H={zrender:"4.3.1"},F=1,K=1e3,j=800,V=900,z=5e3,Y=1e3,ee=1100,fe=2e3,ie=3e3,we=3500,Ce=4e3,Le=5e3,He={PROCESSOR:{FILTER:K,SERIES_FILTER:j,STATISTIC:z},VISUAL:{LAYOUT:Y,PROGRESSIVE_LAYOUT:ee,GLOBAL:fe,CHART:ie,POST_CHART_LAYOUT:we,COMPONENT:Ce,BRUSH:Le}},ce="__flagInMainProcess",Pe="__optionUpdated",Q=/^[a-zA-Z0-9_]+$/;function me(ot,Mt){return function(xr,ur,gr){if(!Mt&&this._disposed){Ot(this.id);return}xr=xr&&xr.toLowerCase(),c.prototype[ot].call(this,xr,ur,gr)}}function Je(){c.call(this)}Je.prototype.on=me("on",!0),Je.prototype.off=me("off",!0),Je.prototype.one=me("one",!0),v.mixin(Je,c);function re(ot,Mt,xr){xr=xr||{},typeof Mt=="string"&&(Mt=ut[Mt]),this.id,this.group,this._dom=ot;var ur="canvas",gr=this._zr=T.init(ot,{renderer:xr.renderer||ur,devicePixelRatio:xr.devicePixelRatio,width:xr.width,height:xr.height});this._throttledZrFlush=A(v.bind(gr.flush,gr),17);var Mt=v.clone(Mt);Mt&&e(Mt,!0),this._theme=Mt,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new a;var Qr=this._api=Be(this);function ln(_n,Mn){return _n.__prio-Mn.__prio}f(jt,ln),f(De,ln),this._scheduler=new w(this,Qr,De,jt),c.call(this,this._ecEventProcessor=new $),this._messageCenter=new Je,this._initEvents(),this.resize=v.bind(this.resize,this),this._pendingActions=[],gr.animation.on("frame",this._onframe,this),Oe(gr,this),v.setAsPrimitive(this)}var G=re.prototype;G._onframe=function(){if(this._disposed)return;var ot=this._scheduler;if(this[Pe]){var Mt=this[Pe].silent;this[ce]=!0,Ae(this),J.update.call(this),this[ce]=!1,this[Pe]=!1,oe.call(this,Mt),pe.call(this,Mt)}else if(ot.unfinished){var xr=F,ur=this._model,gr=this._api;ot.unfinished=!1;do{var Qr=+new Date;ot.performSeriesTasks(ur),ot.performDataProcessorTasks(ur),Me(this,ur),ot.performVisualTasks(ur),tt(this,this._model,gr,"remain"),xr-=+new Date-Qr}while(xr>0&&ot.unfinished);ot.unfinished||this._zr.flush()}},G.getDom=function(){return this._dom},G.getZr=function(){return this._zr},G.setOption=function(ot,Mt,xr){if(this._disposed){Ot(this.id);return}var ur;if(R(Mt)&&(xr=Mt.lazyUpdate,ur=Mt.silent,Mt=Mt.notMerge),this[ce]=!0,!this._model||Mt){var gr=new n(this._api),Qr=this._theme,ln=this._model=new o;ln.scheduler=this._scheduler,ln.init(null,null,Qr,gr)}this._model.setOption(ot,ae),xr?(this[Pe]={silent:ur},this[ce]=!1):(Ae(this),J.update.call(this),this._zr.flush(),this[Pe]=!1,this[ce]=!1,oe.call(this,ur),pe.call(this,ur))},G.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},G.getModel=function(){return this._model},G.getOption=function(){return this._model&&this._model.getOption()},G.getWidth=function(){return this._zr.getWidth()},G.getHeight=function(){return this._zr.getHeight()},G.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},G.getRenderedCanvas=function(ot){if(!m.canvasSupported)return;ot=ot||{},ot.pixelRatio=ot.pixelRatio||1,ot.backgroundColor=ot.backgroundColor||this._model.get("backgroundColor");var Mt=this._zr;return Mt.painter.getRenderedCanvas(ot)},G.getSvgDataURL=function(){if(!m.svgSupported)return;var ot=this._zr,Mt=ot.storage.getDisplayList();return v.each(Mt,function(xr){xr.stopAnimation(!0)}),ot.painter.toDataURL()},G.getDataURL=function(ot){if(this._disposed){Ot(this.id);return}ot=ot||{};var Mt=ot.excludeComponents,xr=this._model,ur=[],gr=this;D(Mt,function(ln){xr.eachComponent({mainType:ln},function(_n){var Mn=gr._componentsMap[_n.__viewId];Mn.group.ignore||(ur.push(Mn),Mn.group.ignore=!0)})});var Qr=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(ot).toDataURL("image/"+(ot&&ot.type||"png"));return D(ur,function(ln){ln.group.ignore=!1}),Qr},G.getConnectedDataURL=function(ot){if(this._disposed){Ot(this.id);return}if(!m.canvasSupported)return;var Mt=ot.type==="svg",xr=this.group,ur=Math.min,gr=Math.max,Qr=Infinity;if(nn[xr]){var ln=Qr,_n=Qr,Mn=-Qr,li=-Qr,ai=[],pi=ot&&ot.pixelRatio||1;v.each(pr,function(Qe,Xe){if(Qe.group===xr){var qe=Mt?Qe.getZr().painter.getSvgDom().innerHTML:Qe.getRenderedCanvas(v.clone(ot)),yt=Qe.getDom().getBoundingClientRect();ln=ur(yt.left,ln),_n=ur(yt.top,_n),Mn=gr(yt.right,Mn),li=gr(yt.bottom,li),ai.push({dom:qe,left:yt.left,top:yt.top})}}),ln*=pi,_n*=pi,Mn*=pi,li*=pi;var Oi=Mn-ln,Ze=li-_n,be=v.createCanvas(),Ne=T.init(be,{renderer:Mt?"svg":"canvas"});if(Ne.resize({width:Oi,height:Ze}),Mt){var Ue="";return D(ai,function(Qe){var Xe=Qe.left-ln,qe=Qe.top-_n;Ue+='<g transform="translate('+Xe+","+qe+')">'+Qe.dom+"</g>"}),Ne.painter.getSvgRoot().innerHTML=Ue,ot.connectedBackgroundColor&&Ne.painter.setBackgroundColor(ot.connectedBackgroundColor),Ne.refreshImmediately(),Ne.painter.toDataURL()}else return ot.connectedBackgroundColor&&Ne.add(new h.Rect({shape:{x:0,y:0,width:Oi,height:Ze},style:{fill:ot.connectedBackgroundColor}})),D(ai,function(Qe){var Xe=new h.Image({style:{x:Qe.left*pi-ln,y:Qe.top*pi-_n,image:Qe.dom}});Ne.add(Xe)}),Ne.refreshImmediately(),be.toDataURL("image/"+(ot&&ot.type||"png"))}else return this.getDataURL(ot)},G.convertToPixel=v.curry(X,"convertToPixel"),G.convertFromPixel=v.curry(X,"convertFromPixel");function X(ot,Mt,xr){if(this._disposed){Ot(this.id);return}var ur=this._model,gr=this._coordSysMgr.getCoordinateSystems(),Qr;Mt=p.parseFinder(ur,Mt);for(var ln=0;ln<gr.length;ln++){var _n=gr[ln];if(_n[ot]&&(Qr=_n[ot](ur,Mt,xr))!=null)return Qr}}G.containPixel=function(ot,Mt){if(this._disposed){Ot(this.id);return}var xr=this._model,ur;return ot=p.parseFinder(xr,ot),v.each(ot,function(gr,Qr){Qr.indexOf("Models")>=0&&v.each(gr,function(ln){var _n=ln.coordinateSystem;if(_n&&_n.containPoint)ur|=!!_n.containPoint(Mt);else if(Qr==="seriesModels"){var Mn=this._chartsMap[ln.__viewId];Mn&&Mn.containPoint&&(ur|=Mn.containPoint(Mt,ln))}},this)},this),!!ur},G.getVisual=function(ot,Mt){var xr=this._model;ot=p.parseFinder(xr,ot,{defaultMainType:"series"});var ur=ot.seriesModel,gr=ur.getData(),Qr=ot.hasOwnProperty("dataIndexInside")?ot.dataIndexInside:ot.hasOwnProperty("dataIndex")?gr.indexOfRawIndex(ot.dataIndex):null;return Qr!=null?gr.getItemVisual(Qr,Mt):gr.getVisual(Mt)},G.getViewOfComponentModel=function(ot){return this._componentsMap[ot.__viewId]},G.getViewOfSeriesModel=function(ot){return this._chartsMap[ot.__viewId]};var J={prepareAndUpdate:function(ot){Ae(this),J.update.call(this,ot)},update:function(ot){var Mt=this._model,xr=this._api,ur=this._zr,gr=this._coordSysMgr,Qr=this._scheduler;if(!Mt)return;Qr.restoreData(Mt,ot),Qr.performSeriesTasks(Mt),gr.create(Mt,xr),Qr.performDataProcessorTasks(Mt,ot),Me(this,Mt),gr.update(Mt,xr),it(Mt),Qr.performVisualTasks(Mt,ot),et(this,Mt,xr,ot);var ln=Mt.get("backgroundColor")||"transparent";if(m.canvasSupported)ur.setBackgroundColor(ln);else{var _n=S.parse(ln);ln=S.stringify(_n,"rgb"),_n[3]===0&&(ln="transparent")}ze(Mt,xr)},updateTransform:function(ot){var Mt=this._model,xr=this,ur=this._api;if(!Mt)return;var gr=[];Mt.eachComponent(function(ln,_n){var Mn=xr.getViewOfComponentModel(_n);if(Mn&&Mn.__alive)if(Mn.updateTransform){var li=Mn.updateTransform(_n,Mt,ur,ot);li&&li.update&&gr.push(Mn)}else gr.push(Mn)});var Qr=v.createHashMap();Mt.eachSeries(function(ln){var _n=xr._chartsMap[ln.__viewId];if(_n.updateTransform){var Mn=_n.updateTransform(ln,Mt,ur,ot);Mn&&Mn.update&&Qr.set(ln.uid,1)}else Qr.set(ln.uid,1)}),it(Mt),this._scheduler.performVisualTasks(Mt,ot,{setDirty:!0,dirtyMap:Qr}),tt(xr,Mt,ur,ot,Qr),ze(Mt,this._api)},updateView:function(ot){var Mt=this._model;if(!Mt)return;u.markUpdateMethod(ot,"updateView"),it(Mt),this._scheduler.performVisualTasks(Mt,ot,{setDirty:!0}),et(this,this._model,this._api,ot),ze(Mt,this._api)},updateVisual:function(ot){J.update.call(this,ot)},updateLayout:function(ot){J.update.call(this,ot)}};function Ae(ot){var Mt=ot._model,xr=ot._scheduler;xr.restorePipelines(Mt),xr.prepareStageTasks(),Ye(ot,"component",Mt,xr),Ye(ot,"chart",Mt,xr),xr.plan()}function he(ot,Mt,xr,ur,gr){var Qr=ot._model;if(!ur){D(ot._componentsViews.concat(ot._chartsViews),li);return}var ln={};ln[ur+"Id"]=xr[ur+"Id"],ln[ur+"Index"]=xr[ur+"Index"],ln[ur+"Name"]=xr[ur+"Name"];var _n={mainType:ur,query:ln};gr&&(_n.subType=gr);var Mn=xr.excludeSeriesId;Mn!=null&&(Mn=v.createHashMap(p.normalizeToArray(Mn))),Qr&&Qr.eachComponent(_n,function(ai){(!Mn||Mn.get(ai.id)==null)&&li(ot[ur==="series"?"_chartsMap":"_componentsMap"][ai.__viewId])},ot);function li(ai){ai&&ai.__alive&&ai[Mt]&&ai[Mt](ai.__model,Qr,ot._api,xr)}}G.resize=function(ot){if(this._disposed){Ot(this.id);return}this._zr.resize(ot);var Mt=this._model;if(this._loadingFX&&this._loadingFX.resize(),!Mt)return;var xr=Mt.resetOption("media"),ur=ot&&ot.silent;this[ce]=!0,xr&&Ae(this),J.update.call(this),this[ce]=!1,oe.call(this,ur),pe.call(this,ur)};function Me(ot,Mt){var xr=ot._chartsMap,ur=ot._scheduler;Mt.eachSeries(function(gr){ur.updateStreamModes(gr,xr[gr.__viewId])})}G.showLoading=function(ot,Mt){if(this._disposed){Ot(this.id);return}if(R(ot)&&(Mt=ot,ot=""),ot=ot||"default",this.hideLoading(),!rr[ot])return;var xr=rr[ot](this._api,Mt),ur=this._zr;this._loadingFX=xr,ur.add(xr)},G.hideLoading=function(){if(this._disposed){Ot(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},G.makeActionFromEvent=function(ot){var Mt=v.extend({},ot);return Mt.type=Re[ot.type],Mt},G.dispatchAction=function(ot,Mt){if(this._disposed){Ot(this.id);return}if(R(Mt)||(Mt={silent:!!Mt}),!Z[ot.type])return;if(!this._model)return;if(this[ce]){this._pendingActions.push(ot);return}Ie.call(this,ot,Mt.silent),Mt.flush?this._zr.flush(!0):Mt.flush!==!1&&m.browser.weChat&&this._throttledZrFlush(),oe.call(this,Mt.silent),pe.call(this,Mt.silent)};function Ie(ot,Mt){var xr=ot.type,ur=ot.escapeConnect,gr=Z[xr],Qr=gr.actionInfo,ln=(Qr.update||"update").split(":"),_n=ln.pop();ln=ln[0]!=null&&B(ln[0]),this[ce]=!0;var Mn=[ot],li=!1;ot.batch&&(li=!0,Mn=v.map(ot.batch,function(Ze){return Ze=v.defaults(v.extend({},Ze),ot),Ze.batch=null,Ze}));var ai=[],pi,Oi=xr==="highlight"||xr==="downplay";D(Mn,function(Ze){pi=gr.action(Ze,this._model,this._api),pi=pi||v.extend({},Ze),pi.type=Qr.event||pi.type,ai.push(pi),Oi?he(this,_n,Ze,"series"):ln&&he(this,_n,Ze,ln.main,ln.sub)},this),_n!=="none"&&!Oi&&!ln&&(this[Pe]?(Ae(this),J.update.call(this,ot),this[Pe]=!1):J[_n].call(this,ot)),li?pi={type:Qr.event||xr,escapeConnect:ur,batch:ai}:pi=ai[0],this[ce]=!1,!Mt&&this._messageCenter.trigger(pi.type,pi)}function oe(ot){for(var Mt=this._pendingActions;Mt.length;){var xr=Mt.shift();Ie.call(this,xr,ot)}}function pe(ot){!ot&&this.trigger("updated")}function Oe(ot,Mt){ot.on("rendered",function(){Mt.trigger("rendered"),ot.animation.isFinished()&&!Mt[Pe]&&!Mt._scheduler.unfinished&&!Mt._pendingActions.length&&Mt.trigger("finished")})}G.appendData=function(ot){if(this._disposed){Ot(this.id);return}var Mt=ot.seriesIndex,xr=this.getModel(),ur=xr.getSeriesByIndex(Mt);ur.appendData(ot),this._scheduler.unfinished=!0},G.on=me("on",!1),G.off=me("off",!1),G.one=me("one",!1);function Ye(ot,Mt,xr,ur){for(var gr=Mt==="component",Qr=gr?ot._componentsViews:ot._chartsViews,ln=gr?ot._componentsMap:ot._chartsMap,_n=ot._zr,Mn=ot._api,li=0;li<Qr.length;li++)Qr[li].__alive=!1;gr?xr.eachComponent(function(Oi,Ze){Oi!=="series"&&ai(Ze)}):xr.eachSeries(ai);function ai(Oi){var Ze="_ec_"+Oi.id+"_"+Oi.type,be=ln[Ze];if(!be){var Ne=B(Oi.type),Ue=gr?l.getClass(Ne.main,Ne.sub):u.getClass(Ne.sub);be=new Ue,be.init(xr,Mn),ln[Ze]=be,Qr.push(be),_n.add(be.group)}Oi.__viewId=be.__id=Ze,be.__alive=!0,be.__model=Oi,be.group.__ecComponentInfo={mainType:Oi.mainType,index:Oi.componentIndex},!gr&&ur.prepareView(be,Oi,xr,Mn)}for(var li=0;li<Qr.length;){var pi=Qr[li];pi.__alive?li++:(!gr&&pi.renderTask.dispose(),_n.remove(pi.group),pi.dispose(xr,Mn),Qr.splice(li,1),delete ln[pi.__id],pi.__id=pi.group.__ecComponentInfo=null)}}function it(ot){ot.clearColorPalette(),ot.eachSeries(function(Mt){Mt.clearColorPalette()})}function et(ot,Mt,xr,ur){Te(ot,Mt,xr,ur),D(ot._chartsViews,function(gr){gr.__alive=!1}),tt(ot,Mt,xr,ur),D(ot._chartsViews,function(gr){gr.__alive||gr.remove(Mt,xr)})}function Te(ot,Mt,xr,ur,gr){D(gr||ot._componentsViews,function(Qr){var ln=Qr.__model;Qr.render(ln,Mt,xr,ur),Nt(ln,Qr)})}function tt(ot,Mt,xr,ur,gr){var Qr=ot._scheduler,ln;Mt.eachSeries(function(_n){var Mn=ot._chartsMap[_n.__viewId];Mn.__alive=!0;var li=Mn.renderTask;Qr.updatePayload(li,ur),gr&&gr.get(_n.uid)&&li.dirty(),ln|=li.perform(Qr.getPerformArgs(li)),Mn.group.silent=!!_n.get("silent"),Nt(_n,Mn),Ct(_n,Mn)}),Qr.unfinished|=ln,Tt(ot,Mt),E(ot._zr.dom,Mt)}function ze(ot,Mt){D(gt,function(xr){xr(ot,Mt)})}var dt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];G._initEvents=function(){D(dt,function(ot){var Mt=function(xr){var ur=this.getModel(),gr=xr.target,Qr,ln=ot==="globalout";if(ln)Qr={};else if(gr&&gr.dataIndex!=null){var _n=gr.dataModel||ur.getSeriesByIndex(gr.seriesIndex);Qr=_n&&_n.getDataParams(gr.dataIndex,gr.dataType,gr)||{}}else gr&&gr.eventData&&(Qr=v.extend({},gr.eventData));if(Qr){var Mn=Qr.componentType,li=Qr.componentIndex;(Mn==="markLine"||Mn==="markPoint"||Mn==="markArea")&&(Mn="series",li=Qr.seriesIndex);var ai=Mn&&li!=null&&ur.getComponent(Mn,li),pi=ai&&this[ai.mainType==="series"?"_chartsMap":"_componentsMap"][ai.__viewId];Qr.event=xr,Qr.type=ot,this._ecEventProcessor.eventInfo={targetEl:gr,packedEvent:Qr,model:ai,view:pi},this.trigger(ot,Qr)}};Mt.zrEventfulCallAtLast=!0,this._zr.on(ot,Mt,this)},this),D(Re,function(ot,Mt){this._messageCenter.on(Mt,function(xr){this.trigger(Mt,xr)},this)},this)},G.isDisposed=function(){return this._disposed},G.clear=function(){if(this._disposed){Ot(this.id);return}this.setOption({series:[]},!0)},G.dispose=function(){if(this._disposed){Ot(this.id);return}this._disposed=!0,p.setAttribute(this.getDom(),$t,"");var ot=this._api,Mt=this._model;D(this._componentsViews,function(xr){xr.dispose(Mt,ot)}),D(this._chartsViews,function(xr){xr.dispose(Mt,ot)}),this._zr.dispose(),delete pr[this.id]},v.mixin(re,c);function Ot(ot){}function Tt(ot,Mt){var xr=ot._zr,ur=xr.storage,gr=0;ur.traverse(function(Qr){gr++}),gr>Mt.get("hoverLayerThreshold")&&!m.node&&Mt.eachSeries(function(Qr){if(Qr.preventUsingHoverLayer)return;var ln=ot._chartsMap[Qr.__viewId];ln.__alive&&ln.group.traverse(function(_n){_n.useHoverLayer=!0})})}function Ct(ot,Mt){var xr=ot.get("blendMode")||null;Mt.group.traverse(function(ur){ur.isGroup||ur.style.blend!==xr&&ur.setStyle("blend",xr),ur.eachPendingDisplayable&&ur.eachPendingDisplayable(function(gr){gr.setStyle("blend",xr)})})}function Nt(ot,Mt){var xr=ot.get("z"),ur=ot.get("zlevel");Mt.group.traverse(function(gr){gr.type!=="group"&&(xr!=null&&(gr.z=xr),ur!=null&&(gr.zlevel=ur))})}function Be(ot){var Mt=ot._coordSysMgr;return v.extend(new r(ot),{getCoordinateSystems:v.bind(Mt.getCoordinateSystems,Mt),getComponentByElement:function(xr){for(;xr;){var ur=xr.__ecComponentInfo;if(ur!=null)return ot._model.getComponent(ur.mainType,ur.index);xr=xr.parent}}})}function $(){this.eventInfo}$.prototype={constructor:$,normalizeQuery:function(ot){var Mt={},xr={},ur={};if(v.isString(ot)){var gr=B(ot);Mt.mainType=gr.main||null,Mt.subType=gr.sub||null}else{var Qr=["Index","Name","Id"],ln={name:1,dataIndex:1,dataType:1};v.each(ot,function(_n,Mn){for(var li=!1,ai=0;ai<Qr.length;ai++){var pi=Qr[ai],Oi=Mn.lastIndexOf(pi);if(Oi>0&&Oi===Mn.length-pi.length){var Ze=Mn.slice(0,Oi);Ze!=="data"&&(Mt.mainType=Ze,Mt[pi.toLowerCase()]=_n,li=!0)}}ln.hasOwnProperty(Mn)&&(xr[Mn]=_n,li=!0),li||(ur[Mn]=_n)})}return{cptQuery:Mt,dataQuery:xr,otherQuery:ur}},filter:function(ot,Mt,xr){var ur=this.eventInfo;if(!ur)return!0;var gr=ur.targetEl,Qr=ur.packedEvent,ln=ur.model,_n=ur.view;if(!ln||!_n)return!0;var Mn=Mt.cptQuery,li=Mt.dataQuery;return ai(Mn,ln,"mainType")&&ai(Mn,ln,"subType")&&ai(Mn,ln,"index","componentIndex")&&ai(Mn,ln,"name")&&ai(Mn,ln,"id")&&ai(li,Qr,"name")&&ai(li,Qr,"dataIndex")&&ai(li,Qr,"dataType")&&(!_n.filterForExposedEvent||_n.filterForExposedEvent(ot,Mt.otherQuery,gr,Qr));function ai(pi,Oi,Ze,be){return pi[Ze]==null||Oi[be||Ze]===pi[Ze]}},afterTrigger:function(){this.eventInfo=null}};var Z={},Re={},De=[],ae=[],gt=[],jt=[],ut={},rr={},pr={},nn={},mr=new Date-0,vr=new Date-0,$t="_echarts_instance_";function Xt(ot){var Mt=0,xr=1,ur=2,gr="__connectUpdateStatus";function Qr(ln,_n){for(var Mn=0;Mn<ln.length;Mn++){var li=ln[Mn];li[gr]=_n}}D(Re,function(ln,_n){ot._messageCenter.on(_n,function(Mn){if(nn[ot.group]&&ot[gr]!==Mt){if(Mn&&Mn.escapeConnect)return;var li=ot.makeActionFromEvent(Mn),ai=[];D(pr,function(pi){pi!==ot&&pi.group===ot.group&&ai.push(pi)}),Qr(ai,Mt),D(ai,function(pi){pi[gr]!==xr&&pi.dispatchAction(li)}),Qr(ai,ur)}})})}function ft(ot,Mt,xr){var ur=wi(ot);if(ur)return ur;var gr=new re(ot,Mt,xr);return gr.id="ec_"+mr++,pr[gr.id]=gr,p.setAttribute(ot,$t,gr.id),Xt(gr),gr}function Ur(ot){if(v.isArray(ot)){var Mt=ot;ot=null,D(Mt,function(xr){xr.group!=null&&(ot=xr.group)}),ot=ot||"g_"+vr++,D(Mt,function(xr){xr.group=ot})}return nn[ot]=!0,ot}function yn(ot){nn[ot]=!1}var Dn=yn;function Un(ot){typeof ot=="string"?ot=pr[ot]:ot instanceof re||(ot=wi(ot)),ot instanceof re&&!ot.isDisposed()&&ot.dispose()}function wi(ot){return pr[p.getAttribute(ot,$t)]}function Rn(ot){return pr[ot]}function kn(ot,Mt){ut[ot]=Mt}function Vn(ot){ae.push(ot)}function Gt(ot,Mt){wt(De,ot,Mt,K)}function st(ot){gt.push(ot)}function ue(ot,Mt,xr){typeof Mt=="function"&&(xr=Mt,Mt="");var ur=R(ot)?ot.type:[ot,ot={event:Mt}][0];ot.event=(ot.event||ur).toLowerCase(),Mt=ot.event,L(Q.test(ur)&&Q.test(Mt)),Z[ur]||(Z[ur]={action:xr,actionInfo:ot}),Re[Mt]=ur}function Ee(ot,Mt){a.register(ot,Mt)}function je(ot){var Mt=a.get(ot);if(Mt)return Mt.getDimensionsInfo?Mt.getDimensionsInfo():Mt.dimensions.slice()}function Ve(ot,Mt){wt(jt,ot,Mt,Y,"layout")}function $e(ot,Mt){wt(jt,ot,Mt,ie,"visual")}function wt(ot,Mt,xr,ur,gr){(N(Mt)||R(Mt))&&(xr=Mt,Mt=ur);var Qr=w.wrapStageHandler(xr,gr);return Qr.__prio=Mt,Qr.__raw=xr,ot.push(Qr),Qr}function qt(ot,Mt){rr[ot]=Mt}function Mr(ot){return t.extend(ot)}function an(ot){return l.extend(ot)}function _t(ot){return i.extend(ot)}function at(ot){return u.extend(ot)}function bt(ot){v.$override("createCanvas",ot)}function kt(ot,Mt,xr){_.registerMap(ot,Mt,xr)}function Pt(ot){var Mt=_.retrieveMap(ot);return Mt&&Mt[0]&&{geoJson:Mt[0].geoJSON,specialAreas:Mt[0].specialAreas}}$e(fe,y),Vn(e),Gt(V,s),qt("default",C),ue({type:"highlight",event:"highlight",update:"highlight"},v.noop),ue({type:"downplay",event:"downplay",update:"downplay"},v.noop),kn("light",b),kn("dark",I);var Et={};P.version=M,P.dependencies=H,P.PRIORITY=He,P.init=ft,P.connect=Ur,P.disConnect=yn,P.disconnect=Dn,P.dispose=Un,P.getInstanceByDom=wi,P.getInstanceById=Rn,P.registerTheme=kn,P.registerPreprocessor=Vn,P.registerProcessor=Gt,P.registerPostUpdate=st,P.registerAction=ue,P.registerCoordinateSystem=Ee,P.getCoordinateSystemDimensions=je,P.registerLayout=Ve,P.registerVisual=$e,P.registerLoading=qt,P.extendComponentModel=Mr,P.extendComponentView=an,P.extendSeriesModel=_t,P.extendChartView=at,P.setCanvasCreator=bt,P.registerMap=kt,P.getMap=Pt,P.dataTool=Et;var Ht=d("txkQ");(function(){for(var ot in Ht)Ht.hasOwnProperty(ot)&&(P[ot]=Ht[ot])})()},Pw59:function(U,P,d){"use strict";var O=d("q1tI"),x=d.n(O),T=Object(O.createContext)({});P.a=T},Q7if:function(U,P,d){var O=d("JEkh"),x=O.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});U.exports=x},Q9mQ:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("UADf"),v=d.n(T)},"QB+1":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("Ywus"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},QBsz:function(U,P){var d=typeof Float32Array=="undefined"?Array:Float32Array;function O(w,b){var I=new d(2);return w==null&&(w=0),b==null&&(b=0),I[0]=w,I[1]=b,I}function x(w,b){return w[0]=b[0],w[1]=b[1],w}function T(w){var b=new d(2);return b[0]=w[0],b[1]=w[1],b}function v(w,b,I){return w[0]=b,w[1]=I,w}function S(w,b,I){return w[0]=b[0]+I[0],w[1]=b[1]+I[1],w}function m(w,b,I,_){return w[0]=b[0]+I[0]*_,w[1]=b[1]+I[1]*_,w}function f(w,b,I){return w[0]=b[0]-I[0],w[1]=b[1]-I[1],w}function c(w){return Math.sqrt(r(w))}var o=c;function r(w){return w[0]*w[0]+w[1]*w[1]}var a=r;function n(w,b,I){return w[0]=b[0]*I[0],w[1]=b[1]*I[1],w}function e(w,b,I){return w[0]=b[0]/I[0],w[1]=b[1]/I[1],w}function s(w,b){return w[0]*b[0]+w[1]*b[1]}function t(w,b,I){return w[0]=b[0]*I,w[1]=b[1]*I,w}function i(w,b){var I=c(b);return I===0?(w[0]=0,w[1]=0):(w[0]=b[0]/I,w[1]=b[1]/I),w}function l(w,b){return Math.sqrt((w[0]-b[0])*(w[0]-b[0])+(w[1]-b[1])*(w[1]-b[1]))}var u=l;function h(w,b){return(w[0]-b[0])*(w[0]-b[0])+(w[1]-b[1])*(w[1]-b[1])}var p=h;function g(w,b){return w[0]=-b[0],w[1]=-b[1],w}function A(w,b,I,_){return w[0]=b[0]+_*(I[0]-b[0]),w[1]=b[1]+_*(I[1]-b[1]),w}function y(w,b,I){var _=b[0],L=b[1];return w[0]=I[0]*_+I[2]*L+I[4],w[1]=I[1]*_+I[3]*L+I[5],w}function E(w,b,I){return w[0]=Math.min(b[0],I[0]),w[1]=Math.min(b[1],I[1]),w}function C(w,b,I){return w[0]=Math.max(b[0],I[0]),w[1]=Math.max(b[1],I[1]),w}P.create=O,P.copy=x,P.clone=T,P.set=v,P.add=S,P.scaleAndAdd=m,P.sub=f,P.len=c,P.length=o,P.lenSquare=r,P.lengthSquare=a,P.mul=n,P.div=e,P.dot=s,P.scale=t,P.normalize=i,P.distance=l,P.dist=u,P.distanceSquare=h,P.distSquare=p,P.negate=g,P.lerp=A,P.applyTransform=y,P.min=E,P.max=C},"QO+J":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.createSensor=void 0;var O=T(d("NohK")),x=d("24YM");function T(S){return S&&S.__esModule?S:{default:S}}var v=function(m){var f=void 0,c=[],o=function(){getComputedStyle(m).position==="static"&&(m.style.position="relative");var t=document.createElement("object");return t.onload=function(){t.contentDocument.defaultView.addEventListener("resize",r),r()},t.style.display="block",t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.height="100%",t.style.width="100%",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex="-1",t.style.opacity="0",t.setAttribute("class",x.SensorClassName),t.setAttribute("tabindex",x.SensorTabIndex),t.type="text/html",m.appendChild(t),t.data="about:blank",t},r=(0,O.default)(function(){c.forEach(function(s){s(m)})}),a=function(t){f||(f=o()),c.indexOf(t)===-1&&c.push(t)},n=function(){f&&f.parentNode&&(f.contentDocument&&f.contentDocument.defaultView.removeEventListener("resize",r),f.parentNode.removeChild(f),f=void 0,c=[])},e=function(t){var i=c.indexOf(t);i!==-1&&c.splice(i,1),c.length===0&&f&&n()};return{element:m,bind:a,destroy:n,unbind:e}};P.createSensor=v},"QQZ/":function(U,P,d){var O=d("Sq3C"),x=d("Z1HP"),T=d("Sxd8"),v=d("dt0z");function S(m,f,c){m=v(m),f=T(f);var o=f?x(m):0;return f&&o<f?O(f-o,c)+m:m}U.exports=S},QUw5:function(U,P,d){var O=d("OlYY"),x=O.extend({type:"dataZoom.select"});U.exports=x},QV2g:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=O;function O(){for(var v,S=[],m=0;m<256;m++){v=m;for(var f=0;f<8;f++)v=v&1?3988292384^v>>>1:v>>>1;S[m]=v}return S}var x=O();function T(v,S,m,f){var c=x,o=f+m;v^=-1;for(var r=f;r<o;r++)v=v>>>8^c[(v^S[r])&255];return v^-1}},QbM5:function(U,P,d){},Qe9p:function(U,P,d){var O=d("1RvN"),x={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 T(b){return b=Math.round(b),b<0?0:b>255?255:b}function v(b){return b=Math.round(b),b<0?0:b>360?360:b}function S(b){return b<0?0:b>1?1:b}function m(b){return b.length&&b.charAt(b.length-1)==="%"?T(parseFloat(b)/100*255):T(parseInt(b,10))}function f(b){return b.length&&b.charAt(b.length-1)==="%"?S(parseFloat(b)/100):S(parseFloat(b))}function c(b,I,_){return _<0?_+=1:_>1&&(_-=1),_*6<1?b+(I-b)*_*6:_*2<1?I:_*3<2?b+(I-b)*(2/3-_)*6:b}function o(b,I,_){return b+(I-b)*_}function r(b,I,_,L,D){return b[0]=I,b[1]=_,b[2]=L,b[3]=D,b}function a(b,I){return b[0]=I[0],b[1]=I[1],b[2]=I[2],b[3]=I[3],b}var n=new O(20),e=null;function s(b,I){e&&a(e,I),e=n.put(b,e||I.slice())}function t(b,I){if(!b)return;I=I||[];var _=n.get(b);if(_)return a(I,_);b=b+"";var L=b.replace(/ /g,"").toLowerCase();if(L in x)return a(I,x[L]),s(b,I),I;if(L.charAt(0)==="#"){if(L.length===4){var D=parseInt(L.substr(1),16);if(!(D>=0&&D<=4095)){r(I,0,0,0,1);return}return r(I,(D&3840)>>4|(D&3840)>>8,D&240|(D&240)>>4,D&15|(D&15)<<4,1),s(b,I),I}else if(L.length===7){var D=parseInt(L.substr(1),16);if(!(D>=0&&D<=16777215)){r(I,0,0,0,1);return}return r(I,(D&16711680)>>16,(D&65280)>>8,D&255,1),s(b,I),I}return}var N=L.indexOf("("),R=L.indexOf(")");if(N!==-1&&R+1===L.length){var B=L.substr(0,N),M=L.substr(N+1,R-(N+1)).split(","),H=1;switch(B){case"rgba":if(M.length!==4){r(I,0,0,0,1);return}H=f(M.pop());case"rgb":if(M.length!==3){r(I,0,0,0,1);return}return r(I,m(M[0]),m(M[1]),m(M[2]),H),s(b,I),I;case"hsla":if(M.length!==4){r(I,0,0,0,1);return}return M[3]=f(M[3]),i(M,I),s(b,I),I;case"hsl":if(M.length!==3){r(I,0,0,0,1);return}return i(M,I),s(b,I),I;default:return}}r(I,0,0,0,1);return}function i(b,I){var _=(parseFloat(b[0])%360+360)%360/360,L=f(b[1]),D=f(b[2]),N=D<=.5?D*(L+1):D+L-D*L,R=D*2-N;return I=I||[],r(I,T(c(R,N,_+1/3)*255),T(c(R,N,_)*255),T(c(R,N,_-1/3)*255),1),b.length===4&&(I[3]=b[3]),I}function l(b){if(!b)return;var I=b[0]/255,_=b[1]/255,L=b[2]/255,D=Math.min(I,_,L),N=Math.max(I,_,L),R=N-D,B=(N+D)/2,M,H;if(R===0)M=0,H=0;else{B<.5?H=R/(N+D):H=R/(2-N-D);var F=((N-I)/6+R/2)/R,K=((N-_)/6+R/2)/R,j=((N-L)/6+R/2)/R;I===N?M=j-K:_===N?M=1/3+F-j:L===N&&(M=2/3+K-F),M<0&&(M+=1),M>1&&(M-=1)}var V=[M*360,H,B];return b[3]!=null&&V.push(b[3]),V}function u(b,I){var _=t(b);if(_){for(var L=0;L<3;L++)I<0?_[L]=_[L]*(1-I)|0:_[L]=(255-_[L])*I+_[L]|0,_[L]>255?_[L]=255:b[L]<0&&(_[L]=0);return w(_,_.length===4?"rgba":"rgb")}}function h(b){var I=t(b);if(I)return((1<<24)+(I[0]<<16)+(I[1]<<8)+ +I[2]).toString(16).slice(1)}function p(b,I,_){if(!(I&&I.length)||!(b>=0&&b<=1))return;_=_||[];var L=b*(I.length-1),D=Math.floor(L),N=Math.ceil(L),R=I[D],B=I[N],M=L-D;return _[0]=T(o(R[0],B[0],M)),_[1]=T(o(R[1],B[1],M)),_[2]=T(o(R[2],B[2],M)),_[3]=S(o(R[3],B[3],M)),_}var g=p;function A(b,I,_){if(!(I&&I.length)||!(b>=0&&b<=1))return;var L=b*(I.length-1),D=Math.floor(L),N=Math.ceil(L),R=t(I[D]),B=t(I[N]),M=L-D,H=w([T(o(R[0],B[0],M)),T(o(R[1],B[1],M)),T(o(R[2],B[2],M)),S(o(R[3],B[3],M))],"rgba");return _?{color:H,leftIndex:D,rightIndex:N,value:L}:H}var y=A;function E(b,I,_,L){if(b=t(b),b)return b=l(b),I!=null&&(b[0]=v(I)),_!=null&&(b[1]=f(_)),L!=null&&(b[2]=f(L)),w(i(b),"rgba")}function C(b,I){if(b=t(b),b&&I!=null)return b[3]=S(I),w(b,"rgba")}function w(b,I){if(!b||!b.length)return;var _=b[0]+","+b[1]+","+b[2];return(I==="rgba"||I==="hsva"||I==="hsla")&&(_+=","+b[3]),I+"("+_+")"}P.parse=t,P.lift=u,P.toHex=h,P.fastLerp=p,P.fastMapToColor=g,P.lerp=A,P.mapToColor=y,P.modifyHSL=E,P.modifyAlpha=C,P.stringify=w},Qi1f:function(U,P,d){"use strict";d.d(P,"g",function(){return s}),d.d(P,"c",function(){return t}),d.d(P,"a",function(){return l}),d.d(P,"b",function(){return u}),d.d(P,"d",function(){return h}),d.d(P,"e",function(){return p}),d.d(P,"f",function(){return A});var O=d("VTBJ"),x=d("U8pU"),T=d("AJpP"),v=d("q1tI"),S=d.n(v),m=d("Kwbf"),f=d("MNnm"),c="rc-util-key";function o(y){if(y.attachTo)return y.attachTo;var E=document.querySelector("head");return E||document.body}function r(y){var E,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(f.a)())return null;var w=document.createElement("style");if((E=C.csp)===null||E===void 0?void 0:E.nonce){var b;w.nonce=(b=C.csp)===null||b===void 0?void 0:b.nonce}w.innerHTML=y;var I=o(C),_=I.firstChild;return C.prepend&&I.prepend?I.prepend(w):C.prepend&&_?I.insertBefore(w,_):I.appendChild(w),w}var a=new Map;function n(y,E){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},w=o(C);if(!a.has(w)){var b=r("",C),I=b.parentNode;a.set(w,I),I.removeChild(b)}var _=Array.from(a.get(w).children).find(function(B){return B.tagName==="STYLE"&&B[c]===E});if(_){var L,D;if(((L=C.csp)===null||L===void 0?void 0:L.nonce)&&_.nonce!==((D=C.csp)===null||D===void 0?void 0:D.nonce)){var N;_.nonce=(N=C.csp)===null||N===void 0?void 0:N.nonce}return _.innerHTML!==y&&(_.innerHTML=y),_}var R=r(y,C);return R[c]=E,R}var e=d("Pw59");function s(y,E){Object(m.a)(y,"[@ant-design/icons] ".concat(E))}function t(y){return Object(x.a)(y)==="object"&&typeof y.name=="string"&&typeof y.theme=="string"&&(Object(x.a)(y.icon)==="object"||typeof y.icon=="function")}function i(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(y).reduce(function(E,C){var w=y[C];switch(C){case"class":E.className=w,delete E.class;break;default:E[C]=w}return E},{})}function l(y,E,C){return C?S.a.createElement(y.tag,Object(O.a)(Object(O.a)({key:E},i(y.attrs)),C),(y.children||[]).map(function(w,b){return l(w,"".concat(E,"-").concat(y.tag,"-").concat(b))})):S.a.createElement(y.tag,Object(O.a)({key:E},i(y.attrs)),(y.children||[]).map(function(w,b){return l(w,"".concat(E,"-").concat(y.tag,"-").concat(b))}))}function u(y){return Object(T.generate)(y)[0]}function h(y){return y?Array.isArray(y)?y:[y]:[]}var p={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},g=`
|
|
|
.anticon {
|
|
|
display: inline-block;
|
|
|
color: inherit;
|
|
|
font-style: normal;
|
|
|
line-height: 0;
|
|
|
text-align: center;
|
|
|
text-transform: none;
|
|
|
vertical-align: -0.125em;
|
|
|
text-rendering: optimizeLegibility;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
}
|
|
|
|
|
|
.anticon > * {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.anticon svg {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
.anticon::before {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
.anticon .anticon-icon {
|
|
|
display: block;
|
|
|
}
|
|
|
|
|
|
.anticon[tabindex] {
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
|
|
|
.anticon-spin::before,
|
|
|
.anticon-spin {
|
|
|
display: inline-block;
|
|
|
-webkit-animation: loadingCircle 1s infinite linear;
|
|
|
animation: loadingCircle 1s infinite linear;
|
|
|
}
|
|
|
|
|
|
@-webkit-keyframes loadingCircle {
|
|
|
100% {
|
|
|
-webkit-transform: rotate(360deg);
|
|
|
transform: rotate(360deg);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes loadingCircle {
|
|
|
100% {
|
|
|
-webkit-transform: rotate(360deg);
|
|
|
transform: rotate(360deg);
|
|
|
}
|
|
|
}
|
|
|
`,A=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g,C=Object(v.useContext)(e.a),w=C.csp;Object(v.useEffect)(function(){n(E,"@ant-design-icons",{prepend:!0,csp:w})},[])}},Qs3X:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("X+im"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},Qs9O:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};P.default=O},QuXc:function(U,P){var d=function(T){this.colorStops=T||[]};d.prototype={constructor:d,addColorStop:function(T,v){this.colorStops.push({offset:T,color:v})}};var O=d;U.exports=O},Qvb6:function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("ItGF"),v=d("B9fm"),S=d("gvm7"),m=d("7aKB"),f=d("OELB"),c=d("IwbS"),o=d("Ez2D"),r=d("+TT/"),a=d("Qxkt"),n=d("F9bG"),e=d("aX7z"),s=d("/y7N"),t=d("4NO4"),i=t.getTooltipRenderMode,l=x.bind,u=x.each,h=f.parsePercent,p=new c.Rect({shape:{x:-1,y:-1,width:2,height:2}}),g=O.extendComponentView({type:"tooltip",init:function(I,_){if(T.node)return;var L=I.getComponent("tooltip"),D=L.get("renderMode");this._renderMode=i(D);var N;this._renderMode==="html"?(N=new v(_.getDom(),_,{appendToBody:L.get("appendToBody",!0)}),this._newLine="<br/>"):(N=new S(_),this._newLine=`
|
|
|
`),this._tooltipContent=N},render:function(I,_,L){if(T.node)return;this.group.removeAll(),this._tooltipModel=I,this._ecModel=_,this._api=L,this._lastDataByCoordSys=null,this._alwaysShowContent=I.get("alwaysShowContent");var D=this._tooltipContent;D.update(),D.setEnterable(I.get("enterable")),this._initGlobalListener(),this._keepShow()},_initGlobalListener:function(){var I=this._tooltipModel,_=I.get("triggerOn");n.register("itemTooltip",this._api,l(function(L,D,N){_!=="none"&&(_.indexOf(L)>=0?this._tryShow(D,N):L==="leave"&&this._hide(N))},this))},_keepShow:function(){var I=this._tooltipModel,_=this._ecModel,L=this._api;if(this._lastX!=null&&this._lastY!=null&&I.get("triggerOn")!=="none"){var D=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!L.isDisposed()&&D.manuallyShowTip(I,_,L,{x:D._lastX,y:D._lastY})})}},manuallyShowTip:function(I,_,L,D){if(D.from===this.uid||T.node)return;var N=y(D,L);this._ticket="";var R=D.dataByCoordSys;if(D.tooltip&&D.x!=null&&D.y!=null){var B=p;B.position=[D.x,D.y],B.update(),B.tooltip=D.tooltip,this._tryShow({offsetX:D.x,offsetY:D.y,target:B},N)}else if(R)this._tryShow({offsetX:D.x,offsetY:D.y,position:D.position,dataByCoordSys:D.dataByCoordSys,tooltipOption:D.tooltipOption},N);else if(D.seriesIndex!=null){if(this._manuallyAxisShowTip(I,_,L,D))return;var M=o(D,_),H=M.point[0],F=M.point[1];H!=null&&F!=null&&this._tryShow({offsetX:H,offsetY:F,position:D.position,target:M.el},N)}else D.x!=null&&D.y!=null&&(L.dispatchAction({type:"updateAxisPointer",x:D.x,y:D.y}),this._tryShow({offsetX:D.x,offsetY:D.y,position:D.position,target:L.getZr().findHover(D.x,D.y).target},N))},manuallyHideTip:function(I,_,L,D){var N=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&N.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,D.from!==this.uid&&this._hide(y(D,L))},_manuallyAxisShowTip:function(I,_,L,D){var N=D.seriesIndex,R=D.dataIndex,B=_.getComponent("axisPointer").coordSysAxesInfo;if(N==null||R==null||B==null)return;var M=_.getSeriesByIndex(N);if(!M)return;var H=M.getData(),I=A([H.getItemModel(R),M,(M.coordinateSystem||{}).model,I]);return I.get("trigger")!=="axis"?void 0:(L.dispatchAction({type:"updateAxisPointer",seriesIndex:N,dataIndex:R,position:D.position}),!0)},_tryShow:function(I,_){var L=I.target,D=this._tooltipModel;if(!D)return;this._lastX=I.offsetX,this._lastY=I.offsetY;var N=I.dataByCoordSys;N&&N.length?this._showAxisTooltip(N,I):L&&L.dataIndex!=null?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(I,L,_)):L&&L.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(I,L,_)):(this._lastDataByCoordSys=null,this._hide(_))},_showOrMove:function(I,_){var L=I.get("showDelay");_=x.bind(_,this),clearTimeout(this._showTimout),L>0?this._showTimout=setTimeout(_,L):_()},_showAxisTooltip:function(I,_){var L=this._ecModel,D=this._tooltipModel,N=[_.offsetX,_.offsetY],R=[],B=[],M=A([_.tooltipOption,D]),H=this._renderMode,F=this._newLine,K={};u(I,function(V){u(V.dataByAxis,function(z){var Y=L.getComponent(z.axisDim+"Axis",z.axisIndex),ee=z.value,fe=[];if(!Y||ee==null)return;var ie=s.getValueLabel(ee,Y.axis,L,z.seriesDataIndices,z.valueLabelOpt);x.each(z.seriesDataIndices,function(Ce){var Le=L.getSeriesByIndex(Ce.seriesIndex),He=Ce.dataIndexInside,ce=Le&&Le.getDataParams(He);if(ce.axisDim=z.axisDim,ce.axisIndex=z.axisIndex,ce.axisType=z.axisType,ce.axisId=z.axisId,ce.axisValue=e.getAxisRawValue(Y.axis,ee),ce.axisValueLabel=ie,ce){B.push(ce);var Pe=Le.formatTooltip(He,!0,null,H),Q;if(x.isObject(Pe)){Q=Pe.html;var me=Pe.markers;x.merge(K,me)}else Q=Pe;fe.push(Q)}});var we=ie;H!=="html"?R.push(fe.join(F)):R.push((we?m.encodeHTML(we)+F:"")+fe.join(F))})},this),R.reverse(),R=R.join(this._newLine+this._newLine);var j=_.position;this._showOrMove(M,function(){this._updateContentNotChangedOnAxis(I)?this._updatePosition(M,j,N[0],N[1],this._tooltipContent,B):this._showTooltipContent(M,R,B,Math.random(),N[0],N[1],j,void 0,K)})},_showSeriesItemTooltip:function(I,_,L){var D=this._ecModel,N=_.seriesIndex,R=D.getSeriesByIndex(N),B=_.dataModel||R,M=_.dataIndex,H=_.dataType,F=B.getData(H),K=A([F.getItemModel(M),B,R&&(R.coordinateSystem||{}).model,this._tooltipModel]),j=K.get("trigger");if(j!=null&&j!=="item")return;var V=B.getDataParams(M,H),z=B.formatTooltip(M,!1,H,this._renderMode),Y,ee;x.isObject(z)?(Y=z.html,ee=z.markers):(Y=z,ee=null);var fe="item_"+B.name+"_"+M;this._showOrMove(K,function(){this._showTooltipContent(K,Y,V,fe,I.offsetX,I.offsetY,I.position,I.target,ee)}),L({type:"showTip",dataIndexInside:M,dataIndex:F.getRawIndex(M),seriesIndex:N,from:this.uid})},_showComponentItemTooltip:function(I,_,L){var D=_.tooltip;if(typeof D=="string"){var N=D;D={content:N,formatter:N}}var R=new a(D,this._tooltipModel,this._ecModel),B=R.get("content"),M=Math.random();this._showOrMove(R,function(){this._showTooltipContent(R,B,R.get("formatterParams")||{},M,I.offsetX,I.offsetY,I.position,_)}),L({type:"showTip",from:this.uid})},_showTooltipContent:function(I,_,L,D,N,R,B,M,H){if(this._ticket="",!I.get("showContent")||!I.get("show"))return;var F=this._tooltipContent,K=I.get("formatter");B=B||I.get("position");var j=_;if(K&&typeof K=="string")j=m.formatTpl(K,L,!0);else if(typeof K=="function"){var V=l(function(z,Y){z===this._ticket&&(F.setContent(Y,H,I),this._updatePosition(I,B,N,R,F,L,M))},this);this._ticket=D,j=K(L,D,V)}F.setContent(j,H,I),F.show(I),this._updatePosition(I,B,N,R,F,L,M)},_updatePosition:function(I,_,L,D,N,R,B){var M=this._api.getWidth(),H=this._api.getHeight();_=_||I.get("position");var F=N.getSize(),K=I.get("align"),j=I.get("verticalAlign"),V=B&&B.getBoundingRect().clone();if(B&&V.applyTransform(B.transform),typeof _=="function"&&(_=_([L,D],R,N.el,V,{viewSize:[M,H],contentSize:F.slice()})),x.isArray(_))L=h(_[0],M),D=h(_[1],H);else if(x.isObject(_)){_.width=F[0],_.height=F[1];var z=r.getLayoutRect(_,{width:M,height:H});L=z.x,D=z.y,K=null,j=null}else if(typeof _=="string"&&B){var Y=w(_,V,F);L=Y[0],D=Y[1]}else{var Y=E(L,D,N,M,H,K?null:20,j?null:20);L=Y[0],D=Y[1]}if(K&&(L-=b(K)?F[0]/2:K==="right"?F[0]:0),j&&(D-=b(j)?F[1]/2:j==="bottom"?F[1]:0),I.get("confine")){var Y=C(L,D,N,M,H);L=Y[0],D=Y[1]}N.moveTo(L,D)},_updateContentNotChangedOnAxis:function(I){var _=this._lastDataByCoordSys,L=!!_&&_.length===I.length;return L&&u(_,function(D,N){var R=D.dataByAxis||{},B=I[N]||{},M=B.dataByAxis||[];L&=R.length===M.length,L&&u(R,function(H,F){var K=M[F]||{},j=H.seriesDataIndices||[],V=K.seriesDataIndices||[];L&=H.value===K.value&&H.axisType===K.axisType&&H.axisId===K.axisId&&j.length===V.length,L&&u(j,function(z,Y){var ee=V[Y];L&=z.seriesIndex===ee.seriesIndex&&z.dataIndex===ee.dataIndex})})}),this._lastDataByCoordSys=I,!!L},_hide:function(I){this._lastDataByCoordSys=null,I({type:"hideTip",from:this.uid})},dispose:function(I,_){if(T.node)return;this._tooltipContent.dispose(),n.unregister("itemTooltip",_)}});function A(I){for(var _=I.pop();I.length;){var L=I.pop();L&&(a.isInstance(L)&&(L=L.get("tooltip",!0)),typeof L=="string"&&(L={formatter:L}),_=new a(L,_,_.ecModel))}return _}function y(I,_){return I.dispatchAction||x.bind(_.dispatchAction,_)}function E(I,_,L,D,N,R,B){var M=L.getOuterSize(),H=M.width,F=M.height;return R!=null&&(I+H+R>D?I-=H+R:I+=R),B!=null&&(_+F+B>N?_-=F+B:_+=B),[I,_]}function C(I,_,L,D,N){var R=L.getOuterSize(),B=R.width,M=R.height;return I=Math.min(I+B,D)-B,_=Math.min(_+M,N)-M,I=Math.max(I,0),_=Math.max(_,0),[I,_]}function w(I,_,L){var D=L[0],N=L[1],R=5,B=0,M=0,H=_.width,F=_.height;switch(I){case"inside":B=_.x+H/2-D/2,M=_.y+F/2-N/2;break;case"top":B=_.x+H/2-D/2,M=_.y-N-R;break;case"bottom":B=_.x+H/2-D/2,M=_.y+F+R;break;case"left":B=_.x-D-R,M=_.y+F/2-N/2;break;case"right":B=_.x+H+R,M=_.y+F/2-N/2}return[B,M]}function b(I){return I==="center"||I==="middle"}U.exports=g},Qxkt:function(U,P,d){var O=d("bYtY"),x=d("ItGF"),T=d("4NO4"),v=T.makeInner,S=d("Yl7c"),m=S.enableClassExtend,f=S.enableClassCheck,c=d("OQFs"),o=d("m9t5"),r=d("/iHx"),a=d("VR9l"),n=O.mixin,e=v();function s(u,h,p){this.parentModel=h,this.ecModel=p,this.option=u}s.prototype={constructor:s,init:null,mergeOption:function(u){O.merge(this.option,u,!0)},get:function(u,h){return u==null?this.option:t(this.option,this.parsePath(u),!h&&i(this,u))},getShallow:function(u,h){var p=this.option,g=p==null?p:p[u],A=!h&&i(this,u);return g==null&&A&&(g=A.getShallow(u)),g},getModel:function(u,h){var p=u==null?this.option:t(this.option,u=this.parsePath(u)),g;return h=h||(g=i(this,u))&&g.getModel(u),new s(p,h,this.ecModel)},isEmpty:function(){return this.option==null},restoreData:function(){},clone:function(){var u=this.constructor;return new u(O.clone(this.option))},setReadOnly:function(u){},parsePath:function(u){return typeof u=="string"&&(u=u.split(".")),u},customizeGetParent:function(u){e(this).getParent=u},isAnimationEnabled:function(){if(!x.node){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}};function t(u,h,p){for(var g=0;g<h.length;g++){if(!h[g])continue;if(u=u&&typeof u=="object"?u[h[g]]:null,u==null)break}return u==null&&p&&(u=p.get(h)),u}function i(u,h){var p=e(u).getParent;return p?p.call(u,h):u.parentModel}m(s),f(s),n(s,c),n(s,o),n(s,r),n(s,a);var l=s;U.exports=l},QyFq:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};P.default=O},QzjZ:function(U,P,d){var O=d("S/Yl"),x=d("IDmD");function T(v,S){var m=[];return v.eachComponent("singleAxis",function(f,c){var o=new O(f,v,S);o.name="single_"+c,o.resize(f,S),f.coordinateSystem=o,m.push(o)}),v.eachSeries(function(f){if(f.get("coordinateSystem")==="singleAxis"){var c=v.queryComponents({mainType:"singleAxis",index:f.get("singleAxisIndex"),id:f.get("singleAxisId")})[0];f.coordinateSystem=c&&c.coordinateSystem}}),m}x.register("single",{create:T,dimensions:O.prototype.dimensions})},R4Th:function(U,P,d){var O=d("ProS"),x=d("9wZj"),T=d("yO87"),v=d("Fofx"),S=d("h8O9"),m=O.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new x(T)},render:function(f,c,o){var r=f.getData(),a=this._symbolDraw;a.updateData(r),this.group.add(a.group)},updateTransform:function(f,c,o){var r=f.getData();this.group.dirty();var a=S().reset(f);a.progress&&a.progress({start:0,end:r.count()},r),this._symbolDraw.updateLayout(r)},_updateGroupTransform:function(f){var c=f.coordinateSystem;c&&c.getRoamTransform&&(this.group.transform=v.clone(c.getRoamTransform()),this.group.decomposeTransform())},remove:function(f,c){this._symbolDraw&&this._symbolDraw.remove(c)},dispose:function(){}});U.exports=m},R9oj:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("pwpV"),v=d.n(T)},RBEP:function(U,P,d){for(var O=d("ProS"),x=d("VaxA"),T=function(){},v=["treemapZoomToNode","treemapRender","treemapMove"],S=0;S<v.length;S++)O.registerAction({type:v[S],update:"updateView"},T);O.registerAction({type:"treemapRootToNode",update:"updateView"},function(m,f){f.eachComponent({mainType:"series",subType:"treemap",query:m},c);function c(o,r){var a=["treemapZoomToNode","treemapRootToNode"],n=x.retrieveTargetInfo(m,a,o);if(n){var e=o.getViewRoot();e&&(m.direction=x.aboveViewRoot(e,n.node)?"rollUp":"drillDown"),o.resetViewRoot(n.node)}}})},RCxd:function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="ExclamationCircleOutlined";var f=P.a=x.forwardRef(m)},RDYZ:function(U,P,d){var O=d("dMvE");function x(v){this._target=v.target,this._life=v.life||1e3,this._delay=v.delay||0,this._initialized=!1,this.loop=v.loop==null?!1:v.loop,this.gap=v.gap||0,this.easing=v.easing||"Linear",this.onframe=v.onframe,this.ondestroy=v.ondestroy,this.onrestart=v.onrestart,this._pausedTime=0,this._paused=!1}x.prototype={constructor:x,step:function(S,m){if(this._initialized||(this._startTime=S+this._delay,this._initialized=!0),this._paused){this._pausedTime+=m;return}var f=(S-this._startTime-this._pausedTime)/this._life;if(f<0)return;f=Math.min(f,1);var c=this.easing,o=typeof c=="string"?O[c]:c,r=typeof o=="function"?o(f):f;return this.fire("frame",r),f===1?this.loop?(this.restart(S),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(S){var m=(S-this._startTime-this._pausedTime)%this._life;this._startTime=S-m+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(S,m){S="on"+S,this[S]&&this[S](this._target,m)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var T=x;U.exports=T},RELg:function(U,P,d){var O=d("MFOe"),x=O.Global;U.exports={name:"oldIE-userDataStorage",write:f,read:c,each:o,remove:r,clearAll:a};var T="storejs",v=x.document,S=s(),m=(x.navigator?x.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function f(t,i){if(m)return;var l=e(t);S(function(u){u.setAttribute(l,i),u.save(T)})}function c(t){if(m)return;var i=e(t),l=null;return S(function(u){l=u.getAttribute(i)}),l}function o(t){S(function(i){for(var l=i.XMLDocument.documentElement.attributes,u=l.length-1;u>=0;u--){var h=l[u];t(i.getAttribute(h.name),h.name)}})}function r(t){var i=e(t);S(function(l){l.removeAttribute(i),l.save(T)})}function a(){S(function(t){var i=t.XMLDocument.documentElement.attributes;t.load(T);for(var l=i.length-1;l>=0;l--)t.removeAttribute(i[l].name);t.save(T)})}var n=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function e(t){return t.replace(/^\d/,"___$&").replace(n,"___")}function s(){if(!v||!v.documentElement||!v.documentElement.addBehavior)return null;var t="script",i,l,u;try{l=new ActiveXObject("htmlfile"),l.open(),l.write("<"+t+">document.w=window</"+t+'><iframe src="/favicon.ico"></iframe>'),l.close(),i=l.w.frames[0].document,u=i.createElement("div")}catch(h){u=v.createElement("div"),i=v.body}return function(h){var p=[].slice.call(arguments,0);p.unshift(u),i.appendChild(u),u.addBehavior("#default#userData"),u.load(T),h.apply(this,p),i.removeChild(u);return}}},RPvy:function(U,P,d){var O=d("ProS"),x=d("VaxA"),T="sunburstRootToNode";O.registerAction({type:T,update:"updateView"},function(m,f){f.eachComponent({mainType:"series",subType:"sunburst",query:m},c);function c(o,r){var a=x.retrieveTargetInfo(m,[T],o);if(a){var n=o.getViewRoot();n&&(m.direction=x.aboveViewRoot(n,a.node)?"rollUp":"drillDown"),o.resetViewRoot(a.node)}}});var v="sunburstHighlight";O.registerAction({type:v,update:"updateView"},function(m,f){f.eachComponent({mainType:"series",subType:"sunburst",query:m},c);function c(o,r){var a=x.retrieveTargetInfo(m,[v],o);a&&(m.highlight=a.node)}});var S="sunburstUnhighlight";O.registerAction({type:S,update:"updateView"},function(m,f){f.eachComponent({mainType:"series",subType:"sunburst",query:m},c);function c(o,r){m.unhighlight=!0}})},RSch:function(U,P,d){var O=d("IwbS"),x=d("bYtY");function T(m,f,c){O.Group.call(this),this._createPolyline(m,f,c)}var v=T.prototype;v._createPolyline=function(m,f,c){var o=m.getItemLayout(f),r=new O.Polyline({shape:{points:o}});this.add(r),this._updateCommonStl(m,f,c)},v.updateData=function(m,f,c){var o=m.hostModel,r=this.childAt(0),a={shape:{points:m.getItemLayout(f)}};O.updateProps(r,a,o,f),this._updateCommonStl(m,f,c)},v._updateCommonStl=function(m,f,c){var o=this.childAt(0),r=m.getItemModel(f),a=m.getItemVisual(f,"color"),n=c&&c.lineStyle,e=c&&c.hoverLineStyle;(!c||m.hasItemOption)&&(n=r.getModel("lineStyle").getLineStyle(),e=r.getModel("emphasis.lineStyle").getLineStyle()),o.useStyle(x.defaults({strokeNoScale:!0,fill:"none",stroke:a},n)),o.hoverStyle=e,O.setHoverStyle(this)},v.updateLayout=function(m,f){var c=this.childAt(0);c.setShape("points",m.getItemLayout(f))},x.inherits(T,O.Group);var S=T;U.exports=S},RXMa:function(U,P,d){var O=d("y+Vt"),x=O.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(v,S){var m=S.cx,f=S.cy,c=Math.PI*2;v.moveTo(m+S.r,f),v.arc(m,f,S.r,0,c,!1),v.moveTo(m+S.r0,f),v.arc(m,f,S.r0,0,c,!0)}});U.exports=x},RZPm:function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("JgUQ")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="FileOutlined";var c=v.forwardRef(f);P.default=c},RlCK:function(U,P,d){var O=d("ProS"),x=d("bYtY");function T(v,S,m){var f={},c=v==="toggleSelected",o;return m.eachComponent("legend",function(r){c&&o!=null?r[o?"select":"unSelect"](S.name):v==="allSelect"||v==="inverseSelect"?r[v]():(r[v](S.name),o=r.isSelected(S.name));var a=r.getData();x.each(a,function(n){var e=n.get("name");if(e===`
|
|
|
`||e==="")return;var s=r.isSelected(e);f.hasOwnProperty(e)?f[e]=f[e]&&s:f[e]=s})}),v==="allSelect"||v==="inverseSelect"?{selected:f}:{name:S.name,selected:f}}O.registerAction("legendToggleSelect","legendselectchanged",x.curry(T,"toggleSelected")),O.registerAction("legendAllSelect","legendselectall",x.curry(T,"allSelect")),O.registerAction("legendInverseSelect","legendinverseselect",x.curry(T,"inverseSelect")),O.registerAction("legendSelect","legendselected",x.curry(T,"select")),O.registerAction("legendUnSelect","legendunselected",x.curry(T,"unSelect"))},RotF:function(U,P,d){U.exports=d("LSTS")},Rx6q:function(U,P){function d(O){var x=O.getRect(),T=O.getRangeInfo();return{coordSys:{type:"calendar",x:x.x,y:x.y,width:x.width,height:x.height,cellWidth:O.getCellWidth(),cellHeight:O.getCellHeight(),rangeInfo:{start:T.start,end:T.end,weeks:T.weeks,dayCount:T.allDay}},api:{coord:function(v,S){return O.dataToPoint(v,S)}}}}U.exports=d},"S/Yl":function(U,P,d){var O=d("Zvw2"),x=d("aX7z"),T=d("+TT/"),v=T.getLayoutRect,S=d("bYtY"),m=S.each;function f(o,r,a){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(o,r,a),this.model=o}f.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:f,_init:function(o,r,a){var n=this.dimension,e=new O(n,x.createScaleByModel(o),[0,0],o.get("type"),o.get("position")),s=e.type==="category";e.onBand=s&&o.get("boundaryGap"),e.inverse=o.get("inverse"),e.orient=o.get("orient"),o.axis=e,e.model=o,e.coordinateSystem=this,this._axis=e},update:function(o,r){o.eachSeries(function(a){if(a.coordinateSystem===this){var n=a.getData();m(n.mapDimension(this.dimension,!0),function(e){this._axis.scale.unionExtentFromData(n,e)},this),x.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(o,r){this._rect=v({left:o.get("left"),top:o.get("top"),right:o.get("right"),bottom:o.get("bottom"),width:o.get("width"),height:o.get("height")},{width:r.getWidth(),height:r.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var o=this._rect,r=this._axis,a=r.isHorizontal(),n=a?[0,o.width]:[0,o.height],e=r.reverse?1:0;r.setExtent(n[e],n[1-e]),this._updateAxisTransform(r,a?o.x:o.y)},_updateAxisTransform:function(o,r){var a=o.getExtent(),n=a[0]+a[1],e=o.isHorizontal();o.toGlobalCoord=e?function(s){return s+r}:function(s){return n-s+r},o.toLocalCoord=e?function(s){return s-r}:function(s){return n-s+r}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(o){var r=this.getRect(),a=this.getAxis(),n=a.orient;return n==="horizontal"?a.contain(a.toLocalCoord(o[0]))&&o[1]>=r.y&&o[1]<=r.y+r.height:a.contain(a.toLocalCoord(o[1]))&&o[0]>=r.y&&o[0]<=r.y+r.height},pointToData:function(o){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(o[r.orient==="horizontal"?0:1]))]},dataToPoint:function(o){var r=this.getAxis(),a=this.getRect(),n=[],e=r.orient==="horizontal"?0:1;return o instanceof Array&&(o=o[0]),n[e]=r.toGlobalCoord(r.dataToCoord(+o)),n[1-e]=e===0?a.y+a.height/2:a.x+a.width/2,n}};var c=f;U.exports=c},S6kV:function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.mode.OFB=function(){var x=O.lib.BlockCipherMode.extend(),T=x.Encryptor=x.extend({processBlock:function(S,m){var f=this._cipher,c=f.blockSize,o=this._iv,r=this._keystream;o&&(r=this._keystream=o.slice(0),this._iv=void 0),f.encryptBlock(r,0);for(var a=0;a<c;a++)S[m+a]^=r[a]}});return x.Decryptor=T,x}(),O.mode.OFB})},"SA+Z":function(U,P,d){var O=d("wTVA"),x=d("EbDI"),T=d("ZhPi"),v=d("wkBT");function S(m){return O(m)||x(m)||T(m)||v()}U.exports=S,U.exports.default=U.exports,U.exports.__esModule=!0},"SA4+":function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("ProS"),v=d("IwbS"),S=d("zYTA"),m=d("bYtY");function f(a,n,e){var s=a[1]-a[0];n=m.map(n,function(l){return{interval:[(l.interval[0]-a[0])/s,(l.interval[1]-a[0])/s]}});var t=n.length,i=0;return function(l){for(var u=i;u<t;u++){var h=n[u].interval;if(h[0]<=l&&l<=h[1]){i=u;break}}if(u===t)for(var u=i-1;u>=0;u--){var h=n[u].interval;if(h[0]<=l&&l<=h[1]){i=u;break}}return u>=0&&u<t&&e[u]}}function c(a,n){var e=a[1]-a[0];return n=[(n[0]-a[0])/e,(n[1]-a[0])/e],function(s){return s>=n[0]&&s<=n[1]}}function o(a){var n=a.dimensions;return n[0]==="lng"&&n[1]==="lat"}var r=T.extendChartView({type:"heatmap",render:function(a,n,e){var s;n.eachComponent("visualMap",function(i){i.eachTargetSeries(function(l){l===a&&(s=i)})}),this.group.removeAll(),this._incrementalDisplayable=null;var t=a.coordinateSystem;t.type==="cartesian2d"||t.type==="calendar"?this._renderOnCartesianAndCalendar(a,e,0,a.getData().count()):o(t)&&this._renderOnGeo(t,a,s,e)},incrementalPrepareRender:function(a,n,e){this.group.removeAll()},incrementalRender:function(a,n,e,s){var t=n.coordinateSystem;t&&this._renderOnCartesianAndCalendar(n,s,a.start,a.end,!0)},_renderOnCartesianAndCalendar:function(a,n,e,s,t){var i=a.coordinateSystem,l,u;if(i.type==="cartesian2d"){var h=i.getAxis("x"),p=i.getAxis("y");l=h.getBandWidth(),u=p.getBandWidth()}for(var g=this.group,A=a.getData(),y="itemStyle",E="emphasis.itemStyle",C="label",w="emphasis.label",b=a.getModel(y).getItemStyle(["color"]),I=a.getModel(E).getItemStyle(),_=a.getModel(C),L=a.getModel(w),D=i.type,N=D==="cartesian2d"?[A.mapDimension("x"),A.mapDimension("y"),A.mapDimension("value")]:[A.mapDimension("time"),A.mapDimension("value")],R=e;R<s;R++){var B;if(D==="cartesian2d"){if(isNaN(A.get(N[2],R)))continue;var M=i.dataToPoint([A.get(N[0],R),A.get(N[1],R)]);B=new v.Rect({shape:{x:Math.floor(Math.round(M[0])-l/2),y:Math.floor(Math.round(M[1])-u/2),width:Math.ceil(l),height:Math.ceil(u)},style:{fill:A.getItemVisual(R,"color"),opacity:A.getItemVisual(R,"opacity")}})}else{if(isNaN(A.get(N[1],R)))continue;B=new v.Rect({z2:1,shape:i.dataToRect([A.get(N[0],R)]).contentShape,style:{fill:A.getItemVisual(R,"color"),opacity:A.getItemVisual(R,"opacity")}})}var H=A.getItemModel(R);A.hasItemOption&&(b=H.getModel(y).getItemStyle(["color"]),I=H.getModel(E).getItemStyle(),_=H.getModel(C),L=H.getModel(w));var F=a.getRawValue(R),K="-";F&&F[2]!=null&&(K=F[2]),v.setLabelStyle(b,I,_,L,{labelFetcher:a,labelDataIndex:R,defaultText:K,isRectText:!0}),B.setStyle(b),v.setHoverStyle(B,A.hasItemOption?I:m.extend({},I)),B.incremental=t,t&&(B.useHoverLayer=!0),g.add(B),A.setItemGraphicEl(R,B)}},_renderOnGeo:function(a,n,e,s){var t=e.targetVisuals.inRange,i=e.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new S;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var h=a.getViewRect().clone(),p=a.getRoamTransform();h.applyTransform(p);var g=Math.max(h.x,0),A=Math.max(h.y,0),y=Math.min(h.width+h.x,s.getWidth()),E=Math.min(h.height+h.y,s.getHeight()),C=y-g,w=E-A,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],I=l.mapArray(b,function(N,R,B){var M=a.dataToPoint([N,R]);return M[0]-=g,M[1]-=A,M.push(B),M}),_=e.getExtent(),L=e.type==="visualMap.continuous"?c(_,e.option.range):f(_,e.getPieceList(),e.option.selected);u.update(I,C,w,t.color.getNormalizer(),{inRange:t.color.getColorMapper(),outOfRange:i.color.getColorMapper()},L);var D=new v.Image({style:{width:C,height:w,x:g,y:A,image:u.canvas},silent:!0});this.group.add(D)},dispose:function(){}});U.exports=r},SA8n:function(U,P,d){var O=d("Sj9i"),x=d("QBsz"),T=d("U/Mo"),v=T.getSymbolSize,S=[],m=[],f=[],c=O.quadraticAt,o=x.distSquare,r=Math.abs;function a(e,s,t){for(var i=e[0],l=e[1],u=e[2],h=Infinity,p,g=t*t,A=.1,y=.1;y<=.9;y+=.1){S[0]=c(i[0],l[0],u[0],y),S[1]=c(i[1],l[1],u[1],y);var E=r(o(S,s)-g);E<h&&(h=E,p=y)}for(var C=0;C<32;C++){var w=p+A;m[0]=c(i[0],l[0],u[0],p),m[1]=c(i[1],l[1],u[1],p),f[0]=c(i[0],l[0],u[0],w),f[1]=c(i[1],l[1],u[1],w);var E=o(m,s)-g;if(r(E)<.01)break;var b=o(f,s)-g;A/=2,E<0?b>=0?p=p+A:p=p-A:b>=0?p=p-A:p=p+A}return p}function n(e,s){var t=[],i=O.quadraticSubdivide,l=[[],[],[]],u=[[],[]],h=[];s/=2,e.eachEdge(function(p,g){var A=p.getLayout(),y=p.getVisual("fromSymbol"),E=p.getVisual("toSymbol");A.__original||(A.__original=[x.clone(A[0]),x.clone(A[1])],A[2]&&A.__original.push(x.clone(A[2])));var C=A.__original;if(A[2]!=null){if(x.copy(l[0],C[0]),x.copy(l[1],C[2]),x.copy(l[2],C[1]),y&&y!=="none"){var w=v(p.node1),b=a(l,C[0],w*s);i(l[0][0],l[1][0],l[2][0],b,t),l[0][0]=t[3],l[1][0]=t[4],i(l[0][1],l[1][1],l[2][1],b,t),l[0][1]=t[3],l[1][1]=t[4]}if(E&&E!=="none"){var w=v(p.node2),b=a(l,C[1],w*s);i(l[0][0],l[1][0],l[2][0],b,t),l[1][0]=t[1],l[2][0]=t[2],i(l[0][1],l[1][1],l[2][1],b,t),l[1][1]=t[1],l[2][1]=t[2]}x.copy(A[0],l[0]),x.copy(A[1],l[2]),x.copy(A[2],l[1])}else{if(x.copy(u[0],C[0]),x.copy(u[1],C[1]),x.sub(h,u[1],u[0]),x.normalize(h,h),y&&y!=="none"){var w=v(p.node1);x.scaleAndAdd(u[0],u[0],h,w*s)}if(E&&E!=="none"){var w=v(p.node2);x.scaleAndAdd(u[1],u[1],h,-w*s)}x.copy(A[0],u[0]),x.copy(A[1],u[1])}})}U.exports=n},SJMd:function(U,P){/**
|
|
|
* @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 d,O,x,T=!1,v,S;window.PR_SHOULD_USE_CONTINUATION=!0;var m,f;(function(){var c=window,o=["break,continue,do,else,for,if,return,while"],r=[o,"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=[r,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],n=[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"],e=[a,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],s=[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"],t="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",i=[a,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],l="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",u=[o,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],h=[o,"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"],p=[o,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],g=[n,s,e,i,l,u,h,p],A=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,y="str",E="kwd",C="com",w="typ",b="lit",I="pun",_="pln",L="tag",D="dec",N="src",R="atn",B="atv",M="nocode",H="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function F(re){for(var G=0,X=!1,J=!1,Ae=0,he=re.length;Ae<he;++Ae){var Me=re[Ae];if(Me.ignoreCase)J=!0;else if(/[a-z]/i.test(Me.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){X=!0,J=!1;break}}var Ie={b:8,t:9,n:10,v:11,f:12,r:13};function oe(et){var Te=et.charCodeAt(0);if(Te!==92)return Te;var tt=et.charAt(1);return Te=Ie[tt],Te||("0"<=tt&&tt<="7"?parseInt(et.substring(1),8):tt==="u"||tt==="x"?parseInt(et.substring(2),16):et.charCodeAt(1))}function pe(et){if(et<32)return(et<16?"\\x0":"\\x")+et.toString(16);var Te=String.fromCharCode(et);return Te==="\\"||Te==="-"||Te==="]"||Te==="^"?"\\"+Te:Te}function Oe(et){var Te=et.substring(1,et.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")),tt=[],ze=Te[0]==="^",dt=["["];ze&&dt.push("^");for(var Ot=ze?1:0,Tt=Te.length;Ot<Tt;++Ot){var Ct=Te[Ot];if(/\\[bdsw]/i.test(Ct))dt.push(Ct);else{var Nt=oe(Ct),Be;Ot+2<Tt&&Te[Ot+1]==="-"?(Be=oe(Te[Ot+2]),Ot+=2):Be=Nt,tt.push([Nt,Be]),Be<65||Nt>122||(Be<65||Nt>90||tt.push([Math.max(65,Nt)|32,Math.min(Be,90)|32]),Be<97||Nt>122||tt.push([Math.max(97,Nt)&~32,Math.min(Be,122)&~32]))}}tt.sort(function(De,ae){return De[0]-ae[0]||ae[1]-De[1]});for(var $=[],Z=[],Ot=0;Ot<tt.length;++Ot){var Re=tt[Ot];Re[0]<=Z[1]+1?Z[1]=Math.max(Z[1],Re[1]):$.push(Z=Re)}for(var Ot=0;Ot<$.length;++Ot){var Re=$[Ot];dt.push(pe(Re[0])),Re[1]>Re[0]&&(Re[1]+1>Re[0]&&dt.push("-"),dt.push(pe(Re[1])))}return dt.push("]"),dt.join("")}function Ye(et){for(var Te=et.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")),tt=Te.length,ze=[],dt=0,Ot=0;dt<tt;++dt){var Tt=Te[dt];if(Tt==="(")++Ot;else if(Tt.charAt(0)==="\\"){var Ct=+Tt.substring(1);Ct&&(Ct<=Ot?ze[Ct]=-1:Te[dt]=pe(Ct))}}for(var dt=1;dt<ze.length;++dt)ze[dt]===-1&&(ze[dt]=++G);for(var dt=0,Ot=0;dt<tt;++dt){var Tt=Te[dt];if(Tt==="(")++Ot,ze[Ot]||(Te[dt]="(?:");else if(Tt.charAt(0)==="\\"){var Ct=+Tt.substring(1);Ct&&Ct<=Ot&&(Te[dt]="\\"+ze[Ct])}}for(var dt=0;dt<tt;++dt)Te[dt]==="^"&&Te[dt+1]!=="^"&&(Te[dt]="");if(et.ignoreCase&&X)for(var dt=0;dt<tt;++dt){var Tt=Te[dt],Nt=Tt.charAt(0);Tt.length>=2&&Nt==="["?Te[dt]=Oe(Tt):Nt!=="\\"&&(Te[dt]=Tt.replace(/[a-zA-Z]/g,function(Z){var Re=Z.charCodeAt(0);return"["+String.fromCharCode(Re&~32,Re|32)+"]"}))}return Te.join("")}for(var it=[],Ae=0,he=re.length;Ae<he;++Ae){var Me=re[Ae];if(Me.global||Me.multiline)throw new Error(""+Me);it.push("(?:"+Ye(Me)+")")}return new RegExp(it.join("|"),J?"gi":"g")}function K(re,G){var X=/(?:^|\s)nocode(?:\s|$)/,J=[],Ae=0,he=[],Me=0;function Ie(oe){var pe=oe.nodeType;if(pe==1){if(X.test(oe.className))return;for(var Oe=oe.firstChild;Oe;Oe=Oe.nextSibling)Ie(Oe);var Ye=oe.nodeName.toLowerCase();(Ye==="br"||Ye==="li")&&(J[Me]=`
|
|
|
`,he[Me<<1]=Ae++,he[Me++<<1|1]=oe)}else if(pe==3||pe==4){var it=oe.nodeValue;it.length&&(G?it=it.replace(/\r\n?/g,`
|
|
|
`):it=it.replace(/[ \t\r\n]+/g," "),J[Me]=it,he[Me<<1]=Ae,Ae+=it.length,he[Me++<<1|1]=oe)}}return Ie(re),{sourceCode:J.join("").replace(/\n$/,""),spans:he}}function j(re,G,X,J,Ae){if(!X)return;var he={sourceNode:re,pre:1,langExtension:null,numberLines:null,sourceCode:X,spans:null,basePos:G,decorations:null};J(he),Ae.push.apply(Ae,he.decorations)}var V=/\S/;function z(re){for(var G=void 0,X=re.firstChild;X;X=X.nextSibling){var J=X.nodeType;G=J===1?G?re:X:J===3&&V.test(X.nodeValue)?re:G}return G===re?void 0:G}function Y(re,G){var X={},J;(function(){for(var Me=re.concat(G),Ie=[],oe={},pe=0,Oe=Me.length;pe<Oe;++pe){var Ye=Me[pe],it=Ye[3];if(it)for(var et=it.length;--et>=0;)X[it.charAt(et)]=Ye;var Te=Ye[1],tt=""+Te;oe.hasOwnProperty(tt)||(Ie.push(Te),oe[tt]=null)}Ie.push(/[\0-\uffff]/),J=F(Ie)})();var Ae=G.length,he=function Me(Ie){for(var oe=Ie.sourceCode,pe=Ie.basePos,Oe=Ie.sourceNode,Ye=[pe,_],it=0,et=oe.match(J)||[],Te={},tt=0,ze=et.length;tt<ze;++tt){var dt=et[tt],Ot=Te[dt],Tt=void 0,Ct;if(typeof Ot=="string")Ct=!1;else{var Nt=X[dt.charAt(0)];if(Nt)Tt=dt.match(Nt[1]),Ot=Nt[0];else{for(var Be=0;Be<Ae;++Be)if(Nt=G[Be],Tt=dt.match(Nt[1]),Tt){Ot=Nt[0];break}Tt||(Ot=_)}Ct=Ot.length>=5&&Ot.substring(0,5)==="lang-",Ct&&!(Tt&&typeof Tt[1]=="string")&&(Ct=!1,Ot=N),Ct||(Te[dt]=Ot)}var $=it;if(it+=dt.length,!Ct)Ye.push(pe+$,Ot);else{var Z=Tt[1],Re=dt.indexOf(Z),De=Re+Z.length;Tt[2]&&(De=dt.length-Tt[2].length,Re=De-Z.length);var ae=Ot.substring(5);j(Oe,pe+$,dt.substring(0,Re),Me,Ye),j(Oe,pe+$+Re,Z,He(ae,Z),Ye),j(Oe,pe+$+De,dt.substring(De),Me,Ye)}}Ie.decorations=Ye};return he}function ee(re){var G=[],X=[];re.tripleQuotedStrings?G.push([y,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):re.multiLineStrings?G.push([y,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):G.push([y,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),re.verbatimStrings&&X.push([y,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var J=re.hashComments;J&&(re.cStyleComments?(J>1?G.push([C,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):G.push([C,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),X.push([y,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):G.push([C,/^#[^\r\n]*/,null,"#"])),re.cStyleComments&&(X.push([C,/^\/\/[^\r\n]*/,null]),X.push([C,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ae=re.regexLiterals;if(Ae){var he=Ae>1?"":`
|
|
|
\r`,Me=he?".":"[\\S\\s]",Ie="/(?=[^/*"+he+"])(?:[^/\\x5B\\x5C"+he+"]|\\x5C"+Me+"|\\x5B(?:[^\\x5C\\x5D"+he+"]|\\x5C"+Me+")*(?:\\x5D|$))+/";X.push(["lang-regex",RegExp("^"+H+"("+Ie+")")])}var oe=re.types;oe&&X.push([w,oe]);var pe=(""+re.keywords).replace(/^ | $/g,"");pe.length&&X.push([E,new RegExp("^(?:"+pe.replace(/[\s,]+/g,"|")+")\\b"),null]),G.push([_,/^\s+/,null,` \r
|
|
|
\xA0`]);var Oe="^.[^\\s\\w.$@'\"`/\\\\]*";return re.regexLiterals&&(Oe+="(?!s*/)"),X.push([b,/^@[a-z_$][a-z_$@0-9]*/i,null],[w,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[_,/^[a-z_$][a-z_$@0-9]*/i,null],[b,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[_,/^\\[\s\S]?/,null],[I,new RegExp(Oe),null]),Y(G,X)}var fe=ee({keywords:g,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ie(re,G,X){for(var J=/(?:^|\s)nocode(?:\s|$)/,Ae=/\r\n?|\n/,he=re.ownerDocument,Me=he.createElement("li");re.firstChild;)Me.appendChild(re.firstChild);var Ie=[Me];function oe(Te){var tt=Te.nodeType;if(tt==1&&!J.test(Te.className))if(Te.nodeName==="br")pe(Te),Te.parentNode&&Te.parentNode.removeChild(Te);else for(var ze=Te.firstChild;ze;ze=ze.nextSibling)oe(ze);else if((tt==3||tt==4)&&X){var dt=Te.nodeValue,Ot=dt.match(Ae);if(Ot){var Tt=dt.substring(0,Ot.index);Te.nodeValue=Tt;var Ct=dt.substring(Ot.index+Ot[0].length);if(Ct){var Nt=Te.parentNode;Nt.insertBefore(he.createTextNode(Ct),Te.nextSibling)}pe(Te),Tt||Te.parentNode.removeChild(Te)}}}function pe(Te){for(;!Te.nextSibling;)if(Te=Te.parentNode,!Te)return;function tt(Ot,Tt){var Ct=Tt?Ot.cloneNode(!1):Ot,Nt=Ot.parentNode;if(Nt){var Be=tt(Nt,1),$=Ot.nextSibling;Be.appendChild(Ct);for(var Z=$;Z;Z=$)$=Z.nextSibling,Be.appendChild(Z)}return Ct}for(var ze=tt(Te.nextSibling,0),dt;(dt=ze.parentNode)&&dt.nodeType===1;)ze=dt;Ie.push(ze)}for(var Oe=0;Oe<Ie.length;++Oe)oe(Ie[Oe]);G===(G|0)&&Ie[0].setAttribute("value",G);var Ye=he.createElement("ol");Ye.className="linenums";for(var it=Math.max(0,G-1|0)||0,Oe=0,et=Ie.length;Oe<et;++Oe)Me=Ie[Oe],Me.className="L"+(Oe+it)%10,Me.firstChild||Me.appendChild(he.createTextNode("\xA0")),Ye.appendChild(Me);re.appendChild(Ye)}function we(re){var G=/\bMSIE\s(\d+)/.exec(navigator.userAgent);G=G&&+G[1]<=8;var X=/\n/g,J=re.sourceCode,Ae=J.length,he=0,Me=re.spans,Ie=Me.length,oe=0,pe=re.decorations,Oe=pe.length,Ye=0;pe[Oe]=Ae;var it,et;for(et=it=0;et<Oe;)pe[et]!==pe[et+2]?(pe[it++]=pe[et++],pe[it++]=pe[et++]):et+=2;for(Oe=it,et=it=0;et<Oe;){for(var Te=pe[et],tt=pe[et+1],ze=et+2;ze+2<=Oe&&pe[ze+1]===tt;)ze+=2;pe[it++]=Te,pe[it++]=tt,et=ze}Oe=pe.length=it;var dt=re.sourceNode,Ot="";dt&&(Ot=dt.style.display,dt.style.display="none");try{for(var Tt=null;oe<Ie;){var Ct=Me[oe],Nt=Me[oe+2]||Ae,Be=pe[Ye+2]||Ae,ze=Math.min(Nt,Be),$=Me[oe+1],Z;if($.nodeType!==1&&(Z=J.substring(he,ze))){G&&(Z=Z.replace(X,"\r")),$.nodeValue=Z;var Re=$.ownerDocument,De=Re.createElement("span");De.className=pe[Ye+1];var ae=$.parentNode;ae.replaceChild(De,$),De.appendChild($),he<Nt&&(Me[oe+1]=$=Re.createTextNode(J.substring(ze,Nt)),ae.insertBefore($,De.nextSibling))}he=ze,he>=Nt&&(oe+=2),he>=Be&&(Ye+=2)}}finally{dt&&(dt.style.display=Ot)}}var Ce={};function Le(re,G){for(var X=G.length;--X>=0;){var J=G[X];Ce.hasOwnProperty(J)?c.console&&console.warn("cannot override language handler %s",J):Ce[J]=re}}function He(re,G){return re&&Ce.hasOwnProperty(re)||(re=/^\s*</.test(G)?"default-markup":"default-code"),Ce[re]}Le(fe,["default-code"]),Le(Y([],[[_,/^[^<?]+/],[D,/^<!\w[^>]*(?:>|$)/],[C,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[I,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),Le(Y([[_,/^[\s]+/,null,` \r
|
|
|
`],[B,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[L,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[R,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[I,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),Le(Y([],[[B,/^[\s\S]+/]]),["uq.val"]),Le(ee({keywords:n,hashComments:!0,cStyleComments:!0,types:A}),["c","cc","cpp","cxx","cyc","m"]),Le(ee({keywords:"null,true,false"}),["json"]),Le(ee({keywords:s,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:A}),["cs"]),Le(ee({keywords:e,cStyleComments:!0}),["java"]),Le(ee({keywords:p,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Le(ee({keywords:u,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Le(ee({keywords:l,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Le(ee({keywords:h,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Le(ee({keywords:i,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Le(ee({keywords:t,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Le(Y([],[[y,/^[\s\S]+/]]),["regex"]);function ce(re){var G=re.langExtension;try{var X=K(re.sourceNode,re.pre),J=X.sourceCode;re.sourceCode=J,re.spans=X.spans,re.basePos=0,He(G,J)(re),we(re)}catch(Ae){c.console&&console.log(Ae&&Ae.stack||Ae)}}function Pe(re,G,X){var J=X||!1,Ae=G||null,he=document.createElement("div");he.innerHTML="<pre>"+re+"</pre>",he=he.firstChild,J&&ie(he,J,!0);var Me={langExtension:Ae,numberLines:J,sourceNode:he,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return ce(Me),he.innerHTML}function Q(re,G){var X=G||document.body,J=X.ownerDocument||document;function Ae(Ct){return X.getElementsByTagName(Ct)}for(var he=[Ae("pre"),Ae("code"),Ae("xmp")],Me=[],Ie=0;Ie<he.length;++Ie)for(var oe=0,pe=he[Ie].length;oe<pe;++oe)Me.push(he[Ie][oe]);he=null;var Oe=Date;Oe.now||(Oe={now:function(){return+new Date}});var Ye=0,it=/\blang(?:uage)?-([\w.]+)(?!\S)/,et=/\bprettyprint\b/,Te=/\bprettyprinted\b/,tt=/pre|xmp/i,ze=/^code$/i,dt=/^(?:pre|code|xmp)$/i,Ot={};function Tt(){for(var Ct=c.PR_SHOULD_USE_CONTINUATION?Oe.now()+250:Infinity;Ye<Me.length&&Oe.now()<Ct;Ye++){for(var Nt=Me[Ye],Be=Ot,$=Nt;$=$.previousSibling;){var Z=$.nodeType,Re=(Z===7||Z===8)&&$.nodeValue;if(Re?!/^\??prettify\b/.test(Re):Z!==3||/\S/.test($.nodeValue))break;if(Re){Be={},Re.replace(/\b(\w+)=([\w:.%+-]+)/g,function(ft,Ur,yn){Be[Ur]=yn});break}}var De=Nt.className;if((Be!==Ot||et.test(De))&&!Te.test(De)){for(var ae=!1,gt=Nt.parentNode;gt;gt=gt.parentNode){var jt=gt.tagName;if(dt.test(jt)&>.className&&et.test(gt.className)){ae=!0;break}}if(!ae){Nt.className+=" prettyprinted";var ut=Be.lang;if(!ut){ut=De.match(it);var rr;!ut&&(rr=z(Nt))&&ze.test(rr.tagName)&&(ut=rr.className.match(it)),ut&&(ut=ut[1])}var pr;if(tt.test(Nt.tagName))pr=1;else{var nn=Nt.currentStyle,mr=J.defaultView,vr=nn?nn.whiteSpace:mr&&mr.getComputedStyle?mr.getComputedStyle(Nt,null).getPropertyValue("white-space"):0;pr=vr&&vr.substring(0,3)==="pre"}var $t=Be.linenums;($t=$t==="true"||+$t)||($t=De.match(/\blinenums\b(?::(\d+))?/),$t=$t?$t[1]&&$t[1].length?+$t[1]:!0:!1),$t&&ie(Nt,$t,pr);var Xt={langExtension:ut,sourceNode:Nt,numberLines:$t,pre:pr,sourceCode:null,basePos:null,spans:null,decorations:null};ce(Xt)}}}Ye<Me.length?c.setTimeout(Tt,250):typeof re=="function"&&re()}Tt()}var me=c.PR={createSimpleLexer:Y,registerLangHandler:Le,sourceDecorator:ee,PR_ATTRIB_NAME:R,PR_ATTRIB_VALUE:B,PR_COMMENT:C,PR_DECLARATION:D,PR_KEYWORD:E,PR_LITERAL:b,PR_NOCODE:M,PR_PLAIN:_,PR_PUNCTUATION:I,PR_SOURCE:N,PR_STRING:y,PR_TAG:L,PR_TYPE:w,prettyPrintOne:T?c.prettyPrintOne=Pe:m=Pe,prettyPrint:f=T?c.prettyPrint=Q:f=Q},Je=c.define;typeof Je=="function"&&Je.amd&&Je("google-code-prettify",[],function(){return me})})()},SKnc:function(U,P,d){var O=d("bYtY"),x=d("QuXc"),T=function(m,f,c,o,r,a){this.x=m==null?0:m,this.y=f==null?0:f,this.x2=c==null?1:c,this.y2=o==null?0:o,this.type="linear",this.global=a||!1,x.call(this,r)};T.prototype={constructor:T},O.inherits(T,x);var v=T;U.exports=v},"SKx+":function(U,P,d){var O=d("ProS"),x=O.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}}),T=x;U.exports=T},SMc4:function(U,P,d){var O=d("bYtY"),x=d("bLfw"),T=d("nkfE"),v=d("ICMv"),S=x.extend({type:"cartesian2dAxis",axis:null,init:function(){S.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){S.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){S.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function m(o,r){return r.type||(r.data?"category":"value")}O.merge(S.prototype,v);var f={offset:0};T("x",S,m,f),T("y",S,m,f);var c=S;U.exports=c},SRve:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};P.default=O},SUKs:function(U,P,d){var O=d("LPTA"),x=O.debugMode,T=function(){};x===1&&(T=console.error);var v=T;U.exports=v},SZEN:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.clientToElement=O;function O(x,T,v){var S=v.getBoundingClientRect(),m={x:0,y:0};return x<S.left?m.x=0:x>=S.right?m.x=S.width-1:m.x=x-S.left,T<S.top?m.y=0:T>=S.bottom?m.y=S.height-1:m.y=T-S.top,m}},Sdc0:function(U,P,d){"use strict";var O=d("pVnL"),x=d.n(O),T=d("lSNA"),v=d.n(T),S=d("q1tI"),m=d("rePB"),f=d("ODXe"),c=d("Ff2n"),o=d("TSYQ"),r=d.n(o),a=d("6cGi"),n=d("4IlW"),e=S.forwardRef(function(E,C){var w,b=E.prefixCls,I=b===void 0?"rc-switch":b,_=E.className,L=E.checked,D=E.defaultChecked,N=E.disabled,R=E.loadingIcon,B=E.checkedChildren,M=E.unCheckedChildren,H=E.onClick,F=E.onChange,K=E.onKeyDown,j=Object(c.a)(E,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),V=Object(a.a)(!1,{value:L,defaultValue:D}),z=Object(f.a)(V,2),Y=z[0],ee=z[1];function fe(Le,He){var ce=Y;return N||(ce=Le,ee(ce),F==null||F(ce,He)),ce}function ie(Le){Le.which===n.a.LEFT?fe(!1,Le):Le.which===n.a.RIGHT&&fe(!0,Le),K==null||K(Le)}function we(Le){var He=fe(!Y,Le);H==null||H(He,Le)}var Ce=r()(I,_,(w={},Object(m.a)(w,"".concat(I,"-checked"),Y),Object(m.a)(w,"".concat(I,"-disabled"),N),w));return S.createElement("button",Object.assign({},j,{type:"button",role:"switch","aria-checked":Y,disabled:N,className:Ce,ref:C,onKeyDown:ie,onClick:we}),R,S.createElement("span",{className:"".concat(I,"-inner")},Y?B:M))});e.displayName="Switch";var s=e,t=d("gZBC"),i=d.n(t),l=d("g0mS"),u=d("H84U"),h=d("3Nzz"),p=d("uaoM"),g=function(E,C){var w={};for(var b in E)Object.prototype.hasOwnProperty.call(E,b)&&C.indexOf(b)<0&&(w[b]=E[b]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,b=Object.getOwnPropertySymbols(E);I<b.length;I++)C.indexOf(b[I])<0&&Object.prototype.propertyIsEnumerable.call(E,b[I])&&(w[b[I]]=E[b[I]]);return w},A=S.forwardRef(function(E,C){var w,b=E.prefixCls,I=E.size,_=E.loading,L=E.className,D=L===void 0?"":L,N=E.disabled,R=g(E,["prefixCls","size","loading","className","disabled"]);Object(p.a)("checked"in R||!("value"in R),"Switch","`value` is not a valid prop, do you mean `checked`?");var B=S.useContext(u.b),M=B.getPrefixCls,H=B.direction,F=S.useContext(h.b),K=M("switch",b),j=S.createElement("div",{className:"".concat(K,"-handle")},_&&S.createElement(i.a,{className:"".concat(K,"-loading-icon")})),V=r()(D,(w={},v()(w,"".concat(K,"-small"),(I||F)==="small"),v()(w,"".concat(K,"-loading"),_),v()(w,"".concat(K,"-rtl"),H==="rtl"),w));return S.createElement(l.a,{insertExtraNode:!0},S.createElement(s,x()({},R,{prefixCls:K,className:V,disabled:N||_,ref:C,loadingIcon:j})))});A.__ANT_SWITCH=!0,A.displayName="Switch";var y=P.a=A},SehX:function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("2B6p"),v=T.updateCenterAndZoom;O.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(S,m){var f=S.componentType||"series";m.eachComponent({mainType:f,query:S},function(c){var o=c.coordinateSystem;if(o.type!=="geo")return;var r=v(o,S,c.get("scaleLimit"));c.setCenter&&c.setCenter(r.center),c.setZoom&&c.setZoom(r.zoom),f==="series"&&x.each(c.seriesGroup,function(a){a.setCenter(r.center),a.setZoom(r.zoom)})})})},SgGq:function(U,P,d){var O=d("bYtY"),x=d("H6uX"),T=d("YH21"),v=d("pP6R");function S(t){this.pointerChecker,this._zr=t,this._opt={};var i=O.bind,l=i(m,this),u=i(f,this),h=i(c,this),p=i(o,this),g=i(r,this);x.call(this),this.setPointerChecker=function(A){this.pointerChecker=A},this.enable=function(A,y){this.disable(),this._opt=O.defaults(O.clone(y)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),A==null&&(A=!0),(A===!0||A==="move"||A==="pan")&&(t.on("mousedown",l),t.on("mousemove",u),t.on("mouseup",h)),(A===!0||A==="scale"||A==="zoom")&&(t.on("mousewheel",p),t.on("pinch",g))},this.disable=function(){t.off("mousedown",l),t.off("mousemove",u),t.off("mouseup",h),t.off("mousewheel",p),t.off("pinch",g)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}O.mixin(S,x);function m(t){if(T.isMiddleOrRightButtonOnMouseUpDown(t)||t.target&&t.target.draggable)return;var i=t.offsetX,l=t.offsetY;this.pointerChecker&&this.pointerChecker(t,i,l)&&(this._x=i,this._y=l,this._dragging=!0)}function f(t){if(!this._dragging||!e("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||v.isTaken(this._zr,"globalPan"))return;var i=t.offsetX,l=t.offsetY,u=this._x,h=this._y,p=i-u,g=l-h;this._x=i,this._y=l,this._opt.preventDefaultMouseMove&&T.stop(t.event),n(this,"pan","moveOnMouseMove",t,{dx:p,dy:g,oldX:u,oldY:h,newX:i,newY:l})}function c(t){T.isMiddleOrRightButtonOnMouseUpDown(t)||(this._dragging=!1)}function o(t){var i=e("zoomOnMouseWheel",t,this._opt),l=e("moveOnMouseWheel",t,this._opt),u=t.wheelDelta,h=Math.abs(u),p=t.offsetX,g=t.offsetY;if(u===0||!i&&!l)return;if(i){var A=h>3?1.4:h>1?1.2:1.1,y=u>0?A:1/A;a(this,"zoom","zoomOnMouseWheel",t,{scale:y,originX:p,originY:g})}if(l){var E=Math.abs(u),C=(u>0?1:-1)*(E>3?.4:E>1?.15:.05);a(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:C,originX:p,originY:g})}}function r(t){if(v.isTaken(this._zr,"globalPan"))return;var i=t.pinchScale>1?1.1:1/1.1;a(this,"zoom",null,t,{scale:i,originX:t.pinchX,originY:t.pinchY})}function a(t,i,l,u,h){t.pointerChecker&&t.pointerChecker(u,h.originX,h.originY)&&(T.stop(u.event),n(t,i,l,u,h))}function n(t,i,l,u,h){h.isAvailableBehavior=O.bind(e,null,l,u),t.trigger(i,h)}function e(t,i,l){var u=l[t];return!t||u&&(!O.isString(u)||i.event[u+"Key"])}var s=S;U.exports=s},SgaC:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;function O(S,m){if(!(S instanceof m))throw new TypeError("Cannot call a class as a function")}function x(S,m){for(var f=0;f<m.length;f++){var c=m[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(S,c.key,c)}}function T(S,m,f){return m&&x(S.prototype,m),f&&x(S,f),S}var v=function(){function S(){O(this,S),this._subrects=0}return T(S,[{key:"decodeRect",value:function(f,c,o,r,a,n,e){if(this._subrects===0){if(a.rQwait("RRE",4+4))return!1;this._subrects=a.rQshift32();var s=a.rQshiftBytes(4);n.fillRect(f,c,o,r,s)}for(;this._subrects>0;){if(a.rQwait("RRE",4+8))return!1;var t=a.rQshiftBytes(4),i=a.rQshift16(),l=a.rQshift16(),u=a.rQshift16(),h=a.rQshift16();n.fillRect(f+i,c+l,u,h,t),this._subrects--}return!0}}]),S}();P.default=v},Sj0X:function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("XuBP")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="DownOutlined";var c=v.forwardRef(f);P.default=c},Sj9i:function(U,P,d){var O=d("QBsz"),x=O.create,T=O.distSquare,v=Math.pow,S=Math.sqrt,m=1e-8,f=1e-4,c=S(3),o=1/3,r=x(),a=x(),n=x();function e(b){return b>-m&&b<m}function s(b){return b>m||b<-m}function t(b,I,_,L,D){var N=1-D;return N*N*(N*b+3*D*I)+D*D*(D*L+3*N*_)}function i(b,I,_,L,D){var N=1-D;return 3*(((I-b)*N+2*(_-I)*D)*N+(L-_)*D*D)}function l(b,I,_,L,D,N){var R=L+3*(I-_)-b,B=3*(_-I*2+b),M=3*(I-b),H=b-D,F=B*B-3*R*M,K=B*M-9*R*H,j=M*M-3*B*H,V=0;if(e(F)&&e(K))if(e(B))N[0]=0;else{var z=-M/B;z>=0&&z<=1&&(N[V++]=z)}else{var Y=K*K-4*F*j;if(e(Y)){var ee=K/F,z=-B/R+ee,fe=-ee/2;z>=0&&z<=1&&(N[V++]=z),fe>=0&&fe<=1&&(N[V++]=fe)}else if(Y>0){var ie=S(Y),we=F*B+1.5*R*(-K+ie),Ce=F*B+1.5*R*(-K-ie);we<0?we=-v(-we,o):we=v(we,o),Ce<0?Ce=-v(-Ce,o):Ce=v(Ce,o);var z=(-B-(we+Ce))/(3*R);z>=0&&z<=1&&(N[V++]=z)}else{var Le=(2*F*B-3*R*K)/(2*S(F*F*F)),He=Math.acos(Le)/3,ce=S(F),Pe=Math.cos(He),z=(-B-2*ce*Pe)/(3*R),fe=(-B+ce*(Pe+c*Math.sin(He)))/(3*R),Q=(-B+ce*(Pe-c*Math.sin(He)))/(3*R);z>=0&&z<=1&&(N[V++]=z),fe>=0&&fe<=1&&(N[V++]=fe),Q>=0&&Q<=1&&(N[V++]=Q)}}return V}function u(b,I,_,L,D){var N=6*_-12*I+6*b,R=9*I+3*L-3*b-9*_,B=3*I-3*b,M=0;if(e(R)){if(s(N)){var H=-B/N;H>=0&&H<=1&&(D[M++]=H)}}else{var F=N*N-4*R*B;if(e(F))D[0]=-N/(2*R);else if(F>0){var K=S(F),H=(-N+K)/(2*R),j=(-N-K)/(2*R);H>=0&&H<=1&&(D[M++]=H),j>=0&&j<=1&&(D[M++]=j)}}return M}function h(b,I,_,L,D,N){var R=(I-b)*D+b,B=(_-I)*D+I,M=(L-_)*D+_,H=(B-R)*D+R,F=(M-B)*D+B,K=(F-H)*D+H;N[0]=b,N[1]=R,N[2]=H,N[3]=K,N[4]=K,N[5]=F,N[6]=M,N[7]=L}function p(b,I,_,L,D,N,R,B,M,H,F){var K,j=.005,V=Infinity,z,Y,ee,fe;r[0]=M,r[1]=H;for(var ie=0;ie<1;ie+=.05)a[0]=t(b,_,D,R,ie),a[1]=t(I,L,N,B,ie),ee=T(r,a),ee<V&&(K=ie,V=ee);V=Infinity;for(var we=0;we<32&&!(j<f);we++)z=K-j,Y=K+j,a[0]=t(b,_,D,R,z),a[1]=t(I,L,N,B,z),ee=T(a,r),z>=0&&ee<V?(K=z,V=ee):(n[0]=t(b,_,D,R,Y),n[1]=t(I,L,N,B,Y),fe=T(n,r),Y<=1&&fe<V?(K=Y,V=fe):j*=.5);return F&&(F[0]=t(b,_,D,R,K),F[1]=t(I,L,N,B,K)),S(V)}function g(b,I,_,L){var D=1-L;return D*(D*b+2*L*I)+L*L*_}function A(b,I,_,L){return 2*((1-L)*(I-b)+L*(_-I))}function y(b,I,_,L,D){var N=b-2*I+_,R=2*(I-b),B=b-L,M=0;if(e(N)){if(s(R)){var H=-B/R;H>=0&&H<=1&&(D[M++]=H)}}else{var F=R*R-4*N*B;if(e(F)){var H=-R/(2*N);H>=0&&H<=1&&(D[M++]=H)}else if(F>0){var K=S(F),H=(-R+K)/(2*N),j=(-R-K)/(2*N);H>=0&&H<=1&&(D[M++]=H),j>=0&&j<=1&&(D[M++]=j)}}return M}function E(b,I,_){var L=b+_-2*I;return L===0?.5:(b-I)/L}function C(b,I,_,L,D){var N=(I-b)*L+b,R=(_-I)*L+I,B=(R-N)*L+N;D[0]=b,D[1]=N,D[2]=B,D[3]=B,D[4]=R,D[5]=_}function w(b,I,_,L,D,N,R,B,M){var H,F=.005,K=Infinity;r[0]=R,r[1]=B;for(var j=0;j<1;j+=.05){a[0]=g(b,_,D,j),a[1]=g(I,L,N,j);var V=T(r,a);V<K&&(H=j,K=V)}K=Infinity;for(var z=0;z<32&&!(F<f);z++){var Y=H-F,ee=H+F;a[0]=g(b,_,D,Y),a[1]=g(I,L,N,Y);var V=T(a,r);if(Y>=0&&V<K)H=Y,K=V;else{n[0]=g(b,_,D,ee),n[1]=g(I,L,N,ee);var fe=T(n,r);ee<=1&&fe<K?(H=ee,K=fe):F*=.5}}return M&&(M[0]=g(b,_,D,H),M[1]=g(I,L,N,H)),S(K)}P.cubicAt=t,P.cubicDerivativeAt=i,P.cubicRootAt=l,P.cubicExtrema=u,P.cubicSubdivide=h,P.cubicProjectPoint=p,P.quadraticAt=g,P.quadraticDerivativeAt=A,P.quadraticRootAt=y,P.quadraticExtremum=E,P.quadraticSubdivide=C,P.quadraticProjectPoint=w},Sp2Z:function(U,P,d){var O=d("3LNs"),x=d("/y7N"),T=d("AVZG"),v=d("Znkb"),S=O.extend({makeElOption:function(r,a,n,e,s){var t=n.axis,i=t.grid,l=e.get("type"),u=m(i,t).getOtherAxis(t).getGlobalExtent(),h=t.toGlobalCoord(t.dataToCoord(a,!0));if(l&&l!=="none"){var p=x.buildElStyle(e),g=f[l](t,h,u);g.style=p,r.graphicKey=g.type,r.pointer=g}var A=T.layout(i.model,n);x.buildCartesianSingleLabelElOption(a,r,A,n,e,s)},getHandleTransform:function(r,a,n){var e=T.layout(a.axis.grid.model,a,{labelInside:!1});return e.labelMargin=n.get("handle.margin"),{position:x.getTransformedPosition(a.axis,r,e),rotation:e.rotation+(e.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(r,a,n,e){var s=n.axis,t=s.grid,i=s.getGlobalExtent(!0),l=m(t,s).getOtherAxis(s).getGlobalExtent(),u=s.dim==="x"?0:1,h=r.position;h[u]+=a[u],h[u]=Math.min(i[1],h[u]),h[u]=Math.max(i[0],h[u]);var p=(l[1]+l[0])/2,g=[p,p];g[u]=h[u];var A=[{verticalAlign:"middle"},{align:"center"}];return{position:h,rotation:r.rotation,cursorPoint:g,tooltipOption:A[u]}}});function m(r,a){var n={};return n[a.dim+"AxisIndex"]=a.index,r.getCartesian(n)}var f={line:function(r,a,n){var e=x.makeLineShape([a,n[0]],[a,n[1]],c(r));return{type:"Line",subPixelOptimize:!0,shape:e}},shadow:function(r,a,n){var e=Math.max(1,r.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:x.makeRectShape([a-e/2,n[0]],[e,s],c(r))}}};function c(r){return r.dim==="x"?0:1}v.registerAxisPointerClass("CartesianAxisPointer",S);var o=S;U.exports=o},Sq3C:function(U,P,d){var O=d("sKgW"),x=d("zoYe"),T=d("wy8a"),v=d("quyA"),S=d("Z1HP"),m=d("Em2t"),f=Math.ceil;function c(o,r){r=r===void 0?" ":x(r);var a=r.length;if(a<2)return a?O(r,o):r;var n=O(r,f(o/S(r)));return v(r)?T(m(n),0,o).join(""):n.slice(0,o)}U.exports=c},SqI9:function(U,P,d){var O=d("y+Vt"),x=d("iXp4"),T=O.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:x(O.prototype.brush),buildPath:function(S,m){var f=m.cx,c=m.cy,o=Math.max(m.r0||0,0),r=Math.max(m.r,0),a=m.startAngle,n=m.endAngle,e=m.clockwise,s=Math.cos(a),t=Math.sin(a);S.moveTo(s*o+f,t*o+c),S.lineTo(s*r+f,t*r+c),S.arc(f,c,r,a,n,!e),S.lineTo(Math.cos(n)*o+f,Math.sin(n)*o+c),o!==0&&S.arc(f,c,o,n,a,e),S.closePath()}});U.exports=T},SrGk:function(U,P,d){var O=d("hydK"),x=O.createElement,T=d("bYtY"),v=d("y+Vt"),S=d("Dagg"),m=d("dqUG"),f=d("P47w"),c=f.path,o=f.image,r=f.text,a="0",n="1";function e(t,i,l,u,h){this._zrId=t,this._svgRoot=i,this._tagNames=typeof l=="string"?[l]:l,this._markLabel=u,this._domName=h||"_dom",this.nextId=0}e.prototype.createElement=x,e.prototype.getDefs=function(t){var i=this._svgRoot,l=this._svgRoot.getElementsByTagName("defs");return l.length===0?t?(l=i.insertBefore(this.createElement("defs"),i.firstChild),l.contains||(l.contains=function(u){var h=l.children;if(!h)return!1;for(var p=h.length-1;p>=0;--p)if(h[p]===u)return!0;return!1}),l):null:l[0]},e.prototype.update=function(t,i){if(!t)return;var l=this.getDefs(!1);if(t[this._domName]&&l.contains(t[this._domName]))typeof i=="function"&&i(t);else{var u=this.add(t);u&&(t[this._domName]=u)}},e.prototype.addDom=function(t){var i=this.getDefs(!0);i.appendChild(t)},e.prototype.removeDom=function(t){var i=this.getDefs(!1);i&&t[this._domName]&&(i.removeChild(t[this._domName]),t[this._domName]=null)},e.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var i=[];return T.each(this._tagNames,function(l){var u=t.getElementsByTagName(l);i=i.concat([].slice.call(u))}),i},e.prototype.markAllUnused=function(){var t=this.getDoms(),i=this;T.each(t,function(l){l[i._markLabel]=a})},e.prototype.markUsed=function(t){t&&(t[this._markLabel]=n)},e.prototype.removeUnused=function(){var t=this.getDefs(!1);if(!t)return;var i=this.getDoms(),l=this;T.each(i,function(u){u[l._markLabel]!==n&&t.removeChild(u)})},e.prototype.getSvgProxy=function(t){return t instanceof v?c:t instanceof S?o:t instanceof m?r:c},e.prototype.getTextSvgElement=function(t){return t.__textSvgEl},e.prototype.getSvgElement=function(t){return t.__svgEl};var s=e;U.exports=s},Swgg:function(U,P,d){var O=d("fc+c"),x=O.extend({type:"dataZoom.select"});U.exports=x},Sxd8:function(U,P,d){var O=d("ZCgT");function x(T){var v=O(T),S=v%1;return v===v?S?v-S:v:0}U.exports=x},T1rO:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("zdCA"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},T4UG:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("bYtY"),v=d("ItGF"),S=d("7aKB"),m=S.formatTime,f=S.encodeHTML,c=S.addCommas,o=S.getTooltipMarker,r=d("4NO4"),a=d("bLfw"),n=d("5Hur"),e=d("OKJ2"),s=d("+TT/"),t=s.getLayoutParams,i=s.mergeLayoutParam,l=d("9H2F"),u=l.createTask,h=d("D5nY"),p=h.prepareSource,g=h.getSource,A=d("KxfA"),y=A.retrieveRawValue,E=r.makeInner(),C=a.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(M,H,F,K){this.seriesIndex=this.componentIndex,this.dataTask=u({count:I,reset:_}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(M,F),p(this);var j=this.getInitialData(M,F);D(j,this),this.dataTask.context.data=j,E(this).dataBeforeProcessed=j,w(this)},mergeDefaultAndTheme:function(M,H){var F=this.layoutMode,K=F?t(M):{},j=this.subType;a.hasClass(j)&&(j+="Series"),T.merge(M,H.getTheme().get(this.subType)),T.merge(M,this.getDefaultOption()),r.defaultEmphasis(M,"label",["show"]),this.fillDataTextStyle(M.data),F&&i(M,K,F)},mergeOption:function(M,H){M=T.merge(this.option,M,!0),this.fillDataTextStyle(M.data);var F=this.layoutMode;F&&i(this.option,M,F),p(this);var K=this.getInitialData(M,H);D(K,this),this.dataTask.dirty(),this.dataTask.context.data=K,E(this).dataBeforeProcessed=K,w(this)},fillDataTextStyle:function(M){if(M&&!T.isTypedArray(M))for(var H=["show"],F=0;F<M.length;F++)M[F]&&M[F].label&&r.defaultEmphasis(M[F],"label",H)},getInitialData:function(){},appendData:function(M){var H=this.getRawData();H.appendData(M.data)},getData:function(M){var H=R(this);if(H){var F=H.context.data;return M==null?F:F.getLinkedData(M)}else return E(this).data},setData:function(M){var H=R(this);if(H){var F=H.context;F.data!==M&&H.modifyOutputEnd&&H.setOutputEnd(M.count()),F.outputData=M,H!==this.dataTask&&(F.data=M)}E(this).data=M},getSource:function(){return g(this)},getRawData:function(){return E(this).dataBeforeProcessed},getBaseAxis:function(){var M=this.coordinateSystem;return M&&M.getBaseAxis&&M.getBaseAxis()},formatTooltip:function(M,H,F,K){var j=this;K=K||"html";var V=K==="html"?"<br/>":`
|
|
|
`,z=K==="richText",Y={},ee=0;function fe(he){var Me=T.reduce(he,function(Ye,it,et){var Te=we.getDimensionInfo(et);return Ye|=Te&&Te.tooltip!==!1&&Te.displayName!=null},0),Ie=[];Ce.length?T.each(Ce,function(Ye){oe(y(we,M,Ye),Ye)}):T.each(he,oe);function oe(Ye,it){var et=we.getDimensionInfo(it);if(!et||et.otherDims.tooltip===!1)return;var Te=et.type,tt="sub"+j.seriesIndex+"at"+ee,ze=o({color:Pe,type:"subItem",renderMode:K,markerId:tt}),dt=typeof ze=="string"?ze:ze.content,Ot=(Me?dt+f(et.displayName||"-")+": ":"")+f(Te==="ordinal"?Ye+"":Te==="time"?H?"":m("yyyy/MM/dd hh:mm:ss",Ye):c(Ye));Ot&&Ie.push(Ot),z&&(Y[tt]=Pe,++ee)}var pe=Me?z?`
|
|
|
`:"<br/>":"",Oe=pe+Ie.join(pe||", ");return{renderMode:K,content:Oe,style:Y}}function ie(he){return{renderMode:K,content:f(c(he)),style:Y}}var we=this.getData(),Ce=we.mapDimension("defaultedTooltip",!0),Le=Ce.length,He=this.getRawValue(M),ce=T.isArray(He),Pe=we.getItemVisual(M,"color");T.isObject(Pe)&&Pe.colorStops&&(Pe=(Pe.colorStops[0]||{}).color),Pe=Pe||"transparent";var Q=Le>1||ce&&!Le?fe(He):ie(Le?y(we,M,Ce[0]):ce?He[0]:He),me=Q.content,Je=j.seriesIndex+"at"+ee,re=o({color:Pe,type:"item",renderMode:K,markerId:Je});Y[Je]=Pe,++ee;var G=we.getName(M),X=this.name;r.isNameSpecified(this)||(X=""),X=X?f(X)+(H?": ":V):"";var J=typeof re=="string"?re:re.content,Ae=H?J+X+me:X+J+(G?f(G)+": "+me:me);return{html:Ae,markers:Y}},isAnimationEnabled:function(){if(v.node)return!1;var M=this.getShallow("animation");return M&&(this.getData().count()>this.getShallow("animationThreshold")&&(M=!1)),M},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(M,H,F){var K=this.ecModel,j=n.getColorFromPalette.call(this,M,H,F);return j||(j=K.getColorFromPalette(M,H,F)),j},coordDimToDataDim:function(M){return this.getRawData().mapDimension(M,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});T.mixin(C,e),T.mixin(C,n);function w(M){var H=M.name;r.isNameSpecified(M)||(M.name=b(M)||H)}function b(M){var H=M.getRawData(),F=H.mapDimension("seriesName",!0),K=[];return T.each(F,function(j){var V=H.getDimensionInfo(j);V.displayName&&K.push(V.displayName)}),K.join(" ")}function I(M){return M.model.getRawData().count()}function _(M){var H=M.model;return H.setData(H.getRawData().cloneShallow()),L}function L(M,H){H.outputData&&M.end>H.outputData.count()&&H.model.getRawData().cloneShallow(H.outputData)}function D(M,H){T.each(M.CHANGABLE_METHODS,function(F){M.wrapMethod(F,T.curry(N,H))})}function N(M){var H=R(M);H&&H.setOutputEnd(this.count())}function R(M){var H=(M.ecModel||{}).scheduler,F=H&&H.getPipeline(M.uid);if(F){var K=F.currentTask;if(K){var j=K.agentStubMap;j&&(K=j.get(M.uid))}return K}}var B=C;U.exports=B},T6xi:function(U,P,d){var O=d("YgsL"),x=d("nCxF");function T(v,S,m){var f=S.points,c=S.smooth;if(f&&f.length>=2){if(c&&c!=="spline"){var o=x(f,c,m,S.smoothConstraint);v.moveTo(f[0][0],f[0][1]);for(var r=f.length,a=0;a<(m?r:r-1);a++){var n=o[a*2],e=o[a*2+1],s=f[(a+1)%r];v.bezierCurveTo(n[0],n[1],e[0],e[1],s[0],s[1])}}else{c==="spline"&&(f=O(f,m)),v.moveTo(f[0][0],f[0][1]);for(var a=1,t=f.length;a<t;a++)v.lineTo(f[a][0],f[a][1])}m&&v.closePath()}}P.buildPath=T},TIY9:function(U,P,d){var O=d("bYtY"),x=O.each,T=d("vafp"),v=d("4NO4"),S=v.makeInner,m=d("Mgri"),f=d("F5Ls"),c=d("a9QJ"),o=d("p/La"),r=S(),a={load:function(e,s,t){var i=r(s).parsed;if(i)return i;var l=s.specialAreas||{},u=s.geoJSON,h;try{h=u?T(u,t):[]}catch(p){throw new Error(`Invalid geoJson format
|
|
|
`+p.message)}return m(e,h),x(h,function(p){var g=p.name;f(e,p),c(e,p),o(e,p);var A=l[g];A&&p.transformTo(A.left,A.top,A.width,A.height)}),r(s).parsed={regions:h,boundingRect:n(h)}}};function n(e){for(var s,t=0;t<e.length;t++){var i=e[t].getBoundingRect();s=s||i.clone(),s.union(i)}return s}U.exports=a},TJmX:function(U,P,d){var O=d("zM3Q"),x=["itemStyle","borderColor"],T=["itemStyle","borderColor0"],v=["itemStyle","color"],S=["itemStyle","color0"],m={seriesType:"candlestick",plan:O(),performRawSeries:!0,reset:function(f,c){var o=f.getData();if(o.setVisual({legendSymbol:"roundRect",colorP:n(1,f),colorN:n(-1,f),borderColorP:e(1,f),borderColorN:e(-1,f)}),c.isSeriesFiltered(f))return;var r=f.pipelineContext.large;return!r&&{progress:a};function a(s,t){for(var i;(i=s.next())!=null;){var l=t.getItemModel(i),u=t.getItemLayout(i).sign;t.setItemVisual(i,{color:n(u,l),borderColor:e(u,l)})}}function n(s,t){return t.get(s>0?v:S)}function e(s,t){return t.get(s>0?x:T)}}};U.exports=m},TWL2:function(U,P,d){var O=d("IwbS"),x=d("bYtY"),T=d("6Ic6");function v(o,r){O.Group.call(this);var a=new O.Polygon,n=new O.Polyline,e=new O.Text;this.add(a),this.add(n),this.add(e),this.highDownOnUpdate=function(s,t){t==="emphasis"?(n.ignore=n.hoverIgnore,e.ignore=e.hoverIgnore):(n.ignore=n.normalIgnore,e.ignore=e.normalIgnore)},this.updateData(o,r,!0)}var S=v.prototype,m=["itemStyle","opacity"];S.updateData=function(o,r,a){var n=this.childAt(0),e=o.hostModel,s=o.getItemModel(r),t=o.getItemLayout(r),i=o.getItemModel(r).get(m);i=i==null?1:i,n.useStyle({}),a?(n.setShape({points:t.points}),n.setStyle({opacity:0}),O.initProps(n,{style:{opacity:i}},e,r)):O.updateProps(n,{style:{opacity:i},shape:{points:t.points}},e,r);var l=s.getModel("itemStyle"),u=o.getItemVisual(r,"color");n.setStyle(x.defaults({lineJoin:"round",fill:u},l.getItemStyle(["opacity"]))),n.hoverStyle=l.getModel("emphasis").getItemStyle(),this._updateLabel(o,r),O.setHoverStyle(this)},S._updateLabel=function(o,r){var a=this.childAt(1),n=this.childAt(2),e=o.hostModel,s=o.getItemModel(r),t=o.getItemLayout(r),i=t.label,l=o.getItemVisual(r,"color");O.updateProps(a,{shape:{points:i.linePoints||i.linePoints}},e,r),O.updateProps(n,{style:{x:i.x,y:i.y}},e,r),n.attr({rotation:i.rotation,origin:[i.x,i.y],z2:10});var u=s.getModel("label"),h=s.getModel("emphasis.label"),p=s.getModel("labelLine"),g=s.getModel("emphasis.labelLine"),l=o.getItemVisual(r,"color");O.setLabelStyle(n.style,n.hoverStyle={},u,h,{labelFetcher:o.hostModel,labelDataIndex:r,defaultText:o.getName(r),autoColor:l,useInsideStyle:!!i.inside},{textAlign:i.textAlign,textVerticalAlign:i.verticalAlign}),n.ignore=n.normalIgnore=!u.get("show"),n.hoverIgnore=!h.get("show"),a.ignore=a.normalIgnore=!p.get("show"),a.hoverIgnore=!g.get("show"),a.setStyle({stroke:l}),a.setStyle(p.getModel("lineStyle").getLineStyle()),a.hoverStyle=g.getModel("lineStyle").getLineStyle()},x.inherits(v,O.Group);var f=T.extend({type:"funnel",render:function(o,r,a){var n=o.getData(),e=this._data,s=this.group;n.diff(e).add(function(t){var i=new v(n,t);n.setItemGraphicEl(t,i),s.add(i)}).update(function(t,i){var l=e.getItemGraphicEl(i);l.updateData(n,t),s.add(l),n.setItemGraphicEl(t,l)}).remove(function(t){var i=e.getItemGraphicEl(t);s.remove(i)}).execute(),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),c=f;U.exports=c},TYVI:function(U,P,d){var O=d("5GtS"),x=d("T4UG"),T=x.extend({type:"series.gauge",getInitialData:function(S,m){return O(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}}),v=T;U.exports=v},Tghj:function(U,P,d){(function(O){var x;typeof window!="undefined"?x=window.__DEV__:typeof O!="undefined"&&(x=O.__DEV__),typeof x=="undefined"&&(x=!0);var T=x;P.__DEV__=T}).call(this,d("yLpj"))},ThAp:function(U,P,d){var O=d("bYtY"),x=d("5GtS"),T=d("T4UG"),v=d("7aKB"),S=v.encodeHTML,m=v.addCommas,f=d("cCMj"),c=d("KxfA"),o=c.retrieveRawAttr,r=d("W4dC"),a=d("D5nY"),n=a.makeSeriesEncodeForNameBased,e=T.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(t){for(var i=x(this,{coordDimensions:["value"],encodeDefaulter:O.curry(n,this)}),l=i.mapDimension("value"),u=O.createHashMap(),h=[],p=[],g=0,A=i.count();g<A;g++){var y=i.getName(g);u.set(y,!0),h.push({name:y,value:i.get(l,g),selected:o(i,g,"selected")})}var E=r.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return O.each(E.regions,function(C){var w=C.name;u.get(w)||(h.push({name:w}),p.push(w))}),this.updateSelectedMap(h),i.appendValues([],p),i},getHostGeoModel:function(){var t=this.option.geoIndex;return t!=null?this.dependentModels.geo[t]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(t){var i=this.getData();return i.get(i.mapDimension("value"),t)},getRegionModel:function(t){var i=this.getData();return i.getItemModel(i.indexOfName(t))},formatTooltip:function(t){for(var i=this.getData(),l=m(this.getRawValue(t)),u=i.getName(t),h=this.seriesGroup,p=[],g=0;g<h.length;g++){var A=h[g].originalData.indexOfName(u),y=i.mapDimension("value");isNaN(h[g].originalData.get(y,A))||p.push(S(h[g].name))}return p.join(", ")+"<br />"+S(u+" : "+l)},getTooltipPosition:function(t){if(t!=null){var i=this.getData().getName(t),l=this.coordinateSystem,u=l.getRegion(i);return u&&l.dataToPoint(u.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});O.mixin(e,f);var s=e;U.exports=s},TkdX:function(U,P,d){var O=d("bYtY"),x=d("IwbS"),T={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},v=2,S=4;function m(e,s,t){x.Group.call(this);var i=new x.Sector({z2:v});i.seriesIndex=s.seriesIndex;var l=new x.Text({z2:S,silent:e.getModel("label").get("silent")});this.add(i),this.add(l),this.updateData(!0,e,"normal",s,t);function u(){l.ignore=l.hoverIgnore}function h(){l.ignore=l.normalIgnore}this.on("emphasis",u).on("normal",h).on("mouseover",u).on("mouseout",h)}var f=m.prototype;f.updateData=function(e,s,t,i,l){this.node=s,s.piece=this,i=i||this._seriesModel,l=l||this._ecModel;var u=this.childAt(0);u.dataIndex=s.dataIndex;var h=s.getModel(),p=s.getLayout(),g=O.extend({},p);g.label=null;var A=o(s,i,l);n(s,i,A);var y=h.getModel("itemStyle").getItemStyle(),E;if(t==="normal")E=y;else{var C=h.getModel(t+".itemStyle").getItemStyle();E=O.merge(C,y)}E=O.defaults({lineJoin:"bevel",fill:E.fill||A},E),e?(u.setShape(g),u.shape.r=p.r0,x.updateProps(u,{shape:{r:p.r}},i,s.dataIndex),u.useStyle(E)):typeof E.fill=="object"&&E.fill.type||typeof u.style.fill=="object"&&u.style.fill.type?(x.updateProps(u,{shape:g},i),u.useStyle(E)):x.updateProps(u,{shape:g,style:E},i),this._updateLabel(i,A,t);var w=h.getShallow("cursor");if(w&&u.attr("cursor",w),e){var b=i.getShallow("highlightPolicy");this._initEvents(u,s,i,b)}this._seriesModel=i||this._seriesModel,this._ecModel=l||this._ecModel,x.setHoverStyle(this)},f.onEmphasis=function(e){var s=this;this.node.hostTree.root.eachNode(function(t){t.piece&&(s.node===t?t.piece.updateData(!1,t,"emphasis"):a(t,s.node,e)?t.piece.childAt(0).trigger("highlight"):e!==T.NONE&&t.piece.childAt(0).trigger("downplay"))})},f.onNormal=function(){this.node.hostTree.root.eachNode(function(e){e.piece&&e.piece.updateData(!1,e,"normal")})},f.onHighlight=function(){this.updateData(!1,this.node,"highlight")},f.onDownplay=function(){this.updateData(!1,this.node,"downplay")},f._updateLabel=function(e,s,t){var i=this.node.getModel(),l=i.getModel("label"),u=t==="normal"||t==="emphasis"?l:i.getModel(t+".label"),h=i.getModel("emphasis.label"),p=O.retrieve(e.getFormattedLabel(this.node.dataIndex,t,null,null,"label"),this.node.name);H("show")===!1&&(p="");var g=this.node.getLayout(),A=u.get("minAngle");A==null&&(A=l.get("minAngle")),A=A/180*Math.PI;var y=g.endAngle-g.startAngle;A!=null&&Math.abs(y)<A&&(p="");var E=this.childAt(1);x.setLabelStyle(E.style,E.hoverStyle||{},l,h,{defaultText:u.getShallow("show")?p:null,autoColor:s,useInsideStyle:!0});var C=(g.startAngle+g.endAngle)/2,w=Math.cos(C),b=Math.sin(C),I,_=H("position"),L=H("distance")||0,D=H("align");_==="outside"?(I=g.r+L,D=C>Math.PI/2?"right":"left"):!D||D==="center"?(I=(g.r+g.r0)/2,D="center"):D==="left"?(I=g.r0+L,C>Math.PI/2&&(D="right")):D==="right"&&(I=g.r-L,C>Math.PI/2&&(D="left")),E.attr("style",{text:p,textAlign:D,textVerticalAlign:H("verticalAlign")||"middle",opacity:H("opacity")});var N=I*w+g.cx,R=I*b+g.cy;E.attr("position",[N,R]);var B=H("rotate"),M=0;B==="radial"?(M=-C,M<-Math.PI/2&&(M+=Math.PI)):B==="tangential"?(M=Math.PI/2-C,M>Math.PI/2?M-=Math.PI:M<-Math.PI/2&&(M+=Math.PI)):typeof B=="number"&&(M=B*Math.PI/180),E.attr("rotation",M);function H(F){var K=u.get(F);return K==null?l.get(F):K}},f._initEvents=function(e,s,t,i){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var l=this,u=function(){l.onEmphasis(i)},h=function(){l.onNormal()},p=function(){l.onDownplay()},g=function(){l.onHighlight()};t.isAnimationEnabled()&&e.on("mouseover",u).on("mouseout",h).on("emphasis",u).on("normal",h).on("downplay",p).on("highlight",g)},O.inherits(m,x.Group);var c=m;function o(e,s,t){var i=e.getVisual("color"),l=e.getVisual("visualMeta");(!l||l.length===0)&&(i=null);var u=e.getModel("itemStyle").get("color");if(u)return u;if(i)return i;if(e.depth===0)return t.option.color[0];var h=t.option.color.length;return u=t.option.color[r(e)%h],u}function r(e){for(var s=e;s.depth>1;)s=s.parentNode;var t=e.getAncestors()[0];return O.indexOf(t.children,s)}function a(e,s,t){return t===T.NONE?!1:t===T.SELF?e===s:t===T.ANCESTOR?e===s||e.isAncestorOf(s):e===s||e.isDescendantOf(s)}function n(e,s,t){var i=s.getData();i.setItemVisual(e.dataIndex,"color",t)}U.exports=c},Tp9H:function(U,P,d){var O=d("ItGF"),x=d("Kagy"),T=d("IUWy"),v=x.toolbox.saveAsImage;function S(c){this.model=c}S.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:v.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:v.lang.slice()},S.prototype.unusable=!O.canvasSupported;var m=S.prototype;m.onclick=function(c,o){var r=this.model,a=r.get("name")||c.get("title.0.text")||"echarts",n=o.getZr().painter.getType()==="svg",e=n?"svg":r.get("type",!0)||"png",s=o.getConnectedDataURL({type:e,backgroundColor:r.get("backgroundColor",!0)||c.get("backgroundColor")||"#fff",connectedBackgroundColor:r.get("connectedBackgroundColor"),excludeComponents:r.get("excludeComponents"),pixelRatio:r.get("pixelRatio")});if(typeof MouseEvent=="function"&&!O.browser.ie&&!O.browser.edge){var t=document.createElement("a");t.download=a+"."+e,t.target="_blank",t.href=s;var i=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});t.dispatchEvent(i)}else if(window.navigator.msSaveOrOpenBlob){for(var l=atob(s.split(",")[1]),u=l.length,h=new Uint8Array(u);u--;)h[u]=l.charCodeAt(u);var p=new Blob([h]);window.navigator.msSaveOrOpenBlob(p,a+"."+e)}else{var g=r.get("lang"),A='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(g&&g[0]||"")+'" /></body>',y=window.open();y.document.write(A)}},T.register("saveAsImage",S);var f=S;U.exports=f},"U/Mo":function(U,P){function d(x){var T=x.coordinateSystem;if(T.type!=="view")return 1;var v=x.option.nodeScaleRatio,S=T.scale,m=S&&S[0]||1,f=T.getZoom(),c=(f-1)*v+1;return c/m}function O(x){var T=x.getVisual("symbolSize");return T instanceof Array&&(T=(T[0]+T[1])/2),+T}P.getNodeGlobalScale=d,P.getSymbolSize=O},UADf:function(U,P,d){},UESt:function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="RightOutlined";var f=P.a=x.forwardRef(m)},UOVi:function(U,P,d){var O=d("bYtY"),x=d("7aKB"),T=["x","y","z","radius","angle","single"],v=["cartesian2d","polar","singleAxis"];function S(o){return O.indexOf(v,o)>=0}function m(o,r){o=o.slice();var a=O.map(o,x.capitalFirst);r=(r||[]).slice();var n=O.map(r,x.capitalFirst);return function(e,s){O.each(o,function(t,i){for(var l={name:t,capital:a[i]},u=0;u<r.length;u++)l[r[u]]=t+n[u];e.call(s,l)})}}var f=m(T,["axisIndex","axis","index","id"]);function c(o,r,a){return function(t){var i={nodes:[],records:{}};if(r(function(h){i.records[h.name]={}}),!t)return i;s(t,i);var l;do l=!1,o(u);while(l);function u(h){!n(h,i)&&e(h,i)&&(s(h,i),l=!0)}return i};function n(t,i){return O.indexOf(i.nodes,t)>=0}function e(t,i){var l=!1;return r(function(u){O.each(a(t,u)||[],function(h){i.records[u.name][h]&&(l=!0)})}),l}function s(t,i){i.nodes.push(t),r(function(l){O.each(a(t,l)||[],function(u){i.records[l.name][u]=!0})})}}P.isCoordSupported=S,P.createNameEach=m,P.eachAxisDim=f,P.createLinkedNodesFinder=c},Uc92:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};P.default=O},UnoB:function(U,P,d){var O=d("bYtY"),x=d("OELB");function T(m,f){m.eachSeriesByType("themeRiver",function(c){var o=c.getData(),r=c.coordinateSystem,a={},n=r.getRect();a.rect=n;var e=c.get("boundaryGap"),s=r.getAxis();if(a.boundaryGap=e,s.orient==="horizontal"){e[0]=x.parsePercent(e[0],n.height),e[1]=x.parsePercent(e[1],n.height);var t=n.height-e[0]-e[1];v(o,c,t)}else{e[0]=x.parsePercent(e[0],n.width),e[1]=x.parsePercent(e[1],n.width);var i=n.width-e[0]-e[1];v(o,c,i)}o.setLayout("layoutInfo",a)})}function v(m,f,c){if(!m.count())return;for(var o=f.coordinateSystem,r=f.getLayerSeries(),a=m.mapDimension("single"),n=m.mapDimension("value"),e=O.map(r,function(A){return O.map(A.indices,function(y){var E=o.dataToPoint(m.get(a,y));return E[1]=m.get(n,y),E})}),s=S(e),t=s.y0,i=c/s.max,l=r.length,u=r[0].indices.length,h,p=0;p<u;++p){h=t[p]*i,m.setItemLayout(r[0].indices[p],{layerIndex:0,x:e[0][p][0],y0:h,y:e[0][p][1]*i});for(var g=1;g<l;++g)h+=e[g-1][p][1]*i,m.setItemLayout(r[g].indices[p],{layerIndex:g,x:e[g][p][0],y0:h,y:e[g][p][1]*i})}}function S(m){for(var f=m.length,c=m[0].length,o=[],r=[],a=0,n,e={},s=0;s<c;++s){for(var t=0,n=0;t<f;++t)n+=m[t][s][1];n>a&&(a=n),o.push(n)}for(var i=0;i<c;++i)r[i]=(a-o[i])/2;a=0;for(var l=0;l<c;++l){var u=o[l]+r[l];u>a&&(a=u)}return e.y0=r,e.max=a,e}U.exports=T},Urep:function(U,P,d){},V7ic:function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("digP")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="FileTwoTone";var c=v.forwardRef(f);P.default=c},VFCP:function(U,P,d){d("dBmv"),d("KamJ")},VPsl:function(U,P){function d(O){O.eachSeriesByType("map",function(x){var T=x.get("color"),v=x.getModel("itemStyle"),S=v.get("areaColor"),m=v.get("color")||T[x.seriesIndex%T.length];x.getData().setVisual({areaColor:S,color:m})})}U.exports=d},VR9l:function(U,P,d){var O=d("KCsZ"),x=O([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),T={getItemStyle:function(v,S){var m=x(this,v,S),f=this.getBorderLineDash();return f&&(m.lineDash=f),m},getBorderLineDash:function(){var v=this.get("borderType");return v==="solid"||v==null?null:v==="dashed"?[5,5]:[1,1]}};U.exports=T},VSLf:function(U,P,d){d("I+Bx"),d("F0hE"),d("bBKM")},VSMT:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.decodeUTF8=O,P.encodeUTF8=x;function O(T){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(T))}catch(S){if(S instanceof URIError&&v)return T;throw S}}function x(T){return unescape(encodeURIComponent(T))}},VXYp:function(U,P,d){var O=d("bYtY"),x=d("SgGq"),T=d("iLNv"),v="\0_ec_dataZoom_roams";function S(e,s){var t=c(e),i=s.dataZoomId,l=s.coordId;O.each(t,function(p,g){var A=p.dataZoomInfos;A[i]&&O.indexOf(s.allCoordIds,l)<0&&(delete A[i],p.count--)}),r(t);var u=t[l];u||(u=t[l]={coordId:l,dataZoomInfos:{},count:0},u.controller=o(e,u),u.dispatchAction=O.curry(a,e)),!u.dataZoomInfos[i]&&u.count++,u.dataZoomInfos[i]=s;var h=n(u.dataZoomInfos);u.controller.enable(h.controlType,h.opt),u.controller.setPointerChecker(s.containsPoint),T.createOrUpdate(u,"dispatchAction",s.dataZoomModel.get("throttle",!0),"fixRate")}function m(e,s){var t=c(e);O.each(t,function(i){i.controller.dispose();var l=i.dataZoomInfos;l[s]&&(delete l[s],i.count--)}),r(t)}function f(e){return e.type+"\0_"+e.id}function c(e){var s=e.getZr();return s[v]||(s[v]={})}function o(e,s){var t=new x(e.getZr());return O.each(["pan","zoom","scrollMove"],function(i){t.on(i,function(l){var u=[];O.each(s.dataZoomInfos,function(h){if(!l.isAvailableBehavior(h.dataZoomModel.option))return;var p=(h.getRange||{})[i],g=p&&p(s.controller,l);!h.dataZoomModel.get("disabled",!0)&&g&&u.push({dataZoomId:h.dataZoomId,start:g[0],end:g[1]})}),u.length&&s.dispatchAction(u)})}),t}function r(e){O.each(e,function(s,t){s.count||(s.controller.dispose(),delete e[t])})}function a(e,s){e.dispatchAction({type:"dataZoom",batch:s})}function n(e){var s,t="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},l=!0;return O.each(e,function(u){var h=u.dataZoomModel,p=h.get("disabled",!0)?!1:h.get("zoomLock",!0)?"move":!0;i[t+p]>i[t+s]&&(s=p),l&=h.get("preventDefaultMouseMove",!0)}),{controlType:s,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!l}}}P.register=S,P.unregister=m,P.generateCoordId=f},VaxA:function(U,P,d){var O=d("bYtY");function x(m,f,c){if(m&&O.indexOf(f,m.type)>=0){var o=c.getData().tree.root,r=m.targetNode;if(typeof r=="string"&&(r=o.getNodeById(r)),r&&o.contains(r))return{node:r};var a=m.targetNodeId;if(a!=null&&(r=o.getNodeById(a)))return{node:r}}}function T(m){for(var f=[];m;)m=m.parentNode,m&&f.push(m);return f.reverse()}function v(m,f){var c=T(m);return O.indexOf(c,f)>=0}function S(m,f){for(var c=[];m;){var o=m.dataIndex;c.push({name:m.name,dataIndex:o,value:f.getRawValue(o)}),m=m.parentNode}return c.reverse(),c}P.retrieveTargetInfo=x,P.getPathToRoot=T,P.aboveViewRoot=v,P.wrapTreePathInfo=S},Vi4m:function(U,P,d){var O=d("bYtY");function x(v){v!=null&&O.extend(this,v),this.otherDims={}}var T=x;U.exports=T},Vl3Y:function(U,P,d){"use strict";var O=d("pVnL"),x=d.n(O),T=d("J4zp"),v=d.n(T),S=d("lSNA"),m=d.n(S),f=d("q1tI"),c=d("TSYQ"),o=d.n(c),r=d("85Yc"),a=d("H84U"),n=d("BGR+"),e=f.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),s=f.createContext({updateItemErrors:function(){}}),t=function(gt){var jt=Object(n.default)(gt,["prefixCls"]);return f.createElement(r.FormProvider,jt)};function i(ae){return typeof ae=="object"&&ae!=null&&ae.nodeType===1}function l(ae,gt){return(!gt||ae!=="hidden")&&ae!=="visible"&&ae!=="clip"}function u(ae,gt){if(ae.clientHeight<ae.scrollHeight||ae.clientWidth<ae.scrollWidth){var jt=getComputedStyle(ae,null);return l(jt.overflowY,gt)||l(jt.overflowX,gt)||function(ut){var rr=function(pr){if(!pr.ownerDocument||!pr.ownerDocument.defaultView)return null;try{return pr.ownerDocument.defaultView.frameElement}catch(nn){return null}}(ut);return!!rr&&(rr.clientHeight<ut.scrollHeight||rr.clientWidth<ut.scrollWidth)}(ae)}return!1}function h(ae,gt,jt,ut,rr,pr,nn,mr){return pr<ae&&nn>gt||pr>ae&&nn<gt?0:pr<=ae&&mr<=jt||nn>=gt&&mr>=jt?pr-ae-ut:nn>gt&&mr<jt||pr<ae&&mr>jt?nn-gt+rr:0}var p=function(ae,gt){var jt=window,ut=gt.scrollMode,rr=gt.block,pr=gt.inline,nn=gt.boundary,mr=gt.skipOverflowHiddenElements,vr=typeof nn=="function"?nn:function(Mn){return Mn!==nn};if(!i(ae))throw new TypeError("Invalid target");for(var $t=document.scrollingElement||document.documentElement,Xt=[],ft=ae;i(ft)&&vr(ft);){if((ft=ft.parentElement)===$t){Xt.push(ft);break}ft!=null&&ft===document.body&&u(ft)&&!u(document.documentElement)||ft!=null&&u(ft,mr)&&Xt.push(ft)}for(var Ur=jt.visualViewport?jt.visualViewport.width:innerWidth,yn=jt.visualViewport?jt.visualViewport.height:innerHeight,Dn=window.scrollX||pageXOffset,Un=window.scrollY||pageYOffset,wi=ae.getBoundingClientRect(),Rn=wi.height,kn=wi.width,Vn=wi.top,Gt=wi.right,st=wi.bottom,ue=wi.left,Ee=rr==="start"||rr==="nearest"?Vn:rr==="end"?st:Vn+Rn/2,je=pr==="center"?ue+kn/2:pr==="end"?Gt:ue,Ve=[],$e=0;$e<Xt.length;$e++){var wt=Xt[$e],qt=wt.getBoundingClientRect(),Mr=qt.height,an=qt.width,_t=qt.top,at=qt.right,bt=qt.bottom,kt=qt.left;if(ut==="if-needed"&&Vn>=0&&ue>=0&&st<=yn&&Gt<=Ur&&Vn>=_t&&st<=bt&&ue>=kt&&Gt<=at)return Ve;var Pt=getComputedStyle(wt),Et=parseInt(Pt.borderLeftWidth,10),Ht=parseInt(Pt.borderTopWidth,10),ot=parseInt(Pt.borderRightWidth,10),Mt=parseInt(Pt.borderBottomWidth,10),xr=0,ur=0,gr="offsetWidth"in wt?wt.offsetWidth-wt.clientWidth-Et-ot:0,Qr="offsetHeight"in wt?wt.offsetHeight-wt.clientHeight-Ht-Mt:0;if($t===wt)xr=rr==="start"?Ee:rr==="end"?Ee-yn:rr==="nearest"?h(Un,Un+yn,yn,Ht,Mt,Un+Ee,Un+Ee+Rn,Rn):Ee-yn/2,ur=pr==="start"?je:pr==="center"?je-Ur/2:pr==="end"?je-Ur:h(Dn,Dn+Ur,Ur,Et,ot,Dn+je,Dn+je+kn,kn),xr=Math.max(0,xr+Un),ur=Math.max(0,ur+Dn);else{xr=rr==="start"?Ee-_t-Ht:rr==="end"?Ee-bt+Mt+Qr:rr==="nearest"?h(_t,bt,Mr,Ht,Mt+Qr,Ee,Ee+Rn,Rn):Ee-(_t+Mr/2)+Qr/2,ur=pr==="start"?je-kt-Et:pr==="center"?je-(kt+an/2)+gr/2:pr==="end"?je-at+ot+gr:h(kt,at,an,Et,ot+gr,je,je+kn,kn);var ln=wt.scrollLeft,_n=wt.scrollTop;Ee+=_n-(xr=Math.max(0,Math.min(_n+xr,wt.scrollHeight-Mr+Qr))),je+=ln-(ur=Math.max(0,Math.min(ln+ur,wt.scrollWidth-an+gr)))}Ve.push({el:wt,top:xr,left:ur})}return Ve};function g(ae){return ae===Object(ae)&&Object.keys(ae).length!==0}function A(ae,gt){gt===void 0&&(gt="auto");var jt="scrollBehavior"in document.body.style;ae.forEach(function(ut){var rr=ut.el,pr=ut.top,nn=ut.left;rr.scroll&&jt?rr.scroll({top:pr,left:nn,behavior:gt}):(rr.scrollTop=pr,rr.scrollLeft=nn)})}function y(ae){return ae===!1?{block:"end",inline:"nearest"}:g(ae)?ae:{block:"start",inline:"nearest"}}function E(ae,gt){var jt=!ae.ownerDocument.documentElement.contains(ae);if(g(gt)&&typeof gt.behavior=="function")return gt.behavior(jt?[]:p(ae,gt));if(jt)return;var ut=y(gt);return A(p(ae,ut),ut.behavior)}var C=E;function w(ae){return ae===void 0||ae===!1?[]:Array.isArray(ae)?ae:[ae]}function b(ae,gt){if(!ae.length)return;var jt=ae.join("_");return gt?"".concat(gt,"_").concat(jt):jt}function I(ae){var gt=w(ae);return gt.join("_")}function _(ae){var gt=Object(r.useForm)(),jt=v()(gt,1),ut=jt[0],rr=Object(f.useRef)({}),pr=Object(f.useMemo)(function(){return ae||x()(x()({},ut),{__INTERNAL__:{itemRef:function(mr){return function(vr){var $t=I(mr);vr?rr.current[$t]=vr:delete rr.current[$t]}}},scrollToField:function(mr){var vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$t=w(mr),Xt=b($t,pr.__INTERNAL__.name),ft=Xt?document.getElementById(Xt):null;ft&&C(ft,x()({scrollMode:"if-needed",block:"nearest"},vr))},getFieldInstance:function(mr){var vr=I(mr);return rr.current[vr]}})},[ae,ut]);return[pr]}var L=d("3Nzz"),D=function(ae,gt){var jt={};for(var ut in ae)Object.prototype.hasOwnProperty.call(ae,ut)&>.indexOf(ut)<0&&(jt[ut]=ae[ut]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rr=0,ut=Object.getOwnPropertySymbols(ae);rr<ut.length;rr++)gt.indexOf(ut[rr])<0&&Object.prototype.propertyIsEnumerable.call(ae,ut[rr])&&(jt[ut[rr]]=ae[ut[rr]]);return jt},N=function(gt,jt){var ut,rr=f.useContext(L.b),pr=f.useContext(a.b),nn=pr.getPrefixCls,mr=pr.direction,vr=gt.name,$t=gt.prefixCls,Xt=gt.className,ft=Xt===void 0?"":Xt,Ur=gt.size,yn=Ur===void 0?rr:Ur,Dn=gt.form,Un=gt.colon,wi=gt.labelAlign,Rn=gt.labelCol,kn=gt.wrapperCol,Vn=gt.hideRequiredMark,Gt=gt.layout,st=Gt===void 0?"horizontal":Gt,ue=gt.scrollToFirstError,Ee=gt.requiredMark,je=gt.onFinishFailed,Ve=D(gt,["prefixCls","className","size","form","colon","labelAlign","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed"]),$e=Object(f.useMemo)(function(){return Ee!==void 0?Ee:!Vn},[Vn,Ee]),wt=nn("form",$t),qt=o()(wt,(ut={},m()(ut,"".concat(wt,"-").concat(st),!0),m()(ut,"".concat(wt,"-hide-required-mark"),$e===!1),m()(ut,"".concat(wt,"-rtl"),mr==="rtl"),m()(ut,"".concat(wt,"-").concat(yn),yn),ut),ft),Mr=_(Dn),an=v()(Mr,1),_t=an[0],at=_t.__INTERNAL__;at.name=vr;var bt=Object(f.useMemo)(function(){return{name:vr,labelAlign:wi,labelCol:Rn,wrapperCol:kn,vertical:st==="vertical",colon:Un,requiredMark:$e,itemRef:at.itemRef}},[vr,wi,Rn,kn,st,Un,$e]);f.useImperativeHandle(jt,function(){return _t});var kt=function(Et){je&&je(Et),ue&&Et.errorFields.length&&_t.scrollToField(Et.errorFields[0].name)};return f.createElement(L.a,{size:yn},f.createElement(e.Provider,{value:bt},f.createElement(r.default,x()({id:vr},Ve,{onFinishFailed:kt,form:_t,className:qt}))))},R=f.forwardRef(N),B=R,M=d("cDf5"),H=d.n(M),F=d("RIqP"),K=d.n(F),j=d("Y+p1"),V=d.n(j),z=d("KW7l"),Y=d("c+Xe"),ee=d("qrJ5"),fe=d("CWQg"),ie=d("uaoM"),we=d("/kpp"),Ce=d("YMnH"),Le=d("ZvpZ"),He=function(gt){var jt=gt.prefixCls,ut=gt.label,rr=gt.htmlFor,pr=gt.labelCol,nn=gt.labelAlign,mr=gt.colon,vr=gt.required,$t=gt.requiredMark,Xt=Object(Ce.b)("Form"),ft=v()(Xt,1),Ur=ft[0];return ut?f.createElement(e.Consumer,{key:"label"},function(yn){var Dn,Un=yn.vertical,wi=yn.labelAlign,Rn=yn.labelCol,kn=yn.colon,Vn,Gt=pr||Rn||{},st=nn||wi,ue="".concat(jt,"-item-label"),Ee=o()(ue,st==="left"&&"".concat(ue,"-left"),Gt.className),je=ut,Ve=mr===!0||kn!==!1&&mr!==!1,$e=Ve&&!Un;$e&&typeof ut=="string"&&ut.trim()!==""&&(je=ut.replace(/[:|:]\s*$/,"")),$t==="optional"&&!vr&&(je=f.createElement(f.Fragment,null,je,f.createElement("span",{className:"".concat(jt,"-item-optional")},(Ur==null?void 0:Ur.optional)||((Vn=Le.a.Form)===null||Vn===void 0?void 0:Vn.optional))));var wt=o()((Dn={},m()(Dn,"".concat(jt,"-item-required"),vr),m()(Dn,"".concat(jt,"-item-required-mark-optional"),$t==="optional"),m()(Dn,"".concat(jt,"-item-no-colon"),!Ve),Dn));return f.createElement(we.a,x()({},Gt,{className:Ee}),f.createElement("label",{htmlFor:rr,className:wt,title:typeof ut=="string"?ut:""},je))}):null},ce=He,Pe=d("gZBC"),Q=d.n(Pe),me=d("kbBi"),Je=d.n(me),re=d("J84W"),G=d.n(re),X=d("sKbD"),J=d.n(X),Ae=d("YrtM"),he=d("HTfv"),Me=d("hkKa");function Ie(ae,gt,jt){var ut=f.useRef({errors:ae,visible:!!ae.length}),rr=Object(Me.a)(),pr=function(){var mr=ut.current.visible,vr=!!ae.length,$t=ut.current.errors;ut.current.errors=ae,ut.current.visible=vr,mr!==vr?gt(vr):($t.length!==ae.length||$t.some(function(Xt,ft){return Xt!==ae[ft]}))&&rr()};return f.useEffect(function(){if(!jt){var nn=setTimeout(pr,10);return function(){return clearTimeout(nn)}}},[ae]),jt&&pr(),[ut.current.visible,ut.current.errors]}var oe={success:G.a,warning:J.a,error:Je.a,validating:Q.a},pe=function(gt){var jt=gt.prefixCls,ut=gt.wrapperCol,rr=gt.children,pr=gt.help,nn=gt.errors,mr=gt.onDomErrorVisibleChange,vr=gt.hasFeedback,$t=gt.validateStatus,Xt=gt.extra,ft=Object(Me.a)(),Ur="".concat(jt,"-item"),yn=f.useContext(e),Dn=ut||yn.wrapperCol||{},Un=o()("".concat(Ur,"-control"),Dn.className),wi=Ie(nn,function(je){je&&Promise.resolve().then(function(){mr(!0)}),ft()},!!pr),Rn=v()(wi,2),kn=Rn[0],Vn=Rn[1];f.useEffect(function(){return function(){mr(!1)}},[]);var Gt=Object(Ae.a)(function(){return Vn},kn,function(je,Ve){return Ve}),st=$t&&oe[$t],ue=vr&&st?f.createElement("span",{className:"".concat(Ur,"-children-icon")},f.createElement(st,null)):null,Ee=x()({},yn);return delete Ee.labelCol,delete Ee.wrapperCol,f.createElement(e.Provider,{value:Ee},f.createElement(we.a,x()({},Dn,{className:Un}),f.createElement("div",{className:"".concat(Ur,"-control-input")},f.createElement("div",{className:"".concat(Ur,"-control-input-content")},rr),ue),f.createElement(he.default,{motionDeadline:500,visible:kn,motionName:"show-help",onLeaveEnd:function(){mr(!1)},motionAppear:!0,removeOnLeave:!0},function(je){var Ve=je.className;return f.createElement("div",{className:o()("".concat(Ur,"-explain"),Ve),key:"help"},Gt.map(function($e,wt){return f.createElement("div",{key:wt,role:"alert"},$e)}))}),Xt&&f.createElement("div",{className:"".concat(Ur,"-extra")},Xt)))},Oe=pe,Ye=d("0n0R"),it=d("xEkU"),et=d.n(it);function Te(ae){var gt=f.useState(ae),jt=v()(gt,2),ut=jt[0],rr=jt[1],pr=Object(f.useRef)(null),nn=Object(f.useRef)([]),mr=Object(f.useRef)(!1);f.useEffect(function(){return function(){mr.current=!0,et.a.cancel(pr.current)}},[]);function vr($t){if(mr.current)return;pr.current===null&&(nn.current=[],pr.current=et()(function(){pr.current=null,rr(function(Xt){var ft=Xt;return nn.current.forEach(function(Ur){ft=Ur(ft)}),ft})})),nn.current.push($t)}return[ut,vr]}function tt(){var ae=f.useContext(e),gt=ae.itemRef,jt=f.useRef({});function ut(rr,pr){var nn=pr&&H()(pr)==="object"&&pr.ref,mr=rr.join("_");return(jt.current.name!==mr||jt.current.originRef!==nn)&&(jt.current.name=mr,jt.current.originRef=nn,jt.current.ref=Object(Y.a)(gt(rr),nn)),jt.current.ref}return ut}var ze=function(ae,gt){var jt={};for(var ut in ae)Object.prototype.hasOwnProperty.call(ae,ut)&>.indexOf(ut)<0&&(jt[ut]=ae[ut]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rr=0,ut=Object.getOwnPropertySymbols(ae);rr<ut.length;rr++)gt.indexOf(ut[rr])<0&&Object.prototype.propertyIsEnumerable.call(ae,ut[rr])&&(jt[ut[rr]]=ae[ut[rr]]);return jt},dt=Object(fe.a)("success","warning","error","validating",""),Ot=f.memo(function(ae){var gt=ae.children;return gt},function(ae,gt){return ae.value===gt.value&&ae.update===gt.update});function Tt(ae){return ae===null&&Object(ie.a)(!1,"Form.Item","`null` is passed as `name` property"),!(ae==null)}function Ct(ae){var gt=ae.name,jt=ae.fieldKey,ut=ae.noStyle,rr=ae.dependencies,pr=ae.prefixCls,nn=ae.style,mr=ae.className,vr=ae.shouldUpdate,$t=ae.hasFeedback,Xt=ae.help,ft=ae.rules,Ur=ae.validateStatus,yn=ae.children,Dn=ae.required,Un=ae.label,wi=ae.trigger,Rn=wi===void 0?"onChange":wi,kn=ae.validateTrigger,Vn=ae.hidden,Gt=ze(ae,["name","fieldKey","noStyle","dependencies","prefixCls","style","className","shouldUpdate","hasFeedback","help","rules","validateStatus","children","required","label","trigger","validateTrigger","hidden"]),st=f.useRef(!1),ue=f.useContext(a.b),Ee=ue.getPrefixCls,je=f.useContext(e),Ve=je.name,$e=je.requiredMark,wt=f.useContext(s),qt=wt.updateItemErrors,Mr=f.useState(!!Xt),an=v()(Mr,2),_t=an[0],at=an[1],bt=f.useRef(Ur),kt=Te({}),Pt=v()(kt,2),Et=Pt[0],Ht=Pt[1],ot=f.useContext(z.b),Mt=ot.validateTrigger,xr=kn!==void 0?kn:Mt;function ur(Ze){st.current||at(Ze)}var gr=Tt(gt),Qr=f.useRef([]);f.useEffect(function(){return function(){st.current=!0,qt(Qr.current.join("__SPLIT__"),[])}},[]);var ln=Ee("form",pr),_n=ut?qt:function(Ze,be){Ht(function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return V()(Ne[Ze],be)?Ne:x()(x()({},Ne),m()({},Ze,be))})},Mn=tt();function li(Ze,be,Ne,Ue){var Qe,Xe;if(ut&&!Vn)return Ze;var qe=[];Object.keys(Et).forEach(function(kr){qe=[].concat(K()(qe),K()(Et[kr]||[]))});var yt;Xt!=null?yt=w(Xt):(yt=Ne?Ne.errors:[],yt=[].concat(K()(yt),K()(qe)));var ht="";Ur!==void 0?ht=Ur:(Ne==null?void 0:Ne.validating)?ht="validating":((Xe=Ne==null?void 0:Ne.errors)===null||Xe===void 0?void 0:Xe.length)||qe.length?ht="error":(Ne==null?void 0:Ne.touched)&&(ht="success"),_t&&Xt&&(bt.current=ht);var Jt=(Qe={},m()(Qe,"".concat(ln,"-item"),!0),m()(Qe,"".concat(ln,"-item-with-help"),_t||Xt),m()(Qe,"".concat(mr),!!mr),m()(Qe,"".concat(ln,"-item-has-feedback"),ht&&$t),m()(Qe,"".concat(ln,"-item-has-success"),ht==="success"),m()(Qe,"".concat(ln,"-item-has-warning"),ht==="warning"),m()(Qe,"".concat(ln,"-item-has-error"),ht==="error"),m()(Qe,"".concat(ln,"-item-has-error-leave"),!Xt&&_t&&bt.current==="error"),m()(Qe,"".concat(ln,"-item-is-validating"),ht==="validating"),m()(Qe,"".concat(ln,"-item-hidden"),Vn),Qe);return f.createElement(ee.a,x()({className:o()(Jt),style:nn,key:"row"},Object(n.default)(Gt,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","preserve","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),f.createElement(ce,x()({htmlFor:be,required:Ue,requiredMark:$e},ae,{prefixCls:ln})),f.createElement(Oe,x()({},ae,Ne,{errors:yt,prefixCls:ln,onDomErrorVisibleChange:ur,validateStatus:ht}),f.createElement(s.Provider,{value:{updateItemErrors:_n}},Ze)))}var ai=typeof yn=="function",pi=f.useRef(0);if(pi.current+=1,!gr&&!ai&&!rr)return li(yn);var Oi={};return typeof Un=="string"&&(Oi.label=Un),f.createElement(r.Field,x()({},ae,{messageVariables:Oi,trigger:Rn,validateTrigger:xr,onReset:function(){ur(!1)}}),function(Ze,be,Ne){var Ue=be.errors,Qe=w(gt).length&&be?be.name:[],Xe=b(Qe,Ve);if(ut){if(Qr.current=K()(Qe),jt){var qe=Array.isArray(jt)?jt:[jt];Qr.current=[].concat(K()(Qe.slice(0,-1)),K()(qe))}qt(Qr.current.join("__SPLIT__"),Ue)}var yt=Dn!==void 0?Dn:!!(ft&&ft.some(function(Xr){if(Xr&&H()(Xr)==="object"&&Xr.required)return!0;if(typeof Xr=="function"){var Bt=Xr(Ne);return Bt&&Bt.required}return!1})),ht=x()({},Ze),Jt=null;if(Object(ie.a)(!(vr&&rr),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(yn)&&gr)Object(ie.a)(!1,"Form.Item","`children` is array of render props cannot have `name`."),Jt=yn;else if(ai&&(!(vr||rr)||gr))Object(ie.a)(!!(vr||rr),"Form.Item","`children` of render props only work with `shouldUpdate` or `dependencies`."),Object(ie.a)(!gr,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");else if(rr&&!ai&&!gr)Object(ie.a)(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");else if(Object(Ye.b)(yn)){Object(ie.a)(yn.props.defaultValue===void 0,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var kr=x()(x()({},yn.props),ht);kr.id||(kr.id=Xe),Object(Y.c)(yn)&&(kr.ref=Mn(Qe,yn));var _r=new Set([].concat(K()(w(Rn)),K()(w(xr))));_r.forEach(function(Xr){kr[Xr]=function(){for(var Bt,gn,hr,vn,en,Dt=arguments.length,jr=new Array(Dt),un=0;un<Dt;un++)jr[un]=arguments[un];(hr=ht[Xr])===null||hr===void 0||(Bt=hr).call.apply(Bt,[ht].concat(jr)),(en=(vn=yn.props)[Xr])===null||en===void 0||(gn=en).call.apply(gn,[vn].concat(jr))}}),Jt=f.createElement(Ot,{value:ht[ae.valuePropName||"value"],update:pi.current},Object(Ye.a)(yn,kr))}else ai&&(vr||rr)&&!gr?Jt=yn(Ne):(Object(ie.a)(!Qe.length,"Form.Item","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),Jt=yn);return li(Jt,Xe,be,yt)})}var Nt=Ct,Be=function(ae,gt){var jt={};for(var ut in ae)Object.prototype.hasOwnProperty.call(ae,ut)&>.indexOf(ut)<0&&(jt[ut]=ae[ut]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rr=0,ut=Object.getOwnPropertySymbols(ae);rr<ut.length;rr++)gt.indexOf(ut[rr])<0&&Object.prototype.propertyIsEnumerable.call(ae,ut[rr])&&(jt[ut[rr]]=ae[ut[rr]]);return jt},$=function(gt){var jt=gt.children,ut=Be(gt,["children"]);return Object(ie.a)(!!ut.name,"Form.List","Miss `name` prop."),f.createElement(r.List,ut,function(rr,pr){return jt(rr.map(function(nn){return x()(x()({},nn),{fieldKey:nn.key})}),pr)})},Z=$,Re=B;Re.Item=Nt,Re.List=Z,Re.useForm=_,Re.Provider=t,Re.create=function(){Object(ie.a)(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var De=P.a=Re},VpOo:function(U,P){function d(O,x){var T=x.x,v=x.y,S=x.width,m=x.height,f=x.r,c,o,r,a;S<0&&(T=T+S,S=-S),m<0&&(v=v+m,m=-m),typeof f=="number"?c=o=r=a=f:f instanceof Array?f.length===1?c=o=r=a=f[0]:f.length===2?(c=r=f[0],o=a=f[1]):f.length===3?(c=f[0],o=a=f[1],r=f[2]):(c=f[0],o=f[1],r=f[2],a=f[3]):c=o=r=a=0;var n;c+o>S&&(n=c+o,c*=S/n,o*=S/n),r+a>S&&(n=r+a,r*=S/n,a*=S/n),o+r>m&&(n=o+r,o*=m/n,r*=m/n),c+a>m&&(n=c+a,c*=m/n,a*=m/n),O.moveTo(T+c,v),O.lineTo(T+S-o,v),o!==0&&O.arc(T+S-o,v+o,o,-Math.PI/2,0),O.lineTo(T+S,v+m-r),r!==0&&O.arc(T+S-r,v+m-r,r,0,Math.PI/2),O.lineTo(T+a,v+m),a!==0&&O.arc(T+a,v+m-a,a,Math.PI/2,Math.PI),O.lineTo(T,v+c),c!==0&&O.arc(T+c,v+c,c,Math.PI,Math.PI*1.5)}P.buildPath=d},"VrN/":function(U,P,d){(function(O,x){U.exports=x()})(this,function(){"use strict";var O=navigator.userAgent,x=navigator.platform,T=/gecko\/\d/i.test(O),v=/MSIE \d/.test(O),S=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(O),m=/Edge\/(\d+)/.exec(O),f=v||S||m,c=f&&(v?document.documentMode||6:+(m||S)[1]),o=!m&&/WebKit\//.test(O),r=o&&/Qt\/\d+\.\d+/.test(O),a=!m&&/Chrome\//.test(O),n=/Opera\//.test(O),e=/Apple Computer/.test(navigator.vendor),s=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(O),t=/PhantomJS/.test(O),i=!m&&/AppleWebKit/.test(O)&&/Mobile\/\w+/.test(O),l=/Android/.test(O),u=i||l||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(O),h=i||/Mac/.test(x),p=/\bCrOS\b/.test(O),g=/win/i.test(x),A=n&&O.match(/Version\/(\d*\.\d*)/);A&&(A=Number(A[1])),A&&A>=15&&(n=!1,o=!0);var y=h&&(r||n&&(A==null||A<12.11)),E=T||f&&c>=9;function C(k){return new RegExp("(^|\\s)"+k+"(?:$|\\s)\\s*")}var w=function(W,q){var ne=W.className,le=C(q).exec(ne);if(le){var Fe=ne.slice(le.index+le[0].length);W.className=ne.slice(0,le.index)+(Fe?le[1]+Fe:"")}};function b(k){for(var W=k.childNodes.length;W>0;--W)k.removeChild(k.firstChild);return k}function I(k,W){return b(k).appendChild(W)}function _(k,W,q,ne){var le=document.createElement(k);if(q&&(le.className=q),ne&&(le.style.cssText=ne),typeof W=="string")le.appendChild(document.createTextNode(W));else if(W)for(var Fe=0;Fe<W.length;++Fe)le.appendChild(W[Fe]);return le}function L(k,W,q,ne){var le=_(k,W,q,ne);return le.setAttribute("role","presentation"),le}var D;document.createRange?D=function(W,q,ne,le){var Fe=document.createRange();return Fe.setEnd(le||W,ne),Fe.setStart(W,q),Fe}:D=function(W,q,ne){var le=document.body.createTextRange();try{le.moveToElementText(W.parentNode)}catch(Fe){return le}return le.collapse(!0),le.moveEnd("character",ne),le.moveStart("character",q),le};function N(k,W){if(W.nodeType==3&&(W=W.parentNode),k.contains)return k.contains(W);do if(W.nodeType==11&&(W=W.host),W==k)return!0;while(W=W.parentNode)}function R(){var k;try{k=document.activeElement}catch(W){k=document.body||null}for(;k&&k.shadowRoot&&k.shadowRoot.activeElement;)k=k.shadowRoot.activeElement;return k}function B(k,W){var q=k.className;C(W).test(q)||(k.className+=(q?" ":"")+W)}function M(k,W){for(var q=k.split(" "),ne=0;ne<q.length;ne++)q[ne]&&!C(q[ne]).test(W)&&(W+=" "+q[ne]);return W}var H=function(W){W.select()};i?H=function(W){W.selectionStart=0,W.selectionEnd=W.value.length}:f&&(H=function(W){try{W.select()}catch(q){}});function F(k){var W=Array.prototype.slice.call(arguments,1);return function(){return k.apply(null,W)}}function K(k,W,q){W||(W={});for(var ne in k)k.hasOwnProperty(ne)&&(q!==!1||!W.hasOwnProperty(ne))&&(W[ne]=k[ne]);return W}function j(k,W,q,ne,le){W==null&&(W=k.search(/[^\s\u00a0]/),W==-1&&(W=k.length));for(var Fe=ne||0,mt=le||0;;){var Ut=k.indexOf(" ",Fe);if(Ut<0||Ut>=W)return mt+(W-Fe);mt+=Ut-Fe,mt+=q-mt%q,Fe=Ut+1}}var V=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};V.prototype.onTimeout=function(k){k.id=0,k.time<=+new Date?k.f():setTimeout(k.handler,k.time-+new Date)},V.prototype.set=function(k,W){this.f=W;var q=+new Date+k;(!this.id||q<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,k),this.time=q)};function z(k,W){for(var q=0;q<k.length;++q)if(k[q]==W)return q;return-1}var Y=50,ee={toString:function(){return"CodeMirror.Pass"}},fe={scroll:!1},ie={origin:"*mouse"},we={origin:"+move"};function Ce(k,W,q){for(var ne=0,le=0;;){var Fe=k.indexOf(" ",ne);Fe==-1&&(Fe=k.length);var mt=Fe-ne;if(Fe==k.length||le+mt>=W)return ne+Math.min(mt,W-le);if(le+=Fe-ne,le+=q-le%q,ne=Fe+1,le>=W)return ne}}var Le=[""];function He(k){for(;Le.length<=k;)Le.push(ce(Le)+" ");return Le[k]}function ce(k){return k[k.length-1]}function Pe(k,W){for(var q=[],ne=0;ne<k.length;ne++)q[ne]=W(k[ne],ne);return q}function Q(k,W,q){for(var ne=0,le=q(W);ne<k.length&&q(k[ne])<=le;)ne++;k.splice(ne,0,W)}function me(){}function Je(k,W){var q;return Object.create?q=Object.create(k):(me.prototype=k,q=new me),W&&K(W,q),q}var re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function G(k){return/\w/.test(k)||k>"\x80"&&(k.toUpperCase()!=k.toLowerCase()||re.test(k))}function X(k,W){return W?W.source.indexOf("\\w")>-1&&G(k)?!0:W.test(k):G(k)}function J(k){for(var W in k)if(k.hasOwnProperty(W)&&k[W])return!1;return!0}var Ae=/[\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 he(k){return k.charCodeAt(0)>=768&&Ae.test(k)}function Me(k,W,q){for(;(q<0?W>0:W<k.length)&&he(k.charAt(W));)W+=q;return W}function Ie(k,W,q){for(var ne=W>q?-1:1;;){if(W==q)return W;var le=(W+q)/2,Fe=ne<0?Math.ceil(le):Math.floor(le);if(Fe==W)return k(Fe)?W:q;k(Fe)?q=Fe:W=Fe+ne}}function oe(k,W,q,ne){if(!k)return ne(W,q,"ltr",0);for(var le=!1,Fe=0;Fe<k.length;++Fe){var mt=k[Fe];(mt.from<q&&mt.to>W||W==q&&mt.to==W)&&(ne(Math.max(mt.from,W),Math.min(mt.to,q),mt.level==1?"rtl":"ltr",Fe),le=!0)}le||ne(W,q,"ltr")}var pe=null;function Oe(k,W,q){var ne;pe=null;for(var le=0;le<k.length;++le){var Fe=k[le];if(Fe.from<W&&Fe.to>W)return le;Fe.to==W&&(Fe.from!=Fe.to&&q=="before"?ne=le:pe=le),Fe.from==W&&(Fe.from!=Fe.to&&q!="before"?ne=le:pe=le)}return ne!=null?ne:pe}var Ye=function(){var k="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",W="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function q(lr){return lr<=247?k.charAt(lr):1424<=lr&&lr<=1524?"R":1536<=lr&&lr<=1785?W.charAt(lr-1536):1774<=lr&&lr<=2220?"r":8192<=lr&&lr<=8203?"w":lr==8204?"b":"L"}var ne=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,le=/[stwN]/,Fe=/[LRr]/,mt=/[Lb1n]/,Ut=/[1n]/;function nr(lr,Sn,Bn){this.level=lr,this.from=Sn,this.to=Bn}return function(lr,Sn){var Bn=Sn=="ltr"?"L":"R";if(lr.length==0||Sn=="ltr"&&!ne.test(lr))return!1;for(var Zn=lr.length,ni=[],Pi=0;Pi<Zn;++Pi)ni.push(q(lr.charCodeAt(Pi)));for(var Ji=0,ua=Bn;Ji<Zn;++Ji){var la=ni[Ji];la=="m"?ni[Ji]=ua:ua=la}for(var oa=0,xa=Bn;oa<Zn;++oa){var Ma=ni[oa];Ma=="1"&&xa=="r"?ni[oa]="n":Fe.test(Ma)&&(xa=Ma,Ma=="r"&&(ni[oa]="R"))}for(var To=1,so=ni[0];To<Zn-1;++To){var Yo=ni[To];Yo=="+"&&so=="1"&&ni[To+1]=="1"?ni[To]="1":Yo==","&&so==ni[To+1]&&(so=="1"||so=="n")&&(ni[To]=so),so=Yo}for(var os=0;os<Zn;++os){var Ls=ni[os];if(Ls==",")ni[os]="N";else if(Ls=="%"){var bs=void 0;for(bs=os+1;bs<Zn&&ni[bs]=="%";++bs);for(var nl=os&&ni[os-1]=="!"||bs<Zn&&ni[bs]=="1"?"1":"N",bl=os;bl<bs;++bl)ni[bl]=nl;os=bs-1}}for(var Gs=0,wl=Bn;Gs<Zn;++Gs){var il=ni[Gs];wl=="L"&&il=="1"?ni[Gs]="L":Fe.test(il)&&(wl=il)}for(var $s=0;$s<Zn;++$s)if(le.test(ni[$s])){var Xs=void 0;for(Xs=$s+1;Xs<Zn&&le.test(ni[Xs]);++Xs);for(var Fs=($s?ni[$s-1]:Bn)=="L",vl=(Xs<Zn?ni[Xs]:Bn)=="L",Du=Fs==vl?Fs?"L":"R":Bn,Wl=$s;Wl<Xs;++Wl)ni[Wl]=Du;$s=Xs-1}for(var Ys=[],Dl,ol=0;ol<Zn;)if(mt.test(ni[ol])){var tc=ol;for(++ol;ol<Zn&&mt.test(ni[ol]);++ol);Ys.push(new nr(0,tc,ol))}else{var Da=ol,El=Ys.length,Xl=Sn=="rtl"?1:0;for(++ol;ol<Zn&&ni[ol]!="L";++ol);for(var Ms=Da;Ms<ol;)if(Ut.test(ni[Ms])){Da<Ms&&(Ys.splice(El,0,new nr(1,Da,Ms)),El+=Xl);var lu=Ms;for(++Ms;Ms<ol&&Ut.test(ni[Ms]);++Ms);Ys.splice(El,0,new nr(2,lu,Ms)),El+=Xl,Da=Ms}else++Ms;Da<ol&&Ys.splice(El,0,new nr(1,Da,ol))}return Sn=="ltr"&&(Ys[0].level==1&&(Dl=lr.match(/^\s+/))&&(Ys[0].from=Dl[0].length,Ys.unshift(new nr(0,0,Dl[0].length))),ce(Ys).level==1&&(Dl=lr.match(/\s+$/))&&(ce(Ys).to-=Dl[0].length,Ys.push(new nr(0,Zn-Dl[0].length,Zn)))),Sn=="rtl"?Ys.reverse():Ys}}();function it(k,W){var q=k.order;return q==null&&(q=k.order=Ye(k.text,W)),q}var et=[],Te=function(W,q,ne){if(W.addEventListener)W.addEventListener(q,ne,!1);else if(W.attachEvent)W.attachEvent("on"+q,ne);else{var le=W._handlers||(W._handlers={});le[q]=(le[q]||et).concat(ne)}};function tt(k,W){return k._handlers&&k._handlers[W]||et}function ze(k,W,q){if(k.removeEventListener)k.removeEventListener(W,q,!1);else if(k.detachEvent)k.detachEvent("on"+W,q);else{var ne=k._handlers,le=ne&&ne[W];if(le){var Fe=z(le,q);Fe>-1&&(ne[W]=le.slice(0,Fe).concat(le.slice(Fe+1)))}}}function dt(k,W){var q=tt(k,W);if(!q.length)return;for(var ne=Array.prototype.slice.call(arguments,2),le=0;le<q.length;++le)q[le].apply(null,ne)}function Ot(k,W,q){return typeof W=="string"&&(W={type:W,preventDefault:function(){this.defaultPrevented=!0}}),dt(k,q||W.type,k,W),Z(W)||W.codemirrorIgnore}function Tt(k){var W=k._handlers&&k._handlers.cursorActivity;if(!W)return;for(var q=k.curOp.cursorActivityHandlers||(k.curOp.cursorActivityHandlers=[]),ne=0;ne<W.length;++ne)z(q,W[ne])==-1&&q.push(W[ne])}function Ct(k,W){return tt(k,W).length>0}function Nt(k){k.prototype.on=function(W,q){Te(this,W,q)},k.prototype.off=function(W,q){ze(this,W,q)}}function Be(k){k.preventDefault?k.preventDefault():k.returnValue=!1}function $(k){k.stopPropagation?k.stopPropagation():k.cancelBubble=!0}function Z(k){return k.defaultPrevented!=null?k.defaultPrevented:k.returnValue==!1}function Re(k){Be(k),$(k)}function De(k){return k.target||k.srcElement}function ae(k){var W=k.which;return W==null&&(k.button&1?W=1:k.button&2?W=3:k.button&4&&(W=2)),h&&k.ctrlKey&&W==1&&(W=3),W}var gt=function(){if(f&&c<9)return!1;var k=_("div");return"draggable"in k||"dragDrop"in k}(),jt;function ut(k){if(jt==null){var W=_("span","\u200B");I(k,_("span",[W,document.createTextNode("x")])),k.firstChild.offsetHeight!=0&&(jt=W.offsetWidth<=1&&W.offsetHeight>2&&!(f&&c<8))}var q=jt?_("span","\u200B"):_("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return q.setAttribute("cm-text",""),q}var rr;function pr(k){if(rr!=null)return rr;var W=I(k,document.createTextNode("A\u062EA")),q=D(W,0,1).getBoundingClientRect(),ne=D(W,1,2).getBoundingClientRect();return b(k),!q||q.left==q.right?!1:rr=ne.right-q.right<3}var nn=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(k){for(var W=0,q=[],ne=k.length;W<=ne;){var le=k.indexOf(`
|
|
|
`,W);le==-1&&(le=k.length);var Fe=k.slice(W,k.charAt(le-1)=="\r"?le-1:le),mt=Fe.indexOf("\r");mt!=-1?(q.push(Fe.slice(0,mt)),W+=mt+1):(q.push(Fe),W=le+1)}return q}:function(k){return k.split(/\r\n?|\n/)},mr=window.getSelection?function(k){try{return k.selectionStart!=k.selectionEnd}catch(W){return!1}}:function(k){var W;try{W=k.ownerDocument.selection.createRange()}catch(q){}return!W||W.parentElement()!=k?!1:W.compareEndPoints("StartToEnd",W)!=0},vr=function(){var k=_("div");return"oncopy"in k?!0:(k.setAttribute("oncopy","return;"),typeof k.oncopy=="function")}(),$t=null;function Xt(k){if($t!=null)return $t;var W=I(k,_("span","x")),q=W.getBoundingClientRect(),ne=D(W,0,1).getBoundingClientRect();return $t=Math.abs(q.left-ne.left)>1}var ft={},Ur={};function yn(k,W){arguments.length>2&&(W.dependencies=Array.prototype.slice.call(arguments,2)),ft[k]=W}function Dn(k,W){Ur[k]=W}function Un(k){if(typeof k=="string"&&Ur.hasOwnProperty(k))k=Ur[k];else if(k&&typeof k.name=="string"&&Ur.hasOwnProperty(k.name)){var W=Ur[k.name];typeof W=="string"&&(W={name:W}),k=Je(W,k),k.name=W.name}else{if(typeof k=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(k))return Un("application/xml");if(typeof k=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(k))return Un("application/json")}return typeof k=="string"?{name:k}:k||{name:"null"}}function wi(k,W){W=Un(W);var q=ft[W.name];if(!q)return wi(k,"text/plain");var ne=q(k,W);if(Rn.hasOwnProperty(W.name)){var le=Rn[W.name];for(var Fe in le){if(!le.hasOwnProperty(Fe))continue;ne.hasOwnProperty(Fe)&&(ne["_"+Fe]=ne[Fe]),ne[Fe]=le[Fe]}}if(ne.name=W.name,W.helperType&&(ne.helperType=W.helperType),W.modeProps)for(var mt in W.modeProps)ne[mt]=W.modeProps[mt];return ne}var Rn={};function kn(k,W){var q=Rn.hasOwnProperty(k)?Rn[k]:Rn[k]={};K(W,q)}function Vn(k,W){if(W===!0)return W;if(k.copyState)return k.copyState(W);var q={};for(var ne in W){var le=W[ne];le instanceof Array&&(le=le.concat([])),q[ne]=le}return q}function Gt(k,W){for(var q;k.innerMode&&!(q=k.innerMode(W),!q||q.mode==k);)W=q.state,k=q.mode;return q||{mode:k,state:W}}function st(k,W,q){return k.startState?k.startState(W,q):!0}var ue=function(W,q,ne){this.pos=this.start=0,this.string=W,this.tabSize=q||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ne};ue.prototype.eol=function(){return this.pos>=this.string.length},ue.prototype.sol=function(){return this.pos==this.lineStart},ue.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ue.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ue.prototype.eat=function(k){var W=this.string.charAt(this.pos),q;if(typeof k=="string"?q=W==k:q=W&&(k.test?k.test(W):k(W)),q)return++this.pos,W},ue.prototype.eatWhile=function(k){for(var W=this.pos;this.eat(k););return this.pos>W},ue.prototype.eatSpace=function(){for(var k=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>k},ue.prototype.skipToEnd=function(){this.pos=this.string.length},ue.prototype.skipTo=function(k){var W=this.string.indexOf(k,this.pos);if(W>-1)return this.pos=W,!0},ue.prototype.backUp=function(k){this.pos-=k},ue.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=j(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?j(this.string,this.lineStart,this.tabSize):0)},ue.prototype.indentation=function(){return j(this.string,null,this.tabSize)-(this.lineStart?j(this.string,this.lineStart,this.tabSize):0)},ue.prototype.match=function(k,W,q){if(typeof k=="string"){var ne=function(Ut){return q?Ut.toLowerCase():Ut},le=this.string.substr(this.pos,k.length);if(ne(le)==ne(k))return W!==!1&&(this.pos+=k.length),!0}else{var Fe=this.string.slice(this.pos).match(k);return Fe&&Fe.index>0?null:(Fe&&W!==!1&&(this.pos+=Fe[0].length),Fe)}},ue.prototype.current=function(){return this.string.slice(this.start,this.pos)},ue.prototype.hideFirstChars=function(k,W){this.lineStart+=k;try{return W()}finally{this.lineStart-=k}},ue.prototype.lookAhead=function(k){var W=this.lineOracle;return W&&W.lookAhead(k)},ue.prototype.baseToken=function(){var k=this.lineOracle;return k&&k.baseToken(this.pos)};function Ee(k,W){if(W-=k.first,W<0||W>=k.size)throw new Error("There is no line "+(W+k.first)+" in the document.");for(var q=k;!q.lines;)for(var ne=0;;++ne){var le=q.children[ne],Fe=le.chunkSize();if(W<Fe){q=le;break}W-=Fe}return q.lines[W]}function je(k,W,q){var ne=[],le=W.line;return k.iter(W.line,q.line+1,function(Fe){var mt=Fe.text;le==q.line&&(mt=mt.slice(0,q.ch)),le==W.line&&(mt=mt.slice(W.ch)),ne.push(mt),++le}),ne}function Ve(k,W,q){var ne=[];return k.iter(W,q,function(le){ne.push(le.text)}),ne}function $e(k,W){var q=W-k.height;if(q)for(var ne=k;ne;ne=ne.parent)ne.height+=q}function wt(k){if(k.parent==null)return null;for(var W=k.parent,q=z(W.lines,k),ne=W.parent;ne;W=ne,ne=ne.parent)for(var le=0;!(ne.children[le]==W);++le)q+=ne.children[le].chunkSize();return q+W.first}function qt(k,W){var q=k.first;e:do{for(var ne=0;ne<k.children.length;++ne){var le=k.children[ne],Fe=le.height;if(W<Fe){k=le;continue e}W-=Fe,q+=le.chunkSize()}return q}while(!k.lines);for(var mt=0;mt<k.lines.length;++mt){var Ut=k.lines[mt],nr=Ut.height;if(W<nr)break;W-=nr}return q+mt}function Mr(k,W){return W>=k.first&&W<k.first+k.size}function an(k,W){return String(k.lineNumberFormatter(W+k.firstLineNumber))}function _t(k,W,q){if(q===void 0&&(q=null),!(this instanceof _t))return new _t(k,W,q);this.line=k,this.ch=W,this.sticky=q}function at(k,W){return k.line-W.line||k.ch-W.ch}function bt(k,W){return k.sticky==W.sticky&&at(k,W)==0}function kt(k){return _t(k.line,k.ch)}function Pt(k,W){return at(k,W)<0?W:k}function Et(k,W){return at(k,W)<0?k:W}function Ht(k,W){return Math.max(k.first,Math.min(W,k.first+k.size-1))}function ot(k,W){if(W.line<k.first)return _t(k.first,0);var q=k.first+k.size-1;return W.line>q?_t(q,Ee(k,q).text.length):Mt(W,Ee(k,W.line).text.length)}function Mt(k,W){var q=k.ch;return q==null||q>W?_t(k.line,W):q<0?_t(k.line,0):k}function xr(k,W){for(var q=[],ne=0;ne<W.length;ne++)q[ne]=ot(k,W[ne]);return q}var ur=function(W,q){this.state=W,this.lookAhead=q},gr=function(W,q,ne,le){this.state=q,this.doc=W,this.line=ne,this.maxLookAhead=le||0,this.baseTokens=null,this.baseTokenPos=1};gr.prototype.lookAhead=function(k){var W=this.doc.getLine(this.line+k);return W!=null&&k>this.maxLookAhead&&(this.maxLookAhead=k),W},gr.prototype.baseToken=function(k){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=k;)this.baseTokenPos+=2;var W=this.baseTokens[this.baseTokenPos+1];return{type:W&&W.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-k}},gr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},gr.fromSaved=function(k,W,q){return W instanceof ur?new gr(k,Vn(k.mode,W.state),q,W.lookAhead):new gr(k,Vn(k.mode,W),q)},gr.prototype.save=function(k){var W=k!==!1?Vn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ur(W,this.maxLookAhead):W};function Qr(k,W,q,ne){var le=[k.state.modeGen],Fe={};be(k,W.text,k.doc.mode,q,function(lr,Sn){return le.push(lr,Sn)},Fe,ne);for(var mt=q.state,Ut=function(Sn){q.baseTokens=le;var Bn=k.state.overlays[Sn],Zn=1,ni=0;q.state=!0,be(k,W.text,Bn.mode,q,function(Pi,Ji){for(var ua=Zn;ni<Pi;){var la=le[Zn];la>Pi&&le.splice(Zn,1,Pi,le[Zn+1],la),Zn+=2,ni=Math.min(Pi,la)}if(!Ji)return;if(Bn.opaque)le.splice(ua,Zn-ua,Pi,"overlay "+Ji),Zn=ua+2;else for(;ua<Zn;ua+=2){var oa=le[ua+1];le[ua+1]=(oa?oa+" ":"")+"overlay "+Ji}},Fe),q.state=mt,q.baseTokens=null,q.baseTokenPos=1},nr=0;nr<k.state.overlays.length;++nr)Ut(nr);return{styles:le,classes:Fe.bgClass||Fe.textClass?Fe:null}}function ln(k,W,q){if(!W.styles||W.styles[0]!=k.state.modeGen){var ne=_n(k,wt(W)),le=W.text.length>k.options.maxHighlightLength&&Vn(k.doc.mode,ne.state),Fe=Qr(k,W,ne);le&&(ne.state=le),W.stateAfter=ne.save(!le),W.styles=Fe.styles,Fe.classes?W.styleClasses=Fe.classes:W.styleClasses&&(W.styleClasses=null),q===k.doc.highlightFrontier&&(k.doc.modeFrontier=Math.max(k.doc.modeFrontier,++k.doc.highlightFrontier))}return W.styles}function _n(k,W,q){var ne=k.doc,le=k.display;if(!ne.mode.startState)return new gr(ne,!0,W);var Fe=Ne(k,W,q),mt=Fe>ne.first&&Ee(ne,Fe-1).stateAfter,Ut=mt?gr.fromSaved(ne,mt,Fe):new gr(ne,st(ne.mode),Fe);return ne.iter(Fe,W,function(nr){Mn(k,nr.text,Ut);var lr=Ut.line;nr.stateAfter=lr==W-1||lr%5==0||lr>=le.viewFrom&&lr<le.viewTo?Ut.save():null,Ut.nextLine()}),q&&(ne.modeFrontier=Ut.line),Ut}function Mn(k,W,q,ne){var le=k.doc.mode,Fe=new ue(W,k.options.tabSize,q);for(Fe.start=Fe.pos=ne||0,W==""&&li(le,q.state);!Fe.eol();)ai(le,Fe,q.state),Fe.start=Fe.pos}function li(k,W){if(k.blankLine)return k.blankLine(W);if(!k.innerMode)return;var q=Gt(k,W);if(q.mode.blankLine)return q.mode.blankLine(q.state)}function ai(k,W,q,ne){for(var le=0;le<10;le++){ne&&(ne[0]=Gt(k,q).mode);var Fe=k.token(W,q);if(W.pos>W.start)return Fe}throw new Error("Mode "+k.name+" failed to advance stream.")}var pi=function(W,q,ne){this.start=W.start,this.end=W.pos,this.string=W.current(),this.type=q||null,this.state=ne};function Oi(k,W,q,ne){var le=k.doc,Fe=le.mode,mt;W=ot(le,W);var Ut=Ee(le,W.line),nr=_n(k,W.line,q),lr=new ue(Ut.text,k.options.tabSize,nr),Sn;for(ne&&(Sn=[]);(ne||lr.pos<W.ch)&&!lr.eol();)lr.start=lr.pos,mt=ai(Fe,lr,nr.state),ne&&Sn.push(new pi(lr,mt,Vn(le.mode,nr.state)));return ne?Sn:new pi(lr,mt,nr.state)}function Ze(k,W){if(k)for(;;){var q=k.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!q)break;k=k.slice(0,q.index)+k.slice(q.index+q[0].length);var ne=q[1]?"bgClass":"textClass";W[ne]==null?W[ne]=q[2]:new RegExp("(?:^|\\s)"+q[2]+"(?:$|\\s)").test(W[ne])||(W[ne]+=" "+q[2])}return k}function be(k,W,q,ne,le,Fe,mt){var Ut=q.flattenSpans;Ut==null&&(Ut=k.options.flattenSpans);var nr=0,lr=null,Sn=new ue(W,k.options.tabSize,ne),Bn,Zn=k.options.addModeClass&&[null];for(W==""&&Ze(li(q,ne.state),Fe);!Sn.eol();){if(Sn.pos>k.options.maxHighlightLength?(Ut=!1,mt&&Mn(k,W,ne,Sn.pos),Sn.pos=W.length,Bn=null):Bn=Ze(ai(q,Sn,ne.state,Zn),Fe),Zn){var ni=Zn[0].name;ni&&(Bn="m-"+(Bn?ni+" "+Bn:ni))}if(!Ut||lr!=Bn){for(;nr<Sn.start;)nr=Math.min(Sn.start,nr+5e3),le(nr,lr);lr=Bn}Sn.start=Sn.pos}for(;nr<Sn.pos;){var Pi=Math.min(Sn.pos,nr+5e3);le(Pi,lr),nr=Pi}}function Ne(k,W,q){for(var ne,le,Fe=k.doc,mt=q?-1:W-(k.doc.mode.innerMode?1e3:100),Ut=W;Ut>mt;--Ut){if(Ut<=Fe.first)return Fe.first;var nr=Ee(Fe,Ut-1),lr=nr.stateAfter;if(lr&&(!q||Ut+(lr instanceof ur?lr.lookAhead:0)<=Fe.modeFrontier))return Ut;var Sn=j(nr.text,null,k.options.tabSize);(le==null||ne>Sn)&&(le=Ut-1,ne=Sn)}return le}function Ue(k,W){if(k.modeFrontier=Math.min(k.modeFrontier,W),k.highlightFrontier<W-10)return;for(var q=k.first,ne=W-1;ne>q;ne--){var le=Ee(k,ne).stateAfter;if(le&&(!(le instanceof ur)||ne+le.lookAhead<W)){q=ne+1;break}}k.highlightFrontier=Math.min(k.highlightFrontier,q)}var Qe=!1,Xe=!1;function qe(){Qe=!0}function yt(){Xe=!0}function ht(k,W,q){this.marker=k,this.from=W,this.to=q}function Jt(k,W){if(k)for(var q=0;q<k.length;++q){var ne=k[q];if(ne.marker==W)return ne}}function kr(k,W){for(var q,ne=0;ne<k.length;++ne)k[ne]!=W&&(q||(q=[])).push(k[ne]);return q}function _r(k,W){k.markedSpans=k.markedSpans?k.markedSpans.concat([W]):[W],W.marker.attachLine(k)}function Xr(k,W,q){var ne;if(k)for(var le=0;le<k.length;++le){var Fe=k[le],mt=Fe.marker,Ut=Fe.from==null||(mt.inclusiveLeft?Fe.from<=W:Fe.from<W);if(Ut||Fe.from==W&&mt.type=="bookmark"&&(!q||!Fe.marker.insertLeft)){var nr=Fe.to==null||(mt.inclusiveRight?Fe.to>=W:Fe.to>W);(ne||(ne=[])).push(new ht(mt,Fe.from,nr?null:Fe.to))}}return ne}function Bt(k,W,q){var ne;if(k)for(var le=0;le<k.length;++le){var Fe=k[le],mt=Fe.marker,Ut=Fe.to==null||(mt.inclusiveRight?Fe.to>=W:Fe.to>W);if(Ut||Fe.from==W&&mt.type=="bookmark"&&(!q||Fe.marker.insertLeft)){var nr=Fe.from==null||(mt.inclusiveLeft?Fe.from<=W:Fe.from<W);(ne||(ne=[])).push(new ht(mt,nr?null:Fe.from-W,Fe.to==null?null:Fe.to-W))}}return ne}function gn(k,W){if(W.full)return null;var q=Mr(k,W.from.line)&&Ee(k,W.from.line).markedSpans,ne=Mr(k,W.to.line)&&Ee(k,W.to.line).markedSpans;if(!q&&!ne)return null;var le=W.from.ch,Fe=W.to.ch,mt=at(W.from,W.to)==0,Ut=Xr(q,le,mt),nr=Bt(ne,Fe,mt),lr=W.text.length==1,Sn=ce(W.text).length+(lr?le:0);if(Ut)for(var Bn=0;Bn<Ut.length;++Bn){var Zn=Ut[Bn];if(Zn.to==null){var ni=Jt(nr,Zn.marker);ni?lr&&(Zn.to=ni.to==null?null:ni.to+Sn):Zn.to=le}}if(nr)for(var Pi=0;Pi<nr.length;++Pi){var Ji=nr[Pi];if(Ji.to!=null&&(Ji.to+=Sn),Ji.from==null){var ua=Jt(Ut,Ji.marker);ua||(Ji.from=Sn,lr&&(Ut||(Ut=[])).push(Ji))}else Ji.from+=Sn,lr&&(Ut||(Ut=[])).push(Ji)}Ut&&(Ut=hr(Ut)),nr&&nr!=Ut&&(nr=hr(nr));var la=[Ut];if(!lr){var oa=W.text.length-2,xa;if(oa>0&&Ut)for(var Ma=0;Ma<Ut.length;++Ma)Ut[Ma].to==null&&(xa||(xa=[])).push(new ht(Ut[Ma].marker,null,null));for(var To=0;To<oa;++To)la.push(xa);la.push(nr)}return la}function hr(k){for(var W=0;W<k.length;++W){var q=k[W];q.from!=null&&q.from==q.to&&q.marker.clearWhenEmpty!==!1&&k.splice(W--,1)}return k.length?k:null}function vn(k,W,q){var ne=null;if(k.iter(W.line,q.line+1,function(ni){if(ni.markedSpans)for(var Pi=0;Pi<ni.markedSpans.length;++Pi){var Ji=ni.markedSpans[Pi].marker;Ji.readOnly&&(!ne||z(ne,Ji)==-1)&&(ne||(ne=[])).push(Ji)}}),!ne)return null;for(var le=[{from:W,to:q}],Fe=0;Fe<ne.length;++Fe)for(var mt=ne[Fe],Ut=mt.find(0),nr=0;nr<le.length;++nr){var lr=le[nr];if(at(lr.to,Ut.from)<0||at(lr.from,Ut.to)>0)continue;var Sn=[nr,1],Bn=at(lr.from,Ut.from),Zn=at(lr.to,Ut.to);(Bn<0||!mt.inclusiveLeft&&!Bn)&&Sn.push({from:lr.from,to:Ut.from}),(Zn>0||!mt.inclusiveRight&&!Zn)&&Sn.push({from:Ut.to,to:lr.to}),le.splice.apply(le,Sn),nr+=Sn.length-3}return le}function en(k){var W=k.markedSpans;if(!W)return;for(var q=0;q<W.length;++q)W[q].marker.detachLine(k);k.markedSpans=null}function Dt(k,W){if(!W)return;for(var q=0;q<W.length;++q)W[q].marker.attachLine(k);k.markedSpans=W}function jr(k){return k.inclusiveLeft?-1:0}function un(k){return k.inclusiveRight?1:0}function Hr(k,W){var q=k.lines.length-W.lines.length;if(q!=0)return q;var ne=k.find(),le=W.find(),Fe=at(ne.from,le.from)||jr(k)-jr(W);if(Fe)return-Fe;var mt=at(ne.to,le.to)||un(k)-un(W);return mt||W.id-k.id}function Wt(k,W){var q=Xe&&k.markedSpans,ne;if(q)for(var le=void 0,Fe=0;Fe<q.length;++Fe)le=q[Fe],le.marker.collapsed&&(W?le.from:le.to)==null&&(!ne||Hr(ne,le.marker)<0)&&(ne=le.marker);return ne}function wr(k){return Wt(k,!0)}function fn(k){return Wt(k,!1)}function zt(k,W){var q=Xe&&k.markedSpans,ne;if(q)for(var le=0;le<q.length;++le){var Fe=q[le];Fe.marker.collapsed&&(Fe.from==null||Fe.from<W)&&(Fe.to==null||Fe.to>W)&&(!ne||Hr(ne,Fe.marker)<0)&&(ne=Fe.marker)}return ne}function Dr(k,W,q,ne,le){var Fe=Ee(k,W),mt=Xe&&Fe.markedSpans;if(mt)for(var Ut=0;Ut<mt.length;++Ut){var nr=mt[Ut];if(!nr.marker.collapsed)continue;var lr=nr.marker.find(0),Sn=at(lr.from,q)||jr(nr.marker)-jr(le),Bn=at(lr.to,ne)||un(nr.marker)-un(le);if(Sn>=0&&Bn<=0||Sn<=0&&Bn>=0)continue;if(Sn<=0&&(nr.marker.inclusiveRight&&le.inclusiveLeft?at(lr.to,q)>=0:at(lr.to,q)>0)||Sn>=0&&(nr.marker.inclusiveRight&&le.inclusiveLeft?at(lr.from,ne)<=0:at(lr.from,ne)<0))return!0}}function ir(k){for(var W;W=wr(k);)k=W.find(-1,!0).line;return k}function Lt(k){for(var W;W=fn(k);)k=W.find(1,!0).line;return k}function Qt(k){for(var W,q;W=fn(k);)k=W.find(1,!0).line,(q||(q=[])).push(k);return q}function It(k,W){var q=Ee(k,W),ne=ir(q);return q==ne?W:wt(ne)}function or(k,W){if(W>k.lastLine())return W;var q=Ee(k,W),ne;if(!Cr(k,q))return W;for(;ne=fn(q);)q=ne.find(1,!0).line;return wt(q)+1}function Cr(k,W){var q=Xe&&W.markedSpans;if(q)for(var ne=void 0,le=0;le<q.length;++le){if(ne=q[le],!ne.marker.collapsed)continue;if(ne.from==null)return!0;if(ne.marker.widgetNode)continue;if(ne.from==0&&ne.marker.inclusiveLeft&&Er(k,W,ne))return!0}}function Er(k,W,q){if(q.to==null){var ne=q.marker.find(1,!0);return Er(k,ne.line,Jt(ne.line.markedSpans,q.marker))}if(q.marker.inclusiveRight&&q.to==W.text.length)return!0;for(var le=void 0,Fe=0;Fe<W.markedSpans.length;++Fe)if(le=W.markedSpans[Fe],le.marker.collapsed&&!le.marker.widgetNode&&le.from==q.to&&(le.to==null||le.to!=q.from)&&(le.marker.inclusiveLeft||q.marker.inclusiveRight)&&Er(k,W,le))return!0}function Kr(k){k=ir(k);for(var W=0,q=k.parent,ne=0;ne<q.lines.length;++ne){var le=q.lines[ne];if(le==k)break;W+=le.height}for(var Fe=q.parent;Fe;q=Fe,Fe=q.parent)for(var mt=0;mt<Fe.children.length;++mt){var Ut=Fe.children[mt];if(Ut==q)break;W+=Ut.height}return W}function jn(k){if(k.height==0)return 0;for(var W=k.text.length,q,ne=k;q=wr(ne);){var le=q.find(0,!0);ne=le.from.line,W+=le.from.ch-le.to.ch}for(ne=k;q=fn(ne);){var Fe=q.find(0,!0);W-=ne.text.length-Fe.from.ch,ne=Fe.to.line,W+=ne.text.length-Fe.to.ch}return W}function Nn(k){var W=k.display,q=k.doc;W.maxLine=Ee(q,q.first),W.maxLineLength=jn(W.maxLine),W.maxLineChanged=!0,q.iter(function(ne){var le=jn(ne);le>W.maxLineLength&&(W.maxLineLength=le,W.maxLine=ne)})}var ei=function(W,q,ne){this.text=W,Dt(this,q),this.height=ne?ne(this):1};ei.prototype.lineNo=function(){return wt(this)},Nt(ei);function Zr(k,W,q,ne){k.text=W,k.stateAfter&&(k.stateAfter=null),k.styles&&(k.styles=null),k.order!=null&&(k.order=null),en(k),Dt(k,q);var le=ne?ne(k):1;le!=k.height&&$e(k,le)}function br(k){k.parent=null,en(k)}var dn={},Ln={};function Fn(k,W){if(!k||/^\s*$/.test(k))return null;var q=W.addModeClass?Ln:dn;return q[k]||(q[k]=k.replace(/\S+/g,"cm-$&"))}function zn(k,W){var q=L("span",null,null,o?"padding-right: .1px":null),ne={pre:L("pre",[q],"CodeMirror-line"),content:q,col:0,pos:0,cm:k,trailingSpace:!1,splitSpaces:k.getOption("lineWrapping")};W.measure={};for(var le=0;le<=(W.rest?W.rest.length:0);le++){var Fe=le?W.rest[le-1]:W.line,mt=void 0;ne.pos=0,ne.addToken=ii,pr(k.display.measure)&&(mt=it(Fe,k.doc.direction))&&(ne.addToken=Li(ne.addToken,mt)),ne.map=[];var Ut=W!=k.display.externalMeasured&&wt(Fe);Ri(Fe,ne,ln(k,Fe,Ut)),Fe.styleClasses&&(Fe.styleClasses.bgClass&&(ne.bgClass=M(Fe.styleClasses.bgClass,ne.bgClass||"")),Fe.styleClasses.textClass&&(ne.textClass=M(Fe.styleClasses.textClass,ne.textClass||""))),ne.map.length==0&&ne.map.push(0,0,ne.content.appendChild(ut(k.display.measure))),le==0?(W.measure.map=ne.map,W.measure.cache={}):((W.measure.maps||(W.measure.maps=[])).push(ne.map),(W.measure.caches||(W.measure.caches=[])).push({}))}if(o){var nr=ne.content.lastChild;(/\bcm-tab\b/.test(nr.className)||nr.querySelector&&nr.querySelector(".cm-tab"))&&(ne.content.className="cm-tab-wrap-hack")}return dt(k,"renderLine",k,W.line,ne.pre),ne.pre.className&&(ne.textClass=M(ne.pre.className,ne.textClass||"")),ne}function ui(k){var W=_("span","\u2022","cm-invalidchar");return W.title="\\u"+k.charCodeAt(0).toString(16),W.setAttribute("aria-label",W.title),W}function ii(k,W,q,ne,le,Fe,mt){if(!W)return;var Ut=k.splitSpaces?qn(W,k.trailingSpace):W,nr=k.cm.state.specialChars,lr=!1,Sn;if(!nr.test(W))k.col+=W.length,Sn=document.createTextNode(Ut),k.map.push(k.pos,k.pos+W.length,Sn),f&&c<9&&(lr=!0),k.pos+=W.length;else{Sn=document.createDocumentFragment();for(var Bn=0;;){nr.lastIndex=Bn;var Zn=nr.exec(W),ni=Zn?Zn.index-Bn:W.length-Bn;if(ni){var Pi=document.createTextNode(Ut.slice(Bn,Bn+ni));f&&c<9?Sn.appendChild(_("span",[Pi])):Sn.appendChild(Pi),k.map.push(k.pos,k.pos+ni,Pi),k.col+=ni,k.pos+=ni}if(!Zn)break;Bn+=ni+1;var Ji=void 0;if(Zn[0]==" "){var ua=k.cm.options.tabSize,la=ua-k.col%ua;Ji=Sn.appendChild(_("span",He(la),"cm-tab")),Ji.setAttribute("role","presentation"),Ji.setAttribute("cm-text"," "),k.col+=la}else Zn[0]=="\r"||Zn[0]==`
|
|
|
`?(Ji=Sn.appendChild(_("span",Zn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ji.setAttribute("cm-text",Zn[0]),k.col+=1):(Ji=k.cm.options.specialCharPlaceholder(Zn[0]),Ji.setAttribute("cm-text",Zn[0]),f&&c<9?Sn.appendChild(_("span",[Ji])):Sn.appendChild(Ji),k.col+=1);k.map.push(k.pos,k.pos+1,Ji),k.pos++}}if(k.trailingSpace=Ut.charCodeAt(W.length-1)==32,q||ne||le||lr||Fe||mt){var oa=q||"";ne&&(oa+=ne),le&&(oa+=le);var xa=_("span",[Sn],oa,Fe);if(mt)for(var Ma in mt)mt.hasOwnProperty(Ma)&&Ma!="style"&&Ma!="class"&&xa.setAttribute(Ma,mt[Ma]);return k.content.appendChild(xa)}k.content.appendChild(Sn)}function qn(k,W){if(k.length>1&&!/ /.test(k))return k;for(var q=W,ne="",le=0;le<k.length;le++){var Fe=k.charAt(le);Fe==" "&&q&&(le==k.length-1||k.charCodeAt(le+1)==32)&&(Fe="\xA0"),ne+=Fe,q=Fe==" "}return ne}function Li(k,W){return function(q,ne,le,Fe,mt,Ut,nr){le=le?le+" cm-force-border":"cm-force-border";for(var lr=q.pos,Sn=lr+ne.length;;){for(var Bn=void 0,Zn=0;Zn<W.length&&!(Bn=W[Zn],Bn.to>lr&&Bn.from<=lr);Zn++);if(Bn.to>=Sn)return k(q,ne,le,Fe,mt,Ut,nr);k(q,ne.slice(0,Bn.to-lr),le,Fe,null,Ut,nr),Fe=null,ne=ne.slice(Bn.to-lr),lr=Bn.to}}}function zi(k,W,q,ne){var le=!ne&&q.widgetNode;le&&k.map.push(k.pos,k.pos+W,le),!ne&&k.cm.display.input.needsContentAttribute&&(le||(le=k.content.appendChild(document.createElement("span"))),le.setAttribute("cm-marker",q.id)),le&&(k.cm.display.input.setUneditable(le),k.content.appendChild(le)),k.pos+=W,k.trailingSpace=!1}function Ri(k,W,q){var ne=k.markedSpans,le=k.text,Fe=0;if(!ne){for(var mt=1;mt<q.length;mt+=2)W.addToken(W,le.slice(Fe,Fe=q[mt]),Fn(q[mt+1],W.cm.options));return}for(var Ut=le.length,nr=0,lr=1,Sn="",Bn,Zn,ni=0,Pi,Ji,ua,la,oa;;){if(ni==nr){Pi=Ji=ua=Zn="",oa=null,la=null,ni=Infinity;for(var xa=[],Ma=void 0,To=0;To<ne.length;++To){var so=ne[To],Yo=so.marker;if(Yo.type=="bookmark"&&so.from==nr&&Yo.widgetNode)xa.push(Yo);else if(so.from<=nr&&(so.to==null||so.to>nr||Yo.collapsed&&so.to==nr&&so.from==nr)){if(so.to!=null&&so.to!=nr&&ni>so.to&&(ni=so.to,Ji=""),Yo.className&&(Pi+=" "+Yo.className),Yo.css&&(Zn=(Zn?Zn+";":"")+Yo.css),Yo.startStyle&&so.from==nr&&(ua+=" "+Yo.startStyle),Yo.endStyle&&so.to==ni&&(Ma||(Ma=[])).push(Yo.endStyle,so.to),Yo.title&&((oa||(oa={})).title=Yo.title),Yo.attributes)for(var os in Yo.attributes)(oa||(oa={}))[os]=Yo.attributes[os];Yo.collapsed&&(!la||Hr(la.marker,Yo)<0)&&(la=so)}else so.from>nr&&ni>so.from&&(ni=so.from)}if(Ma)for(var Ls=0;Ls<Ma.length;Ls+=2)Ma[Ls+1]==ni&&(Ji+=" "+Ma[Ls]);if(!la||la.from==nr)for(var bs=0;bs<xa.length;++bs)zi(W,0,xa[bs]);if(la&&(la.from||0)==nr){if(zi(W,(la.to==null?Ut+1:la.to)-nr,la.marker,la.from==null),la.to==null)return;la.to==nr&&(la=!1)}}if(nr>=Ut)break;for(var nl=Math.min(Ut,ni);;){if(Sn){var bl=nr+Sn.length;if(!la){var Gs=bl>nl?Sn.slice(0,nl-nr):Sn;W.addToken(W,Gs,Bn?Bn+Pi:Pi,ua,nr+Gs.length==ni?Ji:"",Zn,oa)}if(bl>=nl){Sn=Sn.slice(nl-nr),nr=nl;break}nr=bl,ua=""}Sn=le.slice(Fe,Fe=q[lr++]),Bn=Fn(q[lr++],W.cm.options)}}}function ga(k,W,q){this.line=W,this.rest=Qt(W),this.size=this.rest?wt(ce(this.rest))-q+1:1,this.node=this.text=null,this.hidden=Cr(k,W)}function oi(k,W,q){for(var ne=[],le,Fe=W;Fe<q;Fe=le){var mt=new ga(k.doc,Ee(k.doc,Fe),Fe);le=Fe+mt.size,ne.push(mt)}return ne}var hn=null;function Ei(k){hn?hn.ops.push(k):k.ownsGroup=hn={ops:[k],delayedCallbacks:[]}}function Hi(k){var W=k.delayedCallbacks,q=0;do{for(;q<W.length;q++)W[q].call(null);for(var ne=0;ne<k.ops.length;ne++){var le=k.ops[ne];if(le.cursorActivityHandlers)for(;le.cursorActivityCalled<le.cursorActivityHandlers.length;)le.cursorActivityHandlers[le.cursorActivityCalled++].call(null,le.cm)}}while(q<W.length)}function ki(k,W){var q=k.ownsGroup;if(!q)return;try{Hi(q)}finally{hn=null,W(q)}}var ji=null;function dr(k,W){var q=tt(k,W);if(!q.length)return;var ne=Array.prototype.slice.call(arguments,2),le;hn?le=hn.delayedCallbacks:ji?le=ji:(le=ji=[],setTimeout(sr,0));for(var Fe=function(nr){le.push(function(){return q[nr].apply(null,ne)})},mt=0;mt<q.length;++mt)Fe(mt)}function sr(){var k=ji;ji=null;for(var W=0;W<k.length;++W)k[W]()}function cn(k,W,q,ne){for(var le=0;le<W.changes.length;le++){var Fe=W.changes[le];Fe=="text"?tn(k,W):Fe=="gutter"?St(k,W,q,ne):Fe=="class"?pn(k,W):Fe=="widget"&&cr(k,W,ne)}W.changes=null}function Zt(k){return k.node==k.text&&(k.node=_("div",null,null,"position: relative"),k.text.parentNode&&k.text.parentNode.replaceChild(k.node,k.text),k.node.appendChild(k.text),f&&c<8&&(k.node.style.zIndex=2)),k.node}function Ar(k,W){var q=W.bgClass?W.bgClass+" "+(W.line.bgClass||""):W.line.bgClass;if(q&&(q+=" CodeMirror-linebackground"),W.background)q?W.background.className=q:(W.background.parentNode.removeChild(W.background),W.background=null);else if(q){var ne=Zt(W);W.background=ne.insertBefore(_("div",null,q),ne.firstChild),k.display.input.setUneditable(W.background)}}function Nr(k,W){var q=k.display.externalMeasured;return q&&q.line==W.line?(k.display.externalMeasured=null,W.measure=q.measure,q.built):zn(k,W)}function tn(k,W){var q=W.text.className,ne=Nr(k,W);W.text==W.node&&(W.node=ne.pre),W.text.parentNode.replaceChild(ne.pre,W.text),W.text=ne.pre,ne.bgClass!=W.bgClass||ne.textClass!=W.textClass?(W.bgClass=ne.bgClass,W.textClass=ne.textClass,pn(k,W)):q&&(W.text.className=q)}function pn(k,W){Ar(k,W),W.line.wrapClass?Zt(W).className=W.line.wrapClass:W.node!=W.text&&(W.node.className="");var q=W.textClass?W.textClass+" "+(W.line.textClass||""):W.line.textClass;W.text.className=q||""}function St(k,W,q,ne){if(W.gutter&&(W.node.removeChild(W.gutter),W.gutter=null),W.gutterBackground&&(W.node.removeChild(W.gutterBackground),W.gutterBackground=null),W.line.gutterClass){var le=Zt(W);W.gutterBackground=_("div",null,"CodeMirror-gutter-background "+W.line.gutterClass,"left: "+(k.options.fixedGutter?ne.fixedPos:-ne.gutterTotalWidth)+"px; width: "+ne.gutterTotalWidth+"px"),k.display.input.setUneditable(W.gutterBackground),le.insertBefore(W.gutterBackground,W.text)}var Fe=W.line.gutterMarkers;if(k.options.lineNumbers||Fe){var mt=Zt(W),Ut=W.gutter=_("div",null,"CodeMirror-gutter-wrapper","left: "+(k.options.fixedGutter?ne.fixedPos:-ne.gutterTotalWidth)+"px");if(k.display.input.setUneditable(Ut),mt.insertBefore(Ut,W.text),W.line.gutterClass&&(Ut.className+=" "+W.line.gutterClass),k.options.lineNumbers&&(!Fe||!Fe["CodeMirror-linenumbers"])&&(W.lineNumber=Ut.appendChild(_("div",an(k.options,q),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ne.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+k.display.lineNumInnerWidth+"px"))),Fe)for(var nr=0;nr<k.display.gutterSpecs.length;++nr){var lr=k.display.gutterSpecs[nr].className,Sn=Fe.hasOwnProperty(lr)&&Fe[lr];Sn&&Ut.appendChild(_("div",[Sn],"CodeMirror-gutter-elt","left: "+ne.gutterLeft[lr]+"px; width: "+ne.gutterWidth[lr]+"px"))}}}function cr(k,W,q){W.alignable&&(W.alignable=null);for(var ne=C("CodeMirror-linewidget"),le=W.node.firstChild,Fe=void 0;le;le=Fe)Fe=le.nextSibling,ne.test(le.className)&&W.node.removeChild(le);Br(k,W,q)}function fr(k,W,q,ne){var le=Nr(k,W);return W.text=W.node=le.pre,le.bgClass&&(W.bgClass=le.bgClass),le.textClass&&(W.textClass=le.textClass),pn(k,W),St(k,W,q,ne),Br(k,W,ne),W.node}function Br(k,W,q){if($r(k,W.line,W,q,!0),W.rest)for(var ne=0;ne<W.rest.length;ne++)$r(k,W.rest[ne],W,q,!1)}function $r(k,W,q,ne,le){if(!W.widgets)return;for(var Fe=Zt(q),mt=0,Ut=W.widgets;mt<Ut.length;++mt){var nr=Ut[mt],lr=_("div",[nr.node],"CodeMirror-linewidget"+(nr.className?" "+nr.className:""));nr.handleMouseEvents||lr.setAttribute("cm-ignore-events","true"),wn(nr,lr,q,ne),k.display.input.setUneditable(lr),le&&nr.above?Fe.insertBefore(lr,q.gutter||q.text):Fe.appendChild(lr),dr(nr,"redraw")}}function wn(k,W,q,ne){if(k.noHScroll){(q.alignable||(q.alignable=[])).push(W);var le=ne.wrapperWidth;W.style.left=ne.fixedPos+"px",k.coverGutter||(le-=ne.gutterTotalWidth,W.style.paddingLeft=ne.gutterTotalWidth+"px"),W.style.width=le+"px"}k.coverGutter&&(W.style.zIndex=5,W.style.position="relative",k.noHScroll||(W.style.marginLeft=-ne.gutterTotalWidth+"px"))}function rn(k){if(k.height!=null)return k.height;var W=k.doc.cm;if(!W)return 0;if(!N(document.body,k.node)){var q="position: relative;";k.coverGutter&&(q+="margin-left: -"+W.display.gutters.offsetWidth+"px;"),k.noHScroll&&(q+="width: "+W.display.wrapper.clientWidth+"px;"),I(W.display.measure,_("div",[k.node],null,q))}return k.height=k.node.parentNode.offsetHeight}function On(k,W){for(var q=De(W);q!=k.wrapper;q=q.parentNode)if(!q||q.nodeType==1&&q.getAttribute("cm-ignore-events")=="true"||q.parentNode==k.sizer&&q!=k.mover)return!0}function In(k){return k.lineSpace.offsetTop}function Gn(k){return k.mover.offsetHeight-k.lineSpace.offsetHeight}function fi(k){if(k.cachedPaddingH)return k.cachedPaddingH;var W=I(k.measure,_("pre","x","CodeMirror-line-like")),q=window.getComputedStyle?window.getComputedStyle(W):W.currentStyle,ne={left:parseInt(q.paddingLeft),right:parseInt(q.paddingRight)};return!isNaN(ne.left)&&!isNaN(ne.right)&&(k.cachedPaddingH=ne),ne}function Yn(k){return Y-k.display.nativeBarWidth}function gi(k){return k.display.scroller.clientWidth-Yn(k)-k.display.barWidth}function vi(k){return k.display.scroller.clientHeight-Yn(k)-k.display.barHeight}function Di(k,W,q){var ne=k.options.lineWrapping,le=ne&&gi(k);if(!W.measure.heights||ne&&W.measure.width!=le){var Fe=W.measure.heights=[];if(ne){W.measure.width=le;for(var mt=W.text.firstChild.getClientRects(),Ut=0;Ut<mt.length-1;Ut++){var nr=mt[Ut],lr=mt[Ut+1];Math.abs(nr.bottom-lr.bottom)>2&&Fe.push((nr.bottom+lr.top)/2-q.top)}}Fe.push(q.bottom-q.top)}}function Mi(k,W,q){if(k.line==W)return{map:k.measure.map,cache:k.measure.cache};for(var ne=0;ne<k.rest.length;ne++)if(k.rest[ne]==W)return{map:k.measure.maps[ne],cache:k.measure.caches[ne]};for(var le=0;le<k.rest.length;le++)if(wt(k.rest[le])>q)return{map:k.measure.maps[le],cache:k.measure.caches[le],before:!0}}function xi(k,W){W=ir(W);var q=wt(W),ne=k.display.externalMeasured=new ga(k.doc,W,q);ne.lineN=q;var le=ne.built=zn(k,ne);return ne.text=le.pre,I(k.display.lineMeasure,le.pre),ne}function bi(k,W,q,ne){return qi(k,$i(k,W),q,ne)}function Ci(k,W){if(W>=k.display.viewFrom&&W<k.display.viewTo)return k.display.view[ja(k,W)];var q=k.display.externalMeasured;if(q&&W>=q.lineN&&W<q.lineN+q.size)return q}function $i(k,W){var q=wt(W),ne=Ci(k,q);ne&&!ne.text?ne=null:ne&&ne.changes&&(cn(k,ne,q,Bo(k)),k.curOp.forceUpdate=!0),ne||(ne=xi(k,W));var le=Mi(ne,W,q);return{line:W,view:ne,rect:null,map:le.map,cache:le.cache,before:le.before,hasHeights:!1}}function qi(k,W,q,ne,le){W.before&&(q=-1);var Fe=q+(ne||""),mt;return W.cache.hasOwnProperty(Fe)?mt=W.cache[Fe]:(W.rect||(W.rect=W.view.text.getBoundingClientRect()),W.hasHeights||(Di(k,W.view,W.rect),W.hasHeights=!0),mt=Ui(k,W,q,ne),mt.bogus||(W.cache[Fe]=mt)),{left:mt.left,right:mt.right,top:le?mt.rtop:mt.top,bottom:le?mt.rbottom:mt.bottom}}var Ti={left:0,right:0,top:0,bottom:0};function ia(k,W,q){for(var ne,le,Fe,mt,Ut,nr,lr=0;lr<k.length;lr+=3)if(Ut=k[lr],nr=k[lr+1],W<Ut?(le=0,Fe=1,mt="left"):W<nr?(le=W-Ut,Fe=le+1):(lr==k.length-3||W==nr&&k[lr+3]>W)&&(Fe=nr-Ut,le=Fe-1,W>=nr&&(mt="right")),le!=null){if(ne=k[lr+2],Ut==nr&&q==(ne.insertLeft?"left":"right")&&(mt=q),q=="left"&&le==0)for(;lr&&k[lr-2]==k[lr-3]&&k[lr-1].insertLeft;)ne=k[(lr-=3)+2],mt="left";if(q=="right"&&le==nr-Ut)for(;lr<k.length-3&&k[lr+3]==k[lr+4]&&!k[lr+5].insertLeft;)ne=k[(lr+=3)+2],mt="right";break}return{node:ne,start:le,end:Fe,collapse:mt,coverStart:Ut,coverEnd:nr}}function na(k,W){var q=Ti;if(W=="left")for(var ne=0;ne<k.length&&!((q=k[ne]).left!=q.right);ne++);else for(var le=k.length-1;le>=0&&!((q=k[le]).left!=q.right);le--);return q}function Ui(k,W,q,ne){var le=ia(W.map,q,ne),Fe=le.node,mt=le.start,Ut=le.end,nr=le.collapse,lr;if(Fe.nodeType==3){for(var Sn=0;Sn<4;Sn++){for(;mt&&he(W.line.text.charAt(le.coverStart+mt));)--mt;for(;le.coverStart+Ut<le.coverEnd&&he(W.line.text.charAt(le.coverStart+Ut));)++Ut;if(f&&c<9&&mt==0&&Ut==le.coverEnd-le.coverStart?lr=Fe.parentNode.getBoundingClientRect():lr=na(D(Fe,mt,Ut).getClientRects(),ne),lr.left||lr.right||mt==0)break;Ut=mt,mt=mt-1,nr="right"}f&&c<11&&(lr=Ki(k.display.measure,lr))}else{mt>0&&(nr=ne="right");var Bn;k.options.lineWrapping&&(Bn=Fe.getClientRects()).length>1?lr=Bn[ne=="right"?Bn.length-1:0]:lr=Fe.getBoundingClientRect()}if(f&&c<9&&!mt&&(!lr||!lr.left&&!lr.right)){var Zn=Fe.parentNode.getClientRects()[0];Zn?lr={left:Zn.left,right:Zn.left+ao(k.display),top:Zn.top,bottom:Zn.bottom}:lr=Ti}for(var ni=lr.top-W.rect.top,Pi=lr.bottom-W.rect.top,Ji=(ni+Pi)/2,ua=W.view.measure.heights,la=0;la<ua.length-1&&!(Ji<ua[la]);la++);var oa=la?ua[la-1]:0,xa=ua[la],Ma={left:(nr=="right"?lr.right:lr.left)-W.rect.left,right:(nr=="left"?lr.left:lr.right)-W.rect.left,top:oa,bottom:xa};return!lr.left&&!lr.right&&(Ma.bogus=!0),k.options.singleCursorHeightPerLine||(Ma.rtop=ni,Ma.rbottom=Pi),Ma}function Ki(k,W){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Xt(k))return W;var q=screen.logicalXDPI/screen.deviceXDPI,ne=screen.logicalYDPI/screen.deviceYDPI;return{left:W.left*q,right:W.right*q,top:W.top*ne,bottom:W.bottom*ne}}function ra(k){if(k.measure&&(k.measure.cache={},k.measure.heights=null,k.rest))for(var W=0;W<k.rest.length;W++)k.measure.caches[W]={}}function ea(k){k.display.externalMeasure=null,b(k.display.lineMeasure);for(var W=0;W<k.display.view.length;W++)ra(k.display.view[W])}function va(k){ea(k),k.display.cachedCharWidth=k.display.cachedTextHeight=k.display.cachedPaddingH=null,k.options.lineWrapping||(k.display.maxLineChanged=!0),k.display.lineNumChars=null}function sa(){return a&&l?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Pa(){return a&&l?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ka(k){var W=0;if(k.widgets)for(var q=0;q<k.widgets.length;++q)k.widgets[q].above&&(W+=rn(k.widgets[q]));return W}function Ia(k,W,q,ne,le){if(!le){var Fe=ka(W);q.top+=Fe,q.bottom+=Fe}if(ne=="line")return q;ne||(ne="local");var mt=Kr(W);if(ne=="local"?mt+=In(k.display):mt-=k.display.viewOffset,ne=="page"||ne=="window"){var Ut=k.display.lineSpace.getBoundingClientRect();mt+=Ut.top+(ne=="window"?0:Pa());var nr=Ut.left+(ne=="window"?0:sa());q.left+=nr,q.right+=nr}return q.top+=mt,q.bottom+=mt,q}function Ea(k,W,q){if(q=="div")return W;var ne=W.left,le=W.top;if(q=="page")ne-=sa(),le-=Pa();else if(q=="local"||!q){var Fe=k.display.sizer.getBoundingClientRect();ne+=Fe.left,le+=Fe.top}var mt=k.display.lineSpace.getBoundingClientRect();return{left:ne-mt.left,top:le-mt.top}}function So(k,W,q,ne,le){return ne||(ne=Ee(k.doc,W.line)),Ia(k,ne,bi(k,ne,W.ch,le),q)}function Ga(k,W,q,ne,le,Fe){ne=ne||Ee(k.doc,W.line),le||(le=$i(k,ne));function mt(Pi,Ji){var ua=qi(k,le,Pi,Ji?"right":"left",Fe);return Ji?ua.left=ua.right:ua.right=ua.left,Ia(k,ne,ua,q)}var Ut=it(ne,k.doc.direction),nr=W.ch,lr=W.sticky;if(nr>=ne.text.length?(nr=ne.text.length,lr="before"):nr<=0&&(nr=0,lr="after"),!Ut)return mt(lr=="before"?nr-1:nr,lr=="before");function Sn(Pi,Ji,ua){var la=Ut[Ji],oa=la.level==1;return mt(ua?Pi-1:Pi,oa!=ua)}var Bn=Oe(Ut,nr,lr),Zn=pe,ni=Sn(nr,Bn,lr=="before");return Zn!=null&&(ni.other=Sn(nr,Zn,lr!="before")),ni}function Va(k,W){var q=0;W=ot(k.doc,W),k.options.lineWrapping||(q=ao(k.display)*W.ch);var ne=Ee(k.doc,W.line),le=Kr(ne)+In(k.display);return{left:q,right:q,top:le,bottom:le+ne.height}}function Ra(k,W,q,ne,le){var Fe=_t(k,W,q);return Fe.xRel=le,ne&&(Fe.outside=ne),Fe}function po(k,W,q){var ne=k.doc;if(q+=k.display.viewOffset,q<0)return Ra(ne.first,0,null,-1,-1);var le=qt(ne,q),Fe=ne.first+ne.size-1;if(le>Fe)return Ra(ne.first+ne.size-1,Ee(ne,Fe).text.length,null,1,1);W<0&&(W=0);for(var mt=Ee(ne,le);;){var Ut=go(k,mt,le,W,q),nr=zt(mt,Ut.ch+(Ut.xRel>0||Ut.outside>0?1:0));if(!nr)return Ut;var lr=nr.find(1);if(lr.line==le)return lr;mt=Ee(ne,le=lr.line)}}function mo(k,W,q,ne){ne-=ka(W);var le=W.text.length,Fe=Ie(function(mt){return qi(k,q,mt-1).bottom<=ne},le,0);return le=Ie(function(mt){return qi(k,q,mt).top>ne},Fe,le),{begin:Fe,end:le}}function Aa(k,W,q,ne){q||(q=$i(k,W));var le=Ia(k,W,qi(k,q,ne),"line").top;return mo(k,W,q,le)}function Io(k,W,q,ne){return k.bottom<=q?!1:k.top>q?!0:(ne?k.left:k.right)>W}function go(k,W,q,ne,le){le-=Kr(W);var Fe=$i(k,W),mt=ka(W),Ut=0,nr=W.text.length,lr=!0,Sn=it(W,k.doc.direction);if(Sn){var Bn=(k.options.lineWrapping?wo:Qa)(k,W,q,Fe,Sn,ne,le);lr=Bn.level!=1,Ut=lr?Bn.from:Bn.to-1,nr=lr?Bn.to:Bn.from-1}var Zn=null,ni=null,Pi=Ie(function(To){var so=qi(k,Fe,To);return so.top+=mt,so.bottom+=mt,Io(so,ne,le,!1)?(so.top<=le&&so.left<=ne&&(Zn=To,ni=so),!0):!1},Ut,nr),Ji,ua,la=!1;if(ni){var oa=ne-ni.left<ni.right-ne,xa=oa==lr;Pi=Zn+(xa?0:1),ua=xa?"after":"before",Ji=oa?ni.left:ni.right}else{!lr&&(Pi==nr||Pi==Ut)&&Pi++,ua=Pi==0?"after":Pi==W.text.length?"before":qi(k,Fe,Pi-(lr?1:0)).bottom+mt<=le==lr?"after":"before";var Ma=Ga(k,_t(q,Pi,ua),"line",W,Fe);Ji=Ma.left,la=le<Ma.top?-1:le>=Ma.bottom?1:0}return Pi=Me(W.text,Pi,1),Ra(q,Pi,ua,la,ne-Ji)}function Qa(k,W,q,ne,le,Fe,mt){var Ut=Ie(function(Bn){var Zn=le[Bn],ni=Zn.level!=1;return Io(Ga(k,_t(q,ni?Zn.to:Zn.from,ni?"before":"after"),"line",W,ne),Fe,mt,!0)},0,le.length-1),nr=le[Ut];if(Ut>0){var lr=nr.level!=1,Sn=Ga(k,_t(q,lr?nr.from:nr.to,lr?"after":"before"),"line",W,ne);Io(Sn,Fe,mt,!0)&&Sn.top>mt&&(nr=le[Ut-1])}return nr}function wo(k,W,q,ne,le,Fe,mt){var Ut=mo(k,W,ne,mt),nr=Ut.begin,lr=Ut.end;/\s/.test(W.text.charAt(lr-1))&&lr--;for(var Sn=null,Bn=null,Zn=0;Zn<le.length;Zn++){var ni=le[Zn];if(ni.from>=lr||ni.to<=nr)continue;var Pi=ni.level!=1,Ji=qi(k,ne,Pi?Math.min(lr,ni.to)-1:Math.max(nr,ni.from)).right,ua=Ji<Fe?Fe-Ji+1e9:Ji-Fe;(!Sn||Bn>ua)&&(Sn=ni,Bn=ua)}return Sn||(Sn=le[le.length-1]),Sn.from<nr&&(Sn={from:nr,to:Sn.to,level:Sn.level}),Sn.to>lr&&(Sn={from:Sn.from,to:lr,level:Sn.level}),Sn}var pa;function to(k){if(k.cachedTextHeight!=null)return k.cachedTextHeight;if(pa==null){pa=_("pre",null,"CodeMirror-line-like");for(var W=0;W<49;++W)pa.appendChild(document.createTextNode("x")),pa.appendChild(_("br"));pa.appendChild(document.createTextNode("x"))}I(k.measure,pa);var q=pa.offsetHeight/50;return q>3&&(k.cachedTextHeight=q),b(k.measure),q||1}function ao(k){if(k.cachedCharWidth!=null)return k.cachedCharWidth;var W=_("span","xxxxxxxxxx"),q=_("pre",[W],"CodeMirror-line-like");I(k.measure,q);var ne=W.getBoundingClientRect(),le=(ne.right-ne.left)/10;return le>2&&(k.cachedCharWidth=le),le||10}function Bo(k){for(var W=k.display,q={},ne={},le=W.gutters.clientLeft,Fe=W.gutters.firstChild,mt=0;Fe;Fe=Fe.nextSibling,++mt){var Ut=k.display.gutterSpecs[mt].className;q[Ut]=Fe.offsetLeft+Fe.clientLeft+le,ne[Ut]=Fe.clientWidth}return{fixedPos:Ja(W),gutterTotalWidth:W.gutters.offsetWidth,gutterLeft:q,gutterWidth:ne,wrapperWidth:W.wrapper.clientWidth}}function Ja(k){return k.scroller.getBoundingClientRect().left-k.sizer.getBoundingClientRect().left}function _o(k){var W=to(k.display),q=k.options.lineWrapping,ne=q&&Math.max(5,k.display.scroller.clientWidth/ao(k.display)-3);return function(le){if(Cr(k.doc,le))return 0;var Fe=0;if(le.widgets)for(var mt=0;mt<le.widgets.length;mt++)le.widgets[mt].height&&(Fe+=le.widgets[mt].height);return q?Fe+(Math.ceil(le.text.length/ne)||1)*W:Fe+W}}function Ao(k){var W=k.doc,q=_o(k);W.iter(function(ne){var le=q(ne);le!=ne.height&&$e(ne,le)})}function za(k,W,q,ne){var le=k.display;if(!q&&De(W).getAttribute("cm-not-content")=="true")return null;var Fe,mt,Ut=le.lineSpace.getBoundingClientRect();try{Fe=W.clientX-Ut.left,mt=W.clientY-Ut.top}catch(Bn){return null}var nr=po(k,Fe,mt),lr;if(ne&&nr.xRel>0&&(lr=Ee(k.doc,nr.line).text).length==nr.ch){var Sn=j(lr,lr.length,k.options.tabSize)-lr.length;nr=_t(nr.line,Math.max(0,Math.round((Fe-fi(k.display).left)/ao(k.display))-Sn))}return nr}function ja(k,W){if(W>=k.display.viewTo)return null;if(W-=k.display.viewFrom,W<0)return null;for(var q=k.display.view,ne=0;ne<q.length;ne++)if(W-=q[ne].size,W<0)return ne}function da(k,W,q,ne){W==null&&(W=k.doc.first),q==null&&(q=k.doc.first+k.doc.size),ne||(ne=0);var le=k.display;if(ne&&q<le.viewTo&&(le.updateLineNumbers==null||le.updateLineNumbers>W)&&(le.updateLineNumbers=W),k.curOp.viewChanged=!0,W>=le.viewTo)Xe&&It(k.doc,W)<le.viewTo&&ar(k);else if(q<=le.viewFrom)Xe&&or(k.doc,q+ne)>le.viewFrom?ar(k):(le.viewFrom+=ne,le.viewTo+=ne);else if(W<=le.viewFrom&&q>=le.viewTo)ar(k);else if(W<=le.viewFrom){var Fe=Fr(k,q,q+ne,1);Fe?(le.view=le.view.slice(Fe.index),le.viewFrom=Fe.lineN,le.viewTo+=ne):ar(k)}else if(q>=le.viewTo){var mt=Fr(k,W,W,-1);mt?(le.view=le.view.slice(0,mt.index),le.viewTo=mt.lineN):ar(k)}else{var Ut=Fr(k,W,W,-1),nr=Fr(k,q,q+ne,1);Ut&&nr?(le.view=le.view.slice(0,Ut.index).concat(oi(k,Ut.lineN,nr.lineN)).concat(le.view.slice(nr.index)),le.viewTo+=ne):ar(k)}var lr=le.externalMeasured;lr&&(q<lr.lineN?lr.lineN+=ne:W<lr.lineN+lr.size&&(le.externalMeasured=null))}function rt(k,W,q){k.curOp.viewChanged=!0;var ne=k.display,le=k.display.externalMeasured;if(le&&W>=le.lineN&&W<le.lineN+le.size&&(ne.externalMeasured=null),W<ne.viewFrom||W>=ne.viewTo)return;var Fe=ne.view[ja(k,W)];if(Fe.node==null)return;var mt=Fe.changes||(Fe.changes=[]);z(mt,q)==-1&&mt.push(q)}function ar(k){k.display.viewFrom=k.display.viewTo=k.doc.first,k.display.view=[],k.display.viewOffset=0}function Fr(k,W,q,ne){var le=ja(k,W),Fe,mt=k.display.view;if(!Xe||q==k.doc.first+k.doc.size)return{index:le,lineN:q};for(var Ut=k.display.viewFrom,nr=0;nr<le;nr++)Ut+=mt[nr].size;if(Ut!=W){if(ne>0){if(le==mt.length-1)return null;Fe=Ut+mt[le].size-W,le++}else Fe=Ut-W;W+=Fe,q+=Fe}for(;It(k.doc,q)!=q;){if(le==(ne<0?0:mt.length-1))return null;q+=ne*mt[le-(ne<0?1:0)].size,le+=ne}return{index:le,lineN:q}}function Ir(k,W,q){var ne=k.display,le=ne.view;le.length==0||W>=ne.viewTo||q<=ne.viewFrom?(ne.view=oi(k,W,q),ne.viewFrom=W):(ne.viewFrom>W?ne.view=oi(k,W,ne.viewFrom).concat(ne.view):ne.viewFrom<W&&(ne.view=ne.view.slice(ja(k,W))),ne.viewFrom=W,ne.viewTo<q?ne.view=ne.view.concat(oi(k,ne.viewTo,q)):ne.viewTo>q&&(ne.view=ne.view.slice(0,ja(k,q)))),ne.viewTo=q}function En(k){for(var W=k.display.view,q=0,ne=0;ne<W.length;ne++){var le=W[ne];!le.hidden&&(!le.node||le.changes)&&++q}return q}function zr(k){k.display.input.showSelection(k.display.input.prepareSelection())}function yr(k,W){W===void 0&&(W=!0);for(var q=k.doc,ne={},le=ne.cursors=document.createDocumentFragment(),Fe=ne.selection=document.createDocumentFragment(),mt=0;mt<q.sel.ranges.length;mt++){if(!W&&mt==q.sel.primIndex)continue;var Ut=q.sel.ranges[mt];if(Ut.from().line>=k.display.viewTo||Ut.to().line<k.display.viewFrom)continue;var nr=Ut.empty();(nr||k.options.showCursorWhenSelecting)&&Cn(k,Ut.head,le),nr||xn(k,Ut,Fe)}return ne}function Cn(k,W,q){var ne=Ga(k,W,"div",null,null,!k.options.singleCursorHeightPerLine),le=q.appendChild(_("div","\xA0","CodeMirror-cursor"));if(le.style.left=ne.left+"px",le.style.top=ne.top+"px",le.style.height=Math.max(0,ne.bottom-ne.top)*k.options.cursorHeight+"px",ne.other){var Fe=q.appendChild(_("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Fe.style.display="",Fe.style.left=ne.other.left+"px",Fe.style.top=ne.other.top+"px",Fe.style.height=(ne.other.bottom-ne.other.top)*.85+"px"}}function Pr(k,W){return k.top-W.top||k.left-W.left}function xn(k,W,q){var ne=k.display,le=k.doc,Fe=document.createDocumentFragment(),mt=fi(k.display),Ut=mt.left,nr=Math.max(ne.sizerWidth,gi(k)-ne.sizer.offsetLeft)-mt.right,lr=le.direction=="ltr";function Sn(xa,Ma,To,so){Ma<0&&(Ma=0),Ma=Math.round(Ma),so=Math.round(so),Fe.appendChild(_("div",null,"CodeMirror-selected","position: absolute; left: "+xa+`px;
|
|
|
top: `+Ma+"px; width: "+(To==null?nr-xa:To)+`px;
|
|
|
height: `+(so-Ma)+"px"))}function Bn(xa,Ma,To){var so=Ee(le,xa),Yo=so.text.length,os,Ls;function bs(Gs,wl){return So(k,_t(xa,Gs),"div",so,wl)}function nl(Gs,wl,il){var $s=Aa(k,so,null,Gs),Xs=wl=="ltr"==(il=="after")?"left":"right",Fs=il=="after"?$s.begin:$s.end-(/\s/.test(so.text.charAt($s.end-1))?2:1);return bs(Fs,Xs)[Xs]}var bl=it(so,le.direction);return oe(bl,Ma||0,To==null?Yo:To,function(Gs,wl,il,$s){var Xs=il=="ltr",Fs=bs(Gs,Xs?"left":"right"),vl=bs(wl-1,Xs?"right":"left"),Du=Ma==null&&Gs==0,Wl=To==null&&wl==Yo,Ys=$s==0,Dl=!bl||$s==bl.length-1;if(vl.top-Fs.top<=3){var ol=(lr?Du:Wl)&&Ys,tc=(lr?Wl:Du)&&Dl,Da=ol?Ut:(Xs?Fs:vl).left,El=tc?nr:(Xs?vl:Fs).right;Sn(Da,Fs.top,El-Da,Fs.bottom)}else{var Xl,Ms,lu,As;Xs?(Xl=lr&&Du&&Ys?Ut:Fs.left,Ms=lr?nr:nl(Gs,il,"before"),lu=lr?Ut:nl(wl,il,"after"),As=lr&&Wl&&Dl?nr:vl.right):(Xl=lr?nl(Gs,il,"before"):Ut,Ms=!lr&&Du&&Ys?nr:Fs.right,lu=!lr&&Wl&&Dl?Ut:vl.left,As=lr?nl(wl,il,"after"):nr),Sn(Xl,Fs.top,Ms-Xl,Fs.bottom),Fs.bottom<vl.top&&Sn(Ut,Fs.bottom,null,vl.top),Sn(lu,vl.top,As-lu,vl.bottom)}(!os||Pr(Fs,os)<0)&&(os=Fs),Pr(vl,os)<0&&(os=vl),(!Ls||Pr(Fs,Ls)<0)&&(Ls=Fs),Pr(vl,Ls)<0&&(Ls=vl)}),{start:os,end:Ls}}var Zn=W.from(),ni=W.to();if(Zn.line==ni.line)Bn(Zn.line,Zn.ch,ni.ch);else{var Pi=Ee(le,Zn.line),Ji=Ee(le,ni.line),ua=ir(Pi)==ir(Ji),la=Bn(Zn.line,Zn.ch,ua?Pi.text.length+1:null).end,oa=Bn(ni.line,ua?0:null,ni.ch).start;ua&&(la.top<oa.top-2?(Sn(la.right,la.top,null,la.bottom),Sn(Ut,oa.top,oa.left,oa.bottom)):Sn(la.right,la.top,oa.left-la.right,la.bottom)),la.bottom<oa.top&&Sn(Ut,la.bottom,null,oa.top)}q.appendChild(Fe)}function Qn(k){if(!k.state.focused)return;var W=k.display;clearInterval(W.blinker);var q=!0;W.cursorDiv.style.visibility="",k.options.cursorBlinkRate>0?W.blinker=setInterval(function(){k.hasFocus()||Xn(k),W.cursorDiv.style.visibility=(q=!q)?"":"hidden"},k.options.cursorBlinkRate):k.options.cursorBlinkRate<0&&(W.cursorDiv.style.visibility="hidden")}function $n(k){k.state.focused||(k.display.input.focus(),si(k))}function Kn(k){k.state.delayingBlurEvent=!0,setTimeout(function(){k.state.delayingBlurEvent&&(k.state.delayingBlurEvent=!1,Xn(k))},100)}function si(k,W){if(k.state.delayingBlurEvent&&(k.state.delayingBlurEvent=!1),k.options.readOnly=="nocursor")return;k.state.focused||(dt(k,"focus",k,W),k.state.focused=!0,B(k.display.wrapper,"CodeMirror-focused"),!k.curOp&&k.display.selForContextMenu!=k.doc.sel&&(k.display.input.reset(),o&&setTimeout(function(){return k.display.input.reset(!0)},20)),k.display.input.receivedFocus()),Qn(k)}function Xn(k,W){if(k.state.delayingBlurEvent)return;k.state.focused&&(dt(k,"blur",k,W),k.state.focused=!1,w(k.display.wrapper,"CodeMirror-focused")),clearInterval(k.display.blinker),setTimeout(function(){k.state.focused||(k.display.shift=!1)},150)}function ti(k){for(var W=k.display,q=W.lineDiv.offsetTop,ne=0;ne<W.view.length;ne++){var le=W.view[ne],Fe=k.options.lineWrapping,mt=void 0,Ut=0;if(le.hidden)continue;if(f&&c<8){var nr=le.node.offsetTop+le.node.offsetHeight;mt=nr-q,q=nr}else{var lr=le.node.getBoundingClientRect();mt=lr.bottom-lr.top,!Fe&&le.text.firstChild&&(Ut=le.text.firstChild.getBoundingClientRect().right-lr.left-1)}var Sn=le.line.height-mt;if((Sn>.005||Sn<-.005)&&($e(le.line,mt),di(le.line),le.rest))for(var Bn=0;Bn<le.rest.length;Bn++)di(le.rest[Bn]);if(Ut>k.display.sizerWidth){var Zn=Math.ceil(Ut/ao(k.display));Zn>k.display.maxLineLength&&(k.display.maxLineLength=Zn,k.display.maxLine=le.line,k.display.maxLineChanged=!0)}}}function di(k){if(k.widgets)for(var W=0;W<k.widgets.length;++W){var q=k.widgets[W],ne=q.node.parentNode;ne&&(q.height=ne.offsetHeight)}}function Bi(k,W,q){var ne=q&&q.top!=null?Math.max(0,q.top):k.scroller.scrollTop;ne=Math.floor(ne-In(k));var le=q&&q.bottom!=null?q.bottom:ne+k.wrapper.clientHeight,Fe=qt(W,ne),mt=qt(W,le);if(q&&q.ensure){var Ut=q.ensure.from.line,nr=q.ensure.to.line;Ut<Fe?(Fe=Ut,mt=qt(W,Kr(Ee(W,Ut))+k.wrapper.clientHeight)):Math.min(nr,W.lastLine())>=mt&&(Fe=qt(W,Kr(Ee(W,nr))-k.wrapper.clientHeight),mt=nr)}return{from:Fe,to:Math.max(mt,Fe+1)}}function yi(k,W){if(Ot(k,"scrollCursorIntoView"))return;var q=k.display,ne=q.sizer.getBoundingClientRect(),le=null;if(W.top+ne.top<0?le=!0:W.bottom+ne.top>(window.innerHeight||document.documentElement.clientHeight)&&(le=!1),le!=null&&!t){var Fe=_("div","\u200B",null,`position: absolute;
|
|
|
top: `+(W.top-q.viewOffset-In(k.display))+`px;
|
|
|
height: `+(W.bottom-W.top+Yn(k)+q.barHeight)+`px;
|
|
|
left: `+W.left+"px; width: "+Math.max(2,W.right-W.left)+"px;");k.display.lineSpace.appendChild(Fe),Fe.scrollIntoView(le),k.display.lineSpace.removeChild(Fe)}}function Xi(k,W,q,ne){ne==null&&(ne=0);var le;!k.options.lineWrapping&&W==q&&(W=W.ch?_t(W.line,W.sticky=="before"?W.ch-1:W.ch,"after"):W,q=W.sticky=="before"?_t(W.line,W.ch+1,"before"):W);for(var Fe=0;Fe<5;Fe++){var mt=!1,Ut=Ga(k,W),nr=!q||q==W?Ut:Ga(k,q);le={left:Math.min(Ut.left,nr.left),top:Math.min(Ut.top,nr.top)-ne,right:Math.max(Ut.left,nr.left),bottom:Math.max(Ut.bottom,nr.bottom)+ne};var lr=ta(k,le),Sn=k.doc.scrollTop,Bn=k.doc.scrollLeft;if(lr.scrollTop!=null&&(Gi(k,lr.scrollTop),Math.abs(k.doc.scrollTop-Sn)>1&&(mt=!0)),lr.scrollLeft!=null&&(ya(k,lr.scrollLeft),Math.abs(k.doc.scrollLeft-Bn)>1&&(mt=!0)),!mt)break}return le}function ba(k,W){var q=ta(k,W);q.scrollTop!=null&&Gi(k,q.scrollTop),q.scrollLeft!=null&&ya(k,q.scrollLeft)}function ta(k,W){var q=k.display,ne=to(k.display);W.top<0&&(W.top=0);var le=k.curOp&&k.curOp.scrollTop!=null?k.curOp.scrollTop:q.scroller.scrollTop,Fe=vi(k),mt={};W.bottom-W.top>Fe&&(W.bottom=W.top+Fe);var Ut=k.doc.height+Gn(q),nr=W.top<ne,lr=W.bottom>Ut-ne;if(W.top<le)mt.scrollTop=nr?0:W.top;else if(W.bottom>le+Fe){var Sn=Math.min(W.top,(lr?Ut:W.bottom)-Fe);Sn!=le&&(mt.scrollTop=Sn)}var Bn=k.options.fixedGutter?0:q.gutters.offsetWidth,Zn=k.curOp&&k.curOp.scrollLeft!=null?k.curOp.scrollLeft:q.scroller.scrollLeft-Bn,ni=gi(k)-q.gutters.offsetWidth,Pi=W.right-W.left>ni;return Pi&&(W.right=W.left+ni),W.left<10?mt.scrollLeft=0:W.left<Zn?mt.scrollLeft=Math.max(0,W.left+Bn-(Pi?0:10)):W.right>ni+Zn-3&&(mt.scrollLeft=W.right+(Pi?0:10)-ni),mt}function Qi(k,W){if(W==null)return;Za(k),k.curOp.scrollTop=(k.curOp.scrollTop==null?k.doc.scrollTop:k.curOp.scrollTop)+W}function aa(k){Za(k);var W=k.getCursor();k.curOp.scrollToPos={from:W,to:W,margin:k.options.cursorScrollMargin}}function fa(k,W,q){(W!=null||q!=null)&&Za(k),W!=null&&(k.curOp.scrollLeft=W),q!=null&&(k.curOp.scrollTop=q)}function xo(k,W){Za(k),k.curOp.scrollToPos=W}function Za(k){var W=k.curOp.scrollToPos;if(W){k.curOp.scrollToPos=null;var q=Va(k,W.from),ne=Va(k,W.to);Wi(k,q,ne,W.margin)}}function Wi(k,W,q,ne){var le=ta(k,{left:Math.min(W.left,q.left),top:Math.min(W.top,q.top)-ne,right:Math.max(W.right,q.right),bottom:Math.max(W.bottom,q.bottom)+ne});fa(k,le.scrollLeft,le.scrollTop)}function Gi(k,W){if(Math.abs(k.doc.scrollTop-W)<2)return;T||Ss(k,{top:W}),ca(k,W,!0),T&&Ss(k),Qo(k,100)}function ca(k,W,q){if(W=Math.max(0,Math.min(k.display.scroller.scrollHeight-k.display.scroller.clientHeight,W)),k.display.scroller.scrollTop==W&&!q)return;k.doc.scrollTop=W,k.display.scrollbars.setScrollTop(W),k.display.scroller.scrollTop!=W&&(k.display.scroller.scrollTop=W)}function ya(k,W,q,ne){if(W=Math.max(0,Math.min(W,k.display.scroller.scrollWidth-k.display.scroller.clientWidth)),(q?W==k.doc.scrollLeft:Math.abs(k.doc.scrollLeft-W)<2)&&!ne)return;k.doc.scrollLeft=W,ys(k),k.display.scroller.scrollLeft!=W&&(k.display.scroller.scrollLeft=W),k.display.scrollbars.setScrollLeft(W)}function Xa(k){var W=k.display,q=W.gutters.offsetWidth,ne=Math.round(k.doc.height+Gn(k.display));return{clientHeight:W.scroller.clientHeight,viewHeight:W.wrapper.clientHeight,scrollWidth:W.scroller.scrollWidth,clientWidth:W.scroller.clientWidth,viewWidth:W.wrapper.clientWidth,barLeft:k.options.fixedGutter?q:0,docHeight:ne,scrollHeight:ne+Yn(k)+W.barHeight,nativeBarWidth:W.nativeBarWidth,gutterWidth:q}}var _a=function(W,q,ne){this.cm=ne;var le=this.vert=_("div",[_("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Fe=this.horiz=_("div",[_("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");le.tabIndex=Fe.tabIndex=-1,W(le),W(Fe),Te(le,"scroll",function(){le.clientHeight&&q(le.scrollTop,"vertical")}),Te(Fe,"scroll",function(){Fe.clientWidth&&q(Fe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,f&&c<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};_a.prototype.update=function(k){var W=k.scrollWidth>k.clientWidth+1,q=k.scrollHeight>k.clientHeight+1,ne=k.nativeBarWidth;if(q){this.vert.style.display="block",this.vert.style.bottom=W?ne+"px":"0";var le=k.viewHeight-(W?ne:0);this.vert.firstChild.style.height=Math.max(0,k.scrollHeight-k.clientHeight+le)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(W){this.horiz.style.display="block",this.horiz.style.right=q?ne+"px":"0",this.horiz.style.left=k.barLeft+"px";var Fe=k.viewWidth-k.barLeft-(q?ne:0);this.horiz.firstChild.style.width=Math.max(0,k.scrollWidth-k.clientWidth+Fe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&k.clientHeight>0&&(ne==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:q?ne:0,bottom:W?ne:0}},_a.prototype.setScrollLeft=function(k){this.horiz.scrollLeft!=k&&(this.horiz.scrollLeft=k),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},_a.prototype.setScrollTop=function(k){this.vert.scrollTop!=k&&(this.vert.scrollTop=k),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},_a.prototype.zeroWidthHack=function(){var k=h&&!s?"12px":"18px";this.horiz.style.height=this.vert.style.width=k,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new V,this.disableVert=new V},_a.prototype.enableZeroWidthBar=function(k,W,q){k.style.pointerEvents="auto";function ne(){var le=k.getBoundingClientRect(),Fe=q=="vert"?document.elementFromPoint(le.right-1,(le.top+le.bottom)/2):document.elementFromPoint((le.right+le.left)/2,le.bottom-1);Fe!=k?k.style.pointerEvents="none":W.set(1e3,ne)}W.set(1e3,ne)},_a.prototype.clear=function(){var k=this.horiz.parentNode;k.removeChild(this.horiz),k.removeChild(this.vert)};var qa=function(){};qa.prototype.update=function(){return{bottom:0,right:0}},qa.prototype.setScrollLeft=function(){},qa.prototype.setScrollTop=function(){},qa.prototype.clear=function(){};function ro(k,W){W||(W=Xa(k));var q=k.display.barWidth,ne=k.display.barHeight;Uo(k,W);for(var le=0;le<4&&q!=k.display.barWidth||ne!=k.display.barHeight;le++)q!=k.display.barWidth&&k.options.lineWrapping&&ti(k),Uo(k,Xa(k)),q=k.display.barWidth,ne=k.display.barHeight}function Uo(k,W){var q=k.display,ne=q.scrollbars.update(W);q.sizer.style.paddingRight=(q.barWidth=ne.right)+"px",q.sizer.style.paddingBottom=(q.barHeight=ne.bottom)+"px",q.heightForcer.style.borderBottom=ne.bottom+"px solid transparent",ne.right&&ne.bottom?(q.scrollbarFiller.style.display="block",q.scrollbarFiller.style.height=ne.bottom+"px",q.scrollbarFiller.style.width=ne.right+"px"):q.scrollbarFiller.style.display="",ne.bottom&&k.options.coverGutterNextToScrollbar&&k.options.fixedGutter?(q.gutterFiller.style.display="block",q.gutterFiller.style.height=ne.bottom+"px",q.gutterFiller.style.width=W.gutterWidth+"px"):q.gutterFiller.style.display=""}var zo={native:_a,null:qa};function hs(k){k.display.scrollbars&&(k.display.scrollbars.clear(),k.display.scrollbars.addClass&&w(k.display.wrapper,k.display.scrollbars.addClass)),k.display.scrollbars=new zo[k.options.scrollbarStyle](function(W){k.display.wrapper.insertBefore(W,k.display.scrollbarFiller),Te(W,"mousedown",function(){k.state.focused&&setTimeout(function(){return k.display.input.focus()},0)}),W.setAttribute("cm-not-content","true")},function(W,q){q=="horizontal"?ya(k,W):Gi(k,W)},k),k.display.scrollbars.addClass&&B(k.display.wrapper,k.display.scrollbars.addClass)}var Po=0;function Mo(k){k.curOp={cm:k,viewChanged:!1,startHeight:k.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:++Po},Ei(k.curOp)}function Fa(k){var W=k.curOp;W&&ki(W,function(q){for(var ne=0;ne<q.ops.length;ne++)q.ops[ne].cm.curOp=null;$a(q)})}function $a(k){for(var W=k.ops,q=0;q<W.length;q++)Ca(W[q]);for(var ne=0;ne<W.length;ne++)Eo(W[ne]);for(var le=0;le<W.length;le++)qo(W[le]);for(var Fe=0;Fe<W.length;Fe++)vo(W[Fe]);for(var mt=0;mt<W.length;mt++)rs(W[mt])}function Ca(k){var W=k.cm,q=W.display;Bs(W),k.updateMaxLine&&Nn(W),k.mustUpdate=k.viewChanged||k.forceUpdate||k.scrollTop!=null||k.scrollToPos&&(k.scrollToPos.from.line<q.viewFrom||k.scrollToPos.to.line>=q.viewTo)||q.maxLineChanged&&W.options.lineWrapping,k.update=k.mustUpdate&&new Fi(W,k.mustUpdate&&{top:k.scrollTop,ensure:k.scrollToPos},k.forceUpdate)}function Eo(k){k.updatedDisplay=k.mustUpdate&&Vo(k.cm,k.update)}function qo(k){var W=k.cm,q=W.display;k.updatedDisplay&&ti(W),k.barMeasure=Xa(W),q.maxLineChanged&&!W.options.lineWrapping&&(k.adjustWidthTo=bi(W,q.maxLine,q.maxLine.text.length).left+3,W.display.sizerWidth=k.adjustWidthTo,k.barMeasure.scrollWidth=Math.max(q.scroller.clientWidth,q.sizer.offsetLeft+k.adjustWidthTo+Yn(W)+W.display.barWidth),k.maxScrollLeft=Math.max(0,q.sizer.offsetLeft+k.adjustWidthTo-gi(W))),(k.updatedDisplay||k.selectionChanged)&&(k.preparedSelection=q.input.prepareSelection())}function vo(k){var W=k.cm;k.adjustWidthTo!=null&&(W.display.sizer.style.minWidth=k.adjustWidthTo+"px",k.maxScrollLeft<W.doc.scrollLeft&&ya(W,Math.min(W.display.scroller.scrollLeft,k.maxScrollLeft),!0),W.display.maxLineChanged=!1);var q=k.focus&&k.focus==R();k.preparedSelection&&W.display.input.showSelection(k.preparedSelection,q),(k.updatedDisplay||k.startHeight!=W.doc.height)&&ro(W,k.barMeasure),k.updatedDisplay&&fs(W,k.barMeasure),k.selectionChanged&&Qn(W),W.state.focused&&k.updateInput&&W.display.input.reset(k.typing),q&&$n(k.cm)}function rs(k){var W=k.cm,q=W.display,ne=W.doc;if(k.updatedDisplay&&vs(W,k.update),q.wheelStartX!=null&&(k.scrollTop!=null||k.scrollLeft!=null||k.scrollToPos)&&(q.wheelStartX=q.wheelStartY=null),k.scrollTop!=null&&ca(W,k.scrollTop,k.forceScroll),k.scrollLeft!=null&&ya(W,k.scrollLeft,!0,!0),k.scrollToPos){var le=Xi(W,ot(ne,k.scrollToPos.from),ot(ne,k.scrollToPos.to),k.scrollToPos.margin);yi(W,le)}var Fe=k.maybeHiddenMarkers,mt=k.maybeUnhiddenMarkers;if(Fe)for(var Ut=0;Ut<Fe.length;++Ut)Fe[Ut].lines.length||dt(Fe[Ut],"hide");if(mt)for(var nr=0;nr<mt.length;++nr)mt[nr].lines.length&&dt(mt[nr],"unhide");q.wrapper.offsetHeight&&(ne.scrollTop=W.display.scroller.scrollTop),k.changeObjs&&dt(W,"changes",W,k.changeObjs),k.update&&k.update.finish()}function ho(k,W){if(k.curOp)return W();Mo(k);try{return W()}finally{Fa(k)}}function No(k,W){return function(){if(k.curOp)return W.apply(k,arguments);Mo(k);try{return W.apply(k,arguments)}finally{Fa(k)}}}function us(k){return function(){if(this.curOp)return k.apply(this,arguments);Mo(this);try{return k.apply(this,arguments)}finally{Fa(this)}}}function jo(k){return function(){var W=this.cm;if(!W||W.curOp)return k.apply(this,arguments);Mo(W);try{return k.apply(this,arguments)}finally{Fa(W)}}}function Qo(k,W){k.doc.highlightFrontier<k.display.viewTo&&k.state.highlight.set(W,F(on,k))}function on(k){var W=k.doc;if(W.highlightFrontier>=k.display.viewTo)return;var q=+new Date+k.options.workTime,ne=_n(k,W.highlightFrontier),le=[];W.iter(ne.line,Math.min(W.first+W.size,k.display.viewTo+500),function(Fe){if(ne.line>=k.display.viewFrom){var mt=Fe.styles,Ut=Fe.text.length>k.options.maxHighlightLength?Vn(W.mode,ne.state):null,nr=Qr(k,Fe,ne,!0);Ut&&(ne.state=Ut),Fe.styles=nr.styles;var lr=Fe.styleClasses,Sn=nr.classes;Sn?Fe.styleClasses=Sn:lr&&(Fe.styleClasses=null);for(var Bn=!mt||mt.length!=Fe.styles.length||lr!=Sn&&(!lr||!Sn||lr.bgClass!=Sn.bgClass||lr.textClass!=Sn.textClass),Zn=0;!Bn&&Zn<mt.length;++Zn)Bn=mt[Zn]!=Fe.styles[Zn];Bn&&le.push(ne.line),Fe.stateAfter=ne.save(),ne.nextLine()}else Fe.text.length<=k.options.maxHighlightLength&&Mn(k,Fe.text,ne),Fe.stateAfter=ne.line%5==0?ne.save():null,ne.nextLine();if(+new Date>q)return Qo(k,k.options.workDelay),!0}),W.highlightFrontier=ne.line,W.modeFrontier=Math.max(W.modeFrontier,ne.line),le.length&&ho(k,function(){for(var Fe=0;Fe<le.length;Fe++)rt(k,le[Fe],"text")})}var Fi=function(W,q,ne){var le=W.display;this.viewport=q,this.visible=Bi(le,W.doc,q),this.editorIsHidden=!le.wrapper.offsetWidth,this.wrapperHeight=le.wrapper.clientHeight,this.wrapperWidth=le.wrapper.clientWidth,this.oldDisplayWidth=gi(W),this.force=ne,this.dims=Bo(W),this.events=[]};Fi.prototype.signal=function(k,W){Ct(k,W)&&this.events.push(arguments)},Fi.prototype.finish=function(){for(var k=0;k<this.events.length;k++)dt.apply(null,this.events[k])};function Bs(k){var W=k.display;!W.scrollbarsClipped&&W.scroller.offsetWidth&&(W.nativeBarWidth=W.scroller.offsetWidth-W.scroller.clientWidth,W.heightForcer.style.height=Yn(k)+"px",W.sizer.style.marginBottom=-W.nativeBarWidth+"px",W.sizer.style.borderRightWidth=Yn(k)+"px",W.scrollbarsClipped=!0)}function ws(k){if(k.hasFocus())return null;var W=R();if(!W||!N(k.display.lineDiv,W))return null;var q={activeElt:W};if(window.getSelection){var ne=window.getSelection();ne.anchorNode&&ne.extend&&N(k.display.lineDiv,ne.anchorNode)&&(q.anchorNode=ne.anchorNode,q.anchorOffset=ne.anchorOffset,q.focusNode=ne.focusNode,q.focusOffset=ne.focusOffset)}return q}function cs(k){if(!k||!k.activeElt||k.activeElt==R())return;if(k.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(k.activeElt.nodeName)&&k.anchorNode&&N(document.body,k.anchorNode)&&N(document.body,k.focusNode)){var W=window.getSelection(),q=document.createRange();q.setEnd(k.anchorNode,k.anchorOffset),q.collapse(!1),W.removeAllRanges(),W.addRange(q),W.extend(k.focusNode,k.focusOffset)}}function Vo(k,W){var q=k.display,ne=k.doc;if(W.editorIsHidden)return ar(k),!1;if(!W.force&&W.visible.from>=q.viewFrom&&W.visible.to<=q.viewTo&&(q.updateLineNumbers==null||q.updateLineNumbers>=q.viewTo)&&q.renderedView==q.view&&En(k)==0)return!1;ds(k)&&(ar(k),W.dims=Bo(k));var le=ne.first+ne.size,Fe=Math.max(W.visible.from-k.options.viewportMargin,ne.first),mt=Math.min(le,W.visible.to+k.options.viewportMargin);q.viewFrom<Fe&&Fe-q.viewFrom<20&&(Fe=Math.max(ne.first,q.viewFrom)),q.viewTo>mt&&q.viewTo-mt<20&&(mt=Math.min(le,q.viewTo)),Xe&&(Fe=It(k.doc,Fe),mt=or(k.doc,mt));var Ut=Fe!=q.viewFrom||mt!=q.viewTo||q.lastWrapHeight!=W.wrapperHeight||q.lastWrapWidth!=W.wrapperWidth;Ir(k,Fe,mt),q.viewOffset=Kr(Ee(k.doc,q.viewFrom)),k.display.mover.style.top=q.viewOffset+"px";var nr=En(k);if(!Ut&&nr==0&&!W.force&&q.renderedView==q.view&&(q.updateLineNumbers==null||q.updateLineNumbers>=q.viewTo))return!1;var lr=ws(k);return nr>4&&(q.lineDiv.style.display="none"),ns(k,q.updateLineNumbers,W.dims),nr>4&&(q.lineDiv.style.display=""),q.renderedView=q.view,cs(lr),b(q.cursorDiv),b(q.selectionDiv),q.gutters.style.height=q.sizer.style.minHeight=0,Ut&&(q.lastWrapHeight=W.wrapperHeight,q.lastWrapWidth=W.wrapperWidth,Qo(k,400)),q.updateLineNumbers=null,!0}function vs(k,W){for(var q=W.viewport,ne=!0;;ne=!1){if(!ne||!k.options.lineWrapping||W.oldDisplayWidth==gi(k)){if(q&&q.top!=null&&(q={top:Math.min(k.doc.height+Gn(k.display)-vi(k),q.top)}),W.visible=Bi(k.display,k.doc,q),W.visible.from>=k.display.viewFrom&&W.visible.to<=k.display.viewTo)break}else ne&&(W.visible=Bi(k.display,k.doc,q));if(!Vo(k,W))break;ti(k);var le=Xa(k);zr(k),ro(k,le),fs(k,le),W.force=!1}W.signal(k,"update",k),(k.display.viewFrom!=k.display.reportedViewFrom||k.display.viewTo!=k.display.reportedViewTo)&&(W.signal(k,"viewportChange",k,k.display.viewFrom,k.display.viewTo),k.display.reportedViewFrom=k.display.viewFrom,k.display.reportedViewTo=k.display.viewTo)}function Ss(k,W){var q=new Fi(k,W);if(Vo(k,q)){ti(k),vs(k,q);var ne=Xa(k);zr(k),ro(k,ne),fs(k,ne),q.finish()}}function ns(k,W,q){var ne=k.display,le=k.options.lineNumbers,Fe=ne.lineDiv,mt=Fe.firstChild;function Ut(Pi){var Ji=Pi.nextSibling;return o&&h&&k.display.currentWheelTarget==Pi?Pi.style.display="none":Pi.parentNode.removeChild(Pi),Ji}for(var nr=ne.view,lr=ne.viewFrom,Sn=0;Sn<nr.length;Sn++){var Bn=nr[Sn];if(!Bn.hidden)if(!Bn.node||Bn.node.parentNode!=Fe){var Zn=fr(k,Bn,lr,q);Fe.insertBefore(Zn,mt)}else{for(;mt!=Bn.node;)mt=Ut(mt);var ni=le&&W!=null&&W<=lr&&Bn.lineNumber;Bn.changes&&(z(Bn.changes,"gutter")>-1&&(ni=!1),cn(k,Bn,lr,q)),ni&&(b(Bn.lineNumber),Bn.lineNumber.appendChild(document.createTextNode(an(k.options,lr)))),mt=Bn.node.nextSibling}lr+=Bn.size}for(;mt;)mt=Ut(mt)}function es(k){var W=k.gutters.offsetWidth;k.sizer.style.marginLeft=W+"px"}function fs(k,W){k.display.sizer.style.minHeight=W.docHeight+"px",k.display.heightForcer.style.top=W.docHeight+"px",k.display.gutters.style.height=W.docHeight+k.display.barHeight+Yn(k)+"px"}function ys(k){var W=k.display,q=W.view;if(!W.alignWidgets&&(!W.gutters.firstChild||!k.options.fixedGutter))return;for(var ne=Ja(W)-W.scroller.scrollLeft+k.doc.scrollLeft,le=W.gutters.offsetWidth,Fe=ne+"px",mt=0;mt<q.length;mt++)if(!q[mt].hidden){k.options.fixedGutter&&(q[mt].gutter&&(q[mt].gutter.style.left=Fe),q[mt].gutterBackground&&(q[mt].gutterBackground.style.left=Fe));var Ut=q[mt].alignable;if(Ut)for(var nr=0;nr<Ut.length;nr++)Ut[nr].style.left=Fe}k.options.fixedGutter&&(W.gutters.style.left=ne+le+"px")}function ds(k){if(!k.options.lineNumbers)return!1;var W=k.doc,q=an(k.options,W.first+W.size-1),ne=k.display;if(q.length!=ne.lineNumChars){var le=ne.measure.appendChild(_("div",[_("div",q)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Fe=le.firstChild.offsetWidth,mt=le.offsetWidth-Fe;return ne.lineGutter.style.width="",ne.lineNumInnerWidth=Math.max(Fe,ne.lineGutter.offsetWidth-mt)+1,ne.lineNumWidth=ne.lineNumInnerWidth+mt,ne.lineNumChars=ne.lineNumInnerWidth?q.length:-1,ne.lineGutter.style.width=ne.lineNumWidth+"px",es(k.display),!0}return!1}function yo(k,W){for(var q=[],ne=!1,le=0;le<k.length;le++){var Fe=k[le],mt=null;if(typeof Fe!="string"&&(mt=Fe.style,Fe=Fe.className),Fe=="CodeMirror-linenumbers")if(W)ne=!0;else continue;q.push({className:Fe,style:mt})}return W&&!ne&&q.push({className:"CodeMirror-linenumbers",style:null}),q}function no(k){var W=k.gutters,q=k.gutterSpecs;b(W),k.lineGutter=null;for(var ne=0;ne<q.length;++ne){var le=q[ne],Fe=le.className,mt=le.style,Ut=W.appendChild(_("div",null,"CodeMirror-gutter "+Fe));mt&&(Ut.style.cssText=mt),Fe=="CodeMirror-linenumbers"&&(k.lineGutter=Ut,Ut.style.width=(k.lineNumWidth||1)+"px")}W.style.display=q.length?"":"none",es(k)}function Jo(k){no(k.display),da(k),ys(k)}function Go(k,W,q,ne){var le=this;this.input=q,le.scrollbarFiller=_("div",null,"CodeMirror-scrollbar-filler"),le.scrollbarFiller.setAttribute("cm-not-content","true"),le.gutterFiller=_("div",null,"CodeMirror-gutter-filler"),le.gutterFiller.setAttribute("cm-not-content","true"),le.lineDiv=L("div",null,"CodeMirror-code"),le.selectionDiv=_("div",null,null,"position: relative; z-index: 1"),le.cursorDiv=_("div",null,"CodeMirror-cursors"),le.measure=_("div",null,"CodeMirror-measure"),le.lineMeasure=_("div",null,"CodeMirror-measure"),le.lineSpace=L("div",[le.measure,le.lineMeasure,le.selectionDiv,le.cursorDiv,le.lineDiv],null,"position: relative; outline: none");var Fe=L("div",[le.lineSpace],"CodeMirror-lines");le.mover=_("div",[Fe],null,"position: relative"),le.sizer=_("div",[le.mover],"CodeMirror-sizer"),le.sizerWidth=null,le.heightForcer=_("div",null,null,"position: absolute; height: "+Y+"px; width: 1px;"),le.gutters=_("div",null,"CodeMirror-gutters"),le.lineGutter=null,le.scroller=_("div",[le.sizer,le.heightForcer,le.gutters],"CodeMirror-scroll"),le.scroller.setAttribute("tabIndex","-1"),le.wrapper=_("div",[le.scrollbarFiller,le.gutterFiller,le.scroller],"CodeMirror"),f&&c<8&&(le.gutters.style.zIndex=-1,le.scroller.style.paddingRight=0),!o&&!(T&&u)&&(le.scroller.draggable=!0),k&&(k.appendChild?k.appendChild(le.wrapper):k(le.wrapper)),le.viewFrom=le.viewTo=W.first,le.reportedViewFrom=le.reportedViewTo=W.first,le.view=[],le.renderedView=null,le.externalMeasured=null,le.viewOffset=0,le.lastWrapHeight=le.lastWrapWidth=0,le.updateLineNumbers=null,le.nativeBarWidth=le.barHeight=le.barWidth=0,le.scrollbarsClipped=!1,le.lineNumWidth=le.lineNumInnerWidth=le.lineNumChars=null,le.alignWidgets=!1,le.cachedCharWidth=le.cachedTextHeight=le.cachedPaddingH=null,le.maxLine=null,le.maxLineLength=0,le.maxLineChanged=!1,le.wheelDX=le.wheelDY=le.wheelStartX=le.wheelStartY=null,le.shift=!1,le.selForContextMenu=null,le.activeTouch=null,le.gutterSpecs=yo(ne.gutters,ne.lineNumbers),no(le),q.init(le)}var xt=0,Ft=null;f?Ft=-.53:T?Ft=15:a?Ft=-.7:e&&(Ft=-1/3);function An(k){var W=k.wheelDeltaX,q=k.wheelDeltaY;return W==null&&k.detail&&k.axis==k.HORIZONTAL_AXIS&&(W=k.detail),q==null&&k.detail&&k.axis==k.VERTICAL_AXIS?q=k.detail:q==null&&(q=k.wheelDelta),{x:W,y:q}}function Hn(k){var W=An(k);return W.x*=Ft,W.y*=Ft,W}function hi(k,W){var q=An(W),ne=q.x,le=q.y,Fe=k.display,mt=Fe.scroller,Ut=mt.scrollWidth>mt.clientWidth,nr=mt.scrollHeight>mt.clientHeight;if(!(ne&&Ut||le&&nr))return;if(le&&h&&o){e:for(var lr=W.target,Sn=Fe.view;lr!=mt;lr=lr.parentNode)for(var Bn=0;Bn<Sn.length;Bn++)if(Sn[Bn].node==lr){k.display.currentWheelTarget=lr;break e}}if(ne&&!T&&!n&&Ft!=null){le&&nr&&Gi(k,Math.max(0,mt.scrollTop+le*Ft)),ya(k,Math.max(0,mt.scrollLeft+ne*Ft)),(!le||le&&nr)&&Be(W),Fe.wheelStartX=null;return}if(le&&Ft!=null){var Zn=le*Ft,ni=k.doc.scrollTop,Pi=ni+Fe.wrapper.clientHeight;Zn<0?ni=Math.max(0,ni+Zn-50):Pi=Math.min(k.doc.height,Pi+Zn+50),Ss(k,{top:ni,bottom:Pi})}xt<20&&(Fe.wheelStartX==null?(Fe.wheelStartX=mt.scrollLeft,Fe.wheelStartY=mt.scrollTop,Fe.wheelDX=ne,Fe.wheelDY=le,setTimeout(function(){if(Fe.wheelStartX==null)return;var Ji=mt.scrollLeft-Fe.wheelStartX,ua=mt.scrollTop-Fe.wheelStartY,la=ua&&Fe.wheelDY&&ua/Fe.wheelDY||Ji&&Fe.wheelDX&&Ji/Fe.wheelDX;if(Fe.wheelStartX=Fe.wheelStartY=null,!la)return;Ft=(Ft*xt+la)/(xt+1),++xt},200)):(Fe.wheelDX+=ne,Fe.wheelDY+=le))}var At=function(W,q){this.ranges=W,this.primIndex=q};At.prototype.primary=function(){return this.ranges[this.primIndex]},At.prototype.equals=function(k){if(k==this)return!0;if(k.primIndex!=this.primIndex||k.ranges.length!=this.ranges.length)return!1;for(var W=0;W<this.ranges.length;W++){var q=this.ranges[W],ne=k.ranges[W];if(!bt(q.anchor,ne.anchor)||!bt(q.head,ne.head))return!1}return!0},At.prototype.deepCopy=function(){for(var k=[],W=0;W<this.ranges.length;W++)k[W]=new se(kt(this.ranges[W].anchor),kt(this.ranges[W].head));return new At(k,this.primIndex)},At.prototype.somethingSelected=function(){for(var k=0;k<this.ranges.length;k++)if(!this.ranges[k].empty())return!0;return!1},At.prototype.contains=function(k,W){W||(W=k);for(var q=0;q<this.ranges.length;q++){var ne=this.ranges[q];if(at(W,ne.from())>=0&&at(k,ne.to())<=0)return q}return-1};var se=function(W,q){this.anchor=W,this.head=q};se.prototype.from=function(){return Et(this.anchor,this.head)},se.prototype.to=function(){return Pt(this.anchor,this.head)},se.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ge(k,W,q){var ne=k&&k.options.selectionsMayTouch,le=W[q];W.sort(function(Zn,ni){return at(Zn.from(),ni.from())}),q=z(W,le);for(var Fe=1;Fe<W.length;Fe++){var mt=W[Fe],Ut=W[Fe-1],nr=at(Ut.to(),mt.from());if(ne&&!mt.empty()?nr>0:nr>=0){var lr=Et(Ut.from(),mt.from()),Sn=Pt(Ut.to(),mt.to()),Bn=Ut.empty()?mt.from()==mt.head:Ut.from()==Ut.head;Fe<=q&&--q,W.splice(--Fe,2,new se(Bn?Sn:lr,Bn?lr:Sn))}}return new At(W,q)}function Se(k,W){return new At([new se(k,W||k)],0)}function We(k){return k.text?_t(k.from.line+k.text.length-1,ce(k.text).length+(k.text.length==1?k.from.ch:0)):k.to}function vt(k,W){if(at(k,W.from)<0)return k;if(at(k,W.to)<=0)return We(W);var q=k.line+W.text.length-(W.to.line-W.from.line)-1,ne=k.ch;return k.line==W.to.line&&(ne+=We(W).ch-W.to.ch),_t(q,ne)}function Yt(k,W){for(var q=[],ne=0;ne<k.sel.ranges.length;ne++){var le=k.sel.ranges[ne];q.push(new se(vt(le.anchor,W),vt(le.head,W)))}return ge(k.cm,q,k.sel.primIndex)}function Rr(k,W,q){return k.line==W.line?_t(q.line,k.ch-W.ch+q.ch):_t(q.line+(k.line-W.line),k.ch)}function Yr(k,W,q){for(var ne=[],le=_t(k.first,0),Fe=le,mt=0;mt<W.length;mt++){var Ut=W[mt],nr=Rr(Ut.from,le,Fe),lr=Rr(We(Ut),le,Fe);if(le=Ut.to,Fe=lr,q=="around"){var Sn=k.sel.ranges[mt],Bn=at(Sn.head,Sn.anchor)<0;ne[mt]=new se(Bn?lr:nr,Bn?nr:lr)}else ne[mt]=new se(nr,nr)}return new At(ne,k.sel.primIndex)}function mn(k){k.doc.mode=wi(k.options,k.doc.modeOption),Wn(k)}function Wn(k){k.doc.iter(function(W){W.stateAfter&&(W.stateAfter=null),W.styles&&(W.styles=null)}),k.doc.modeFrontier=k.doc.highlightFrontier=k.doc.first,Qo(k,100),k.state.modeGen++,k.curOp&&da(k)}function Jn(k,W){return W.from.ch==0&&W.to.ch==0&&ce(W.text)==""&&(!k.cm||k.cm.options.wholeLineUpdateBefore)}function ri(k,W,q,ne){function le(oa){return q?q[oa]:null}function Fe(oa,xa,Ma){Zr(oa,xa,Ma,ne),dr(oa,"change",oa,W)}function mt(oa,xa){for(var Ma=[],To=oa;To<xa;++To)Ma.push(new ei(lr[To],le(To),ne));return Ma}var Ut=W.from,nr=W.to,lr=W.text,Sn=Ee(k,Ut.line),Bn=Ee(k,nr.line),Zn=ce(lr),ni=le(lr.length-1),Pi=nr.line-Ut.line;if(W.full)k.insert(0,mt(0,lr.length)),k.remove(lr.length,k.size-lr.length);else if(Jn(k,W)){var Ji=mt(0,lr.length-1);Fe(Bn,Bn.text,ni),Pi&&k.remove(Ut.line,Pi),Ji.length&&k.insert(Ut.line,Ji)}else if(Sn==Bn)if(lr.length==1)Fe(Sn,Sn.text.slice(0,Ut.ch)+Zn+Sn.text.slice(nr.ch),ni);else{var ua=mt(1,lr.length-1);ua.push(new ei(Zn+Sn.text.slice(nr.ch),ni,ne)),Fe(Sn,Sn.text.slice(0,Ut.ch)+lr[0],le(0)),k.insert(Ut.line+1,ua)}else if(lr.length==1)Fe(Sn,Sn.text.slice(0,Ut.ch)+lr[0]+Bn.text.slice(nr.ch),le(0)),k.remove(Ut.line+1,Pi);else{Fe(Sn,Sn.text.slice(0,Ut.ch)+lr[0],le(0)),Fe(Bn,Zn+Bn.text.slice(nr.ch),ni);var la=mt(1,lr.length-1);Pi>1&&k.remove(Ut.line+1,Pi-1),k.insert(Ut.line+1,la)}dr(k,"change",k,W)}function Ii(k,W,q){function ne(le,Fe,mt){if(le.linked)for(var Ut=0;Ut<le.linked.length;++Ut){var nr=le.linked[Ut];if(nr.doc==Fe)continue;var lr=mt&&nr.sharedHist;if(q&&!lr)continue;W(nr.doc,lr),ne(nr.doc,le,lr)}}ne(k,null,!0)}function Yi(k,W){if(W.cm)throw new Error("This document is already in use.");k.doc=W,W.cm=k,Ao(k),mn(k),ma(k),k.options.lineWrapping||Nn(k),k.options.mode=W.modeOption,da(k)}function ma(k){(k.doc.direction=="rtl"?B:w)(k.display.lineDiv,"CodeMirror-rtl")}function Ta(k){ho(k,function(){ma(k),da(k)})}function uo(k){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=k||1}function bo(k,W){var q={from:kt(W.from),to:We(W),text:je(k,W.from,W.to)};return ps(k,q,W.from.line,W.to.line+1),Ii(k,function(ne){return ps(ne,q,W.from.line,W.to.line+1)},!0),q}function co(k){for(;k.length;){var W=ce(k);if(W.ranges)k.pop();else break}}function Zo(k,W){if(W)return co(k.done),ce(k.done);if(k.done.length&&!ce(k.done).ranges)return ce(k.done);if(k.done.length>1&&!k.done[k.done.length-2].ranges)return k.done.pop(),ce(k.done)}function Oo(k,W,q,ne){var le=k.history;le.undone.length=0;var Fe=+new Date,mt,Ut;if((le.lastOp==ne||le.lastOrigin==W.origin&&W.origin&&(W.origin.charAt(0)=="+"&&le.lastModTime>Fe-(k.cm?k.cm.options.historyEventDelay:500)||W.origin.charAt(0)=="*"))&&(mt=Zo(le,le.lastOp==ne)))Ut=ce(mt.changes),at(W.from,W.to)==0&&at(W.from,Ut.to)==0?Ut.to=We(W):mt.changes.push(bo(k,W));else{var nr=ce(le.done);for((!nr||!nr.ranges)&&Ya(k.sel,le.done),mt={changes:[bo(k,W)],generation:le.generation},le.done.push(mt);le.done.length>le.undoDepth;)le.done.shift(),le.done[0].ranges||le.done.shift()}le.done.push(q),le.generation=++le.maxGeneration,le.lastModTime=le.lastSelTime=Fe,le.lastOp=le.lastSelOp=ne,le.lastOrigin=le.lastSelOrigin=W.origin,Ut||dt(k,"historyAdded")}function Do(k,W,q,ne){var le=W.charAt(0);return le=="*"||le=="+"&&q.ranges.length==ne.ranges.length&&q.somethingSelected()==ne.somethingSelected()&&new Date-k.history.lastSelTime<=(k.cm?k.cm.options.historyEventDelay:500)}function Ha(k,W,q,ne){var le=k.history,Fe=ne&&ne.origin;q==le.lastSelOp||Fe&&le.lastSelOrigin==Fe&&(le.lastModTime==le.lastSelTime&&le.lastOrigin==Fe||Do(k,Fe,ce(le.done),W))?le.done[le.done.length-1]=W:Ya(W,le.done),le.lastSelTime=+new Date,le.lastSelOrigin=Fe,le.lastSelOp=q,ne&&ne.clearRedo!==!1&&co(le.undone)}function Ya(k,W){var q=ce(W);q&&q.ranges&&q.equals(k)||W.push(k)}function ps(k,W,q,ne){var le=W["spans_"+k.id],Fe=0;k.iter(Math.max(k.first,q),Math.min(k.first+k.size,ne),function(mt){mt.markedSpans&&((le||(le=W["spans_"+k.id]={}))[Fe]=mt.markedSpans),++Fe})}function ts(k){if(!k)return null;for(var W,q=0;q<k.length;++q)k[q].marker.explicitlyCleared?W||(W=k.slice(0,q)):W&&W.push(k[q]);return W?W.length?W:null:k}function $o(k,W){var q=W["spans_"+k.id];if(!q)return null;for(var ne=[],le=0;le<W.text.length;++le)ne.push(ts(q[le]));return ne}function Ds(k,W){var q=$o(k,W),ne=gn(k,W);if(!q)return ne;if(!ne)return q;for(var le=0;le<q.length;++le){var Fe=q[le],mt=ne[le];if(Fe&&mt){e:for(var Ut=0;Ut<mt.length;++Ut){for(var nr=mt[Ut],lr=0;lr<Fe.length;++lr)if(Fe[lr].marker==nr.marker)continue e;Fe.push(nr)}}else mt&&(q[le]=mt)}return q}function Hs(k,W,q){for(var ne=[],le=0;le<k.length;++le){var Fe=k[le];if(Fe.ranges){ne.push(q?At.prototype.deepCopy.call(Fe):Fe);continue}var mt=Fe.changes,Ut=[];ne.push({changes:Ut});for(var nr=0;nr<mt.length;++nr){var lr=mt[nr],Sn=void 0;if(Ut.push({from:lr.from,to:lr.to,text:lr.text}),W)for(var Bn in lr)(Sn=Bn.match(/^spans_(\d+)$/))&&(z(W,Number(Sn[1]))>-1&&(ce(Ut)[Bn]=lr[Bn],delete lr[Bn]))}}return ne}function xs(k,W,q,ne){if(ne){var le=k.anchor;if(q){var Fe=at(W,le)<0;Fe!=at(q,le)<0?(le=W,W=q):Fe!=at(W,q)<0&&(W=q)}return new se(le,W)}else return new se(q||W,W)}function Xo(k,W,q,ne,le){le==null&&(le=k.cm&&(k.cm.display.shift||k.extend)),as(k,new At([xs(k.sel.primary(),W,q,le)],0),ne)}function Js(k,W,q){for(var ne=[],le=k.cm&&(k.cm.display.shift||k.extend),Fe=0;Fe<k.sel.ranges.length;Fe++)ne[Fe]=xs(k.sel.ranges[Fe],W[Fe],null,le);var mt=ge(k.cm,ne,k.sel.primIndex);as(k,mt,q)}function Cs(k,W,q,ne){var le=k.sel.ranges.slice(0);le[W]=q,as(k,ge(k.cm,le,k.sel.primIndex),ne)}function fl(k,W,q,ne){as(k,Se(W,q),ne)}function sl(k,W,q){var ne={ranges:W.ranges,update:function(Fe){this.ranges=[];for(var mt=0;mt<Fe.length;mt++)this.ranges[mt]=new se(ot(k,Fe[mt].anchor),ot(k,Fe[mt].head))},origin:q&&q.origin};return dt(k,"beforeSelectionChange",k,ne),k.cm&&dt(k.cm,"beforeSelectionChange",k.cm,ne),ne.ranges!=W.ranges?ge(k.cm,ne.ranges,ne.ranges.length-1):W}function Ks(k,W,q){var ne=k.history.done,le=ce(ne);le&&le.ranges?(ne[ne.length-1]=W,ha(k,W,q)):as(k,W,q)}function as(k,W,q){ha(k,W,q),Ha(k,k.sel,k.cm?k.cm.curOp.id:NaN,q)}function ha(k,W,q){(Ct(k,"beforeSelectionChange")||k.cm&&Ct(k.cm,"beforeSelectionChange"))&&(W=sl(k,W,q));var ne=q&&q.bias||(at(W.primary().head,k.sel.primary().head)<0?-1:1);Zs(k,lo(k,W,ne,!0)),!(q&&q.scroll===!1)&&k.cm&&aa(k.cm)}function Zs(k,W){if(W.equals(k.sel))return;k.sel=W,k.cm&&(k.cm.curOp.updateInput=1,k.cm.curOp.selectionChanged=!0,Tt(k.cm)),dr(k,"cursorActivity",k)}function ll(k){Zs(k,lo(k,k.sel,null,!1))}function lo(k,W,q,ne){for(var le,Fe=0;Fe<W.ranges.length;Fe++){var mt=W.ranges[Fe],Ut=W.ranges.length==k.sel.ranges.length&&k.sel.ranges[Fe],nr=Fo(k,mt.anchor,Ut&&Ut.anchor,q,ne),lr=Fo(k,mt.head,Ut&&Ut.head,q,ne);(le||nr!=mt.anchor||lr!=mt.head)&&(le||(le=W.ranges.slice(0,Fe)),le[Fe]=new se(nr,lr))}return le?ge(k.cm,le,W.primIndex):W}function Ka(k,W,q,ne,le){var Fe=Ee(k,W.line);if(Fe.markedSpans)for(var mt=0;mt<Fe.markedSpans.length;++mt){var Ut=Fe.markedSpans[mt],nr=Ut.marker,lr="selectLeft"in nr?!nr.selectLeft:nr.inclusiveLeft,Sn="selectRight"in nr?!nr.selectRight:nr.inclusiveRight;if((Ut.from==null||(lr?Ut.from<=W.ch:Ut.from<W.ch))&&(Ut.to==null||(Sn?Ut.to>=W.ch:Ut.to>W.ch))){if(le&&(dt(nr,"beforeCursorEnter"),nr.explicitlyCleared))if(Fe.markedSpans){--mt;continue}else break;if(!nr.atomic)continue;if(q){var Bn=nr.find(ne<0?1:-1),Zn=void 0;if((ne<0?Sn:lr)&&(Bn=Ko(k,Bn,-ne,Bn&&Bn.line==W.line?Fe:null)),Bn&&Bn.line==W.line&&(Zn=at(Bn,q))&&(ne<0?Zn<0:Zn>0))return Ka(k,Bn,W,ne,le)}var ni=nr.find(ne<0?-1:1);return(ne<0?lr:Sn)&&(ni=Ko(k,ni,ne,ni.line==W.line?Fe:null)),ni?Ka(k,ni,W,ne,le):null}}return W}function Fo(k,W,q,ne,le){var Fe=ne||1,mt=Ka(k,W,q,Fe,le)||!le&&Ka(k,W,q,Fe,!0)||Ka(k,W,q,-Fe,le)||!le&&Ka(k,W,q,-Fe,!0);return mt||(k.cantEdit=!0,_t(k.first,0))}function Ko(k,W,q,ne){return q<0&&W.ch==0?W.line>k.first?ot(k,_t(W.line-1)):null:q>0&&W.ch==(ne||Ee(k,W.line)).text.length?W.line<k.first+k.size-1?_t(W.line+1,0):null:new _t(W.line,W.ch+q)}function Wo(k){k.setSelection(_t(k.firstLine(),0),_t(k.lastLine()),fe)}function Co(k,W,q){var ne={canceled:!1,from:W.from,to:W.to,text:W.text,origin:W.origin,cancel:function(){return ne.canceled=!0}};return q&&(ne.update=function(le,Fe,mt,Ut){le&&(ne.from=ot(k,le)),Fe&&(ne.to=ot(k,Fe)),mt&&(ne.text=mt),Ut!==void 0&&(ne.origin=Ut)}),dt(k,"beforeChange",k,ne),k.cm&&dt(k.cm,"beforeChange",k.cm,ne),ne.canceled?(k.cm&&(k.cm.curOp.updateInput=2),null):{from:ne.from,to:ne.to,text:ne.text,origin:ne.origin}}function is(k,W,q){if(k.cm){if(!k.cm.curOp)return No(k.cm,is)(k,W,q);if(k.cm.state.suppressEdits)return}if((Ct(k,"beforeChange")||k.cm&&Ct(k.cm,"beforeChange"))&&(W=Co(k,W,!0),!W))return;var ne=Qe&&!q&&vn(k,W.from,W.to);if(ne)for(var le=ne.length-1;le>=0;--le)ms(k,{from:ne[le].from,to:ne[le].to,text:le?[""]:W.text,origin:W.origin});else ms(k,W)}function ms(k,W){if(W.text.length==1&&W.text[0]==""&&at(W.from,W.to)==0)return;var q=Yt(k,W);Oo(k,W,q,k.cm?k.cm.curOp.id:NaN),el(k,W,q,gn(k,W));var ne=[];Ii(k,function(le,Fe){!Fe&&z(ne,le.history)==-1&&(Ws(le.history,W),ne.push(le.history)),el(le,W,null,gn(le,W))})}function Rs(k,W,q){var ne=k.cm&&k.cm.state.suppressEdits;if(ne&&!q)return;for(var le=k.history,Fe,mt=k.sel,Ut=W=="undo"?le.done:le.undone,nr=W=="undo"?le.undone:le.done,lr=0;lr<Ut.length&&!(Fe=Ut[lr],q?Fe.ranges&&!Fe.equals(k.sel):!Fe.ranges);lr++);if(lr==Ut.length)return;for(le.lastOrigin=le.lastSelOrigin=null;;)if(Fe=Ut.pop(),Fe.ranges){if(Ya(Fe,nr),q&&!Fe.equals(k.sel)){as(k,Fe,{clearRedo:!1});return}mt=Fe}else if(ne){Ut.push(Fe);return}else break;var Sn=[];Ya(mt,nr),nr.push({changes:Sn,generation:le.generation}),le.generation=Fe.generation||++le.maxGeneration;for(var Bn=Ct(k,"beforeChange")||k.cm&&Ct(k.cm,"beforeChange"),Zn=function(ua){var la=Fe.changes[ua];if(la.origin=W,Bn&&!Co(k,la,!1))return Ut.length=0,{};Sn.push(bo(k,la));var oa=ua?Yt(k,la):ce(Ut);el(k,la,oa,Ds(k,la)),!ua&&k.cm&&k.cm.scrollIntoView({from:la.from,to:We(la)});var xa=[];Ii(k,function(Ma,To){!To&&z(xa,Ma.history)==-1&&(Ws(Ma.history,la),xa.push(Ma.history)),el(Ma,la,null,Ds(Ma,la))})},ni=Fe.changes.length-1;ni>=0;--ni){var Pi=Zn(ni);if(Pi)return Pi.v}}function Us(k,W){if(W==0)return;if(k.first+=W,k.sel=new At(Pe(k.sel.ranges,function(le){return new se(_t(le.anchor.line+W,le.anchor.ch),_t(le.head.line+W,le.head.ch))}),k.sel.primIndex),k.cm){da(k.cm,k.first,k.first-W,W);for(var q=k.cm.display,ne=q.viewFrom;ne<q.viewTo;ne++)rt(k.cm,ne,"gutter")}}function el(k,W,q,ne){if(k.cm&&!k.cm.curOp)return No(k.cm,el)(k,W,q,ne);if(W.to.line<k.first){Us(k,W.text.length-1-(W.to.line-W.from.line));return}if(W.from.line>k.lastLine())return;if(W.from.line<k.first){var le=W.text.length-1-(k.first-W.from.line);Us(k,le),W={from:_t(k.first,0),to:_t(W.to.line+le,W.to.ch),text:[ce(W.text)],origin:W.origin}}var Fe=k.lastLine();W.to.line>Fe&&(W={from:W.from,to:_t(Fe,Ee(k,Fe).text.length),text:[W.text[0]],origin:W.origin}),W.removed=je(k,W.from,W.to),q||(q=Yt(k,W)),k.cm?Qs(k.cm,W,ne):ri(k,W,ne),ha(k,q,fe),k.cantEdit&&Fo(k,_t(k.firstLine(),0))&&(k.cantEdit=!1)}function Qs(k,W,q){var ne=k.doc,le=k.display,Fe=W.from,mt=W.to,Ut=!1,nr=Fe.line;k.options.lineWrapping||(nr=wt(ir(Ee(ne,Fe.line))),ne.iter(nr,mt.line+1,function(ni){if(ni==le.maxLine)return Ut=!0,!0})),ne.sel.contains(W.from,W.to)>-1&&Tt(k),ri(ne,W,q,_o(k)),k.options.lineWrapping||(ne.iter(nr,Fe.line+W.text.length,function(ni){var Pi=jn(ni);Pi>le.maxLineLength&&(le.maxLine=ni,le.maxLineLength=Pi,le.maxLineChanged=!0,Ut=!1)}),Ut&&(k.curOp.updateMaxLine=!0)),Ue(ne,Fe.line),Qo(k,400);var lr=W.text.length-(mt.line-Fe.line)-1;W.full?da(k):Fe.line==mt.line&&W.text.length==1&&!Jn(k.doc,W)?rt(k,Fe.line,"text"):da(k,Fe.line,mt.line+1,lr);var Sn=Ct(k,"changes"),Bn=Ct(k,"change");if(Bn||Sn){var Zn={from:Fe,to:mt,text:W.text,removed:W.removed,origin:W.origin};Bn&&dr(k,"change",k,Zn),Sn&&(k.curOp.changeObjs||(k.curOp.changeObjs=[])).push(Zn)}k.display.selForContextMenu=null}function tl(k,W,q,ne,le){var Fe;ne||(ne=q),at(ne,q)<0&&(Fe=[ne,q],q=Fe[0],ne=Fe[1]),typeof W=="string"&&(W=k.splitLines(W)),is(k,{from:q,to:ne,text:W,origin:le})}function _s(k,W,q,ne){q<k.line?k.line+=ne:W<k.line&&(k.line=W,k.ch=0)}function Ts(k,W,q,ne){for(var le=0;le<k.length;++le){var Fe=k[le],mt=!0;if(Fe.ranges){Fe.copied||(Fe=k[le]=Fe.deepCopy(),Fe.copied=!0);for(var Ut=0;Ut<Fe.ranges.length;Ut++)_s(Fe.ranges[Ut].anchor,W,q,ne),_s(Fe.ranges[Ut].head,W,q,ne);continue}for(var nr=0;nr<Fe.changes.length;++nr){var lr=Fe.changes[nr];if(q<lr.from.line)lr.from=_t(lr.from.line+ne,lr.from.ch),lr.to=_t(lr.to.line+ne,lr.to.ch);else if(W<=lr.to.line){mt=!1;break}}mt||(k.splice(0,le+1),le=0)}}function Ws(k,W){var q=W.from.line,ne=W.to.line,le=W.text.length-(ne-q)-1;Ts(k.done,q,ne,le),Ts(k.undone,q,ne,le)}function Os(k,W,q,ne){var le=W,Fe=W;return typeof W=="number"?Fe=Ee(k,Ht(k,W)):le=wt(W),le==null?null:(ne(Fe,le)&&k.cm&&rt(k.cm,le,q),Fe)}function zs(k){this.lines=k,this.parent=null;for(var W=0,q=0;q<k.length;++q)k[q].parent=this,W+=k[q].height;this.height=W}zs.prototype={chunkSize:function(){return this.lines.length},removeInner:function(W,q){for(var ne=W,le=W+q;ne<le;++ne){var Fe=this.lines[ne];this.height-=Fe.height,br(Fe),dr(Fe,"delete")}this.lines.splice(W,q)},collapse:function(W){W.push.apply(W,this.lines)},insertInner:function(W,q,ne){this.height+=ne,this.lines=this.lines.slice(0,W).concat(q).concat(this.lines.slice(W));for(var le=0;le<q.length;++le)q[le].parent=this},iterN:function(W,q,ne){for(var le=W+q;W<le;++W)if(ne(this.lines[W]))return!0}};function Tl(k){this.children=k;for(var W=0,q=0,ne=0;ne<k.length;++ne){var le=k[ne];W+=le.chunkSize(),q+=le.height,le.parent=this}this.size=W,this.height=q,this.parent=null}Tl.prototype={chunkSize:function(){return this.size},removeInner:function(W,q){this.size-=q;for(var ne=0;ne<this.children.length;++ne){var le=this.children[ne],Fe=le.chunkSize();if(W<Fe){var mt=Math.min(q,Fe-W),Ut=le.height;if(le.removeInner(W,mt),this.height-=Ut-le.height,Fe==mt&&(this.children.splice(ne--,1),le.parent=null),(q-=mt)==0)break;W=0}else W-=Fe}if(this.size-q<25&&(this.children.length>1||!(this.children[0]instanceof zs))){var nr=[];this.collapse(nr),this.children=[new zs(nr)],this.children[0].parent=this}},collapse:function(W){for(var q=0;q<this.children.length;++q)this.children[q].collapse(W)},insertInner:function(W,q,ne){this.size+=q.length,this.height+=ne;for(var le=0;le<this.children.length;++le){var Fe=this.children[le],mt=Fe.chunkSize();if(W<=mt){if(Fe.insertInner(W,q,ne),Fe.lines&&Fe.lines.length>50){for(var Ut=Fe.lines.length%25+25,nr=Ut;nr<Fe.lines.length;){var lr=new zs(Fe.lines.slice(nr,nr+=25));Fe.height-=lr.height,this.children.splice(++le,0,lr),lr.parent=this}Fe.lines=Fe.lines.slice(0,Ut),this.maybeSpill()}break}W-=mt}},maybeSpill:function(){if(this.children.length<=10)return;var W=this;do{var q=W.children.splice(W.children.length-5,5),ne=new Tl(q);if(W.parent){W.size-=ne.size,W.height-=ne.height;var Fe=z(W.parent.children,W);W.parent.children.splice(Fe+1,0,ne)}else{var le=new Tl(W.children);le.parent=W,W.children=[le,ne],W=le}ne.parent=W.parent}while(W.children.length>10);W.parent.maybeSpill()},iterN:function(W,q,ne){for(var le=0;le<this.children.length;++le){var Fe=this.children[le],mt=Fe.chunkSize();if(W<mt){var Ut=Math.min(q,mt-W);if(Fe.iterN(W,Ut,ne))return!0;if((q-=Ut)==0)break;W=0}else W-=mt}}};var Sl=function(W,q,ne){if(ne)for(var le in ne)ne.hasOwnProperty(le)&&(this[le]=ne[le]);this.doc=W,this.node=q};Sl.prototype.clear=function(){var k=this.doc.cm,W=this.line.widgets,q=this.line,ne=wt(q);if(ne==null||!W)return;for(var le=0;le<W.length;++le)W[le]==this&&W.splice(le--,1);W.length||(q.widgets=null);var Fe=rn(this);$e(q,Math.max(0,q.height-Fe)),k&&(ho(k,function(){Ol(k,q,-Fe),rt(k,ne,"widget")}),dr(k,"lineWidgetCleared",k,this,ne))},Sl.prototype.changed=function(){var k=this,W=this.height,q=this.doc.cm,ne=this.line;this.height=null;var le=rn(this)-W;if(!le)return;Cr(this.doc,ne)||$e(ne,ne.height+le),q&&ho(q,function(){q.curOp.forceUpdate=!0,Ol(q,ne,le),dr(q,"lineWidgetChanged",q,k,wt(ne))})},Nt(Sl);function Ol(k,W,q){Kr(W)<(k.curOp&&k.curOp.scrollTop||k.doc.scrollTop)&&Qi(k,q)}function Yl(k,W,q,ne){var le=new Sl(k,q,ne),Fe=k.cm;return Fe&&le.noHScroll&&(Fe.display.alignWidgets=!0),Os(k,W,"widget",function(mt){var Ut=mt.widgets||(mt.widgets=[]);if(le.insertAt==null?Ut.push(le):Ut.splice(Math.min(Ut.length-1,Math.max(0,le.insertAt)),0,le),le.line=mt,Fe&&!Cr(k,mt)){var nr=Kr(mt)<k.scrollTop;$e(mt,mt.height+rn(le)),nr&&Qi(Fe,le.height),Fe.curOp.forceUpdate=!0}return!0}),Fe&&dr(Fe,"lineWidgetAdded",Fe,le,typeof W=="number"?W:wt(W)),le}var yu=0,ul=function(W,q){this.lines=[],this.type=q,this.doc=W,this.id=++yu};ul.prototype.clear=function(){if(this.explicitlyCleared)return;var k=this.doc.cm,W=k&&!k.curOp;if(W&&Mo(k),Ct(this,"clear")){var q=this.find();q&&dr(this,"clear",q.from,q.to)}for(var ne=null,le=null,Fe=0;Fe<this.lines.length;++Fe){var mt=this.lines[Fe],Ut=Jt(mt.markedSpans,this);k&&!this.collapsed?rt(k,wt(mt),"text"):k&&(Ut.to!=null&&(le=wt(mt)),Ut.from!=null&&(ne=wt(mt))),mt.markedSpans=kr(mt.markedSpans,Ut),Ut.from==null&&this.collapsed&&!Cr(this.doc,mt)&&k&&$e(mt,to(k.display))}if(k&&this.collapsed&&!k.options.lineWrapping)for(var nr=0;nr<this.lines.length;++nr){var lr=ir(this.lines[nr]),Sn=jn(lr);Sn>k.display.maxLineLength&&(k.display.maxLine=lr,k.display.maxLineLength=Sn,k.display.maxLineChanged=!0)}ne!=null&&k&&this.collapsed&&da(k,ne,le+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,k&&ll(k.doc)),k&&dr(k,"markerCleared",k,this,ne,le),W&&Fa(k),this.parent&&this.parent.clear()},ul.prototype.find=function(k,W){k==null&&this.type=="bookmark"&&(k=1);for(var q,ne,le=0;le<this.lines.length;++le){var Fe=this.lines[le],mt=Jt(Fe.markedSpans,this);if(mt.from!=null&&(q=_t(W?Fe:wt(Fe),mt.from),k==-1))return q;if(mt.to!=null&&(ne=_t(W?Fe:wt(Fe),mt.to),k==1))return ne}return q&&{from:q,to:ne}},ul.prototype.changed=function(){var k=this,W=this.find(-1,!0),q=this,ne=this.doc.cm;if(!W||!ne)return;ho(ne,function(){var le=W.line,Fe=wt(W.line),mt=Ci(ne,Fe);if(mt&&(ra(mt),ne.curOp.selectionChanged=ne.curOp.forceUpdate=!0),ne.curOp.updateMaxLine=!0,!Cr(q.doc,le)&&q.height!=null){var Ut=q.height;q.height=null;var nr=rn(q)-Ut;nr&&$e(le,le.height+nr)}dr(ne,"markerChanged",ne,k)})},ul.prototype.attachLine=function(k){if(!this.lines.length&&this.doc.cm){var W=this.doc.cm.curOp;(!W.maybeHiddenMarkers||z(W.maybeHiddenMarkers,this)==-1)&&(W.maybeUnhiddenMarkers||(W.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(k)},ul.prototype.detachLine=function(k){if(this.lines.splice(z(this.lines,k),1),!this.lines.length&&this.doc.cm){var W=this.doc.cm.curOp;(W.maybeHiddenMarkers||(W.maybeHiddenMarkers=[])).push(this)}},Nt(ul);function Rl(k,W,q,ne,le){if(ne&&ne.shared)return bu(k,W,q,ne,le);if(k.cm&&!k.cm.curOp)return No(k.cm,Rl)(k,W,q,ne,le);var Fe=new ul(k,le),mt=at(W,q);if(ne&&K(ne,Fe,!1),mt>0||mt==0&&Fe.clearWhenEmpty!==!1)return Fe;if(Fe.replacedWith&&(Fe.collapsed=!0,Fe.widgetNode=L("span",[Fe.replacedWith],"CodeMirror-widget"),ne.handleMouseEvents||Fe.widgetNode.setAttribute("cm-ignore-events","true"),ne.insertLeft&&(Fe.widgetNode.insertLeft=!0)),Fe.collapsed){if(Dr(k,W.line,W,q,Fe)||W.line!=q.line&&Dr(k,q.line,W,q,Fe))throw new Error("Inserting collapsed marker partially overlapping an existing one");yt()}Fe.addToHistory&&Oo(k,{from:W,to:q,origin:"markText"},k.sel,NaN);var Ut=W.line,nr=k.cm,lr;if(k.iter(Ut,q.line+1,function(Bn){nr&&Fe.collapsed&&!nr.options.lineWrapping&&ir(Bn)==nr.display.maxLine&&(lr=!0),Fe.collapsed&&Ut!=W.line&&$e(Bn,0),_r(Bn,new ht(Fe,Ut==W.line?W.ch:null,Ut==q.line?q.ch:null)),++Ut}),Fe.collapsed&&k.iter(W.line,q.line+1,function(Bn){Cr(k,Bn)&&$e(Bn,0)}),Fe.clearOnEnter&&Te(Fe,"beforeCursorEnter",function(){return Fe.clear()}),Fe.readOnly&&(qe(),(k.history.done.length||k.history.undone.length)&&k.clearHistory()),Fe.collapsed&&(Fe.id=++yu,Fe.atomic=!0),nr){if(lr&&(nr.curOp.updateMaxLine=!0),Fe.collapsed)da(nr,W.line,q.line+1);else if(Fe.className||Fe.startStyle||Fe.endStyle||Fe.css||Fe.attributes||Fe.title)for(var Sn=W.line;Sn<=q.line;Sn++)rt(nr,Sn,"text");Fe.atomic&&ll(nr.doc),dr(nr,"markerAdded",nr,Fe)}return Fe}var zl=function(W,q){this.markers=W,this.primary=q;for(var ne=0;ne<W.length;++ne)W[ne].parent=this};zl.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var k=0;k<this.markers.length;++k)this.markers[k].clear();dr(this,"clear")},zl.prototype.find=function(k,W){return this.primary.find(k,W)},Nt(zl);function bu(k,W,q,ne,le){ne=K(ne),ne.shared=!1;var Fe=[Rl(k,W,q,ne,le)],mt=Fe[0],Ut=ne.widgetNode;return Ii(k,function(nr){Ut&&(ne.widgetNode=Ut.cloneNode(!0)),Fe.push(Rl(nr,ot(nr,W),ot(nr,q),ne,le));for(var lr=0;lr<nr.linked.length;++lr)if(nr.linked[lr].isParent)return;mt=ce(Fe)}),new zl(Fe,mt)}function wu(k){return k.findMarks(_t(k.first,0),k.clipPos(_t(k.lastLine())),function(W){return W.parent})}function cu(k,W){for(var q=0;q<W.length;q++){var ne=W[q],le=ne.find(),Fe=k.clipPos(le.from),mt=k.clipPos(le.to);if(at(Fe,mt)){var Ut=Rl(k,Fe,mt,ne.primary,ne.primary.type);ne.markers.push(Ut),Ut.parent=ne}}}function Su(k){for(var W=function(le){var Fe=k[le],mt=[Fe.primary.doc];Ii(Fe.primary.doc,function(lr){return mt.push(lr)});for(var Ut=0;Ut<Fe.markers.length;Ut++){var nr=Fe.markers[Ut];z(mt,nr.doc)==-1&&(nr.parent=null,Fe.markers.splice(Ut--,1))}},q=0;q<k.length;q++)W(q)}var Bl=0,rl=function k(W,q,ne,le,Fe){if(!(this instanceof k))return new k(W,q,ne,le,Fe);ne==null&&(ne=0),Tl.call(this,[new zs([new ei("",null)])]),this.first=ne,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ne;var mt=_t(ne,0);this.sel=Se(mt),this.history=new uo(null),this.id=++Bl,this.modeOption=q,this.lineSep=le,this.direction=Fe=="rtl"?"rtl":"ltr",this.extend=!1,typeof W=="string"&&(W=this.splitLines(W)),ri(this,{from:mt,to:mt,text:W}),as(this,Se(mt),fe)};rl.prototype=Je(Tl.prototype,{constructor:rl,iter:function(W,q,ne){ne?this.iterN(W-this.first,q-W,ne):this.iterN(this.first,this.first+this.size,W)},insert:function(W,q){for(var ne=0,le=0;le<q.length;++le)ne+=q[le].height;this.insertInner(W-this.first,q,ne)},remove:function(W,q){this.removeInner(W-this.first,q)},getValue:function(W){var q=Ve(this,this.first,this.first+this.size);return W===!1?q:q.join(W||this.lineSeparator())},setValue:jo(function(k){var W=_t(this.first,0),q=this.first+this.size-1;is(this,{from:W,to:_t(q,Ee(this,q).text.length),text:this.splitLines(k),origin:"setValue",full:!0},!0),this.cm&&fa(this.cm,0,0),as(this,Se(W),fe)}),replaceRange:function(W,q,ne,le){q=ot(this,q),ne=ne?ot(this,ne):q,tl(this,W,q,ne,le)},getRange:function(W,q,ne){var le=je(this,ot(this,W),ot(this,q));return ne===!1?le:le.join(ne||this.lineSeparator())},getLine:function(W){var q=this.getLineHandle(W);return q&&q.text},getLineHandle:function(W){if(Mr(this,W))return Ee(this,W)},getLineNumber:function(W){return wt(W)},getLineHandleVisualStart:function(W){return typeof W=="number"&&(W=Ee(this,W)),ir(W)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(W){return ot(this,W)},getCursor:function(W){var q=this.sel.primary(),ne;return W==null||W=="head"?ne=q.head:W=="anchor"?ne=q.anchor:W=="end"||W=="to"||W===!1?ne=q.to():ne=q.from(),ne},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:jo(function(k,W,q){fl(this,ot(this,typeof k=="number"?_t(k,W||0):k),null,q)}),setSelection:jo(function(k,W,q){fl(this,ot(this,k),ot(this,W||k),q)}),extendSelection:jo(function(k,W,q){Xo(this,ot(this,k),W&&ot(this,W),q)}),extendSelections:jo(function(k,W){Js(this,xr(this,k),W)}),extendSelectionsBy:jo(function(k,W){var q=Pe(this.sel.ranges,k);Js(this,xr(this,q),W)}),setSelections:jo(function(k,W,q){if(!k.length)return;for(var ne=[],le=0;le<k.length;le++)ne[le]=new se(ot(this,k[le].anchor),ot(this,k[le].head));W==null&&(W=Math.min(k.length-1,this.sel.primIndex)),as(this,ge(this.cm,ne,W),q)}),addSelection:jo(function(k,W,q){var ne=this.sel.ranges.slice(0);ne.push(new se(ot(this,k),ot(this,W||k))),as(this,ge(this.cm,ne,ne.length-1),q)}),getSelection:function(W){for(var q=this.sel.ranges,ne,le=0;le<q.length;le++){var Fe=je(this,q[le].from(),q[le].to());ne=ne?ne.concat(Fe):Fe}return W===!1?ne:ne.join(W||this.lineSeparator())},getSelections:function(W){for(var q=[],ne=this.sel.ranges,le=0;le<ne.length;le++){var Fe=je(this,ne[le].from(),ne[le].to());W!==!1&&(Fe=Fe.join(W||this.lineSeparator())),q[le]=Fe}return q},replaceSelection:function(W,q,ne){for(var le=[],Fe=0;Fe<this.sel.ranges.length;Fe++)le[Fe]=W;this.replaceSelections(le,q,ne||"+input")},replaceSelections:jo(function(k,W,q){for(var ne=[],le=this.sel,Fe=0;Fe<le.ranges.length;Fe++){var mt=le.ranges[Fe];ne[Fe]={from:mt.from(),to:mt.to(),text:this.splitLines(k[Fe]),origin:q}}for(var Ut=W&&W!="end"&&Yr(this,ne,W),nr=ne.length-1;nr>=0;nr--)is(this,ne[nr]);Ut?Ks(this,Ut):this.cm&&aa(this.cm)}),undo:jo(function(){Rs(this,"undo")}),redo:jo(function(){Rs(this,"redo")}),undoSelection:jo(function(){Rs(this,"undo",!0)}),redoSelection:jo(function(){Rs(this,"redo",!0)}),setExtending:function(W){this.extend=W},getExtending:function(){return this.extend},historySize:function(){for(var W=this.history,q=0,ne=0,le=0;le<W.done.length;le++)W.done[le].ranges||++q;for(var Fe=0;Fe<W.undone.length;Fe++)W.undone[Fe].ranges||++ne;return{undo:q,redo:ne}},clearHistory:function(){var W=this;this.history=new uo(this.history.maxGeneration),Ii(this,function(q){return q.history=W.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(W){return W&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(W){return this.history.generation==(W||this.cleanGeneration)},getHistory:function(){return{done:Hs(this.history.done),undone:Hs(this.history.undone)}},setHistory:function(W){var q=this.history=new uo(this.history.maxGeneration);q.done=Hs(W.done.slice(0),null,!0),q.undone=Hs(W.undone.slice(0),null,!0)},setGutterMarker:jo(function(k,W,q){return Os(this,k,"gutter",function(ne){var le=ne.gutterMarkers||(ne.gutterMarkers={});return le[W]=q,!q&&J(le)&&(ne.gutterMarkers=null),!0})}),clearGutter:jo(function(k){var W=this;this.iter(function(q){q.gutterMarkers&&q.gutterMarkers[k]&&Os(W,q,"gutter",function(){return q.gutterMarkers[k]=null,J(q.gutterMarkers)&&(q.gutterMarkers=null),!0})})}),lineInfo:function(W){var q;if(typeof W=="number"){if(!Mr(this,W))return null;if(q=W,W=Ee(this,W),!W)return null}else if(q=wt(W),q==null)return null;return{line:q,handle:W,text:W.text,gutterMarkers:W.gutterMarkers,textClass:W.textClass,bgClass:W.bgClass,wrapClass:W.wrapClass,widgets:W.widgets}},addLineClass:jo(function(k,W,q){return Os(this,k,W=="gutter"?"gutter":"class",function(ne){var le=W=="text"?"textClass":W=="background"?"bgClass":W=="gutter"?"gutterClass":"wrapClass";if(!ne[le])ne[le]=q;else{if(C(q).test(ne[le]))return!1;ne[le]+=" "+q}return!0})}),removeLineClass:jo(function(k,W,q){return Os(this,k,W=="gutter"?"gutter":"class",function(ne){var le=W=="text"?"textClass":W=="background"?"bgClass":W=="gutter"?"gutterClass":"wrapClass",Fe=ne[le];if(Fe)if(q==null)ne[le]=null;else{var mt=Fe.match(C(q));if(!mt)return!1;var Ut=mt.index+mt[0].length;ne[le]=Fe.slice(0,mt.index)+(!mt.index||Ut==Fe.length?"":" ")+Fe.slice(Ut)||null}else return!1;return!0})}),addLineWidget:jo(function(k,W,q){return Yl(this,k,W,q)}),removeLineWidget:function(W){W.clear()},markText:function(W,q,ne){return Rl(this,ot(this,W),ot(this,q),ne,ne&&ne.type||"range")},setBookmark:function(W,q){var ne={replacedWith:q&&(q.nodeType==null?q.widget:q),insertLeft:q&&q.insertLeft,clearWhenEmpty:!1,shared:q&&q.shared,handleMouseEvents:q&&q.handleMouseEvents};return W=ot(this,W),Rl(this,W,W,ne,"bookmark")},findMarksAt:function(W){W=ot(this,W);var q=[],ne=Ee(this,W.line).markedSpans;if(ne)for(var le=0;le<ne.length;++le){var Fe=ne[le];(Fe.from==null||Fe.from<=W.ch)&&(Fe.to==null||Fe.to>=W.ch)&&q.push(Fe.marker.parent||Fe.marker)}return q},findMarks:function(W,q,ne){W=ot(this,W),q=ot(this,q);var le=[],Fe=W.line;return this.iter(W.line,q.line+1,function(mt){var Ut=mt.markedSpans;if(Ut)for(var nr=0;nr<Ut.length;nr++){var lr=Ut[nr];!(lr.to!=null&&Fe==W.line&&W.ch>=lr.to||lr.from==null&&Fe!=W.line||lr.from!=null&&Fe==q.line&&lr.from>=q.ch)&&(!ne||ne(lr.marker))&&le.push(lr.marker.parent||lr.marker)}++Fe}),le},getAllMarks:function(){var W=[];return this.iter(function(q){var ne=q.markedSpans;if(ne)for(var le=0;le<ne.length;++le)ne[le].from!=null&&W.push(ne[le].marker)}),W},posFromIndex:function(W){var q,ne=this.first,le=this.lineSeparator().length;return this.iter(function(Fe){var mt=Fe.text.length+le;if(mt>W)return q=W,!0;W-=mt,++ne}),ot(this,_t(ne,q))},indexFromPos:function(W){W=ot(this,W);var q=W.ch;if(W.line<this.first||W.ch<0)return 0;var ne=this.lineSeparator().length;return this.iter(this.first,W.line,function(le){q+=le.text.length+ne}),q},copy:function(W){var q=new rl(Ve(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return q.scrollTop=this.scrollTop,q.scrollLeft=this.scrollLeft,q.sel=this.sel,q.extend=!1,W&&(q.history.undoDepth=this.history.undoDepth,q.setHistory(this.getHistory())),q},linkedDoc:function(W){W||(W={});var q=this.first,ne=this.first+this.size;W.from!=null&&W.from>q&&(q=W.from),W.to!=null&&W.to<ne&&(ne=W.to);var le=new rl(Ve(this,q,ne),W.mode||this.modeOption,q,this.lineSep,this.direction);return W.sharedHist&&(le.history=this.history),(this.linked||(this.linked=[])).push({doc:le,sharedHist:W.sharedHist}),le.linked=[{doc:this,isParent:!0,sharedHist:W.sharedHist}],cu(le,wu(this)),le},unlinkDoc:function(W){if(W instanceof Tr&&(W=W.doc),this.linked)for(var q=0;q<this.linked.length;++q){var ne=this.linked[q];if(ne.doc!=W)continue;this.linked.splice(q,1),W.unlinkDoc(this),Su(wu(this));break}if(W.history==this.history){var le=[W.id];Ii(W,function(Fe){return le.push(Fe.id)},!0),W.history=new uo(null),W.history.done=Hs(this.history.done,le),W.history.undone=Hs(this.history.undone,le)}},iterLinkedDocs:function(W){Ii(this,W)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(W){return this.lineSep?W.split(this.lineSep):nn(W)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:jo(function(k){if(k!="rtl"&&(k="ltr"),k==this.direction)return;this.direction=k,this.iter(function(W){return W.order=null}),this.cm&&Ta(this.cm)})}),rl.prototype.eachLine=rl.prototype.iter;var al=0;function dl(k){var W=this;if(ru(W),Ot(W,k)||On(W.display,k))return;Be(k),f&&(al=+new Date);var q=za(W,k,!0),ne=k.dataTransfer.files;if(!q||W.isReadOnly())return;if(ne&&ne.length&&window.FileReader&&window.File)for(var le=ne.length,Fe=Array(le),mt=0,Ut=function(){++mt==le&&No(W,function(){q=ot(W.doc,q);var Pi={from:q,to:q,text:W.doc.splitLines(Fe.filter(function(Ji){return Ji!=null}).join(W.doc.lineSeparator())),origin:"paste"};is(W.doc,Pi),Ks(W.doc,Se(ot(W.doc,q),ot(W.doc,We(Pi))))})()},nr=function(Pi,Ji){if(W.options.allowDropFileTypes&&z(W.options.allowDropFileTypes,Pi.type)==-1){Ut();return}var ua=new FileReader;ua.onerror=function(){return Ut()},ua.onload=function(){var la=ua.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(la)){Ut();return}Fe[Ji]=la,Ut()},ua.readAsText(Pi)},lr=0;lr<ne.length;lr++)nr(ne[lr],lr);else{if(W.state.draggingText&&W.doc.sel.contains(q)>-1){W.state.draggingText(k),setTimeout(function(){return W.display.input.focus()},20);return}try{var Sn=k.dataTransfer.getData("Text");if(Sn){var Bn;if(W.state.draggingText&&!W.state.draggingText.copy&&(Bn=W.listSelections()),ha(W.doc,Se(q,q)),Bn)for(var Zn=0;Zn<Bn.length;++Zn)tl(W.doc,"",Bn[Zn].anchor,Bn[Zn].head,"drag");W.replaceSelection(Sn,"around","paste"),W.display.input.focus()}}catch(ni){}}}function Vl(k,W){if(f&&(!k.state.draggingText||+new Date-al<100)){Re(W);return}if(Ot(k,W)||On(k.display,W))return;if(W.dataTransfer.setData("Text",k.getSelection()),W.dataTransfer.effectAllowed="copyMove",W.dataTransfer.setDragImage&&!e){var q=_("img",null,null,"position: fixed; left: 0; top: 0;");q.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",n&&(q.width=q.height=1,k.display.wrapper.appendChild(q),q._top=q.offsetTop),W.dataTransfer.setDragImage(q,0,0),n&&q.parentNode.removeChild(q)}}function tu(k,W){var q=za(k,W);if(!q)return;var ne=document.createDocumentFragment();Cn(k,q,ne),k.display.dragCursor||(k.display.dragCursor=_("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),k.display.lineSpace.insertBefore(k.display.dragCursor,k.display.cursorDiv)),I(k.display.dragCursor,ne)}function ru(k){k.display.dragCursor&&(k.display.lineSpace.removeChild(k.display.dragCursor),k.display.dragCursor=null)}function Ql(k){if(!document.getElementsByClassName)return;for(var W=document.getElementsByClassName("CodeMirror"),q=[],ne=0;ne<W.length;ne++){var le=W[ne].CodeMirror;le&&q.push(le)}q.length&&q[0].operation(function(){for(var Fe=0;Fe<q.length;Fe++)k(q[Fe])})}var Ml=!1;function nu(){if(Ml)return;Jl(),Ml=!0}function Jl(){var k;Te(window,"resize",function(){k==null&&(k=setTimeout(function(){k=null,Ql(du)},100))}),Te(window,"blur",function(){return Ql(Xn)})}function du(k){var W=k.display;W.cachedCharWidth=W.cachedTextHeight=W.cachedPaddingH=null,W.scrollbarsClipped=!1,k.setSize()}for(var Al={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"},kl=0;kl<10;kl++)Al[kl+48]=Al[kl+96]=String(kl);for(var Pl=65;Pl<=90;Pl++)Al[Pl]=String.fromCharCode(Pl);for(var Zl=1;Zl<=12;Zl++)Al[Zl+111]=Al[Zl+63235]="F"+Zl;var Il={};Il.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"},Il.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"},Il.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"},Il.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"]},Il.default=h?Il.macDefault:Il.pcDefault;function Iu(k){var W=k.split(/-(?!$)/);k=W[W.length-1];for(var q,ne,le,Fe,mt=0;mt<W.length-1;mt++){var Ut=W[mt];if(/^(cmd|meta|m)$/i.test(Ut))Fe=!0;else if(/^a(lt)?$/i.test(Ut))q=!0;else if(/^(c|ctrl|control)$/i.test(Ut))ne=!0;else if(/^s(hift)?$/i.test(Ut))le=!0;else throw new Error("Unrecognized modifier name: "+Ut)}return q&&(k="Alt-"+k),ne&&(k="Ctrl-"+k),Fe&&(k="Cmd-"+k),le&&(k="Shift-"+k),k}function pl(k){var W={};for(var q in k)if(k.hasOwnProperty(q)){var ne=k[q];if(/^(name|fallthrough|(de|at)tach)$/.test(q))continue;if(ne=="..."){delete k[q];continue}for(var le=Pe(q.split(" "),Iu),Fe=0;Fe<le.length;Fe++){var mt=void 0,Ut=void 0;Fe==le.length-1?(Ut=le.join(" "),mt=ne):(Ut=le.slice(0,Fe+1).join(" "),mt="...");var nr=W[Ut];if(!nr)W[Ut]=mt;else if(nr!=mt)throw new Error("Inconsistent bindings for "+Ut)}delete k[q]}for(var lr in W)k[lr]=W[lr];return k}function xl(k,W,q,ne){W=_l(W);var le=W.call?W.call(k,ne):W[k];if(le===!1)return"nothing";if(le==="...")return"multi";if(le!=null&&q(le))return"handled";if(W.fallthrough){if(Object.prototype.toString.call(W.fallthrough)!="[object Array]")return xl(k,W.fallthrough,q,ne);for(var Fe=0;Fe<W.fallthrough.length;Fe++){var mt=xl(k,W.fallthrough[Fe],q,ne);if(mt)return mt}}}function iu(k){var W=typeof k=="string"?k:Al[k.keyCode];return W=="Ctrl"||W=="Alt"||W=="Shift"||W=="Mod"}function _u(k,W,q){var ne=k;return W.altKey&&ne!="Alt"&&(k="Alt-"+k),(y?W.metaKey:W.ctrlKey)&&ne!="Ctrl"&&(k="Ctrl-"+k),(y?W.ctrlKey:W.metaKey)&&ne!="Mod"&&(k="Cmd-"+k),!q&&W.shiftKey&&ne!="Shift"&&(k="Shift-"+k),k}function hu(k,W){if(n&&k.keyCode==34&&k.char)return!1;var q=Al[k.keyCode];return q==null||k.altGraphKey?!1:(k.keyCode==3&&k.code&&(q=k.code),_u(q,k,W))}function _l(k){return typeof k=="string"?Il[k]:k}function ml(k,W){for(var q=k.doc.sel.ranges,ne=[],le=0;le<q.length;le++){for(var Fe=W(q[le]);ne.length&&at(Fe.from,ce(ne).to)<=0;){var mt=ne.pop();if(at(mt.from,Fe.from)<0){Fe.from=mt.from;break}}ne.push(Fe)}ho(k,function(){for(var Ut=ne.length-1;Ut>=0;Ut--)tl(k.doc,"",ne[Ut].from,ne[Ut].to,"+delete");aa(k)})}function Ul(k,W,q){var ne=Me(k.text,W+q,q);return ne<0||ne>k.text.length?null:ne}function xu(k,W,q){var ne=Ul(k,W.ch,q);return ne==null?null:new _t(W.line,ne,q<0?"after":"before")}function Eu(k,W,q,ne,le){if(k){W.doc.direction=="rtl"&&(le=-le);var Fe=it(q,W.doc.direction);if(Fe){var mt=le<0?ce(Fe):Fe[0],Ut=le<0==(mt.level==1),nr=Ut?"after":"before",lr;if(mt.level>0||W.doc.direction=="rtl"){var Sn=$i(W,q);lr=le<0?q.text.length-1:0;var Bn=qi(W,Sn,lr).top;lr=Ie(function(Zn){return qi(W,Sn,Zn).top==Bn},le<0==(mt.level==1)?mt.from:mt.to-1,lr),nr=="before"&&(lr=Ul(q,lr,1))}else lr=le<0?mt.to:mt.from;return new _t(ne,lr,nr)}}return new _t(ne,le<0?q.text.length:0,le<0?"before":"after")}function fu(k,W,q,ne){var le=it(W,k.doc.direction);if(!le)return xu(W,q,ne);q.ch>=W.text.length?(q.ch=W.text.length,q.sticky="before"):q.ch<=0&&(q.ch=0,q.sticky="after");var Fe=Oe(le,q.ch,q.sticky),mt=le[Fe];if(k.doc.direction=="ltr"&&mt.level%2==0&&(ne>0?mt.to>q.ch:mt.from<q.ch))return xu(W,q,ne);var Ut=function(oa,xa){return Ul(W,oa instanceof _t?oa.ch:oa,xa)},nr,lr=function(oa){return k.options.lineWrapping?(nr=nr||$i(k,W),Aa(k,W,nr,oa)):{begin:0,end:W.text.length}},Sn=lr(q.sticky=="before"?Ut(q,-1):q.ch);if(k.doc.direction=="rtl"||mt.level==1){var Bn=mt.level==1==ne<0,Zn=Ut(q,Bn?1:-1);if(Zn!=null&&(Bn?Zn<=mt.to&&Zn<=Sn.end:Zn>=mt.from&&Zn>=Sn.begin)){var ni=Bn?"before":"after";return new _t(q.line,Zn,ni)}}var Pi=function(oa,xa,Ma){for(var To=function(bs,nl){return nl?new _t(q.line,Ut(bs,1),"before"):new _t(q.line,bs,"after")};oa>=0&&oa<le.length;oa+=xa){var so=le[oa],Yo=xa>0==(so.level!=1),os=Yo?Ma.begin:Ut(Ma.end,-1);if(so.from<=os&&os<so.to)return To(os,Yo);if(os=Yo?so.from:Ut(so.to,-1),Ma.begin<=os&&os<Ma.end)return To(os,Yo)}},Ji=Pi(Fe+ne,ne,Sn);if(Ji)return Ji;var ua=ne>0?Sn.end:Ut(Sn.begin,-1);return ua!=null&&!(ne>0&&ua==W.text.length)&&(Ji=Pi(ne>0?0:le.length-1,ne,lr(ua)),Ji)?Ji:null}var jl={selectAll:Wo,singleSelection:function(W){return W.setSelection(W.getCursor("anchor"),W.getCursor("head"),fe)},killLine:function(W){return ml(W,function(q){if(q.empty()){var ne=Ee(W.doc,q.head.line).text.length;return q.head.ch==ne&&q.head.line<W.lastLine()?{from:q.head,to:_t(q.head.line+1,0)}:{from:q.head,to:_t(q.head.line,ne)}}else return{from:q.from(),to:q.to()}})},deleteLine:function(W){return ml(W,function(q){return{from:_t(q.from().line,0),to:ot(W.doc,_t(q.to().line+1,0))}})},delLineLeft:function(W){return ml(W,function(q){return{from:_t(q.from().line,0),to:q.from()}})},delWrappedLineLeft:function(W){return ml(W,function(q){var ne=W.charCoords(q.head,"div").top+5,le=W.coordsChar({left:0,top:ne},"div");return{from:le,to:q.from()}})},delWrappedLineRight:function(W){return ml(W,function(q){var ne=W.charCoords(q.head,"div").top+5,le=W.coordsChar({left:W.display.lineDiv.offsetWidth+100,top:ne},"div");return{from:q.from(),to:le}})},undo:function(W){return W.undo()},redo:function(W){return W.redo()},undoSelection:function(W){return W.undoSelection()},redoSelection:function(W){return W.redoSelection()},goDocStart:function(W){return W.extendSelection(_t(W.firstLine(),0))},goDocEnd:function(W){return W.extendSelection(_t(W.lastLine()))},goLineStart:function(W){return W.extendSelectionsBy(function(q){return au(W,q.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(W){return W.extendSelectionsBy(function(q){return ou(W,q.head)},{origin:"+move",bias:1})},goLineEnd:function(W){return W.extendSelectionsBy(function(q){return $l(W,q.head.line)},{origin:"+move",bias:-1})},goLineRight:function(W){return W.extendSelectionsBy(function(q){var ne=W.cursorCoords(q.head,"div").top+5;return W.coordsChar({left:W.display.lineDiv.offsetWidth+100,top:ne},"div")},we)},goLineLeft:function(W){return W.extendSelectionsBy(function(q){var ne=W.cursorCoords(q.head,"div").top+5;return W.coordsChar({left:0,top:ne},"div")},we)},goLineLeftSmart:function(W){return W.extendSelectionsBy(function(q){var ne=W.cursorCoords(q.head,"div").top+5,le=W.coordsChar({left:0,top:ne},"div");return le.ch<W.getLine(le.line).search(/\S/)?ou(W,q.head):le},we)},goLineUp:function(W){return W.moveV(-1,"line")},goLineDown:function(W){return W.moveV(1,"line")},goPageUp:function(W){return W.moveV(-1,"page")},goPageDown:function(W){return W.moveV(1,"page")},goCharLeft:function(W){return W.moveH(-1,"char")},goCharRight:function(W){return W.moveH(1,"char")},goColumnLeft:function(W){return W.moveH(-1,"column")},goColumnRight:function(W){return W.moveH(1,"column")},goWordLeft:function(W){return W.moveH(-1,"word")},goGroupRight:function(W){return W.moveH(1,"group")},goGroupLeft:function(W){return W.moveH(-1,"group")},goWordRight:function(W){return W.moveH(1,"word")},delCharBefore:function(W){return W.deleteH(-1,"codepoint")},delCharAfter:function(W){return W.deleteH(1,"char")},delWordBefore:function(W){return W.deleteH(-1,"word")},delWordAfter:function(W){return W.deleteH(1,"word")},delGroupBefore:function(W){return W.deleteH(-1,"group")},delGroupAfter:function(W){return W.deleteH(1,"group")},indentAuto:function(W){return W.indentSelection("smart")},indentMore:function(W){return W.indentSelection("add")},indentLess:function(W){return W.indentSelection("subtract")},insertTab:function(W){return W.replaceSelection(" ")},insertSoftTab:function(W){for(var q=[],ne=W.listSelections(),le=W.options.tabSize,Fe=0;Fe<ne.length;Fe++){var mt=ne[Fe].from(),Ut=j(W.getLine(mt.line),mt.ch,le);q.push(He(le-Ut%le))}W.replaceSelections(q)},defaultTab:function(W){W.somethingSelected()?W.indentSelection("add"):W.execCommand("insertTab")},transposeChars:function(W){return ho(W,function(){for(var q=W.listSelections(),ne=[],le=0;le<q.length;le++){if(!q[le].empty())continue;var Fe=q[le].head,mt=Ee(W.doc,Fe.line).text;if(mt){if(Fe.ch==mt.length&&(Fe=new _t(Fe.line,Fe.ch-1)),Fe.ch>0)Fe=new _t(Fe.line,Fe.ch+1),W.replaceRange(mt.charAt(Fe.ch-1)+mt.charAt(Fe.ch-2),_t(Fe.line,Fe.ch-2),Fe,"+transpose");else if(Fe.line>W.doc.first){var Ut=Ee(W.doc,Fe.line-1).text;Ut&&(Fe=new _t(Fe.line,1),W.replaceRange(mt.charAt(0)+W.doc.lineSeparator()+Ut.charAt(Ut.length-1),_t(Fe.line-1,Ut.length-1),Fe,"+transpose"))}}ne.push(new se(Fe,Fe))}W.setSelections(ne)})},newlineAndIndent:function(W){return ho(W,function(){for(var q=W.listSelections(),ne=q.length-1;ne>=0;ne--)W.replaceRange(W.doc.lineSeparator(),q[ne].anchor,q[ne].head,"+input");q=W.listSelections();for(var le=0;le<q.length;le++)W.indentLine(q[le].from().line,null,!0);aa(W)})},openLine:function(W){return W.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(W){return W.toggleOverwrite()}};function au(k,W){var q=Ee(k.doc,W),ne=ir(q);return ne!=q&&(W=wt(ne)),Eu(!0,k,ne,W,1)}function $l(k,W){var q=Ee(k.doc,W),ne=Lt(q);return ne!=q&&(W=wt(ne)),Eu(!0,k,q,W,-1)}function ou(k,W){var q=au(k,W.line),ne=Ee(k.doc,q.line),le=it(ne,k.doc.direction);if(!le||le[0].level==0){var Fe=Math.max(q.ch,ne.text.search(/\S/)),mt=W.line==q.line&&W.ch<=Fe&&W.ch;return _t(q.line,mt?0:Fe,q.sticky)}return q}function Is(k,W,q){if(typeof W=="string"&&(W=jl[W],!W))return!1;k.display.input.ensurePolled();var ne=k.display.shift,le=!1;try{k.isReadOnly()&&(k.state.suppressEdits=!0),q&&(k.display.shift=!1),le=W(k)!=ee}finally{k.display.shift=ne,k.state.suppressEdits=!1}return le}function cl(k,W,q){for(var ne=0;ne<k.state.keyMaps.length;ne++){var le=xl(W,k.state.keyMaps[ne],q,k);if(le)return le}return k.options.extraKeys&&xl(W,k.options.extraKeys,q,k)||xl(W,k.options.keyMap,q,k)}var Fl=new V;function Ho(k,W,q,ne){var le=k.state.keySeq;if(le){if(iu(W))return"handled";if(/\'$/.test(W)?k.state.keySeq=null:Fl.set(50,function(){k.state.keySeq==le&&(k.state.keySeq=null,k.display.input.reset())}),La(k,le+" "+W,q,ne))return!0}return La(k,W,q,ne)}function La(k,W,q,ne){var le=cl(k,W,ne);return le=="multi"&&(k.state.keySeq=W),le=="handled"&&dr(k,"keyHandled",k,W,q),(le=="handled"||le=="multi")&&(Be(q),Qn(k)),!!le}function oo(k,W){var q=hu(W,!0);return q?W.shiftKey&&!k.state.keySeq?Ho(k,"Shift-"+q,W,function(ne){return Is(k,ne,!0)})||Ho(k,q,W,function(ne){if(typeof ne=="string"?/^go[A-Z]/.test(ne):ne.motion)return Is(k,ne)}):Ho(k,q,W,function(ne){return Is(k,ne)}):!1}function Ro(k,W,q){return Ho(k,"'"+q+"'",W,function(ne){return Is(k,ne,!0)})}var Ps=null;function Hl(k){var W=this;if(k.target&&k.target!=W.display.input.getField())return;if(W.curOp.focus=R(),Ot(W,k))return;f&&c<11&&k.keyCode==27&&(k.returnValue=!1);var q=k.keyCode;W.display.shift=q==16||k.shiftKey;var ne=oo(W,k);n&&(Ps=ne?q:null,!ne&&q==88&&!vr&&(h?k.metaKey:k.ctrlKey)&&W.replaceSelection("",null,"cut")),T&&!h&&!ne&&q==46&&k.shiftKey&&!k.ctrlKey&&document.execCommand&&document.execCommand("cut"),q==18&&!/\bCodeMirror-crosshair\b/.test(W.display.lineDiv.className)&&Ll(W)}function Ll(k){var W=k.display.lineDiv;B(W,"CodeMirror-crosshair");function q(ne){(ne.keyCode==18||!ne.altKey)&&(w(W,"CodeMirror-crosshair"),ze(document,"keyup",q),ze(document,"mouseover",q))}Te(document,"keyup",q),Te(document,"mouseover",q)}function gl(k){k.keyCode==16&&(this.doc.sel.shift=!1),Ot(this,k)}function yl(k){var W=this;if(k.target&&k.target!=W.display.input.getField())return;if(On(W.display,k)||Ot(W,k)||k.ctrlKey&&!k.altKey||h&&k.metaKey)return;var q=k.keyCode,ne=k.charCode;if(n&&q==Ps){Ps=null,Be(k);return}if(n&&(!k.which||k.which<10)&&oo(W,k))return;var le=String.fromCharCode(ne==null?q:ne);if(le=="\b")return;if(Ro(W,k,le))return;W.display.input.onKeyPress(k)}var Nl=400,Kl=function(W,q,ne){this.time=W,this.pos=q,this.button=ne};Kl.prototype.compare=function(k,W,q){return this.time+Nl>k&&at(W,this.pos)==0&&q==this.button};var Vs,Gl;function pu(k,W){var q=+new Date;return Gl&&Gl.compare(q,k,W)?(Vs=Gl=null,"triple"):Vs&&Vs.compare(q,k,W)?(Gl=new Kl(q,k,W),Vs=null,"double"):(Vs=new Kl(q,k,W),Gl=null,"single")}function su(k){var W=this,q=W.display;if(Ot(W,k)||q.activeTouch&&q.input.supportsTouch())return;if(q.input.ensurePolled(),q.shift=k.shiftKey,On(q,k)){o||(q.scroller.draggable=!1,setTimeout(function(){return q.scroller.draggable=!0},100));return}if(Cu(W,k))return;var ne=za(W,k),le=ae(k),Fe=ne?pu(ne,le):"single";if(window.focus(),le==1&&W.state.selectingText&&W.state.selectingText(k),ne&&Pu(W,le,ne,Fe,k))return;le==1?ne?zu(W,ne,Fe,k):De(k)==q.scroller&&Be(k):le==2?(ne&&Xo(W.doc,ne),setTimeout(function(){return q.input.focus()},20)):le==3&&(E?W.display.input.onContextMenu(k):Kn(W))}function Pu(k,W,q,ne,le){var Fe="Click";return ne=="double"?Fe="Double"+Fe:ne=="triple"&&(Fe="Triple"+Fe),Fe=(W==1?"Left":W==2?"Middle":"Right")+Fe,Ho(k,_u(Fe,le),le,function(mt){if(typeof mt=="string"&&(mt=jl[mt]),!mt)return!1;var Ut=!1;try{k.isReadOnly()&&(k.state.suppressEdits=!0),Ut=mt(k,q)!=ee}finally{k.state.suppressEdits=!1}return Ut})}function $u(k,W,q){var ne=k.getOption("configureMouse"),le=ne?ne(k,W,q):{};if(le.unit==null){var Fe=p?q.shiftKey&&q.metaKey:q.altKey;le.unit=Fe?"rectangle":W=="single"?"char":W=="double"?"word":"line"}return(le.extend==null||k.doc.extend)&&(le.extend=k.doc.extend||q.shiftKey),le.addNew==null&&(le.addNew=h?q.metaKey:q.ctrlKey),le.moveOnDrag==null&&(le.moveOnDrag=!(h?q.altKey:q.ctrlKey)),le}function zu(k,W,q,ne){f?setTimeout(F($n,k),0):k.curOp.focus=R();var le=$u(k,q,ne),Fe=k.doc.sel,mt;k.options.dragDrop&>&&!k.isReadOnly()&&q=="single"&&(mt=Fe.contains(W))>-1&&(at((mt=Fe.ranges[mt]).from(),W)<0||W.xRel>0)&&(at(mt.to(),W)>0||W.xRel<0)?qu(k,ne,W,le):Lu(k,ne,W,le)}function qu(k,W,q,ne){var le=k.display,Fe=!1,mt=No(k,function(lr){o&&(le.scroller.draggable=!1),k.state.draggingText=!1,ze(le.wrapper.ownerDocument,"mouseup",mt),ze(le.wrapper.ownerDocument,"mousemove",Ut),ze(le.scroller,"dragstart",nr),ze(le.scroller,"drop",mt),Fe||(Be(lr),ne.addNew||Xo(k.doc,q,null,null,ne.extend),o&&!e||f&&c==9?setTimeout(function(){le.wrapper.ownerDocument.body.focus({preventScroll:!0}),le.input.focus()},20):le.input.focus())}),Ut=function(Sn){Fe=Fe||Math.abs(W.clientX-Sn.clientX)+Math.abs(W.clientY-Sn.clientY)>=10},nr=function(){return Fe=!0};o&&(le.scroller.draggable=!0),k.state.draggingText=mt,mt.copy=!ne.moveOnDrag,le.scroller.dragDrop&&le.scroller.dragDrop(),Te(le.wrapper.ownerDocument,"mouseup",mt),Te(le.wrapper.ownerDocument,"mousemove",Ut),Te(le.scroller,"dragstart",nr),Te(le.scroller,"drop",mt),Kn(k),setTimeout(function(){return le.input.focus()},20)}function mu(k,W,q){if(q=="char")return new se(W,W);if(q=="word")return k.findWordAt(W);if(q=="line")return new se(_t(W.line,0),ot(k.doc,_t(W.line+1,0)));var ne=q(k,W);return new se(ne.from,ne.to)}function Lu(k,W,q,ne){var le=k.display,Fe=k.doc;Be(W);var mt,Ut,nr=Fe.sel,lr=nr.ranges;if(ne.addNew&&!ne.extend?(Ut=Fe.sel.contains(q),Ut>-1?mt=lr[Ut]:mt=new se(q,q)):(mt=Fe.sel.primary(),Ut=Fe.sel.primIndex),ne.unit=="rectangle")ne.addNew||(mt=new se(q,q)),q=za(k,W,!0,!0),Ut=-1;else{var Sn=mu(k,q,ne.unit);ne.extend?mt=xs(mt,Sn.anchor,Sn.head,ne.extend):mt=Sn}ne.addNew?Ut==-1?(Ut=lr.length,as(Fe,ge(k,lr.concat([mt]),Ut),{scroll:!1,origin:"*mouse"})):lr.length>1&&lr[Ut].empty()&&ne.unit=="char"&&!ne.extend?(as(Fe,ge(k,lr.slice(0,Ut).concat(lr.slice(Ut+1)),0),{scroll:!1,origin:"*mouse"}),nr=Fe.sel):Cs(Fe,Ut,mt,ie):(Ut=0,as(Fe,new At([mt],0),ie),nr=Fe.sel);var Bn=q;function Zn(xa){if(at(Bn,xa)==0)return;if(Bn=xa,ne.unit=="rectangle"){for(var Ma=[],To=k.options.tabSize,so=j(Ee(Fe,q.line).text,q.ch,To),Yo=j(Ee(Fe,xa.line).text,xa.ch,To),os=Math.min(so,Yo),Ls=Math.max(so,Yo),bs=Math.min(q.line,xa.line),nl=Math.min(k.lastLine(),Math.max(q.line,xa.line));bs<=nl;bs++){var bl=Ee(Fe,bs).text,Gs=Ce(bl,os,To);os==Ls?Ma.push(new se(_t(bs,Gs),_t(bs,Gs))):bl.length>Gs&&Ma.push(new se(_t(bs,Gs),_t(bs,Ce(bl,Ls,To))))}Ma.length||Ma.push(new se(q,q)),as(Fe,ge(k,nr.ranges.slice(0,Ut).concat(Ma),Ut),{origin:"*mouse",scroll:!1}),k.scrollIntoView(xa)}else{var wl=mt,il=mu(k,xa,ne.unit),$s=wl.anchor,Xs;at(il.anchor,$s)>0?(Xs=il.head,$s=Et(wl.from(),il.anchor)):(Xs=il.anchor,$s=Pt(wl.to(),il.head));var Fs=nr.ranges.slice(0);Fs[Ut]=ec(k,new se(ot(Fe,$s),Xs)),as(Fe,ge(k,Fs,Ut),ie)}}var ni=le.wrapper.getBoundingClientRect(),Pi=0;function Ji(xa){var Ma=++Pi,To=za(k,xa,!0,ne.unit=="rectangle");if(!To)return;if(at(To,Bn)!=0){k.curOp.focus=R(),Zn(To);var so=Bi(le,Fe);(To.line>=so.to||To.line<so.from)&&setTimeout(No(k,function(){Pi==Ma&&Ji(xa)}),150)}else{var Yo=xa.clientY<ni.top?-20:xa.clientY>ni.bottom?20:0;Yo&&setTimeout(No(k,function(){if(Pi!=Ma)return;le.scroller.scrollTop+=Yo,Ji(xa)}),50)}}function ua(xa){k.state.selectingText=!1,Pi=Infinity,xa&&(Be(xa),le.input.focus()),ze(le.wrapper.ownerDocument,"mousemove",la),ze(le.wrapper.ownerDocument,"mouseup",oa),Fe.history.lastSelOrigin=null}var la=No(k,function(xa){xa.buttons===0||!ae(xa)?ua(xa):Ji(xa)}),oa=No(k,ua);k.state.selectingText=oa,Te(le.wrapper.ownerDocument,"mousemove",la),Te(le.wrapper.ownerDocument,"mouseup",oa)}function ec(k,W){var q=W.anchor,ne=W.head,le=Ee(k.doc,q.line);if(at(q,ne)==0&&q.sticky==ne.sticky)return W;var Fe=it(le);if(!Fe)return W;var mt=Oe(Fe,q.ch,q.sticky),Ut=Fe[mt];if(Ut.from!=q.ch&&Ut.to!=q.ch)return W;var nr=mt+(Ut.from==q.ch==(Ut.level!=1)?0:1);if(nr==0||nr==Fe.length)return W;var lr;if(ne.line!=q.line)lr=(ne.line-q.line)*(k.doc.direction=="ltr"?1:-1)>0;else{var Sn=Oe(Fe,ne.ch,ne.sticky),Bn=Sn-mt||(ne.ch-q.ch)*(Ut.level==1?-1:1);Sn==nr-1||Sn==nr?lr=Bn<0:lr=Bn>0}var Zn=Fe[nr+(lr?-1:0)],ni=lr==(Zn.level==1),Pi=ni?Zn.from:Zn.to,Ji=ni?"after":"before";return q.ch==Pi&&q.sticky==Ji?W:new se(new _t(q.line,Pi,Ji),ne)}function Fu(k,W,q,ne){var le,Fe;if(W.touches)le=W.touches[0].clientX,Fe=W.touches[0].clientY;else try{le=W.clientX,Fe=W.clientY}catch(Zn){return!1}if(le>=Math.floor(k.display.gutters.getBoundingClientRect().right))return!1;ne&&Be(W);var mt=k.display,Ut=mt.lineDiv.getBoundingClientRect();if(Fe>Ut.bottom||!Ct(k,q))return Z(W);Fe-=Ut.top-mt.viewOffset;for(var nr=0;nr<k.display.gutterSpecs.length;++nr){var lr=mt.gutters.childNodes[nr];if(lr&&lr.getBoundingClientRect().right>=le){var Sn=qt(k.doc,Fe),Bn=k.display.gutterSpecs[nr];return dt(k,q,k,Sn,Bn.className,W),Z(W)}}}function Cu(k,W){return Fu(k,W,"gutterClick",!0)}function Nu(k,W){if(On(k.display,W)||gu(k,W))return;if(Ot(k,W,"contextmenu"))return;E||k.display.input.onContextMenu(W)}function gu(k,W){return Ct(k,"gutterContextMenu")?Fu(k,W,"gutterContextMenu",!1):!1}function Bu(k){k.display.wrapper.className=k.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+k.options.theme.replace(/(^|\s)\s*/g," cm-s-"),va(k)}var vu={toString:function(){return"CodeMirror.Init"}},Tu={},ve={};function Ke(k){var W=k.optionHandlers;function q(ne,le,Fe,mt){k.defaults[ne]=le,Fe&&(W[ne]=mt?function(Ut,nr,lr){lr!=vu&&Fe(Ut,nr,lr)}:Fe)}k.defineOption=q,k.Init=vu,q("value","",function(ne,le){return ne.setValue(le)},!0),q("mode",null,function(ne,le){ne.doc.modeOption=le,mn(ne)},!0),q("indentUnit",2,mn,!0),q("indentWithTabs",!1),q("smartIndent",!0),q("tabSize",4,function(ne){Wn(ne),va(ne),da(ne)},!0),q("lineSeparator",null,function(ne,le){if(ne.doc.lineSep=le,!le)return;var Fe=[],mt=ne.doc.first;ne.doc.iter(function(nr){for(var lr=0;;){var Sn=nr.text.indexOf(le,lr);if(Sn==-1)break;lr=Sn+le.length,Fe.push(_t(mt,Sn))}mt++});for(var Ut=Fe.length-1;Ut>=0;Ut--)tl(ne.doc,le,Fe[Ut],_t(Fe[Ut].line,Fe[Ut].ch+le.length))}),q("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ne,le,Fe){ne.state.specialChars=new RegExp(le.source+(le.test(" ")?"":"| "),"g"),Fe!=vu&&ne.refresh()}),q("specialCharPlaceholder",ui,function(ne){return ne.refresh()},!0),q("electricChars",!0),q("inputStyle",u?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),q("spellcheck",!1,function(ne,le){return ne.getInputField().spellcheck=le},!0),q("autocorrect",!1,function(ne,le){return ne.getInputField().autocorrect=le},!0),q("autocapitalize",!1,function(ne,le){return ne.getInputField().autocapitalize=le},!0),q("rtlMoveVisually",!g),q("wholeLineUpdateBefore",!0),q("theme","default",function(ne){Bu(ne),Jo(ne)},!0),q("keyMap","default",function(ne,le,Fe){var mt=_l(le),Ut=Fe!=vu&&_l(Fe);Ut&&Ut.detach&&Ut.detach(ne,mt),mt.attach&&mt.attach(ne,Ut||null)}),q("extraKeys",null),q("configureMouse",null),q("lineWrapping",!1,tr,!0),q("gutters",[],function(ne,le){ne.display.gutterSpecs=yo(le,ne.options.lineNumbers),Jo(ne)},!0),q("fixedGutter",!0,function(ne,le){ne.display.gutters.style.left=le?Ja(ne.display)+"px":"0",ne.refresh()},!0),q("coverGutterNextToScrollbar",!1,function(ne){return ro(ne)},!0),q("scrollbarStyle","native",function(ne){hs(ne),ro(ne),ne.display.scrollbars.setScrollTop(ne.doc.scrollTop),ne.display.scrollbars.setScrollLeft(ne.doc.scrollLeft)},!0),q("lineNumbers",!1,function(ne,le){ne.display.gutterSpecs=yo(ne.options.gutters,le),Jo(ne)},!0),q("firstLineNumber",1,Jo,!0),q("lineNumberFormatter",function(ne){return ne},Jo,!0),q("showCursorWhenSelecting",!1,zr,!0),q("resetSelectionOnContextMenu",!0),q("lineWiseCopyCut",!0),q("pasteLinesPerSelection",!0),q("selectionsMayTouch",!1),q("readOnly",!1,function(ne,le){le=="nocursor"&&(Xn(ne),ne.display.input.blur()),ne.display.input.readOnlyChanged(le)}),q("screenReaderLabel",null,function(ne,le){le=le===""?null:le,ne.display.input.screenReaderLabelChanged(le)}),q("disableInput",!1,function(ne,le){le||ne.display.input.reset()},!0),q("dragDrop",!0,pt),q("allowDropFileTypes",null),q("cursorBlinkRate",530),q("cursorScrollMargin",0),q("cursorHeight",1,zr,!0),q("singleCursorHeightPerLine",!0,zr,!0),q("workTime",100),q("workDelay",100),q("flattenSpans",!0,Wn,!0),q("addModeClass",!1,Wn,!0),q("pollInterval",100),q("undoDepth",200,function(ne,le){return ne.doc.history.undoDepth=le}),q("historyEventDelay",1250),q("viewportMargin",10,function(ne){return ne.refresh()},!0),q("maxHighlightLength",1e4,Wn,!0),q("moveInputWithCursor",!0,function(ne,le){le||ne.display.input.resetPosition()}),q("tabindex",null,function(ne,le){return ne.display.input.getField().tabIndex=le||""}),q("autofocus",null),q("direction","ltr",function(ne,le){return ne.doc.setDirection(le)},!0),q("phrases",null)}function pt(k,W,q){var ne=q&&q!=vu;if(!W!=!ne){var le=k.display.dragFunctions,Fe=W?Te:ze;Fe(k.display.scroller,"dragstart",le.start),Fe(k.display.scroller,"dragenter",le.enter),Fe(k.display.scroller,"dragover",le.over),Fe(k.display.scroller,"dragleave",le.leave),Fe(k.display.scroller,"drop",le.drop)}}function tr(k){k.options.lineWrapping?(B(k.display.wrapper,"CodeMirror-wrap"),k.display.sizer.style.minWidth="",k.display.sizerWidth=null):(w(k.display.wrapper,"CodeMirror-wrap"),Nn(k)),Ao(k),da(k),va(k),setTimeout(function(){return ro(k)},100)}function Tr(k,W){var q=this;if(!(this instanceof Tr))return new Tr(k,W);this.options=W=W?K(W):{},K(Tu,W,!1);var ne=W.value;typeof ne=="string"?ne=new rl(ne,W.mode,null,W.lineSeparator,W.direction):W.mode&&(ne.modeOption=W.mode),this.doc=ne;var le=new Tr.inputStyles[W.inputStyle](this),Fe=this.display=new Go(k,ne,le,W);Fe.wrapper.CodeMirror=this,Bu(this),W.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),hs(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 V,keySeq:null,specialChars:null},W.autofocus&&!u&&Fe.input.focus(),f&&c<11&&setTimeout(function(){return q.display.input.reset(!0)},20),Gr(this),nu(),Mo(this),this.curOp.forceUpdate=!0,Yi(this,ne),W.autofocus&&!u||this.hasFocus()?setTimeout(function(){q.hasFocus()&&!q.state.focused&&si(q)},20):Xn(this);for(var mt in ve)ve.hasOwnProperty(mt)&&ve[mt](this,W[mt],vu);ds(this),W.finishInit&&W.finishInit(this);for(var Ut=0;Ut<_e.length;++Ut)_e[Ut](this);Fa(this),o&&W.lineWrapping&&getComputedStyle(Fe.lineDiv).textRendering=="optimizelegibility"&&(Fe.lineDiv.style.textRendering="auto")}Tr.defaults=Tu,Tr.optionHandlers=ve;function Gr(k){var W=k.display;Te(W.scroller,"mousedown",No(k,su)),f&&c<11?Te(W.scroller,"dblclick",No(k,function(nr){if(Ot(k,nr))return;var lr=za(k,nr);if(!lr||Cu(k,nr)||On(k.display,nr))return;Be(nr);var Sn=k.findWordAt(lr);Xo(k.doc,Sn.anchor,Sn.head)})):Te(W.scroller,"dblclick",function(nr){return Ot(k,nr)||Be(nr)}),Te(W.scroller,"contextmenu",function(nr){return Nu(k,nr)}),Te(W.input.getField(),"contextmenu",function(nr){W.scroller.contains(nr.target)||Nu(k,nr)});var q,ne={end:0};function le(){W.activeTouch&&(q=setTimeout(function(){return W.activeTouch=null},1e3),ne=W.activeTouch,ne.end=+new Date)}function Fe(nr){if(nr.touches.length!=1)return!1;var lr=nr.touches[0];return lr.radiusX<=1&&lr.radiusY<=1}function mt(nr,lr){if(lr.left==null)return!0;var Sn=lr.left-nr.left,Bn=lr.top-nr.top;return Sn*Sn+Bn*Bn>20*20}Te(W.scroller,"touchstart",function(nr){if(!Ot(k,nr)&&!Fe(nr)&&!Cu(k,nr)){W.input.ensurePolled(),clearTimeout(q);var lr=+new Date;W.activeTouch={start:lr,moved:!1,prev:lr-ne.end<=300?ne:null},nr.touches.length==1&&(W.activeTouch.left=nr.touches[0].pageX,W.activeTouch.top=nr.touches[0].pageY)}}),Te(W.scroller,"touchmove",function(){W.activeTouch&&(W.activeTouch.moved=!0)}),Te(W.scroller,"touchend",function(nr){var lr=W.activeTouch;if(lr&&!On(W,nr)&&lr.left!=null&&!lr.moved&&new Date-lr.start<300){var Sn=k.coordsChar(W.activeTouch,"page"),Bn;!lr.prev||mt(lr,lr.prev)?Bn=new se(Sn,Sn):!lr.prev.prev||mt(lr,lr.prev.prev)?Bn=k.findWordAt(Sn):Bn=new se(_t(Sn.line,0),ot(k.doc,_t(Sn.line+1,0))),k.setSelection(Bn.anchor,Bn.head),k.focus(),Be(nr)}le()}),Te(W.scroller,"touchcancel",le),Te(W.scroller,"scroll",function(){W.scroller.clientHeight&&(Gi(k,W.scroller.scrollTop),ya(k,W.scroller.scrollLeft,!0),dt(k,"scroll",k))}),Te(W.scroller,"mousewheel",function(nr){return hi(k,nr)}),Te(W.scroller,"DOMMouseScroll",function(nr){return hi(k,nr)}),Te(W.wrapper,"scroll",function(){return W.wrapper.scrollTop=W.wrapper.scrollLeft=0}),W.dragFunctions={enter:function(lr){Ot(k,lr)||Re(lr)},over:function(lr){Ot(k,lr)||(tu(k,lr),Re(lr))},start:function(lr){return Vl(k,lr)},drop:No(k,dl),leave:function(lr){Ot(k,lr)||ru(k)}};var Ut=W.input.getField();Te(Ut,"keyup",function(nr){return gl.call(k,nr)}),Te(Ut,"keydown",No(k,Hl)),Te(Ut,"keypress",No(k,yl)),Te(Ut,"focus",function(nr){return si(k,nr)}),Te(Ut,"blur",function(nr){return Xn(k,nr)})}var _e=[];Tr.defineInitHook=function(k){return _e.push(k)};function te(k,W,q,ne){var le=k.doc,Fe;q==null&&(q="add"),q=="smart"&&(le.mode.indent?Fe=_n(k,W).state:q="prev");var mt=k.options.tabSize,Ut=Ee(le,W),nr=j(Ut.text,null,mt);Ut.stateAfter&&(Ut.stateAfter=null);var lr=Ut.text.match(/^\s*/)[0],Sn;if(!ne&&!/\S/.test(Ut.text))Sn=0,q="not";else if(q=="smart"&&(Sn=le.mode.indent(Fe,Ut.text.slice(lr.length),Ut.text),Sn==ee||Sn>150)){if(!ne)return;q="prev"}q=="prev"?W>le.first?Sn=j(Ee(le,W-1).text,null,mt):Sn=0:q=="add"?Sn=nr+k.options.indentUnit:q=="subtract"?Sn=nr-k.options.indentUnit:typeof q=="number"&&(Sn=nr+q),Sn=Math.max(0,Sn);var Bn="",Zn=0;if(k.options.indentWithTabs)for(var ni=Math.floor(Sn/mt);ni;--ni)Zn+=mt,Bn+=" ";if(Zn<Sn&&(Bn+=He(Sn-Zn)),Bn!=lr)return tl(le,Bn,_t(W,0),_t(W,lr.length),"+input"),Ut.stateAfter=null,!0;for(var Pi=0;Pi<le.sel.ranges.length;Pi++){var Ji=le.sel.ranges[Pi];if(Ji.head.line==W&&Ji.head.ch<lr.length){var ua=_t(W,lr.length);Cs(le,Pi,new se(ua,ua));break}}}var ye=null;function Ge(k){ye=k}function lt(k,W,q,ne,le){var Fe=k.doc;k.display.shift=!1,ne||(ne=Fe.sel);var mt=+new Date-200,Ut=le=="paste"||k.state.pasteIncoming>mt,nr=nn(W),lr=null;if(Ut&&ne.ranges.length>1)if(ye&&ye.text.join(`
|
|
|
`)==W){if(ne.ranges.length%ye.text.length==0){lr=[];for(var Sn=0;Sn<ye.text.length;Sn++)lr.push(Fe.splitLines(ye.text[Sn]))}}else nr.length==ne.ranges.length&&k.options.pasteLinesPerSelection&&(lr=Pe(nr,function(la){return[la]}));for(var Bn=k.curOp.updateInput,Zn=ne.ranges.length-1;Zn>=0;Zn--){var ni=ne.ranges[Zn],Pi=ni.from(),Ji=ni.to();ni.empty()&&(q&&q>0?Pi=_t(Pi.line,Pi.ch-q):k.state.overwrite&&!Ut?Ji=_t(Ji.line,Math.min(Ee(Fe,Ji.line).text.length,Ji.ch+ce(nr).length)):Ut&&ye&&ye.lineWise&&ye.text.join(`
|
|
|
`)==nr.join(`
|
|
|
`)&&(Pi=Ji=_t(Pi.line,0)));var ua={from:Pi,to:Ji,text:lr?lr[Zn%lr.length]:nr,origin:le||(Ut?"paste":k.state.cutIncoming>mt?"cut":"+input")};is(k.doc,ua),dr(k,"inputRead",k,ua)}W&&!Ut&&Kt(k,W),aa(k),k.curOp.updateInput<2&&(k.curOp.updateInput=Bn),k.curOp.typing=!0,k.state.pasteIncoming=k.state.cutIncoming=-1}function Rt(k,W){var q=k.clipboardData&&k.clipboardData.getData("Text");if(q)return k.preventDefault(),!W.isReadOnly()&&!W.options.disableInput&&ho(W,function(){return lt(W,q,0,null,"paste")}),!0}function Kt(k,W){if(!k.options.electricChars||!k.options.smartIndent)return;for(var q=k.doc.sel,ne=q.ranges.length-1;ne>=0;ne--){var le=q.ranges[ne];if(le.head.ch>100||ne&&q.ranges[ne-1].head.line==le.head.line)continue;var Fe=k.getModeAt(le.head),mt=!1;if(Fe.electricChars){for(var Ut=0;Ut<Fe.electricChars.length;Ut++)if(W.indexOf(Fe.electricChars.charAt(Ut))>-1){mt=te(k,le.head.line,"smart");break}}else Fe.electricInput&&(Fe.electricInput.test(Ee(k.doc,le.head.line).text.slice(0,le.head.ch))&&(mt=te(k,le.head.line,"smart")));mt&&dr(k,"electricInput",k,le.head.line)}}function Vt(k){for(var W=[],q=[],ne=0;ne<k.doc.sel.ranges.length;ne++){var le=k.doc.sel.ranges[ne].head.line,Fe={anchor:_t(le,0),head:_t(le+1,0)};q.push(Fe),W.push(k.getRange(Fe.anchor,Fe.head))}return{text:W,ranges:q}}function Lr(k,W,q,ne){k.setAttribute("autocorrect",q?"":"off"),k.setAttribute("autocapitalize",ne?"":"off"),k.setAttribute("spellcheck",!!W)}function Jr(){var k=_("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),W=_("div",[k],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return o?k.style.width="1000px":k.setAttribute("wrap","off"),i&&(k.style.border="1px solid black"),Lr(k),W}function Or(k){var W=k.optionHandlers,q=k.helpers={};k.prototype={constructor:k,focus:function(){window.focus(),this.display.input.focus()},setOption:function(le,Fe){var mt=this.options,Ut=mt[le];if(mt[le]==Fe&&le!="mode")return;mt[le]=Fe,W.hasOwnProperty(le)&&No(this,W[le])(this,Fe,Ut),dt(this,"optionChange",this,le)},getOption:function(le){return this.options[le]},getDoc:function(){return this.doc},addKeyMap:function(le,Fe){this.state.keyMaps[Fe?"push":"unshift"](_l(le))},removeKeyMap:function(le){for(var Fe=this.state.keyMaps,mt=0;mt<Fe.length;++mt)if(Fe[mt]==le||Fe[mt].name==le)return Fe.splice(mt,1),!0},addOverlay:us(function(ne,le){var Fe=ne.token?ne:k.getMode(this.options,ne);if(Fe.startState)throw new Error("Overlays may not be stateful.");Q(this.state.overlays,{mode:Fe,modeSpec:ne,opaque:le&&le.opaque,priority:le&&le.priority||0},function(mt){return mt.priority}),this.state.modeGen++,da(this)}),removeOverlay:us(function(ne){for(var le=this.state.overlays,Fe=0;Fe<le.length;++Fe){var mt=le[Fe].modeSpec;if(mt==ne||typeof ne=="string"&&mt.name==ne){le.splice(Fe,1),this.state.modeGen++,da(this);return}}}),indentLine:us(function(ne,le,Fe){typeof le!="string"&&typeof le!="number"&&(le==null?le=this.options.smartIndent?"smart":"prev":le=le?"add":"subtract"),Mr(this.doc,ne)&&te(this,ne,le,Fe)}),indentSelection:us(function(ne){for(var le=this.doc.sel.ranges,Fe=-1,mt=0;mt<le.length;mt++){var Ut=le[mt];if(Ut.empty())Ut.head.line>Fe&&(te(this,Ut.head.line,ne,!0),Fe=Ut.head.line,mt==this.doc.sel.primIndex&&aa(this));else{var nr=Ut.from(),lr=Ut.to(),Sn=Math.max(Fe,nr.line);Fe=Math.min(this.lastLine(),lr.line-(lr.ch?0:1))+1;for(var Bn=Sn;Bn<Fe;++Bn)te(this,Bn,ne);var Zn=this.doc.sel.ranges;nr.ch==0&&le.length==Zn.length&&Zn[mt].from().ch>0&&Cs(this.doc,mt,new se(nr,Zn[mt].to()),fe)}}}),getTokenAt:function(le,Fe){return Oi(this,le,Fe)},getLineTokens:function(le,Fe){return Oi(this,_t(le),Fe,!0)},getTokenTypeAt:function(le){le=ot(this.doc,le);var Fe=ln(this,Ee(this.doc,le.line)),mt=0,Ut=(Fe.length-1)/2,nr=le.ch,lr;if(nr==0)lr=Fe[2];else for(;;){var Sn=mt+Ut>>1;if((Sn?Fe[Sn*2-1]:0)>=nr)Ut=Sn;else if(Fe[Sn*2+1]<nr)mt=Sn+1;else{lr=Fe[Sn*2+2];break}}var Bn=lr?lr.indexOf("overlay "):-1;return Bn<0?lr:Bn==0?null:lr.slice(0,Bn-1)},getModeAt:function(le){var Fe=this.doc.mode;return Fe.innerMode?k.innerMode(Fe,this.getTokenAt(le).state).mode:Fe},getHelper:function(le,Fe){return this.getHelpers(le,Fe)[0]},getHelpers:function(le,Fe){var mt=[];if(!q.hasOwnProperty(Fe))return mt;var Ut=q[Fe],nr=this.getModeAt(le);if(typeof nr[Fe]=="string")Ut[nr[Fe]]&&mt.push(Ut[nr[Fe]]);else if(nr[Fe])for(var lr=0;lr<nr[Fe].length;lr++){var Sn=Ut[nr[Fe][lr]];Sn&&mt.push(Sn)}else nr.helperType&&Ut[nr.helperType]?mt.push(Ut[nr.helperType]):Ut[nr.name]&&mt.push(Ut[nr.name]);for(var Bn=0;Bn<Ut._global.length;Bn++){var Zn=Ut._global[Bn];Zn.pred(nr,this)&&z(mt,Zn.val)==-1&&mt.push(Zn.val)}return mt},getStateAfter:function(le,Fe){var mt=this.doc;return le=Ht(mt,le==null?mt.first+mt.size-1:le),_n(this,le+1,Fe).state},cursorCoords:function(le,Fe){var mt,Ut=this.doc.sel.primary();return le==null?mt=Ut.head:typeof le=="object"?mt=ot(this.doc,le):mt=le?Ut.from():Ut.to(),Ga(this,mt,Fe||"page")},charCoords:function(le,Fe){return So(this,ot(this.doc,le),Fe||"page")},coordsChar:function(le,Fe){return le=Ea(this,le,Fe||"page"),po(this,le.left,le.top)},lineAtHeight:function(le,Fe){return le=Ea(this,{top:le,left:0},Fe||"page").top,qt(this.doc,le+this.display.viewOffset)},heightAtLine:function(le,Fe,mt){var Ut=!1,nr;if(typeof le=="number"){var lr=this.doc.first+this.doc.size-1;le<this.doc.first?le=this.doc.first:le>lr&&(le=lr,Ut=!0),nr=Ee(this.doc,le)}else nr=le;return Ia(this,nr,{top:0,left:0},Fe||"page",mt||Ut).top+(Ut?this.doc.height-Kr(nr):0)},defaultTextHeight:function(){return to(this.display)},defaultCharWidth:function(){return ao(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(le,Fe,mt,Ut,nr){var lr=this.display;le=Ga(this,ot(this.doc,le));var Sn=le.bottom,Bn=le.left;if(Fe.style.position="absolute",Fe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Fe),lr.sizer.appendChild(Fe),Ut=="over")Sn=le.top;else if(Ut=="above"||Ut=="near"){var Zn=Math.max(lr.wrapper.clientHeight,this.doc.height),ni=Math.max(lr.sizer.clientWidth,lr.lineSpace.clientWidth);(Ut=="above"||le.bottom+Fe.offsetHeight>Zn)&&le.top>Fe.offsetHeight?Sn=le.top-Fe.offsetHeight:le.bottom+Fe.offsetHeight<=Zn&&(Sn=le.bottom),Bn+Fe.offsetWidth>ni&&(Bn=ni-Fe.offsetWidth)}Fe.style.top=Sn+"px",Fe.style.left=Fe.style.right="",nr=="right"?(Bn=lr.sizer.clientWidth-Fe.offsetWidth,Fe.style.right="0px"):(nr=="left"?Bn=0:nr=="middle"&&(Bn=(lr.sizer.clientWidth-Fe.offsetWidth)/2),Fe.style.left=Bn+"px"),mt&&ba(this,{left:Bn,top:Sn,right:Bn+Fe.offsetWidth,bottom:Sn+Fe.offsetHeight})},triggerOnKeyDown:us(Hl),triggerOnKeyPress:us(yl),triggerOnKeyUp:gl,triggerOnMouseDown:us(su),execCommand:function(le){if(jl.hasOwnProperty(le))return jl[le].call(null,this)},triggerElectric:us(function(ne){Kt(this,ne)}),findPosH:function(le,Fe,mt,Ut){var nr=1;Fe<0&&(nr=-1,Fe=-Fe);for(var lr=ot(this.doc,le),Sn=0;Sn<Fe&&!(lr=Sr(this.doc,lr,nr,mt,Ut),lr.hitSide);++Sn);return lr},moveH:us(function(ne,le){var Fe=this;this.extendSelectionsBy(function(mt){return Fe.display.shift||Fe.doc.extend||mt.empty()?Sr(Fe.doc,mt.head,ne,le,Fe.options.rtlMoveVisually):ne<0?mt.from():mt.to()},we)}),deleteH:us(function(ne,le){var Fe=this.doc.sel,mt=this.doc;Fe.somethingSelected()?mt.replaceSelection("",null,"+delete"):ml(this,function(Ut){var nr=Sr(mt,Ut.head,ne,le,!1);return ne<0?{from:nr,to:Ut.head}:{from:Ut.head,to:nr}})}),findPosV:function(le,Fe,mt,Ut){var nr=1,lr=Ut;Fe<0&&(nr=-1,Fe=-Fe);for(var Sn=ot(this.doc,le),Bn=0;Bn<Fe;++Bn){var Zn=Ga(this,Sn,"div");if(lr==null?lr=Zn.left:Zn.left=lr,Sn=Vr(this,Zn,nr,mt),Sn.hitSide)break}return Sn},moveV:us(function(ne,le){var Fe=this,mt=this.doc,Ut=[],nr=!this.display.shift&&!mt.extend&&mt.sel.somethingSelected();if(mt.extendSelectionsBy(function(Sn){if(nr)return ne<0?Sn.from():Sn.to();var Bn=Ga(Fe,Sn.head,"div");Sn.goalColumn!=null&&(Bn.left=Sn.goalColumn),Ut.push(Bn.left);var Zn=Vr(Fe,Bn,ne,le);return le=="page"&&Sn==mt.sel.primary()&&Qi(Fe,So(Fe,Zn,"div").top-Bn.top),Zn},we),Ut.length)for(var lr=0;lr<mt.sel.ranges.length;lr++)mt.sel.ranges[lr].goalColumn=Ut[lr]}),findWordAt:function(le){var Fe=this.doc,mt=Ee(Fe,le.line).text,Ut=le.ch,nr=le.ch;if(mt){var lr=this.getHelper(le,"wordChars");(le.sticky=="before"||nr==mt.length)&&Ut?--Ut:++nr;for(var Sn=mt.charAt(Ut),Bn=X(Sn,lr)?function(Zn){return X(Zn,lr)}:/\s/.test(Sn)?function(Zn){return/\s/.test(Zn)}:function(Zn){return!/\s/.test(Zn)&&!X(Zn)};Ut>0&&Bn(mt.charAt(Ut-1));)--Ut;for(;nr<mt.length&&Bn(mt.charAt(nr));)++nr}return new se(_t(le.line,Ut),_t(le.line,nr))},toggleOverwrite:function(le){if(le!=null&&le==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?B(this.display.cursorDiv,"CodeMirror-overwrite"):w(this.display.cursorDiv,"CodeMirror-overwrite"),dt(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==R()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:us(function(ne,le){fa(this,ne,le)}),getScrollInfo:function(){var le=this.display.scroller;return{left:le.scrollLeft,top:le.scrollTop,height:le.scrollHeight-Yn(this)-this.display.barHeight,width:le.scrollWidth-Yn(this)-this.display.barWidth,clientHeight:vi(this),clientWidth:gi(this)}},scrollIntoView:us(function(ne,le){ne==null?(ne={from:this.doc.sel.primary().head,to:null},le==null&&(le=this.options.cursorScrollMargin)):typeof ne=="number"?ne={from:_t(ne,0),to:null}:ne.from==null&&(ne={from:ne,to:null}),ne.to||(ne.to=ne.from),ne.margin=le||0,ne.from.line!=null?xo(this,ne):Wi(this,ne.from,ne.to,ne.margin)}),setSize:us(function(ne,le){var Fe=this,mt=function(lr){return typeof lr=="number"||/^\d+$/.test(String(lr))?lr+"px":lr};ne!=null&&(this.display.wrapper.style.width=mt(ne)),le!=null&&(this.display.wrapper.style.height=mt(le)),this.options.lineWrapping&&ea(this);var Ut=this.display.viewFrom;this.doc.iter(Ut,this.display.viewTo,function(nr){if(nr.widgets){for(var lr=0;lr<nr.widgets.length;lr++)if(nr.widgets[lr].noHScroll){rt(Fe,Ut,"widget");break}}++Ut}),this.curOp.forceUpdate=!0,dt(this,"refresh",this)}),operation:function(le){return ho(this,le)},startOperation:function(){return Mo(this)},endOperation:function(){return Fa(this)},refresh:us(function(){var ne=this.display.cachedTextHeight;da(this),this.curOp.forceUpdate=!0,va(this),fa(this,this.doc.scrollLeft,this.doc.scrollTop),es(this.display),(ne==null||Math.abs(ne-to(this.display))>.5||this.options.lineWrapping)&&Ao(this),dt(this,"refresh",this)}),swapDoc:us(function(ne){var le=this.doc;return le.cm=null,this.state.selectingText&&this.state.selectingText(),Yi(this,ne),va(this),this.display.input.reset(),fa(this,ne.scrollLeft,ne.scrollTop),this.curOp.forceScroll=!0,dr(this,"swapDoc",this,le),le}),phrase:function(le){var Fe=this.options.phrases;return Fe&&Object.prototype.hasOwnProperty.call(Fe,le)?Fe[le]:le},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}},Nt(k),k.registerHelper=function(ne,le,Fe){q.hasOwnProperty(ne)||(q[ne]=k[ne]={_global:[]}),q[ne][le]=Fe},k.registerGlobalHelper=function(ne,le,Fe,mt){k.registerHelper(ne,le,mt),q[ne]._global.push({pred:Fe,val:mt})}}function Sr(k,W,q,ne,le){var Fe=W,mt=q,Ut=Ee(k,W.line),nr=le&&k.direction=="rtl"?-q:q;function lr(){var oa=W.line+nr;return oa<k.first||oa>=k.first+k.size?!1:(W=new _t(oa,W.ch,W.sticky),Ut=Ee(k,oa))}function Sn(oa){var xa;if(ne=="codepoint"){var Ma=Ut.text.charCodeAt(W.ch+(ne>0?0:-1));isNaN(Ma)?xa=null:xa=new _t(W.line,Math.max(0,Math.min(Ut.text.length,W.ch+q*(Ma>=55296&&Ma<56320?2:1))),-q)}else le?xa=fu(k.cm,Ut,W,q):xa=xu(Ut,W,q);if(xa==null)if(!oa&&lr())W=Eu(le,k.cm,Ut,W.line,nr);else return!1;else W=xa;return!0}if(ne=="char"||ne=="codepoint")Sn();else if(ne=="column")Sn(!0);else if(ne=="word"||ne=="group")for(var Bn=null,Zn=ne=="group",ni=k.cm&&k.cm.getHelper(W,"wordChars"),Pi=!0;!(q<0&&!Sn(!Pi));Pi=!1){var Ji=Ut.text.charAt(W.ch)||`
|
|
|
`,ua=X(Ji,ni)?"w":Zn&&Ji==`
|
|
|
`?"n":!Zn||/\s/.test(Ji)?null:"p";if(Zn&&!Pi&&!ua&&(ua="s"),Bn&&Bn!=ua){q<0&&(q=1,Sn(),W.sticky="after");break}if(ua&&(Bn=ua),q>0&&!Sn(!Pi))break}var la=Fo(k,W,Fe,mt,!0);return bt(Fe,la)&&(la.hitSide=!0),la}function Vr(k,W,q,ne){var le=k.doc,Fe=W.left,mt;if(ne=="page"){var Ut=Math.min(k.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),nr=Math.max(Ut-.5*to(k.display),3);mt=(q>0?W.bottom:W.top)+q*nr}else ne=="line"&&(mt=q>0?W.bottom+3:W.top-3);for(var lr;!(lr=po(k,Fe,mt),!lr.outside);){if(q<0?mt<=0:mt>=le.height){lr.hitSide=!0;break}mt+=q*5}return lr}var qr=function(W){this.cm=W,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};qr.prototype.init=function(k){var W=this,q=this,ne=q.cm,le=q.div=k.lineDiv;Lr(le,ne.options.spellcheck,ne.options.autocorrect,ne.options.autocapitalize);function Fe(Ut){for(var nr=Ut.target;nr;nr=nr.parentNode){if(nr==le)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(nr.className))break}return!1}Te(le,"paste",function(Ut){if(!Fe(Ut)||Ot(ne,Ut)||Rt(Ut,ne))return;c<=11&&setTimeout(No(ne,function(){return W.updateFromDOM()}),20)}),Te(le,"compositionstart",function(Ut){W.composing={data:Ut.data,done:!1}}),Te(le,"compositionupdate",function(Ut){W.composing||(W.composing={data:Ut.data,done:!1})}),Te(le,"compositionend",function(Ut){W.composing&&(Ut.data!=W.composing.data&&W.readFromDOMSoon(),W.composing.done=!0)}),Te(le,"touchstart",function(){return q.forceCompositionEnd()}),Te(le,"input",function(){W.composing||W.readFromDOMSoon()});function mt(Ut){if(!Fe(Ut)||Ot(ne,Ut))return;if(ne.somethingSelected())Ge({lineWise:!1,text:ne.getSelections()}),Ut.type=="cut"&&ne.replaceSelection("",null,"cut");else if(ne.options.lineWiseCopyCut){var nr=Vt(ne);Ge({lineWise:!0,text:nr.text}),Ut.type=="cut"&&ne.operation(function(){ne.setSelections(nr.ranges,0,fe),ne.replaceSelection("",null,"cut")})}else return;if(Ut.clipboardData){Ut.clipboardData.clearData();var lr=ye.text.join(`
|
|
|
`);if(Ut.clipboardData.setData("Text",lr),Ut.clipboardData.getData("Text")==lr){Ut.preventDefault();return}}var Sn=Jr(),Bn=Sn.firstChild;ne.display.lineSpace.insertBefore(Sn,ne.display.lineSpace.firstChild),Bn.value=ye.text.join(`
|
|
|
`);var Zn=document.activeElement;H(Bn),setTimeout(function(){ne.display.lineSpace.removeChild(Sn),Zn.focus(),Zn==le&&q.showPrimarySelection()},50)}Te(le,"copy",mt),Te(le,"cut",mt)},qr.prototype.screenReaderLabelChanged=function(k){k?this.div.setAttribute("aria-label",k):this.div.removeAttribute("aria-label")},qr.prototype.prepareSelection=function(){var k=yr(this.cm,!1);return k.focus=document.activeElement==this.div,k},qr.prototype.showSelection=function(k,W){if(!k||!this.cm.display.view.length)return;(k.focus||W)&&this.showPrimarySelection(),this.showMultipleSelections(k)},qr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},qr.prototype.showPrimarySelection=function(){var k=this.getSelection(),W=this.cm,q=W.doc.sel.primary(),ne=q.from(),le=q.to();if(W.display.viewTo==W.display.viewFrom||ne.line>=W.display.viewTo||le.line<W.display.viewFrom){k.removeAllRanges();return}var Fe=Ni(W,k.anchorNode,k.anchorOffset),mt=Ni(W,k.focusNode,k.focusOffset);if(Fe&&!Fe.bad&&mt&&!mt.bad&&at(Et(Fe,mt),ne)==0&&at(Pt(Fe,mt),le)==0)return;var Ut=W.display.view,nr=ne.line>=W.display.viewFrom&&Tn(W,ne)||{node:Ut[0].measure.map[2],offset:0},lr=le.line<W.display.viewTo&&Tn(W,le);if(!lr){var Sn=Ut[Ut.length-1].measure,Bn=Sn.maps?Sn.maps[Sn.maps.length-1]:Sn.map;lr={node:Bn[Bn.length-1],offset:Bn[Bn.length-2]-Bn[Bn.length-3]}}if(!nr||!lr){k.removeAllRanges();return}var Zn=k.rangeCount&&k.getRangeAt(0),ni;try{ni=D(nr.node,nr.offset,lr.offset,lr.node)}catch(Pi){}ni&&(!T&&W.state.focused?(k.collapse(nr.node,nr.offset),ni.collapsed||(k.removeAllRanges(),k.addRange(ni))):(k.removeAllRanges(),k.addRange(ni)),Zn&&k.anchorNode==null?k.addRange(Zn):T&&this.startGracePeriod()),this.rememberSelection()},qr.prototype.startGracePeriod=function(){var k=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){k.gracePeriod=!1,k.selectionChanged()&&k.cm.operation(function(){return k.cm.curOp.selectionChanged=!0})},20)},qr.prototype.showMultipleSelections=function(k){I(this.cm.display.cursorDiv,k.cursors),I(this.cm.display.selectionDiv,k.selection)},qr.prototype.rememberSelection=function(){var k=this.getSelection();this.lastAnchorNode=k.anchorNode,this.lastAnchorOffset=k.anchorOffset,this.lastFocusNode=k.focusNode,this.lastFocusOffset=k.focusOffset},qr.prototype.selectionInEditor=function(){var k=this.getSelection();if(!k.rangeCount)return!1;var W=k.getRangeAt(0).commonAncestorContainer;return N(this.div,W)},qr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},qr.prototype.blur=function(){this.div.blur()},qr.prototype.getField=function(){return this.div},qr.prototype.supportsTouch=function(){return!0},qr.prototype.receivedFocus=function(){var k=this;this.selectionInEditor()?this.pollSelection():ho(this.cm,function(){return k.cm.curOp.selectionChanged=!0});function W(){k.cm.state.focused&&(k.pollSelection(),k.polling.set(k.cm.options.pollInterval,W))}this.polling.set(this.cm.options.pollInterval,W)},qr.prototype.selectionChanged=function(){var k=this.getSelection();return k.anchorNode!=this.lastAnchorNode||k.anchorOffset!=this.lastAnchorOffset||k.focusNode!=this.lastFocusNode||k.focusOffset!=this.lastFocusOffset},qr.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var k=this.getSelection(),W=this.cm;if(l&&a&&this.cm.display.gutterSpecs.length&&ci(k.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var q=Ni(W,k.anchorNode,k.anchorOffset),ne=Ni(W,k.focusNode,k.focusOffset);q&&ne&&ho(W,function(){as(W.doc,Se(q,ne),fe),(q.bad||ne.bad)&&(W.curOp.selectionChanged=!0)})},qr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var k=this.cm,W=k.display,q=k.doc.sel.primary(),ne=q.from(),le=q.to();if(ne.ch==0&&ne.line>k.firstLine()&&(ne=_t(ne.line-1,Ee(k.doc,ne.line-1).length)),le.ch==Ee(k.doc,le.line).text.length&&le.line<k.lastLine()&&(le=_t(le.line+1,0)),ne.line<W.viewFrom||le.line>W.viewTo-1)return!1;var Fe,mt,Ut;ne.line==W.viewFrom||(Fe=ja(k,ne.line))==0?(mt=wt(W.view[0].line),Ut=W.view[0].node):(mt=wt(W.view[Fe].line),Ut=W.view[Fe-1].node.nextSibling);var nr=ja(k,le.line),lr,Sn;if(nr==W.view.length-1?(lr=W.viewTo-1,Sn=W.lineDiv.lastChild):(lr=wt(W.view[nr+1].line)-1,Sn=W.view[nr+1].node.previousSibling),!Ut)return!1;for(var Bn=k.doc.splitLines(Vi(k,Ut,Sn,mt,lr)),Zn=je(k.doc,_t(mt,0),_t(lr,Ee(k.doc,lr).text.length));Bn.length>1&&Zn.length>1;)if(ce(Bn)==ce(Zn))Bn.pop(),Zn.pop(),lr--;else if(Bn[0]==Zn[0])Bn.shift(),Zn.shift(),mt++;else break;for(var ni=0,Pi=0,Ji=Bn[0],ua=Zn[0],la=Math.min(Ji.length,ua.length);ni<la&&Ji.charCodeAt(ni)==ua.charCodeAt(ni);)++ni;for(var oa=ce(Bn),xa=ce(Zn),Ma=Math.min(oa.length-(Bn.length==1?ni:0),xa.length-(Zn.length==1?ni:0));Pi<Ma&&oa.charCodeAt(oa.length-Pi-1)==xa.charCodeAt(xa.length-Pi-1);)++Pi;if(Bn.length==1&&Zn.length==1&&mt==ne.line)for(;ni&&ni>ne.ch&&oa.charCodeAt(oa.length-Pi-1)==xa.charCodeAt(xa.length-Pi-1);)ni--,Pi++;Bn[Bn.length-1]=oa.slice(0,oa.length-Pi).replace(/^\u200b+/,""),Bn[0]=Bn[0].slice(ni).replace(/\u200b+$/,"");var To=_t(mt,ni),so=_t(lr,Zn.length?ce(Zn).length-Pi:0);if(Bn.length>1||Bn[0]||at(To,so))return tl(k.doc,Bn,To,so,"+input"),!0},qr.prototype.ensurePolled=function(){this.forceCompositionEnd()},qr.prototype.reset=function(){this.forceCompositionEnd()},qr.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},qr.prototype.readFromDOMSoon=function(){var k=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(k.readDOMTimeout=null,k.composing)if(k.composing.done)k.composing=null;else return;k.updateFromDOM()},80)},qr.prototype.updateFromDOM=function(){var k=this;(this.cm.isReadOnly()||!this.pollContent())&&ho(this.cm,function(){return da(k.cm)})},qr.prototype.setUneditable=function(k){k.contentEditable="false"},qr.prototype.onKeyPress=function(k){if(k.charCode==0||this.composing)return;k.preventDefault(),this.cm.isReadOnly()||No(this.cm,lt)(this.cm,String.fromCharCode(k.charCode==null?k.keyCode:k.charCode),0)},qr.prototype.readOnlyChanged=function(k){this.div.contentEditable=String(k!="nocursor")},qr.prototype.onContextMenu=function(){},qr.prototype.resetPosition=function(){},qr.prototype.needsContentAttribute=!0;function Tn(k,W){var q=Ci(k,W.line);if(!q||q.hidden)return null;var ne=Ee(k.doc,W.line),le=Mi(q,ne,W.line),Fe=it(ne,k.doc.direction),mt="left";if(Fe){var Ut=Oe(Fe,W.ch);mt=Ut%2?"right":"left"}var nr=ia(le.map,W.ch,mt);return nr.offset=nr.collapse=="right"?nr.end:nr.start,nr}function ci(k){for(var W=k;W;W=W.parentNode)if(/CodeMirror-gutter-wrapper/.test(W.className))return!0;return!1}function Ai(k,W){return W&&(k.bad=!0),k}function Vi(k,W,q,ne,le){var Fe="",mt=!1,Ut=k.doc.lineSeparator(),nr=!1;function lr(ni){return function(Pi){return Pi.id==ni}}function Sn(){mt&&(Fe+=Ut,nr&&(Fe+=Ut),mt=nr=!1)}function Bn(ni){ni&&(Sn(),Fe+=ni)}function Zn(ni){if(ni.nodeType==1){var Pi=ni.getAttribute("cm-text");if(Pi){Bn(Pi);return}var Ji=ni.getAttribute("cm-marker"),ua;if(Ji){var la=k.findMarks(_t(ne,0),_t(le+1,0),lr(+Ji));la.length&&(ua=la[0].find(0))&&Bn(je(k.doc,ua.from,ua.to).join(Ut));return}if(ni.getAttribute("contenteditable")=="false")return;var oa=/^(pre|div|p|li|table|br)$/i.test(ni.nodeName);if(!/^br$/i.test(ni.nodeName)&&ni.textContent.length==0)return;oa&&Sn();for(var xa=0;xa<ni.childNodes.length;xa++)Zn(ni.childNodes[xa]);/^(pre|p)$/i.test(ni.nodeName)&&(nr=!0),oa&&(mt=!0)}else ni.nodeType==3&&Bn(ni.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Zn(W),W==q);)W=W.nextSibling,nr=!1;return Fe}function Ni(k,W,q){var ne;if(W==k.display.lineDiv){if(ne=k.display.lineDiv.childNodes[q],!ne)return Ai(k.clipPos(_t(k.display.viewTo-1)),!0);W=null,q=0}else for(ne=W;;ne=ne.parentNode){if(!ne||ne==k.display.lineDiv)return null;if(ne.parentNode&&ne.parentNode==k.display.lineDiv)break}for(var le=0;le<k.display.view.length;le++){var Fe=k.display.view[le];if(Fe.node==ne)return Oa(Fe,W,q)}}function Oa(k,W,q){var ne=k.text.firstChild,le=!1;if(!W||!N(ne,W))return Ai(_t(wt(k.line),0),!0);if(W==ne&&(le=!0,W=ne.childNodes[q],q=0,!W)){var Fe=k.rest?ce(k.rest):k.line;return Ai(_t(wt(Fe),Fe.text.length),le)}var mt=W.nodeType==3?W:null,Ut=W;for(!mt&&W.childNodes.length==1&&W.firstChild.nodeType==3&&(mt=W.firstChild,q&&(q=mt.nodeValue.length));Ut.parentNode!=ne;)Ut=Ut.parentNode;var nr=k.measure,lr=nr.maps;function Sn(ua,la,oa){for(var xa=-1;xa<(lr?lr.length:0);xa++)for(var Ma=xa<0?nr.map:lr[xa],To=0;To<Ma.length;To+=3){var so=Ma[To+2];if(so==ua||so==la){var Yo=wt(xa<0?k.line:k.rest[xa]),os=Ma[To]+oa;return(oa<0||so!=ua)&&(os=Ma[To+(oa?1:0)]),_t(Yo,os)}}}var Bn=Sn(mt,Ut,q);if(Bn)return Ai(Bn,le);for(var Zn=Ut.nextSibling,ni=mt?mt.nodeValue.length-q:0;Zn;Zn=Zn.nextSibling){if(Bn=Sn(Zn,Zn.firstChild,0),Bn)return Ai(_t(Bn.line,Bn.ch-ni),le);ni+=Zn.textContent.length}for(var Pi=Ut.previousSibling,Ji=q;Pi;Pi=Pi.previousSibling){if(Bn=Sn(Pi,Pi.firstChild,-1),Bn)return Ai(_t(Bn.line,Bn.ch+Ji),le);Ji+=Pi.textContent.length}}var Zi=function(W){this.cm=W,this.prevInput="",this.pollingFast=!1,this.polling=new V,this.hasSelection=!1,this.composing=null};Zi.prototype.init=function(k){var W=this,q=this,ne=this.cm;this.createField(k);var le=this.textarea;k.wrapper.insertBefore(this.wrapper,k.wrapper.firstChild),i&&(le.style.width="0px"),Te(le,"input",function(){f&&c>=9&&W.hasSelection&&(W.hasSelection=null),q.poll()}),Te(le,"paste",function(mt){if(Ot(ne,mt)||Rt(mt,ne))return;ne.state.pasteIncoming=+new Date,q.fastPoll()});function Fe(mt){if(Ot(ne,mt))return;if(ne.somethingSelected())Ge({lineWise:!1,text:ne.getSelections()});else if(ne.options.lineWiseCopyCut){var Ut=Vt(ne);Ge({lineWise:!0,text:Ut.text}),mt.type=="cut"?ne.setSelections(Ut.ranges,null,fe):(q.prevInput="",le.value=Ut.text.join(`
|
|
|
`),H(le))}else return;mt.type=="cut"&&(ne.state.cutIncoming=+new Date)}Te(le,"cut",Fe),Te(le,"copy",Fe),Te(k.scroller,"paste",function(mt){if(On(k,mt)||Ot(ne,mt))return;if(!le.dispatchEvent){ne.state.pasteIncoming=+new Date,q.focus();return}var Ut=new Event("paste");Ut.clipboardData=mt.clipboardData,le.dispatchEvent(Ut)}),Te(k.lineSpace,"selectstart",function(mt){On(k,mt)||Be(mt)}),Te(le,"compositionstart",function(){var mt=ne.getCursor("from");q.composing&&q.composing.range.clear(),q.composing={start:mt,range:ne.markText(mt,ne.getCursor("to"),{className:"CodeMirror-composing"})}}),Te(le,"compositionend",function(){q.composing&&(q.poll(),q.composing.range.clear(),q.composing=null)})},Zi.prototype.createField=function(k){this.wrapper=Jr(),this.textarea=this.wrapper.firstChild},Zi.prototype.screenReaderLabelChanged=function(k){k?this.textarea.setAttribute("aria-label",k):this.textarea.removeAttribute("aria-label")},Zi.prototype.prepareSelection=function(){var k=this.cm,W=k.display,q=k.doc,ne=yr(k);if(k.options.moveInputWithCursor){var le=Ga(k,q.sel.primary().head,"div"),Fe=W.wrapper.getBoundingClientRect(),mt=W.lineDiv.getBoundingClientRect();ne.teTop=Math.max(0,Math.min(W.wrapper.clientHeight-10,le.top+mt.top-Fe.top)),ne.teLeft=Math.max(0,Math.min(W.wrapper.clientWidth-10,le.left+mt.left-Fe.left))}return ne},Zi.prototype.showSelection=function(k){var W=this.cm,q=W.display;I(q.cursorDiv,k.cursors),I(q.selectionDiv,k.selection),k.teTop!=null&&(this.wrapper.style.top=k.teTop+"px",this.wrapper.style.left=k.teLeft+"px")},Zi.prototype.reset=function(k){if(this.contextMenuPending||this.composing)return;var W=this.cm;if(W.somethingSelected()){this.prevInput="";var q=W.getSelection();this.textarea.value=q,W.state.focused&&H(this.textarea),f&&c>=9&&(this.hasSelection=q)}else k||(this.prevInput=this.textarea.value="",f&&c>=9&&(this.hasSelection=null))},Zi.prototype.getField=function(){return this.textarea},Zi.prototype.supportsTouch=function(){return!1},Zi.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!u||R()!=this.textarea))try{this.textarea.focus()}catch(k){}},Zi.prototype.blur=function(){this.textarea.blur()},Zi.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Zi.prototype.receivedFocus=function(){this.slowPoll()},Zi.prototype.slowPoll=function(){var k=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){k.poll(),k.cm.state.focused&&k.slowPoll()})},Zi.prototype.fastPoll=function(){var k=!1,W=this;W.pollingFast=!0;function q(){var ne=W.poll();!ne&&!k?(k=!0,W.polling.set(60,q)):(W.pollingFast=!1,W.slowPoll())}W.polling.set(20,q)},Zi.prototype.poll=function(){var k=this,W=this.cm,q=this.textarea,ne=this.prevInput;if(this.contextMenuPending||!W.state.focused||mr(q)&&!ne&&!this.composing||W.isReadOnly()||W.options.disableInput||W.state.keySeq)return!1;var le=q.value;if(le==ne&&!W.somethingSelected())return!1;if(f&&c>=9&&this.hasSelection===le||h&&/[\uf700-\uf7ff]/.test(le))return W.display.input.reset(),!1;if(W.doc.sel==W.display.selForContextMenu){var Fe=le.charCodeAt(0);if(Fe==8203&&!ne&&(ne="\u200B"),Fe==8666)return this.reset(),this.cm.execCommand("undo")}for(var mt=0,Ut=Math.min(ne.length,le.length);mt<Ut&&ne.charCodeAt(mt)==le.charCodeAt(mt);)++mt;return ho(W,function(){lt(W,le.slice(mt),ne.length-mt,null,k.composing?"*compose":null),le.length>1e3||le.indexOf(`
|
|
|
`)>-1?q.value=k.prevInput="":k.prevInput=le,k.composing&&(k.composing.range.clear(),k.composing.range=W.markText(k.composing.start,W.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Zi.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Zi.prototype.onKeyPress=function(){f&&c>=9&&(this.hasSelection=null),this.fastPoll()},Zi.prototype.onContextMenu=function(k){var W=this,q=W.cm,ne=q.display,le=W.textarea;W.contextMenuPending&&W.contextMenuPending();var Fe=za(q,k),mt=ne.scroller.scrollTop;if(!Fe||n)return;var Ut=q.options.resetSelectionOnContextMenu;Ut&&q.doc.sel.contains(Fe)==-1&&No(q,as)(q.doc,Se(Fe),fe);var nr=le.style.cssText,lr=W.wrapper.style.cssText,Sn=W.wrapper.offsetParent.getBoundingClientRect();W.wrapper.style.cssText="position: static",le.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(k.clientY-Sn.top-5)+"px; left: "+(k.clientX-Sn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(f?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Bn;o&&(Bn=window.scrollY),ne.input.focus(),o&&window.scrollTo(null,Bn),ne.input.reset(),q.somethingSelected()||(le.value=W.prevInput=" "),W.contextMenuPending=ni,ne.selForContextMenu=q.doc.sel,clearTimeout(ne.detectingSelectAll);function Zn(){if(le.selectionStart!=null){var Ji=q.somethingSelected(),ua="\u200B"+(Ji?le.value:"");le.value="\u21DA",le.value=ua,W.prevInput=Ji?"":"\u200B",le.selectionStart=1,le.selectionEnd=ua.length,ne.selForContextMenu=q.doc.sel}}function ni(){if(W.contextMenuPending!=ni)return;if(W.contextMenuPending=!1,W.wrapper.style.cssText=lr,le.style.cssText=nr,f&&c<9&&ne.scrollbars.setScrollTop(ne.scroller.scrollTop=mt),le.selectionStart!=null){(!f||f&&c<9)&&Zn();var Ji=0,ua=function la(){ne.selForContextMenu==q.doc.sel&&le.selectionStart==0&&le.selectionEnd>0&&W.prevInput=="\u200B"?No(q,Wo)(q):Ji++<10?ne.detectingSelectAll=setTimeout(la,500):(ne.selForContextMenu=null,ne.input.reset())};ne.detectingSelectAll=setTimeout(ua,200)}}if(f&&c>=9&&Zn(),E){Re(k);var Pi=function Ji(){ze(window,"mouseup",Ji),setTimeout(ni,20)};Te(window,"mouseup",Pi)}else setTimeout(ni,50)},Zi.prototype.readOnlyChanged=function(k){k||this.reset(),this.textarea.disabled=k=="nocursor",this.textarea.readOnly=!!k},Zi.prototype.setUneditable=function(){},Zi.prototype.needsContentAttribute=!1;function Wa(k,W){if(W=W?K(W):{},W.value=k.value,!W.tabindex&&k.tabIndex&&(W.tabindex=k.tabIndex),!W.placeholder&&k.placeholder&&(W.placeholder=k.placeholder),W.autofocus==null){var q=R();W.autofocus=q==k||k.getAttribute("autofocus")!=null&&q==document.body}function ne(){k.value=Ut.getValue()}var le;if(k.form&&(Te(k.form,"submit",ne),!W.leaveSubmitMethodAlone)){var Fe=k.form;le=Fe.submit;try{var mt=Fe.submit=function(){ne(),Fe.submit=le,Fe.submit(),Fe.submit=mt}}catch(nr){}}W.finishInit=function(nr){nr.save=ne,nr.getTextArea=function(){return k},nr.toTextArea=function(){nr.toTextArea=isNaN,ne(),k.parentNode.removeChild(nr.getWrapperElement()),k.style.display="",k.form&&(ze(k.form,"submit",ne),!W.leaveSubmitMethodAlone&&typeof k.form.submit=="function"&&(k.form.submit=le))}},k.style.display="none";var Ut=Tr(function(nr){return k.parentNode.insertBefore(nr,k.nextSibling)},W);return Ut}function Na(k){k.off=ze,k.on=Te,k.wheelEventPixels=Hn,k.Doc=rl,k.splitLines=nn,k.countColumn=j,k.findColumn=Ce,k.isWordChar=G,k.Pass=ee,k.signal=dt,k.Line=ei,k.changeEnd=We,k.scrollbarModel=zo,k.Pos=_t,k.cmpPos=at,k.modes=ft,k.mimeModes=Ur,k.resolveMode=Un,k.getMode=wi,k.modeExtensions=Rn,k.extendMode=kn,k.copyState=Vn,k.startState=st,k.innerMode=Gt,k.commands=jl,k.keyMap=Il,k.keyName=hu,k.isModifierKey=iu,k.lookupKey=xl,k.normalizeKeyMap=pl,k.StringStream=ue,k.SharedTextMarker=zl,k.TextMarker=ul,k.LineWidget=Sl,k.e_preventDefault=Be,k.e_stopPropagation=$,k.e_stop=Re,k.addClass=B,k.contains=N,k.rmClass=w,k.keyNames=Al}Ke(Tr),Or(Tr);var Ba="iter insert remove copy getEditor constructor".split(" ");for(var Lo in rl.prototype)rl.prototype.hasOwnProperty(Lo)&&z(Ba,Lo)<0&&(Tr.prototype[Lo]=function(k){return function(){return k.apply(this.doc,arguments)}}(rl.prototype[Lo]));return Nt(rl),Tr.inputStyles={textarea:Zi,contenteditable:qr},Tr.defineMode=function(k){!Tr.defaults.mode&&k!="null"&&(Tr.defaults.mode=k),yn.apply(this,arguments)},Tr.defineMIME=Dn,Tr.defineMode("null",function(){return{token:function(W){return W.skipToEnd()}}}),Tr.defineMIME("text/plain","null"),Tr.defineExtension=function(k,W){Tr.prototype[k]=W},Tr.defineDocExtension=function(k,W){rl.prototype[k]=W},Tr.fromTextArea=Wa,Na(Tr),Tr.version="5.58.2",Tr})},Vy0f:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("iYpf"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},W2nI:function(U,P,d){var O=d("IwbS"),x=d("ProS"),T=d("bYtY"),v=["itemStyle","opacity"],S=["emphasis","itemStyle","opacity"],m=["lineStyle","opacity"],f=["emphasis","lineStyle","opacity"];function c(s,t){return s.getVisual("opacity")||s.getModel().get(t)}function o(s,t,i){var l=s.getGraphicEl(),u=c(s,t);i!=null&&(u==null&&(u=1),u*=i),l.downplay&&l.downplay(),l.traverse(function(h){h.type!=="group"&&h.setStyle("opacity",u)})}function r(s,t){var i=c(s,t),l=s.getGraphicEl();l.traverse(function(u){u.type!=="group"&&u.setStyle("opacity",i)}),l.highlight&&l.highlight()}var a=O.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(s,t){var i=t.extent;s.moveTo(t.x1,t.y1),s.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),t.orient==="vertical"?(s.lineTo(t.x2+i,t.y2),s.bezierCurveTo(t.cpx2+i,t.cpy2,t.cpx1+i,t.cpy1,t.x1+i,t.y1)):(s.lineTo(t.x2,t.y2+i),s.bezierCurveTo(t.cpx2,t.cpy2+i,t.cpx1,t.cpy1+i,t.x1,t.y1+i)),s.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),n=x.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(s,t,i){var l=this,u=s.getGraph(),h=this.group,p=s.layoutInfo,g=p.width,A=p.height,y=s.getData(),E=s.getData("edge"),C=s.get("orient");this._model=s,h.removeAll(),h.attr("position",[p.x,p.y]),u.eachEdge(function(w){var b=new a;b.dataIndex=w.dataIndex,b.seriesIndex=s.seriesIndex,b.dataType="edge";var I=w.getModel("lineStyle"),_=I.get("curveness"),L=w.node1.getLayout(),D=w.node1.getModel(),N=D.get("localX"),R=D.get("localY"),B=w.node2.getLayout(),M=w.node2.getModel(),H=M.get("localX"),F=M.get("localY"),K=w.getLayout(),j,V,z,Y,ee,fe,ie,we;b.shape.extent=Math.max(1,K.dy),b.shape.orient=C,C==="vertical"?(j=(N!=null?N*g:L.x)+K.sy,V=(R!=null?R*A:L.y)+L.dy,z=(H!=null?H*g:B.x)+K.ty,Y=F!=null?F*A:B.y,ee=j,fe=V*(1-_)+Y*_,ie=z,we=V*_+Y*(1-_)):(j=(N!=null?N*g:L.x)+L.dx,V=(R!=null?R*A:L.y)+K.sy,z=H!=null?H*g:B.x,Y=(F!=null?F*A:B.y)+K.ty,ee=j*(1-_)+z*_,fe=V,ie=j*_+z*(1-_),we=Y),b.setShape({x1:j,y1:V,x2:z,y2:Y,cpx1:ee,cpy1:fe,cpx2:ie,cpy2:we}),b.setStyle(I.getItemStyle());switch(b.style.fill){case"source":b.style.fill=w.node1.getVisual("color");break;case"target":b.style.fill=w.node2.getVisual("color");break}O.setHoverStyle(b,w.getModel("emphasis.lineStyle").getItemStyle()),h.add(b),E.setItemGraphicEl(w.dataIndex,b)}),u.eachNode(function(w){var b=w.getLayout(),I=w.getModel(),_=I.get("localX"),L=I.get("localY"),D=I.getModel("label"),N=I.getModel("emphasis.label"),R=new O.Rect({shape:{x:_!=null?_*g:b.x,y:L!=null?L*A:b.y,width:b.dx,height:b.dy},style:I.getModel("itemStyle").getItemStyle()}),B=w.getModel("emphasis.itemStyle").getItemStyle();O.setLabelStyle(R.style,B,D,N,{labelFetcher:s,labelDataIndex:w.dataIndex,defaultText:w.id,isRectText:!0}),R.setStyle("fill",w.getVisual("color")),O.setHoverStyle(R,B),h.add(R),y.setItemGraphicEl(w.dataIndex,R),R.dataType="node"}),y.eachItemGraphicEl(function(w,b){var I=y.getItemModel(b);I.get("draggable")&&(w.drift=function(_,L){l._focusAdjacencyDisabled=!0,this.shape.x+=_,this.shape.y+=L,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:s.id,dataIndex:y.getRawIndex(b),localX:this.shape.x/g,localY:this.shape.y/A})},w.ondragend=function(){l._focusAdjacencyDisabled=!1},w.draggable=!0,w.cursor="move"),w.highlight=function(){this.trigger("emphasis")},w.downplay=function(){this.trigger("normal")},w.focusNodeAdjHandler&&w.off("mouseover",w.focusNodeAdjHandler),w.unfocusNodeAdjHandler&&w.off("mouseout",w.unfocusNodeAdjHandler),I.get("focusNodeAdjacency")&&(w.on("mouseover",w.focusNodeAdjHandler=function(){l._focusAdjacencyDisabled||(l._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:s.id,dataIndex:w.dataIndex}))}),w.on("mouseout",w.unfocusNodeAdjHandler=function(){l._focusAdjacencyDisabled||l._dispatchUnfocus(i)}))}),E.eachItemGraphicEl(function(w,b){var I=E.getItemModel(b);w.focusNodeAdjHandler&&w.off("mouseover",w.focusNodeAdjHandler),w.unfocusNodeAdjHandler&&w.off("mouseout",w.unfocusNodeAdjHandler),I.get("focusNodeAdjacency")&&(w.on("mouseover",w.focusNodeAdjHandler=function(){l._focusAdjacencyDisabled||(l._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:s.id,edgeDataIndex:w.dataIndex}))}),w.on("mouseout",w.unfocusNodeAdjHandler=function(){l._focusAdjacencyDisabled||l._dispatchUnfocus(i)}))}),!this._data&&s.get("animation")&&h.setClipPath(e(h.getBoundingRect(),s,function(){h.removeClipPath()})),this._data=s.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(s){var t=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){t._unfocusDelayTimer=null,s.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(s,t,i,l){var u=s.getData(),h=u.graph,p=l.dataIndex,g=u.getItemModel(p),A=l.edgeDataIndex;if(p==null&&A==null)return;var y=h.getNodeByIndex(p),E=h.getEdgeByIndex(A);if(h.eachNode(function(w){o(w,v,.1)}),h.eachEdge(function(w){o(w,m,.1)}),y){r(y,S);var C=g.get("focusNodeAdjacency");C==="outEdges"?T.each(y.outEdges,function(w){if(w.dataIndex<0)return;r(w,f),r(w.node2,S)}):C==="inEdges"?T.each(y.inEdges,function(w){if(w.dataIndex<0)return;r(w,f),r(w.node1,S)}):C==="allEdges"&&T.each(y.edges,function(w){if(w.dataIndex<0)return;r(w,f),w.node1!==y&&r(w.node1,S),w.node2!==y&&r(w.node2,S)})}E&&(r(E,f),r(E.node1,S),r(E.node2,S))},unfocusNodeAdjacency:function(s,t,i,l){var u=s.getGraph();u.eachNode(function(h){o(h,v)}),u.eachEdge(function(h){o(h,m)})}});function e(s,t,i){var l=new O.Rect({shape:{x:s.x-10,y:s.y-10,width:0,height:s.height+20}});return O.initProps(l,{shape:{width:s.width+20}},t,i),l}U.exports=n},W4dC:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("bYtY"),v=T.each,S=T.createHashMap,m=d("7DRL"),f=d("TIY9"),c=d("yS9w"),o=d("mFDi"),r={geoJSON:f,svg:c},a={load:function(t,i,l){var u=[],h=S(),p=S(),g,A=s(t);return v(A,function(y){var E=r[y.type].load(t,y,l);v(E.regions,function(w){var b=w.name;i&&i.hasOwnProperty(b)&&(w=w.cloneShallow(b=i[b])),u.push(w),h.set(b,w),p.set(b,w.center)});var C=E.boundingRect;C&&(g?g.union(C):g=C.clone())}),{regions:u,regionsMap:h,nameCoordMap:p,boundingRect:g||new o(0,0,0,0)}},makeGraphic:n("makeGraphic"),removeGraphic:n("removeGraphic")};function n(t){return function(i,l){var u=s(i),h=[];return v(u,function(p){var g=r[p.type][t];g&&h.push(g(i,p,l))}),h}}function e(t){}function s(t){var i=m.retrieveMap(t)||[];return i}U.exports=a},WGYa:function(U,P,d){var O=d("7yuC"),x=O.forceLayout,T=d("HF/U"),v=T.simpleLayout,S=d("lOQZ"),m=S.circularLayout,f=d("OELB"),c=f.linearMap,o=d("QBsz"),r=d("bYtY");function a(n){n.eachSeriesByType("graph",function(e){var s=e.coordinateSystem;if(s&&s.type!=="view")return;if(e.get("layout")==="force"){var t=e.preservedPoints||{},i=e.getGraph(),l=i.data,u=i.edgeData,h=e.getModel("force"),p=h.get("initLayout");e.preservedPoints?l.each(function(D){var N=l.getId(D);l.setItemLayout(D,t[N]||[NaN,NaN])}):!p||p==="none"?v(e):p==="circular"&&m(e,"value");var g=l.getDataExtent("value"),A=u.getDataExtent("value"),y=h.get("repulsion"),E=h.get("edgeLength");r.isArray(y)||(y=[y,y]),r.isArray(E)||(E=[E,E]),E=[E[1],E[0]];var C=l.mapArray("value",function(D,N){var R=l.getItemLayout(N),B=c(D,g,y);return isNaN(B)&&(B=(y[0]+y[1])/2),{w:B,rep:B,fixed:l.getItemModel(N).get("fixed"),p:!R||isNaN(R[0])||isNaN(R[1])?null:R}}),w=u.mapArray("value",function(D,N){var R=i.getEdgeByIndex(N),B=c(D,A,E);isNaN(B)&&(B=(E[0]+E[1])/2);var M=R.getModel();return{n1:C[R.node1.dataIndex],n2:C[R.node2.dataIndex],d:B,curveness:M.get("lineStyle.curveness")||0,ignoreForceLayout:M.get("ignoreForceLayout")}}),s=e.coordinateSystem,b=s.getBoundingRect(),I=x(C,w,{rect:b,gravity:h.get("gravity"),friction:h.get("friction")}),_=I.step;I.step=function(D){for(var N=0,R=C.length;N<R;N++)C[N].fixed&&o.copy(C[N].p,i.getNodeByIndex(N).getLayout());_(function(B,M,H){for(var F=0,K=B.length;F<K;F++)B[F].fixed||i.getNodeByIndex(F).setLayout(B[F].p),t[l.getId(F)]=B[F].p;for(var F=0,K=M.length;F<K;F++){var j=M[F],V=i.getEdgeByIndex(F),z=j.n1.p,Y=j.n2.p,ee=V.getLayout();ee=ee?ee.slice():[],ee[0]=ee[0]||[],ee[1]=ee[1]||[],o.copy(ee[0],z),o.copy(ee[1],Y),+j.curveness&&(ee[2]=[(z[0]+Y[0])/2-(z[1]-Y[1])*j.curveness,(z[1]+Y[1])/2-(Y[0]-z[0])*j.curveness]),V.setLayout(ee)}D&&D(H)})},e.forceLayout=I,e.preservedPoints=t,I.step()}else e.forceLayout=null})}U.exports=a},"WN+l":function(U,P,d){var O=d("bYtY"),x=d("IwbS");function T(S,m,f,c){var o=f.axis;if(o.scale.isBlank())return;var r=f.getModel("splitArea"),a=r.getModel("areaStyle"),n=a.get("color"),e=c.coordinateSystem.getRect(),s=o.getTicksCoords({tickModel:r,clamp:!0});if(!s.length)return;var t=n.length,i=S.__splitAreaColors,l=O.createHashMap(),u=0;if(i)for(var h=0;h<s.length;h++){var p=i.get(s[h].tickValue);if(p!=null){u=(p+(t-1)*h)%t;break}}var g=o.toGlobalCoord(s[0].coord),A=a.getAreaStyle();n=O.isArray(n)?n:[n];for(var h=1;h<s.length;h++){var y=o.toGlobalCoord(s[h].coord),E,C,w,b;o.isHorizontal()?(E=g,C=e.y,w=y-E,b=e.height,g=E+w):(E=e.x,C=g,w=e.width,b=y-C,g=C+b);var I=s[h-1].tickValue;I!=null&&l.set(I,u),m.add(new x.Rect({anid:I!=null?"area_"+I:null,shape:{x:E,y:C,width:w,height:b},style:O.defaults({fill:n[u]},A),silent:!0})),u=(u+1)%t}S.__splitAreaColors=l}function v(S){S.__splitAreaColors=null}P.rectCoordAxisBuildSplitArea=T,P.rectCoordAxisHandleRemove=v},WXVj:function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("Bqw1")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="MinusSquareOutlined";var c=v.forwardRef(f);P.default=c},WYAk:function(U,P,d){(function(O,x){U.exports=P=x(d("Ib8C"))})(this,function(O){(function(){var x=O,T=x.lib,v=T.Base,S=x.enc,m=S.Utf8,f=x.algo,c=f.HMAC=v.extend({init:function(r,a){r=this._hasher=new r.init,typeof a=="string"&&(a=m.parse(a));var n=r.blockSize,e=n*4;a.sigBytes>e&&(a=r.finalize(a)),a.clamp();for(var s=this._oKey=a.clone(),t=this._iKey=a.clone(),i=s.words,l=t.words,u=0;u<n;u++)i[u]^=1549556828,l[u]^=909522486;s.sigBytes=t.sigBytes=e,this.reset()},reset:function(){var r=this._hasher;r.reset(),r.update(this._iKey)},update:function(r){return this._hasher.update(r),this},finalize:function(r){var a=this._hasher,n=a.finalize(r);a.reset();var e=a.finalize(this._oKey.clone().concat(n));return e}})})()})},Wqna:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("bYtY"),v=T.isObject,S=T.each,m=T.map,f=T.indexOf,c=T.retrieve,o=d("+TT/"),r=o.getLayoutRect,a=d("aX7z"),n=a.createScaleByModel,e=a.ifAxisCrossZero,s=a.niceScaleExtent,t=a.estimateLabelUnionRect,i=d("y+lR"),l=d("7AJT"),u=d("IDmD"),h=d("7hqr"),p=h.getStackedDimension;d("jtI2");function g(D,N,R){return D.getCoordSysModel()===N}function A(D,N,R){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(D,N,R),this.model=D}var y=A.prototype;y.type="grid",y.axisPointerEnabled=!0,y.getRect=function(){return this._rect},y.update=function(D,N){var R=this._axesMap;this._updateScale(D,this.model),S(R.x,function(M){s(M.scale,M.model)}),S(R.y,function(M){s(M.scale,M.model)});var B={};S(R.x,function(M){E(R,"y",M,B)}),S(R.y,function(M){E(R,"x",M,B)}),this.resize(this.model,N)};function E(D,N,R,B){R.getAxesOnZeroOf=function(){return H?[H]:[]};var M=D[N],H,F=R.model,K=F.get("axisLine.onZero"),j=F.get("axisLine.onZeroAxisIndex");if(!K)return;if(j!=null)C(M[j])&&(H=M[j]);else for(var V in M)if(M.hasOwnProperty(V)&&C(M[V])&&!B[z(M[V])]){H=M[V];break}H&&(B[z(H)]=!0);function z(Y){return Y.dim+"_"+Y.index}}function C(D){return D&&D.type!=="category"&&D.type!=="time"&&e(D)}y.resize=function(D,N,R){var B=r(D.getBoxLayoutParams(),{width:N.getWidth(),height:N.getHeight()});this._rect=B;var M=this._axesList;H(),!R&&D.get("containLabel")&&(S(M,function(F){if(!F.model.get("axisLabel.inside")){var K=t(F);if(K){var j=F.isHorizontal()?"height":"width",V=F.model.get("axisLabel.margin");B[j]-=K[j]+V,F.position==="top"?B.y+=K.height+V:F.position==="left"&&(B.x+=K.width+V)}}}),H());function H(){S(M,function(F){var K=F.isHorizontal(),j=K?[0,B.width]:[0,B.height],V=F.inverse?1:0;F.setExtent(j[V],j[1-V]),w(F,K?B.x:B.y)})}},y.getAxis=function(D,N){var R=this._axesMap[D];if(R!=null){if(N==null){for(var B in R)if(R.hasOwnProperty(B))return R[B]}return R[N]}},y.getAxes=function(){return this._axesList.slice()},y.getCartesian=function(D,N){if(D!=null&&N!=null){var R="x"+D+"y"+N;return this._coordsMap[R]}v(D)&&(N=D.yAxisIndex,D=D.xAxisIndex);for(var B=0,M=this._coordsList;B<M.length;B++)if(M[B].getAxis("x").index===D||M[B].getAxis("y").index===N)return M[B]},y.getCartesians=function(){return this._coordsList.slice()},y.convertToPixel=function(D,N,R){var B=this._findConvertTarget(D,N);return B.cartesian?B.cartesian.dataToPoint(R):B.axis?B.axis.toGlobalCoord(B.axis.dataToCoord(R)):null},y.convertFromPixel=function(D,N,R){var B=this._findConvertTarget(D,N);return B.cartesian?B.cartesian.pointToData(R):B.axis?B.axis.coordToData(B.axis.toLocalCoord(R)):null},y._findConvertTarget=function(D,N){var R=N.seriesModel,B=N.xAxisModel||R&&R.getReferringComponents("xAxis")[0],M=N.yAxisModel||R&&R.getReferringComponents("yAxis")[0],H=N.gridModel,F=this._coordsList,K,j;if(R)K=R.coordinateSystem,f(F,K)<0&&(K=null);else if(B&&M)K=this.getCartesian(B.componentIndex,M.componentIndex);else if(B)j=this.getAxis("x",B.componentIndex);else if(M)j=this.getAxis("y",M.componentIndex);else if(H){var V=H.coordinateSystem;V===this&&(K=this._coordsList[0])}return{cartesian:K,axis:j}},y.containPoint=function(D){var N=this._coordsList[0];if(N)return N.containPoint(D)},y._initCartesian=function(D,N,R){var B={left:!1,right:!1,top:!1,bottom:!1},M={x:{},y:{}},H={x:0,y:0};if(N.eachComponent("xAxis",F("x"),this),N.eachComponent("yAxis",F("y"),this),!H.x||!H.y){this._axesMap={},this._axesList=[];return}this._axesMap=M,S(M.x,function(K,j){S(M.y,function(V,z){var Y="x"+j+"y"+z,ee=new i(Y);ee.grid=this,ee.model=D,this._coordsMap[Y]=ee,this._coordsList.push(ee),ee.addAxis(K),ee.addAxis(V)},this)},this);function F(K){return function(j,V){if(!g(j,D,N))return;var z=j.get("position");K==="x"?z!=="top"&&z!=="bottom"&&(z=B.bottom?"top":"bottom"):z!=="left"&&z!=="right"&&(z=B.left?"right":"left"),B[z]=!0;var Y=new l(K,n(j),[0,0],j.get("type"),z),ee=Y.type==="category";Y.onBand=ee&&j.get("boundaryGap"),Y.inverse=j.get("inverse"),j.axis=Y,Y.model=j,Y.grid=this,Y.index=V,this._axesList.push(Y),M[K][V]=Y,H[K]++}}},y._updateScale=function(D,N){S(this._axesList,function(B){B.scale.setExtent(Infinity,-Infinity)}),D.eachSeries(function(B){if(_(B)){var M=I(B,D),H=M[0],F=M[1];if(!g(H,N,D)||!g(F,N,D))return;var K=this.getCartesian(H.componentIndex,F.componentIndex),j=B.getData(),V=K.getAxis("x"),z=K.getAxis("y");j.type==="list"&&(R(j,V,B),R(j,z,B))}},this);function R(B,M,H){S(B.mapDimension(M.dim,!0),function(F){M.scale.unionExtentFromData(B,p(B,F))})}},y.getTooltipAxes=function(D){var N=[],R=[];return S(this.getCartesians(),function(B){var M=D!=null&&D!=="auto"?B.getAxis(D):B.getBaseAxis(),H=B.getOtherAxis(M);f(N,M)<0&&N.push(M),f(R,H)<0&&R.push(H)}),{baseAxes:N,otherAxes:R}};function w(D,N){var R=D.getExtent(),B=R[0]+R[1];D.toGlobalCoord=D.dim==="x"?function(M){return M+N}:function(M){return B-M+N},D.toLocalCoord=D.dim==="x"?function(M){return M-N}:function(M){return B-M+N}}var b=["xAxis","yAxis"];function I(D,N){return m(b,function(R){var B=D.getReferringComponents(R)[0];return B})}function _(D){return D.get("coordinateSystem")==="cartesian2d"}A.create=function(D,N){var R=[];return D.eachComponent("grid",function(B,M){var H=new A(B,D,N);H.name="grid_"+M,H.resize(B,N,!0),B.coordinateSystem=H,R.push(H)}),D.eachSeries(function(B){if(!_(B))return;var M=I(B,D),H=M[0],F=M[1],K=H.getCoordSysModel(),j=K.coordinateSystem;B.coordinateSystem=j.getCartesian(H.componentIndex,F.componentIndex)}),R},A.dimensions=A.prototype.dimensions=i.prototype.dimensions,u.register("cartesian2d",A);var L=A;U.exports=L},"X+im":function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("KQeH")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="DownloadOutlined";var c=v.forwardRef(f);P.default=c},"X2/X":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};P.default=O},XAae:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("hwYd"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},XOKv:function(U,P,d){d("OXB0"),d("SA4+")},Xmg4:function(U,P,d){var O=d("bYtY"),x=d("LPTA"),T=x.devicePixelRatio,v=d("K2GJ"),S=d("3C/r");function m(){return!1}function f(r,a,n){var e=O.createCanvas(),s=a.getWidth(),t=a.getHeight(),i=e.style;return i&&(i.position="absolute",i.left=0,i.top=0,i.width=s+"px",i.height=t+"px",e.setAttribute("data-zr-dom-id",r)),e.width=s*n,e.height=t*n,e}var c=function(a,n,e){var s;e=e||T,typeof a=="string"?s=f(a,n,e):O.isObject(a)&&(s=a,a=s.id),this.id=a,this.dom=s;var t=s.style;t&&(s.onselectstart=m,t["-webkit-user-select"]="none",t["user-select"]="none",t["-webkit-touch-callout"]="none",t["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",t.padding=0,t.margin=0,t["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=n,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=e};c.prototype={constructor:c,__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 a=this.dpr;this.domBack=f("back-"+this.id,this.painter,a),this.ctxBack=this.domBack.getContext("2d"),a!==1&&this.ctxBack.scale(a,a)},resize:function(a,n){var e=this.dpr,s=this.dom,t=s.style,i=this.domBack;t&&(t.width=a+"px",t.height=n+"px"),s.width=a*e,s.height=n*e,i&&(i.width=a*e,i.height=n*e,e!==1&&this.ctxBack.scale(e,e))},clear:function(a,n){var e=this.dom,s=this.ctx,t=e.width,i=e.height,n=n||this.clearColor,l=this.motionBlur&&!a,u=this.lastFrameAlpha,h=this.dpr;if(l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,t/h,i/h)),s.clearRect(0,0,t,i),n&&n!=="transparent"){var p;n.colorStops?(p=n.__canvasGradient||v.getGradient(s,n,{x:0,y:0,width:t,height:i}),n.__canvasGradient=p):n.image&&(p=S.prototype.getCanvasPattern.call(n,s)),s.save(),s.fillStyle=p||n,s.fillRect(0,0,t,i),s.restore()}if(l){var g=this.domBack;s.save(),s.globalAlpha=u,s.drawImage(g,0,0,t,i),s.restore()}}};var o=c;U.exports=o},Xnb7:function(U,P,d){var O=d("1RvN"),x=new O(50);function T(f){if(typeof f=="string"){var c=x.get(f);return c&&c.image}else return f}function v(f,c,o,r,a){if(f)if(typeof f=="string"){if(c&&c.__zrImageSrc===f||!o)return c;var n=x.get(f),e={hostEl:o,cb:r,cbPayload:a};return n?(c=n.image,!m(c)&&n.pending.push(e)):(c=new Image,c.onload=c.onerror=S,x.put(f,c.__cachedImgObj={image:c,pending:[e]}),c.src=c.__zrImageSrc=f),c}else return f;else return c}function S(){var f=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var c=0;c<f.pending.length;c++){var o=f.pending[c],r=o.cb;r&&r(this,o.cbPayload),o.hostEl.dirty()}f.pending.length=0}function m(f){return f&&f.width&&f.height}P.findExistImage=T,P.createOrUpdateImage=v,P.isImageReady=m},XpcN:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("ProS"),v=d("bYtY"),S=d("oVpE"),m=S.createSymbol,f=d("IwbS"),c=d("eRkO"),o=c.makeBackground,r=d("+TT/"),a=v.curry,n=v.each,e=f.Group,s=T.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new e),this._backgroundEl,this.group.add(this._selectorGroup=new e),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(h,p,g){var A=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!h.get("show",!0))return;var y=h.get("align"),E=h.get("orient");(!y||y==="auto")&&(y=h.get("left")==="right"&&E==="vertical"?"right":"left");var C=h.get("selector",!0),w=h.get("selectorPosition",!0);C&&(!w||w==="auto")&&(w=E==="horizontal"?"end":"start"),this.renderInner(y,h,p,g,C,E,w);var b=h.getBoxLayoutParams(),I={width:g.getWidth(),height:g.getHeight()},_=h.get("padding"),L=r.getLayoutRect(b,I,_),D=this.layoutInner(h,y,L,A,C,w),N=r.getLayoutRect(v.defaults({width:D.width,height:D.height},b),I,_);this.group.attr("position",[N.x-D.x,N.y-D.y]),this.group.add(this._backgroundEl=o(D,h))},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(h,p,g,A,y,E,C){var w=this.getContentGroup(),b=v.createHashMap(),I=p.get("selectedMode"),_=[];g.eachRawSeries(function(L){!L.get("legendHoverLink")&&_.push(L.id)}),n(p.getData(),function(L,D){var N=L.get("name");if(!this.newlineDisabled&&(N===""||N===`
|
|
|
`)){w.add(new e({newline:!0}));return}var R=g.getSeriesByName(N)[0];if(b.get(N))return;if(R){var B=R.getData(),M=B.getVisual("color"),H=B.getVisual("borderColor");typeof M=="function"&&(M=M(R.getDataParams(0))),typeof H=="function"&&(H=H(R.getDataParams(0)));var F=B.getVisual("legendSymbol")||"roundRect",K=B.getVisual("symbol"),j=this._createItem(N,D,L,p,F,K,h,M,H,I);j.on("click",a(i,N,null,A,_)).on("mouseover",a(l,R.name,null,A,_)).on("mouseout",a(u,R.name,null,A,_)),b.set(N,!0)}else g.eachRawSeries(function(V){if(b.get(N))return;if(V.legendVisualProvider){var z=V.legendVisualProvider;if(!z.containName(N))return;var Y=z.indexOfName(N),ee=z.getItemVisual(Y,"color"),fe=z.getItemVisual(Y,"borderColor"),ie="roundRect",we=this._createItem(N,D,L,p,ie,null,h,ee,fe,I);we.on("click",a(i,null,N,A,_)).on("mouseover",a(l,null,N,A,_)).on("mouseout",a(u,null,N,A,_)),b.set(N,!0)}},this)},this),y&&this._createSelector(y,p,A,E,C)},_createSelector:function(h,p,g,A,y){var E=this.getSelectorGroup();n(h,function(w){C(w)});function C(w){var b=w.type,I=new f.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){g.dispatchAction({type:b==="all"?"legendAllSelect":"legendInverseSelect"})}});E.add(I);var _=p.getModel("selectorLabel"),L=p.getModel("emphasis.selectorLabel");f.setLabelStyle(I.style,I.hoverStyle={},_,L,{defaultText:w.title,isRectText:!1}),f.setHoverStyle(I)}},_createItem:function(h,p,g,A,y,E,C,w,b,I){var _=A.get("itemWidth"),L=A.get("itemHeight"),D=A.get("inactiveColor"),N=A.get("inactiveBorderColor"),R=A.get("symbolKeepAspect"),B=A.getModel("itemStyle"),M=A.isSelected(h),H=new e,F=g.getModel("textStyle"),K=g.get("icon"),j=g.getModel("tooltip"),V=j.parentModel;y=K||y;var z=m(y,0,0,_,L,M?w:D,R==null?!0:R);if(H.add(t(z,y,B,b,N,M)),!K&&E&&(E!==y||E==="none")){var Y=L*.8;E==="none"&&(E="circle");var ee=m(E,(_-Y)/2,(L-Y)/2,Y,Y,M?w:D,R==null?!0:R);H.add(t(ee,E,B,b,N,M))}var fe=C==="left"?_+5:-5,ie=C,we=A.get("formatter"),Ce=h;typeof we=="string"&&we?Ce=we.replace("{name}",h!=null?h:""):typeof we=="function"&&(Ce=we(h)),H.add(new f.Text({style:f.setTextStyle({},F,{text:Ce,x:fe,y:L/2,textFill:M?F.getTextColor():D,textAlign:ie,textVerticalAlign:"middle"})}));var Le=new f.Rect({shape:H.getBoundingRect(),invisible:!0,tooltip:j.get("show")?v.extend({content:h,formatter:V.get("formatter",!0)||function(){return h},formatterParams:{componentType:"legend",legendIndex:A.componentIndex,name:h,$vars:["name"]}},j.option):null});return H.add(Le),H.eachChild(function(He){He.silent=!0}),Le.silent=!I,this.getContentGroup().add(H),f.setHoverStyle(H),H.__legendDataIndex=p,H},layoutInner:function(h,p,g,A,y,E){var C=this.getContentGroup(),w=this.getSelectorGroup();r.box(h.get("orient"),C,h.get("itemGap"),g.width,g.height);var b=C.getBoundingRect(),I=[-b.x,-b.y];if(y){r.box("horizontal",w,h.get("selectorItemGap",!0));var _=w.getBoundingRect(),L=[-_.x,-_.y],D=h.get("selectorButtonGap",!0),N=h.getOrient().index,R=N===0?"width":"height",B=N===0?"height":"width",M=N===0?"y":"x";E==="end"?L[N]+=b[R]+D:I[N]+=_[R]+D,L[1-N]+=b[B]/2-_[B]/2,w.attr("position",L),C.attr("position",I);var H={x:0,y:0};return H[R]=b[R]+D+_[R],H[B]=Math.max(b[B],_[B]),H[M]=Math.min(0,_[M]+L[1-N]),H}else return C.attr("position",I),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function t(h,p,g,A,y,E){var C;return p!=="line"&&p.indexOf("empty")<0?(C=g.getItemStyle(),h.style.stroke=A,E||(C.stroke=y)):C=g.getItemStyle(["borderWidth","borderColor"]),h.setStyle(C)}function i(h,p,g,A){u(h,p,g,A),g.dispatchAction({type:"legendToggleSelect",name:h!=null?h:p}),l(h,p,g,A)}function l(h,p,g,A){var y=g.getZr().storage.getDisplayList()[0];y&&y.useHoverLayer||g.dispatchAction({type:"highlight",seriesName:h,name:p,excludeSeriesId:A})}function u(h,p,g,A){var y=g.getZr().storage.getDisplayList()[0];y&&y.useHoverLayer||g.dispatchAction({type:"downplay",seriesName:h,name:p,excludeSeriesId:A})}U.exports=s},XuBP:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};P.default=O},XxSj:function(U,P,d){var O=d("bYtY"),x=d("Qe9p"),T=d("OELB"),v=T.linearMap,S=O.each,m=O.isObject,f=-1,c=function(E){var C=E.mappingMethod,w=E.type,b=this.option=O.clone(E);this.type=w,this.mappingMethod=C,this._normalizeData=g[C];var I=o[w];this.applyVisual=I.applyVisual,this.getColorMapper=I.getColorMapper,this._doMap=I._doMap[C],C==="piecewise"?(n(b),r(b)):C==="category"?b.categories?a(b):n(b,!0):(O.assert(C!=="linear"||b.dataExtent),n(b))};c.prototype={constructor:c,mapValueToVisual:function(E){var C=this._normalizeData(E);return this._doMap(C,E)},getNormalizer:function(){return O.bind(this._normalizeData,this)}};var o=c.visualHandlers={color:{applyVisual:t("color"),getColorMapper:function(){var E=this.option;return O.bind(E.mappingMethod==="category"?function(C,w){return!w&&(C=this._normalizeData(C)),i.call(this,C)}:function(C,w,b){var I=!!b;return!w&&(C=this._normalizeData(C)),b=x.fastLerp(C,E.parsedVisual,b),I?b:x.stringify(b,"rgba")},this)},_doMap:{linear:function(E){return x.stringify(x.fastLerp(E,this.option.parsedVisual),"rgba")},category:i,piecewise:function(E,C){var w=h.call(this,C);return w==null&&(w=x.stringify(x.fastLerp(E,this.option.parsedVisual),"rgba")),w},fixed:l}},colorHue:e(function(E,C){return x.modifyHSL(E,C)}),colorSaturation:e(function(E,C){return x.modifyHSL(E,null,C)}),colorLightness:e(function(E,C){return x.modifyHSL(E,null,null,C)}),colorAlpha:e(function(E,C){return x.modifyAlpha(E,C)}),opacity:{applyVisual:t("opacity"),_doMap:u([0,1])},liftZ:{applyVisual:t("liftZ"),_doMap:{linear:l,category:l,piecewise:l,fixed:l}},symbol:{applyVisual:function(E,C,w){var b=this.mapValueToVisual(E);if(O.isString(b))w("symbol",b);else if(m(b))for(var I in b)b.hasOwnProperty(I)&&w(I,b[I])},_doMap:{linear:s,category:i,piecewise:function(E,C){var w=h.call(this,C);return w==null&&(w=s.call(this,E)),w},fixed:l}},symbolSize:{applyVisual:t("symbolSize"),_doMap:u([0,1])}};function r(E){var C=E.pieceList;E.hasSpecialVisual=!1,O.each(C,function(w,b){w.originIndex=b,w.visual!=null&&(E.hasSpecialVisual=!0)})}function a(E){var C=E.categories,w=E.visual,b=E.categoryMap={};if(S(C,function(L,D){b[L]=D}),!O.isArray(w)){var I=[];O.isObject(w)?S(w,function(L,D){var N=b[D];I[N!=null?N:f]=L}):I[f]=w,w=p(E,I)}for(var _=C.length-1;_>=0;_--)w[_]==null&&(delete b[C[_]],C.pop())}function n(E,C){var w=E.visual,b=[];O.isObject(w)?S(w,function(_){b.push(_)}):w!=null&&b.push(w);var I={color:1,symbol:1};!C&&b.length===1&&!I.hasOwnProperty(E.type)&&(b[1]=b[0]),p(E,b)}function e(E){return{applyVisual:function(C,w,b){C=this.mapValueToVisual(C),b("color",E(w("color"),C))},_doMap:u([0,1])}}function s(E){var C=this.option.visual;return C[Math.round(v(E,[0,1],[0,C.length-1],!0))]||{}}function t(E){return function(C,w,b){b(E,this.mapValueToVisual(C))}}function i(E){var C=this.option.visual;return C[this.option.loop&&E!==f?E%C.length:E]}function l(){return this.option.visual[0]}function u(E){return{linear:function(C){return v(C,E,this.option.visual,!0)},category:i,piecewise:function(C,w){var b=h.call(this,w);return b==null&&(b=v(C,E,this.option.visual,!0)),b},fixed:l}}function h(E){var C=this.option,w=C.pieceList;if(C.hasSpecialVisual){var b=c.findPieceIndex(E,w),I=w[b];if(I&&I.visual)return I.visual[this.type]}}function p(E,C){return E.visual=C,E.type==="color"&&(E.parsedVisual=O.map(C,function(w){return x.parse(w)})),C}var g={linear:function(E){return v(E,this.option.dataExtent,[0,1],!0)},piecewise:function(E){var C=this.option.pieceList,w=c.findPieceIndex(E,C,!0);if(w!=null)return v(w,[0,C.length-1],[0,1],!0)},category:function(E){var C=this.option.categories?this.option.categoryMap[E]:E;return C==null?f:C},fixed:O.noop};c.listVisualTypes=function(){var E=[];return O.each(o,function(C,w){E.push(w)}),E},c.addVisualHandler=function(E,C){o[E]=C},c.isValidType=function(E){return o.hasOwnProperty(E)},c.eachVisual=function(E,C,w){O.isObject(E)?O.each(E,C,w):C.call(w,E)},c.mapVisual=function(E,C,w){var b,I=O.isArray(E)?[]:O.isObject(E)?{}:(b=!0,null);return c.eachVisual(E,function(_,L){var D=C.call(w,_,L);b?I=D:I[L]=D}),I},c.retrieveVisuals=function(E){var C={},w;return E&&S(o,function(b,I){E.hasOwnProperty(I)&&(C[I]=E[I],w=!0)}),w?C:null},c.prepareVisualTypes=function(E){if(m(E)){var C=[];S(E,function(w,b){C.push(b)}),E=C}else if(O.isArray(E))E=E.slice();else return[];return E.sort(function(w,b){return b==="color"&&w!=="color"&&w.indexOf("color")===0?1:-1}),E},c.dependsOn=function(E,C){return C==="color"?!!(E&&E.indexOf(C)===0):E===C},c.findPieceIndex=function(E,C,w){for(var b,I=Infinity,_=0,L=C.length;_<L;_++){var D=C[_].value;if(D!=null){if(D===E||typeof D=="string"&&D===E+"")return _;w&&M(D,_)}}for(var _=0,L=C.length;_<L;_++){var N=C[_],R=N.interval,B=N.close;if(R){if(R[0]===-Infinity){if(A(B[1],E,R[1]))return _}else if(R[1]===Infinity){if(A(B[0],R[0],E))return _}else if(A(B[0],R[0],E)&&A(B[1],E,R[1]))return _;w&&M(R[0],_),w&&M(R[1],_)}}if(w)return E===Infinity?C.length-1:E===-Infinity?0:b;function M(H,F){var K=Math.abs(H-E);K<I&&(I=K,b=F)}};function A(E,C,w){return E?C<=w:C<w}var y=c;U.exports=y},XzQk:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("KpQ+"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},Y1PL:function(U,P,d){"use strict";d.r(P),d.d(P,"ResizableTextArea",function(){return g});var O=d("wx14"),x=d("1OyB"),T=d("vuIU"),v=d("Ji7U"),S=d("LK+K"),m=d("q1tI"),f=d("VTBJ"),c=d("rePB"),o=d("t23M"),r=d("bT9E"),a=d("TSYQ"),n=d.n(a),e=`
|
|
|
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
|
|
|
`,s=["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"],t={},i;function l(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=E.getAttribute("id")||E.getAttribute("data-reactid")||E.getAttribute("name");if(C&&t[w])return t[w];var b=window.getComputedStyle(E),I=b.getPropertyValue("box-sizing")||b.getPropertyValue("-moz-box-sizing")||b.getPropertyValue("-webkit-box-sizing"),_=parseFloat(b.getPropertyValue("padding-bottom"))+parseFloat(b.getPropertyValue("padding-top")),L=parseFloat(b.getPropertyValue("border-bottom-width"))+parseFloat(b.getPropertyValue("border-top-width")),D=s.map(function(R){return"".concat(R,":").concat(b.getPropertyValue(R))}).join(";"),N={sizingStyle:D,paddingSize:_,borderSize:L,boxSizing:I};return C&&w&&(t[w]=N),N}function u(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;i||(i=document.createElement("textarea"),i.setAttribute("tab-index","-1"),i.setAttribute("aria-hidden","true"),document.body.appendChild(i)),E.getAttribute("wrap")?i.setAttribute("wrap",E.getAttribute("wrap")):i.removeAttribute("wrap");var I=l(E,C),_=I.paddingSize,L=I.borderSize,D=I.boxSizing,N=I.sizingStyle;i.setAttribute("style","".concat(N,";").concat(e)),i.value=E.value||E.placeholder||"";var R=Number.MIN_SAFE_INTEGER,B=Number.MAX_SAFE_INTEGER,M=i.scrollHeight,H;if(D==="border-box"?M+=L:D==="content-box"&&(M-=_),w!==null||b!==null){i.value=" ";var F=i.scrollHeight-_;w!==null&&(R=F*w,D==="border-box"&&(R=R+_+L),M=Math.max(R,M)),b!==null&&(B=F*b,D==="border-box"&&(B=B+_+L),H=M>B?"":"hidden",M=Math.min(B,M))}return{height:M,minHeight:R,maxHeight:B,overflowY:H,resize:"none"}}var h;(function(E){E[E.NONE=0]="NONE",E[E.RESIZING=1]="RESIZING",E[E.RESIZED=2]="RESIZED"})(h||(h={}));var p=function(E){Object(v.a)(w,E);var C=Object(S.a)(w);function w(b){var I;return Object(x.a)(this,w),I=C.call(this,b),I.nextFrameActionId=void 0,I.resizeFrameId=void 0,I.textArea=void 0,I.saveTextArea=function(_){I.textArea=_},I.handleResize=function(_){var L=I.state.resizeStatus,D=I.props,N=D.autoSize,R=D.onResize;if(L!==h.NONE)return;typeof R=="function"&&R(_),N&&I.resizeOnNextFrame()},I.resizeOnNextFrame=function(){cancelAnimationFrame(I.nextFrameActionId),I.nextFrameActionId=requestAnimationFrame(I.resizeTextarea)},I.resizeTextarea=function(){var _=I.props.autoSize;if(!_||!I.textArea)return;var L=_.minRows,D=_.maxRows,N=u(I.textArea,!1,L,D);I.setState({textareaStyles:N,resizeStatus:h.RESIZING},function(){cancelAnimationFrame(I.resizeFrameId),I.resizeFrameId=requestAnimationFrame(function(){I.setState({resizeStatus:h.RESIZED},function(){I.resizeFrameId=requestAnimationFrame(function(){I.setState({resizeStatus:h.NONE}),I.fixFirefoxAutoScroll()})})})})},I.renderTextArea=function(){var _=I.props,L=_.prefixCls,D=L===void 0?"rc-textarea":L,N=_.autoSize,R=_.onResize,B=_.className,M=_.disabled,H=I.state,F=H.textareaStyles,K=H.resizeStatus,j=Object(r.a)(I.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),V=n()(D,B,Object(c.a)({},"".concat(D,"-disabled"),M));"value"in j&&(j.value=j.value||"");var z=Object(f.a)(Object(f.a)(Object(f.a)({},I.props.style),F),K===h.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return m.createElement(o.a,{onResize:I.handleResize,disabled:!(N||R)},m.createElement("textarea",Object(O.a)({},j,{className:V,style:z,ref:I.saveTextArea})))},I.state={textareaStyles:{},resizeStatus:h.NONE},I}return Object(T.a)(w,[{key:"componentDidMount",value:function(){this.resizeTextarea()}},{key:"componentDidUpdate",value:function(I){I.value!==this.props.value&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var I=this.textArea.selectionStart,_=this.textArea.selectionEnd;this.textArea.setSelectionRange(I,_)}}catch(L){}}},{key:"render",value:function(){return this.renderTextArea()}}]),w}(m.Component),g=p,A=function(E){Object(v.a)(w,E);var C=Object(S.a)(w);function w(b){var I;Object(x.a)(this,w),I=C.call(this,b),I.resizableTextArea=void 0,I.focus=function(){I.resizableTextArea.textArea.focus()},I.saveTextArea=function(L){I.resizableTextArea=L},I.handleChange=function(L){var D=I.props.onChange;I.setValue(L.target.value,function(){I.resizableTextArea.resizeTextarea()}),D&&D(L)},I.handleKeyDown=function(L){var D=I.props,N=D.onPressEnter,R=D.onKeyDown;L.keyCode===13&&N&&N(L),R&&R(L)};var _=typeof b.value=="undefined"||b.value===null?b.defaultValue:b.value;return I.state={value:_},I}return Object(T.a)(w,[{key:"setValue",value:function(I,_){"value"in this.props||this.setState({value:I},_)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return m.createElement(g,Object(O.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(I){return"value"in I?{value:I.value}:null}}]),w}(m.Component),y=P.default=A},YH21:function(U,P,d){var O=d("H6uX");P.Dispatcher=O;var x=d("ItGF"),T=d("Ze12"),v=T.isCanvasEl,S=T.transformCoordWithViewport,m=typeof window!="undefined"&&!!window.addEventListener,f=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,c=[];function o(u,h,p,g){return p=p||{},g||!x.canvasSupported?r(u,h,p):x.browser.firefox&&h.layerX!=null&&h.layerX!==h.offsetX?(p.zrX=h.layerX,p.zrY=h.layerY):h.offsetX!=null?(p.zrX=h.offsetX,p.zrY=h.offsetY):r(u,h,p),p}function r(u,h,p){if(x.domSupported&&u.getBoundingClientRect){var g=h.clientX,A=h.clientY;if(v(u)){var y=u.getBoundingClientRect();p.zrX=g-y.left,p.zrY=A-y.top;return}else if(S(c,u,g,A)){p.zrX=c[0],p.zrY=c[1];return}}p.zrX=p.zrY=0}function a(u){return u||window.event}function n(u,h,p){if(h=a(h),h.zrX!=null)return h;var g=h.type,A=g&&g.indexOf("touch")>=0;if(!A)o(u,h,h,p),h.zrDelta=h.wheelDelta?h.wheelDelta/120:-(h.detail||0)/3;else{var y=g!=="touchend"?h.targetTouches[0]:h.changedTouches[0];y&&o(u,y,h,p)}var E=h.button;return h.which==null&&E!==void 0&&f.test(h.type)&&(h.which=E&1?1:E&2?3:E&4?2:0),h}function e(u,h,p,g){m?u.addEventListener(h,p,g):u.attachEvent("on"+h,p)}function s(u,h,p,g){m?u.removeEventListener(h,p,g):u.detachEvent("on"+h,p)}var t=m?function(u){u.preventDefault(),u.stopPropagation(),u.cancelBubble=!0}:function(u){u.returnValue=!1,u.cancelBubble=!0};function i(u){return u.which===2||u.which===3}function l(u){return u.which>1}P.clientToLocal=o,P.getNativeEvent=a,P.normalizeEvent=n,P.addEventListener=e,P.removeEventListener=s,P.stop=t,P.isMiddleOrRightButtonOnMouseUpDown=i,P.notLeftMouse=l},YJ9k:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;function O(S,m){if(!(S instanceof m))throw new TypeError("Cannot call a class as a function")}function x(S,m){for(var f=0;f<m.length;f++){var c=m[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(S,c.key,c)}}function T(S,m,f){return m&&x(S.prototype,m),f&&x(S,f),S}var v=function(){function S(){O(this,S),this._listeners=new Map}return T(S,[{key:"addEventListener",value:function(f,c){this._listeners.has(f)||this._listeners.set(f,new Set),this._listeners.get(f).add(c)}},{key:"removeEventListener",value:function(f,c){this._listeners.has(f)&&this._listeners.get(f).delete(c)}},{key:"dispatchEvent",value:function(f){var c=this;return this._listeners.has(f.type)?(this._listeners.get(f.type).forEach(function(o){return o.call(c,f)}),!f.defaultPrevented):!0}}]),S}();P.default=v},YJCA:function(U,P,d){"use strict";d.d(P,"a",function(){return J}),d.d(P,"b",function(){return Me});var O=d("wx14"),x=d("ODXe"),T=d("vpQ4"),v=d("1OyB"),S=d("vuIU"),m=d("md7G"),f=d("foSv"),c=d("Ji7U"),o=d("JX7q"),r=d("rePB"),a=d("q1tI"),n=d.n(a),e=d("17x9"),s=d.n(e),t=d("i8i4"),i=d.n(t),l=d("QLaP"),u=d.n(l),h=d("KQm4"),p=function(){function Ie(){Object(v.a)(this,Ie),Object(r.a)(this,"refs",{})}return Object(S.a)(Ie,[{key:"add",value:function(pe,Oe){this.refs[pe]||(this.refs[pe]=[]),this.refs[pe].push(Oe)}},{key:"remove",value:function(pe,Oe){var Ye=this.getIndex(pe,Oe);Ye!==-1&&this.refs[pe].splice(Ye,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var pe=this;return this.refs[this.active.collection].find(function(Oe){var Ye=Oe.node;return Ye.sortableInfo.index==pe.active.index})}},{key:"getIndex",value:function(pe,Oe){return this.refs[pe].indexOf(Oe)}},{key:"getOrderedRefs",value:function(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[pe].sort(g)}}]),Ie}();function g(Ie,oe){var pe=Ie.node.sortableInfo.index,Oe=oe.node.sortableInfo.index;return pe-Oe}function A(Ie,oe,pe){return Ie=Ie.slice(),Ie.splice(pe<0?Ie.length+pe:pe,0,Ie.splice(oe,1)[0]),Ie}function y(Ie,oe){return Object.keys(Ie).reduce(function(pe,Oe){return oe.indexOf(Oe)===-1&&(pe[Oe]=Ie[Oe]),pe},{})}var E={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},C=function(){if(typeof window=="undefined"||typeof document=="undefined")return"";var Ie=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],oe=(Array.prototype.slice.call(Ie).join("").match(/-(moz|webkit|ms)-/)||Ie.OLink===""&&["","o"])[1];switch(oe){case"ms":return"ms";default:return oe&&oe.length?oe[0].toUpperCase()+oe.substr(1):""}}();function w(Ie,oe){Object.keys(oe).forEach(function(pe){Ie.style[pe]=oe[pe]})}function b(Ie,oe){Ie.style["".concat(C,"Transform")]=oe==null?"":"translate3d(".concat(oe.x,"px,").concat(oe.y,"px,0)")}function I(Ie,oe){Ie.style["".concat(C,"TransitionDuration")]=oe==null?"":"".concat(oe,"ms")}function _(Ie,oe){for(;Ie;){if(oe(Ie))return Ie;Ie=Ie.parentNode}return null}function L(Ie,oe,pe){return Math.max(Ie,Math.min(pe,oe))}function D(Ie){return Ie.substr(-2)==="px"?parseFloat(Ie):0}function N(Ie){var oe=window.getComputedStyle(Ie);return{bottom:D(oe.marginBottom),left:D(oe.marginLeft),right:D(oe.marginRight),top:D(oe.marginTop)}}function R(Ie,oe){var pe=oe.displayName||oe.name;return pe?"".concat(Ie,"(").concat(pe,")"):Ie}function B(Ie,oe){var pe=Ie.getBoundingClientRect();return{top:pe.top+oe.top,left:pe.left+oe.left}}function M(Ie){return Ie.touches&&Ie.touches.length?{x:Ie.touches[0].pageX,y:Ie.touches[0].pageY}:Ie.changedTouches&&Ie.changedTouches.length?{x:Ie.changedTouches[0].pageX,y:Ie.changedTouches[0].pageY}:{x:Ie.pageX,y:Ie.pageY}}function H(Ie){return Ie.touches&&Ie.touches.length||Ie.changedTouches&&Ie.changedTouches.length}function F(Ie,oe){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(!Ie)return;var Oe={left:pe.left+Ie.offsetLeft,top:pe.top+Ie.offsetTop};return Ie.parentNode===oe?Oe:F(Ie.parentNode,oe,Oe)}function K(Ie,oe,pe){return Ie<pe&&Ie>oe?Ie-1:Ie>pe&&Ie<oe?Ie+1:Ie}function j(Ie){var oe=Ie.lockOffset,pe=Ie.width,Oe=Ie.height,Ye=oe,it=oe,et="px";if(typeof oe=="string"){var Te=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(oe);u()(Te!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',oe),Ye=parseFloat(oe),it=parseFloat(oe),et=Te[1]}return u()(isFinite(Ye)&&isFinite(it),"lockOffset value should be a finite. Given %s",oe),et==="%"&&(Ye=Ye*pe/100,it=it*Oe/100),{x:Ye,y:it}}function V(Ie){var oe=Ie.height,pe=Ie.width,Oe=Ie.lockOffset,Ye=Array.isArray(Oe)?Oe:[Oe,Oe];u()(Ye.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",Oe);var it=Object(x.a)(Ye,2),et=it[0],Te=it[1];return[j({height:oe,lockOffset:et,width:pe}),j({height:oe,lockOffset:Te,width:pe})]}function z(Ie){var oe=window.getComputedStyle(Ie),pe=/(auto|scroll)/,Oe=["overflow","overflowX","overflowY"];return Oe.find(function(Ye){return pe.test(oe[Ye])})}function Y(Ie){return Ie instanceof HTMLElement?z(Ie)?Ie:Y(Ie.parentNode):null}function ee(Ie){var oe=window.getComputedStyle(Ie);return oe.display==="grid"?{x:D(oe.gridColumnGap),y:D(oe.gridRowGap)}:{x:0,y:0}}var fe={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},ie={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function we(Ie){var oe="input, textarea, select, canvas, [contenteditable]",pe=Ie.querySelectorAll(oe),Oe=Ie.cloneNode(!0),Ye=Object(h.a)(Oe.querySelectorAll(oe));return Ye.forEach(function(it,et){if(it.type!=="file"&&(it.value=pe[et].value),it.type==="radio"&&it.name&&(it.name="__sortableClone__".concat(it.name)),it.tagName===ie.Canvas&&pe[et].width>0&&pe[et].height>0){var Te=it.getContext("2d");Te.drawImage(pe[et],0,0)}}),Oe}function Ce(Ie){var oe,pe,Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return pe=oe=function(Ye){Object(c.a)(it,Ye);function it(){return Object(v.a)(this,it),Object(m.a)(this,Object(f.a)(it).apply(this,arguments))}return Object(S.a)(it,[{key:"componentDidMount",value:function(){var Te=Object(t.findDOMNode)(this);Te.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return u()(Oe.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var Te=Oe.withRef?"wrappedInstance":null;return Object(a.createElement)(Ie,Object(O.a)({ref:Te},this.props))}}]),it}(a.Component),Object(r.a)(oe,"displayName",R("sortableHandle",Ie)),pe}function Le(Ie){return Ie.sortableHandle!=null}var He=function(){function Ie(oe,pe){Object(v.a)(this,Ie),this.container=oe,this.onScrollCallback=pe}return Object(S.a)(Ie,[{key:"clear",value:function(){if(this.interval==null)return;clearInterval(this.interval),this.interval=null}},{key:"update",value:function(pe){var Oe=this,Ye=pe.translate,it=pe.minTranslate,et=pe.maxTranslate,Te=pe.width,tt=pe.height,ze={x:0,y:0},dt={x:1,y:1},Ot={x:10,y:10},Tt=this.container,Ct=Tt.scrollTop,Nt=Tt.scrollLeft,Be=Tt.scrollHeight,$=Tt.scrollWidth,Z=Tt.clientHeight,Re=Tt.clientWidth,De=Ct===0,ae=Be-Ct-Z===0,gt=Nt===0,jt=$-Nt-Re===0;Ye.y>=et.y-tt/2&&!ae?(ze.y=1,dt.y=Ot.y*Math.abs((et.y-tt/2-Ye.y)/tt)):Ye.x>=et.x-Te/2&&!jt?(ze.x=1,dt.x=Ot.x*Math.abs((et.x-Te/2-Ye.x)/Te)):Ye.y<=it.y+tt/2&&!De?(ze.y=-1,dt.y=Ot.y*Math.abs((Ye.y-tt/2-it.y)/tt)):Ye.x<=it.x+Te/2&&!gt&&(ze.x=-1,dt.x=Ot.x*Math.abs((Ye.x-Te/2-it.x)/Te)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(ze.x!==0||ze.y!==0)&&(this.interval=setInterval(function(){Oe.isAutoScrolling=!0;var ut={left:dt.x*ze.x,top:dt.y*ze.y};Oe.container.scrollTop+=ut.top,Oe.container.scrollLeft+=ut.left,Oe.onScrollCallback(ut)},5))}}]),Ie}();function ce(Ie){var oe=Ie.node;return{height:oe.offsetHeight,width:oe.offsetWidth}}function Pe(Ie){var oe=[ie.Input,ie.Textarea,ie.Select,ie.Option,ie.Button];return oe.indexOf(Ie.target.tagName)!==-1?!0:!!_(Ie.target,function(pe){return pe.contentEditable==="true"})}var Q={axis:s.a.oneOf(["x","y","xy"]),contentWindow:s.a.any,disableAutoscroll:s.a.bool,distance:s.a.number,getContainer:s.a.func,getHelperDimensions:s.a.func,helperClass:s.a.string,helperContainer:s.a.oneOfType([s.a.func,typeof HTMLElement=="undefined"?s.a.any:s.a.instanceOf(HTMLElement)]),hideSortableGhost:s.a.bool,keyboardSortingTransitionDuration:s.a.number,lockAxis:s.a.string,lockOffset:s.a.oneOfType([s.a.number,s.a.string,s.a.arrayOf(s.a.oneOfType([s.a.number,s.a.string]))]),lockToContainerEdges:s.a.bool,onSortEnd:s.a.func,onSortMove:s.a.func,onSortOver:s.a.func,onSortStart:s.a.func,pressDelay:s.a.number,pressThreshold:s.a.number,keyCodes:s.a.shape({lift:s.a.arrayOf(s.a.number),drop:s.a.arrayOf(s.a.number),cancel:s.a.arrayOf(s.a.number),up:s.a.arrayOf(s.a.number),down:s.a.arrayOf(s.a.number)}),shouldCancelStart:s.a.func,transitionDuration:s.a.number,updateBeforeSortStart:s.a.func,useDragHandle:s.a.bool,useWindowAsScrollContainer:s.a.bool},me={lift:[fe.SPACE],drop:[fe.SPACE],cancel:[fe.ESC],up:[fe.UP,fe.LEFT],down:[fe.DOWN,fe.RIGHT]},Je={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:ce,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:me,shouldCancelStart:Pe,transitionDuration:300,useWindowAsScrollContainer:!1},re=Object.keys(Q);function G(Ie){u()(!(Ie.distance&&Ie.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function X(Ie,oe){try{var pe=Ie()}catch(Oe){return oe(!0,Oe)}return pe&&pe.then?pe.then(oe.bind(null,!1),oe.bind(null,!0)):oe(!1,value)}function J(Ie){var oe,pe,Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return pe=oe=function(Ye){Object(c.a)(it,Ye);function it(et){var Te;return Object(v.a)(this,it),Te=Object(m.a)(this,Object(f.a)(it).call(this,et)),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"state",{}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"handleStart",function(tt){var ze=Te.props,dt=ze.distance,Ot=ze.shouldCancelStart;if(tt.button===2||Ot(tt))return;Te.touched=!0,Te.position=M(tt);var Tt=_(tt.target,function(Re){return Re.sortableInfo!=null});if(Tt&&Tt.sortableInfo&&Te.nodeIsChild(Tt)&&!Te.state.sorting){var Ct=Te.props.useDragHandle,Nt=Tt.sortableInfo,Be=Nt.index,$=Nt.collection,Z=Nt.disabled;if(Z)return;if(Ct&&!_(tt.target,Le))return;Te.manager.active={collection:$,index:Be},!H(tt)&&tt.target.tagName===ie.Anchor&&tt.preventDefault(),dt||(Te.props.pressDelay===0?Te.handlePress(tt):Te.pressTimer=setTimeout(function(){return Te.handlePress(tt)},Te.props.pressDelay))}}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"nodeIsChild",function(tt){return tt.sortableInfo.manager===Te.manager}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"handleMove",function(tt){var ze=Te.props,dt=ze.distance,Ot=ze.pressThreshold;if(!Te.state.sorting&&Te.touched&&!Te._awaitingUpdateBeforeSortStart){var Tt=M(tt),Ct={x:Te.position.x-Tt.x,y:Te.position.y-Tt.y},Nt=Math.abs(Ct.x)+Math.abs(Ct.y);Te.delta=Ct,!dt&&(!Ot||Nt>=Ot)?(clearTimeout(Te.cancelTimer),Te.cancelTimer=setTimeout(Te.cancel,0)):dt&&Nt>=dt&&Te.manager.isActive()&&Te.handlePress(tt)}}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"handleEnd",function(){Te.touched=!1,Te.cancel()}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"cancel",function(){var tt=Te.props.distance,ze=Te.state.sorting;ze||(tt||clearTimeout(Te.pressTimer),Te.manager.active=null)}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"handlePress",function(tt){try{var ze=Te.manager.getActive(),dt=function(){if(ze){var Ot=function(){var pr=ae.sortableInfo.index,nn=N(ae),mr=ee(Te.container),vr=Te.scrollContainer.getBoundingClientRect(),$t=Nt({index:pr,node:ae,collection:gt});if(Te.node=ae,Te.margin=nn,Te.gridGap=mr,Te.width=$t.width,Te.height=$t.height,Te.marginOffset={x:Te.margin.left+Te.margin.right+Te.gridGap.x,y:Math.max(Te.margin.top,Te.margin.bottom,Te.gridGap.y)},Te.boundingClientRect=ae.getBoundingClientRect(),Te.containerBoundingRect=vr,Te.index=pr,Te.newIndex=pr,Te.axis={x:Ct.indexOf("x")>=0,y:Ct.indexOf("y")>=0},Te.offsetEdge=F(ae,Te.container),jt?Te.initialOffset=M(Object(T.a)({},tt,{pageX:Te.boundingClientRect.left,pageY:Te.boundingClientRect.top})):Te.initialOffset=M(tt),Te.initialScroll={left:Te.scrollContainer.scrollLeft,top:Te.scrollContainer.scrollTop},Te.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},Te.helper=Te.helperContainer.appendChild(we(ae)),w(Te.helper,{boxSizing:"border-box",height:"".concat(Te.height,"px"),left:"".concat(Te.boundingClientRect.left-nn.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(Te.boundingClientRect.top-nn.top,"px"),width:"".concat(Te.width,"px")}),jt&&Te.helper.focus(),$&&(Te.sortableGhost=ae,w(ae,{opacity:0,visibility:"hidden"})),Te.minTranslate={},Te.maxTranslate={},jt){var Xt=De?{top:0,left:0,width:Te.contentWindow.innerWidth,height:Te.contentWindow.innerHeight}:Te.containerBoundingRect,ft=Xt.top,Ur=Xt.left,yn=Xt.width,Dn=Xt.height,Un=ft+Dn,wi=Ur+yn;Te.axis.x&&(Te.minTranslate.x=Ur-Te.boundingClientRect.left,Te.maxTranslate.x=wi-(Te.boundingClientRect.left+Te.width)),Te.axis.y&&(Te.minTranslate.y=ft-Te.boundingClientRect.top,Te.maxTranslate.y=Un-(Te.boundingClientRect.top+Te.height))}else Te.axis.x&&(Te.minTranslate.x=(De?0:vr.left)-Te.boundingClientRect.left-Te.width/2,Te.maxTranslate.x=(De?Te.contentWindow.innerWidth:vr.left+vr.width)-Te.boundingClientRect.left-Te.width/2),Te.axis.y&&(Te.minTranslate.y=(De?0:vr.top)-Te.boundingClientRect.top-Te.height/2,Te.maxTranslate.y=(De?Te.contentWindow.innerHeight:vr.top+vr.height)-Te.boundingClientRect.top-Te.height/2);Be&&Be.split(" ").forEach(function(Rn){return Te.helper.classList.add(Rn)}),Te.listenerNode=tt.touches?ae:Te.contentWindow,jt?(Te.listenerNode.addEventListener("wheel",Te.handleKeyEnd,!0),Te.listenerNode.addEventListener("mousedown",Te.handleKeyEnd,!0),Te.listenerNode.addEventListener("keydown",Te.handleKeyDown)):(E.move.forEach(function(Rn){return Te.listenerNode.addEventListener(Rn,Te.handleSortMove,!1)}),E.end.forEach(function(Rn){return Te.listenerNode.addEventListener(Rn,Te.handleSortEnd,!1)})),Te.setState({sorting:!0,sortingIndex:pr}),Re&&Re({node:ae,index:pr,collection:gt,isKeySorting:jt,nodes:Te.manager.getOrderedRefs(),helper:Te.helper},tt),jt&&Te.keyMove(0)},Tt=Te.props,Ct=Tt.axis,Nt=Tt.getHelperDimensions,Be=Tt.helperClass,$=Tt.hideSortableGhost,Z=Tt.updateBeforeSortStart,Re=Tt.onSortStart,De=Tt.useWindowAsScrollContainer,ae=ze.node,gt=ze.collection,jt=Te.manager.isKeySorting,ut=function(){if(typeof Z=="function"){Te._awaitingUpdateBeforeSortStart=!0;var rr=X(function(){var pr=ae.sortableInfo.index;return Promise.resolve(Z({collection:gt,index:pr,node:ae,isKeySorting:jt},tt)).then(function(){})},function(pr,nn){if(Te._awaitingUpdateBeforeSortStart=!1,pr)throw nn;return nn});if(rr&&rr.then)return rr.then(function(){})}}();return ut&&ut.then?ut.then(Ot):Ot(ut)}}();return Promise.resolve(dt&&dt.then?dt.then(function(){}):void 0)}catch(Ot){return Promise.reject(Ot)}}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"handleSortMove",function(tt){var ze=Te.props.onSortMove;typeof tt.preventDefault=="function"&&tt.preventDefault(),Te.updateHelperPosition(tt),Te.animateNodes(),Te.autoscroll(),ze&&ze(tt)}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"handleSortEnd",function(tt){var ze=Te.props,dt=ze.hideSortableGhost,Ot=ze.onSortEnd,Tt=Te.manager,Ct=Tt.active.collection,Nt=Tt.isKeySorting,Be=Te.manager.getOrderedRefs();Te.listenerNode&&(Nt?(Te.listenerNode.removeEventListener("wheel",Te.handleKeyEnd,!0),Te.listenerNode.removeEventListener("mousedown",Te.handleKeyEnd,!0),Te.listenerNode.removeEventListener("keydown",Te.handleKeyDown)):(E.move.forEach(function(ae){return Te.listenerNode.removeEventListener(ae,Te.handleSortMove)}),E.end.forEach(function(ae){return Te.listenerNode.removeEventListener(ae,Te.handleSortEnd)}))),Te.helper.parentNode.removeChild(Te.helper),dt&&Te.sortableGhost&&w(Te.sortableGhost,{opacity:"",visibility:""});for(var $=0,Z=Be.length;$<Z;$++){var Re=Be[$],De=Re.node;Re.edgeOffset=null,Re.boundingClientRect=null,b(De,null),I(De,null),Re.translate=null}Te.autoScroller.clear(),Te.manager.active=null,Te.manager.isKeySorting=!1,Te.setState({sorting:!1,sortingIndex:null}),typeof Ot=="function"&&Ot({collection:Ct,newIndex:Te.newIndex,oldIndex:Te.index,isKeySorting:Nt,nodes:Be},tt),Te.touched=!1}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"autoscroll",function(){var tt=Te.props.disableAutoscroll,ze=Te.manager.isKeySorting;if(tt){Te.autoScroller.clear();return}if(ze){var dt=Object(T.a)({},Te.translate),Ot=0,Tt=0;Te.axis.x&&(dt.x=Math.min(Te.maxTranslate.x,Math.max(Te.minTranslate.x,Te.translate.x)),Ot=Te.translate.x-dt.x),Te.axis.y&&(dt.y=Math.min(Te.maxTranslate.y,Math.max(Te.minTranslate.y,Te.translate.y)),Tt=Te.translate.y-dt.y),Te.translate=dt,b(Te.helper,Te.translate),Te.scrollContainer.scrollLeft+=Ot,Te.scrollContainer.scrollTop+=Tt;return}Te.autoScroller.update({height:Te.height,maxTranslate:Te.maxTranslate,minTranslate:Te.minTranslate,translate:Te.translate,width:Te.width})}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"onAutoScroll",function(tt){Te.translate.x+=tt.left,Te.translate.y+=tt.top,Te.animateNodes()}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"handleKeyDown",function(tt){var ze=tt.keyCode,dt=Te.props,Ot=dt.shouldCancelStart,Tt=dt.keyCodes,Ct=Tt===void 0?{}:Tt,Nt=Object(T.a)({},me,Ct);if(Te.manager.active&&!Te.manager.isKeySorting||!Te.manager.active&&(!Nt.lift.includes(ze)||Ot(tt)||!Te.isValidSortingTarget(tt)))return;tt.stopPropagation(),tt.preventDefault(),Nt.lift.includes(ze)&&!Te.manager.active?Te.keyLift(tt):Nt.drop.includes(ze)&&Te.manager.active?Te.keyDrop(tt):Nt.cancel.includes(ze)?(Te.newIndex=Te.manager.active.index,Te.keyDrop(tt)):Nt.up.includes(ze)?Te.keyMove(-1):Nt.down.includes(ze)&&Te.keyMove(1)}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"keyLift",function(tt){var ze=tt.target,dt=_(ze,function(Nt){return Nt.sortableInfo!=null}),Ot=dt.sortableInfo,Tt=Ot.index,Ct=Ot.collection;Te.initialFocusedNode=ze,Te.manager.isKeySorting=!0,Te.manager.active={index:Tt,collection:Ct},Te.handlePress(tt)}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"keyMove",function(tt){var ze=Te.manager.getOrderedRefs(),dt=ze[ze.length-1].node.sortableInfo.index,Ot=Te.newIndex+tt,Tt=Te.newIndex;if(Ot<0||Ot>dt)return;Te.prevIndex=Tt,Te.newIndex=Ot;var Ct=K(Te.newIndex,Te.prevIndex,Te.index),Nt=ze.find(function(jt){var ut=jt.node;return ut.sortableInfo.index===Ct}),Be=Nt.node,$=Te.containerScrollDelta,Z=Nt.boundingClientRect||B(Be,$),Re=Nt.translate||{x:0,y:0},De={top:Z.top+Re.y-$.top,left:Z.left+Re.x-$.left},ae=Tt<Ot,gt={x:ae&&Te.axis.x?Be.offsetWidth-Te.width:0,y:ae&&Te.axis.y?Be.offsetHeight-Te.height:0};Te.handleSortMove({pageX:De.left+gt.x,pageY:De.top+gt.y,ignoreTransition:tt===0})}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"keyDrop",function(tt){Te.handleSortEnd(tt),Te.initialFocusedNode&&Te.initialFocusedNode.focus()}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"handleKeyEnd",function(tt){Te.manager.active&&Te.keyDrop(tt)}),Object(r.a)(Object(o.a)(Object(o.a)(Te)),"isValidSortingTarget",function(tt){var ze=Te.props.useDragHandle,dt=tt.target,Ot=_(dt,function(Tt){return Tt.sortableInfo!=null});return Ot&&Ot.sortableInfo&&!Ot.sortableInfo.disabled&&(ze?Le(dt):dt.sortableInfo)}),G(et),Te.manager=new p,Te.events={end:Te.handleEnd,move:Te.handleMove,start:Te.handleStart},Te}return Object(S.a)(it,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var Te=this,tt=this.props.useWindowAsScrollContainer,ze=this.getContainer();Promise.resolve(ze).then(function(dt){Te.container=dt,Te.document=Te.container.ownerDocument||document;var Ot=Te.props.contentWindow||Te.document.defaultView||window;Te.contentWindow=typeof Ot=="function"?Ot():Ot,Te.scrollContainer=tt?Te.document.scrollingElement||Te.document.documentElement:Y(Te.container)||Te.container,Te.autoScroller=new He(Te.scrollContainer,Te.onAutoScroll),Object.keys(Te.events).forEach(function(Tt){return E[Tt].forEach(function(Ct){return Te.container.addEventListener(Ct,Te.events[Tt],!1)})}),Te.container.addEventListener("keydown",Te.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var Te=this;if(this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),!this.container)return;Object.keys(this.events).forEach(function(tt){return E[tt].forEach(function(ze){return Te.container.removeEventListener(ze,Te.events[tt])})}),this.container.removeEventListener("keydown",this.handleKeyDown)}},{key:"updateHelperPosition",value:function(Te){var tt=this.props,ze=tt.lockAxis,dt=tt.lockOffset,Ot=tt.lockToContainerEdges,Tt=tt.transitionDuration,Ct=tt.keyboardSortingTransitionDuration,Nt=Ct===void 0?Tt:Ct,Be=this.manager.isKeySorting,$=Te.ignoreTransition,Z=M(Te),Re={x:Z.x-this.initialOffset.x,y:Z.y-this.initialOffset.y};if(Re.y-=window.pageYOffset-this.initialWindowScroll.top,Re.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=Re,Ot){var De=V({height:this.height,lockOffset:dt,width:this.width}),ae=Object(x.a)(De,2),gt=ae[0],jt=ae[1],ut={x:this.width/2-gt.x,y:this.height/2-gt.y},rr={x:this.width/2-jt.x,y:this.height/2-jt.y};Re.x=L(this.minTranslate.x+ut.x,this.maxTranslate.x-rr.x,Re.x),Re.y=L(this.minTranslate.y+ut.y,this.maxTranslate.y-rr.y,Re.y)}ze==="x"?Re.y=0:ze==="y"&&(Re.x=0),Be&&Nt&&!$&&I(this.helper,Nt),b(this.helper,Re)}},{key:"animateNodes",value:function(){var Te=this.props,tt=Te.transitionDuration,ze=Te.hideSortableGhost,dt=Te.onSortOver,Ot=this.containerScrollDelta,Tt=this.windowScrollDelta,Ct=this.manager.getOrderedRefs(),Nt={left:this.offsetEdge.left+this.translate.x+Ot.left,top:this.offsetEdge.top+this.translate.y+Ot.top},Be=this.manager.isKeySorting,$=this.newIndex;this.newIndex=null;for(var Z=0,Re=Ct.length;Z<Re;Z++){var De=Ct[Z].node,ae=De.sortableInfo.index,gt=De.offsetWidth,jt=De.offsetHeight,ut={height:this.height>jt?jt/2:this.height/2,width:this.width>gt?gt/2:this.width/2},rr=Be&&ae>this.index&&ae<=$,pr=Be&&ae<this.index&&ae>=$,nn={x:0,y:0},mr=Ct[Z].edgeOffset;mr||(mr=F(De,this.container),Ct[Z].edgeOffset=mr,Be&&(Ct[Z].boundingClientRect=B(De,Ot)));var vr=Z<Ct.length-1&&Ct[Z+1],$t=Z>0&&Ct[Z-1];if(vr&&!vr.edgeOffset&&(vr.edgeOffset=F(vr.node,this.container),Be&&(vr.boundingClientRect=B(vr.node,Ot))),ae===this.index){ze&&(this.sortableGhost=De,w(De,{opacity:0,visibility:"hidden"}));continue}tt&&I(De,tt),this.axis.x?this.axis.y?pr||ae<this.index&&(Nt.left+Tt.left-ut.width<=mr.left&&Nt.top+Tt.top<=mr.top+ut.height||Nt.top+Tt.top+ut.height<=mr.top)?(nn.x=this.width+this.marginOffset.x,mr.left+nn.x>this.containerBoundingRect.width-ut.width&&(vr&&(nn.x=vr.edgeOffset.left-mr.left,nn.y=vr.edgeOffset.top-mr.top)),this.newIndex===null&&(this.newIndex=ae)):(rr||ae>this.index&&(Nt.left+Tt.left+ut.width>=mr.left&&Nt.top+Tt.top+ut.height>=mr.top||Nt.top+Tt.top+ut.height>=mr.top+jt))&&(nn.x=-(this.width+this.marginOffset.x),mr.left+nn.x<this.containerBoundingRect.left+ut.width&&($t&&(nn.x=$t.edgeOffset.left-mr.left,nn.y=$t.edgeOffset.top-mr.top)),this.newIndex=ae):rr||ae>this.index&&Nt.left+Tt.left+ut.width>=mr.left?(nn.x=-(this.width+this.marginOffset.x),this.newIndex=ae):(pr||ae<this.index&&Nt.left+Tt.left<=mr.left+ut.width)&&(nn.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=ae)):this.axis.y&&(rr||ae>this.index&&Nt.top+Tt.top+ut.height>=mr.top?(nn.y=-(this.height+this.marginOffset.y),this.newIndex=ae):(pr||ae<this.index&&Nt.top+Tt.top<=mr.top+ut.height)&&(nn.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=ae))),b(De,nn),Ct[Z].translate=nn}this.newIndex==null&&(this.newIndex=this.index),Be&&(this.newIndex=$);var Xt=Be?this.prevIndex:$;dt&&this.newIndex!==Xt&&dt({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:Xt,isKeySorting:Be,nodes:Ct,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return u()(Oe.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.refs.wrappedInstance}},{key:"getContainer",value:function(){var Te=this.props.getContainer;return typeof Te!="function"?Object(t.findDOMNode)(this):Te(Oe.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var Te=Oe.withRef?"wrappedInstance":null;return Object(a.createElement)(Ie,Object(O.a)({ref:Te},y(this.props,re)))}},{key:"helperContainer",get:function(){var Te=this.props.helperContainer;return typeof Te=="function"?Te():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){var Te=this.props.useWindowAsScrollContainer;return Te?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),it}(a.Component),Object(r.a)(oe,"displayName",R("sortableList",Ie)),Object(r.a)(oe,"defaultProps",Je),Object(r.a)(oe,"propTypes",Q),Object(r.a)(oe,"childContextTypes",{manager:s.a.object.isRequired}),pe}var Ae={index:s.a.number.isRequired,collection:s.a.oneOfType([s.a.number,s.a.string]),disabled:s.a.bool},he=Object.keys(Ae);function Me(Ie){var oe,pe,Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return pe=oe=function(Ye){Object(c.a)(it,Ye);function it(){return Object(v.a)(this,it),Object(m.a)(this,Object(f.a)(it).apply(this,arguments))}return Object(S.a)(it,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(Te){this.node&&(Te.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),Te.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),Te.collection!==this.props.collection&&(this.unregister(Te.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var Te=this.props,tt=Te.collection,ze=Te.disabled,dt=Te.index,Ot=Object(t.findDOMNode)(this);Ot.sortableInfo={collection:tt,disabled:ze,index:dt,manager:this.context.manager},this.node=Ot,this.ref={node:Ot},this.context.manager.add(tt,this.ref)}},{key:"unregister",value:function(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(Te,this.ref)}},{key:"getWrappedInstance",value:function(){return u()(Oe.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var Te=Oe.withRef?"wrappedInstance":null;return Object(a.createElement)(Ie,Object(O.a)({ref:Te},y(this.props,he)))}}]),it}(a.Component),Object(r.a)(oe,"displayName",R("sortableElement",Ie)),Object(r.a)(oe,"contextTypes",{manager:s.a.object.isRequired}),Object(r.a)(oe,"propTypes",Ae),Object(r.a)(oe,"defaultProps",{collection:0}),pe}},YNAk:function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("QyFq")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="CaretDownFilled";var c=v.forwardRef(f);P.default=c},YNf1:function(U,P,d){var O=d("IwbS"),x=d("6Ic6"),T=.3,v=x.extend({type:"parallel",init:function(){this._dataGroup=new O.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(n,e,s,t){var i=this._dataGroup,l=n.getData(),u=this._data,h=n.coordinateSystem,p=h.dimensions,g=c(n);l.diff(u).add(A).update(y).remove(E).execute();function A(w){var b=f(l,i,w,p,h);o(b,l,w,g)}function y(w,b){var I=u.getItemGraphicEl(b),_=m(l,w,p,h);l.setItemGraphicEl(w,I);var L=t&&t.animation===!1?null:n;O.updateProps(I,{shape:{points:_}},L,w),o(I,l,w,g)}function E(w){var b=u.getItemGraphicEl(w);i.remove(b)}if(!this._initialized){this._initialized=!0;var C=S(h,n,function(){setTimeout(function(){i.removeClipPath()})});i.setClipPath(C)}this._data=l},incrementalPrepareRender:function(n,e,s){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(n,e,s){for(var t=e.getData(),i=e.coordinateSystem,l=i.dimensions,u=c(e),h=n.start;h<n.end;h++){var p=f(t,this._dataGroup,h,l,i);p.incremental=!0,o(p,t,h,u)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function S(n,e,s){var t=n.model,i=n.getRect(),l=new O.Rect({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),u=t.get("layout")==="horizontal"?"width":"height";return l.setShape(u,0),O.initProps(l,{shape:{width:i.width,height:i.height}},e,s),l}function m(n,e,s,t){for(var i=[],l=0;l<s.length;l++){var u=s[l],h=n.get(n.mapDimension(u),e);r(h,t.getAxis(u).type)||i.push(t.dataToPoint(h,u))}return i}function f(n,e,s,t,i){var l=m(n,s,t,i),u=new O.Polyline({shape:{points:l},silent:!0,z2:10});return e.add(u),n.setItemGraphicEl(s,u),u}function c(n){var e=n.get("smooth",!0);return e===!0&&(e=T),{lineStyle:n.getModel("lineStyle").getLineStyle(),smooth:e!=null?e:T}}function o(n,e,s,t){var i=t.lineStyle;if(e.hasItemOption){var l=e.getItemModel(s).getModel("lineStyle");i=l.getLineStyle()}n.useStyle(i);var u=n.style;u.fill=null,u.stroke=e.getItemVisual(s,"color"),u.opacity=e.getItemVisual(s,"opacity"),t.smooth&&(n.shape.smooth=t.smooth)}function r(n,e){return e==="category"?n==null:n==null||isNaN(n)}var a=v;U.exports=a},YOMW:function(U,P,d){var O=d("bYtY"),x={get:function(S,m,f){var c=O.clone((T[S]||{})[m]);return f&&O.isArray(c)?c[c.length-1]:c}},T={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},v=x;U.exports=v},YXkt:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("bYtY"),v=d("Qxkt"),S=d("gPAo"),m=d("7G+c"),f=d("KxfA"),c=f.defaultDimValueGetters,o=f.DefaultDataProvider,r=d("L0Ub"),a=r.summarizeDimensions,n=d("Vi4m"),e=T.isObject,s="undefined",t=-1,i="e\0\0",l={float:typeof Float64Array===s?Array:Float64Array,int:typeof Int32Array===s?Array:Int32Array,ordinal:Array,number:Array,time:Array},u=typeof Uint32Array===s?Array:Uint32Array,h=typeof Int32Array===s?Array:Int32Array,p=typeof Uint16Array===s?Array:Uint16Array;function g(z){return z._rawCount>65535?u:p}function A(z){var Y=z.constructor;return Y===Array?z.slice():new Y(z)}var y=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],E=["_extent","_approximateExtent","_rawExtent"];function C(z,Y){T.each(y.concat(Y.__wrappedMethods||[]),function(ee){Y.hasOwnProperty(ee)&&(z[ee]=Y[ee])}),z.__wrappedMethods=Y.__wrappedMethods,T.each(E,function(ee){z[ee]=T.clone(Y[ee])}),z._calculationInfo=T.extend(Y._calculationInfo)}var w=function(z,Y){z=z||["x","y"];for(var ee={},fe=[],ie={},we=0;we<z.length;we++){var Ce=z[we];T.isString(Ce)?Ce=new n({name:Ce}):Ce instanceof n||(Ce=new n(Ce));var Le=Ce.name;Ce.type=Ce.type||"float",Ce.coordDim||(Ce.coordDim=Le,Ce.coordDimIndex=0),Ce.otherDims=Ce.otherDims||{},fe.push(Le),ee[Le]=Ce,Ce.index=we,Ce.createInvertedIndices&&(ie[Le]=[])}this.dimensions=fe,this._dimensionInfos=ee,this.hostModel=Y,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=a(this),this._invertedIndicesMap=ie,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},b=w.prototype;b.type="list",b.hasItemOption=!0,b.getDimension=function(z){return(typeof z=="number"||!isNaN(z)&&!this._dimensionInfos.hasOwnProperty(z))&&(z=this.dimensions[z]),z},b.getDimensionInfo=function(z){return this._dimensionInfos[this.getDimension(z)]},b.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},b.mapDimension=function(z,Y){var ee=this._dimensionsSummary;if(Y==null)return ee.encodeFirstDimNotExtra[z];var fe=ee.encode[z];return Y===!0?(fe||[]).slice():fe&&fe[Y]},b.initData=function(z,Y,ee){var fe=m.isInstance(z)||T.isArrayLike(z);fe&&(z=new o(z,this.dimensions.length)),this._rawData=z,this._storage={},this._indices=null,this._nameList=Y||[],this._idList=[],this._nameRepeatCount={},ee||(this.hasItemOption=!1),this.defaultDimValueGetter=c[this._rawData.getSource().sourceFormat],this._dimValueGetter=ee=ee||this.defaultDimValueGetter,this._dimValueGetterArrayRows=c.arrayRows,this._rawExtent={},this._initDataFromProvider(0,z.count()),z.pure&&(this.hasItemOption=!1)},b.getProvider=function(){return this._rawData},b.appendData=function(z){var Y=this._rawData,ee=this.count();Y.appendData(z);var fe=Y.count();Y.persistent||(fe+=ee),this._initDataFromProvider(ee,fe)},b.appendValues=function(z,Y){for(var ee=this._chunkSize,fe=this._storage,ie=this.dimensions,we=ie.length,Ce=this._rawExtent,Le=this.count(),He=Le+Math.max(z.length,Y?Y.length:0),ce=this._chunkCount,Pe=0;Pe<we;Pe++){var Q=ie[Pe];Ce[Q]||(Ce[Q]=K()),fe[Q]||(fe[Q]=[]),I(fe,this._dimensionInfos[Q],ee,ce,He),this._chunkCount=fe[Q].length}for(var me=new Array(we),Je=Le;Je<He;Je++){for(var re=Je-Le,G=Math.floor(Je/ee),X=Je%ee,J=0;J<we;J++){var Q=ie[J],Ae=this._dimValueGetterArrayRows(z[re]||me,Q,re,J);fe[Q][G][X]=Ae;var he=Ce[Q];Ae<he[0]&&(he[0]=Ae),Ae>he[1]&&(he[1]=Ae)}Y&&(this._nameList[Je]=Y[re])}this._rawCount=this._count=He,this._extent={},_(this)},b._initDataFromProvider=function(z,Y){if(z>=Y)return;for(var ee=this._chunkSize,fe=this._rawData,ie=this._storage,we=this.dimensions,Ce=we.length,Le=this._dimensionInfos,He=this._nameList,ce=this._idList,Pe=this._rawExtent,Q=this._nameRepeatCount={},me,Je=this._chunkCount,re=0;re<Ce;re++){var G=we[re];Pe[G]||(Pe[G]=K());var X=Le[G];X.otherDims.itemName===0&&(me=this._nameDimIdx=re),X.otherDims.itemId===0&&(this._idDimIdx=re),ie[G]||(ie[G]=[]),I(ie,X,ee,Je,Y),this._chunkCount=ie[G].length}for(var J=new Array(Ce),Ae=z;Ae<Y;Ae++){J=fe.getItem(Ae,J);for(var he=Math.floor(Ae/ee),Me=Ae%ee,Ie=0;Ie<Ce;Ie++){var G=we[Ie],oe=ie[G][he],pe=this._dimValueGetter(J,G,Ae,Ie);oe[Me]=pe;var Oe=Pe[G];pe<Oe[0]&&(Oe[0]=pe),pe>Oe[1]&&(Oe[1]=pe)}if(!fe.pure){var Ye=He[Ae];if(J&&Ye==null){if(J.name!=null)He[Ae]=Ye=J.name;else if(me!=null){var it=we[me],et=ie[it][he];if(et){Ye=et[Me];var Te=Le[it].ordinalMeta;Te&&Te.categories.length&&(Ye=Te.categories[Ye])}}}var tt=J==null?null:J.id;tt==null&&Ye!=null&&(Q[Ye]=Q[Ye]||0,tt=Ye,Q[Ye]>0&&(tt+="__ec__"+Q[Ye]),Q[Ye]++),tt!=null&&(ce[Ae]=tt)}}!fe.persistent&&fe.clean&&fe.clean(),this._rawCount=this._count=Y,this._extent={},_(this)};function I(z,Y,ee,fe,ie){var we=l[Y.type],Ce=fe-1,Le=Y.name,He=z[Le][Ce];if(He&&He.length<ee){for(var ce=new we(Math.min(ie-Ce*ee,ee)),Pe=0;Pe<He.length;Pe++)ce[Pe]=He[Pe];z[Le][Ce]=ce}for(var Q=fe*ee;Q<ie;Q+=ee)z[Le].push(new we(Math.min(ie-Q,ee)))}function _(z){var Y=z._invertedIndicesMap;T.each(Y,function(ee,fe){var ie=z._dimensionInfos[fe],we=ie.ordinalMeta;if(we){ee=Y[fe]=new h(we.categories.length);for(var Ce=0;Ce<ee.length;Ce++)ee[Ce]=t;for(var Ce=0;Ce<z._count;Ce++)ee[z.get(fe,Ce)]=Ce}})}function L(z,Y,ee){var fe;if(Y!=null){var ie=z._chunkSize,we=Math.floor(ee/ie),Ce=ee%ie,Le=z.dimensions[Y],He=z._storage[Le][we];if(He){fe=He[Ce];var ce=z._dimensionInfos[Le].ordinalMeta;ce&&ce.categories.length&&(fe=ce.categories[fe])}}return fe}b.count=function(){return this._count},b.getIndices=function(){var z,Y=this._indices;if(Y){var ee=Y.constructor,fe=this._count;if(ee===Array){z=new ee(fe);for(var ie=0;ie<fe;ie++)z[ie]=Y[ie]}else z=new ee(Y.buffer,0,fe)}else for(var ee=g(this),z=new ee(this.count()),ie=0;ie<z.length;ie++)z[ie]=ie;return z},b.get=function(z,Y){if(!(Y>=0&&Y<this._count))return NaN;var ee=this._storage;if(!ee[z])return NaN;Y=this.getRawIndex(Y);var fe=Math.floor(Y/this._chunkSize),ie=Y%this._chunkSize,we=ee[z][fe],Ce=we[ie];return Ce},b.getByRawIndex=function(z,Y){if(!(Y>=0&&Y<this._rawCount))return NaN;var ee=this._storage[z];if(!ee)return NaN;var fe=Math.floor(Y/this._chunkSize),ie=Y%this._chunkSize,we=ee[fe];return we[ie]},b._getFast=function(z,Y){var ee=Math.floor(Y/this._chunkSize),fe=Y%this._chunkSize,ie=this._storage[z][ee];return ie[fe]},b.getValues=function(z,Y){var ee=[];T.isArray(z)||(Y=z,z=this.dimensions);for(var fe=0,ie=z.length;fe<ie;fe++)ee.push(this.get(z[fe],Y));return ee},b.hasValue=function(z){for(var Y=this._dimensionsSummary.dataDimsOnCoord,ee=0,fe=Y.length;ee<fe;ee++)if(isNaN(this.get(Y[ee],z)))return!1;return!0},b.getDataExtent=function(z){z=this.getDimension(z);var Y=this._storage[z],ee=K();if(!Y)return ee;var fe=this.count(),ie=!this._indices,we;if(ie)return this._rawExtent[z].slice();if(we=this._extent[z],we)return we.slice();we=ee;for(var Ce=we[0],Le=we[1],He=0;He<fe;He++){var ce=this._getFast(z,this.getRawIndex(He));ce<Ce&&(Ce=ce),ce>Le&&(Le=ce)}return we=[Ce,Le],this._extent[z]=we,we},b.getApproximateExtent=function(z){return z=this.getDimension(z),this._approximateExtent[z]||this.getDataExtent(z)},b.setApproximateExtent=function(z,Y){Y=this.getDimension(Y),this._approximateExtent[Y]=z.slice()},b.getCalculationInfo=function(z){return this._calculationInfo[z]},b.setCalculationInfo=function(z,Y){e(z)?T.extend(this._calculationInfo,z):this._calculationInfo[z]=Y},b.getSum=function(z){var Y=this._storage[z],ee=0;if(Y)for(var fe=0,ie=this.count();fe<ie;fe++){var we=this.get(z,fe);isNaN(we)||(ee+=we)}return ee},b.getMedian=function(z){var Y=[];this.each(z,function(ie,we){isNaN(ie)||Y.push(ie)});var ee=[].concat(Y).sort(function(ie,we){return ie-we}),fe=this.count();return fe===0?0:fe%2===1?ee[(fe-1)/2]:(ee[fe/2]+ee[fe/2-1])/2},b.rawIndexOf=function(z,Y){var ee=z&&this._invertedIndicesMap[z],fe=ee[Y];return fe==null||isNaN(fe)?t:fe},b.indexOfName=function(z){for(var Y=0,ee=this.count();Y<ee;Y++)if(this.getName(Y)===z)return Y;return-1},b.indexOfRawIndex=function(z){if(z>=this._rawCount||z<0)return-1;if(!this._indices)return z;var Y=this._indices,ee=Y[z];if(ee!=null&&ee<this._count&&ee===z)return z;for(var fe=0,ie=this._count-1;fe<=ie;){var we=(fe+ie)/2|0;if(Y[we]<z)fe=we+1;else if(Y[we]>z)ie=we-1;else return we}return-1},b.indicesOfNearest=function(z,Y,ee){var fe=this._storage,ie=fe[z],we=[];if(!ie)return we;ee==null&&(ee=Infinity);for(var Ce=Infinity,Le=-1,He=0,ce=0,Pe=this.count();ce<Pe;ce++){var Q=Y-this.get(z,ce),me=Math.abs(Q);me<=ee&&((me<Ce||me===Ce&&Q>=0&&Le<0)&&(Ce=me,Le=Q,He=0),Q===Le&&(we[He++]=ce))}return we.length=He,we},b.getRawIndex=D;function D(z){return z}function N(z){return z<this._count&&z>=0?this._indices[z]:-1}b.getRawDataItem=function(z){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(z));for(var Y=[],ee=0;ee<this.dimensions.length;ee++){var fe=this.dimensions[ee];Y.push(this.get(fe,z))}return Y},b.getName=function(z){var Y=this.getRawIndex(z);return this._nameList[Y]||L(this,this._nameDimIdx,Y)||""},b.getId=function(z){return R(this,this.getRawIndex(z))};function R(z,Y){var ee=z._idList[Y];return ee==null&&(ee=L(z,z._idDimIdx,Y)),ee==null&&(ee=i+Y),ee}function B(z){return T.isArray(z)||(z=[z]),z}function M(z,Y){for(var ee=0;ee<Y.length;ee++)z._dimensionInfos[Y[ee]]||console.error("Unkown dimension "+Y[ee])}b.each=function(z,Y,ee,fe){"use strict";if(!this._count)return;typeof z=="function"&&(fe=ee,ee=Y,Y=z,z=[]),ee=ee||fe||this,z=T.map(B(z),this.getDimension,this);for(var ie=z.length,we=0;we<this.count();we++)switch(ie){case 0:Y.call(ee,we);break;case 1:Y.call(ee,this.get(z[0],we),we);break;case 2:Y.call(ee,this.get(z[0],we),this.get(z[1],we),we);break;default:for(var Ce=0,Le=[];Ce<ie;Ce++)Le[Ce]=this.get(z[Ce],we);Le[Ce]=we,Y.apply(ee,Le)}},b.filterSelf=function(z,Y,ee,fe){"use strict";if(!this._count)return;typeof z=="function"&&(fe=ee,ee=Y,Y=z,z=[]),ee=ee||fe||this,z=T.map(B(z),this.getDimension,this);for(var ie=this.count(),we=g(this),Ce=new we(ie),Le=[],He=z.length,ce=0,Pe=z[0],Q=0;Q<ie;Q++){var me,Je=this.getRawIndex(Q);if(He===0)me=Y.call(ee,Q);else if(He===1){var re=this._getFast(Pe,Je);me=Y.call(ee,re,Q)}else{for(var G=0;G<He;G++)Le[G]=this._getFast(Pe,Je);Le[G]=Q,me=Y.apply(ee,Le)}me&&(Ce[ce++]=Je)}return ce<ie&&(this._indices=Ce),this._count=ce,this._extent={},this.getRawIndex=this._indices?N:D,this},b.selectRange=function(z){"use strict";if(!this._count)return;var Y=[];for(var ee in z)z.hasOwnProperty(ee)&&Y.push(ee);var fe=Y.length;if(!fe)return;var ie=this.count(),we=g(this),Ce=new we(ie),Le=0,He=Y[0],ce=z[He][0],Pe=z[He][1],Q=!1;if(!this._indices){var me=0;if(fe===1){for(var Je=this._storage[Y[0]],re=0;re<this._chunkCount;re++)for(var G=Je[re],X=Math.min(this._count-re*this._chunkSize,this._chunkSize),J=0;J<X;J++){var Ae=G[J];(Ae>=ce&&Ae<=Pe||isNaN(Ae))&&(Ce[Le++]=me),me++}Q=!0}else if(fe===2){for(var Je=this._storage[He],he=this._storage[Y[1]],Me=z[Y[1]][0],Ie=z[Y[1]][1],re=0;re<this._chunkCount;re++)for(var G=Je[re],oe=he[re],X=Math.min(this._count-re*this._chunkSize,this._chunkSize),J=0;J<X;J++){var Ae=G[J],pe=oe[J];(Ae>=ce&&Ae<=Pe||isNaN(Ae))&&(pe>=Me&&pe<=Ie||isNaN(pe))&&(Ce[Le++]=me),me++}Q=!0}}if(!Q)if(fe===1)for(var J=0;J<ie;J++){var Oe=this.getRawIndex(J),Ae=this._getFast(He,Oe);(Ae>=ce&&Ae<=Pe||isNaN(Ae))&&(Ce[Le++]=Oe)}else for(var J=0;J<ie;J++){for(var Ye=!0,Oe=this.getRawIndex(J),re=0;re<fe;re++){var it=Y[re],Ae=this._getFast(ee,Oe);(Ae<z[it][0]||Ae>z[it][1])&&(Ye=!1)}Ye&&(Ce[Le++]=this.getRawIndex(J))}return Le<ie&&(this._indices=Ce),this._count=Le,this._extent={},this.getRawIndex=this._indices?N:D,this},b.mapArray=function(z,Y,ee,fe){"use strict";typeof z=="function"&&(fe=ee,ee=Y,Y=z,z=[]),ee=ee||fe||this;var ie=[];return this.each(z,function(){ie.push(Y&&Y.apply(this,arguments))},ee),ie};function H(z,Y){var ee=z.dimensions,fe=new w(T.map(ee,z.getDimensionInfo,z),z.hostModel);C(fe,z);for(var ie=fe._storage={},we=z._storage,Ce=0;Ce<ee.length;Ce++){var Le=ee[Ce];we[Le]&&(T.indexOf(Y,Le)>=0?(ie[Le]=F(we[Le]),fe._rawExtent[Le]=K(),fe._extent[Le]=null):ie[Le]=we[Le])}return fe}function F(z){for(var Y=new Array(z.length),ee=0;ee<z.length;ee++)Y[ee]=A(z[ee]);return Y}function K(){return[Infinity,-Infinity]}b.map=function(z,Y,ee,fe){"use strict";ee=ee||fe||this,z=T.map(B(z),this.getDimension,this);var ie=H(this,z);ie._indices=this._indices,ie.getRawIndex=ie._indices?N:D;for(var we=ie._storage,Ce=[],Le=this._chunkSize,He=z.length,ce=this.count(),Pe=[],Q=ie._rawExtent,me=0;me<ce;me++){for(var Je=0;Je<He;Je++)Pe[Je]=this.get(z[Je],me);Pe[He]=me;var re=Y&&Y.apply(ee,Pe);if(re!=null){typeof re!="object"&&(Ce[0]=re,re=Ce);for(var G=this.getRawIndex(me),X=Math.floor(G/Le),J=G%Le,Ae=0;Ae<re.length;Ae++){var he=z[Ae],Me=re[Ae],Ie=Q[he],oe=we[he];oe&&(oe[X][J]=Me),Me<Ie[0]&&(Ie[0]=Me),Me>Ie[1]&&(Ie[1]=Me)}}}return ie},b.downSample=function(z,Y,ee,fe){for(var ie=H(this,[z]),we=ie._storage,Ce=[],Le=Math.floor(1/Y),He=we[z],ce=this.count(),Pe=this._chunkSize,Q=ie._rawExtent[z],me=new(g(this))(ce),Je=0,re=0;re<ce;re+=Le){Le>ce-re&&(Le=ce-re,Ce.length=Le);for(var G=0;G<Le;G++){var X=this.getRawIndex(re+G),J=Math.floor(X/Pe),Ae=X%Pe;Ce[G]=He[J][Ae]}var he=ee(Ce),Me=this.getRawIndex(Math.min(re+fe(Ce,he)||0,ce-1)),Ie=Math.floor(Me/Pe),oe=Me%Pe;He[Ie][oe]=he,he<Q[0]&&(Q[0]=he),he>Q[1]&&(Q[1]=he),me[Je++]=Me}return ie._count=Je,ie._indices=me,ie.getRawIndex=N,ie},b.getItemModel=function(z){var Y=this.hostModel;return new v(this.getRawDataItem(z),Y,Y&&Y.ecModel)},b.diff=function(z){var Y=this;return new S(z?z.getIndices():[],this.getIndices(),function(ee){return R(z,ee)},function(ee){return R(Y,ee)})},b.getVisual=function(z){var Y=this._visual;return Y&&Y[z]},b.setVisual=function(z,Y){if(e(z)){for(var ee in z)z.hasOwnProperty(ee)&&this.setVisual(ee,z[ee]);return}this._visual=this._visual||{},this._visual[z]=Y},b.setLayout=function(z,Y){if(e(z)){for(var ee in z)z.hasOwnProperty(ee)&&this.setLayout(ee,z[ee]);return}this._layout[z]=Y},b.getLayout=function(z){return this._layout[z]},b.getItemLayout=function(z){return this._itemLayouts[z]},b.setItemLayout=function(z,Y,ee){this._itemLayouts[z]=ee?T.extend(this._itemLayouts[z]||{},Y):Y},b.clearItemLayouts=function(){this._itemLayouts.length=0},b.getItemVisual=function(z,Y,ee){var fe=this._itemVisuals[z],ie=fe&&fe[Y];return ie==null&&!ee?this.getVisual(Y):ie},b.setItemVisual=function(z,Y,ee){var fe=this._itemVisuals[z]||{},ie=this.hasItemVisual;if(this._itemVisuals[z]=fe,e(Y)){for(var we in Y)Y.hasOwnProperty(we)&&(fe[we]=Y[we],ie[we]=!0);return}fe[Y]=ee,ie[Y]=!0},b.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var j=function(z){z.seriesIndex=this.seriesIndex,z.dataIndex=this.dataIndex,z.dataType=this.dataType};b.setItemGraphicEl=function(z,Y){var ee=this.hostModel;Y&&(Y.dataIndex=z,Y.dataType=this.dataType,Y.seriesIndex=ee&&ee.seriesIndex,Y.type==="group"&&Y.traverse(j,Y)),this._graphicEls[z]=Y},b.getItemGraphicEl=function(z){return this._graphicEls[z]},b.eachItemGraphicEl=function(z,Y){T.each(this._graphicEls,function(ee,fe){ee&&(z&&z.call(Y,ee,fe))})},b.cloneShallow=function(z){if(!z){var Y=T.map(this.dimensions,this.getDimensionInfo,this);z=new w(Y,this.hostModel)}if(z._storage=this._storage,C(z,this),this._indices){var ee=this._indices.constructor;z._indices=new ee(this._indices)}else z._indices=null;return z.getRawIndex=z._indices?N:D,z},b.wrapMethod=function(z,Y){var ee=this[z];if(typeof ee!="function")return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(z),this[z]=function(){var fe=ee.apply(this,arguments);return Y.apply(this,[fe].concat(T.slice(arguments)))}},b.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],b.CHANGABLE_METHODS=["filterSelf","selectRange"];var V=w;U.exports=V},YgsL:function(U,P,d){var O=d("QBsz"),x=O.distance;function T(S,m,f,c,o,r,a){var n=(f-S)*.5,e=(c-m)*.5;return(2*(m-f)+n+e)*a+(-3*(m-f)-2*n-e)*r+n*o+m}function v(S,m){for(var f=S.length,c=[],o=0,r=1;r<f;r++)o+=x(S[r-1],S[r]);var a=o/2;a=a<f?f:a;for(var r=0;r<a;r++){var n=r/(a-1)*(m?f:f-1),e=Math.floor(n),s=n-e,t,i=S[e%f],l,u;m?(t=S[(e-1+f)%f],l=S[(e+1)%f],u=S[(e+2)%f]):(t=S[e===0?e:e-1],l=S[e>f-2?f-1:e+1],u=S[e>f-3?f-1:e+2]);var h=s*s,p=s*h;c.push([T(t[0],i[0],l[0],u[0],s,h,p),T(t[1],i[1],l[1],u[1],s,h,p)])}return c}U.exports=v},Yl7c:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("bYtY"),v=".",S="___EC__COMPONENT__CONTAINER___";function m(t){var i={main:"",sub:""};return t&&(t=t.split(v),i.main=t[0]||"",i.sub=t[1]||""),i}function f(t){T.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function c(t,i){t.$constructor=t,t.extend=function(l){var u=this,h=function(){l.$constructor?l.$constructor.apply(this,arguments):u.apply(this,arguments)};return T.extend(h.prototype,l),h.extend=this.extend,h.superCall=a,h.superApply=n,T.inherits(h,this),h.superClass=u,h}}var o=0;function r(t){var i=["__\0is_clz",o++,Math.random().toFixed(3)].join("_");t.prototype[i]=!0,t.isInstance=function(l){return!!(l&&l[i])}}function a(t,i){var l=T.slice(arguments,2);return this.superClass.prototype[i].apply(t,l)}function n(t,i,l){return this.superClass.prototype[i].apply(t,l)}function e(t,i){i=i||{};var l={};t.registerClass=function(p,g){if(g){if(f(g),g=m(g),!g.sub)l[g.main]=p;else if(g.sub!==S){var A=u(g);A[g.sub]=p}}return p},t.getClass=function(p,g,A){var y=l[p];if(y&&y[S]&&(y=g?y[g]:null),A&&!y)throw new Error(g?"Component "+p+"."+(g||"")+" not exists. Load it first.":p+".type should be specified.");return y},t.getClassesByMainType=function(p){p=m(p);var g=[],A=l[p.main];return A&&A[S]?T.each(A,function(y,E){E!==S&&g.push(y)}):g.push(A),g},t.hasClass=function(p){return p=m(p),!!l[p.main]},t.getAllClassMainTypes=function(){var p=[];return T.each(l,function(g,A){p.push(A)}),p},t.hasSubTypes=function(p){p=m(p);var g=l[p.main];return g&&g[S]},t.parseClassType=m;function u(p){var g=l[p.main];return(!g||!g[S])&&(g=l[p.main]={},g[S]=!0),g}if(i.registerWhenExtend){var h=t.extend;h&&(t.extend=function(p){var g=h.call(this,p);return t.registerClass(g,p.type)})}return t}function s(t,i){}P.parseClassType=m,P.enableClassExtend=c,P.enableClassCheck=r,P.enableClassManagement=e,P.setReadOnly=s},Ynxi:function(U,P,d){var O=d("bYtY"),x=d("ProS"),T=d("IwbS"),v=d("+TT/"),S=v.getLayoutRect,m=d("7aKB"),f=m.windowOpen;x.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),x.extendComponentView({type:"title",render:function(c,o,r){if(this.group.removeAll(),!c.get("show"))return;var a=this.group,n=c.getModel("textStyle"),e=c.getModel("subtextStyle"),s=c.get("textAlign"),t=O.retrieve2(c.get("textBaseline"),c.get("textVerticalAlign")),i=new T.Text({style:T.setTextStyle({},n,{text:c.get("text"),textFill:n.getTextColor()},{disableBox:!0}),z2:10}),l=i.getBoundingRect(),u=c.get("subtext"),h=new T.Text({style:T.setTextStyle({},e,{text:u,textFill:e.getTextColor(),y:l.height+c.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),p=c.get("link"),g=c.get("sublink"),A=c.get("triggerEvent",!0);i.silent=!p&&!A,h.silent=!g&&!A,p&&i.on("click",function(){f(p,"_"+c.get("target"))}),g&&h.on("click",function(){f(p,"_"+c.get("subtarget"))}),i.eventData=h.eventData=A?{componentType:"title",componentIndex:c.componentIndex}:null,a.add(i),u&&a.add(h);var y=a.getBoundingRect(),E=c.getBoxLayoutParams();E.width=y.width,E.height=y.height;var C=S(E,{width:r.getWidth(),height:r.getHeight()},c.get("padding"));s||(s=c.get("left")||c.get("right"),s==="middle"&&(s="center"),s==="right"?C.x+=C.width:s==="center"&&(C.x+=C.width/2)),t||(t=c.get("top")||c.get("bottom"),t==="center"&&(t="middle"),t==="bottom"?C.y+=C.height:t==="middle"&&(C.y+=C.height/2),t=t||"top"),a.attr("position",[C.x,C.y]);var w={textAlign:s,textVerticalAlign:t};i.setStyle(w),h.setStyle(w),y=a.getBoundingRect();var b=C.margin,I=c.getItemStyle(["color","opacity"]);I.fill=c.get("backgroundColor");var _=new T.Rect({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:c.get("borderRadius")},style:I,subPixelOptimize:!0,silent:!0});a.add(_)}})},YrtM:function(U,P,d){"use strict";d.d(P,"a",function(){return T});var O=d("q1tI"),x=d.n(O);function T(v,S,m){var f=O.useRef({});return(!("value"in f.current)||m(f.current.condition,S))&&(f.current.value=v(),f.current.condition=S),f.current.value}},Ywus:function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("DO2E")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="DeleteOutlined";var c=v.forwardRef(f);P.default=c},Z0Lh:function(U,P,d){"use strict";var O=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var x=O(d("pVnL")),T=O(d("HjOm")),v=O(d("Z6rY")),S={lang:(0,x.default)({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},T.default),timePickerLocale:(0,x.default)({},v.default)};S.lang.ok="\u786E \u5B9A";var m=S;P.default=m},Z1HP:function(U,P,d){var O=d("ycre"),x=d("quyA"),T=d("q4HE");function v(S){return x(S)?T(S):O(S)}U.exports=v},Z1r0:function(U,P){function d(O){var x=O.findComponents({mainType:"legend"});if(!x||!x.length)return;O.eachSeriesByType("graph",function(T){var v=T.getCategoriesData(),S=T.getGraph(),m=S.data,f=v.mapArray(v.getName);m.filterSelf(function(c){var o=m.getItemModel(c),r=o.getShallow("category");if(r!=null){typeof r=="number"&&(r=f[r]);for(var a=0;a<x.length;a++)if(!x[a].isSelected(r))return!1}return!0})},this)}U.exports=d},Z1wy:function(U,P,d){var O=d("ProS");d("ThAp"),d("pmaE"),d("SehX"),d("7uqq");var x=d("zuHt"),T=d("VPsl"),v=d("9u0u"),S=d("lELe"),m=d("d4KN");O.registerLayout(x),O.registerVisual(T),O.registerProcessor(O.PRIORITY.PROCESSOR.STATISTIC,v),O.registerPreprocessor(S),m("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},Z6js:function(U,P,d){var O=d("MwEJ"),x=d("T4UG"),T=x.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(v,S){return O(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});U.exports=T},Z6rY:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]},x=O;P.default=x},Z8zF:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("ProS"),v=d("bYtY"),S=d("IwbS"),m=d("56rv"),f=m.setLabel,c=d("Qxkt"),o=d("tceW"),r=d("y+Vt"),a=d("4fz+"),n=d("iLNv"),e=n.throttle,s=d("sK/D"),t=s.createClipPath,i=d("wr5s"),l=["itemStyle","barBorderWidth"],u=[0,0];v.extend(c.prototype,o);function h(j,V){var z=j.getArea&&j.getArea();if(j.type==="cartesian2d"){var Y=j.getBaseAxis();if(Y.type!=="category"||!Y.onBand){var ee=V.getLayout("bandWidth");Y.isHorizontal()?(z.x-=ee,z.width+=ee*2):(z.y-=ee,z.height+=ee*2)}}return z}var p=T.extendChartView({type:"bar",render:function(j,V,z){this._updateDrawMode(j);var Y=j.get("coordinateSystem");return(Y==="cartesian2d"||Y==="polar")&&(this._isLargeDraw?this._renderLarge(j,V,z):this._renderNormal(j,V,z)),this.group},incrementalPrepareRender:function(j,V,z){this._clear(),this._updateDrawMode(j)},incrementalRender:function(j,V,z,Y){this._incrementalRenderLarge(j,V)},_updateDrawMode:function(j){var V=j.pipelineContext.large;(this._isLargeDraw==null||V^this._isLargeDraw)&&(this._isLargeDraw=V,this._clear())},_renderNormal:function(j,V,z){var Y=this.group,ee=j.getData(),fe=this._data,ie=j.coordinateSystem,we=ie.getBaseAxis(),Ce;ie.type==="cartesian2d"?Ce=we.isHorizontal():ie.type==="polar"&&(Ce=we.dim==="angle");var Le=j.isAnimationEnabled()?j:null,He=j.get("clip",!0),ce=h(ie,ee);Y.removeClipPath();var Pe=j.get("roundCap",!0),Q=j.get("showBackground",!0),me=j.getModel("backgroundStyle"),Je=me.get("barBorderRadius")||0,re=[],G=this._backgroundEls||[];ee.diff(fe).add(function(Ae){var he=ee.getItemModel(Ae),Me=b[ie.type](ee,Ae,he);if(Q){var Ie=b[ie.type](ee,Ae),oe=K(ie,Ce,Ie);oe.useStyle(me.getBarItemStyle()),ie.type==="cartesian2d"&&oe.setShape("r",Je),re[Ae]=oe}if(!ee.hasValue(Ae))return;if(He){var pe=y[ie.type](ce,Me);if(pe){Y.remove(Oe);return}}var Oe=E[ie.type](Ae,Me,Ce,Le,!1,Pe);ee.setItemGraphicEl(Ae,Oe),Y.add(Oe),_(Oe,ee,Ae,he,Me,j,Ce,ie.type==="polar")}).update(function(Ae,he){var Me=ee.getItemModel(Ae),Ie=b[ie.type](ee,Ae,Me);if(Q){var oe=G[he];oe.useStyle(me.getBarItemStyle()),ie.type==="cartesian2d"&&oe.setShape("r",Je),re[Ae]=oe;var pe=b[ie.type](ee,Ae),Oe=F(Ce,pe,ie);S.updateProps(oe,{shape:Oe},Le,Ae)}var Ye=fe.getItemGraphicEl(he);if(!ee.hasValue(Ae)){Y.remove(Ye);return}if(He){var it=y[ie.type](ce,Ie);if(it){Y.remove(Ye);return}}Ye?S.updateProps(Ye,{shape:Ie},Le,Ae):Ye=E[ie.type](Ae,Ie,Ce,Le,!0,Pe),ee.setItemGraphicEl(Ae,Ye),Y.add(Ye),_(Ye,ee,Ae,Me,Ie,j,Ce,ie.type==="polar")}).remove(function(Ae){var he=fe.getItemGraphicEl(Ae);ie.type==="cartesian2d"?he&&C(Ae,Le,he):he&&w(Ae,Le,he)}).execute();var X=this._backgroundGroup||(this._backgroundGroup=new a);X.removeAll();for(var J=0;J<re.length;++J)X.add(re[J]);Y.add(X),this._backgroundEls=re,this._data=ee},_renderLarge:function(j,V,z){this._clear(),N(j,this.group);var Y=j.get("clip",!0)?t(j.coordinateSystem,!1,j):null;Y?this.group.setClipPath(Y):this.group.removeClipPath()},_incrementalRenderLarge:function(j,V){this._removeBackground(),N(V,this.group,!0)},dispose:v.noop,remove:function(j){this._clear(j)},_clear:function(j){var V=this.group,z=this._data;j&&j.get("animation")&&z&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],z.eachItemGraphicEl(function(Y){Y.type==="sector"?w(Y.dataIndex,j,Y):C(Y.dataIndex,j,Y)})):V.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),g=Math.max,A=Math.min,y={cartesian2d:function(j,V){var z=V.width<0?-1:1,Y=V.height<0?-1:1;z<0&&(V.x+=V.width,V.width=-V.width),Y<0&&(V.y+=V.height,V.height=-V.height);var ee=g(V.x,j.x),fe=A(V.x+V.width,j.x+j.width),ie=g(V.y,j.y),we=A(V.y+V.height,j.y+j.height);V.x=ee,V.y=ie,V.width=fe-ee,V.height=we-ie;var Ce=V.width<0||V.height<0;return z<0&&(V.x+=V.width,V.width=-V.width),Y<0&&(V.y+=V.height,V.height=-V.height),Ce},polar:function(j){return!1}},E={cartesian2d:function(j,V,z,Y,ee){var fe=new S.Rect({shape:v.extend({},V),z2:1});if(fe.name="item",Y){var ie=fe.shape,we=z?"height":"width",Ce={};ie[we]=0,Ce[we]=V[we],S[ee?"updateProps":"initProps"](fe,{shape:Ce},Y,j)}return fe},polar:function(j,V,z,Y,ee,fe){var ie=V.startAngle<V.endAngle,we=!z&&fe?i:S.Sector,Ce=new we({shape:v.defaults({clockwise:ie},V),z2:1});if(Ce.name="item",Y){var Le=Ce.shape,He=z?"r":"endAngle",ce={};Le[He]=z?0:V.startAngle,ce[He]=V[He],S[ee?"updateProps":"initProps"](Ce,{shape:ce},Y,j)}return Ce}};function C(j,V,z){z.style.text=null,S.updateProps(z,{shape:{width:0}},V,j,function(){z.parent&&z.parent.remove(z)})}function w(j,V,z){z.style.text=null,S.updateProps(z,{shape:{r:z.shape.r0}},V,j,function(){z.parent&&z.parent.remove(z)})}var b={cartesian2d:function(j,V,z){var Y=j.getItemLayout(V),ee=z?L(z,Y):0,fe=Y.width>0?1:-1,ie=Y.height>0?1:-1;return{x:Y.x+fe*ee/2,y:Y.y+ie*ee/2,width:Y.width-fe*ee,height:Y.height-ie*ee}},polar:function(j,V,z){var Y=j.getItemLayout(V);return{cx:Y.cx,cy:Y.cy,r0:Y.r0,r:Y.r,startAngle:Y.startAngle,endAngle:Y.endAngle}}};function I(j){return j.startAngle!=null&&j.endAngle!=null&&j.startAngle===j.endAngle}function _(j,V,z,Y,ee,fe,ie,we){var Ce=V.getItemVisual(z,"color"),Le=V.getItemVisual(z,"opacity"),He=V.getVisual("borderColor"),ce=Y.getModel("itemStyle"),Pe=Y.getModel("emphasis.itemStyle").getBarItemStyle();we||j.setShape("r",ce.get("barBorderRadius")||0),j.useStyle(v.defaults({stroke:I(ee)?"none":He,fill:I(ee)?"none":Ce,opacity:Le},ce.getBarItemStyle()));var Q=Y.getShallow("cursor");Q&&j.attr("cursor",Q);var me=ie?ee.height>0?"bottom":"top":ee.width>0?"left":"right";we||f(j.style,Pe,Y,Ce,fe,z,me),I(ee)&&(Pe.fill=Pe.stroke="none"),S.setHoverStyle(j,Pe)}function L(j,V){var z=j.get(l)||0,Y=isNaN(V.width)?Number.MAX_VALUE:Math.abs(V.width),ee=isNaN(V.height)?Number.MAX_VALUE:Math.abs(V.height);return Math.min(z,Y,ee)}var D=r.extend({type:"largeBar",shape:{points:[]},buildPath:function(j,V){for(var z=V.points,Y=this.__startPoint,ee=this.__baseDimIdx,fe=0;fe<z.length;fe+=2)Y[ee]=z[fe+ee],j.moveTo(Y[0],Y[1]),j.lineTo(z[fe],z[fe+1])}});function N(j,V,z){var Y=j.getData(),ee=[],fe=Y.getLayout("valueAxisHorizontal")?1:0;ee[1-fe]=Y.getLayout("valueAxisStart");var ie=Y.getLayout("largeDataIndices"),we=Y.getLayout("barWidth"),Ce=j.getModel("backgroundStyle"),Le=j.get("showBackground",!0);if(Le){var He=Y.getLayout("largeBackgroundPoints"),ce=[];ce[1-fe]=Y.getLayout("backgroundStart");var Pe=new D({shape:{points:He},incremental:!!z,__startPoint:ce,__baseDimIdx:fe,__largeDataIndices:ie,__barWidth:we,silent:!0,z2:0});H(Pe,Ce,Y),V.add(Pe)}var Q=new D({shape:{points:Y.getLayout("largePoints")},incremental:!!z,__startPoint:ee,__baseDimIdx:fe,__largeDataIndices:ie,__barWidth:we});V.add(Q),M(Q,j,Y),Q.seriesIndex=j.seriesIndex,j.get("silent")||(Q.on("mousedown",R),Q.on("mousemove",R))}var R=e(function(j){var V=this,z=B(V,j.offsetX,j.offsetY);V.dataIndex=z>=0?z:null},30,!1);function B(j,V,z){var Y=j.__baseDimIdx,ee=1-Y,fe=j.shape.points,ie=j.__largeDataIndices,we=Math.abs(j.__barWidth/2),Ce=j.__startPoint[ee];u[0]=V,u[1]=z;for(var Le=u[Y],He=u[1-Y],ce=Le-we,Pe=Le+we,Q=0,me=fe.length/2;Q<me;Q++){var Je=Q*2,re=fe[Je+Y],G=fe[Je+ee];if(re>=ce&&re<=Pe&&(Ce<=G?He>=Ce&&He<=G:He>=G&&He<=Ce))return ie[Q]}return-1}function M(j,V,z){var Y=z.getVisual("borderColor")||z.getVisual("color"),ee=V.getModel("itemStyle").getItemStyle(["color","borderColor"]);j.useStyle(ee),j.style.fill=null,j.style.stroke=Y,j.style.lineWidth=z.getLayout("barWidth")}function H(j,V,z){var Y=V.get("borderColor")||V.get("color"),ee=V.getItemStyle(["color","borderColor"]);j.useStyle(ee),j.style.fill=null,j.style.stroke=Y,j.style.lineWidth=z.getLayout("barWidth")}function F(j,V,z){var Y,ee=z.type==="polar";return ee?Y=z.getArea():Y=z.grid.getRect(),ee?{cx:Y.cx,cy:Y.cy,r0:j?Y.r0:V.r0,r:j?Y.r:V.r,startAngle:j?V.startAngle:0,endAngle:j?V.endAngle:Math.PI*2}:{x:j?V.x:Y.x,y:j?Y.y:V.y,width:j?V.width:Y.width,height:j?Y.height:V.height}}function K(j,V,z){var Y=j.type==="polar"?S.Sector:S.Rect;return new Y({shape:F(V,z,j),silent:!0,z2:0})}U.exports=p},ZCgT:function(U,P,d){var O=d("tLB3"),x=1/0,T=17976931348623157e292;function v(S){if(!S)return S===0?S:0;if(S=O(S),S===x||S===-x){var m=S<0?-1:1;return m*T}return S===S?S:0}U.exports=v},ZLWo:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};P.default=O},ZMnZ:function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("2oIt")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="UpOutlined";var c=v.forwardRef(f);P.default=c},ZTPi:function(U,P,d){"use strict";var O=d("pVnL"),x=d.n(O),T=d("lSNA"),v=d.n(T),S=d("q1tI"),m=d("rePB"),f=d("ODXe"),c=d("Ff2n"),o=d("VTBJ"),r=d("TSYQ"),a=d.n(r),n=d("Zm9Q"),e=d("6cGi"),s=d("KQm4"),t=d("xEkU"),i=d.n(t),l=d("1OyB"),u=d("vuIU"),h=d("Ji7U"),p=d("LK+K"),g=d("m+aA"),A=d("Kwbf"),y=d("c+Xe"),E=d("bdgK"),C="rc-observer-key",w=function(Dt){Object(h.a)(un,Dt);var jr=Object(p.a)(un);function un(){var Hr;return Object(l.a)(this,un),Hr=jr.apply(this,arguments),Hr.resizeObserver=null,Hr.childNode=null,Hr.currentElement=null,Hr.state={width:0,height:0,offsetHeight:0,offsetWidth:0},Hr.onResize=function(Wt){var wr=Hr.props.onResize,fn=Wt[0].target,zt=fn.getBoundingClientRect(),Dr=zt.width,ir=zt.height,Lt=fn.offsetWidth,Qt=fn.offsetHeight,It=Math.floor(Dr),or=Math.floor(ir);if(Hr.state.width!==It||Hr.state.height!==or||Hr.state.offsetWidth!==Lt||Hr.state.offsetHeight!==Qt){var Cr={width:It,height:or,offsetWidth:Lt,offsetHeight:Qt};Hr.setState(Cr),wr&&Promise.resolve().then(function(){wr(Object(o.a)(Object(o.a)({},Cr),{},{offsetWidth:Lt,offsetHeight:Qt}))})}},Hr.setChildNode=function(Wt){Hr.childNode=Wt},Hr}return Object(u.a)(un,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var Wt=this.props.disabled;if(Wt){this.destroyObserver();return}var wr=Object(g.a)(this.childNode||this),fn=wr!==this.currentElement;fn&&(this.destroyObserver(),this.currentElement=wr),!this.resizeObserver&&wr&&(this.resizeObserver=new E.default(this.onResize),this.resizeObserver.observe(wr))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var Wt=this.props.children,wr=Object(n.a)(Wt);if(wr.length>1)Object(A.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(wr.length===0)return Object(A.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var fn=wr[0];if(S.isValidElement(fn)&&Object(y.c)(fn)){var zt=fn.ref;wr[0]=S.cloneElement(fn,{ref:Object(y.a)(zt,this.setChildNode)})}return wr.length===1?wr[0]:wr.map(function(Dr,ir){return!S.isValidElement(Dr)||"key"in Dr&&Dr.key!==null?Dr:S.cloneElement(Dr,{key:"".concat(C,"-").concat(ir)})})}}]),un}(S.Component);w.displayName="ResizeObserver";var b=w;function I(Dt){var jr=Object(S.useRef)(),un=Object(S.useRef)(!1);function Hr(){for(var Wt=arguments.length,wr=new Array(Wt),fn=0;fn<Wt;fn++)wr[fn]=arguments[fn];un.current||(i.a.cancel(jr.current),jr.current=i()(function(){Dt.apply(void 0,wr)}))}return Object(S.useEffect)(function(){return function(){un.current=!0,i.a.cancel(jr.current)}},[]),Hr}function _(Dt){var jr=Object(S.useRef)([]),un=Object(S.useState)({}),Hr=Object(f.a)(un,2),Wt=Hr[1],wr=Object(S.useRef)(typeof Dt=="function"?Dt():Dt),fn=I(function(){var Dr=wr.current;jr.current.forEach(function(ir){Dr=ir(Dr)}),jr.current=[],wr.current=Dr,Wt({})});function zt(Dr){jr.current.push(Dr),fn()}return[wr.current,zt]}var L=d("4IlW");function D(Dt,jr){var un,Hr=Dt.prefixCls,Wt=Dt.id,wr=Dt.active,fn=Dt.rtl,zt=Dt.tab,Dr=zt.key,ir=zt.tab,Lt=zt.disabled,Qt=zt.closeIcon,It=Dt.tabBarGutter,or=Dt.tabPosition,Cr=Dt.closable,Er=Dt.renderWrapper,Kr=Dt.removeAriaLabel,jn=Dt.editable,Nn=Dt.onClick,ei=Dt.onRemove,Zr=Dt.onFocus,br="".concat(Hr,"-tab");S.useEffect(function(){return ei},[]);var dn={};or==="top"||or==="bottom"?dn[fn?"marginLeft":"marginRight"]=It:dn.marginBottom=It;var Ln=jn&&Cr!==!1&&!Lt;function Fn(ii){if(Lt)return;Nn(ii)}function zn(ii){ii.preventDefault(),ii.stopPropagation(),jn.onEdit("remove",{key:Dr,event:ii})}var ui=S.createElement("div",{key:Dr,ref:jr,className:a()(br,(un={},Object(m.a)(un,"".concat(br,"-with-remove"),Ln),Object(m.a)(un,"".concat(br,"-active"),wr),Object(m.a)(un,"".concat(br,"-disabled"),Lt),un)),style:dn,onClick:Fn},S.createElement("div",{role:"tab","aria-selected":wr,id:Wt&&"".concat(Wt,"-tab-").concat(Dr),className:"".concat(br,"-btn"),"aria-controls":Wt&&"".concat(Wt,"-panel-").concat(Dr),"aria-disabled":Lt,tabIndex:Lt?null:0,onClick:function(qn){qn.stopPropagation(),Fn(qn)},onKeyDown:function(qn){[L.a.SPACE,L.a.ENTER].includes(qn.which)&&(qn.preventDefault(),Fn(qn))},onFocus:Zr},ir),Ln&&S.createElement("button",{type:"button","aria-label":Kr||"remove",tabIndex:0,className:"".concat(br,"-remove"),onClick:function(qn){qn.stopPropagation(),zn(qn)}},Qt||jn.removeIcon||"\xD7"));return Er&&(ui=Er(ui)),ui}var N=S.forwardRef(D),R={width:0,height:0,left:0,top:0};function B(Dt,jr,un){return Object(S.useMemo)(function(){for(var Hr,Wt=new Map,wr=jr.get((Hr=Dt[0])===null||Hr===void 0?void 0:Hr.key)||R,fn=wr.left+wr.width,zt=0;zt<Dt.length;zt+=1){var Dr=Dt[zt].key,ir=jr.get(Dr);if(!ir){var Lt;ir=jr.get((Lt=Dt[zt-1])===null||Lt===void 0?void 0:Lt.key)||R}var Qt=Wt.get(Dr)||Object(o.a)({},ir);Qt.right=fn-Qt.left-Qt.width,Wt.set(Dr,Qt)}return Wt},[Dt.map(function(Hr){return Hr.key}).join("_"),jr,un])}var M={width:0,height:0,left:0,top:0,right:0};function H(Dt,jr,un,Hr,Wt){var wr=Wt.tabs,fn=Wt.tabPosition,zt=Wt.rtl,Dr,ir,Lt;["top","bottom"].includes(fn)?(Dr="width",ir=zt?"right":"left",Lt=Math.abs(jr.left)):(Dr="height",ir="top",Lt=-jr.top);var Qt=jr[Dr],It=un[Dr],or=Hr[Dr],Cr=Qt;return It+or>Qt&&(Cr=Qt-or),Object(S.useMemo)(function(){if(!wr.length)return[0,0];for(var Er=wr.length,Kr=Er,jn=0;jn<Er;jn+=1){var Nn=Dt.get(wr[jn].key)||M;if(Nn[ir]+Nn[Dr]>Lt+Cr){Kr=jn-1;break}}for(var ei=0,Zr=Er-1;Zr>=0;Zr-=1){var br=Dt.get(wr[Zr].key)||M;if(br[ir]<Lt){ei=Zr+1;break}}return[ei,Kr]},[Dt,Lt,Cr,fn,wr.map(function(Er){return Er.key}).join("_"),zt])}var F=d("wx14"),K=d("JX7q"),j=d("I8Z2"),V=d("bT9E"),z=d("2GS6"),Y=d("Gytx"),ee=d.n(Y),fe=d("U8pU"),ie=/iPhone/i,we=/iPod/i,Ce=/iPad/i,Le=/\bAndroid(?:.+)Mobile\b/i,He=/Android/i,ce=/\bAndroid(?:.+)SD4930UR\b/i,Pe=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,Q=/Windows Phone/i,me=/\bWindows(?:.+)ARM\b/i,Je=/BlackBerry/i,re=/BB10/i,G=/Opera Mini/i,X=/\b(CriOS|Chrome)(?:.+)Mobile/i,J=/Mobile(?:.+)Firefox\b/i;function Ae(Dt,jr){return Dt.test(jr)}function he(Dt){var jr=Dt||(typeof navigator!="undefined"?navigator.userAgent:""),un=(jr||"").split("[FBAN");if(typeof un[1]!="undefined"){var Hr=un,Wt=Object(f.a)(Hr,1);jr=Wt[0]}if(un=jr.split("Twitter"),typeof un[1]!="undefined"){var wr=un,fn=Object(f.a)(wr,1);jr=fn[0]}var zt={apple:{phone:Ae(ie,jr)&&!Ae(Q,jr),ipod:Ae(we,jr),tablet:!Ae(ie,jr)&&Ae(Ce,jr)&&!Ae(Q,jr),device:(Ae(ie,jr)||Ae(we,jr)||Ae(Ce,jr))&&!Ae(Q,jr)},amazon:{phone:Ae(ce,jr),tablet:!Ae(ce,jr)&&Ae(Pe,jr),device:Ae(ce,jr)||Ae(Pe,jr)},android:{phone:!Ae(Q,jr)&&Ae(ce,jr)||!Ae(Q,jr)&&Ae(Le,jr),tablet:!Ae(Q,jr)&&!Ae(ce,jr)&&!Ae(Le,jr)&&(Ae(Pe,jr)||Ae(He,jr)),device:!Ae(Q,jr)&&(Ae(ce,jr)||Ae(Pe,jr)||Ae(Le,jr)||Ae(He,jr))||Ae(/\bokhttp\b/i,jr)},windows:{phone:Ae(Q,jr),tablet:Ae(me,jr),device:Ae(Q,jr)||Ae(me,jr)},other:{blackberry:Ae(Je,jr),blackberry10:Ae(re,jr),opera:Ae(G,jr),firefox:Ae(J,jr),chrome:Ae(X,jr),device:Ae(Je,jr)||Ae(re,jr)||Ae(G,jr)||Ae(J,jr)||Ae(X,jr)},any:null,phone:null,tablet:null};return zt.any=zt.apple.device||zt.android.device||zt.windows.device||zt.other.device,zt.phone=zt.apple.phone||zt.android.phone||zt.windows.phone,zt.tablet=zt.apple.tablet||zt.android.tablet||zt.windows.tablet,zt}var Me=Object(o.a)(Object(o.a)({},he()),{},{isMobile:he}),Ie=Me;function oe(){}function pe(Dt,jr,un){var Hr=jr||"";return Dt.key||"".concat(Hr,"item_").concat(un)}function Oe(Dt){return"".concat(Dt,"-menu-")}function Ye(Dt,jr){var un=-1;S.Children.forEach(Dt,function(Hr){un+=1,Hr&&Hr.type&&Hr.type.isMenuItemGroup?S.Children.forEach(Hr.props.children,function(Wt){un+=1,jr(Wt,un)}):jr(Hr,un)})}function it(Dt,jr,un){if(!Dt||un.find)return;S.Children.forEach(Dt,function(Hr){if(Hr){var Wt=Hr.type;if(!Wt||!(Wt.isSubMenu||Wt.isMenuItem||Wt.isMenuItemGroup))return;jr.indexOf(Hr.key)!==-1?un.find=!0:Hr.props.children&&it(Hr.props.children,jr,un)}})}var et=["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"],Te=function(jr){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Hr=jr&&typeof jr.getBoundingClientRect=="function"&&jr.getBoundingClientRect().width;if(Hr){if(un){var Wt=getComputedStyle(jr),wr=Wt.marginLeft,fn=Wt.marginRight;Hr+=+wr.replace("px","")+ +fn.replace("px","")}Hr=+Hr.toFixed(6)}return Hr||0},tt=function(jr,un,Hr){jr&&Object(fe.a)(jr.style)==="object"&&(jr.style[un]=Hr)},ze=function(){return Ie.any},dt=d("i8i4"),Ot=d("uciX"),Tt=d("wgJM"),Ct=d("8XRh"),Nt={adjustX:1,adjustY:1},Be={topLeft:{points:["bl","tl"],overflow:Nt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Nt,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Nt,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Nt,offset:[4,0]}},$={topLeft:{points:["bl","tl"],overflow:Nt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Nt,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Nt,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Nt,offset:[4,0]}},Z=Be,Re=0,De={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ae=function(jr,un,Hr){var Wt=Oe(un),wr=jr.getState();jr.setState({defaultActiveFirst:Object(o.a)(Object(o.a)({},wr.defaultActiveFirst),{},Object(m.a)({},Wt,Hr))})},gt=function(Dt){Object(h.a)(un,Dt);var jr=Object(p.a)(un);function un(Hr){var Wt;Object(l.a)(this,un),Wt=jr.call(this,Hr),Wt.onDestroy=function(Lt){Wt.props.onDestroy(Lt)},Wt.onKeyDown=function(Lt){var Qt=Lt.keyCode,It=Wt.menuInstance,or=Wt.props.store,Cr=Wt.getVisible();if(Qt===L.a.ENTER)return Wt.onTitleClick(Lt),ae(or,Wt.props.eventKey,!0),!0;if(Qt===L.a.RIGHT)return Cr?It.onKeyDown(Lt):(Wt.triggerOpenChange(!0),ae(or,Wt.props.eventKey,!0)),!0;if(Qt===L.a.LEFT){var Er;if(Cr)Er=It.onKeyDown(Lt);else return;return Er||(Wt.triggerOpenChange(!1),Er=!0),Er}return Cr&&(Qt===L.a.UP||Qt===L.a.DOWN)?It.onKeyDown(Lt):void 0},Wt.onOpenChange=function(Lt){Wt.props.onOpenChange(Lt)},Wt.onPopupVisibleChange=function(Lt){Wt.triggerOpenChange(Lt,Lt?"mouseenter":"mouseleave")},Wt.onMouseEnter=function(Lt){var Qt=Wt.props,It=Qt.eventKey,or=Qt.onMouseEnter,Cr=Qt.store;ae(Cr,Wt.props.eventKey,!1),or({key:It,domEvent:Lt})},Wt.onMouseLeave=function(Lt){var Qt=Wt.props,It=Qt.parentMenu,or=Qt.eventKey,Cr=Qt.onMouseLeave;It.subMenuInstance=Object(K.a)(Wt),Cr({key:or,domEvent:Lt})},Wt.onTitleMouseEnter=function(Lt){var Qt=Wt.props,It=Qt.eventKey,or=Qt.onItemHover,Cr=Qt.onTitleMouseEnter;or({key:It,hover:!0}),Cr({key:It,domEvent:Lt})},Wt.onTitleMouseLeave=function(Lt){var Qt=Wt.props,It=Qt.parentMenu,or=Qt.eventKey,Cr=Qt.onItemHover,Er=Qt.onTitleMouseLeave;It.subMenuInstance=Object(K.a)(Wt),Cr({key:or,hover:!1}),Er({key:or,domEvent:Lt})},Wt.onTitleClick=function(Lt){var Qt=Object(K.a)(Wt),It=Qt.props;if(It.onTitleClick({key:It.eventKey,domEvent:Lt}),It.triggerSubMenuAction==="hover")return;Wt.triggerOpenChange(!Wt.getVisible(),"click"),ae(It.store,Wt.props.eventKey,!1)},Wt.onSubMenuClick=function(Lt){typeof Wt.props.onClick=="function"&&Wt.props.onClick(Wt.addKeyPath(Lt))},Wt.onSelect=function(Lt){Wt.props.onSelect(Lt)},Wt.onDeselect=function(Lt){Wt.props.onDeselect(Lt)},Wt.getPrefixCls=function(){return"".concat(Wt.props.rootPrefixCls,"-submenu")},Wt.getActiveClassName=function(){return"".concat(Wt.getPrefixCls(),"-active")},Wt.getDisabledClassName=function(){return"".concat(Wt.getPrefixCls(),"-disabled")},Wt.getSelectedClassName=function(){return"".concat(Wt.getPrefixCls(),"-selected")},Wt.getOpenClassName=function(){return"".concat(Wt.props.rootPrefixCls,"-submenu-open")},Wt.getVisible=function(){return Wt.state.isOpen},Wt.getMode=function(){return Wt.state.mode},Wt.saveMenuInstance=function(Lt){Wt.menuInstance=Lt},Wt.addKeyPath=function(Lt){return Object(o.a)(Object(o.a)({},Lt),{},{keyPath:(Lt.keyPath||[]).concat(Wt.props.eventKey)})},Wt.triggerOpenChange=function(Lt,Qt){var It=Wt.props.eventKey,or=function(){Wt.onOpenChange({key:It,item:Object(K.a)(Wt),trigger:Qt,open:Lt})};Qt==="mouseenter"?Wt.mouseenterTimeout=setTimeout(function(){or()},0):or()},Wt.isChildrenSelected=function(){var Lt={find:!1};return it(Wt.props.children,Wt.props.selectedKeys,Lt),Lt.find},Wt.isInlineMode=function(){return Wt.getMode()==="inline"},Wt.adjustWidth=function(){if(!Wt.subMenuTitle||!Wt.menuInstance)return;var Lt=dt.findDOMNode(Wt.menuInstance);if(Lt.offsetWidth>=Wt.subMenuTitle.offsetWidth)return;Lt.style.minWidth="".concat(Wt.subMenuTitle.offsetWidth,"px")},Wt.saveSubMenuTitle=function(Lt){Wt.subMenuTitle=Lt},Wt.getBaseProps=function(){var Lt=Object(K.a)(Wt),Qt=Lt.props,It=Wt.getMode();return{mode:It==="horizontal"?"vertical":It,visible:Wt.getVisible(),level:Qt.level+1,inlineIndent:Qt.inlineIndent,focusable:!1,onClick:Wt.onSubMenuClick,onSelect:Wt.onSelect,onDeselect:Wt.onDeselect,onDestroy:Wt.onDestroy,selectedKeys:Qt.selectedKeys,eventKey:"".concat(Qt.eventKey,"-menu-"),openKeys:Qt.openKeys,motion:Qt.motion,onOpenChange:Wt.onOpenChange,subMenuOpenDelay:Qt.subMenuOpenDelay,parentMenu:Object(K.a)(Wt),subMenuCloseDelay:Qt.subMenuCloseDelay,forceSubMenuRender:Qt.forceSubMenuRender,triggerSubMenuAction:Qt.triggerSubMenuAction,builtinPlacements:Qt.builtinPlacements,defaultActiveFirst:Qt.store.getState().defaultActiveFirst[Oe(Qt.eventKey)],multiple:Qt.multiple,prefixCls:Qt.rootPrefixCls,id:Wt.internalMenuId,manualRef:Wt.saveMenuInstance,itemIcon:Qt.itemIcon,expandIcon:Qt.expandIcon,direction:Qt.direction}},Wt.getMotion=function(Lt,Qt){var It=Object(K.a)(Wt),or=It.haveRendered,Cr=Wt.props,Er=Cr.motion,Kr=Cr.rootPrefixCls,jn=Object(o.a)(Object(o.a)({},Er),{},{leavedClassName:"".concat(Kr,"-hidden"),removeOnLeave:!1,motionAppear:or||!Qt||Lt!=="inline"});return jn};var wr=Hr.store,fn=Hr.eventKey,zt=wr.getState(),Dr=zt.defaultActiveFirst;Wt.isRootMenu=!1;var ir=!1;return Dr&&(ir=Dr[fn]),ae(wr,fn,ir),Wt.state={mode:Hr.mode,isOpen:Hr.isOpen},Wt}return Object(u.a)(un,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Wt=this,wr=this.props,fn=wr.mode,zt=wr.parentMenu,Dr=wr.manualRef,ir=wr.isOpen,Lt=function(){Wt.setState({mode:fn,isOpen:ir})},Qt=ir!==this.state.isOpen,It=fn!==this.state.mode;if((It||Qt)&&(Tt.a.cancel(this.updateStateRaf),It?this.updateStateRaf=Object(Tt.a)(Lt):Lt()),Dr&&Dr(this),fn!=="horizontal"||!(zt==null?void 0:zt.isRootMenu)||!ir)return;this.minWidthTimeout=setTimeout(function(){return Wt.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Wt=this.props,wr=Wt.onDestroy,fn=Wt.eventKey;wr&&wr(fn),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Tt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Wt,wr){var fn=this.getBaseProps();return S.createElement(Un,Object(F.a)({},fn,{id:this.internalMenuId,className:Wt,style:wr}),this.props.children)}},{key:"renderChildren",value:function(){var Wt=this,wr=this.getBaseProps(),fn=wr.mode,zt=wr.visible,Dr=wr.forceSubMenuRender,ir=wr.direction,Lt=this.getMotion(fn,zt);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||zt||Dr,!this.haveOpened)return S.createElement("div",null);var Qt=a()("".concat(wr.prefixCls,"-sub"),Object(m.a)({},"".concat(wr.prefixCls,"-rtl"),ir==="rtl"));return this.isInlineMode()?S.createElement(Ct.b,Object(F.a)({visible:wr.visible,forceRender:Dr},Lt),function(It){var or=It.className,Cr=It.style,Er=a()(Qt,or);return Wt.renderPopupMenu(Er,Cr)}):this.renderPopupMenu(Qt)}},{key:"render",value:function(){var Wt,wr,fn,zt=Object(o.a)({},this.props),Dr=this.getVisible(),ir=this.getPrefixCls(),Lt=this.isInlineMode(),Qt=this.getMode(),It=a()(ir,"".concat(ir,"-").concat(Qt),(Wt={},Object(m.a)(Wt,zt.className,!!zt.className),Object(m.a)(Wt,this.getOpenClassName(),Dr),Object(m.a)(Wt,this.getActiveClassName(),zt.active||Dr&&!Lt),Object(m.a)(Wt,this.getDisabledClassName(),zt.disabled),Object(m.a)(Wt,this.getSelectedClassName(),this.isChildrenSelected()),Wt));this.internalMenuId||(zt.eventKey?this.internalMenuId="".concat(zt.eventKey,"$Menu"):(Re+=1,this.internalMenuId="$__$".concat(Re,"$Menu")));var or={},Cr={},Er={};zt.disabled||(or={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Cr={onClick:this.onTitleClick},Er={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Kr={},jn=zt.direction,Nn=jn==="rtl";Lt&&(Nn?Kr.paddingRight=zt.inlineIndent*zt.level:Kr.paddingLeft=zt.inlineIndent*zt.level);var ei={};this.getVisible()&&(ei={"aria-owns":this.internalMenuId});var Zr=null;Qt!=="horizontal"&&(Zr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Zr=S.createElement(this.props.expandIcon,Object(o.a)({},this.props))));var br=S.createElement("div",Object(F.a)({ref:this.saveSubMenuTitle,style:Kr,className:"".concat(ir,"-title"),role:"button"},Er,Cr,{"aria-expanded":Dr},ei,{"aria-haspopup":"true",title:typeof zt.title=="string"?zt.title:void 0}),zt.title,Zr||S.createElement("i",{className:"".concat(ir,"-arrow")})),dn=this.renderChildren(),Ln=((wr=zt.parentMenu)===null||wr===void 0?void 0:wr.isRootMenu)?zt.parentMenu.props.getPopupContainer:function(Hi){return Hi.parentNode},Fn=De[Qt],zn=zt.popupOffset?{offset:zt.popupOffset}:{},ui=a()((fn={},Object(m.a)(fn,zt.popupClassName,zt.popupClassName&&!Lt),Object(m.a)(fn,"".concat(ir,"-rtl"),Nn),fn)),ii=zt.disabled,qn=zt.triggerSubMenuAction,Li=zt.subMenuOpenDelay,zi=zt.forceSubMenuRender,Ri=zt.subMenuCloseDelay,ga=zt.builtinPlacements;et.forEach(function(Hi){return delete zt[Hi]}),delete zt.onClick;var oi=Nn?Object(o.a)(Object(o.a)({},$),ga):Object(o.a)(Object(o.a)({},Be),ga);delete zt.direction;var hn=this.getBaseProps(),Ei=Lt?null:this.getMotion(hn.mode,hn.visible);return S.createElement("li",Object(F.a)({},zt,or,{className:It,role:"menuitem"}),S.createElement(Ot.a,{prefixCls:ir,popupClassName:a()("".concat(ir,"-popup"),ui),getPopupContainer:Ln,builtinPlacements:oi,popupPlacement:Fn,popupVisible:Lt?!1:Dr,popupAlign:zn,popup:Lt?null:dn,action:ii||Lt?[]:[qn],mouseEnterDelay:Li,mouseLeaveDelay:Ri,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:zi,popupMotion:Ei},br),Lt?dn:null)}}]),un}(S.Component);gt.defaultProps={onMouseEnter:oe,onMouseLeave:oe,onTitleMouseEnter:oe,onTitleMouseLeave:oe,onTitleClick:oe,manualRef:oe,mode:"vertical",title:""};var jt=Object(j.b)(function(Dt,jr){var un=Dt.openKeys,Hr=Dt.activeKey,Wt=Dt.selectedKeys,wr=jr.eventKey,fn=jr.subMenuKey;return{isOpen:un.indexOf(wr)>-1,active:Hr[fn]===wr,selectedKeys:Wt}})(gt);jt.isSubMenu=!0;var ut=jt,rr="menuitem-overflowed",pr=.5,nn=function(Dt){Object(h.a)(un,Dt);var jr=Object(p.a)(un);function un(){var Hr;return Object(l.a)(this,un),Hr=jr.apply(this,arguments),Hr.resizeObserver=null,Hr.mutationObserver=null,Hr.originalTotalWidth=0,Hr.overflowedItems=[],Hr.menuItemSizes=[],Hr.cancelFrameId=null,Hr.state={lastVisibleIndex:void 0},Hr.childRef=S.createRef(),Hr.getMenuItemNodes=function(){var Wt=Hr.props.prefixCls,wr=Hr.childRef.current;return wr?[].slice.call(wr.children).filter(function(fn){return fn.className.split(" ").indexOf("".concat(Wt,"-overflowed-submenu"))<0}):[]},Hr.getOverflowedSubMenuItem=function(Wt,wr,fn){var zt=Hr.props,Dr=zt.overflowedIndicator,ir=zt.level,Lt=zt.mode,Qt=zt.prefixCls,It=zt.theme;if(ir!==1||Lt!=="horizontal")return null;var or=Hr.props.children[0],Cr=or.props,Er=Cr.children,Kr=Cr.title,jn=Cr.style,Nn=Object(c.a)(Cr,["children","title","style"]),ei=Object(o.a)({},jn),Zr="".concat(Wt,"-overflowed-indicator"),br="".concat(Wt,"-overflowed-indicator");wr.length===0&&fn!==!0?ei=Object(o.a)(Object(o.a)({},ei),{},{display:"none"}):fn&&(ei=Object(o.a)(Object(o.a)({},ei),{},{visibility:"hidden",position:"absolute"}),Zr="".concat(Zr,"-placeholder"),br="".concat(br,"-placeholder"));var dn=It?"".concat(Qt,"-").concat(It):"",Ln={};return et.forEach(function(Fn){Nn[Fn]!==void 0&&(Ln[Fn]=Nn[Fn])}),S.createElement(ut,Object(F.a)({title:Dr,className:"".concat(Qt,"-overflowed-submenu"),popupClassName:dn},Ln,{key:Zr,eventKey:br,disabled:!1,style:ei}),wr)},Hr.setChildrenWidthAndResize=function(){if(Hr.props.mode!=="horizontal")return;var Wt=Hr.childRef.current;if(!Wt)return;var wr=Wt.children;if(!wr||wr.length===0)return;var fn=Wt.children[wr.length-1];tt(fn,"display","inline-block");var zt=Hr.getMenuItemNodes(),Dr=zt.filter(function(ir){return ir.className.split(" ").indexOf(rr)>=0});Dr.forEach(function(ir){tt(ir,"display","inline-block")}),Hr.menuItemSizes=zt.map(function(ir){return Te(ir,!0)}),Dr.forEach(function(ir){tt(ir,"display","none")}),Hr.overflowedIndicatorWidth=Te(Wt.children[Wt.children.length-1],!0),Hr.originalTotalWidth=Hr.menuItemSizes.reduce(function(ir,Lt){return ir+Lt},0),Hr.handleResize(),tt(fn,"display","none")},Hr.handleResize=function(){if(Hr.props.mode!=="horizontal")return;var Wt=Hr.childRef.current;if(!Wt)return;var wr=Te(Wt);Hr.overflowedItems=[];var fn=0,zt;Hr.originalTotalWidth>wr+pr&&(zt=-1,Hr.menuItemSizes.forEach(function(Dr){fn+=Dr,fn+Hr.overflowedIndicatorWidth<=wr&&(zt+=1)})),Hr.setState({lastVisibleIndex:zt})},Hr}return Object(u.a)(un,[{key:"componentDidMount",value:function(){var Wt=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var wr=this.childRef.current;if(!wr)return;this.resizeObserver=new E.default(function(fn){fn.forEach(function(){var zt=Wt.cancelFrameId;cancelAnimationFrame(zt),Wt.cancelFrameId=requestAnimationFrame(Wt.setChildrenWidthAndResize)})}),[].slice.call(wr.children).concat(wr).forEach(function(fn){Wt.resizeObserver.observe(fn)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Wt.resizeObserver.disconnect(),[].slice.call(wr.children).concat(wr).forEach(function(fn){Wt.resizeObserver.observe(fn)}),Wt.setChildrenWidthAndResize()}),this.mutationObserver.observe(wr,{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(Wt){var wr=this,fn=this.state.lastVisibleIndex;return(Wt||[]).reduce(function(zt,Dr,ir){var Lt=Dr;if(wr.props.mode==="horizontal"){var Qt=wr.getOverflowedSubMenuItem(Dr.props.eventKey,[]);fn!==void 0&&wr.props.className.indexOf("".concat(wr.props.prefixCls,"-root"))!==-1&&(ir>fn&&(Lt=S.cloneElement(Dr,{style:{display:"none"},eventKey:"".concat(Dr.props.eventKey,"-hidden"),className:"".concat(rr)})),ir===fn+1&&(wr.overflowedItems=Wt.slice(fn+1).map(function(or){return S.cloneElement(or,{key:or.props.eventKey,mode:"vertical-left"})}),Qt=wr.getOverflowedSubMenuItem(Dr.props.eventKey,wr.overflowedItems)));var It=[].concat(Object(s.a)(zt),[Qt,Lt]);return ir===Wt.length-1&&It.push(wr.getOverflowedSubMenuItem(Dr.props.eventKey,[],!0)),It}return[].concat(Object(s.a)(zt),[Lt])},[])}},{key:"render",value:function(){var Wt=this.props,wr=Wt.visible,fn=Wt.prefixCls,zt=Wt.overflowedIndicator,Dr=Wt.mode,ir=Wt.level,Lt=Wt.tag,Qt=Wt.children,It=Wt.theme,or=Object(c.a)(Wt,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Cr=Lt;return S.createElement(Cr,Object(F.a)({ref:this.childRef},or),this.renderChildren(Qt))}}]),un}(S.Component);nn.defaultProps={tag:"div",className:""};var mr=nn;function vr(Dt){return Dt.length?Dt.every(function(jr){return!!jr.props.disabled}):!0}function $t(Dt,jr,un){var Hr=Dt.getState();Dt.setState({activeKey:Object(o.a)(Object(o.a)({},Hr.activeKey),{},Object(m.a)({},jr,un))})}function Xt(Dt){return Dt.eventKey||"0-menu-"}function ft(Dt,jr){var un=jr,Hr=Dt.children,Wt=Dt.eventKey;if(un){var wr;if(Ye(Hr,function(fn,zt){fn&&fn.props&&!fn.props.disabled&&un===pe(fn,Wt,zt)&&(wr=!0)}),wr)return un}return un=null,Dt.defaultActiveFirst&&Ye(Hr,function(fn,zt){!un&&fn&&!fn.props.disabled&&(un=pe(fn,Wt,zt))}),un}function Ur(Dt){if(!Dt)return;var jr=this.instanceArray.indexOf(Dt);jr!==-1?this.instanceArray[jr]=Dt:this.instanceArray.push(Dt)}var yn=function(Dt){Object(h.a)(un,Dt);var jr=Object(p.a)(un);function un(Hr){var Wt;return Object(l.a)(this,un),Wt=jr.call(this,Hr),Wt.onKeyDown=function(wr,fn){var zt=wr.keyCode,Dr;if(Wt.getFlatInstanceArray().forEach(function(Lt){Lt&&Lt.props.active&&Lt.onKeyDown&&(Dr=Lt.onKeyDown(wr))}),Dr)return 1;var ir=null;return(zt===L.a.UP||zt===L.a.DOWN)&&(ir=Wt.step(zt===L.a.UP?-1:1)),ir?(wr.preventDefault(),$t(Wt.props.store,Xt(Wt.props),ir.props.eventKey),typeof fn=="function"&&fn(ir),1):void 0},Wt.onItemHover=function(wr){var fn=wr.key,zt=wr.hover;$t(Wt.props.store,Xt(Wt.props),zt?fn:null)},Wt.onDeselect=function(wr){Wt.props.onDeselect(wr)},Wt.onSelect=function(wr){Wt.props.onSelect(wr)},Wt.onClick=function(wr){Wt.props.onClick(wr)},Wt.onOpenChange=function(wr){Wt.props.onOpenChange(wr)},Wt.onDestroy=function(wr){Wt.props.onDestroy(wr)},Wt.getFlatInstanceArray=function(){return Wt.instanceArray},Wt.step=function(wr){var fn=Wt.getFlatInstanceArray(),zt=Wt.props.store.getState().activeKey[Xt(Wt.props)],Dr=fn.length;if(!Dr)return null;wr<0&&(fn=fn.concat().reverse());var ir=-1;if(fn.every(function(or,Cr){return or&&or.props.eventKey===zt?(ir=Cr,!1):!0}),!Wt.props.defaultActiveFirst&&ir!==-1&&vr(fn.slice(ir,Dr-1)))return;var Lt=(ir+1)%Dr,Qt=Lt;do{var It=fn[Qt];if(!It||It.props.disabled)Qt=(Qt+1)%Dr;else return It}while(Qt!==Lt);return null},Wt.renderCommonMenuItem=function(wr,fn,zt){var Dr=Wt.props.store.getState(),ir=Object(K.a)(Wt),Lt=ir.props,Qt=pe(wr,Lt.eventKey,fn),It=wr.props;if(!It||typeof wr.type=="string")return wr;var or=Qt===Dr.activeKey,Cr=Object(o.a)(Object(o.a)({mode:It.mode||Lt.mode,level:Lt.level,inlineIndent:Lt.inlineIndent,renderMenuItem:Wt.renderMenuItem,rootPrefixCls:Lt.prefixCls,index:fn,parentMenu:Lt.parentMenu,manualRef:It.disabled?void 0:Object(z.a)(wr.ref,Ur.bind(Object(K.a)(Wt))),eventKey:Qt,active:!It.disabled&&or,multiple:Lt.multiple,onClick:function(Kr){(It.onClick||oe)(Kr),Wt.onClick(Kr)},onItemHover:Wt.onItemHover,motion:Lt.motion,subMenuOpenDelay:Lt.subMenuOpenDelay,subMenuCloseDelay:Lt.subMenuCloseDelay,forceSubMenuRender:Lt.forceSubMenuRender,onOpenChange:Wt.onOpenChange,onDeselect:Wt.onDeselect,onSelect:Wt.onSelect,builtinPlacements:Lt.builtinPlacements,itemIcon:It.itemIcon||Wt.props.itemIcon,expandIcon:It.expandIcon||Wt.props.expandIcon},zt),{},{direction:Lt.direction});return(Lt.mode==="inline"||ze())&&(Cr.triggerSubMenuAction="click"),S.cloneElement(wr,Object(o.a)(Object(o.a)({},Cr),{},{key:Qt||fn}))},Wt.renderMenuItem=function(wr,fn,zt){if(!wr)return null;var Dr=Wt.props.store.getState(),ir={openKeys:Dr.openKeys,selectedKeys:Dr.selectedKeys,triggerSubMenuAction:Wt.props.triggerSubMenuAction,subMenuKey:zt};return Wt.renderCommonMenuItem(wr,fn,ir)},Hr.store.setState({activeKey:Object(o.a)(Object(o.a)({},Hr.store.getState().activeKey),{},Object(m.a)({},Hr.eventKey,ft(Hr,Hr.activeKey)))}),Wt.instanceArray=[],Wt}return Object(u.a)(un,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Wt){return this.props.visible||Wt.visible||this.props.className!==Wt.className||!ee()(this.props.style,Wt.style)}},{key:"componentDidUpdate",value:function(Wt){var wr=this.props,fn="activeKey"in wr?wr.activeKey:wr.store.getState().activeKey[Xt(wr)],zt=ft(wr,fn);if(zt!==fn)$t(wr.store,Xt(wr),zt);else if("activeKey"in Wt){var Dr=ft(Wt,Wt.activeKey);zt!==Dr&&$t(wr.store,Xt(wr),zt)}}},{key:"render",value:function(){var Wt=this,wr=Object(F.a)({},this.props);this.instanceArray=[];var fn=a()(wr.prefixCls,wr.className,"".concat(wr.prefixCls,"-").concat(wr.mode)),zt={className:fn,role:wr.role||"menu"};wr.id&&(zt.id=wr.id),wr.focusable&&(zt.tabIndex=0,zt.onKeyDown=this.onKeyDown);var Dr=wr.prefixCls,ir=wr.eventKey,Lt=wr.visible,Qt=wr.level,It=wr.mode,or=wr.overflowedIndicator,Cr=wr.theme;return et.forEach(function(Er){return delete wr[Er]}),delete wr.onClick,S.createElement(mr,Object(F.a)({},wr,{prefixCls:Dr,mode:It,tag:"ul",level:Qt,theme:Cr,visible:Lt,overflowedIndicator:or},zt),Object(n.a)(wr.children).map(function(Er,Kr){return Wt.renderMenuItem(Er,Kr,ir||"0-menu-")}))}}]),un}(S.Component);yn.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:oe};var Dn=Object(j.b)()(yn),Un=Dn;function wi(Dt,jr,un){var Hr=Dt.prefixCls,Wt=Dt.motion,wr=Dt.defaultMotions,fn=wr===void 0?{}:wr,zt=Dt.openAnimation,Dr=Dt.openTransitionName,ir=jr.switchingModeFromInline;if(Wt)return Wt;if(Object(fe.a)(zt)==="object"&&zt)Object(A.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof zt=="string")return{motionName:"".concat(Hr,"-open-").concat(zt)};if(Dr)return{motionName:Dr};var Lt=fn[un];return Lt||(ir?null:fn.other)}var Rn=function(Dt){Object(h.a)(un,Dt);var jr=Object(p.a)(un);function un(Hr){var Wt;Object(l.a)(this,un),Wt=jr.call(this,Hr),Wt.onSelect=function(zt){var Dr=Object(K.a)(Wt),ir=Dr.props;if(ir.selectable){var Lt=Wt.store.getState(),Qt=Lt.selectedKeys,It=zt.key;ir.multiple?Qt=Qt.concat([It]):Qt=[It],"selectedKeys"in ir||Wt.store.setState({selectedKeys:Qt}),ir.onSelect(Object(o.a)(Object(o.a)({},zt),{},{selectedKeys:Qt}))}},Wt.onClick=function(zt){var Dr=Wt.getRealMenuMode(),ir=Object(K.a)(Wt),Lt=ir.store,Qt=ir.props.onOpenChange;Dr!=="inline"&&!("openKeys"in Wt.props)&&(Lt.setState({openKeys:[]}),Qt([])),Wt.props.onClick(zt)},Wt.onKeyDown=function(zt,Dr){Wt.innerMenu.getWrappedInstance().onKeyDown(zt,Dr)},Wt.onOpenChange=function(zt){var Dr=Object(K.a)(Wt),ir=Dr.props,Lt=Wt.store.getState().openKeys.concat(),Qt=!1,It=function(Cr){var Er=!1;if(Cr.open)Er=Lt.indexOf(Cr.key)===-1,Er&&Lt.push(Cr.key);else{var Kr=Lt.indexOf(Cr.key);Er=Kr!==-1,Er&&Lt.splice(Kr,1)}Qt=Qt||Er};Array.isArray(zt)?zt.forEach(It):It(zt),Qt&&("openKeys"in Wt.props||Wt.store.setState({openKeys:Lt}),ir.onOpenChange(Lt))},Wt.onDeselect=function(zt){var Dr=Object(K.a)(Wt),ir=Dr.props;if(ir.selectable){var Lt=Wt.store.getState().selectedKeys.concat(),Qt=zt.key,It=Lt.indexOf(Qt);It!==-1&&Lt.splice(It,1),"selectedKeys"in ir||Wt.store.setState({selectedKeys:Lt}),ir.onDeselect(Object(o.a)(Object(o.a)({},zt),{},{selectedKeys:Lt}))}},Wt.onMouseEnter=function(zt){Wt.restoreModeVerticalFromInline();var Dr=Wt.props.onMouseEnter;Dr&&Dr(zt)},Wt.onTransitionEnd=function(zt){var Dr=zt.propertyName==="width"&&zt.target===zt.currentTarget,ir=zt.target.className,Lt=Object.prototype.toString.call(ir)==="[object SVGAnimatedString]"?ir.animVal:ir,Qt=zt.propertyName==="font-size"&&Lt.indexOf("anticon")>=0;(Dr||Qt)&&Wt.restoreModeVerticalFromInline()},Wt.setInnerMenu=function(zt){Wt.innerMenu=zt},Wt.isRootMenu=!0;var wr=Hr.defaultSelectedKeys,fn=Hr.defaultOpenKeys;return"selectedKeys"in Hr&&(wr=Hr.selectedKeys||[]),"openKeys"in Hr&&(fn=Hr.openKeys||[]),Wt.store=Object(j.c)({selectedKeys:wr,openKeys:fn,activeKey:{"0-menu-":ft(Hr,Hr.activeKey)}}),Wt.state={switchingModeFromInline:!1,prevProps:Hr,inlineOpenKeys:[],store:Wt.store},Wt}return Object(u.a)(un,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Wt){var wr=this.props,fn=wr.siderCollapsed,zt=wr.inlineCollapsed,Dr=wr.onOpenChange;(!Wt.inlineCollapsed&&zt||!Wt.siderCollapsed&&fn)&&Dr([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Wt=this.props.collapsedWidth,wr=this.store,fn=this.prevOpenKeys,zt=this.getInlineCollapsed()&&(Wt===0||Wt==="0"||Wt==="0px");zt?(this.prevOpenKeys=wr.getState().openKeys.concat(),this.store.setState({openKeys:[]})):fn&&(this.store.setState({openKeys:fn}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Wt=this.props.mode,wr=this.state.switchingModeFromInline,fn=this.getInlineCollapsed();return wr&&fn?"inline":fn?"vertical":Wt}},{key:"getInlineCollapsed",value:function(){var Wt=this.props,wr=Wt.inlineCollapsed,fn=Wt.siderCollapsed;return fn!==void 0?fn:wr}},{key:"restoreModeVerticalFromInline",value:function(){var Wt=this.state.switchingModeFromInline;Wt&&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 Wt=Object(o.a)({},Object(V.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),wr=this.getRealMenuMode();return Wt.className+=" ".concat(Wt.prefixCls,"-root"),Wt.direction==="rtl"&&(Wt.className+=" ".concat(Wt.prefixCls,"-rtl")),Wt=Object(o.a)(Object(o.a)({},Wt),{},{mode:wr,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:wi(this.props,this.state,wr)}),delete Wt.openAnimation,delete Wt.openTransitionName,S.createElement(j.a,{store:this.store},S.createElement(Un,Object(F.a)({},Wt,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Wt,wr){var fn=wr.prevProps,zt=wr.store,Dr=zt.getState(),ir={},Lt={prevProps:Wt};return fn.mode==="inline"&&Wt.mode!=="inline"&&(Lt.switchingModeFromInline=!0),"openKeys"in Wt?ir.openKeys=Wt.openKeys||[]:((Wt.inlineCollapsed&&!fn.inlineCollapsed||Wt.siderCollapsed&&!fn.siderCollapsed)&&(Lt.switchingModeFromInline=!0,Lt.inlineOpenKeys=Dr.openKeys,ir.openKeys=[]),(!Wt.inlineCollapsed&&fn.inlineCollapsed||!Wt.siderCollapsed&&fn.siderCollapsed)&&(ir.openKeys=wr.inlineOpenKeys,Lt.inlineOpenKeys=[])),Object.keys(ir).length&&zt.setState(ir),Lt}}]),un}(S.Component);Rn.defaultProps={selectable:!0,onClick:oe,onSelect:oe,onOpenChange:oe,onDeselect:oe,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:S.createElement("span",null,"\xB7\xB7\xB7")};var kn=Rn,Vn=function(Dt){Object(h.a)(un,Dt);var jr=Object(p.a)(un);function un(){var Hr;return Object(l.a)(this,un),Hr=jr.apply(this,arguments),Hr.onKeyDown=function(Wt){var wr=Wt.keyCode;return wr===L.a.ENTER?(Hr.onClick(Wt),!0):void 0},Hr.onMouseLeave=function(Wt){var wr=Hr.props,fn=wr.eventKey,zt=wr.onItemHover,Dr=wr.onMouseLeave;zt({key:fn,hover:!1}),Dr({key:fn,domEvent:Wt})},Hr.onMouseEnter=function(Wt){var wr=Hr.props,fn=wr.eventKey,zt=wr.onItemHover,Dr=wr.onMouseEnter;zt({key:fn,hover:!0}),Dr({key:fn,domEvent:Wt})},Hr.onClick=function(Wt){var wr=Hr.props,fn=wr.eventKey,zt=wr.multiple,Dr=wr.onClick,ir=wr.onSelect,Lt=wr.onDeselect,Qt=wr.isSelected,It={key:fn,keyPath:[fn],item:Object(K.a)(Hr),domEvent:Wt};Dr(It),zt?Qt?Lt(It):ir(It):Qt||ir(It)},Hr.saveNode=function(Wt){Hr.node=Wt},Hr}return Object(u.a)(un,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Wt=this.props;Wt.onDestroy&&Wt.onDestroy(Wt.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 Wt,wr=Object(o.a)({},this.props),fn=a()(this.getPrefixCls(),wr.className,(Wt={},Object(m.a)(Wt,this.getActiveClassName(),!wr.disabled&&wr.active),Object(m.a)(Wt,this.getSelectedClassName(),wr.isSelected),Object(m.a)(Wt,this.getDisabledClassName(),wr.disabled),Wt)),zt=Object(o.a)(Object(o.a)({},wr.attribute),{},{title:typeof wr.title=="string"?wr.title:void 0,className:fn,role:wr.role||"menuitem","aria-disabled":wr.disabled});wr.role==="option"?zt=Object(o.a)(Object(o.a)({},zt),{},{role:"option","aria-selected":wr.isSelected}):(wr.role===null||wr.role==="none")&&(zt.role="none");var Dr={onClick:wr.disabled?null:this.onClick,onMouseLeave:wr.disabled?null:this.onMouseLeave,onMouseEnter:wr.disabled?null:this.onMouseEnter},ir=Object(o.a)({},wr.style);wr.mode==="inline"&&(wr.direction==="rtl"?ir.paddingRight=wr.inlineIndent*wr.level:ir.paddingLeft=wr.inlineIndent*wr.level),et.forEach(function(Qt){return delete wr[Qt]}),delete wr.direction;var Lt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Lt=S.createElement(this.props.itemIcon,this.props)),S.createElement("li",Object(F.a)({},Object(V.a)(wr,["onClick","onMouseEnter","onMouseLeave","onSelect"]),zt,Dr,{style:ir,ref:this.saveNode}),wr.children,Lt)}}]),un}(S.Component);Vn.isMenuItem=!0,Vn.defaultProps={onSelect:oe,onMouseEnter:oe,onMouseLeave:oe,manualRef:oe};var Gt=Object(j.b)(function(Dt,jr){var un=Dt.activeKey,Hr=Dt.selectedKeys,Wt=jr.eventKey,wr=jr.subMenuKey;return{active:un[wr]===Wt,isSelected:Array.isArray(Hr)?Hr.indexOf(Wt)!==-1:Hr===Wt}})(Vn),st=Gt,ue=function(Dt){Object(h.a)(un,Dt);var jr=Object(p.a)(un);function un(){var Hr;return Object(l.a)(this,un),Hr=jr.apply(this,arguments),Hr.renderInnerMenuItem=function(Wt){var wr=Hr.props,fn=wr.renderMenuItem,zt=wr.index;return fn(Wt,zt,Hr.props.subMenuKey)},Hr}return Object(u.a)(un,[{key:"render",value:function(){var Wt=Object(F.a)({},this.props),wr=Wt.className,fn=wr===void 0?"":wr,zt=Wt.rootPrefixCls,Dr="".concat(zt,"-item-group-title"),ir="".concat(zt,"-item-group-list"),Lt=Wt.title,Qt=Wt.children;return et.forEach(function(It){return delete Wt[It]}),delete Wt.direction,S.createElement("li",Object(F.a)({},Wt,{onClick:function(or){return or.stopPropagation()},className:"".concat(fn," ").concat(zt,"-item-group")}),S.createElement("div",{className:Dr,title:typeof Lt=="string"?Lt:void 0},Lt),S.createElement("ul",{className:ir},S.Children.map(Qt,this.renderInnerMenuItem)))}}]),un}(S.Component);ue.isMenuItemGroup=!0,ue.defaultProps={disabled:!0};var Ee=ue,je=function(jr){var un=jr.className,Hr=jr.rootPrefixCls,Wt=jr.style;return S.createElement("li",{className:"".concat(un," ").concat(Hr,"-item-divider"),style:Wt})};je.defaultProps={disabled:!0,className:"",style:{}};var Ve=je,$e=kn,wt={adjustX:1,adjustY:1},qt=[0,0],Mr={topLeft:{points:["bl","tl"],overflow:wt,offset:[0,-4],targetOffset:qt},topCenter:{points:["bc","tc"],overflow:wt,offset:[0,-4],targetOffset:qt},topRight:{points:["br","tr"],overflow:wt,offset:[0,-4],targetOffset:qt},bottomLeft:{points:["tl","bl"],overflow:wt,offset:[0,4],targetOffset:qt},bottomCenter:{points:["tc","bc"],overflow:wt,offset:[0,4],targetOffset:qt},bottomRight:{points:["tr","br"],overflow:wt,offset:[0,4],targetOffset:qt}},an=Mr;function _t(Dt,jr){var un=Dt.arrow,Hr=un===void 0?!1:un,Wt=Dt.prefixCls,wr=Wt===void 0?"rc-dropdown":Wt,fn=Dt.transitionName,zt=Dt.animation,Dr=Dt.align,ir=Dt.placement,Lt=ir===void 0?"bottomLeft":ir,Qt=Dt.placements,It=Qt===void 0?an:Qt,or=Dt.getPopupContainer,Cr=Dt.showAction,Er=Dt.hideAction,Kr=Dt.overlayClassName,jn=Dt.overlayStyle,Nn=Dt.visible,ei=Dt.trigger,Zr=ei===void 0?["hover"]:ei,br=Object(c.a)(Dt,["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger"]),dn=S.useState(),Ln=Object(f.a)(dn,2),Fn=Ln[0],zn=Ln[1],ui="visible"in Dt?Nn:Fn,ii=S.useRef(null);S.useImperativeHandle(jr,function(){return ii.current});var qn=function(){var ji=Dt.overlay,dr;return typeof ji=="function"?dr=ji():dr=ji,dr},Li=function(ji){var dr=Dt.onOverlayClick,sr=qn().props;zn(!1),dr&&dr(ji),sr.onClick&&sr.onClick(ji)},zi=function(ji){var dr=Dt.onVisibleChange;zn(ji),typeof dr=="function"&&dr(ji)},Ri=function(){var ji=qn(),dr={prefixCls:"".concat(wr,"-menu"),onClick:Li};return typeof ji.type=="string"&&delete dr.prefixCls,S.createElement(S.Fragment,null,Hr&&S.createElement("div",{className:"".concat(wr,"-arrow")}),S.cloneElement(ji,dr))},ga=function(){var ji=Dt.overlay;return typeof ji=="function"?Ri:Ri()},oi=function(){var ji=Dt.minOverlayWidthMatchTrigger,dr=Dt.alignPoint;return"minOverlayWidthMatchTrigger"in Dt?ji:!dr},hn=function(){var ji=Dt.openClassName;return ji!==void 0?ji:"".concat(wr,"-open")},Ei=function(){var ji=Dt.children,dr=ji.props?ji.props:{},sr=a()(dr.className,hn());return Fn&&ji?S.cloneElement(ji,{className:sr}):ji},Hi=Er;return!Hi&&Zr.indexOf("contextMenu")!==-1&&(Hi=["click"]),S.createElement(Ot.a,Object.assign({},br,{prefixCls:wr,ref:ii,popupClassName:a()(Kr,Object(m.a)({},"".concat(wr,"-show-arrow"),Hr)),popupStyle:jn,builtinPlacements:It,action:Zr,showAction:Cr,hideAction:Hi||[],popupPlacement:Lt,popupAlign:Dr,popupTransitionName:fn,popupAnimation:zt,popupVisible:ui,stretch:oi()?"minWidth":"",popup:ga(),onPopupVisibleChange:zi,getPopupContainer:or}),Ei())}var at=S.forwardRef(_t),bt=at;function kt(Dt,jr){var un=Dt.prefixCls,Hr=Dt.editable,Wt=Dt.locale,wr=Dt.style;return!Hr||Hr.showAdd===!1?null:S.createElement("button",{ref:jr,type:"button",className:"".concat(un,"-nav-add"),style:wr,"aria-label":(Wt==null?void 0:Wt.addAriaLabel)||"Add tab",onClick:function(zt){Hr.onEdit("add",{event:zt})}},Hr.addIcon||"+")}var Pt=S.forwardRef(kt);function Et(Dt,jr){var un=Dt.prefixCls,Hr=Dt.id,Wt=Dt.tabs,wr=Dt.locale,fn=Dt.mobile,zt=Dt.moreIcon,Dr=zt===void 0?"More":zt,ir=Dt.moreTransitionName,Lt=Dt.style,Qt=Dt.className,It=Dt.editable,or=Dt.tabBarGutter,Cr=Dt.rtl,Er=Dt.onTabClick,Kr=Object(S.useState)(!1),jn=Object(f.a)(Kr,2),Nn=jn[0],ei=jn[1],Zr=Object(S.useState)(null),br=Object(f.a)(Zr,2),dn=br[0],Ln=br[1],Fn="".concat(Hr,"-more-popup"),zn="".concat(un,"-dropdown"),ui=dn!==null?"".concat(Fn,"-").concat(dn):null,ii=wr==null?void 0:wr.dropdownAriaLabel,qn=S.createElement($e,{onClick:function(Ei){var Hi=Ei.key,ki=Ei.domEvent;Er(Hi,ki),ei(!1)},id:Fn,tabIndex:-1,role:"listbox","aria-activedescendant":ui,selectedKeys:[dn],"aria-label":ii!==void 0?ii:"expanded dropdown"},Wt.map(function(hn){return S.createElement(st,{key:hn.key,id:"".concat(Fn,"-").concat(hn.key),role:"option","aria-controls":Hr&&"".concat(Hr,"-panel-").concat(hn.key),disabled:hn.disabled},hn.tab)}));function Li(hn){for(var Ei=Wt.filter(function(sr){return!sr.disabled}),Hi=Ei.findIndex(function(sr){return sr.key===dn})||0,ki=Ei.length,ji=0;ji<ki;ji+=1){Hi=(Hi+hn+ki)%ki;var dr=Ei[Hi];if(!dr.disabled){Ln(dr.key);return}}}function zi(hn){var Ei=hn.which;if(!Nn){[L.a.DOWN,L.a.SPACE,L.a.ENTER].includes(Ei)&&(ei(!0),hn.preventDefault());return}switch(Ei){case L.a.UP:Li(-1),hn.preventDefault();break;case L.a.DOWN:Li(1),hn.preventDefault();break;case L.a.ESC:ei(!1);break;case L.a.SPACE:case L.a.ENTER:dn!==null&&Er(dn,hn);break}}Object(S.useEffect)(function(){var hn=document.getElementById(ui);hn&&hn.scrollIntoView&&hn.scrollIntoView(!1)},[dn]),Object(S.useEffect)(function(){Nn||Ln(null)},[Nn]);var Ri=Object(m.a)({},Cr?"marginLeft":"marginRight",or);Wt.length||(Ri.visibility="hidden",Ri.order=1);var ga=a()(Object(m.a)({},"".concat(zn,"-rtl"),Cr)),oi=fn?null:S.createElement(bt,{prefixCls:zn,overlay:qn,trigger:["hover"],visible:Nn,transitionName:ir,onVisibleChange:ei,overlayClassName:ga,mouseEnterDelay:.1,mouseLeaveDelay:.1},S.createElement("button",{type:"button",className:"".concat(un,"-nav-more"),style:Ri,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Fn,id:"".concat(Hr,"-more"),"aria-expanded":Nn,onKeyDown:zi},Dr));return S.createElement("div",{className:a()("".concat(un,"-nav-operations"),Qt),style:Lt,ref:jr},oi,S.createElement(Pt,{prefixCls:un,locale:wr,editable:It}))}var Ht=S.forwardRef(Et),ot=Object(S.createContext)(null),Mt=.1,xr=.01,ur=20,gr=Math.pow(.995,ur);function Qr(){var Dt=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(Dt)||/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(Dt.substr(0,4)))}function ln(Dt,jr){var un=Object(S.useState)(),Hr=Object(f.a)(un,2),Wt=Hr[0],wr=Hr[1],fn=Object(S.useState)(0),zt=Object(f.a)(fn,2),Dr=zt[0],ir=zt[1],Lt=Object(S.useState)(0),Qt=Object(f.a)(Lt,2),It=Qt[0],or=Qt[1],Cr=Object(S.useState)(),Er=Object(f.a)(Cr,2),Kr=Er[0],jn=Er[1],Nn=Object(S.useRef)();function ei(ii){var qn=ii.touches[0],Li=qn.screenX,zi=qn.screenY;wr({x:Li,y:zi}),window.clearInterval(Nn.current)}function Zr(ii){if(!Wt)return;ii.preventDefault();var qn=ii.touches[0],Li=qn.screenX,zi=qn.screenY;wr({x:Li,y:zi});var Ri=Li-Wt.x,ga=zi-Wt.y;jr(Ri,ga);var oi=Date.now();ir(oi),or(oi-Dr),jn({x:Ri,y:ga})}function br(){if(!Wt)return;if(wr(null),jn(null),Kr){var ii=Kr.x/It,qn=Kr.y/It,Li=Math.abs(ii),zi=Math.abs(qn);if(Math.max(Li,zi)<Mt)return;var Ri=ii,ga=qn;Nn.current=window.setInterval(function(){if(Math.abs(Ri)<xr&&Math.abs(ga)<xr){window.clearInterval(Nn.current);return}Ri*=gr,ga*=gr,jr(Ri*ur,ga*ur)},ur)}}var dn=Object(S.useRef)(0),Ln=Object(S.useRef)(!1),Fn=Object(S.useRef)();function zn(ii){var qn=ii.deltaX,Li=ii.deltaY,zi=0,Ri=Math.abs(qn),ga=Math.abs(Li);Ri===ga?zi=Fn.current==="x"?qn:Li:Ri>ga?(zi=qn,Fn.current="x"):(zi=Li,Fn.current="y");var oi=Date.now();oi-dn.current>100&&(Ln.current=!1),(jr(-zi,-zi)||Ln.current)&&(ii.preventDefault(),Ln.current=!0),dn.current=oi}var ui=Object(S.useRef)(null);ui.current={onTouchStart:ei,onTouchMove:Zr,onTouchEnd:br,onWheel:zn},S.useEffect(function(){function ii(Ri){ui.current.onTouchStart(Ri)}function qn(Ri){ui.current.onTouchMove(Ri)}function Li(Ri){ui.current.onTouchEnd(Ri)}function zi(Ri){ui.current.onWheel(Ri)}return document.addEventListener("touchmove",qn,{passive:!1}),document.addEventListener("touchend",Li,{passive:!1}),Dt.current.addEventListener("touchstart",ii,{passive:!1}),Dt.current.addEventListener("wheel",zi),function(){document.removeEventListener("touchmove",qn),document.removeEventListener("touchend",Li)}},[])}function _n(){var Dt=Object(S.useRef)(new Map);function jr(Hr){return Dt.current.has(Hr)||Dt.current.set(Hr,S.createRef()),Dt.current.get(Hr)}function un(Hr){Dt.current.delete(Hr)}return[jr,un]}function Mn(Dt,jr){var un=S.useRef(Dt),Hr=S.useState({}),Wt=Object(f.a)(Hr,2),wr=Wt[1];function fn(zt){var Dr=typeof zt=="function"?zt(un.current):zt;Dr!==un.current&&jr(Dr,un.current),un.current=Dr,wr({})}return[un.current,fn]}var li=function(jr){var un=jr.position,Hr=jr.prefixCls,Wt=jr.extra;if(!Wt)return null;var wr,fn=Wt;return un==="right"&&(wr=fn.right||!fn.left&&fn||null),un==="left"&&(wr=fn.left||null),wr?S.createElement("div",{className:"".concat(Hr,"-extra-content")},wr):null};function ai(Dt,jr){var un,Hr=S.useContext(ot),Wt=Hr.prefixCls,wr=Hr.tabs,fn=Dt.className,zt=Dt.style,Dr=Dt.id,ir=Dt.animated,Lt=Dt.activeKey,Qt=Dt.rtl,It=Dt.extra,or=Dt.editable,Cr=Dt.locale,Er=Dt.tabPosition,Kr=Dt.tabBarGutter,jn=Dt.children,Nn=Dt.onTabClick,ei=Dt.onTabScroll,Zr=Object(S.useRef)(),br=Object(S.useRef)(),dn=Object(S.useRef)(),Ln=Object(S.useRef)(),Fn=_n(),zn=Object(f.a)(Fn,2),ui=zn[0],ii=zn[1],qn=Er==="top"||Er==="bottom",Li=Mn(0,function(yr,Cn){qn&&ei&&ei({direction:yr>Cn?"left":"right"})}),zi=Object(f.a)(Li,2),Ri=zi[0],ga=zi[1],oi=Mn(0,function(yr,Cn){!qn&&ei&&ei({direction:yr>Cn?"top":"bottom"})}),hn=Object(f.a)(oi,2),Ei=hn[0],Hi=hn[1],ki=Object(S.useState)(0),ji=Object(f.a)(ki,2),dr=ji[0],sr=ji[1],cn=Object(S.useState)(0),Zt=Object(f.a)(cn,2),Ar=Zt[0],Nr=Zt[1],tn=Object(S.useState)(0),pn=Object(f.a)(tn,2),St=pn[0],cr=pn[1],fr=Object(S.useState)(0),Br=Object(f.a)(fr,2),$r=Br[0],wn=Br[1],rn=Object(S.useState)(null),On=Object(f.a)(rn,2),In=On[0],Gn=On[1],fi=Object(S.useState)(null),Yn=Object(f.a)(fi,2),gi=Yn[0],vi=Yn[1],Di=Object(S.useState)(0),Mi=Object(f.a)(Di,2),xi=Mi[0],bi=Mi[1],Ci=Object(S.useState)(0),$i=Object(f.a)(Ci,2),qi=$i[0],Ti=$i[1],ia=_(new Map),na=Object(f.a)(ia,2),Ui=na[0],Ki=na[1],ra=B(wr,Ui,dr),ea="".concat(Wt,"-nav-operations-hidden"),va=0,sa=0;qn?Qt?(va=0,sa=Math.max(0,dr-In)):(va=Math.min(0,In-dr),sa=0):(va=Math.min(0,gi-Ar),sa=0);function Pa(yr){return yr<va?[va,!1]:yr>sa?[sa,!1]:[yr,!0]}var ka=Object(S.useRef)(),Ia=Object(S.useState)(),Ea=Object(f.a)(Ia,2),So=Ea[0],Ga=Ea[1];function Va(){Ga(Date.now())}function Ra(){window.clearTimeout(ka.current)}ln(Zr,function(yr,Cn){var Pr=!1;function xn(Qn,$n){Qn(function(Kn){var si=Pa(Kn+$n),Xn=Object(f.a)(si,2),ti=Xn[0],di=Xn[1];return Pr=di,ti})}if(qn){if(In>=dr)return Pr;xn(ga,yr)}else{if(gi>=Ar)return Pr;xn(Hi,Cn)}return Ra(),Va(),Pr}),Object(S.useEffect)(function(){return Ra(),So&&(ka.current=window.setTimeout(function(){Ga(0)},100)),Ra},[So]);function po(){var yr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lt,Cn=ra.get(yr);if(!Cn)return;if(qn){var Pr=Ri;Qt?Cn.right<Ri?Pr=Cn.right:Cn.right+Cn.width>Ri+In&&(Pr=Cn.right+Cn.width-In):Cn.left<-Ri?Pr=-Cn.left:Cn.left+Cn.width>-Ri+In&&(Pr=-(Cn.left+Cn.width-In)),Hi(0),ga(Pa(Pr)[0])}else{var xn=Ei;Cn.top<-Ei?xn=-Cn.top:Cn.top+Cn.height>-Ei+gi&&(xn=-(Cn.top+Cn.height-gi)),ga(0),Hi(Pa(xn)[0])}}var mo=H(ra,{width:In,height:gi,left:Ri,top:Ei},{width:St,height:$r},{width:xi,height:qi},Object(o.a)(Object(o.a)({},Dt),{},{tabs:wr})),Aa=Object(f.a)(mo,2),Io=Aa[0],go=Aa[1],Qa=wr.map(function(yr){var Cn=yr.key;return S.createElement(N,{id:Dr,prefixCls:Wt,key:Cn,rtl:Qt,tab:yr,closable:yr.closable,editable:or,active:Cn===Lt,tabPosition:Er,tabBarGutter:Kr,renderWrapper:jn,removeAriaLabel:Cr==null?void 0:Cr.removeAriaLabel,ref:ui(Cn),onClick:function(xn){Nn(Cn,xn)},onRemove:function(){ii(Cn)},onFocus:function(){po(Cn),Va(),Qt||(Zr.current.scrollLeft=0),Zr.current.scrollTop=0}})}),wo=I(function(){var yr,Cn,Pr,xn,Qn,$n,Kn,si,Xn,ti=((yr=Zr.current)===null||yr===void 0?void 0:yr.offsetWidth)||0,di=((Cn=Zr.current)===null||Cn===void 0?void 0:Cn.offsetHeight)||0,Bi=((Pr=Ln.current)===null||Pr===void 0?void 0:Pr.offsetWidth)||0,yi=((xn=Ln.current)===null||xn===void 0?void 0:xn.offsetHeight)||0,Xi=((Qn=dn.current)===null||Qn===void 0?void 0:Qn.offsetWidth)||0,ba=(($n=dn.current)===null||$n===void 0?void 0:$n.offsetHeight)||0;Gn(ti),vi(di),bi(Bi),Ti(yi);var ta=(((Kn=br.current)===null||Kn===void 0?void 0:Kn.offsetWidth)||0)-Bi,Qi=(((si=br.current)===null||si===void 0?void 0:si.offsetHeight)||0)-yi;sr(ta),Nr(Qi);var aa=(Xn=dn.current)===null||Xn===void 0?void 0:Xn.className.includes(ea);cr(ta-(aa?0:Xi)),wn(Qi-(aa?0:ba)),Ki(function(){var fa=new Map;return wr.forEach(function(xo){var Za=xo.key,Wi=ui(Za).current;Wi&&fa.set(Za,{width:Wi.offsetWidth,height:Wi.offsetHeight,left:Wi.offsetLeft,top:Wi.offsetTop})}),fa})}),pa=wr.slice(0,Io),to=wr.slice(go+1),ao=[].concat(Object(s.a)(pa),Object(s.a)(to)),Bo=Object(S.useState)(),Ja=Object(f.a)(Bo,2),_o=Ja[0],Ao=Ja[1],za=ra.get(Lt),ja=Object(S.useRef)();function da(){i.a.cancel(ja.current)}Object(S.useEffect)(function(){var yr={};return za&&(qn?(Qt?yr.right=za.right:yr.left=za.left,yr.width=za.width):(yr.top=za.top,yr.height=za.height)),da(),ja.current=i()(function(){Ao(yr)}),da},[za,qn,Qt]),Object(S.useEffect)(function(){po()},[Lt,za,ra,qn]),Object(S.useEffect)(function(){wo()},[Qt,Kr,Lt,wr.map(function(yr){return yr.key}).join("_")]);var rt=!!ao.length,ar="".concat(Wt,"-nav-wrap"),Fr,Ir,En,zr;return qn?Qt?(Ir=Ri>0,Fr=Ri+In<dr):(Fr=Ri<0,Ir=-Ri+In<dr):(En=Ei<0,zr=-Ei+gi<Ar),S.createElement("div",{ref:jr,role:"tablist",className:a()("".concat(Wt,"-nav"),fn),style:zt,onKeyDown:function(){Va()}},S.createElement(li,{position:"left",extra:It,prefixCls:Wt}),S.createElement(b,{onResize:wo},S.createElement("div",{className:a()(ar,(un={},Object(m.a)(un,"".concat(ar,"-ping-left"),Fr),Object(m.a)(un,"".concat(ar,"-ping-right"),Ir),Object(m.a)(un,"".concat(ar,"-ping-top"),En),Object(m.a)(un,"".concat(ar,"-ping-bottom"),zr),un)),ref:Zr},S.createElement(b,{onResize:wo},S.createElement("div",{ref:br,className:"".concat(Wt,"-nav-list"),style:{transform:"translate(".concat(Ri,"px, ").concat(Ei,"px)"),transition:So?"none":void 0}},Qa,S.createElement(Pt,{ref:Ln,prefixCls:Wt,locale:Cr,editable:or,style:{visibility:rt?"hidden":null}}),S.createElement("div",{className:a()("".concat(Wt,"-ink-bar"),Object(m.a)({},"".concat(Wt,"-ink-bar-animated"),ir.inkBar)),style:_o}))))),S.createElement(Ht,Object.assign({},Dt,{ref:dn,prefixCls:Wt,tabs:ao,className:!rt&&ea})),S.createElement(li,{position:"right",extra:It,prefixCls:Wt}))}var pi=S.forwardRef(ai);function Oi(Dt){var jr=Dt.id,un=Dt.activeKey,Hr=Dt.animated,Wt=Dt.tabPosition,wr=Dt.rtl,fn=Dt.destroyInactiveTabPane,zt=S.useContext(ot),Dr=zt.prefixCls,ir=zt.tabs,Lt=Hr.tabPane,Qt=ir.findIndex(function(It){return It.key===un});return S.createElement("div",{className:a()("".concat(Dr,"-content-holder"))},S.createElement("div",{className:a()("".concat(Dr,"-content"),"".concat(Dr,"-content-").concat(Wt),Object(m.a)({},"".concat(Dr,"-content-animated"),Lt)),style:Qt&&Lt?Object(m.a)({},wr?"marginRight":"marginLeft","-".concat(Qt,"00%")):null},ir.map(function(It){return S.cloneElement(It.node,{key:It.key,prefixCls:Dr,tabKey:It.key,id:jr,animated:Lt,active:It.key===un,destroyInactiveTabPane:fn})})))}function Ze(Dt){var jr=Dt.prefixCls,un=Dt.forceRender,Hr=Dt.className,Wt=Dt.style,wr=Dt.id,fn=Dt.active,zt=Dt.animated,Dr=Dt.destroyInactiveTabPane,ir=Dt.tabKey,Lt=Dt.children,Qt=S.useState(un),It=Object(f.a)(Qt,2),or=It[0],Cr=It[1];S.useEffect(function(){fn?Cr(!0):Dr&&Cr(!1)},[fn,Dr]);var Er={};return fn||(zt?(Er.visibility="hidden",Er.height=0,Er.overflowY="hidden"):Er.display="none"),S.createElement("div",{id:wr&&"".concat(wr,"-panel-").concat(ir),role:"tabpanel",tabIndex:fn?0:-1,"aria-labelledby":wr&&"".concat(wr,"-tab-").concat(ir),"aria-hidden":!fn,style:Object(o.a)(Object(o.a)({},Er),Wt),className:a()("".concat(jr,"-tabpane"),fn&&"".concat(jr,"-tabpane-active"),Hr)},(fn||or||un)&&Lt)}var be=0;function Ne(Dt){return Object(n.a)(Dt).map(function(jr){if(S.isValidElement(jr)){var un=jr.key!==void 0?String(jr.key):void 0;return Object(o.a)(Object(o.a)({key:un},jr.props),{},{node:jr})}return null}).filter(function(jr){return jr})}function Ue(Dt,jr){var un,Hr=Dt.id,Wt=Dt.prefixCls,wr=Wt===void 0?"rc-tabs":Wt,fn=Dt.className,zt=Dt.children,Dr=Dt.direction,ir=Dt.activeKey,Lt=Dt.defaultActiveKey,Qt=Dt.editable,It=Dt.animated,or=Dt.tabPosition,Cr=or===void 0?"top":or,Er=Dt.tabBarGutter,Kr=Dt.tabBarStyle,jn=Dt.tabBarExtraContent,Nn=Dt.locale,ei=Dt.moreIcon,Zr=Dt.moreTransitionName,br=Dt.destroyInactiveTabPane,dn=Dt.renderTabBar,Ln=Dt.onChange,Fn=Dt.onTabClick,zn=Dt.onTabScroll,ui=Object(c.a)(Dt,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),ii=Ne(zt),qn=Dr==="rtl",Li;It===!1?Li={inkBar:!1,tabPane:!1}:Li=Object(o.a)({inkBar:!0,tabPane:!1},It!==!0?It:null);var zi=Object(S.useState)(!1),Ri=Object(f.a)(zi,2),ga=Ri[0],oi=Ri[1];Object(S.useEffect)(function(){oi(Qr())},[]);var hn=Object(e.a)(function(){var $r;return($r=ii[0])===null||$r===void 0?void 0:$r.key},{value:ir,defaultValue:Lt}),Ei=Object(f.a)(hn,2),Hi=Ei[0],ki=Ei[1],ji=Object(S.useState)(function(){return ii.findIndex(function($r){return $r.key===Hi})}),dr=Object(f.a)(ji,2),sr=dr[0],cn=dr[1];Object(S.useEffect)(function(){var $r=ii.findIndex(function(rn){return rn.key===Hi});if($r===-1){var wn;$r=Math.max(0,Math.min(sr,ii.length-1)),ki((wn=ii[$r])===null||wn===void 0?void 0:wn.key)}cn($r)},[ii.map(function($r){return $r.key}).join("_"),Hi,sr]);var Zt=Object(e.a)(null,{value:Hr}),Ar=Object(f.a)(Zt,2),Nr=Ar[0],tn=Ar[1],pn=Cr;ga&&!["left","right"].includes(Cr)&&(pn="top"),Object(S.useEffect)(function(){Hr||(tn("rc-tabs-".concat(be)),be+=1)},[]);function St($r,wn){Fn==null||Fn($r,wn),ki($r),Ln==null||Ln($r)}var cr={id:Nr,activeKey:Hi,animated:Li,tabPosition:pn,rtl:qn,mobile:ga},fr,Br=Object(o.a)(Object(o.a)({},cr),{},{editable:Qt,locale:Nn,moreIcon:ei,moreTransitionName:Zr,tabBarGutter:Er,onTabClick:St,onTabScroll:zn,extra:jn,style:Kr,panes:zt});return dn?fr=dn(Br,pi):fr=S.createElement(pi,Object.assign({},Br)),S.createElement(ot.Provider,{value:{tabs:ii,prefixCls:wr}},S.createElement("div",Object.assign({ref:jr,id:Hr,className:a()(wr,"".concat(wr,"-").concat(pn),(un={},Object(m.a)(un,"".concat(wr,"-mobile"),ga),Object(m.a)(un,"".concat(wr,"-editable"),Qt),Object(m.a)(un,"".concat(wr,"-rtl"),qn),un),fn)},ui),fr,S.createElement(Oi,Object.assign({destroyInactiveTabPane:br},cr,{animated:Li}))))}var Qe=S.forwardRef(Ue);Qe.TabPane=Ze;var Xe=Qe,qe=Xe,yt=d("cCPh"),ht=d.n(yt),Jt=d("fNCr"),kr=d.n(Jt),_r=d("V/uB"),Xr=d.n(_r),Bt=d("uaoM"),gn=d("H84U"),hr=function(Dt,jr){var un={};for(var Hr in Dt)Object.prototype.hasOwnProperty.call(Dt,Hr)&&jr.indexOf(Hr)<0&&(un[Hr]=Dt[Hr]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,Hr=Object.getOwnPropertySymbols(Dt);Wt<Hr.length;Wt++)jr.indexOf(Hr[Wt])<0&&Object.prototype.propertyIsEnumerable.call(Dt,Hr[Wt])&&(un[Hr[Wt]]=Dt[Hr[Wt]]);return un};function vn(Dt){var jr,un=Dt.type,Hr=Dt.className,Wt=Dt.size,wr=Dt.onEdit,fn=Dt.hideAdd,zt=Dt.centered,Dr=Dt.addIcon,ir=hr(Dt,["type","className","size","onEdit","hideAdd","centered","addIcon"]),Lt=ir.prefixCls,Qt=S.useContext(gn.b),It=Qt.getPrefixCls,or=Qt.direction,Cr=It("tabs",Lt),Er;return un==="editable-card"&&(Er={onEdit:function(jn,Nn){var ei=Nn.key,Zr=Nn.event;wr==null||wr(jn==="add"?Zr:ei,jn)},removeIcon:S.createElement(Xr.a,null),addIcon:Dr||S.createElement(kr.a,null),showAdd:fn!==!0}),Object(Bt.a)(!("onPrevClick"in ir)&&!("onNextClick"in ir),"Tabs","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),S.createElement(qe,x()({direction:or},ir,{moreTransitionName:"slide-up",className:a()(Hr,(jr={},v()(jr,"".concat(Cr,"-").concat(Wt),Wt),v()(jr,"".concat(Cr,"-card"),["card","editable-card"].includes(un)),v()(jr,"".concat(Cr,"-editable-card"),un==="editable-card"),v()(jr,"".concat(Cr,"-centered"),zt),jr)),editable:Er,moreIcon:S.createElement(ht.a,null),prefixCls:Cr}))}vn.TabPane=Ze;var en=P.a=vn},ZTW2:function(U,P,d){},ZWlE:function(U,P,d){var O=d("bYtY"),x=d("4NO4");function T(m){v(m),S(m)}function v(m){if(m.parallel)return;var f=!1;O.each(m.series,function(c){c&&c.type==="parallel"&&(f=!0)}),f&&(m.parallel=[{}])}function S(m){var f=x.normalizeToArray(m.parallelAxis);O.each(f,function(c){if(!O.isObject(c))return;var o=c.parallelIndex||0,r=x.normalizeToArray(m.parallel)[o];r&&r.parallelAxisDefault&&O.merge(c,r.parallelAxisDefault,!1)})}U.exports=T},ZX9x:function(U,P,d){"use strict";d.d(P,"a",function(){return _}),d.d(P,"b",function(){return N});var O=d("lSNA"),x=d.n(O),T=d("pVnL"),v=d.n(T),S=d("lwsE"),m=d.n(S),f=d("W8MJ"),c=d.n(f),o=d("7W2i"),r=d.n(o),a=d("LQ03"),n=d.n(a),e=d("q1tI"),s=d("TSYQ"),t=d.n(s),i=d("BGR+"),l=d("T1rO"),u=d.n(l),h=d("fEPi"),p=d.n(h),g=d("DFhj"),A=d.n(g),y=d("PKem"),E=d("H84U"),C=function(B){return!isNaN(parseFloat(B))&&isFinite(B)},w=C,b=function(R,B){var M={};for(var H in R)Object.prototype.hasOwnProperty.call(R,H)&&B.indexOf(H)<0&&(M[H]=R[H]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,H=Object.getOwnPropertySymbols(R);F<H.length;F++)B.indexOf(H[F])<0&&Object.prototype.propertyIsEnumerable.call(R,H[F])&&(M[H[F]]=R[H[F]]);return M},I={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},_=e.createContext({}),L=function(){var R=0;return function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return R+=1,"".concat(B).concat(R)}}(),D=function(R){r()(M,R);var B=n()(M);function M(H){var F;m()(this,M),F=B.call(this,H),F.responsiveHandler=function(V){F.setState({below:V.matches});var z=F.props.onBreakpoint,Y=F.state.collapsed;z&&z(V.matches),Y!==V.matches&&F.setCollapsed(V.matches,"responsive")},F.setCollapsed=function(V,z){"collapsed"in F.props||F.setState({collapsed:V});var Y=F.props.onCollapse;Y&&Y(V,z)},F.toggle=function(){var V=!F.state.collapsed;F.setCollapsed(V,"clickTrigger")},F.renderSider=function(V){var z,Y=V.getPrefixCls,ee=F.props,fe=ee.prefixCls,ie=ee.className,we=ee.theme,Ce=ee.collapsible,Le=ee.reverseArrow,He=ee.trigger,ce=ee.style,Pe=ee.width,Q=ee.collapsedWidth,me=ee.zeroWidthTriggerStyle,Je=ee.children,re=b(ee,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle","children"]),G=F.state,X=G.collapsed,J=G.below,Ae=Y("layout-sider",fe),he=Object(i.default)(re,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),Me=X?Q:Pe,Ie=w(Me)?"".concat(Me,"px"):String(Me),oe=parseFloat(String(Q||0))===0?e.createElement("span",{onClick:F.toggle,className:t()("".concat(Ae,"-zero-width-trigger"),"".concat(Ae,"-zero-width-trigger-").concat(Le?"right":"left")),style:me},He||e.createElement(u.a,null)):null,pe={expanded:Le?e.createElement(p.a,null):e.createElement(A.a,null),collapsed:Le?e.createElement(A.a,null):e.createElement(p.a,null)},Oe=X?"collapsed":"expanded",Ye=pe[Oe],it=He!==null?oe||e.createElement("div",{className:"".concat(Ae,"-trigger"),onClick:F.toggle,style:{width:Ie}},He||Ye):null,et=v()(v()({},ce),{flex:"0 0 ".concat(Ie),maxWidth:Ie,minWidth:Ie,width:Ie}),Te=t()(ie,Ae,"".concat(Ae,"-").concat(we),(z={},x()(z,"".concat(Ae,"-collapsed"),!!X),x()(z,"".concat(Ae,"-has-trigger"),Ce&&He!==null&&!oe),x()(z,"".concat(Ae,"-below"),!!J),x()(z,"".concat(Ae,"-zero-width"),parseFloat(Ie)===0),z));return e.createElement("aside",v()({className:Te},he,{style:et}),e.createElement("div",{className:"".concat(Ae,"-children")},Je),Ce||J&&oe?it:null)},F.uniqueId=L("ant-sider-");var K;typeof window!="undefined"&&(K=window.matchMedia),K&&H.breakpoint&&H.breakpoint in I&&(F.mql=K("(max-width: ".concat(I[H.breakpoint],")")));var j;return"collapsed"in H?j=H.collapsed:j=H.defaultCollapsed,F.state={collapsed:j,below:!1},F}return c()(M,[{key:"componentDidMount",value:function(){var F;this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),(F=this.props)===null||F===void 0||F.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){var F,K;(F=this===null||this===void 0?void 0:this.mql)===null||F===void 0||F.removeListener(this.responsiveHandler),(K=this.props)===null||K===void 0||K.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var F=this.state.collapsed,K=this.props.collapsedWidth;return e.createElement(_.Provider,{value:{siderCollapsed:F,collapsedWidth:K}},e.createElement(E.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(F){return"collapsed"in F?{collapsed:F.collapsed}:null}}]),M}(e.Component);D.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var N=function(R){r()(M,R);var B=n()(M);function M(){return m()(this,M),B.apply(this,arguments)}return c()(M,[{key:"render",value:function(){var F=this;return e.createElement(y.a.Consumer,null,function(K){return e.createElement(D,v()({},K,F.props))})}}]),M}(e.Component)},ZYIC:function(U,P,d){var O=d("zM3Q"),x={seriesType:"lines",plan:O(),reset:function(T){var v=T.coordinateSystem,S=T.get("polyline"),m=T.pipelineContext.large;function f(c,o){var r=[];if(m){var a,n=c.end-c.start;if(S){for(var e=0,s=c.start;s<c.end;s++)e+=T.getLineCoordsCount(s);a=new Float32Array(n+e*2)}else a=new Float32Array(n*4);for(var t=0,i=[],s=c.start;s<c.end;s++){var l=T.getLineCoords(s,r);S&&(a[t++]=l);for(var u=0;u<l;u++)i=v.dataToPoint(r[u],!1,i),a[t++]=i[0],a[t++]=i[1]}o.setLayout("linesPoints",a)}else for(var s=c.start;s<c.end;s++){var h=o.getItemModel(s),l=T.getLineCoords(s,r),p=[];if(S)for(var g=0;g<l;g++)p.push(v.dataToPoint(r[g]));else{p[0]=v.dataToPoint(r[0]),p[1]=v.dataToPoint(r[1]);var A=h.get("lineStyle.curveness");+A&&(p[2]=[(p[0][0]+p[1][0])/2-(p[0][1]-p[1][1])*A,(p[0][1]+p[1][1])/2-(p[1][0]-p[0][0])*A])}o.setItemLayout(s,p)}}return{progress:f}}};U.exports=x},Ze12:function(U,P,d){var O=d("ItGF"),x=d("hOwI"),T=x.buildTransformer,v="___zrEVENTSAVED",S=[];function m(a,n,e,s,t){return f(S,n,s,t,!0)&&f(a,e,S[0],S[1])}function f(a,n,e,s,t){if(n.getBoundingClientRect&&O.domSupported&&!r(n)){var i=n[v]||(n[v]={}),l=c(n,i),u=o(l,i,t);if(u)return u(a,e,s),!0}return!1}function c(a,n){var e=n.markers;if(e)return e;e=n.markers=[];for(var s=["left","right"],t=["top","bottom"],i=0;i<4;i++){var l=document.createElement("div"),u=l.style,h=i%2,p=(i>>1)%2;u.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",s[h]+":0",t[p]+":0",s[1-h]+":auto",t[1-p]+":auto",""].join("!important;"),a.appendChild(l),e.push(l)}return e}function o(a,n,e){for(var s=e?"invTrans":"trans",t=n[s],i=n.srcCoords,l=!0,u=[],h=[],p=0;p<4;p++){var g=a[p].getBoundingClientRect(),A=2*p,y=g.left,E=g.top;u.push(y,E),l=l&&i&&y===i[A]&&E===i[A+1],h.push(a[p].offsetLeft,a[p].offsetTop)}return l&&t?t:(n.srcCoords=u,n[s]=e?T(h,u):T(u,h))}function r(a){return a.nodeName.toUpperCase()==="CANVAS"}P.transformLocalCoord=m,P.transformCoordWithViewport=f,P.isCanvasEl=r},Znkb:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("ProS"),v=d("zTMp"),S=T.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(r,a,n,e){this.axisPointerClass&&v.fixValue(r),S.superApply(this,"render",arguments),m(this,r,a,n,e,!0)},updateAxisPointer:function(r,a,n,e,s){m(this,r,a,n,e,!1)},remove:function(r,a){var n=this._axisPointer;n&&n.remove(a),S.superApply(this,"remove",arguments)},dispose:function(r,a){f(this,a),S.superApply(this,"dispose",arguments)}});function m(r,a,n,e,s,t){var i=S.getAxisPointerClass(r.axisPointerClass);if(!i)return;var l=v.getAxisPointerModel(a);l?(r._axisPointer||(r._axisPointer=new i)).render(a,l,e,t):f(r,e)}function f(r,a,n){var e=r._axisPointer;e&&e.dispose(a,n),r._axisPointer=null}var c=[];S.registerAxisPointerClass=function(r,a){c[r]=a},S.getAxisPointerClass=function(r){return r&&c[r]};var o=S;U.exports=o},"Znn+":function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("9ama"),v=d.n(T)},ZqQs:function(U,P,d){var O=d("bYtY");function x(m){var f=m&&m.timeline;O.isArray(f)||(f=f?[f]:[]),O.each(f,function(c){if(!c)return;T(c)})}function T(m){var f=m.type,c={number:"value",time:"time"};if(c[f]&&(m.axisType=c[f],delete m.type),v(m),S(m,"controlPosition")){var o=m.controlStyle||(m.controlStyle={});S(o,"position")||(o.position=m.controlPosition),o.position==="none"&&!S(o,"show")&&(o.show=!1,delete o.position),delete m.controlPosition}O.each(m.data||[],function(r){O.isObject(r)&&!O.isArray(r)&&(!S(r,"value")&&S(r,"name")&&(r.value=r.name),v(r))})}function v(m){var f=m.itemStyle||(m.itemStyle={}),c=f.emphasis||(f.emphasis={}),o=m.label||m.label||{},r=o.normal||(o.normal={}),a={normal:1,emphasis:1};O.each(o,function(n,e){!a[e]&&!S(r,e)&&(r[e]=n)}),c.label&&!S(o,"emphasis")&&(o.emphasis=c.label,delete c.label)}function S(m,f){return m.hasOwnProperty(f)}U.exports=x},Zss7:function(U,P,d){var O;(function(x){var T=/^\s+/,v=/\s+$/,S=0,m=x.round,f=x.min,c=x.max,o=x.random;function r(ce,Pe){if(ce=ce||"",Pe=Pe||{},ce instanceof r)return ce;if(!(this instanceof r))return new r(ce,Pe);var Q=a(ce);this._originalInput=ce,this._r=Q.r,this._g=Q.g,this._b=Q.b,this._a=Q.a,this._roundA=m(100*this._a)/100,this._format=Pe.format||Q.format,this._gradientType=Pe.gradientType,this._r<1&&(this._r=m(this._r)),this._g<1&&(this._g=m(this._g)),this._b<1&&(this._b=m(this._b)),this._ok=Q.ok,this._tc_id=S++}r.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Pe=this.toRgb();return(Pe.r*299+Pe.g*587+Pe.b*114)/1e3},getLuminance:function(){var Pe=this.toRgb(),Q,me,Je,re,G,X;return Q=Pe.r/255,me=Pe.g/255,Je=Pe.b/255,Q<=.03928?re=Q/12.92:re=x.pow((Q+.055)/1.055,2.4),me<=.03928?G=me/12.92:G=x.pow((me+.055)/1.055,2.4),Je<=.03928?X=Je/12.92:X=x.pow((Je+.055)/1.055,2.4),.2126*re+.7152*G+.0722*X},setAlpha:function(Pe){return this._a=H(Pe),this._roundA=m(100*this._a)/100,this},toHsv:function(){var Pe=t(this._r,this._g,this._b);return{h:Pe.h*360,s:Pe.s,v:Pe.v,a:this._a}},toHsvString:function(){var Pe=t(this._r,this._g,this._b),Q=m(Pe.h*360),me=m(Pe.s*100),Je=m(Pe.v*100);return this._a==1?"hsv("+Q+", "+me+"%, "+Je+"%)":"hsva("+Q+", "+me+"%, "+Je+"%, "+this._roundA+")"},toHsl:function(){var Pe=e(this._r,this._g,this._b);return{h:Pe.h*360,s:Pe.s,l:Pe.l,a:this._a}},toHslString:function(){var Pe=e(this._r,this._g,this._b),Q=m(Pe.h*360),me=m(Pe.s*100),Je=m(Pe.l*100);return this._a==1?"hsl("+Q+", "+me+"%, "+Je+"%)":"hsla("+Q+", "+me+"%, "+Je+"%, "+this._roundA+")"},toHex:function(Pe){return l(this._r,this._g,this._b,Pe)},toHexString:function(Pe){return"#"+this.toHex(Pe)},toHex8:function(Pe){return u(this._r,this._g,this._b,this._a,Pe)},toHex8String:function(Pe){return"#"+this.toHex8(Pe)},toRgb:function(){return{r:m(this._r),g:m(this._g),b:m(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+m(this._r)+", "+m(this._g)+", "+m(this._b)+")":"rgba("+m(this._r)+", "+m(this._g)+", "+m(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:m(F(this._r,255)*100)+"%",g:m(F(this._g,255)*100)+"%",b:m(F(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+m(F(this._r,255)*100)+"%, "+m(F(this._g,255)*100)+"%, "+m(F(this._b,255)*100)+"%)":"rgba("+m(F(this._r,255)*100)+"%, "+m(F(this._g,255)*100)+"%, "+m(F(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:B[l(this._r,this._g,this._b,!0)]||!1},toFilter:function(Pe){var Q="#"+h(this._r,this._g,this._b,this._a),me=Q,Je=this._gradientType?"GradientType = 1, ":"";if(Pe){var re=r(Pe);me="#"+h(re._r,re._g,re._b,re._a)}return"progid:DXImageTransform.Microsoft.gradient("+Je+"startColorstr="+Q+",endColorstr="+me+")"},toString:function(Pe){var Q=!!Pe;Pe=Pe||this._format;var me=!1,Je=this._a<1&&this._a>=0,re=!Q&&Je&&(Pe==="hex"||Pe==="hex6"||Pe==="hex3"||Pe==="hex4"||Pe==="hex8"||Pe==="name");return re?Pe==="name"&&this._a===0?this.toName():this.toRgbString():(Pe==="rgb"&&(me=this.toRgbString()),Pe==="prgb"&&(me=this.toPercentageRgbString()),(Pe==="hex"||Pe==="hex6")&&(me=this.toHexString()),Pe==="hex3"&&(me=this.toHexString(!0)),Pe==="hex4"&&(me=this.toHex8String(!0)),Pe==="hex8"&&(me=this.toHex8String()),Pe==="name"&&(me=this.toName()),Pe==="hsl"&&(me=this.toHslString()),Pe==="hsv"&&(me=this.toHsvString()),me||this.toHexString())},clone:function(){return r(this.toString())},_applyModification:function(Pe,Q){var me=Pe.apply(null,[this].concat([].slice.call(Q)));return this._r=me._r,this._g=me._g,this._b=me._b,this.setAlpha(me._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(E,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(A,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(Pe,Q){return Pe.apply(null,[this].concat([].slice.call(Q)))},analogous:function(){return this._applyCombination(D,arguments)},complement:function(){return this._applyCombination(b,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(L,arguments)},triad:function(){return this._applyCombination(I,arguments)},tetrad:function(){return this._applyCombination(_,arguments)}},r.fromRatio=function(ce,Pe){if(typeof ce=="object"){var Q={};for(var me in ce)ce.hasOwnProperty(me)&&(me==="a"?Q[me]=ce[me]:Q[me]=ee(ce[me]));ce=Q}return r(ce,Pe)};function a(ce){var Pe={r:0,g:0,b:0},Q=1,me=null,Je=null,re=null,G=!1,X=!1;return typeof ce=="string"&&(ce=Le(ce)),typeof ce=="object"&&(Ce(ce.r)&&Ce(ce.g)&&Ce(ce.b)?(Pe=n(ce.r,ce.g,ce.b),G=!0,X=String(ce.r).substr(-1)==="%"?"prgb":"rgb"):Ce(ce.h)&&Ce(ce.s)&&Ce(ce.v)?(me=ee(ce.s),Je=ee(ce.v),Pe=i(ce.h,me,Je),G=!0,X="hsv"):Ce(ce.h)&&Ce(ce.s)&&Ce(ce.l)&&(me=ee(ce.s),re=ee(ce.l),Pe=s(ce.h,me,re),G=!0,X="hsl"),ce.hasOwnProperty("a")&&(Q=ce.a)),Q=H(Q),{ok:G,format:ce.format||X,r:f(255,c(Pe.r,0)),g:f(255,c(Pe.g,0)),b:f(255,c(Pe.b,0)),a:Q}}function n(ce,Pe,Q){return{r:F(ce,255)*255,g:F(Pe,255)*255,b:F(Q,255)*255}}function e(ce,Pe,Q){ce=F(ce,255),Pe=F(Pe,255),Q=F(Q,255);var me=c(ce,Pe,Q),Je=f(ce,Pe,Q),re,G,X=(me+Je)/2;if(me==Je)re=G=0;else{var J=me-Je;G=X>.5?J/(2-me-Je):J/(me+Je);switch(me){case ce:re=(Pe-Q)/J+(Pe<Q?6:0);break;case Pe:re=(Q-ce)/J+2;break;case Q:re=(ce-Pe)/J+4;break}re/=6}return{h:re,s:G,l:X}}function s(ce,Pe,Q){var me,Je,re;ce=F(ce,360),Pe=F(Pe,100),Q=F(Q,100);function G(Ae,he,Me){return Me<0&&(Me+=1),Me>1&&(Me-=1),Me<1/6?Ae+(he-Ae)*6*Me:Me<1/2?he:Me<2/3?Ae+(he-Ae)*(2/3-Me)*6:Ae}if(Pe===0)me=Je=re=Q;else{var X=Q<.5?Q*(1+Pe):Q+Pe-Q*Pe,J=2*Q-X;me=G(J,X,ce+1/3),Je=G(J,X,ce),re=G(J,X,ce-1/3)}return{r:me*255,g:Je*255,b:re*255}}function t(ce,Pe,Q){ce=F(ce,255),Pe=F(Pe,255),Q=F(Q,255);var me=c(ce,Pe,Q),Je=f(ce,Pe,Q),re,G,X=me,J=me-Je;if(G=me===0?0:J/me,me==Je)re=0;else{switch(me){case ce:re=(Pe-Q)/J+(Pe<Q?6:0);break;case Pe:re=(Q-ce)/J+2;break;case Q:re=(ce-Pe)/J+4;break}re/=6}return{h:re,s:G,v:X}}function i(ce,Pe,Q){ce=F(ce,360)*6,Pe=F(Pe,100),Q=F(Q,100);var me=x.floor(ce),Je=ce-me,re=Q*(1-Pe),G=Q*(1-Je*Pe),X=Q*(1-(1-Je)*Pe),J=me%6,Ae=[Q,G,re,re,X,Q][J],he=[X,Q,Q,G,re,re][J],Me=[re,re,X,Q,Q,G][J];return{r:Ae*255,g:he*255,b:Me*255}}function l(ce,Pe,Q,me){var Je=[Y(m(ce).toString(16)),Y(m(Pe).toString(16)),Y(m(Q).toString(16))];return me&&Je[0].charAt(0)==Je[0].charAt(1)&&Je[1].charAt(0)==Je[1].charAt(1)&&Je[2].charAt(0)==Je[2].charAt(1)?Je[0].charAt(0)+Je[1].charAt(0)+Je[2].charAt(0):Je.join("")}function u(ce,Pe,Q,me,Je){var re=[Y(m(ce).toString(16)),Y(m(Pe).toString(16)),Y(m(Q).toString(16)),Y(fe(me))];return Je&&re[0].charAt(0)==re[0].charAt(1)&&re[1].charAt(0)==re[1].charAt(1)&&re[2].charAt(0)==re[2].charAt(1)&&re[3].charAt(0)==re[3].charAt(1)?re[0].charAt(0)+re[1].charAt(0)+re[2].charAt(0)+re[3].charAt(0):re.join("")}function h(ce,Pe,Q,me){var Je=[Y(fe(me)),Y(m(ce).toString(16)),Y(m(Pe).toString(16)),Y(m(Q).toString(16))];return Je.join("")}r.equals=function(ce,Pe){return!ce||!Pe?!1:r(ce).toRgbString()==r(Pe).toRgbString()},r.random=function(){return r.fromRatio({r:o(),g:o(),b:o()})};function p(ce,Pe){Pe=Pe===0?0:Pe||10;var Q=r(ce).toHsl();return Q.s-=Pe/100,Q.s=K(Q.s),r(Q)}function g(ce,Pe){Pe=Pe===0?0:Pe||10;var Q=r(ce).toHsl();return Q.s+=Pe/100,Q.s=K(Q.s),r(Q)}function A(ce){return r(ce).desaturate(100)}function y(ce,Pe){Pe=Pe===0?0:Pe||10;var Q=r(ce).toHsl();return Q.l+=Pe/100,Q.l=K(Q.l),r(Q)}function E(ce,Pe){Pe=Pe===0?0:Pe||10;var Q=r(ce).toRgb();return Q.r=c(0,f(255,Q.r-m(255*-(Pe/100)))),Q.g=c(0,f(255,Q.g-m(255*-(Pe/100)))),Q.b=c(0,f(255,Q.b-m(255*-(Pe/100)))),r(Q)}function C(ce,Pe){Pe=Pe===0?0:Pe||10;var Q=r(ce).toHsl();return Q.l-=Pe/100,Q.l=K(Q.l),r(Q)}function w(ce,Pe){var Q=r(ce).toHsl(),me=(Q.h+Pe)%360;return Q.h=me<0?360+me:me,r(Q)}function b(ce){var Pe=r(ce).toHsl();return Pe.h=(Pe.h+180)%360,r(Pe)}function I(ce){var Pe=r(ce).toHsl(),Q=Pe.h;return[r(ce),r({h:(Q+120)%360,s:Pe.s,l:Pe.l}),r({h:(Q+240)%360,s:Pe.s,l:Pe.l})]}function _(ce){var Pe=r(ce).toHsl(),Q=Pe.h;return[r(ce),r({h:(Q+90)%360,s:Pe.s,l:Pe.l}),r({h:(Q+180)%360,s:Pe.s,l:Pe.l}),r({h:(Q+270)%360,s:Pe.s,l:Pe.l})]}function L(ce){var Pe=r(ce).toHsl(),Q=Pe.h;return[r(ce),r({h:(Q+72)%360,s:Pe.s,l:Pe.l}),r({h:(Q+216)%360,s:Pe.s,l:Pe.l})]}function D(ce,Pe,Q){Pe=Pe||6,Q=Q||30;var me=r(ce).toHsl(),Je=360/Q,re=[r(ce)];for(me.h=(me.h-(Je*Pe>>1)+720)%360;--Pe;)me.h=(me.h+Je)%360,re.push(r(me));return re}function N(ce,Pe){Pe=Pe||6;for(var Q=r(ce).toHsv(),me=Q.h,Je=Q.s,re=Q.v,G=[],X=1/Pe;Pe--;)G.push(r({h:me,s:Je,v:re})),re=(re+X)%1;return G}r.mix=function(ce,Pe,Q){Q=Q===0?0:Q||50;var me=r(ce).toRgb(),Je=r(Pe).toRgb(),re=Q/100,G={r:(Je.r-me.r)*re+me.r,g:(Je.g-me.g)*re+me.g,b:(Je.b-me.b)*re+me.b,a:(Je.a-me.a)*re+me.a};return r(G)},r.readability=function(ce,Pe){var Q=r(ce),me=r(Pe);return(x.max(Q.getLuminance(),me.getLuminance())+.05)/(x.min(Q.getLuminance(),me.getLuminance())+.05)},r.isReadable=function(ce,Pe,Q){var me=r.readability(ce,Pe),Je,re;re=!1,Je=He(Q);switch(Je.level+Je.size){case"AAsmall":case"AAAlarge":re=me>=4.5;break;case"AAlarge":re=me>=3;break;case"AAAsmall":re=me>=7;break}return re},r.mostReadable=function(ce,Pe,Q){var me=null,Je=0,re,G,X,J;Q=Q||{},G=Q.includeFallbackColors,X=Q.level,J=Q.size;for(var Ae=0;Ae<Pe.length;Ae++)re=r.readability(ce,Pe[Ae]),re>Je&&(Je=re,me=r(Pe[Ae]));return r.isReadable(ce,me,{level:X,size:J})||!G?me:(Q.includeFallbackColors=!1,r.mostReadable(ce,["#fff","#000"],Q))};var R=r.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},B=r.hexNames=M(R);function M(ce){var Pe={};for(var Q in ce)ce.hasOwnProperty(Q)&&(Pe[ce[Q]]=Q);return Pe}function H(ce){return ce=parseFloat(ce),(isNaN(ce)||ce<0||ce>1)&&(ce=1),ce}function F(ce,Pe){V(ce)&&(ce="100%");var Q=z(ce);return ce=f(Pe,c(0,parseFloat(ce))),Q&&(ce=parseInt(ce*Pe,10)/100),x.abs(ce-Pe)<1e-6?1:ce%Pe/parseFloat(Pe)}function K(ce){return f(1,c(0,ce))}function j(ce){return parseInt(ce,16)}function V(ce){return typeof ce=="string"&&ce.indexOf(".")!=-1&&parseFloat(ce)===1}function z(ce){return typeof ce=="string"&&ce.indexOf("%")!=-1}function Y(ce){return ce.length==1?"0"+ce:""+ce}function ee(ce){return ce<=1&&(ce=ce*100+"%"),ce}function fe(ce){return x.round(parseFloat(ce)*255).toString(16)}function ie(ce){return j(ce)/255}var we=function(){var ce="[-\\+]?\\d+%?",Pe="[-\\+]?\\d*\\.\\d+%?",Q="(?:"+Pe+")|(?:"+ce+")",me="[\\s|\\(]+("+Q+")[,|\\s]+("+Q+")[,|\\s]+("+Q+")\\s*\\)?",Je="[\\s|\\(]+("+Q+")[,|\\s]+("+Q+")[,|\\s]+("+Q+")[,|\\s]+("+Q+")\\s*\\)?";return{CSS_UNIT:new RegExp(Q),rgb:new RegExp("rgb"+me),rgba:new RegExp("rgba"+Je),hsl:new RegExp("hsl"+me),hsla:new RegExp("hsla"+Je),hsv:new RegExp("hsv"+me),hsva:new RegExp("hsva"+Je),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 Ce(ce){return!!we.CSS_UNIT.exec(ce)}function Le(ce){ce=ce.replace(T,"").replace(v,"").toLowerCase();var Pe=!1;if(R[ce])ce=R[ce],Pe=!0;else if(ce=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var Q;return(Q=we.rgb.exec(ce))?{r:Q[1],g:Q[2],b:Q[3]}:(Q=we.rgba.exec(ce))?{r:Q[1],g:Q[2],b:Q[3],a:Q[4]}:(Q=we.hsl.exec(ce))?{h:Q[1],s:Q[2],l:Q[3]}:(Q=we.hsla.exec(ce))?{h:Q[1],s:Q[2],l:Q[3],a:Q[4]}:(Q=we.hsv.exec(ce))?{h:Q[1],s:Q[2],v:Q[3]}:(Q=we.hsva.exec(ce))?{h:Q[1],s:Q[2],v:Q[3],a:Q[4]}:(Q=we.hex8.exec(ce))?{r:j(Q[1]),g:j(Q[2]),b:j(Q[3]),a:ie(Q[4]),format:Pe?"name":"hex8"}:(Q=we.hex6.exec(ce))?{r:j(Q[1]),g:j(Q[2]),b:j(Q[3]),format:Pe?"name":"hex"}:(Q=we.hex4.exec(ce))?{r:j(Q[1]+""+Q[1]),g:j(Q[2]+""+Q[2]),b:j(Q[3]+""+Q[3]),a:ie(Q[4]+""+Q[4]),format:Pe?"name":"hex8"}:(Q=we.hex3.exec(ce))?{r:j(Q[1]+""+Q[1]),g:j(Q[2]+""+Q[2]),b:j(Q[3]+""+Q[3]),format:Pe?"name":"hex"}:!1}function He(ce){var Pe,Q;return ce=ce||{level:"AA",size:"small"},Pe=(ce.level||"AA").toUpperCase(),Q=(ce.size||"small").toLowerCase(),Pe!=="AA"&&Pe!=="AAA"&&(Pe="AA"),Q!=="small"&&Q!=="large"&&(Q="small"),{level:Pe,size:Q}}U.exports?U.exports=r:!(O=function(){return r}.call(P,d,P,U),O!==void 0&&(U.exports=O))})(Math)},Zvw2:function(U,P,d){var O=d("bYtY"),x=d("hM6l"),T=function(S,m,f,c,o){x.call(this,S,m,f),this.type=c||"value",this.position=o||"bottom",this.orient=null};T.prototype={constructor:T,model:null,isHorizontal:function(){var S=this.position;return S==="top"||S==="bottom"},pointToData:function(S,m){return this.coordinateSystem.pointToData(S,m)[0]},toGlobalCoord:null,toLocalCoord:null},O.inherits(T,x);var v=T;U.exports=v},a7Wl:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};P.default=O},a9QJ:function(U,P){var d={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function O(x,T){if(x==="world"){var v=d[T.name];if(v){var S=T.center;S[0]=v[0],S[1]=v[1]}}}U.exports=O},aHsQ:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("6D9b"),v=d.n(T)},aKvl:function(U,P,d){var O=d("Sj9i"),x=O.quadraticProjectPoint;function T(v,S,m,f,c,o,r,a,n){if(r===0)return!1;var e=r;if(n>S+e&&n>f+e&&n>o+e||n<S-e&&n<f-e&&n<o-e||a>v+e&&a>m+e&&a>c+e||a<v-e&&a<m-e&&a<c-e)return!1;var s=x(v,S,m,f,c,o,a,n,null);return s<=e/2}P.containStroke=T},aTJb:function(U,P,d){var O=d("bLfw");O.registerSubTypeDefaulter("dataZoom",function(){return"slider"})},aX58:function(U,P,d){var O=d("3gBT"),x=d("ItGF"),T=d("bYtY"),v=d("0s+r"),S=d("r6Bn"),m=d("7SHv"),f=d("MKOG"),c=d("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 o=!x.canvasSupported,r={canvas:m},a={},n="4.3.1";function e(h,p){var g=new u(O(),h,p);return a[g.id]=g,g}function s(h){if(h)h.dispose();else{for(var p in a)a.hasOwnProperty(p)&&a[p].dispose();a={}}return this}function t(h){return a[h]}function i(h,p){r[h]=p}function l(h){delete a[h]}var u=function(p,g,A){A=A||{},this.dom=g,this.id=p;var y=this,E=new S,C=A.renderer;if(o){if(!r.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");C="vml"}else(!C||!r[C])&&(C="canvas");var w=new r[C](g,E,A,p);this.storage=E,this.painter=w;var b=!x.node&&!x.worker?new c(w.getViewportRoot(),w.root):null;this.handler=new v(E,w,b,w.root),this.animation=new f({stage:{update:T.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var I=E.delFromStorage,_=E.addToStorage;E.delFromStorage=function(L){I.call(E,L),L&&L.removeSelfFromZr(y)},E.addToStorage=function(L){_.call(E,L),L.addSelfToZr(y)}};u.prototype={constructor:u,getId:function(){return this.id},add:function(p){this.storage.addRoot(p),this._needsRefresh=!0},remove:function(p){this.storage.delRoot(p),this._needsRefresh=!0},configLayer:function(p,g){this.painter.configLayer&&this.painter.configLayer(p,g),this._needsRefresh=!0},setBackgroundColor:function(p){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(p),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 p;this._needsRefresh&&(p=!0,this.refreshImmediately()),this._needsRefreshHover&&(p=!0,this.refreshHoverImmediately()),p&&this.trigger("rendered")},addHover:function(p,g){if(this.painter.addHover){var A=this.painter.addHover(p,g);return this.refreshHover(),A}},removeHover:function(p){this.painter.removeHover&&(this.painter.removeHover(p),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(p){p=p||{},this.painter.resize(p.width,p.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(p,g){return this.painter.pathToImage(p,g)},setCursorStyle:function(p){this.handler.setCursorStyle(p)},findHover:function(p,g){return this.handler.findHover(p,g)},on:function(p,g,A){this.handler.on(p,g,A)},off:function(p,g){this.handler.off(p,g)},trigger:function(p,g){this.handler.trigger(p,g)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,l(this.id)}},P.version=n,P.init=e,P.dispose=s,P.getInstance=t,P.registerPainter=i},aX7z:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("bYtY"),v=d("GMDS"),S=d("ieMj"),m=d("4NgU"),f=d("OELB"),c=d("nVfU"),o=c.prepareLayoutBarSeries,r=c.makeColumnLayout,a=c.retrieveColumnLayout,n=d("mFDi");d("IWp7"),d("jCoz");function e(E,C){var w=E.type,b=C.getMin(),I=C.getMax(),_=E.getExtent(),L,D,N;w==="ordinal"?L=C.getCategories().length:(D=C.get("boundaryGap"),T.isArray(D)||(D=[D||0,D||0]),typeof D[0]=="boolean"&&(D=[0,0]),D[0]=f.parsePercent(D[0],1),D[1]=f.parsePercent(D[1],1),N=_[1]-_[0]||Math.abs(_[0])),b==="dataMin"?b=_[0]:typeof b=="function"&&(b=b({min:_[0],max:_[1]})),I==="dataMax"?I=_[1]:typeof I=="function"&&(I=I({min:_[0],max:_[1]}));var R=b!=null,B=I!=null;b==null&&(b=w==="ordinal"?L?0:NaN:_[0]-D[0]*N),I==null&&(I=w==="ordinal"?L?L-1:NaN:_[1]+D[1]*N),(b==null||!isFinite(b))&&(b=NaN),(I==null||!isFinite(I))&&(I=NaN),E.setBlank(T.eqNaN(b)||T.eqNaN(I)||w==="ordinal"&&!E.getOrdinalMeta().categories.length),C.getNeedCrossZero()&&(b>0&&I>0&&!R&&(b=0),b<0&&I<0&&!B&&(I=0));var M=C.ecModel;if(M&&w==="time"){var H=o("bar",M),F;if(T.each(H,function(V){F|=V.getBaseAxis()===C.axis}),F){var K=r(H),j=s(b,I,C,K);b=j.min,I=j.max}}return{extent:[b,I],fixMin:R,fixMax:B}}function s(E,C,w,b){var I=w.axis.getExtent(),_=I[1]-I[0],L=a(b,w.axis);if(L===void 0)return{min:E,max:C};var D=Infinity;T.each(L,function(F){D=Math.min(F.offset,D)});var N=-Infinity;T.each(L,function(F){N=Math.max(F.offset+F.width,N)}),D=Math.abs(D),N=Math.abs(N);var R=D+N,B=C-E,M=1-(D+N)/_,H=B/M-B;return C+=H*(N/R),E-=H*(D/R),{min:E,max:C}}function t(E,C){var w=e(E,C),b=w.extent,I=C.get("splitNumber");E.type==="log"&&(E.base=C.get("logBase"));var _=E.type;E.setExtent(b[0],b[1]),E.niceExtent({splitNumber:I,fixMin:w.fixMin,fixMax:w.fixMax,minInterval:_==="interval"||_==="time"?C.get("minInterval"):null,maxInterval:_==="interval"||_==="time"?C.get("maxInterval"):null});var L=C.get("interval");L!=null&&(E.setInterval&&E.setInterval(L))}function i(E,C){if(C=C||E.get("type"),C)switch(C){case"category":return new v(E.getOrdinalMeta?E.getOrdinalMeta():E.getCategories(),[Infinity,-Infinity]);case"value":return new S;default:return(m.getClass(C)||S).create(E)}}function l(E){var C=E.scale.getExtent(),w=C[0],b=C[1];return!(w>0&&b>0||w<0&&b<0)}function u(E){var C=E.getLabelModel().get("formatter"),w=E.type==="category"?E.scale.getExtent()[0]:null;return typeof C=="string"?(C=function(b){return function(I){return I=E.scale.getLabel(I),b.replace("{value}",I!=null?I:"")}}(C),C):typeof C=="function"?function(b,I){return w!=null&&(I=b-w),C(h(E,b),I)}:function(b){return E.scale.getLabel(b)}}function h(E,C){return E.type==="category"?E.scale.getLabel(C):C}function p(E){var C=E.model,w=E.scale;if(!C.get("axisLabel.show")||w.isBlank())return;var b=E.type==="category",I,_,L=w.getExtent();b?_=w.count():(I=w.getTicks(),_=I.length);var D=E.getLabelModel(),N=u(E),R,B=1;_>40&&(B=Math.ceil(_/40));for(var M=0;M<_;M+=B){var H=I?I[M]:L[0]+M,F=N(H),K=D.getTextRect(F),j=g(K,D.get("rotate")||0);R?R.union(j):R=j}return R}function g(E,C){var w=C*Math.PI/180,b=E.plain(),I=b.width,_=b.height,L=I*Math.cos(w)+_*Math.sin(w),D=I*Math.sin(w)+_*Math.cos(w),N=new n(b.x,b.y,L,D);return N}function A(E){var C=E.get("interval");return C==null?"auto":C}function y(E){return E.type==="category"&&A(E.getLabelModel())===0}P.getScaleExtent=e,P.niceScaleExtent=t,P.createScaleByModel=i,P.ifAxisCrossZero=l,P.makeLabelFormatter=u,P.getAxisRawValue=h,P.estimateLabelUnionRect=p,P.getOptionCategoryInterval=A,P.shouldShowAllLabels=y},"af/B":function(U,P,d){var O=d("bYtY"),x=O.each,T=O.map,v=O.isFunction,S=O.createHashMap,m=O.noop,f=d("9H2F"),c=f.createTask,o=d("iRjW"),r=o.getUID,a=d("fmMI"),n=d("hD7B"),e=d("4NO4"),s=e.normalizeToArray;function t(F,K,j,V){this.ecInstance=F,this.api=K,this.unfinished;var j=this._dataProcessorHandlers=j.slice(),V=this._visualHandlers=V.slice();this._allHandlers=j.concat(V),this._stageTaskMap=S()}var i=t.prototype;i.restoreData=function(F,K){F.restoreData(K),this._stageTaskMap.each(function(j){var V=j.overallTask;V&&V.dirty()})},i.getPerformArgs=function(F,K){if(!F.__pipeline)return;var j=this._pipelineMap.get(F.__pipeline.id),V=j.context,z=!K&&j.progressiveEnabled&&(!V||V.progressiveRender)&&F.__idxInPipeline>j.blockIndex,Y=z?j.step:null,ee=V&&V.modDataCount,fe=ee!=null?Math.ceil(ee/Y):null;return{step:Y,modBy:fe,modDataCount:ee}},i.getPipeline=function(F){return this._pipelineMap.get(F)},i.updateStreamModes=function(F,K){var j=this._pipelineMap.get(F.uid),V=F.getData(),z=V.count(),Y=j.progressiveEnabled&&K.incrementalPrepareRender&&z>=j.threshold,ee=F.get("large")&&z>=F.get("largeThreshold"),fe=F.get("progressiveChunkMode")==="mod"?z:null;F.pipelineContext=j.context={progressiveRender:Y,modDataCount:fe,large:ee}},i.restorePipelines=function(F){var K=this,j=K._pipelineMap=S();F.eachSeries(function(V){var z=V.getProgressive(),Y=V.uid;j.set(Y,{id:Y,head:null,tail:null,threshold:V.getProgressiveThreshold(),progressiveEnabled:z&&!(V.preventIncremental&&V.preventIncremental()),blockIndex:-1,step:Math.round(z||700),count:0}),L(K,V,V.dataTask)})},i.prepareStageTasks=function(){var F=this._stageTaskMap,K=this.ecInstance.getModel(),j=this.api;x(this._allHandlers,function(V){var z=F.get(V.uid)||F.set(V.uid,[]);V.reset&&h(this,V,z,K,j),V.overallReset&&p(this,V,z,K,j)},this)},i.prepareView=function(F,K,j,V){var z=F.renderTask,Y=z.context;Y.model=K,Y.ecModel=j,Y.api=V,z.__block=!F.incrementalPrepareRender,L(this,K,z)},i.performDataProcessorTasks=function(F,K){l(this,this._dataProcessorHandlers,F,K,{block:!0})},i.performVisualTasks=function(F,K,j){l(this,this._visualHandlers,F,K,j)};function l(F,K,j,V,z){z=z||{};var Y;x(K,function(fe,ie){if(z.visualType&&z.visualType!==fe.visualType)return;var we=F._stageTaskMap.get(fe.uid),Ce=we.seriesTaskMap,Le=we.overallTask;if(Le){var He,ce=Le.agentStubMap;ce.each(function(Q){ee(z,Q)&&(Q.dirty(),He=!0)}),He&&Le.dirty(),u(Le,V);var Pe=F.getPerformArgs(Le,z.block);ce.each(function(Q){Q.perform(Pe)}),Y|=Le.perform(Pe)}else Ce&&Ce.each(function(Q,me){ee(z,Q)&&Q.dirty();var Je=F.getPerformArgs(Q,z.block);Je.skip=!fe.performRawSeries&&j.isSeriesFiltered(Q.context.model),u(Q,V),Y|=Q.perform(Je)})});function ee(fe,ie){return fe.setDirty&&(!fe.dirtyMap||fe.dirtyMap.get(ie.__pipeline.id))}F.unfinished|=Y}i.performSeriesTasks=function(F){var K;F.eachSeries(function(j){K|=j.dataTask.perform()}),this.unfinished|=K},i.plan=function(){this._pipelineMap.each(function(F){var K=F.tail;do{if(K.__block){F.blockIndex=K.__idxInPipeline;break}K=K.getUpstream()}while(K)})};var u=i.updatePayload=function(F,K){K!=="remain"&&(F.context.payload=K)};function h(F,K,j,V,z){var Y=j.seriesTaskMap||(j.seriesTaskMap=S()),ee=K.seriesType,fe=K.getTargetSeries;K.createOnAllSeries?V.eachRawSeries(ie):ee?V.eachRawSeriesByType(ee,ie):fe&&fe(V,z).each(ie);function ie(Ce){var Le=Ce.uid,He=Y.get(Le)||Y.set(Le,c({plan:C,reset:w,count:_}));He.context={model:Ce,ecModel:V,api:z,useClearVisual:K.isVisual&&!K.isLayout,plan:K.plan,reset:K.reset,scheduler:F},L(F,Ce,He)}var we=F._pipelineMap;Y.each(function(Ce,Le){we.get(Le)||(Ce.dispose(),Y.removeKey(Le))})}function p(F,K,j,V,z){var Y=j.overallTask=j.overallTask||c({reset:g});Y.context={ecModel:V,api:z,overallReset:K.overallReset,scheduler:F};var ee=Y.agentStubMap=Y.agentStubMap||S(),fe=K.seriesType,ie=K.getTargetSeries,we=!0,Ce=K.modifyOutputEnd;fe?V.eachRawSeriesByType(fe,Le):ie?ie(V,z).each(Le):(we=!1,x(V.getSeries(),Le));function Le(ce){var Pe=ce.uid,Q=ee.get(Pe);Q||(Q=ee.set(Pe,c({reset:A,onDirty:E})),Y.dirty()),Q.context={model:ce,overallProgress:we,modifyOutputEnd:Ce},Q.agent=Y,Q.__block=we,L(F,ce,Q)}var He=F._pipelineMap;ee.each(function(ce,Pe){He.get(Pe)||(ce.dispose(),Y.dirty(),ee.removeKey(Pe))})}function g(F){F.overallReset(F.ecModel,F.api,F.payload)}function A(F,K){return F.overallProgress&&y}function y(){this.agent.dirty(),this.getDownstream().dirty()}function E(){this.agent&&this.agent.dirty()}function C(F){return F.plan&&F.plan(F.model,F.ecModel,F.api,F.payload)}function w(F){F.useClearVisual&&F.data.clearAllVisual();var K=F.resetDefines=s(F.reset(F.model,F.ecModel,F.api,F.payload));return K.length>1?T(K,function(j,V){return I(V)}):b}var b=I(0);function I(F){return function(K,j){var V=j.data,z=j.resetDefines[F];if(z&&z.dataEach)for(var Y=K.start;Y<K.end;Y++)z.dataEach(V,Y);else z&&z.progress&&z.progress(K,V)}}function _(F){return F.data.count()}function L(F,K,j){var V=K.uid,z=F._pipelineMap.get(V);!z.head&&(z.head=j),z.tail&&z.tail.pipe(j),z.tail=j,j.__idxInPipeline=z.count++,j.__pipeline=z}t.wrapStageHandler=function(F,K){return v(F)&&(F={overallReset:F,seriesType:D(F)}),F.uid=r("stageHandler"),K&&(F.visualType=K),F};function D(F){B=null;try{F(N,R)}catch(K){}return B}var N={},R={},B;M(N,a),M(R,n),N.eachSeriesByType=N.eachRawSeriesByType=function(F){B=F},N.eachComponent=function(F){F.mainType==="series"&&F.subType&&(B=F.subType)};function M(F,K){for(var j in K.prototype)F[j]=m}var H=t;U.exports=H},akwb:function(U,P,d){var O=d("RSch"),x=d("bYtY"),T=d("D9ME"),v=d("QBsz");function S(c,o,r){T.call(this,c,o,r),this._lastFrame=0,this._lastFramePercent=0}var m=S.prototype;m.createLine=function(c,o,r){return new O(c,o,r)},m.updateAnimationPoints=function(c,o){this._points=o;for(var r=[0],a=0,n=1;n<o.length;n++){var e=o[n-1],s=o[n];a+=v.dist(e,s),r.push(a)}if(a===0)return;for(var n=0;n<r.length;n++)r[n]/=a;this._offsets=r,this._length=a},m.getLineLength=function(c){return this._length},m.updateSymbolPosition=function(c){var o=c.__t,r=this._points,a=this._offsets,n=r.length;if(!a)return;var e=this._lastFrame,s;if(o<this._lastFramePercent){var t=Math.min(e+1,n-1);for(s=t;s>=0&&!(a[s]<=o);s--);s=Math.min(s,n-2)}else{for(var s=e;s<n&&!(a[s]>o);s++);s=Math.min(s-1,n-2)}v.lerp(c.position,r[s],r[s+1],(o-a[s])/(a[s+1]-a[s]));var i=r[s+1][0]-r[s][0],l=r[s+1][1]-r[s][1];c.rotation=-Math.atan2(l,i)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=o,c.ignore=!1},x.inherits(S,T);var f=S;U.exports=f},apAg:function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("bsht")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="SearchOutlined";var c=v.forwardRef(f);P.default=c},as94:function(U,P,d){var O=d("7aKB"),x=d("3LNs"),T=d("IwbS"),v=d("/y7N"),S=d("Fofx"),m=d("+rIm"),f=d("Znkb"),c=x.extend({makeElOption:function(n,e,s,t,i){var l=s.axis;l.dim==="angle"&&(this.animationThreshold=Math.PI/18);var u=l.polar,h=u.getOtherAxis(l),p=h.getExtent(),g;g=l["dataTo"+O.capitalFirst(l.dim)](e);var A=t.get("type");if(A&&A!=="none"){var y=v.buildElStyle(t),E=r[A](l,u,g,p,y);E.style=y,n.graphicKey=E.type,n.pointer=E}var C=t.get("label.margin"),w=o(e,s,t,u,C);v.buildLabelElOption(n,s,t,i,w)}});function o(n,e,s,t,i){var l=e.axis,u=l.dataToCoord(n),h=t.getAngleAxis().getExtent()[0];h=h/180*Math.PI;var p=t.getRadiusAxis().getExtent(),g,A,y;if(l.dim==="radius"){var E=S.create();S.rotate(E,E,h),S.translate(E,E,[t.cx,t.cy]),g=T.applyTransform([u,-i],E);var C=e.getModel("axisLabel").get("rotate")||0,w=m.innerTextLayout(h,C*Math.PI/180,-1);A=w.textAlign,y=w.textVerticalAlign}else{var b=p[1];g=t.coordToPoint([b+i,u]);var I=t.cx,_=t.cy;A=Math.abs(g[0]-I)/b<.3?"center":g[0]>I?"left":"right",y=Math.abs(g[1]-_)/b<.3?"middle":g[1]>_?"top":"bottom"}return{position:g,align:A,verticalAlign:y}}var r={line:function(n,e,s,t,i){return n.dim==="angle"?{type:"Line",shape:v.makeLineShape(e.coordToPoint([t[0],s]),e.coordToPoint([t[1],s]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:s}}},shadow:function(n,e,s,t,i){var l=Math.max(1,n.getBandWidth()),u=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:v.makeSectorShape(e.cx,e.cy,t[0],t[1],(-s-l/2)*u,(-s+l/2)*u)}:{type:"Sector",shape:v.makeSectorShape(e.cx,e.cy,s-l/2,s+l/2,0,Math.PI*2)}}};f.registerAxisPointerClass("PolarAxisPointer",c);var a=c;U.exports=a},b56q:function(U,P,d){},b80e:function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("gKaM")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="DoubleLeftOutlined";var c=v.forwardRef(f);P.default=c},b9oc:function(U,P,d){var O=d("bYtY"),x=O.each,T="\0_ec_hist_store";function v(o,r){var a=c(o);x(r,function(n,e){for(var s=a.length-1;s>=0;s--){var t=a[s];if(t[e])break}if(s<0){var i=o.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0];if(i){var l=i.getPercentRange();a[0][e]={dataZoomId:e,start:l[0],end:l[1]}}}}),a.push(r)}function S(o){var r=c(o),a=r[r.length-1];r.length>1&&r.pop();var n={};return x(a,function(e,s){for(var t=r.length-1;t>=0;t--){var e=r[t][s];if(e){n[s]=e;break}}}),n}function m(o){o[T]=null}function f(o){return c(o).length}function c(o){var r=o[T];return r||(r=o[T]=[{}]),r}P.push=v,P.pop=S,P.clear=m,P.count=f},bBKM:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("ProS"),v=d("bYtY"),S=d("+rIm"),m=d("IwbS"),f=["axisLine","axisTickLabel","axisName"],c=T.extendComponentView({type:"radar",render:function(o,r,a){var n=this.group;n.removeAll(),this._buildAxes(o),this._buildSplitLineAndArea(o)},_buildAxes:function(o){var r=o.coordinateSystem,a=r.getIndicatorAxes(),n=v.map(a,function(e){var s=new S(e.model,{position:[r.cx,r.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return s});v.each(n,function(e){v.each(f,e.add,e),this.group.add(e.getGroup())},this)},_buildSplitLineAndArea:function(o){var r=o.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var n=o.get("shape"),e=o.getModel("splitLine"),s=o.getModel("splitArea"),t=e.getModel("lineStyle"),i=s.getModel("areaStyle"),l=e.get("show"),u=s.get("show"),h=t.get("color"),p=i.get("color");h=v.isArray(h)?h:[h],p=v.isArray(p)?p:[p];var g=[],A=[];function y(H,F,K){var j=K%F.length;return H[j]=H[j]||[],j}if(n==="circle")for(var E=a[0].getTicksCoords(),C=r.cx,w=r.cy,b=0;b<E.length;b++){if(l){var I=y(g,h,b);g[I].push(new m.Circle({shape:{cx:C,cy:w,r:E[b].coord}}))}if(u&&b<E.length-1){var I=y(A,p,b);A[I].push(new m.Ring({shape:{cx:C,cy:w,r0:E[b].coord,r:E[b+1].coord}}))}}else for(var _,L=v.map(a,function(H,F){var K=H.getTicksCoords();return _=_==null?K.length-1:Math.min(K.length-1,_),v.map(K,function(j){return r.coordToPoint(j.coord,F)})}),D=[],b=0;b<=_;b++){for(var N=[],R=0;R<a.length;R++)N.push(L[R][b]);if(N[0]&&N.push(N[0].slice()),l){var I=y(g,h,b);g[I].push(new m.Polyline({shape:{points:N}}))}if(u&&D){var I=y(A,p,b-1);A[I].push(new m.Polygon({shape:{points:N.concat(D)}}))}D=N.slice().reverse()}var B=t.getLineStyle(),M=i.getAreaStyle();v.each(A,function(H,F){this.group.add(m.mergePath(H,{style:v.defaults({stroke:"none",fill:p[F%p.length]},M),silent:!0}))},this),v.each(g,function(H,F){this.group.add(m.mergePath(H,{style:v.defaults({fill:"none",stroke:h[F%h.length]},B),silent:!0}))},this)}});U.exports=c},bBL8:function(U,P,d){var O=d("ProS");d("LPzL"),d("rfSb"),d("JVwQ");var x=d("UnoB"),T=d("cbJ4"),v=d("0/Rx");O.registerLayout(x),O.registerVisual(T),O.registerProcessor(v("themeRiver"))},bE4E:function(U,P,d){},bE4q:function(U,P,d){"use strict";var O=d("pVnL"),x=d.n(O),T=d("lSNA"),v=d.n(T),S=d("RIqP"),m=d.n(S),f=d("q1tI"),c=d("TSYQ"),o=d.n(c),r=d("Zm9Q"),a=d("HQEm"),n=d.n(a),e=d("XBQK"),s=d("H84U"),t=function(D,N){var R={};for(var B in D)Object.prototype.hasOwnProperty.call(D,B)&&N.indexOf(B)<0&&(R[B]=D[B]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,B=Object.getOwnPropertySymbols(D);M<B.length;M++)N.indexOf(B[M])<0&&Object.prototype.propertyIsEnumerable.call(D,B[M])&&(R[B[M]]=D[B[M]]);return R},i=function(N){var R=N.prefixCls,B=N.separator,M=B===void 0?"/":B,H=N.children,F=N.overlay,K=N.dropdownProps,j=t(N,["prefixCls","separator","children","overlay","dropdownProps"]),V=f.useContext(s.b),z=V.getPrefixCls,Y=z("breadcrumb",R),ee=function(we){return F?f.createElement(e.a,x()({overlay:F,placement:"bottomCenter"},K),f.createElement("span",{className:"".concat(Y,"-overlay-link")},we,f.createElement(n.a,null))):we},fe;return"href"in j?fe=f.createElement("a",x()({className:"".concat(Y,"-link")},j),H):fe=f.createElement("span",x()({className:"".concat(Y,"-link")},j),H),fe=ee(fe),H?f.createElement("span",null,fe,M&&M!==""&&f.createElement("span",{className:"".concat(Y,"-separator")},M)):null};i.__ANT_BREADCRUMB_ITEM=!0;var l=i,u=function(N){var R=N.children,B=f.useContext(s.b),M=B.getPrefixCls,H=M("breadcrumb");return f.createElement("span",{className:"".concat(H,"-separator")},R||"/")};u.__ANT_BREADCRUMB_SEPARATOR=!0;var h=u,p=d("BvKs"),g=d("uaoM"),A=d("0n0R"),y=function(D,N){var R={};for(var B in D)Object.prototype.hasOwnProperty.call(D,B)&&N.indexOf(B)<0&&(R[B]=D[B]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,B=Object.getOwnPropertySymbols(D);M<B.length;M++)N.indexOf(B[M])<0&&Object.prototype.propertyIsEnumerable.call(D,B[M])&&(R[B[M]]=D[B[M]]);return R};function E(D,N){if(!D.breadcrumbName)return null;var R=Object.keys(N).join("|"),B=D.breadcrumbName.replace(new RegExp(":(".concat(R,")"),"g"),function(M,H){return N[H]||M});return B}function C(D,N,R,B){var M=R.indexOf(D)===R.length-1,H=E(D,N);return M?f.createElement("span",null,H):f.createElement("a",{href:"#/".concat(B.join("/"))},H)}var w=function(N,R){return N=(N||"").replace(/^\//,""),Object.keys(R).forEach(function(B){N=N.replace(":".concat(B),R[B])}),N},b=function(N){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",B=arguments.length>2?arguments[2]:void 0,M=m()(N),H=w(R,B);return H&&M.push(H),M},I=function(N){var R=N.prefixCls,B=N.separator,M=B===void 0?"/":B,H=N.style,F=N.className,K=N.routes,j=N.children,V=N.itemRender,z=V===void 0?C:V,Y=N.params,ee=Y===void 0?{}:Y,fe=y(N,["prefixCls","separator","style","className","routes","children","itemRender","params"]),ie=f.useContext(s.b),we=ie.getPrefixCls,Ce=ie.direction,Le,He=we("breadcrumb",R);if(K&&K.length>0){var ce=[];Le=K.map(function(Q){var me=w(Q.path,ee);me&&ce.push(me);var Je;return Q.children&&Q.children.length&&(Je=f.createElement(p.a,null,Q.children.map(function(re){return f.createElement(p.a.Item,{key:re.path||re.breadcrumbName},z(re,ee,K,b(ce,re.path,ee)))}))),f.createElement(l,{overlay:Je,separator:M,key:me||Q.breadcrumbName},z(Q,ee,K,ce))})}else j&&(Le=Object(r.a)(j).map(function(Q,me){return Q&&(Object(g.a)(Q.type&&(Q.type.__ANT_BREADCRUMB_ITEM===!0||Q.type.__ANT_BREADCRUMB_SEPARATOR===!0),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Object(A.a)(Q,{separator:M,key:me}))}));var Pe=o()(F,He,v()({},"".concat(He,"-rtl"),Ce==="rtl"));return f.createElement("div",x()({className:Pe,style:H},fe),Le)};I.Item=l,I.Separator=h;var _=I,L=P.a=_},bKJz:function(U,P,d){},bLfw:function(U,P,d){var O=d("bYtY"),x=d("Qxkt"),T=d("iRjW"),v=d("Yl7c"),S=v.enableClassManagement,m=v.parseClassType,f=d("4NO4"),c=f.makeInner,o=d("+TT/"),r=d("3hzK"),a=c(),n=x.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,i,l,u){x.call(this,t,i,l,u),this.uid=T.getUID("ec_cpt_model")},init:function(t,i,l,u){this.mergeDefaultAndTheme(t,l)},mergeDefaultAndTheme:function(t,i){var l=this.layoutMode,u=l?o.getLayoutParams(t):{},h=i.getTheme();O.merge(t,h.get(this.mainType)),O.merge(t,this.getDefaultOption()),l&&o.mergeLayoutParam(t,u,l)},mergeOption:function(t,i){O.merge(this.option,t,!0);var l=this.layoutMode;l&&o.mergeLayoutParam(this.option,t,l)},optionUpdated:function(t,i){},getDefaultOption:function(){var t=a(this);if(!t.defaultOption){for(var i=[],l=this.constructor;l;){var u=l.prototype.defaultOption;u&&i.push(u),l=l.superClass}for(var h={},p=i.length-1;p>=0;p--)h=O.merge(h,i[p],!0);t.defaultOption=h}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});S(n,{registerWhenExtend:!0}),T.enableSubTypeDefaulter(n),T.enableTopologicalTravel(n,e);function e(t){var i=[];return O.each(n.getClassesByMainType(t),function(l){i=i.concat(l.prototype.dependencies||[])}),i=O.map(i,function(l){return m(l).main}),t!=="dataset"&&O.indexOf(i,"dataset")<=0&&i.unshift("dataset"),i}O.mixin(n,r);var s=n;U.exports=s},bMXI:function(U,P,d){var O=d("bYtY"),x=d("QBsz"),T=d("Fofx"),v=d("mFDi"),S=d("DN4a"),m=x.applyTransform;function f(){S.call(this)}O.mixin(f,S);function c(a){this.name=a,this.zoomLimit,S.call(this),this._roamTransformable=new f,this._rawTransformable=new f,this._center,this._zoom}c.prototype={constructor:c,type:"view",dimensions:["x","y"],setBoundingRect:function(a,n,e,s){return this._rect=new v(a,n,e,s),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(a,n,e,s){this.transformTo(a,n,e,s),this._viewRect=new v(a,n,e,s)},transformTo:function(a,n,e,s){var t=this.getBoundingRect(),i=this._rawTransformable;i.transform=t.calculateTransform(new v(a,n,e,s)),i.decomposeTransform(),this._updateTransform()},setCenter:function(a){if(!a)return;this._center=a,this._updateCenterAndZoom()},setZoom:function(a){a=a||1;var n=this.zoomLimit;n&&(n.max!=null&&(a=Math.min(n.max,a)),n.min!=null&&(a=Math.max(n.min,a))),this._zoom=a,this._updateCenterAndZoom()},getDefaultCenter:function(){var a=this.getBoundingRect(),n=a.x+a.width/2,e=a.y+a.height/2;return[n,e]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var a=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,e=this.getDefaultCenter(),s=this.getCenter(),t=this.getZoom();s=x.applyTransform([],s,a),e=x.applyTransform([],e,a),n.origin=s,n.position=[e[0]-s[0],e[1]-s[1]],n.scale=[t,t],this._updateTransform()},_updateTransform:function(){var a=this._roamTransformable,n=this._rawTransformable;n.parent=a,a.updateTransform(),n.updateTransform(),T.copy(this.transform||(this.transform=[]),n.transform||T.create()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],T.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var a=this._roamTransformable.transform,n=this._rawTransformable;return{roamTransform:a?O.slice(a):T.create(),rawScale:O.slice(n.scale),rawPosition:O.slice(n.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var a=this.getBoundingRect().clone();return a.applyTransform(this.transform),a},dataToPoint:function(a,n,e){var s=n?this._rawTransform:this.transform;return e=e||[],s?m(e,a,s):x.copy(e,a)},pointToData:function(a){var n=this.invTransform;return n?m([],a,n):[a[0],a[1]]},convertToPixel:O.curry(o,"dataToPoint"),convertFromPixel:O.curry(o,"pointToData"),containPoint:function(a){return this.getViewRectAfterRoam().contain(a[0],a[1])}},O.mixin(c,S);function o(a,n,e,s){var t=e.seriesModel,i=t?t.coordinateSystem:null;return i===this?i[a](s):null}var r=c;U.exports=r},bNin:function(U,P,d){var O=d("bYtY"),x=d("IwbS"),T=d("FBjb"),v=d("Itpr"),S=v.radialCoordinate,m=d("ProS"),f=d("4mN7"),c=d("bMXI"),o=d("Ae+d"),r=d("SgGq"),a=d("xSat"),n=a.onIrrelevantElement,e=d("Tghj"),s=e.__DEV__,t=d("OELB"),i=t.parsePercent,l=x.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(C,w){var b=w.childPoints,I=b.length,_=w.parentPoint,L=b[0],D=b[I-1];if(I===1){C.moveTo(_[0],_[1]),C.lineTo(L[0],L[1]);return}var N=w.orient,R=N==="TB"||N==="BT"?0:1,B=1-R,M=i(w.forkPosition,1),H=[];H[R]=_[R],H[B]=_[B]+(D[B]-_[B])*M,C.moveTo(_[0],_[1]),C.lineTo(H[0],H[1]),C.moveTo(L[0],L[1]),H[R]=L[R],C.lineTo(H[0],H[1]),H[R]=D[R],C.lineTo(H[0],H[1]),C.lineTo(D[0],D[1]);for(var F=1;F<I-1;F++){var K=b[F];C.moveTo(K[0],K[1]),H[R]=K[R],C.lineTo(H[0],H[1])}}}),u=m.extendChartView({type:"tree",init:function(C,w){this._oldTree,this._mainGroup=new x.Group,this._controller=new r(w.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(C,w,b,I){var _=C.getData(),L=C.layoutInfo,D=this._mainGroup,N=C.get("layout");N==="radial"?D.attr("position",[L.x+L.width/2,L.y+L.height/2]):D.attr("position",[L.x,L.y]),this._updateViewCoordSys(C,L,N),this._updateController(C,w,b);var R=this._data,B={expandAndCollapse:C.get("expandAndCollapse"),layout:N,edgeShape:C.get("edgeShape"),edgeForkPosition:C.get("edgeForkPosition"),orient:C.getOrient(),curvature:C.get("lineStyle.curveness"),symbolRotate:C.get("symbolRotate"),symbolOffset:C.get("symbolOffset"),hoverAnimation:C.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};_.diff(R).add(function(M){h(_,M)&&g(_,M,null,D,C,B)}).update(function(M,H){var F=R.getItemGraphicEl(H);if(!h(_,M)){F&&y(R,H,F,D,C,B);return}g(_,M,F,D,C,B)}).remove(function(M){var H=R.getItemGraphicEl(M);H&&y(R,M,H,D,C,B)}).execute(),this._nodeScaleRatio=C.get("nodeScaleRatio"),this._updateNodeAndLinkScale(C),B.expandAndCollapse===!0&&_.eachItemGraphicEl(function(M,H){M.off("click").on("click",function(){b.dispatchAction({type:"treeExpandAndCollapse",seriesId:C.id,dataIndex:H})})}),this._data=_},_updateViewCoordSys:function(C){var w=C.getData(),b=[];w.each(function(R){var B=w.getItemLayout(R);B&&!isNaN(B.x)&&!isNaN(B.y)&&b.push([+B.x,+B.y])});var I=[],_=[];f.fromPoints(b,I,_);var L=this._min,D=this._max;_[0]-I[0]===0&&(I[0]=L?L[0]:I[0]-1,_[0]=D?D[0]:_[0]+1),_[1]-I[1]===0&&(I[1]=L?L[1]:I[1]-1,_[1]=D?D[1]:_[1]+1);var N=C.coordinateSystem=new c;N.zoomLimit=C.get("scaleLimit"),N.setBoundingRect(I[0],I[1],_[0]-I[0],_[1]-I[1]),N.setCenter(C.get("center")),N.setZoom(C.get("zoom")),this.group.attr({position:N.position,scale:N.scale}),this._viewCoordSys=N,this._min=I,this._max=_},_updateController:function(C,w,b){var I=this._controller,_=this._controllerHost,L=this.group;I.setPointerChecker(function(D,N,R){var B=L.getBoundingRect();return B.applyTransform(L.transform),B.contain(N,R)&&!n(D,b,C)}),I.enable(C.get("roam")),_.zoomLimit=C.get("scaleLimit"),_.zoom=C.coordinateSystem.getZoom(),I.off("pan").off("zoom").on("pan",function(D){o.updateViewOnPan(_,D.dx,D.dy),b.dispatchAction({seriesId:C.id,type:"treeRoam",dx:D.dx,dy:D.dy})},this).on("zoom",function(D){o.updateViewOnZoom(_,D.scale,D.originX,D.originY),b.dispatchAction({seriesId:C.id,type:"treeRoam",zoom:D.scale,originX:D.originX,originY:D.originY}),this._updateNodeAndLinkScale(C)},this)},_updateNodeAndLinkScale:function(C){var w=C.getData(),b=this._getNodeGlobalScale(C),I=[b,b];w.eachItemGraphicEl(function(_,L){_.attr("scale",I)})},_getNodeGlobalScale:function(C){var w=C.coordinateSystem;if(w.type!=="view")return 1;var b=this._nodeScaleRatio,I=w.scale,_=I&&I[0]||1,L=w.getZoom(),D=(L-1)*b+1;return D/_},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function h(C,w){var b=C.getItemLayout(w);return b&&!isNaN(b.x)&&!isNaN(b.y)&&C.getItemVisual(w,"symbol")!=="none"}function p(C,w,b){return b.itemModel=w,b.itemStyle=w.getModel("itemStyle").getItemStyle(),b.hoverItemStyle=w.getModel("emphasis.itemStyle").getItemStyle(),b.lineStyle=w.getModel("lineStyle").getLineStyle(),b.labelModel=w.getModel("label"),b.hoverLabelModel=w.getModel("emphasis.label"),C.isExpand===!1&&C.children.length!==0?b.symbolInnerColor=b.itemStyle.fill:b.symbolInnerColor="#fff",b}function g(C,w,b,I,_,L){var D=!b,N=C.tree.getNodeByDataIndex(w),R=N.getModel(),L=p(N,R,L),B=C.tree.root,M=N.parentNode===B?N:N.parentNode||N,H=C.getItemGraphicEl(M.dataIndex),F=M.getLayout(),K=H?{x:H.position[0],y:H.position[1],rawX:H.__radialOldRawX,rawY:H.__radialOldRawY}:F,j=N.getLayout();D?(b=new T(C,w,L),b.attr("position",[K.x,K.y])):b.updateData(C,w,L),b.__radialOldRawX=b.__radialRawX,b.__radialOldRawY=b.__radialRawY,b.__radialRawX=j.rawX,b.__radialRawY=j.rawY,I.add(b),C.setItemGraphicEl(w,b),x.updateProps(b,{position:[j.x,j.y]},_);var V=b.getSymbolPath();if(L.layout==="radial"){var z=B.children[0],Y=z.getLayout(),ee=z.children.length,fe,ie;if(j.x===Y.x&&N.isExpand===!0){var we={};we.x=(z.children[0].getLayout().x+z.children[ee-1].getLayout().x)/2,we.y=(z.children[0].getLayout().y+z.children[ee-1].getLayout().y)/2,fe=Math.atan2(we.y-Y.y,we.x-Y.x),fe<0&&(fe=Math.PI*2+fe),ie=we.x<Y.x,ie&&(fe=fe-Math.PI)}else fe=Math.atan2(j.y-Y.y,j.x-Y.x),fe<0&&(fe=Math.PI*2+fe),N.children.length===0||N.children.length!==0&&N.isExpand===!1?(ie=j.x<Y.x,ie&&(fe=fe-Math.PI)):(ie=j.x>Y.x,ie||(fe=fe-Math.PI));var Ce=ie?"left":"right",Le=L.labelModel.get("rotate"),He=Le*(Math.PI/180);V.setStyle({textPosition:L.labelModel.get("position")||Ce,textRotation:Le==null?-fe:He,textOrigin:"center",verticalAlign:"middle"})}A(_,N,B,b,K,F,j,I,L)}function A(C,w,b,I,_,L,D,N,R){var B=R.edgeShape,M=I.__edge;if(B==="curve")w.parentNode&&w.parentNode!==b&&(M||(M=I.__edge=new x.BezierCurve({shape:E(R,_,_),style:O.defaults({opacity:0,strokeNoScale:!0},R.lineStyle)})),x.updateProps(M,{shape:E(R,L,D),style:{opacity:1}},C));else if(B==="polyline"&&(R.layout==="orthogonal"&&(w!==b&&w.children&&w.children.length!==0&&w.isExpand===!0))){for(var H=w.children,F=[],K=0;K<H.length;K++){var j=H[K].getLayout();F.push([j.x,j.y])}M||(M=I.__edge=new l({shape:{parentPoint:[D.x,D.y],childPoints:[[D.x,D.y]],orient:R.orient,forkPosition:R.edgeForkPosition},style:O.defaults({opacity:0,strokeNoScale:!0},R.lineStyle)})),x.updateProps(M,{shape:{parentPoint:[D.x,D.y],childPoints:F},style:{opacity:1}},C)}N.add(M)}function y(C,w,b,I,_,L){for(var D=C.tree.getNodeByDataIndex(w),N=C.tree.root,R=D.getModel(),L=p(D,R,L),B=D.parentNode===N?D:D.parentNode||D,M=L.edgeShape,H;H=B.getLayout(),H==null;)B=B.parentNode===N?B:B.parentNode||B;x.updateProps(b,{position:[H.x+1,H.y+1]},_,function(){I.remove(b),C.setItemGraphicEl(w,null)}),b.fadeOut(null,{keepLabel:!0});var F=C.getItemGraphicEl(B.dataIndex),K=F.__edge,j=b.__edge||(B.isExpand===!1||B.children.length===1?K:void 0),M=L.edgeShape;j&&(M==="curve"?x.updateProps(j,{shape:E(L,H,H),style:{opacity:0}},_,function(){I.remove(j)}):M==="polyline"&&L.layout==="orthogonal"&&x.updateProps(j,{shape:{parentPoint:[H.x,H.y],childPoints:[[H.x,H.y]]},style:{opacity:0}},_,function(){I.remove(j)}))}function E(C,w,b){var I,_,L,D,N=C.orient,R,B,M,H;if(C.layout==="radial"){R=w.rawX,M=w.rawY,B=b.rawX,H=b.rawY;var F=S(R,M),K=S(R,M+(H-M)*C.curvature),j=S(B,H+(M-H)*C.curvature),V=S(B,H);return{x1:F.x,y1:F.y,x2:V.x,y2:V.y,cpx1:K.x,cpy1:K.y,cpx2:j.x,cpy2:j.y}}else R=w.x,M=w.y,B=b.x,H=b.y,(N==="LR"||N==="RL")&&(I=R+(B-R)*C.curvature,_=M,L=B+(R-B)*C.curvature,D=H),(N==="TB"||N==="BT")&&(I=R,_=M+(H-M)*C.curvature,L=B,D=H+(M-H)*C.curvature);return{x1:R,y1:M,x2:B,y2:H,cpx1:I,cpy1:_,cpx2:L,cpy2:D}}U.exports=u},bQjk:function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("OLod"))})(this,function(O){return function(x){var T=O,v=T.lib,S=v.CipherParams,m=T.enc,f=m.Hex,c=T.format,o=c.Hex={stringify:function(a){return a.ciphertext.toString(f)},parse:function(a){var n=f.parse(a);return S.create({ciphertext:n})}}}(),O.format.Hex})},bT9E:function(U,P,d){"use strict";d.d(P,"a",function(){return x});var O=d("VTBJ");function x(T,v){var S=Object(O.a)({},T);return Array.isArray(v)&&v.forEach(function(m){delete S[m]}),S}},bX4T:function(U,P,d){"use strict";d.d(P,"a",function(){return c});var O=d("VTBJ"),x=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,T=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,v="".concat(x," ").concat(T).split(/[\s\n]+/),S="aria-",m="data-";function f(o,r){return o.indexOf(r)===0}function c(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a;r===!1?a={aria:!0,data:!0,attr:!0}:r===!0?a={aria:!0}:a=Object(O.a)({},r);var n={};return Object.keys(o).forEach(function(e){(a.aria&&(e==="role"||f(e,S))||a.data&&f(e,m)||a.attr&&v.includes(e))&&(n[e]=o[e])}),n}},bYtY:function(U,P){var d={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},O={"[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},x=Object.prototype.toString,T=Array.prototype,v=T.forEach,S=T.filter,m=T.slice,f=T.map,c=T.reduce,o={};function r(Q,me){Q==="createCanvas"&&(l=null),o[Q]=me}function a(Q){if(Q==null||typeof Q!="object")return Q;var me=Q,Je=x.call(Q);if(Je==="[object Array]"){if(!Ce(Q)){me=[];for(var re=0,G=Q.length;re<G;re++)me[re]=a(Q[re])}}else if(O[Je]){if(!Ce(Q)){var X=Q.constructor;if(Q.constructor.from)me=X.from(Q);else{me=new X(Q.length);for(var re=0,G=Q.length;re<G;re++)me[re]=a(Q[re])}}}else if(!d[Je]&&!Ce(Q)&&!H(Q)){me={};for(var J in Q)Q.hasOwnProperty(J)&&(me[J]=a(Q[J]))}return me}function n(Q,me,Je){if(!R(me)||!R(Q))return Je?a(me):Q;for(var re in me)if(me.hasOwnProperty(re)){var G=Q[re],X=me[re];R(X)&&R(G)&&!L(X)&&!L(G)&&!H(X)&&!H(G)&&!B(X)&&!B(G)&&!Ce(X)&&!Ce(G)?n(G,X,Je):(Je||!(re in Q))&&(Q[re]=a(me[re],!0))}return Q}function e(Q,me){for(var Je=Q[0],re=1,G=Q.length;re<G;re++)Je=n(Je,Q[re],me);return Je}function s(Q,me){for(var Je in me)me.hasOwnProperty(Je)&&(Q[Je]=me[Je]);return Q}function t(Q,me,Je){for(var re in me)me.hasOwnProperty(re)&&(Je?me[re]!=null:Q[re]==null)&&(Q[re]=me[re]);return Q}var i=function(){return o.createCanvas()};o.createCanvas=function(){return document.createElement("canvas")};var l;function u(){return l||(l=i().getContext("2d")),l}function h(Q,me){if(Q){if(Q.indexOf)return Q.indexOf(me);for(var Je=0,re=Q.length;Je<re;Je++)if(Q[Je]===me)return Je}return-1}function p(Q,me){var Je=Q.prototype;function re(){}re.prototype=me.prototype,Q.prototype=new re;for(var G in Je)Je.hasOwnProperty(G)&&(Q.prototype[G]=Je[G]);Q.prototype.constructor=Q,Q.superClass=me}function g(Q,me,Je){Q="prototype"in Q?Q.prototype:Q,me="prototype"in me?me.prototype:me,t(Q,me,Je)}function A(Q){return Q?typeof Q=="string"?!1:typeof Q.length=="number":void 0}function y(Q,me,Je){if(!(Q&&me))return;if(Q.forEach&&Q.forEach===v)Q.forEach(me,Je);else if(Q.length===+Q.length)for(var re=0,G=Q.length;re<G;re++)me.call(Je,Q[re],re,Q);else for(var X in Q)Q.hasOwnProperty(X)&&me.call(Je,Q[X],X,Q)}function E(Q,me,Je){if(!(Q&&me))return;if(Q.map&&Q.map===f)return Q.map(me,Je);for(var re=[],G=0,X=Q.length;G<X;G++)re.push(me.call(Je,Q[G],G,Q));return re}function C(Q,me,Je,re){if(!(Q&&me))return;if(Q.reduce&&Q.reduce===c)return Q.reduce(me,Je,re);for(var G=0,X=Q.length;G<X;G++)Je=me.call(re,Je,Q[G],G,Q);return Je}function w(Q,me,Je){if(!(Q&&me))return;if(Q.filter&&Q.filter===S)return Q.filter(me,Je);for(var re=[],G=0,X=Q.length;G<X;G++)me.call(Je,Q[G],G,Q)&&re.push(Q[G]);return re}function b(Q,me,Je){if(!(Q&&me))return;for(var re=0,G=Q.length;re<G;re++)if(me.call(Je,Q[re],re,Q))return Q[re]}function I(Q,me){var Je=m.call(arguments,2);return function(){return Q.apply(me,Je.concat(m.call(arguments)))}}function _(Q){var me=m.call(arguments,1);return function(){return Q.apply(this,me.concat(m.call(arguments)))}}function L(Q){return x.call(Q)==="[object Array]"}function D(Q){return typeof Q=="function"}function N(Q){return x.call(Q)==="[object String]"}function R(Q){var me=typeof Q;return me==="function"||!!Q&&me==="object"}function B(Q){return!!d[x.call(Q)]}function M(Q){return!!O[x.call(Q)]}function H(Q){return typeof Q=="object"&&typeof Q.nodeType=="number"&&typeof Q.ownerDocument=="object"}function F(Q){return Q!==Q}function K(Q){for(var me=0,Je=arguments.length;me<Je;me++)if(arguments[me]!=null)return arguments[me]}function j(Q,me){return Q!=null?Q:me}function V(Q,me,Je){return Q!=null?Q:me!=null?me:Je}function z(){return Function.call.apply(m,arguments)}function Y(Q){if(typeof Q=="number")return[Q,Q,Q,Q];var me=Q.length;return me===2?[Q[0],Q[1],Q[0],Q[1]]:me===3?[Q[0],Q[1],Q[2],Q[1]]:Q}function ee(Q,me){if(!Q)throw new Error(me)}function fe(Q){return Q==null?null:typeof Q.trim=="function"?Q.trim():Q.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ie="__ec_primitive__";function we(Q){Q[ie]=!0}function Ce(Q){return Q[ie]}function Le(Q){var me=L(Q);this.data={};var Je=this;Q instanceof Le?Q.each(re):Q&&y(Q,re);function re(G,X){me?Je.set(G,X):Je.set(X,G)}}Le.prototype={constructor:Le,get:function(me){return this.data.hasOwnProperty(me)?this.data[me]:null},set:function(me,Je){return this.data[me]=Je},each:function(me,Je){Je!==void 0&&(me=I(me,Je));for(var re in this.data)this.data.hasOwnProperty(re)&&me(this.data[re],re)},removeKey:function(me){delete this.data[me]}};function He(Q){return new Le(Q)}function ce(Q,me){for(var Je=new Q.constructor(Q.length+me.length),re=0;re<Q.length;re++)Je[re]=Q[re];var G=Q.length;for(re=0;re<me.length;re++)Je[re+G]=me[re];return Je}function Pe(){}P.$override=r,P.clone=a,P.merge=n,P.mergeAll=e,P.extend=s,P.defaults=t,P.createCanvas=i,P.getContext=u,P.indexOf=h,P.inherits=p,P.mixin=g,P.isArrayLike=A,P.each=y,P.map=E,P.reduce=C,P.filter=w,P.find=b,P.bind=I,P.curry=_,P.isArray=L,P.isFunction=D,P.isString=N,P.isObject=R,P.isBuiltInObject=B,P.isTypedArray=M,P.isDom=H,P.eqNaN=F,P.retrieve=K,P.retrieve2=j,P.retrieve3=V,P.slice=z,P.normalizeCssArray=Y,P.assert=ee,P.trim=fe,P.setAsPrimitive=we,P.isPrimitive=Ce,P.createHashMap=He,P.concatArray=ce,P.noop=Pe},bZqE:function(U,P){function d(x,T,v){for(var S=[x],m=[],f;f=S.pop();)if(m.push(f),f.isExpand){var c=f.children;if(c.length)for(var o=0;o<c.length;o++)S.push(c[o])}for(;f=m.pop();)T(f,v)}function O(x,T){for(var v=[x],S;S=v.pop();)if(T(S),S.isExpand){var m=S.children;if(m.length)for(var f=m.length-1;f>=0;f--)v.push(m[f])}}P.eachAfter=d,P.eachBefore=O},bahg:function(U,P){function d(O){return O.split("")}U.exports=d},bbsP:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("CWI+"),v=d.n(T)},bogI:function(U,P,d){"use strict";d.d(P,"a",function(){return O});var O=function(T){if(!T)return null;var v=typeof T=="function";return v?T():T}},bsht:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};P.default=O},bx4M:function(U,P,d){"use strict";var O=d("lSNA"),x=d.n(O),T=d("pVnL"),v=d.n(T),S=d("q1tI"),m=d("TSYQ"),f=d.n(m),c=d("BGR+"),o=d("H84U"),r=function(E,C){var w={};for(var b in E)Object.prototype.hasOwnProperty.call(E,b)&&C.indexOf(b)<0&&(w[b]=E[b]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,b=Object.getOwnPropertySymbols(E);I<b.length;I++)C.indexOf(b[I])<0&&Object.prototype.propertyIsEnumerable.call(E,b[I])&&(w[b[I]]=E[b[I]]);return w},a=function(C){return S.createElement(o.a,null,function(w){var b=w.getPrefixCls,I=C.prefixCls,_=C.className,L=C.hoverable,D=L===void 0?!0:L,N=r(C,["prefixCls","className","hoverable"]),R=b("card",I),B=f()("".concat(R,"-grid"),_,x()({},"".concat(R,"-grid-hoverable"),D));return S.createElement("div",v()({},N,{className:B}))})},n=a,e=function(E,C){var w={};for(var b in E)Object.prototype.hasOwnProperty.call(E,b)&&C.indexOf(b)<0&&(w[b]=E[b]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,b=Object.getOwnPropertySymbols(E);I<b.length;I++)C.indexOf(b[I])<0&&Object.prototype.propertyIsEnumerable.call(E,b[I])&&(w[b[I]]=E[b[I]]);return w},s=function(C){return S.createElement(o.a,null,function(w){var b=w.getPrefixCls,I=C.prefixCls,_=C.className,L=C.avatar,D=C.title,N=C.description,R=e(C,["prefixCls","className","avatar","title","description"]),B=b("card",I),M=f()("".concat(B,"-meta"),_),H=L?S.createElement("div",{className:"".concat(B,"-meta-avatar")},L):null,F=D?S.createElement("div",{className:"".concat(B,"-meta-title")},D):null,K=N?S.createElement("div",{className:"".concat(B,"-meta-description")},N):null,j=F||K?S.createElement("div",{className:"".concat(B,"-meta-detail")},F,K):null;return S.createElement("div",v()({},R,{className:M}),H,j)})},t=s,i=d("ZTPi"),l=d("BMrR"),u=d("kPKH"),h=d("3Nzz"),p=function(E,C){var w={};for(var b in E)Object.prototype.hasOwnProperty.call(E,b)&&C.indexOf(b)<0&&(w[b]=E[b]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,b=Object.getOwnPropertySymbols(E);I<b.length;I++)C.indexOf(b[I])<0&&Object.prototype.propertyIsEnumerable.call(E,b[I])&&(w[b[I]]=E[b[I]]);return w};function g(E){var C=E.map(function(w,b){return S.createElement("li",{style:{width:"".concat(100/E.length,"%")},key:"action-".concat(b)},S.createElement("span",null,w))});return C}var A=function(C){var w,b,I=S.useContext(o.b),_=I.getPrefixCls,L=I.direction,D=S.useContext(h.b),N=function(Ot){C.onTabChange&&C.onTabChange(Ot)},R=function(){var Ot;return S.Children.forEach(C.children,function(Tt){Tt&&Tt.type&&Tt.type===n&&(Ot=!0)}),Ot},B=C.prefixCls,M=C.className,H=C.extra,F=C.headStyle,K=F===void 0?{}:F,j=C.bodyStyle,V=j===void 0?{}:j,z=C.title,Y=C.loading,ee=C.bordered,fe=ee===void 0?!0:ee,ie=C.size,we=C.type,Ce=C.cover,Le=C.actions,He=C.tabList,ce=C.children,Pe=C.activeTabKey,Q=C.defaultActiveTabKey,me=C.tabBarExtraContent,Je=C.hoverable,re=C.tabProps,G=re===void 0?{}:re,X=p(C,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),J=_("card",B),Ae=V.padding===0||V.padding==="0px"?{padding:24}:void 0,he=S.createElement("div",{className:"".concat(J,"-loading-block")}),Me=S.createElement("div",{className:"".concat(J,"-loading-content"),style:Ae},S.createElement(l.a,{gutter:8},S.createElement(u.a,{span:22},he)),S.createElement(l.a,{gutter:8},S.createElement(u.a,{span:8},he),S.createElement(u.a,{span:15},he)),S.createElement(l.a,{gutter:8},S.createElement(u.a,{span:6},he),S.createElement(u.a,{span:18},he)),S.createElement(l.a,{gutter:8},S.createElement(u.a,{span:13},he),S.createElement(u.a,{span:9},he)),S.createElement(l.a,{gutter:8},S.createElement(u.a,{span:4},he),S.createElement(u.a,{span:3},he),S.createElement(u.a,{span:16},he))),Ie=Pe!==void 0,oe=v()(v()({},G),(w={},x()(w,Ie?"activeKey":"defaultActiveKey",Ie?Pe:Q),x()(w,"tabBarExtraContent",me),w)),pe,Oe=He&&He.length?S.createElement(i.a,v()({size:"large"},oe,{className:"".concat(J,"-head-tabs"),onChange:N}),He.map(function(dt){return S.createElement(i.a.TabPane,{tab:dt.tab,disabled:dt.disabled,key:dt.key})})):null;(z||H||Oe)&&(pe=S.createElement("div",{className:"".concat(J,"-head"),style:K},S.createElement("div",{className:"".concat(J,"-head-wrapper")},z&&S.createElement("div",{className:"".concat(J,"-head-title")},z),H&&S.createElement("div",{className:"".concat(J,"-extra")},H)),Oe));var Ye=Ce?S.createElement("div",{className:"".concat(J,"-cover")},Ce):null,it=S.createElement("div",{className:"".concat(J,"-body"),style:V},Y?Me:ce),et=Le&&Le.length?S.createElement("ul",{className:"".concat(J,"-actions")},g(Le)):null,Te=Object(c.default)(X,["onTabChange"]),tt=ie||D,ze=f()(J,M,(b={},x()(b,"".concat(J,"-loading"),Y),x()(b,"".concat(J,"-bordered"),fe),x()(b,"".concat(J,"-hoverable"),Je),x()(b,"".concat(J,"-contain-grid"),R()),x()(b,"".concat(J,"-contain-tabs"),He&&He.length),x()(b,"".concat(J,"-").concat(tt),tt),x()(b,"".concat(J,"-type-").concat(we),!!we),x()(b,"".concat(J,"-rtl"),L==="rtl"),b));return S.createElement("div",v()({},Te,{className:ze}),pe,Ye,it,et)};A.Grid=n,A.Meta=t;var y=P.a=A},c2i1:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("bYtY"),v=d("Yl7c"),S=v.enableClassCheck;function m(e){return"_EC_"+e}var f=function(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},c=f.prototype;c.type="graph",c.isDirected=function(){return this._directed},c.addNode=function(e,s){e=e==null?""+s:""+e;var t=this._nodesMap;if(t[m(e)])return;var i=new o(e,s);return i.hostGraph=this,this.nodes.push(i),t[m(e)]=i,i},c.getNodeByIndex=function(e){var s=this.data.getRawIndex(e);return this.nodes[s]},c.getNodeById=function(e){return this._nodesMap[m(e)]},c.addEdge=function(e,s,t){var i=this._nodesMap,l=this._edgesMap;if(typeof e=="number"&&(e=this.nodes[e]),typeof s=="number"&&(s=this.nodes[s]),o.isInstance(e)||(e=i[m(e)]),o.isInstance(s)||(s=i[m(s)]),!e||!s)return;var u=e.id+"-"+s.id;if(l[u])return;var h=new r(e,s,t);return h.hostGraph=this,this._directed&&(e.outEdges.push(h),s.inEdges.push(h)),e.edges.push(h),e!==s&&s.edges.push(h),this.edges.push(h),l[u]=h,h},c.getEdgeByIndex=function(e){var s=this.edgeData.getRawIndex(e);return this.edges[s]},c.getEdge=function(e,s){o.isInstance(e)&&(e=e.id),o.isInstance(s)&&(s=s.id);var t=this._edgesMap;return this._directed?t[e+"-"+s]:t[e+"-"+s]||t[s+"-"+e]},c.eachNode=function(e,s){for(var t=this.nodes,i=t.length,l=0;l<i;l++)t[l].dataIndex>=0&&e.call(s,t[l],l)},c.eachEdge=function(e,s){for(var t=this.edges,i=t.length,l=0;l<i;l++)t[l].dataIndex>=0&&t[l].node1.dataIndex>=0&&t[l].node2.dataIndex>=0&&e.call(s,t[l],l)},c.breadthFirstTraverse=function(e,s,t,i){if(o.isInstance(s)||(s=this._nodesMap[m(s)]),!s)return;for(var l=t==="out"?"outEdges":t==="in"?"inEdges":"edges",u=0;u<this.nodes.length;u++)this.nodes[u].__visited=!1;if(e.call(i,s,null))return;for(var h=[s];h.length;)for(var p=h.shift(),g=p[l],u=0;u<g.length;u++){var A=g[u],y=A.node1===p?A.node2:A.node1;if(!y.__visited){if(e.call(i,y,p))return;h.push(y),y.__visited=!0}}},c.update=function(){for(var e=this.data,s=this.edgeData,t=this.nodes,i=this.edges,l=0,u=t.length;l<u;l++)t[l].dataIndex=-1;for(var l=0,u=e.count();l<u;l++)t[e.getRawIndex(l)].dataIndex=l;s.filterSelf(function(h){var p=i[s.getRawIndex(h)];return p.node1.dataIndex>=0&&p.node2.dataIndex>=0});for(var l=0,u=i.length;l<u;l++)i[l].dataIndex=-1;for(var l=0,u=s.count();l<u;l++)i[s.getRawIndex(l)].dataIndex=l},c.clone=function(){for(var e=new f(this._directed),s=this.nodes,t=this.edges,i=0;i<s.length;i++)e.addNode(s[i].id,s[i].dataIndex);for(var i=0;i<t.length;i++){var l=t[i];e.addEdge(l.node1.id,l.node2.id,l.dataIndex)}return e};function o(e,s){this.id=e==null?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=s==null?-1:s}o.prototype={constructor:o,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(e){if(this.dataIndex<0)return;var s=this.hostGraph,t=s.data.getItemModel(this.dataIndex);return t.getModel(e)}};function r(e,s,t){this.node1=e,this.node2=s,this.dataIndex=t==null?-1:t}r.prototype.getModel=function(e){if(this.dataIndex<0)return;var s=this.hostGraph,t=s.edgeData.getItemModel(this.dataIndex);return t.getModel(e)};var a=function(e,s){return{getValue:function(t){var i=this[e][s];return i.get(i.getDimension(t||"value"),this.dataIndex)},setVisual:function(t,i){this.dataIndex>=0&&this[e][s].setItemVisual(this.dataIndex,t,i)},getVisual:function(t,i){return this[e][s].getItemVisual(this.dataIndex,t,i)},setLayout:function(t,i){this.dataIndex>=0&&this[e][s].setItemLayout(this.dataIndex,t,i)},getLayout:function(){return this[e][s].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][s].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][s].getRawIndex(this.dataIndex)}}};T.mixin(o,a("hostGraph","data")),T.mixin(r,a("hostGraph","edgeData")),f.Node=o,f.Edge=r,S(o),S(r);var n=f;U.exports=n},c3jg:function(U,P,d){"use strict";d.d(P,"e",function(){return f}),d.d(P,"c",function(){return o}),d.d(P,"d",function(){return r}),d.d(P,"a",function(){return n}),d.d(P,"f",function(){return e}),d.d(P,"b",function(){return s});var O=d("KQm4"),x=d("VTBJ"),T=d("Ff2n"),v=d("Zm9Q"),S=d("Kwbf"),m=d("wPhX");function f(t,i){return t!=null?t:i}function c(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=new Map;function l(u){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(u||[]).forEach(function(p){var g=p.key,A=p.children;Object(S.a)(g!=null,"Tree node must have a certain key: [".concat(h).concat(g,"]"));var y=String(g);Object(S.a)(!i.has(y)||g===null||g===void 0,"Same 'key' exist in the Tree: ".concat(y)),i.set(y,!0),l(A,"".concat(h).concat(y," > "))})}l(t)}function o(t){function i(l){var u=Object(v.a)(l);return u.map(function(h){if(!Object(m.i)(h))return Object(S.a)(!h,"Tree/TreeNode can only accept TreeNode as children."),null;var p=h.key,g=h.props,A=g.children,y=Object(T.a)(g,["children"]),E=Object(x.a)({key:p},y),C=i(A);return C.length&&(E.children=C),E}).filter(function(h){return h})}return i(t)}function r(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],l=new Set(i===!0?[]:i),u=[];function h(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return p.map(function(A,y){var E=Object(m.h)(g?g.pos:"0",y),C=f(A.key,E),w=Object(x.a)(Object(x.a)({},A),{},{parent:g,pos:E,children:null,data:A,isStart:[].concat(Object(O.a)(g?g.isStart:[]),[y===0]),isEnd:[].concat(Object(O.a)(g?g.isEnd:[]),[y===p.length-1])});return u.push(w),i===!0||l.has(C)?w.children=h(A.children||[],w):w.children=[],w})}return h(t),u}function a(t,i,l){var u;l?typeof l=="string"?u=function(g){return g[l]}:typeof l=="function"&&(u=function(g){return l(g)}):u=function(g,A){return f(g.key,A)};function h(p,g,A){var y=p?p.children:t,E=p?Object(m.h)(A.pos,g):"0";if(p){var C=u(p,E),w={node:p,index:g,pos:E,key:C,parentPos:A.node?A.pos:null,level:A.level+1};i(w)}y&&y.forEach(function(b,I){h(b,I,{node:p,pos:E,level:A?A.level+1:-1})})}h(null)}function n(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=i.initWrapper,u=i.processEntity,h=i.onProcessFinished,p=arguments.length>2?arguments[2]:void 0,g={},A={},y={posEntities:g,keyEntities:A};return l&&(y=l(y)||y),a(t,function(E){var C=E.node,w=E.index,b=E.pos,I=E.key,_=E.parentPos,L=E.level,D={node:C,index:w,key:I,pos:b,level:L},N=f(I,b);g[b]=D,A[N]=D,D.parent=g[_],D.parent&&(D.parent.children=D.parent.children||[],D.parent.children.push(D)),u&&u(D,y)},p),h&&h(y),y}function e(t,i){var l=i.expandedKeys,u=i.selectedKeys,h=i.loadedKeys,p=i.loadingKeys,g=i.checkedKeys,A=i.halfCheckedKeys,y=i.dragOverNodeKey,E=i.dropPosition,C=i.keyEntities,w=C[t],b={eventKey:t,expanded:l.indexOf(t)!==-1,selected:u.indexOf(t)!==-1,loaded:h.indexOf(t)!==-1,loading:p.indexOf(t)!==-1,checked:g.indexOf(t)!==-1,halfChecked:A.indexOf(t)!==-1,pos:String(w?w.pos:""),dragOver:y===t&&E===0,dragOverGapTop:y===t&&E===-1,dragOverGapBottom:y===t&&E===1};return b}function s(t){var i=t.data,l=t.expanded,u=t.selected,h=t.checked,p=t.loaded,g=t.loading,A=t.halfChecked,y=t.dragOver,E=t.dragOverGapTop,C=t.dragOverGapBottom,w=t.pos,b=t.active,I=Object(x.a)(Object(x.a)({},i),{},{expanded:l,selected:u,checked:h,loaded:p,loading:g,halfChecked:A,dragOver:y,dragOverGapTop:E,dragOverGapBottom:C,pos:w,active:b});return"props"in I||Object.defineProperty(I,"props",{get:function(){return Object(S.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),t}}),I}},c5Ni:function(U,P,d){},c5fP:function(U,P,d){"use strict";function O(ze){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(Ot){return typeof Ot}:O=function(Ot){return Ot&&typeof Symbol=="function"&&Ot.constructor===Symbol&&Ot!==Symbol.prototype?"symbol":typeof Ot},O(ze)}Object.defineProperty(P,"__esModule",{value:!0}),P._tr_init=Ye,P._tr_stored_block=it,P._tr_flush_block=Te,P._tr_tally=tt,P._tr_align=et;var x=v(d("6BzB"));function T(){if(typeof WeakMap!="function")return null;var ze=new WeakMap;return T=function(){return ze},ze}function v(ze){if(ze&&ze.__esModule)return ze;if(ze===null||O(ze)!=="object"&&typeof ze!="function")return{default:ze};var dt=T();if(dt&&dt.has(ze))return dt.get(ze);var Ot={},Tt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ct in ze)if(Object.prototype.hasOwnProperty.call(ze,Ct)){var Nt=Tt?Object.getOwnPropertyDescriptor(ze,Ct):null;Nt&&(Nt.get||Nt.set)?Object.defineProperty(Ot,Ct,Nt):Ot[Ct]=ze[Ct]}return Ot.default=ze,dt&&dt.set(ze,Ot),Ot}var S=4,m=0,f=1,c=2;function o(ze){for(var dt=ze.length;--dt>=0;)ze[dt]=0}var r=0,a=1,n=2,e=3,s=258,t=29,i=256,l=i+1+t,u=30,h=19,p=2*l+1,g=15,A=16,y=7,E=256,C=16,w=17,b=18,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,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],L=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],N=512,R=new Array((l+2)*2);o(R);var B=new Array(u*2);o(B);var M=new Array(N);o(M);var H=new Array(s-e+1);o(H);var F=new Array(t);o(F);var K=new Array(u);o(K);function j(ze,dt,Ot,Tt,Ct){this.static_tree=ze,this.extra_bits=dt,this.extra_base=Ot,this.elems=Tt,this.max_length=Ct,this.has_stree=ze&&ze.length}var V,z,Y;function ee(ze,dt){this.dyn_tree=ze,this.max_code=0,this.stat_desc=dt}function fe(ze){return ze<256?M[ze]:M[256+(ze>>>7)]}function ie(ze,dt){ze.pending_buf[ze.pending++]=dt&255,ze.pending_buf[ze.pending++]=dt>>>8&255}function we(ze,dt,Ot){ze.bi_valid>A-Ot?(ze.bi_buf|=dt<<ze.bi_valid&65535,ie(ze,ze.bi_buf),ze.bi_buf=dt>>A-ze.bi_valid,ze.bi_valid+=Ot-A):(ze.bi_buf|=dt<<ze.bi_valid&65535,ze.bi_valid+=Ot)}function Ce(ze,dt,Ot){we(ze,Ot[dt*2],Ot[dt*2+1])}function Le(ze,dt){var Ot=0;do Ot|=ze&1,ze>>>=1,Ot<<=1;while(--dt>0);return Ot>>>1}function He(ze){ze.bi_valid===16?(ie(ze,ze.bi_buf),ze.bi_buf=0,ze.bi_valid=0):ze.bi_valid>=8&&(ze.pending_buf[ze.pending++]=ze.bi_buf&255,ze.bi_buf>>=8,ze.bi_valid-=8)}function ce(ze,dt){var Ot=dt.dyn_tree,Tt=dt.max_code,Ct=dt.stat_desc.static_tree,Nt=dt.stat_desc.has_stree,Be=dt.stat_desc.extra_bits,$=dt.stat_desc.extra_base,Z=dt.stat_desc.max_length,Re,De,ae,gt,jt,ut,rr=0;for(gt=0;gt<=g;gt++)ze.bl_count[gt]=0;for(Ot[ze.heap[ze.heap_max]*2+1]=0,Re=ze.heap_max+1;Re<p;Re++){if(De=ze.heap[Re],gt=Ot[Ot[De*2+1]*2+1]+1,gt>Z&&(gt=Z,rr++),Ot[De*2+1]=gt,De>Tt)continue;ze.bl_count[gt]++,jt=0,De>=$&&(jt=Be[De-$]),ut=Ot[De*2],ze.opt_len+=ut*(gt+jt),Nt&&(ze.static_len+=ut*(Ct[De*2+1]+jt))}if(rr===0)return;do{for(gt=Z-1;ze.bl_count[gt]===0;)gt--;ze.bl_count[gt]--,ze.bl_count[gt+1]+=2,ze.bl_count[Z]--,rr-=2}while(rr>0);for(gt=Z;gt!==0;gt--)for(De=ze.bl_count[gt];De!==0;){if(ae=ze.heap[--Re],ae>Tt)continue;Ot[ae*2+1]!==gt&&(ze.opt_len+=(gt-Ot[ae*2+1])*Ot[ae*2],Ot[ae*2+1]=gt),De--}}function Pe(ze,dt,Ot){var Tt=new Array(g+1),Ct=0,Nt,Be;for(Nt=1;Nt<=g;Nt++)Tt[Nt]=Ct=Ct+Ot[Nt-1]<<1;for(Be=0;Be<=dt;Be++){var $=ze[Be*2+1];if($===0)continue;ze[Be*2]=Le(Tt[$]++,$)}}function Q(){var ze,dt,Ot,Tt,Ct,Nt=new Array(g+1);for(Ot=0,Tt=0;Tt<t-1;Tt++)for(F[Tt]=Ot,ze=0;ze<1<<I[Tt];ze++)H[Ot++]=Tt;for(H[Ot-1]=Tt,Ct=0,Tt=0;Tt<16;Tt++)for(K[Tt]=Ct,ze=0;ze<1<<_[Tt];ze++)M[Ct++]=Tt;for(Ct>>=7;Tt<u;Tt++)for(K[Tt]=Ct<<7,ze=0;ze<1<<_[Tt]-7;ze++)M[256+Ct++]=Tt;for(dt=0;dt<=g;dt++)Nt[dt]=0;for(ze=0;ze<=143;)R[ze*2+1]=8,ze++,Nt[8]++;for(;ze<=255;)R[ze*2+1]=9,ze++,Nt[9]++;for(;ze<=279;)R[ze*2+1]=7,ze++,Nt[7]++;for(;ze<=287;)R[ze*2+1]=8,ze++,Nt[8]++;for(Pe(R,l+1,Nt),ze=0;ze<u;ze++)B[ze*2+1]=5,B[ze*2]=Le(ze,5);V=new j(R,I,i+1,l,g),z=new j(B,_,0,u,g),Y=new j(new Array(0),L,0,h,y)}function me(ze){var dt;for(dt=0;dt<l;dt++)ze.dyn_ltree[dt*2]=0;for(dt=0;dt<u;dt++)ze.dyn_dtree[dt*2]=0;for(dt=0;dt<h;dt++)ze.bl_tree[dt*2]=0;ze.dyn_ltree[E*2]=1,ze.opt_len=ze.static_len=0,ze.last_lit=ze.matches=0}function Je(ze){ze.bi_valid>8?ie(ze,ze.bi_buf):ze.bi_valid>0&&(ze.pending_buf[ze.pending++]=ze.bi_buf),ze.bi_buf=0,ze.bi_valid=0}function re(ze,dt,Ot,Tt){Je(ze),Tt&&(ie(ze,Ot),ie(ze,~Ot)),x.arraySet(ze.pending_buf,ze.window,dt,Ot,ze.pending),ze.pending+=Ot}function G(ze,dt,Ot,Tt){var Ct=dt*2,Nt=Ot*2;return ze[Ct]<ze[Nt]||ze[Ct]===ze[Nt]&&Tt[dt]<=Tt[Ot]}function X(ze,dt,Ot){for(var Tt=ze.heap[Ot],Ct=Ot<<1;Ct<=ze.heap_len&&!(Ct<ze.heap_len&&G(dt,ze.heap[Ct+1],ze.heap[Ct],ze.depth)&&Ct++,G(dt,Tt,ze.heap[Ct],ze.depth));)ze.heap[Ot]=ze.heap[Ct],Ot=Ct,Ct<<=1;ze.heap[Ot]=Tt}function J(ze,dt,Ot){var Tt,Ct,Nt=0,Be,$;if(ze.last_lit!==0)do Tt=ze.pending_buf[ze.d_buf+Nt*2]<<8|ze.pending_buf[ze.d_buf+Nt*2+1],Ct=ze.pending_buf[ze.l_buf+Nt],Nt++,Tt===0?Ce(ze,Ct,dt):(Be=H[Ct],Ce(ze,Be+i+1,dt),$=I[Be],$!==0&&(Ct-=F[Be],we(ze,Ct,$)),Tt--,Be=fe(Tt),Ce(ze,Be,Ot),$=_[Be],$!==0&&(Tt-=K[Be],we(ze,Tt,$)));while(Nt<ze.last_lit);Ce(ze,E,dt)}function Ae(ze,dt){var Ot=dt.dyn_tree,Tt=dt.stat_desc.static_tree,Ct=dt.stat_desc.has_stree,Nt=dt.stat_desc.elems,Be,$,Z=-1,Re;for(ze.heap_len=0,ze.heap_max=p,Be=0;Be<Nt;Be++)Ot[Be*2]!==0?(ze.heap[++ze.heap_len]=Z=Be,ze.depth[Be]=0):Ot[Be*2+1]=0;for(;ze.heap_len<2;)Re=ze.heap[++ze.heap_len]=Z<2?++Z:0,Ot[Re*2]=1,ze.depth[Re]=0,ze.opt_len--,Ct&&(ze.static_len-=Tt[Re*2+1]);for(dt.max_code=Z,Be=ze.heap_len>>1;Be>=1;Be--)X(ze,Ot,Be);Re=Nt;do Be=ze.heap[1],ze.heap[1]=ze.heap[ze.heap_len--],X(ze,Ot,1),$=ze.heap[1],ze.heap[--ze.heap_max]=Be,ze.heap[--ze.heap_max]=$,Ot[Re*2]=Ot[Be*2]+Ot[$*2],ze.depth[Re]=(ze.depth[Be]>=ze.depth[$]?ze.depth[Be]:ze.depth[$])+1,Ot[Be*2+1]=Ot[$*2+1]=Re,ze.heap[1]=Re++,X(ze,Ot,1);while(ze.heap_len>=2);ze.heap[--ze.heap_max]=ze.heap[1],ce(ze,dt),Pe(Ot,Z,ze.bl_count)}function he(ze,dt,Ot){var Tt,Ct=-1,Nt,Be=dt[0*2+1],$=0,Z=7,Re=4;for(Be===0&&(Z=138,Re=3),dt[(Ot+1)*2+1]=65535,Tt=0;Tt<=Ot;Tt++){if(Nt=Be,Be=dt[(Tt+1)*2+1],++$<Z&&Nt===Be)continue;$<Re?ze.bl_tree[Nt*2]+=$:Nt!==0?(Nt!==Ct&&ze.bl_tree[Nt*2]++,ze.bl_tree[C*2]++):$<=10?ze.bl_tree[w*2]++:ze.bl_tree[b*2]++,$=0,Ct=Nt,Be===0?(Z=138,Re=3):Nt===Be?(Z=6,Re=3):(Z=7,Re=4)}}function Me(ze,dt,Ot){var Tt,Ct=-1,Nt,Be=dt[0*2+1],$=0,Z=7,Re=4;for(Be===0&&(Z=138,Re=3),Tt=0;Tt<=Ot;Tt++){if(Nt=Be,Be=dt[(Tt+1)*2+1],++$<Z&&Nt===Be)continue;if($<Re)do Ce(ze,Nt,ze.bl_tree);while(--$!==0);else Nt!==0?(Nt!==Ct&&(Ce(ze,Nt,ze.bl_tree),$--),Ce(ze,C,ze.bl_tree),we(ze,$-3,2)):$<=10?(Ce(ze,w,ze.bl_tree),we(ze,$-3,3)):(Ce(ze,b,ze.bl_tree),we(ze,$-11,7));$=0,Ct=Nt,Be===0?(Z=138,Re=3):Nt===Be?(Z=6,Re=3):(Z=7,Re=4)}}function Ie(ze){var dt;for(he(ze,ze.dyn_ltree,ze.l_desc.max_code),he(ze,ze.dyn_dtree,ze.d_desc.max_code),Ae(ze,ze.bl_desc),dt=h-1;dt>=3&&!(ze.bl_tree[D[dt]*2+1]!==0);dt--);return ze.opt_len+=3*(dt+1)+5+5+4,dt}function oe(ze,dt,Ot,Tt){var Ct;for(we(ze,dt-257,5),we(ze,Ot-1,5),we(ze,Tt-4,4),Ct=0;Ct<Tt;Ct++)we(ze,ze.bl_tree[D[Ct]*2+1],3);Me(ze,ze.dyn_ltree,dt-1),Me(ze,ze.dyn_dtree,Ot-1)}function pe(ze){var dt=4093624447,Ot;for(Ot=0;Ot<=31;Ot++,dt>>>=1)if(dt&1&&ze.dyn_ltree[Ot*2]!==0)return m;if(ze.dyn_ltree[9*2]!==0||ze.dyn_ltree[10*2]!==0||ze.dyn_ltree[13*2]!==0)return f;for(Ot=32;Ot<i;Ot++)if(ze.dyn_ltree[Ot*2]!==0)return f;return m}var Oe=!1;function Ye(ze){Oe||(Q(),Oe=!0),ze.l_desc=new ee(ze.dyn_ltree,V),ze.d_desc=new ee(ze.dyn_dtree,z),ze.bl_desc=new ee(ze.bl_tree,Y),ze.bi_buf=0,ze.bi_valid=0,me(ze)}function it(ze,dt,Ot,Tt){we(ze,(r<<1)+(Tt?1:0),3),re(ze,dt,Ot,!0)}function et(ze){we(ze,a<<1,3),Ce(ze,E,R),He(ze)}function Te(ze,dt,Ot,Tt){var Ct,Nt,Be=0;ze.level>0?(ze.strm.data_type===c&&(ze.strm.data_type=pe(ze)),Ae(ze,ze.l_desc),Ae(ze,ze.d_desc),Be=Ie(ze),Ct=ze.opt_len+3+7>>>3,Nt=ze.static_len+3+7>>>3,Nt<=Ct&&(Ct=Nt)):Ct=Nt=Ot+5,Ot+4<=Ct&&dt!==-1?it(ze,dt,Ot,Tt):ze.strategy===S||Nt===Ct?(we(ze,(a<<1)+(Tt?1:0),3),J(ze,R,B)):(we(ze,(n<<1)+(Tt?1:0),3),oe(ze,ze.l_desc.max_code+1,ze.d_desc.max_code+1,Be+1),J(ze,ze.dyn_ltree,ze.dyn_dtree)),me(ze),Tt&&Je(ze)}function tt(ze,dt,Ot){return ze.pending_buf[ze.d_buf+ze.last_lit*2]=dt>>>8&255,ze.pending_buf[ze.d_buf+ze.last_lit*2+1]=dt&255,ze.pending_buf[ze.l_buf+ze.last_lit]=Ot&255,ze.last_lit++,dt===0?ze.dyn_ltree[Ot*2]++:(ze.matches++,dt--,ze.dyn_ltree[(H[Ot]+i+1)*2]++,ze.dyn_dtree[fe(dt)*2]++),ze.last_lit===ze.lit_bufsize-1}},c8qY:function(U,P,d){var O=d("IwbS"),x=d("fls0");function T(n){this._ctor=n||x,this.group=new O.Group}var v=T.prototype;v.isPersistent=function(){return!0},v.updateData=function(n){var e=this,s=e.group,t=e._lineData;e._lineData=n,t||s.removeAll();var i=c(n);n.diff(t).add(function(l){S(e,n,l,i)}).update(function(l,u){m(e,t,n,u,l,i)}).remove(function(l){s.remove(t.getItemGraphicEl(l))}).execute()};function S(n,e,s,t){var i=e.getItemLayout(s);if(!r(i))return;var l=new n._ctor(e,s,t);e.setItemGraphicEl(s,l),n.group.add(l)}function m(n,e,s,t,i,l){var u=e.getItemGraphicEl(t);if(!r(s.getItemLayout(i))){n.group.remove(u);return}u?u.updateData(s,i,l):u=new n._ctor(s,i,l),s.setItemGraphicEl(i,u),n.group.add(u)}v.updateLayout=function(){var n=this._lineData;if(!n)return;n.eachItemGraphicEl(function(e,s){e.updateLayout(n,s)},this)},v.incrementalPrepareUpdate=function(n){this._seriesScope=c(n),this._lineData=null,this.group.removeAll()};function f(n){return n.animators&&n.animators.length>0}v.incrementalUpdate=function(n,e){function s(u){!u.isGroup&&!f(u)&&(u.incremental=u.useHoverLayer=!0)}for(var t=n.start;t<n.end;t++){var i=e.getItemLayout(t);if(r(i)){var l=new this._ctor(e,t,this._seriesScope);l.traverse(s),this.group.add(l),e.setItemGraphicEl(t,l)}}};function c(n){var e=n.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}v.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},v._clearIncremental=function(){var n=this._incremental;n&&n.clearDisplaybles()};function o(n){return isNaN(n[0])||isNaN(n[1])}function r(n){return!o(n[0])&&!o(n[1])}var a=T;U.exports=a},cCMj:function(U,P,d){var O=d("bYtY"),x={updateSelectedMap:function(T){this._targetList=O.isArray(T)?T.slice():[],this._selectTargetMap=O.reduce(T||[],function(v,S){return v.set(S.name,S),v},O.createHashMap())},select:function(T,v){var S=v!=null?this._targetList[v]:this._selectTargetMap.get(T),m=this.get("selectedMode");m==="single"&&this._selectTargetMap.each(function(f){f.selected=!1}),S&&(S.selected=!0)},unSelect:function(T,v){var S=v!=null?this._targetList[v]:this._selectTargetMap.get(T);S&&(S.selected=!1)},toggleSelected:function(T,v){var S=v!=null?this._targetList[v]:this._selectTargetMap.get(T);if(S!=null)return this[S.selected?"unSelect":"select"](T,v),S.selected},isSelected:function(T,v){var S=v!=null?this._targetList[v]:this._selectTargetMap.get(T);return S&&S.selected}};U.exports=x},cVA7:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=d("MT78"),x=S(O),T=d("t3Fx"),v=S(T);function S(r){return r&&r.__esModule?r:{default:r}}function m(r,a){if(!(r instanceof a))throw new TypeError("Cannot call a class as a function")}function f(r,a){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:r}function c(r,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);r.prototype=Object.create(a&&a.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(r,a):r.__proto__=a)}var o=function(r){c(a,r);function a(n){m(this,a);var e=f(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,n));return e.echartsLib=x.default,e}return a}(v.default);P.default=o},cWXX:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("oIFs"),v=d.n(T)},ca2m:function(U,P,d){var O=d("bYtY"),x={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},T={};T.categoryAxis=O.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},x),T.valueAxis=O.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},x),T.timeAxis=O.defaults({scale:!0,min:"dataMin",max:"dataMax"},T.valueAxis),T.logAxis=O.defaults({scale:!0,logBase:10},T.valueAxis);var v=T;U.exports=v},cbJ4:function(U,P,d){var O=d("bYtY"),x=O.createHashMap;function T(v){v.eachSeriesByType("themeRiver",function(S){var m=S.getData(),f=S.getRawData(),c=S.get("color"),o=x();m.each(function(r){o.set(m.getRawIndex(r),r)}),f.each(function(r){var a=f.getName(r),n=c[(S.nameMap.get(a)-1)%c.length];f.setItemVisual(r,"color",n);var e=o.get(r);e!=null&&m.setItemVisual(e,"color",n)})})}U.exports=T},chpo:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=1,x=function(){return"".concat(O++)};P.default=x},cpOr:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("T4UG"),v=d("YXkt"),S=d("bYtY"),m=S.concatArray,f=S.mergeAll,c=S.map,o=d("7aKB"),r=o.encodeHTML,a=d("IDmD"),n=typeof Uint32Array=="undefined"?Array:Uint32Array,e=typeof Float64Array=="undefined"?Array:Float64Array;function s(l){var u=l.data;u&&u[0]&&u[0][0]&&u[0][0].coord&&(l.data=c(u,function(h){var p=[h[0].coord,h[1].coord],g={coords:p};return h[0].name&&(g.fromName=h[0].name),h[1].name&&(g.toName=h[1].name),f([g,h[0],h[1]])}))}var t=T.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(l){l.data=l.data||[],s(l);var u=this._processFlatCoordsArray(l.data);this._flatCoords=u.flatCoords,this._flatCoordsOffset=u.flatCoordsOffset,u.flatCoords&&(l.data=new Float32Array(u.count)),t.superApply(this,"init",arguments)},mergeOption:function(l){if(l.data=l.data||[],s(l),l.data){var u=this._processFlatCoordsArray(l.data);this._flatCoords=u.flatCoords,this._flatCoordsOffset=u.flatCoordsOffset,u.flatCoords&&(l.data=new Float32Array(u.count))}t.superApply(this,"mergeOption",arguments)},appendData:function(l){var u=this._processFlatCoordsArray(l.data);u.flatCoords&&(this._flatCoords?(this._flatCoords=m(this._flatCoords,u.flatCoords),this._flatCoordsOffset=m(this._flatCoordsOffset,u.flatCoordsOffset)):(this._flatCoords=u.flatCoords,this._flatCoordsOffset=u.flatCoordsOffset),l.data=new Float32Array(u.count)),this.getRawData().appendData(l.data)},_getCoordsFromItemModel:function(l){var u=this.getData().getItemModel(l),h=u.option instanceof Array?u.option:u.getShallow("coords");return h},getLineCoordsCount:function(l){return this._flatCoordsOffset?this._flatCoordsOffset[l*2+1]:this._getCoordsFromItemModel(l).length},getLineCoords:function(l,u){if(this._flatCoordsOffset){for(var h=this._flatCoordsOffset[l*2],p=this._flatCoordsOffset[l*2+1],g=0;g<p;g++)u[g]=u[g]||[],u[g][0]=this._flatCoords[h+g*2],u[g][1]=this._flatCoords[h+g*2+1];return p}else{for(var A=this._getCoordsFromItemModel(l),g=0;g<A.length;g++)u[g]=u[g]||[],u[g][0]=A[g][0],u[g][1]=A[g][1];return A.length}},_processFlatCoordsArray:function(l){var u=0;if(this._flatCoords&&(u=this._flatCoords.length),typeof l[0]=="number"){for(var h=l.length,p=new n(h),g=new e(h),A=0,y=0,E=0,C=0;C<h;){E++;var w=l[C++];p[y++]=A+u,p[y++]=w;for(var b=0;b<w;b++){var I=l[C++],_=l[C++];g[A++]=I,g[A++]=_,C>h}}return{flatCoordsOffset:new Uint32Array(p.buffer,0,y),flatCoords:g,count:E}}return{flatCoordsOffset:null,flatCoords:null,count:l.length}},getInitialData:function(l,u){var h=new v(["value"],this);return h.hasItemOption=!1,h.initData(l.data,[],function(p,g,A,y){if(p instanceof Array)return NaN;h.hasItemOption=!0;var E=p.value;if(E!=null)return E instanceof Array?E[y]:E}),h},formatTooltip:function(l){var u=this.getData(),h=u.getItemModel(l),p=h.get("name");if(p)return p;var g=h.get("fromName"),A=h.get("toName"),y=[];return g!=null&&y.push(g),A!=null&&y.push(A),r(y.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var l=this.option.progressive;return l==null?this.option.large?1e4:this.get("progressive"):l},getProgressiveThreshold:function(){var l=this.option.progressiveThreshold;return l==null?this.option.large?2e4:this.get("progressiveThreshold"):l},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),i=t;U.exports=i},crZl:function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("IwbS"),v=d("7aKB"),S=d("+TT/"),m=d("XxSj"),f=O.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(c,o){this.ecModel=c,this.api=o,this.visualMapModel},render:function(c,o,r,a){if(this.visualMapModel=c,c.get("show")===!1){this.group.removeAll();return}this.doRender.apply(this,arguments)},renderBackground:function(c){var o=this.visualMapModel,r=v.normalizeCssArray(o.get("padding")||0),a=c.getBoundingRect();c.add(new T.Rect({z2:-1,silent:!0,shape:{x:a.x-r[3],y:a.y-r[0],width:a.width+r[3]+r[1],height:a.height+r[0]+r[2]},style:{fill:o.get("backgroundColor"),stroke:o.get("borderColor"),lineWidth:o.get("borderWidth")}}))},getControllerVisual:function(c,o,r){r=r||{};var a=r.forceState,n=this.visualMapModel,e={};if(o==="symbol"&&(e.symbol=n.get("itemSymbol")),o==="color"){var s=n.get("contentColor");e.color=s}function t(h){return e[h]}function i(h,p){e[h]=p}var l=n.controllerVisuals[a||n.getValueState(c)],u=m.prepareVisualTypes(l);return x.each(u,function(h){var p=l[h];r.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",p=l.__alphaForOpacity),m.dependsOn(h,o)&&(p&&p.applyVisual(c,t,i))}),e[o]},positionGroup:function(c){var o=this.visualMapModel,r=this.api;S.positionElement(c,o.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})},doRender:x.noop});U.exports=f},crp1:function(U,P,d){"use strict";d.d(P,"b",function(){return Xt}),d.d(P,"a",function(){return Dn});var O={},x=function(at,bt,kt,Pt,Et){var Ht=O[bt]||(O[bt]=URL.createObjectURL(new Blob([at],{type:"text/javascript"}))),ot=new Worker(Ht);return ot.onerror=function(Mt){return Et(Mt.error,null)},ot.onmessage=function(Mt){return Et(null,Mt.data)},ot.postMessage(kt,Pt),ot},T=Uint8Array,v=Uint16Array,S=Uint32Array,m=new T([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]),f=new T([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]),c=new T([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=function(at,bt){for(var kt=new v(31),Pt=0;Pt<31;++Pt)kt[Pt]=bt+=1<<at[Pt-1];for(var Et=new S(kt[30]),Pt=1;Pt<30;++Pt)for(var Ht=kt[Pt];Ht<kt[Pt+1];++Ht)Et[Ht]=Ht-kt[Pt]<<5|Pt;return[kt,Et]},r=o(m,2),a=r[0],n=r[1];a[28]=258,n[258]=28;for(var e=o(f,0),s=e[0],t=e[1],i=new v(32768),l=0;l<32768;++l){var u=(l&43690)>>>1|(l&21845)<<1;u=(u&52428)>>>2|(u&13107)<<2,u=(u&61680)>>>4|(u&3855)<<4,i[l]=((u&65280)>>>8|(u&255)<<8)>>>1}for(var h=function(at,bt,kt){for(var Pt=at.length,Et=0,Ht=new v(bt);Et<Pt;++Et)++Ht[at[Et]-1];var ot=new v(bt);for(Et=0;Et<bt;++Et)ot[Et]=ot[Et-1]+Ht[Et-1]<<1;var Mt;if(kt){Mt=new v(1<<bt);var xr=15-bt;for(Et=0;Et<Pt;++Et)if(at[Et])for(var ur=Et<<4|at[Et],gr=bt-at[Et],Qr=ot[at[Et]-1]++<<gr,ln=Qr|(1<<gr)-1;Qr<=ln;++Qr)Mt[i[Qr]>>>xr]=ur}else for(Mt=new v(Pt),Et=0;Et<Pt;++Et)Mt[Et]=i[ot[at[Et]-1]++]>>>15-at[Et];return Mt},p=new T(288),l=0;l<144;++l)p[l]=8;for(var l=144;l<256;++l)p[l]=9;for(var l=256;l<280;++l)p[l]=7;for(var l=280;l<288;++l)p[l]=8;for(var g=new T(32),l=0;l<32;++l)g[l]=5;var A=h(p,9,0),y=h(p,9,1),E=h(g,5,0),C=h(g,5,1),w=function(at){for(var bt=at[0],kt=1;kt<at.length;++kt)at[kt]>bt&&(bt=at[kt]);return bt},b=function(at,bt,kt){var Pt=bt/8>>0;return(at[Pt]|at[Pt+1]<<8)>>>(bt&7)&kt},I=function(at,bt){var kt=bt/8>>0;return(at[kt]|at[kt+1]<<8|at[kt+2]<<16)>>>(bt&7)},_=function(at){return(at/8>>0)+(at&7&&1)},L=function(at,bt,kt){(bt==null||bt<0)&&(bt=0),(kt==null||kt>at.length)&&(kt=at.length);var Pt=new(at instanceof v?v:at instanceof S?S:T)(kt-bt);return Pt.set(at.subarray(bt,kt)),Pt},D=function(at,bt,kt){var Pt=at.length,Et=!bt||kt,Ht=!kt||kt.i;kt||(kt={}),bt||(bt=new T(Pt*3));var ot=function(fn){var zt=bt.length;if(fn>zt){var Dr=new T(Math.max(zt*2,fn));Dr.set(bt),bt=Dr}},Mt=kt.f||0,xr=kt.p||0,ur=kt.b||0,gr=kt.l,Qr=kt.d,ln=kt.m,_n=kt.n,Mn=Pt*8;do{if(!gr){kt.f=Mt=b(at,xr,1);var li=b(at,xr+1,3);if(xr+=3,li)if(li==1)gr=y,Qr=C,ln=9,_n=5;else if(li==2){var Ze=b(at,xr,31)+257,be=b(at,xr+10,15)+4,Ne=Ze+b(at,xr+5,31)+1;xr+=14;for(var Ue=new T(Ne),Qe=new T(19),Xe=0;Xe<be;++Xe)Qe[c[Xe]]=b(at,xr+Xe*3,7);xr+=be*3;var qe=w(Qe),yt=(1<<qe)-1;if(!Ht&&xr+Ne*(qe+7)>Mn)break;for(var ht=h(Qe,qe,1),Xe=0;Xe<Ne;){var Jt=ht[b(at,xr,yt)];xr+=Jt&15;var ai=Jt>>>4;if(ai<16)Ue[Xe++]=ai;else{var kr=0,_r=0;for(ai==16?(_r=3+b(at,xr,3),xr+=2,kr=Ue[Xe-1]):ai==17?(_r=3+b(at,xr,7),xr+=3):ai==18&&(_r=11+b(at,xr,127),xr+=7);_r--;)Ue[Xe++]=kr}}var Xr=Ue.subarray(0,Ze),Bt=Ue.subarray(Ze);ln=w(Xr),_n=w(Bt),gr=h(Xr,ln,1),Qr=h(Bt,_n,1)}else throw"invalid block type";else{var ai=_(xr)+4,pi=at[ai-4]|at[ai-3]<<8,Oi=ai+pi;if(Oi>Pt){if(Ht)throw"unexpected EOF";break}Et&&ot(ur+pi),bt.set(at.subarray(ai,Oi),ur),kt.b=ur+=pi,kt.p=xr=Oi*8;continue}if(xr>Mn)throw"unexpected EOF"}Et&&ot(ur+131072);for(var gn=(1<<ln)-1,hr=(1<<_n)-1,vn=ln+_n+18;Ht||xr+vn<Mn;){var kr=gr[I(at,xr)&gn],en=kr>>>4;if(xr+=kr&15,xr>Mn)throw"unexpected EOF";if(!kr)throw"invalid length/literal";if(en<256)bt[ur++]=en;else if(en==256){gr=null;break}else{var Dt=en-254;if(en>264){var Xe=en-257,jr=m[Xe];Dt=b(at,xr,(1<<jr)-1)+a[Xe],xr+=jr}var un=Qr[I(at,xr)&hr],Hr=un>>>4;if(!un)throw"invalid distance";xr+=un&15;var Bt=s[Hr];if(Hr>3){var jr=f[Hr];Bt+=I(at,xr)&(1<<jr)-1,xr+=jr}if(xr>Mn)throw"unexpected EOF";Et&&ot(ur+131072);for(var Wt=ur+Dt;ur<Wt;ur+=4)bt[ur]=bt[ur-Bt],bt[ur+1]=bt[ur+1-Bt],bt[ur+2]=bt[ur+2-Bt],bt[ur+3]=bt[ur+3-Bt];ur=Wt}}kt.l=gr,kt.p=xr,kt.b=ur,gr&&(Mt=1,kt.m=ln,kt.d=Qr,kt.n=_n)}while(!Mt);return ur==bt.length?bt:L(bt,0,ur)},N=function(at,bt,kt){kt<<=bt&7;var Pt=bt/8>>0;at[Pt]|=kt,at[Pt+1]|=kt>>>8},R=function(at,bt,kt){kt<<=bt&7;var Pt=bt/8>>0;at[Pt]|=kt,at[Pt+1]|=kt>>>8,at[Pt+2]|=kt>>>16},B=function(at,bt){for(var kt=[],Pt=0;Pt<at.length;++Pt)at[Pt]&&kt.push({s:Pt,f:at[Pt]});var Et=kt.length,Ht=kt.slice();if(!Et)return[new T(0),0];if(Et==1){var ot=new T(kt[0].s+1);return ot[kt[0].s]=1,[ot,1]}kt.sort(function(Ne,Ue){return Ne.f-Ue.f}),kt.push({s:-1,f:25001});var Mt=kt[0],xr=kt[1],ur=0,gr=1,Qr=2;for(kt[0]={s:-1,f:Mt.f+xr.f,l:Mt,r:xr};gr!=Et-1;)Mt=kt[kt[ur].f<kt[Qr].f?ur++:Qr++],xr=kt[ur!=gr&&kt[ur].f<kt[Qr].f?ur++:Qr++],kt[gr++]={s:-1,f:Mt.f+xr.f,l:Mt,r:xr};for(var ln=Ht[0].s,Pt=1;Pt<Et;++Pt)Ht[Pt].s>ln&&(ln=Ht[Pt].s);var _n=new v(ln+1),Mn=M(kt[gr-1],_n,0);if(Mn>bt){var Pt=0,li=0,ai=Mn-bt,pi=1<<ai;for(Ht.sort(function(Ue,Qe){return _n[Qe.s]-_n[Ue.s]||Ue.f-Qe.f});Pt<Et;++Pt){var Oi=Ht[Pt].s;if(_n[Oi]>bt)li+=pi-(1<<Mn-_n[Oi]),_n[Oi]=bt;else break}for(li>>>=ai;li>0;){var Ze=Ht[Pt].s;_n[Ze]<bt?li-=1<<bt-_n[Ze]++-1:++Pt}for(;Pt>=0&&li;--Pt){var be=Ht[Pt].s;_n[be]==bt&&(--_n[be],++li)}Mn=bt}return[new T(_n),Mn]},M=function _t(at,bt,kt){return at.s==-1?Math.max(_t(at.l,bt,kt+1),_t(at.r,bt,kt+1)):bt[at.s]=kt},H=function(at){for(var bt=at.length;bt&&!at[--bt];);for(var kt=new v(++bt),Pt=0,Et=at[0],Ht=1,ot=function(ur){kt[Pt++]=ur},Mt=1;Mt<=bt;++Mt)if(at[Mt]==Et&&Mt!=bt)++Ht;else{if(!Et&&Ht>2){for(;Ht>138;Ht-=138)ot(32754);Ht>2&&(ot(Ht>10?Ht-11<<5|28690:Ht-3<<5|12305),Ht=0)}else if(Ht>3){for(ot(Et),--Ht;Ht>6;Ht-=6)ot(8304);Ht>2&&(ot(Ht-3<<5|8208),Ht=0)}for(;Ht--;)ot(Et);Ht=1,Et=at[Mt]}return[kt.subarray(0,Pt),bt]},F=function(at,bt){for(var kt=0,Pt=0;Pt<bt.length;++Pt)kt+=at[Pt]*bt[Pt];return kt},K=function(at,bt,kt){var Pt=kt.length,Et=_(bt+2);at[Et]=Pt&255,at[Et+1]=Pt>>>8,at[Et+2]=at[Et]^255,at[Et+3]=at[Et+1]^255;for(var Ht=0;Ht<Pt;++Ht)at[Et+Ht+4]=kt[Ht];return(Et+4+Pt)*8},j=function(at,bt,kt,Pt,Et,Ht,ot,Mt,xr,ur,gr){N(bt,gr++,kt),++Et[256];for(var Qr=B(Et,15),ln=Qr[0],_n=Qr[1],Mn=B(Ht,15),li=Mn[0],ai=Mn[1],pi=H(ln),Oi=pi[0],Ze=pi[1],be=H(li),Ne=be[0],Ue=be[1],Qe=new v(19),Xe=0;Xe<Oi.length;++Xe)Qe[Oi[Xe]&31]++;for(var Xe=0;Xe<Ne.length;++Xe)Qe[Ne[Xe]&31]++;for(var qe=B(Qe,7),yt=qe[0],ht=qe[1],Jt=19;Jt>4&&!yt[c[Jt-1]];--Jt);var kr=ur+5<<3,_r=F(Et,p)+F(Ht,g)+ot,Xr=F(Et,ln)+F(Ht,li)+ot+14+3*Jt+F(Qe,yt)+(2*Qe[16]+3*Qe[17]+7*Qe[18]);if(kr<=_r&&kr<=Xr)return K(bt,gr,at.subarray(xr,xr+ur));var Bt,gn,hr,vn;if(N(bt,gr,1+(Xr<_r)),gr+=2,Xr<_r){Bt=h(ln,_n,0),gn=ln,hr=h(li,ai,0),vn=li;var en=h(yt,ht,0);N(bt,gr,Ze-257),N(bt,gr+5,Ue-1),N(bt,gr+10,Jt-4),gr+=14;for(var Xe=0;Xe<Jt;++Xe)N(bt,gr+3*Xe,yt[c[Xe]]);gr+=3*Jt;for(var Dt=[Oi,Ne],jr=0;jr<2;++jr)for(var un=Dt[jr],Xe=0;Xe<un.length;++Xe){var Hr=un[Xe]&31;N(bt,gr,en[Hr]),gr+=yt[Hr],Hr>15&&(N(bt,gr,un[Xe]>>>5&127),gr+=un[Xe]>>>12)}}else Bt=A,gn=p,hr=E,vn=g;for(var Xe=0;Xe<Mt;++Xe)if(Pt[Xe]>255){var Hr=Pt[Xe]>>>18&31;R(bt,gr,Bt[Hr+257]),gr+=gn[Hr+257],Hr>7&&(N(bt,gr,Pt[Xe]>>>23&31),gr+=m[Hr]);var Wt=Pt[Xe]&31;R(bt,gr,hr[Wt]),gr+=vn[Wt],Wt>3&&(R(bt,gr,Pt[Xe]>>>5&8191),gr+=f[Wt])}else R(bt,gr,Bt[Pt[Xe]]),gr+=gn[Pt[Xe]];return R(bt,gr,Bt[256]),gr+gn[256]},V=new S([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),z=new T(0),Y=function(at,bt,kt,Pt,Et,Ht){var ot=at.length,Mt=new T(Pt+ot+5*(1+Math.floor(ot/7e3))+Et),xr=Mt.subarray(Pt,Mt.length-Et),ur=0;if(!bt||ot<8)for(var gr=0;gr<=ot;gr+=65535){var Qr=gr+65535;Qr<ot?ur=K(xr,ur,at.subarray(gr,Qr)):(xr[gr]=Ht,ur=K(xr,ur,at.subarray(gr,ot)))}else{for(var ln=V[bt-1],_n=ln>>>13,Mn=ln&8191,li=(1<<kt)-1,ai=new v(32768),pi=new v(li+1),Oi=Math.ceil(kt/3),Ze=2*Oi,be=function(Cr){return(at[Cr]^at[Cr+1]<<Oi^at[Cr+2]<<Ze)&li},Ne=new S(25e3),Ue=new v(288),Qe=new v(32),Xe=0,qe=0,gr=0,yt=0,ht=0,Jt=0;gr<ot;++gr){var kr=be(gr),_r=gr&32767,Xr=pi[kr];if(ai[_r]=Xr,pi[kr]=_r,ht<=gr){var Bt=ot-gr;if((Xe>7e3||yt>24576)&&Bt>423){ur=j(at,xr,0,Ne,Ue,Qe,qe,yt,Jt,gr-Jt,ur),yt=Xe=qe=0,Jt=gr;for(var gn=0;gn<286;++gn)Ue[gn]=0;for(var gn=0;gn<30;++gn)Qe[gn]=0}var hr=2,vn=0,en=Mn,Dt=_r-Xr&32767;if(Bt>2&&kr==be(gr-Dt))for(var jr=Math.min(_n,Bt)-1,un=Math.min(32767,gr),Hr=Math.min(258,Bt);Dt<=un&&--en&&_r!=Xr;){if(at[gr+hr]==at[gr+hr-Dt]){for(var Wt=0;Wt<Hr&&at[gr+Wt]==at[gr+Wt-Dt];++Wt);if(Wt>hr){if(hr=Wt,vn=Dt,Wt>jr)break;for(var wr=Math.min(Dt,Wt-2),fn=0,gn=0;gn<wr;++gn){var zt=gr-Dt+gn+32768&32767,Dr=ai[zt],ir=zt-Dr+32768&32767;ir>fn&&(fn=ir,Xr=zt)}}}_r=Xr,Xr=ai[_r],Dt+=_r-Xr+32768&32767}if(vn){Ne[yt++]=268435456|n[hr]<<18|t[vn];var Lt=n[hr]&31,Qt=t[vn]&31;qe+=m[Lt]+f[Qt],++Ue[257+Lt],++Qe[Qt],ht=gr+hr,++Xe}else Ne[yt++]=at[gr],++Ue[at[gr]]}}ur=j(at,xr,Ht,Ne,Ue,Qe,qe,yt,Jt,gr-Jt,ur),Ht||(ur=K(xr,ur,z))}return L(Mt,0,Pt+_(ur)+Et)},ee=function(){for(var _t=new S(256),at=0;at<256;++at){for(var bt=at,kt=9;--kt;)bt=(bt&1&&3988292384)^bt>>>1;_t[at]=bt}return _t}(),fe=function(){var at=4294967295;return{p:function(kt){for(var Pt=at,Et=0;Et<kt.length;++Et)Pt=ee[Pt&255^kt[Et]]^Pt>>>8;at=Pt},d:function(){return at^4294967295}}},ie=function(){var at=1,bt=0;return{p:function(Pt){for(var Et=at,Ht=bt,ot=Pt.length,Mt=0;Mt!=ot;){for(var xr=Math.min(Mt+5552,ot);Mt<xr;++Mt)Et+=Pt[Mt],Ht+=Et;Et%=65521,Ht%=65521}at=Et,bt=Ht},d:function(){return(at>>>8<<16|(bt&255)<<8|bt>>>8)+((at&255)<<23)*2}}},we=function(at,bt,kt,Pt,Et){return Y(at,bt.level==null?6:bt.level,bt.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(at.length)))*1.5):12+bt.mem,kt,Pt,!Et)},Ce=function(at,bt){var kt={};for(var Pt in at)kt[Pt]=at[Pt];for(var Pt in bt)kt[Pt]=bt[Pt];return kt},Le=function(at,bt,kt){for(var Pt=at(),Et=at.toString(),Ht=Et.slice(Et.indexOf("[")+1,Et.lastIndexOf("]")).replace(/ /g,"").split(","),ot=0;ot<Pt.length;++ot){var Mt=Pt[ot],xr=Ht[ot];if(typeof Mt=="function"){bt+=";"+xr+"=";var ur=Mt.toString();if(Mt.prototype)if(ur.indexOf("[native code]")!=-1){var gr=ur.indexOf(" ",8)+1;bt+=ur.slice(gr,ur.indexOf("(",gr))}else{bt+=ur;for(var Qr in Mt.prototype)bt+=";"+xr+".prototype."+Qr+"="+Mt.prototype[Qr].toString()}else bt+=ur}else kt[xr]=Mt}return[bt,kt]},He=[],ce=function(at){var bt=[];for(var kt in at)(at[kt]instanceof T||at[kt]instanceof v||at[kt]instanceof S)&&bt.push((at[kt]=new at[kt].constructor(at[kt])).buffer);return bt},Pe=function(at,bt,kt,Pt){var Et;if(!He[kt]){for(var Ht="",ot={},Mt=at.length-1,xr=0;xr<Mt;++xr)Et=Le(at[xr],Ht,ot),Ht=Et[0],ot=Et[1];He[kt]=Le(at[Mt],Ht,ot)}var ur=Ce({},He[kt][1]);return x(He[kt][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+bt.toString()+"}",kt,ur,ce(ur),Pt)},Q=function(){return[T,v,S,m,f,c,a,s,y,C,i,h,w,b,I,_,L,D,Re,J,Ae]},me=function(){return[T,v,S,m,f,c,n,t,A,p,E,g,i,V,z,h,N,R,B,M,H,F,K,j,_,L,Y,we,Nt,J]},Je=function(){return[Ye,Te,Oe,fe,ee]},re=function(){return[it,et]},G=function(){return[tt,Oe,ie]},X=function(){return[ze]},J=function(at){return postMessage(at,[at.buffer])},Ae=function(at){return at&&at.size&&new T(at.size)},he=function(at,bt,kt,Pt,Et,Ht){var ot=Pe(kt,Pt,Et,function(Mt,xr){ot.terminate(),Ht(Mt,xr)});return bt.consume||(at=new T(at)),ot.postMessage([at,bt],[at.buffer]),function(){ot.terminate()}},Me=function(at){return at.ondata=function(bt,kt){return postMessage([bt,kt],[bt.buffer])},function(bt){return at.push(bt.data[0],bt.data[1])}},Ie=function(at,bt,kt,Pt,Et){var Ht,ot=Pe(at,Pt,Et,function(Mt,xr){Mt?(ot.terminate(),bt.ondata.call(bt,Mt)):(xr[1]&&ot.terminate(),bt.ondata.call(bt,Mt,xr[0],xr[1]))});ot.postMessage(kt),bt.push=function(Mt,xr){if(Ht)throw"stream finished";if(!bt.ondata)throw"no stream handler";ot.postMessage([Mt,Ht=xr],[Mt.buffer])},bt.terminate=function(){ot.terminate()}},oe=function(at,bt){return at[bt]|at[bt+1]<<8},pe=function(at,bt){return(at[bt]|at[bt+1]<<8|at[bt+2]<<16)+(at[bt+3]<<23)*2},Oe=function(at,bt,kt){for(;kt;++bt)at[bt]=kt,kt>>>=8},Ye=function(at,bt){var kt=bt.filename;if(at[0]=31,at[1]=139,at[2]=8,at[8]=bt.level<2?4:bt.level==9?2:0,at[9]=3,bt.mtime!=0&&Oe(at,4,Math.floor(new Date(bt.mtime||Date.now())/1e3)),kt){at[3]=8;for(var Pt=0;Pt<=kt.length;++Pt)at[Pt+10]=kt.charCodeAt(Pt)}},it=function(at){if(at[0]!=31||at[1]!=139||at[2]!=8)throw"invalid gzip data";var bt=at[3],kt=10;bt&4&&(kt+=at[10]|(at[11]<<8)+2);for(var Pt=(bt>>3&1)+(bt>>4&1);Pt>0;Pt-=!at[kt++]);return kt+(bt&2)},et=function(at){var bt=at.length;return(at[bt-4]|at[bt-3]<<8|at[bt-2]<<16)+2*(at[bt-1]<<23)},Te=function(at){return 10+(at.filename&&at.filename.length+1||0)},tt=function(at,bt){var kt=bt.level,Pt=kt==0?0:kt<6?1:kt==9?3:2;at[0]=120,at[1]=Pt<<6|(Pt?32-2*Pt:1)},ze=function(at){if((at[0]&15)!=8||at[0]>>>4>7||(at[0]<<8|at[1])%31)throw"invalid zlib data";if(at[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function dt(_t,at){return!at&&typeof _t=="function"&&(at=_t,_t={}),this.ondata=at,_t}var Ot=function(){function _t(at,bt){!bt&&typeof at=="function"&&(bt=at,at={}),this.ondata=bt,this.o=at||{}}return _t.prototype.p=function(at,bt){this.ondata(we(at,this.o,0,0,!bt),bt)},_t.prototype.push=function(at,bt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=bt,this.p(at,bt||!1)},_t}(),Tt=function(){function _t(at,bt){Ie([me,function(){return[Me,Ot]}],this,dt.call(this,at,bt),function(kt){var Pt=new Ot(kt.data);onmessage=Me(Pt)},6)}return _t}();function Ct(_t,at,bt){if(bt||(bt=at,at={}),typeof bt!="function")throw"no callback";return he(_t,at,[me],function(kt){return J(Nt(kt.data[0],kt.data[1]))},0,bt)}function Nt(_t,at){return at===void 0&&(at={}),we(_t,at,0,0)}var Be=function(){function _t(at){this.s={},this.p=new T(0),this.ondata=at}return _t.prototype.e=function(at){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var bt=this.p.length,kt=new T(bt+at.length);kt.set(this.p),kt.set(at,bt),this.p=kt},_t.prototype.c=function(at){this.d=this.s.i=at||!1;var bt=this.s.b,kt=D(this.p,this.o,this.s);this.ondata(L(kt,bt,this.s.b),this.d),this.o=L(kt,this.s.b-32768),this.s.b=this.o.length,this.p=L(this.p,this.s.p/8>>0),this.s.p&=7},_t.prototype.push=function(at,bt){this.e(at),this.c(bt)},_t}(),$=function(){function _t(at){this.ondata=at,Ie([Q,function(){return[Me,Be]}],this,0,function(){var bt=new Be;onmessage=Me(bt)},7)}return _t}();function Z(_t,at,bt){if(bt||(bt=at,at={}),typeof bt!="function")throw"no callback";return he(_t,at,[Q],function(kt){return J(Re(kt.data[0],Ae(kt.data[1])))},1,bt)}function Re(_t,at){return D(_t,at)}var De=function(){function _t(at,bt){this.c=fe(),this.l=0,this.v=1,Ot.call(this,at,bt)}return _t.prototype.push=function(at,bt){Ot.prototype.push.call(this,at,bt)},_t.prototype.p=function(at,bt){this.c.p(at),this.l+=at.length;var kt=we(at,this.o,this.v&&Te(this.o),bt&&8,!bt);this.v&&(Ye(kt,this.o),this.v=0),bt&&(Oe(kt,kt.length-8,this.c.d()),Oe(kt,kt.length-4,this.l)),this.ondata(kt,bt)},_t}(),ae=function(){function _t(at,bt){Ie([me,Je,function(){return[Me,Ot,De]}],this,dt.call(this,at,bt),function(kt){var Pt=new De(kt.data);onmessage=Me(Pt)},8)}return _t}();function gt(_t,at,bt){if(bt||(bt=at,at={}),typeof bt!="function")throw"no callback";return he(_t,at,[me,Je,function(){return[jt]}],function(kt){return J(jt(kt.data[0],kt.data[1]))},2,bt)}function jt(_t,at){at===void 0&&(at={});var bt=fe(),kt=_t.length;bt.p(_t);var Pt=we(_t,at,Te(at),8),Et=Pt.length;return Ye(Pt,at),Oe(Pt,Et-8,bt.d()),Oe(Pt,Et-4,kt),Pt}var ut=function(){function _t(at){this.v=1,Be.call(this,at)}return _t.prototype.push=function(at,bt){if(Be.prototype.e.call(this,at),this.v){var kt=it(this.p);if(kt>=this.p.length&&!bt)return;this.p=this.p.subarray(kt),this.v=0}if(bt){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Be.prototype.c.call(this,bt)},_t}(),rr=function(){function _t(at){this.ondata=at,Ie([Q,re,function(){return[Me,Be,ut]}],this,0,function(){var bt=new ut;onmessage=Me(bt)},9)}return _t}();function pr(_t,at,bt){if(bt||(bt=at,at={}),typeof bt!="function")throw"no callback";return he(_t,at,[Q,re,function(){return[nn]}],function(kt){return J(nn(kt.data[0]))},3,bt)}function nn(_t,at){return D(_t.subarray(it(_t),-8),at||new T(et(_t)))}var mr=function(){function _t(at,bt){this.c=ie(),this.v=1,Ot.call(this,at,bt)}return _t.prototype.push=function(at,bt){Ot.prototype.push.call(this,at,bt)},_t.prototype.p=function(at,bt){this.c.p(at);var kt=we(at,this.o,this.v&&2,bt&&4,!bt);this.v&&(tt(kt,this.o),this.v=0),bt&&Oe(kt,kt.length-4,this.c.d()),this.ondata(kt,bt)},_t}(),vr=function(){function _t(at,bt){Ie([me,G,function(){return[Me,Ot,mr]}],this,dt.call(this,at,bt),function(kt){var Pt=new mr(kt.data);onmessage=Me(Pt)},10)}return _t}();function $t(_t,at,bt){if(bt||(bt=at,at={}),typeof bt!="function")throw"no callback";return he(_t,at,[me,G,function(){return[Xt]}],function(kt){return J(Xt(kt.data[0],kt.data[1]))},4,bt)}function Xt(_t,at){at===void 0&&(at={});var bt=ie();bt.p(_t);var kt=we(_t,at,2,4);return tt(kt,at),Oe(kt,kt.length-4,bt.d()),kt}var ft=function(){function _t(at){this.v=1,Be.call(this,at)}return _t.prototype.push=function(at,bt){if(Be.prototype.e.call(this,at),this.v){if(this.p.length<2&&!bt)return;this.p=this.p.subarray(2),this.v=0}if(bt){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Be.prototype.c.call(this,bt)},_t}(),Ur=function(){function _t(at){this.ondata=at,Ie([Q,X,function(){return[Me,Be,ft]}],this,0,function(){var bt=new ft;onmessage=Me(bt)},11)}return _t}();function yn(_t,at,bt){if(bt||(bt=at,at={}),typeof bt!="function")throw"no callback";return he(_t,at,[Q,X,function(){return[Dn]}],function(kt){return J(Dn(kt.data[0],Ae(kt.data[1])))},5,bt)}function Dn(_t,at){return D((ze(_t),_t.subarray(2,-4)),at)}var Un=function(){function _t(at){this.G=ut,this.I=Be,this.Z=ft,this.ondata=at}return _t.prototype.push=function(at,bt){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(at,bt);else{if(this.p&&this.p.length){var kt=new T(this.p.length+at.length);kt.set(this.p),kt.set(at,this.p.length)}else this.p=at;if(this.p.length>2){var Pt=this,Et=function(){Pt.ondata.apply(Pt,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(Et):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(Et):new this.Z(Et),this.s.push(this.p,bt),this.p=null}}},_t}(),wi=function(){function _t(at){this.G=rr,this.I=$,this.Z=Ur,this.ondata=at}return _t.prototype.push=function(at,bt){Un.prototype.push.call(this,at,bt)},_t}();function Rn(_t,at,bt){if(bt||(bt=at,at={}),typeof bt!="function")throw"no callback";return _t[0]==31&&_t[1]==139&&_t[2]==8?pr(_t,at,bt):(_t[0]&15)!=8||_t[0]>>4>7||(_t[0]<<8|_t[1])%31?Z(_t,at,bt):yn(_t,at,bt)}function kn(_t,at){return _t[0]==31&&_t[1]==139&&_t[2]==8?nn(_t,at):(_t[0]&15)!=8||_t[0]>>4>7||(_t[0]<<8|_t[1])%31?Re(_t,at):Dn(_t,at)}var Vn=function _t(at,bt,kt,Pt){for(var Et in at){var Ht=at[Et],ot=bt+Et;Ht instanceof T?kt[ot]=[Ht,Pt]:Array.isArray(Ht)?kt[ot]=[Ht[0],Ce(Pt,Ht[1])]:_t(Ht,ot+"/",kt,Pt)}};function Gt(_t,at){var bt=_t.length;if(!at&&typeof TextEncoder!="undefined")return new TextEncoder().encode(_t);for(var kt=new T(_t.length+(_t.length>>>1)),Pt=0,Et=function(ur){kt[Pt++]=ur},Ht=0;Ht<bt;++Ht){if(Pt+5>kt.length){var ot=new T(Pt+8+(bt-Ht<<1));ot.set(kt),kt=ot}var Mt=_t.charCodeAt(Ht);Mt<128||at?Et(Mt):Mt<2048?(Et(192|Mt>>>6),Et(128|Mt&63)):Mt>55295&&Mt<57344?(Mt=65536+(Mt&1023<<10)|_t.charCodeAt(++Ht)&1023,Et(240|Mt>>>18),Et(128|Mt>>>12&63),Et(128|Mt>>>6&63),Et(128|Mt&63)):(Et(224|Mt>>>12),Et(128|Mt>>>6&63),Et(128|Mt&63))}return L(kt,0,Pt)}function st(_t,at){var bt="";if(!at&&typeof TextDecoder!="undefined")return new TextDecoder().decode(_t);for(var kt=0;kt<_t.length;){var Pt=_t[kt++];Pt<128||at?bt+=String.fromCharCode(Pt):Pt<224?bt+=String.fromCharCode((Pt&31)<<6|_t[kt++]&63):Pt<240?bt+=String.fromCharCode((Pt&15)<<12|(_t[kt++]&63)<<6|_t[kt++]&63):(Pt=((Pt&15)<<18|(_t[kt++]&63)<<12|(_t[kt++]&63)<<6|_t[kt++]&63)-65536,bt+=String.fromCharCode(55296|Pt>>10,56320|Pt&1023))}return bt}var ue=function(at,bt){return bt+30+oe(at,bt+26)+oe(at,bt+28)},Ee=function(at,bt,kt){var Pt=oe(at,bt+28),Et=st(at.subarray(bt+46,bt+46+Pt),!(oe(at,bt+8)&2048)),Ht=bt+46+Pt,ot=kt?je(at,Ht):[pe(at,bt+20),pe(at,bt+24),pe(at,bt+42)],Mt=ot[0],xr=ot[1],ur=ot[2];return[oe(at,bt+10),Mt,xr,Et,Ht+oe(at,bt+30)+oe(at,bt+32),ur]},je=function(at,bt){for(;oe(at,bt)!=1;bt+=4+oe(at,bt+2));return[pe(at,bt+12),pe(at,bt+4),pe(at,bt+20)]},Ve=function(at,bt,kt,Pt,Et,Ht,ot,Mt,xr,ur){var gr=Ht.length,Qr=Pt.length;Oe(at,bt,xr!=null?33639248:67324752),bt+=4,xr!=null&&(at[bt]=20,bt+=2),at[bt]=20,bt+=2,at[bt++]=ur==8&&(Mt.level==1?6:Mt.level<6?4:Mt.level==9?2:0),at[bt++]=ot&&8,at[bt]=ur,bt+=2;var ln=new Date(Mt.mtime||Date.now()),_n=ln.getFullYear()-1980;if(_n<0||_n>119)throw"date not in range 1980-2099";Oe(at,bt,(_n<<24)*2|ln.getMonth()+1<<21|ln.getDate()<<16|ln.getHours()<<11|ln.getMinutes()<<5|ln.getSeconds()>>>1),bt+=4,Oe(at,bt,kt),Oe(at,bt+4,Qr),Oe(at,bt+8,Et),Oe(at,bt+12,gr),bt+=16,xr!=null&&(Oe(at,bt+=10,xr),bt+=4),at.set(Ht,bt),bt+=gr,xr==null&&at.set(Pt,bt)},$e=function(at,bt,kt,Pt,Et){Oe(at,bt,101010256),Oe(at,bt+8,kt),Oe(at,bt+10,kt),Oe(at,bt+12,Pt),Oe(at,bt+16,Et)};function wt(_t,at,bt){if(bt||(bt=at,at={}),typeof bt!="function")throw"no callback";var kt={};Vn(_t,"",kt,at);var Pt=Object.keys(kt),Et=Pt.length,Ht=0,ot=0,Mt=Et,xr=new Array(Et),ur=[],gr=function(){for(var li=0;li<ur.length;++li)ur[li]()},Qr=function(){var li=new T(ot+22),ai=Ht,pi=ot-Ht;ot=0;for(var Oi=0;Oi<Mt;++Oi){var Ze=xr[Oi];try{Ve(li,ot,Ze.c,Ze.d,Ze.m,Ze.n,Ze.u,Ze.p,null,Ze.t),Ve(li,Ht,Ze.c,Ze.d,Ze.m,Ze.n,Ze.u,Ze.p,ot,Ze.t),Ht+=46+Ze.n.length,ot+=30+Ze.n.length+Ze.d.length}catch(be){return bt(be,null)}}$e(li,Ht,xr.length,pi,ai),bt(null,li)};Et||Qr();for(var ln=function(li){var ai=Pt[li],pi=kt[ai],Oi=pi[0],Ze=pi[1],be=fe(),Ne=Oi.length;be.p(Oi);var Ue=Gt(ai),Qe=Ue.length,Xe=Ze.level==0?0:8,qe=function(ht,Jt){if(ht)gr(),bt(ht,null);else{var kr=Jt.length;xr[li]={t:Xe,d:Jt,m:Ne,c:be.d(),u:ai.length!=kr,n:Ue,p:Ze},Ht+=30+Qe+kr,ot+=76+2*Qe+kr,--Et||Qr()}};if(Ue.length>65535&&qe("filename too long",null),!Xe)qe(null,Oi);else if(Ne<16e4)try{qe(null,Nt(Oi,Ze))}catch(yt){qe(yt,null)}else ur.push(Ct(Oi,Ze,qe))},_n=0;_n<Mt;++_n)ln(_n);return gr}function qt(_t,at){at===void 0&&(at={});var bt={},kt=[];Vn(_t,"",bt,at);var Pt=0,Et=0;for(var Ht in bt){var ot=bt[Ht],Mt=ot[0],xr=ot[1],ur=xr.level==0?0:8,gr=Gt(Ht),Qr=gr.length;if(gr.length>65535)throw"filename too long";var ln=ur?Nt(Mt,xr):Mt,_n=ln.length,Mn=fe();Mn.p(Mt),kt.push({t:ur,d:ln,m:Mt.length,c:Mn.d(),u:Ht.length!=Qr,n:gr,o:Pt,p:xr}),Pt+=30+Qr+_n,Et+=76+2*Qr+_n}for(var li=new T(Et+22),ai=Pt,pi=Et-Pt,Oi=0;Oi<kt.length;++Oi){var Ze=kt[Oi];Ve(li,Ze.o,Ze.c,Ze.d,Ze.m,Ze.n,Ze.u,Ze.p,null,Ze.t),Ve(li,Pt,Ze.c,Ze.d,Ze.m,Ze.n,Ze.u,Ze.p,Ze.o,Ze.t),Pt+=46+Ze.n.length}return $e(li,Pt,kt.length,pi,ai),li}function Mr(_t,at){if(typeof at!="function")throw"no callback";for(var bt=[],kt=function(){for(var ln=0;ln<bt.length;++ln)bt[ln]()},Pt={},Et=_t.length-22;pe(_t,Et)!=101010256;--Et)if(!Et||_t.length-Et>65558){at("invalid zip file",null);return}var Ht=oe(_t,Et+8);Ht||at(null,{});var ot=Ht,Mt=pe(_t,Et+16),xr=Mt==4294967295;if(xr){if(Et=pe(_t,Et-12),pe(_t,Et)!=101075792)throw"invalid zip file";ot=Ht=pe(_t,Et+32),Mt=pe(_t,Et+48)}for(var ur=function(ln){var _n=Ee(_t,Mt,xr),Mn=_n[0],li=_n[1],ai=_n[2],pi=_n[3],Oi=_n[4],Ze=_n[5],be=ue(_t,Ze);Mt=Oi;var Ne=function(Xe,qe){Xe?(kt(),at(Xe,null)):(Pt[pi]=qe,--Ht||at(null,Pt))};if(!Mn)Ne(null,L(_t,be,be+li));else if(Mn==8){var Ue=_t.subarray(be,be+li);if(li<32e4)try{Ne(null,Re(Ue,new T(ai)))}catch(Qe){Ne(Qe,null)}else bt.push(Z(Ue,{size:ai},Ne))}else Ne("unknown compression type "+Mn,null)},gr=0;gr<ot;++gr)ur(gr);return kt}function an(_t){for(var at={},bt=_t.length-22;pe(_t,bt)!=101010256;--bt)if(!bt||_t.length-bt>65558)throw"invalid zip file";var kt=oe(_t,bt+8);if(!kt)return{};var Pt=pe(_t,bt+16),Et=Pt==4294967295;if(Et){if(bt=pe(_t,bt-12),pe(_t,bt)!=101075792)throw"invalid zip file";kt=pe(_t,bt+32),Pt=pe(_t,bt+48)}for(var Ht=0;Ht<kt;++Ht){var ot=Ee(_t,Pt,Et),Mt=ot[0],xr=ot[1],ur=ot[2],gr=ot[3],Qr=ot[4],ln=ot[5],_n=ue(_t,ln);if(Pt=Qr,!Mt)at[gr]=L(_t,_n,_n+xr);else if(Mt==8)at[gr]=Re(_t.subarray(_n,_n+xr),new T(ur));else throw"unknown compression type "+Mt}return at}},cv67:function(U,P,d){(function(O,x){U.exports=P=x(d("Ib8C"))})(this,function(O){return function(x){var T=O,v=T.lib,S=v.WordArray,m=v.Hasher,f=T.algo,c=[];(function(){for(var s=0;s<64;s++)c[s]=x.abs(x.sin(s+1))*4294967296|0})();var o=f.MD5=m.extend({_doReset:function(){this._hash=new S.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,i){for(var l=0;l<16;l++){var u=i+l,h=t[u];t[u]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360}var p=this._hash.words,g=t[i+0],A=t[i+1],y=t[i+2],E=t[i+3],C=t[i+4],w=t[i+5],b=t[i+6],I=t[i+7],_=t[i+8],L=t[i+9],D=t[i+10],N=t[i+11],R=t[i+12],B=t[i+13],M=t[i+14],H=t[i+15],F=p[0],K=p[1],j=p[2],V=p[3];F=r(F,K,j,V,g,7,c[0]),V=r(V,F,K,j,A,12,c[1]),j=r(j,V,F,K,y,17,c[2]),K=r(K,j,V,F,E,22,c[3]),F=r(F,K,j,V,C,7,c[4]),V=r(V,F,K,j,w,12,c[5]),j=r(j,V,F,K,b,17,c[6]),K=r(K,j,V,F,I,22,c[7]),F=r(F,K,j,V,_,7,c[8]),V=r(V,F,K,j,L,12,c[9]),j=r(j,V,F,K,D,17,c[10]),K=r(K,j,V,F,N,22,c[11]),F=r(F,K,j,V,R,7,c[12]),V=r(V,F,K,j,B,12,c[13]),j=r(j,V,F,K,M,17,c[14]),K=r(K,j,V,F,H,22,c[15]),F=a(F,K,j,V,A,5,c[16]),V=a(V,F,K,j,b,9,c[17]),j=a(j,V,F,K,N,14,c[18]),K=a(K,j,V,F,g,20,c[19]),F=a(F,K,j,V,w,5,c[20]),V=a(V,F,K,j,D,9,c[21]),j=a(j,V,F,K,H,14,c[22]),K=a(K,j,V,F,C,20,c[23]),F=a(F,K,j,V,L,5,c[24]),V=a(V,F,K,j,M,9,c[25]),j=a(j,V,F,K,E,14,c[26]),K=a(K,j,V,F,_,20,c[27]),F=a(F,K,j,V,B,5,c[28]),V=a(V,F,K,j,y,9,c[29]),j=a(j,V,F,K,I,14,c[30]),K=a(K,j,V,F,R,20,c[31]),F=n(F,K,j,V,w,4,c[32]),V=n(V,F,K,j,_,11,c[33]),j=n(j,V,F,K,N,16,c[34]),K=n(K,j,V,F,M,23,c[35]),F=n(F,K,j,V,A,4,c[36]),V=n(V,F,K,j,C,11,c[37]),j=n(j,V,F,K,I,16,c[38]),K=n(K,j,V,F,D,23,c[39]),F=n(F,K,j,V,B,4,c[40]),V=n(V,F,K,j,g,11,c[41]),j=n(j,V,F,K,E,16,c[42]),K=n(K,j,V,F,b,23,c[43]),F=n(F,K,j,V,L,4,c[44]),V=n(V,F,K,j,R,11,c[45]),j=n(j,V,F,K,H,16,c[46]),K=n(K,j,V,F,y,23,c[47]),F=e(F,K,j,V,g,6,c[48]),V=e(V,F,K,j,I,10,c[49]),j=e(j,V,F,K,M,15,c[50]),K=e(K,j,V,F,w,21,c[51]),F=e(F,K,j,V,R,6,c[52]),V=e(V,F,K,j,E,10,c[53]),j=e(j,V,F,K,D,15,c[54]),K=e(K,j,V,F,A,21,c[55]),F=e(F,K,j,V,_,6,c[56]),V=e(V,F,K,j,H,10,c[57]),j=e(j,V,F,K,b,15,c[58]),K=e(K,j,V,F,B,21,c[59]),F=e(F,K,j,V,C,6,c[60]),V=e(V,F,K,j,N,10,c[61]),j=e(j,V,F,K,y,15,c[62]),K=e(K,j,V,F,L,21,c[63]),p[0]=p[0]+F|0,p[1]=p[1]+K|0,p[2]=p[2]+j|0,p[3]=p[3]+V|0},_doFinalize:function(){var t=this._data,i=t.words,l=this._nDataBytes*8,u=t.sigBytes*8;i[u>>>5]|=128<<24-u%32;var h=x.floor(l/4294967296),p=l;i[(u+64>>>9<<4)+15]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,i[(u+64>>>9<<4)+14]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,t.sigBytes=(i.length+1)*4,this._process();for(var g=this._hash,A=g.words,y=0;y<4;y++){var E=A[y];A[y]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}return g},clone:function(){var t=m.clone.call(this);return t._hash=this._hash.clone(),t}});function r(s,t,i,l,u,h,p){var g=s+(t&i|~t&l)+u+p;return(g<<h|g>>>32-h)+t}function a(s,t,i,l,u,h,p){var g=s+(t&l|i&~l)+u+p;return(g<<h|g>>>32-h)+t}function n(s,t,i,l,u,h,p){var g=s+(t^i^l)+u+p;return(g<<h|g>>>32-h)+t}function e(s,t,i,l,u,h,p){var g=s+(i^(t|~l))+u+p;return(g<<h|g>>>32-h)+t}T.MD5=m._createHelper(o),T.HmacMD5=m._createHmacHelper(o)}(Math),O.MD5})},czTT:function(U,P,d){},d4KN:function(U,P,d){var O=d("ProS"),x=d("bYtY");function T(v,S){x.each(S,function(m){m.update="updateView",O.registerAction(m,function(f,c){var o={};return c.eachComponent({mainType:"series",subType:v,query:f},function(r){r[m.method]&&r[m.method](f.name,f.dataIndex);var a=r.getData();a.each(function(n){var e=a.getName(n);o[e]=r.isSelected(e)||!1})}),{name:f.name,selected:o,seriesId:f.seriesId}})})}U.exports=T},dBmv:function(U,P,d){var O=d("ProS"),x=d("szbU");d("vF/C"),d("qwVE"),d("MHoB"),d("PNag"),d("1u/T"),O.registerPreprocessor(x)},"dF/Y":function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="DownloadOutlined";var f=P.a=x.forwardRef(m)},dMvE:function(U,P){var d={linear:function(T){return T},quadraticIn:function(T){return T*T},quadraticOut:function(T){return T*(2-T)},quadraticInOut:function(T){return(T*=2)<1?.5*T*T:-.5*(--T*(T-2)-1)},cubicIn:function(T){return T*T*T},cubicOut:function(T){return--T*T*T+1},cubicInOut:function(T){return(T*=2)<1?.5*T*T*T:.5*((T-=2)*T*T+2)},quarticIn:function(T){return T*T*T*T},quarticOut:function(T){return 1- --T*T*T*T},quarticInOut:function(T){return(T*=2)<1?.5*T*T*T*T:-.5*((T-=2)*T*T*T-2)},quinticIn:function(T){return T*T*T*T*T},quinticOut:function(T){return--T*T*T*T*T+1},quinticInOut:function(T){return(T*=2)<1?.5*T*T*T*T*T:.5*((T-=2)*T*T*T*T+2)},sinusoidalIn:function(T){return 1-Math.cos(T*Math.PI/2)},sinusoidalOut:function(T){return Math.sin(T*Math.PI/2)},sinusoidalInOut:function(T){return .5*(1-Math.cos(Math.PI*T))},exponentialIn:function(T){return T===0?0:Math.pow(1024,T-1)},exponentialOut:function(T){return T===1?1:1-Math.pow(2,-10*T)},exponentialInOut:function(T){return T===0?0:T===1?1:(T*=2)<1?.5*Math.pow(1024,T-1):.5*(-Math.pow(2,-10*(T-1))+2)},circularIn:function(T){return 1-Math.sqrt(1-T*T)},circularOut:function(T){return Math.sqrt(1- --T*T)},circularInOut:function(T){return(T*=2)<1?-.5*(Math.sqrt(1-T*T)-1):.5*(Math.sqrt(1-(T-=2)*T)+1)},elasticIn:function(T){var v,S=.1,m=.4;return T===0?0:T===1?1:(!S||S<1?(S=1,v=m/4):v=m*Math.asin(1/S)/(2*Math.PI),-(S*Math.pow(2,10*(T-=1))*Math.sin((T-v)*(2*Math.PI)/m)))},elasticOut:function(T){var v,S=.1,m=.4;return T===0?0:T===1?1:(!S||S<1?(S=1,v=m/4):v=m*Math.asin(1/S)/(2*Math.PI),S*Math.pow(2,-10*T)*Math.sin((T-v)*(2*Math.PI)/m)+1)},elasticInOut:function(T){var v,S=.1,m=.4;return T===0?0:T===1?1:(!S||S<1?(S=1,v=m/4):v=m*Math.asin(1/S)/(2*Math.PI),(T*=2)<1?-.5*(S*Math.pow(2,10*(T-=1))*Math.sin((T-v)*(2*Math.PI)/m)):S*Math.pow(2,-10*(T-=1))*Math.sin((T-v)*(2*Math.PI)/m)*.5+1)},backIn:function(T){var v=1.70158;return T*T*((v+1)*T-v)},backOut:function(T){var v=1.70158;return--T*T*((v+1)*T+v)+1},backInOut:function(T){var v=1.70158*1.525;return(T*=2)<1?.5*(T*T*((v+1)*T-v)):.5*((T-=2)*T*((v+1)*T+v)+2)},bounceIn:function(T){return 1-d.bounceOut(1-T)},bounceOut:function(T){return T<1/2.75?7.5625*T*T:T<2/2.75?7.5625*(T-=1.5/2.75)*T+.75:T<2.5/2.75?7.5625*(T-=2.25/2.75)*T+.9375:7.5625*(T-=2.625/2.75)*T+.984375},bounceInOut:function(T){return T<.5?d.bounceIn(T*2)*.5:d.bounceOut(T*2-1)*.5+.5}},O=d;U.exports=O},diRs:function(U,P,d){"use strict";var O=d("pVnL"),x=d.n(O),T=d("q1tI"),v=d.n(T),S=d("3S7+"),m=d("H84U"),f=d("bogI"),c=function(r,a){var n={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&a.indexOf(e)<0&&(n[e]=r[e]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,e=Object.getOwnPropertySymbols(r);s<e.length;s++)a.indexOf(e[s])<0&&Object.prototype.propertyIsEnumerable.call(r,e[s])&&(n[e[s]]=r[e[s]]);return n},o=T.forwardRef(function(r,a){var n=r.prefixCls,e=r.title,s=r.content,t=c(r,["prefixCls","title","content"]),i=T.useContext(m.b),l=i.getPrefixCls,u=function(g){return T.createElement(T.Fragment,null,e&&T.createElement("div",{className:"".concat(g,"-title")},Object(f.a)(e)),T.createElement("div",{className:"".concat(g,"-inner-content")},Object(f.a)(s)))},h=l("popover",n);return T.createElement(S.a,x()({},t,{prefixCls:h,ref:a,overlay:u(h)}))});o.displayName="Popover",o.defaultProps={placement:"top",transitionName:"zoom-big",trigger:"hover",mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayStyle:{}},P.a=o},digP:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:function(T,v){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:v}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:T}}]}},name:"file",theme:"twotone"};P.default=O},dmGj:function(U,P,d){var O=d("DEFe"),x=d("ProS"),T=x.extendComponentView({type:"geo",init:function(v,S){var m=new O(S,!0);this._mapDraw=m,this.group.add(m.group)},render:function(v,S,m,f){if(f&&f.type==="geoToggleSelect"&&f.from===this.uid)return;var c=this._mapDraw;v.get("show")?c.draw(v,S,m,this,f):this._mapDraw.group.removeAll(),this.group.silent=v.get("silent")},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});U.exports=T},dnwI:function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("YH21"),v=d("Kagy"),S=d("IUWy"),m=v.toolbox.dataView,f=new Array(60).join("-"),c=" ";function o(A){var y={},E=[],C=[];return A.eachRawSeries(function(w){var b=w.coordinateSystem;if(b&&(b.type==="cartesian2d"||b.type==="polar")){var I=b.getBaseAxis();if(I.type==="category"){var _=I.dim+"_"+I.index;y[_]||(y[_]={categoryAxis:I,valueAxis:b.getOtherAxis(I),series:[]},C.push({axisDim:I.dim,axisIndex:I.index})),y[_].series.push(w)}else E.push(w)}else E.push(w)}),{seriesGroupByCategoryAxis:y,other:E,meta:C}}function r(A){var y=[];return x.each(A,function(E,C){var w=E.categoryAxis,b=E.valueAxis,I=b.dim,_=[" "].concat(x.map(E.series,function(M){return M.name})),L=[w.model.getCategories()];x.each(E.series,function(M){L.push(M.getRawData().mapArray(I,function(H){return H}))});for(var D=[_.join(c)],N=0;N<L[0].length;N++){for(var R=[],B=0;B<L.length;B++)R.push(L[B][N]);D.push(R.join(c))}y.push(D.join(`
|
|
|
`))}),y.join(`
|
|
|
|
|
|
`+f+`
|
|
|
|
|
|
`)}function a(A){return x.map(A,function(y){var E=y.getRawData(),C=[y.name],w=[];return E.each(E.dimensions,function(){for(var b=arguments.length,I=arguments[b-1],_=E.getName(I),L=0;L<b-1;L++)w[L]=arguments[L];C.push((_?_+c:"")+w.join(c))}),C.join(`
|
|
|
`)}).join(`
|
|
|
|
|
|
`+f+`
|
|
|
|
|
|
`)}function n(A){var y=o(A);return{value:x.filter([r(y.seriesGroupByCategoryAxis),a(y.other)],function(E){return E.replace(/[\n\t\s]/g,"")}).join(`
|
|
|
|
|
|
`+f+`
|
|
|
|
|
|
`),meta:y.meta}}function e(A){return A.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function s(A){var y=A.slice(0,A.indexOf(`
|
|
|
`));if(y.indexOf(c)>=0)return!0}var t=new RegExp("["+c+"]+","g");function i(A){for(var y=A.split(/\n+/g),E=e(y.shift()).split(t),C=[],w=x.map(E,function(L){return{name:L,data:[]}}),b=0;b<y.length;b++){var I=e(y[b]).split(t);C.push(I.shift());for(var _=0;_<I.length;_++)w[_]&&(w[_].data[b]=I[_])}return{series:w,categories:C}}function l(A){for(var y=A.split(/\n+/g),E=e(y.shift()),C=[],w=0;w<y.length;w++){var b=e(y[w]).split(t),I="",_,L=!1;isNaN(b[0])?(L=!0,I=b[0],b=b.slice(1),C[w]={name:I,value:[]},_=C[w].value):_=C[w]=[];for(var D=0;D<b.length;D++)_.push(+b[D]);_.length===1&&(L?C[w].value=_[0]:C[w]=_[0])}return{name:E,data:C}}function u(A,y){var E=A.split(new RegExp(`
|
|
|
*`+f+`
|
|
|
*`,"g")),C={series:[]};return x.each(E,function(w,b){if(s(w)){var I=i(w),_=y[b],L=_.axisDim+"Axis";_&&(C[L]=C[L]||[],C[L][_.axisIndex]={data:I.categories},C.series=C.series.concat(I.series))}else{var I=l(w);C.series.push(I)}}),C}function h(A){this._dom=null,this.model=A}h.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:x.clone(m.title),lang:x.clone(m.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},h.prototype.onclick=function(A,y){var E=y.getDom(),C=this.model;this._dom&&E.removeChild(this._dom);var w=document.createElement("div");w.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",w.style.backgroundColor=C.get("backgroundColor")||"#fff";var b=document.createElement("h4"),I=C.get("lang")||[];b.innerHTML=I[0]||C.get("title"),b.style.cssText="margin: 10px 20px;",b.style.color=C.get("textColor");var _=document.createElement("div"),L=document.createElement("textarea");_.style.cssText="display:block;width:100%;overflow:auto;";var D=C.get("optionToContent"),N=C.get("contentToOption"),R=n(A);if(typeof D=="function"){var B=D(y.getOption());typeof B=="string"?_.innerHTML=B:x.isDom(B)&&_.appendChild(B)}else _.appendChild(L),L.readOnly=C.get("readOnly"),L.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",L.style.color=C.get("textColor"),L.style.borderColor=C.get("textareaBorderColor"),L.style.backgroundColor=C.get("textareaColor"),L.value=R.value;var M=R.meta,H=document.createElement("div");H.style.cssText="position:absolute;bottom:0;left:0;right:0;";var F="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",K=document.createElement("div"),j=document.createElement("div");F+=";background-color:"+C.get("buttonColor"),F+=";color:"+C.get("buttonTextColor");var V=this;function z(){E.removeChild(w),V._dom=null}T.addEventListener(K,"click",z),T.addEventListener(j,"click",function(){var Y;try{typeof N=="function"?Y=N(_,y.getOption()):Y=u(L.value,M)}catch(ee){throw z(),new Error("Data view format error "+ee)}Y&&y.dispatchAction({type:"changeDataView",newOption:Y}),z()}),K.innerHTML=I[1],j.innerHTML=I[2],j.style.cssText=F,K.style.cssText=F,!C.get("readOnly")&&H.appendChild(j),H.appendChild(K),w.appendChild(b),w.appendChild(_),w.appendChild(H),_.style.height=E.clientHeight-80+"px",E.appendChild(w),this._dom=w},h.prototype.remove=function(A,y){this._dom&&y.getDom().removeChild(this._dom)},h.prototype.dispose=function(A,y){this.remove(A,y)};function p(A,y){return x.map(A,function(E,C){var w=y&&y[C];return x.isObject(w)&&!x.isArray(w)?(x.isObject(E)&&!x.isArray(E)&&(E=E.value),x.defaults({value:E},w)):E})}S.register("dataView",h),O.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(A,y){var E=[];x.each(A.newOption.series,function(C){var w=y.getSeriesByName(C.name)[0];if(!w)E.push(x.extend({type:"scatter"},C));else{var b=w.get("data");E.push({name:C.name,data:p(C.data,b)})}}),y.mergeOption(x.defaults({series:E},A.newOption))});var g=h;U.exports=g},dqUG:function(U,P,d){var O=d("Gev7"),x=d("bYtY"),T=d("6GrX"),v=d("pzxd"),S=d("gut8"),m=S.ContextCachedBy,f=function(r){O.call(this,r)};f.prototype={constructor:f,type:"text",brush:function(r,a){var n=this.style;this.__dirty&&v.normalizeTextStyle(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var e=n.text;if(e!=null&&(e+=""),!v.needDrawText(e,n)){r.__attrCachedBy=m.NONE;return}this.setTransform(r),v.renderText(this,r,e,n,null,a),this.restoreTransform(r)},getBoundingRect:function(){var r=this.style;if(this.__dirty&&v.normalizeTextStyle(r,!0),!this._rect){var a=r.text;a!=null?a+="":a="";var n=T.getBoundingRect(r.text+"",r.font,r.textAlign,r.textVerticalAlign,r.textPadding,r.textLineHeight,r.rich);if(n.x+=r.x||0,n.y+=r.y||0,v.getStroke(r.textStroke,r.textStrokeWidth)){var e=r.textStrokeWidth;n.x-=e/2,n.y-=e/2,n.width+=e,n.height+=e}this._rect=n}return this._rect}},x.inherits(f,O);var c=f;U.exports=c},dt0z:function(U,P,d){var O=d("zoYe");function x(T){return T==null?"":O(T)}U.exports=x},dtIV:function(U,P,d){"use strict";d.r(P),function(O){d.d(P,"AcroForm",function(){return De}),d.d(P,"AcroFormAppearance",function(){return Z}),d.d(P,"AcroFormButton",function(){return dt}),d.d(P,"AcroFormCheckBox",function(){return Nt}),d.d(P,"AcroFormChoiceField",function(){return et}),d.d(P,"AcroFormComboBox",function(){return tt}),d.d(P,"AcroFormEditBox",function(){return ze}),d.d(P,"AcroFormListBox",function(){return Te}),d.d(P,"AcroFormPasswordField",function(){return $}),d.d(P,"AcroFormPushButton",function(){return Ot}),d.d(P,"AcroFormRadioButton",function(){return Tt}),d.d(P,"AcroFormTextField",function(){return Be}),d.d(P,"GState",function(){return B}),d.d(P,"ShadingPattern",function(){return H}),d.d(P,"TilingPattern",function(){return F}),d.d(P,"jsPDF",function(){return K});var x=d("g5aB"),T=d.n(x),v=d("crp1");/** @license
|
|
|
*
|
|
|
* jsPDF - PDF Document creation from JavaScript
|
|
|
* Version 2.4.0 Built on 2021-09-14T10:30:30.230Z
|
|
|
* CommitID 00000000
|
|
|
*
|
|
|
* Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
|
|
|
* 2015-2021 yWorks GmbH, http://www.yworks.com
|
|
|
* 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
|
|
|
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
|
|
|
* 2010 Aaron Spike, https://github.com/acspike
|
|
|
* 2012 Willow Systems Corporation, https://github.com/willowsystems
|
|
|
* 2012 Pablo Hess, https://github.com/pablohess
|
|
|
* 2012 Florian Jenett, https://github.com/fjenett
|
|
|
* 2013 Warren Weckesser, https://github.com/warrenweckesser
|
|
|
* 2013 Youssef Beddad, https://github.com/lifof
|
|
|
* 2013 Lee Driscoll, https://github.com/lsdriscoll
|
|
|
* 2013 Stefan Slonevskiy, https://github.com/stefslon
|
|
|
* 2013 Jeremy Morel, https://github.com/jmorel
|
|
|
* 2013 Christoph Hartmann, https://github.com/chris-rock
|
|
|
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
|
|
|
* 2014 James Makes, https://github.com/dollaruw
|
|
|
* 2014 Diego Casorran, https://github.com/diegocr
|
|
|
* 2014 Steven Spungin, https://github.com/Flamenco
|
|
|
* 2014 Kenneth Glassey, https://github.com/Gavvers
|
|
|
*
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining
|
|
|
* a copy of this software and associated documentation files (the
|
|
|
* "Software"), to deal in the Software without restriction, including
|
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
|
* permit persons to whom the Software is furnished to do so, subject to
|
|
|
* the following conditions:
|
|
|
*
|
|
|
* The above copyright notice and this permission notice shall be
|
|
|
* included in all copies or substantial portions of the Software.
|
|
|
*
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
|
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
*
|
|
|
* Contributor(s):
|
|
|
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
|
|
|
* kim3er, mfo, alnorth, Flamenco
|
|
|
*/var S=function(){return typeof window!="undefined"?window:typeof O!="undefined"?O:typeof self!="undefined"?self:this}();function m(){S.console&&typeof S.console.log=="function"&&S.console.log.apply(S.console,arguments)}var f={log:m,warn:function(be){S.console&&(typeof S.console.warn=="function"?S.console.warn.apply(S.console,arguments):m.call(null,arguments))},error:function(be){S.console&&(typeof S.console.error=="function"?S.console.error.apply(S.console,arguments):m(be))}};function c(Ze,be,Ne){var Ue=new XMLHttpRequest;Ue.open("GET",Ze),Ue.responseType="blob",Ue.onload=function(){e(Ue.response,be,Ne)},Ue.onerror=function(){f.error("could not download file")},Ue.send()}function o(Ze){var be=new XMLHttpRequest;be.open("HEAD",Ze,!1);try{be.send()}catch(Ne){}return be.status>=200&&be.status<=299}function r(Ze){try{Ze.dispatchEvent(new MouseEvent("click"))}catch(Ne){var be=document.createEvent("MouseEvents");be.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Ze.dispatchEvent(be)}}var a,n,e=S.saveAs||((typeof window=="undefined"?"undefined":T()(window))!=="object"||window!==S?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(Ze,be,Ne){var Ue=S.URL||S.webkitURL,Qe=document.createElement("a");be=be||Ze.name||"download",Qe.download=be,Qe.rel="noopener",typeof Ze=="string"?(Qe.href=Ze,Qe.origin!==location.origin?o(Qe.href)?c(Ze,be,Ne):r(Qe,Qe.target="_blank"):r(Qe)):(Qe.href=Ue.createObjectURL(Ze),setTimeout(function(){Ue.revokeObjectURL(Qe.href)},4e4),setTimeout(function(){r(Qe)},0))}:"msSaveOrOpenBlob"in navigator?function(Ze,be,Ne){if(be=be||Ze.name||"download",typeof Ze=="string")if(o(Ze))c(Ze,be,Ne);else{var Ue=document.createElement("a");Ue.href=Ze,Ue.target="_blank",setTimeout(function(){r(Ue)})}else navigator.msSaveOrOpenBlob(function(Qe,Xe){return Xe===void 0?Xe={autoBom:!1}:T()(Xe)!=="object"&&(f.warn("Deprecated: Expected third argument to be a object"),Xe={autoBom:!Xe}),Xe.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Qe.type)?new Blob([String.fromCharCode(65279),Qe],{type:Qe.type}):Qe}(Ze,Ne),be)}:function(Ze,be,Ne,Ue){if((Ue=Ue||open("","_blank"))&&(Ue.document.title=Ue.document.body.innerText="downloading..."),typeof Ze=="string")return c(Ze,be,Ne);var Qe=Ze.type==="application/octet-stream",Xe=/constructor/i.test(S.HTMLElement)||S.safari,qe=/CriOS\/[\d]+/.test(navigator.userAgent);if((qe||Qe&&Xe)&&(typeof FileReader=="undefined"?"undefined":T()(FileReader))==="object"){var yt=new FileReader;yt.onloadend=function(){var kr=yt.result;kr=qe?kr:kr.replace(/^data:[^;]*;/,"data:attachment/file;"),Ue?Ue.location.href=kr:location=kr,Ue=null},yt.readAsDataURL(Ze)}else{var ht=S.URL||S.webkitURL,Jt=ht.createObjectURL(Ze);Ue?Ue.location=Jt:location.href=Jt,Ue=null,setTimeout(function(){ht.revokeObjectURL(Jt)},4e4)}});/**
|
|
|
* A class to parse color values
|
|
|
* @author Stoyan Stefanov <sstoo@gmail.com>
|
|
|
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
|
|
|
* @license Use it if you like it
|
|
|
*/function s(Ze){var be;Ze=Ze||"",this.ok=!1,Ze.charAt(0)=="#"&&(Ze=Ze.substr(1,6)),Ze={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",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",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",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:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[Ze=(Ze=Ze.replace(/ /g,"")).toLowerCase()]||Ze;for(var Ne=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(ht){return[parseInt(ht[1]),parseInt(ht[2]),parseInt(ht[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(ht){return[parseInt(ht[1],16),parseInt(ht[2],16),parseInt(ht[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(ht){return[parseInt(ht[1]+ht[1],16),parseInt(ht[2]+ht[2],16),parseInt(ht[3]+ht[3],16)]}}],Ue=0;Ue<Ne.length;Ue++){var Qe=Ne[Ue].re,Xe=Ne[Ue].process,qe=Qe.exec(Ze);qe&&(be=Xe(qe),this.r=be[0],this.g=be[1],this.b=be[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var yt=this.r.toString(16),ht=this.g.toString(16),Jt=this.b.toString(16);return yt.length==1&&(yt="0"+yt),ht.length==1&&(ht="0"+ht),Jt.length==1&&(Jt="0"+Jt),"#"+yt+ht+Jt}}/**
|
|
|
* @license
|
|
|
* Joseph Myers does not specify a particular license for his work.
|
|
|
*
|
|
|
* Author: Joseph Myers
|
|
|
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
|
|
|
*
|
|
|
* Modified by: Owen Leong
|
|
|
*/function t(Ze,be){var Ne=Ze[0],Ue=Ze[1],Qe=Ze[2],Xe=Ze[3];Ne=l(Ne,Ue,Qe,Xe,be[0],7,-680876936),Xe=l(Xe,Ne,Ue,Qe,be[1],12,-389564586),Qe=l(Qe,Xe,Ne,Ue,be[2],17,606105819),Ue=l(Ue,Qe,Xe,Ne,be[3],22,-1044525330),Ne=l(Ne,Ue,Qe,Xe,be[4],7,-176418897),Xe=l(Xe,Ne,Ue,Qe,be[5],12,1200080426),Qe=l(Qe,Xe,Ne,Ue,be[6],17,-1473231341),Ue=l(Ue,Qe,Xe,Ne,be[7],22,-45705983),Ne=l(Ne,Ue,Qe,Xe,be[8],7,1770035416),Xe=l(Xe,Ne,Ue,Qe,be[9],12,-1958414417),Qe=l(Qe,Xe,Ne,Ue,be[10],17,-42063),Ue=l(Ue,Qe,Xe,Ne,be[11],22,-1990404162),Ne=l(Ne,Ue,Qe,Xe,be[12],7,1804603682),Xe=l(Xe,Ne,Ue,Qe,be[13],12,-40341101),Qe=l(Qe,Xe,Ne,Ue,be[14],17,-1502002290),Ne=u(Ne,Ue=l(Ue,Qe,Xe,Ne,be[15],22,1236535329),Qe,Xe,be[1],5,-165796510),Xe=u(Xe,Ne,Ue,Qe,be[6],9,-1069501632),Qe=u(Qe,Xe,Ne,Ue,be[11],14,643717713),Ue=u(Ue,Qe,Xe,Ne,be[0],20,-373897302),Ne=u(Ne,Ue,Qe,Xe,be[5],5,-701558691),Xe=u(Xe,Ne,Ue,Qe,be[10],9,38016083),Qe=u(Qe,Xe,Ne,Ue,be[15],14,-660478335),Ue=u(Ue,Qe,Xe,Ne,be[4],20,-405537848),Ne=u(Ne,Ue,Qe,Xe,be[9],5,568446438),Xe=u(Xe,Ne,Ue,Qe,be[14],9,-1019803690),Qe=u(Qe,Xe,Ne,Ue,be[3],14,-187363961),Ue=u(Ue,Qe,Xe,Ne,be[8],20,1163531501),Ne=u(Ne,Ue,Qe,Xe,be[13],5,-1444681467),Xe=u(Xe,Ne,Ue,Qe,be[2],9,-51403784),Qe=u(Qe,Xe,Ne,Ue,be[7],14,1735328473),Ne=h(Ne,Ue=u(Ue,Qe,Xe,Ne,be[12],20,-1926607734),Qe,Xe,be[5],4,-378558),Xe=h(Xe,Ne,Ue,Qe,be[8],11,-2022574463),Qe=h(Qe,Xe,Ne,Ue,be[11],16,1839030562),Ue=h(Ue,Qe,Xe,Ne,be[14],23,-35309556),Ne=h(Ne,Ue,Qe,Xe,be[1],4,-1530992060),Xe=h(Xe,Ne,Ue,Qe,be[4],11,1272893353),Qe=h(Qe,Xe,Ne,Ue,be[7],16,-155497632),Ue=h(Ue,Qe,Xe,Ne,be[10],23,-1094730640),Ne=h(Ne,Ue,Qe,Xe,be[13],4,681279174),Xe=h(Xe,Ne,Ue,Qe,be[0],11,-358537222),Qe=h(Qe,Xe,Ne,Ue,be[3],16,-722521979),Ue=h(Ue,Qe,Xe,Ne,be[6],23,76029189),Ne=h(Ne,Ue,Qe,Xe,be[9],4,-640364487),Xe=h(Xe,Ne,Ue,Qe,be[12],11,-421815835),Qe=h(Qe,Xe,Ne,Ue,be[15],16,530742520),Ne=p(Ne,Ue=h(Ue,Qe,Xe,Ne,be[2],23,-995338651),Qe,Xe,be[0],6,-198630844),Xe=p(Xe,Ne,Ue,Qe,be[7],10,1126891415),Qe=p(Qe,Xe,Ne,Ue,be[14],15,-1416354905),Ue=p(Ue,Qe,Xe,Ne,be[5],21,-57434055),Ne=p(Ne,Ue,Qe,Xe,be[12],6,1700485571),Xe=p(Xe,Ne,Ue,Qe,be[3],10,-1894986606),Qe=p(Qe,Xe,Ne,Ue,be[10],15,-1051523),Ue=p(Ue,Qe,Xe,Ne,be[1],21,-2054922799),Ne=p(Ne,Ue,Qe,Xe,be[8],6,1873313359),Xe=p(Xe,Ne,Ue,Qe,be[15],10,-30611744),Qe=p(Qe,Xe,Ne,Ue,be[6],15,-1560198380),Ue=p(Ue,Qe,Xe,Ne,be[13],21,1309151649),Ne=p(Ne,Ue,Qe,Xe,be[4],6,-145523070),Xe=p(Xe,Ne,Ue,Qe,be[11],10,-1120210379),Qe=p(Qe,Xe,Ne,Ue,be[2],15,718787259),Ue=p(Ue,Qe,Xe,Ne,be[9],21,-343485551),Ze[0]=I(Ne,Ze[0]),Ze[1]=I(Ue,Ze[1]),Ze[2]=I(Qe,Ze[2]),Ze[3]=I(Xe,Ze[3])}function i(Ze,be,Ne,Ue,Qe,Xe){return be=I(I(be,Ze),I(Ue,Xe)),I(be<<Qe|be>>>32-Qe,Ne)}function l(Ze,be,Ne,Ue,Qe,Xe,qe){return i(be&Ne|~be&Ue,Ze,be,Qe,Xe,qe)}function u(Ze,be,Ne,Ue,Qe,Xe,qe){return i(be&Ue|Ne&~Ue,Ze,be,Qe,Xe,qe)}function h(Ze,be,Ne,Ue,Qe,Xe,qe){return i(be^Ne^Ue,Ze,be,Qe,Xe,qe)}function p(Ze,be,Ne,Ue,Qe,Xe,qe){return i(Ne^(be|~Ue),Ze,be,Qe,Xe,qe)}function g(Ze){var be,Ne=Ze.length,Ue=[1732584193,-271733879,-1732584194,271733878];for(be=64;be<=Ze.length;be+=64)t(Ue,A(Ze.substring(be-64,be)));Ze=Ze.substring(be-64);var Qe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(be=0;be<Ze.length;be++)Qe[be>>2]|=Ze.charCodeAt(be)<<(be%4<<3);if(Qe[be>>2]|=128<<(be%4<<3),be>55)for(t(Ue,Qe),be=0;be<16;be++)Qe[be]=0;return Qe[14]=8*Ne,t(Ue,Qe),Ue}function A(Ze){var be,Ne=[];for(be=0;be<64;be+=4)Ne[be>>2]=Ze.charCodeAt(be)+(Ze.charCodeAt(be+1)<<8)+(Ze.charCodeAt(be+2)<<16)+(Ze.charCodeAt(be+3)<<24);return Ne}a=S.atob.bind(S),n=S.btoa.bind(S);var y="0123456789abcdef".split("");function E(Ze){for(var be="",Ne=0;Ne<4;Ne++)be+=y[Ze>>8*Ne+4&15]+y[Ze>>8*Ne&15];return be}function C(Ze){return String.fromCharCode((255&Ze)>>0,(65280&Ze)>>8,(16711680&Ze)>>16,(4278190080&Ze)>>24)}function w(Ze){return g(Ze).map(C).join("")}var b=function(Ze){for(var be=0;be<Ze.length;be++)Ze[be]=E(Ze[be]);return Ze.join("")}(g("hello"))!="5d41402abc4b2a76b9719d911017c592";function I(Ze,be){if(b){var Ne=(65535&Ze)+(65535&be);return(Ze>>16)+(be>>16)+(Ne>>16)<<16|65535&Ne}return Ze+be&4294967295}/**
|
|
|
* @license
|
|
|
* FPDF is released under a permissive license: there is no usage restriction.
|
|
|
* You may embed it freely in your application (commercial or not), with or
|
|
|
* without modifications.
|
|
|
*
|
|
|
* Reference: http://www.fpdf.org/en/script/script37.php
|
|
|
*/function _(Ze,be){var Ne,Ue,Qe,Xe;if(Ze!==Ne){for(var qe=(Qe=Ze,Xe=1+(256/Ze.length>>0),new Array(Xe+1).join(Qe)),yt=[],ht=0;ht<256;ht++)yt[ht]=ht;var Jt=0;for(ht=0;ht<256;ht++){var kr=yt[ht];Jt=(Jt+kr+qe.charCodeAt(ht))%256,yt[ht]=yt[Jt],yt[Jt]=kr}Ne=Ze,Ue=yt}else yt=Ue;var _r=be.length,Xr=0,Bt=0,gn="";for(ht=0;ht<_r;ht++)Bt=(Bt+(kr=yt[Xr=(Xr+1)%256]))%256,yt[Xr]=yt[Bt],yt[Bt]=kr,qe=yt[(yt[Xr]+yt[Bt])%256],gn+=String.fromCharCode(be.charCodeAt(ht)^qe);return gn}/**
|
|
|
* @license
|
|
|
* Licensed under the MIT License.
|
|
|
* http://opensource.org/licenses/mit-license
|
|
|
* Author: Owen Leong (@owenl131)
|
|
|
* Date: 15 Oct 2020
|
|
|
* References:
|
|
|
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
|
|
|
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
|
|
|
* http://www.fpdf.org/en/script/script37.php
|
|
|
*/var L={print:4,modify:8,copy:16,"annot-forms":32};function D(Ze,be,Ne,Ue){this.v=1,this.r=2;var Qe=192;Ze.forEach(function(yt){if(L.perm!==void 0)throw new Error("Invalid permission: "+yt);Qe+=L[yt]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var Xe=(be+this.padding).substr(0,32),qe=(Ne+this.padding).substr(0,32);this.O=this.processOwnerPassword(Xe,qe),this.P=-(1+(255^Qe)),this.encryptionKey=w(Xe+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(Ue)).substr(0,5),this.U=_(this.encryptionKey,this.padding)}function N(Ze){if(/[^\u0000-\u00ff]/.test(Ze))throw new Error("Invalid PDF Name Object: "+Ze+", Only accept ASCII characters.");for(var be="",Ne=Ze.length,Ue=0;Ue<Ne;Ue++){var Qe=Ze.charCodeAt(Ue);Qe<33||Qe===35||Qe===37||Qe===40||Qe===41||Qe===47||Qe===60||Qe===62||Qe===91||Qe===93||Qe===123||Qe===125||Qe>126?be+="#"+("0"+Qe.toString(16)).slice(-2):be+=Ze[Ue]}return be}function R(Ze){if(T()(Ze)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var be={};this.subscribe=function(Ne,Ue,Qe){if(Qe=Qe||!1,typeof Ne!="string"||typeof Ue!="function"||typeof Qe!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");be.hasOwnProperty(Ne)||(be[Ne]={});var Xe=Math.random().toString(35);return be[Ne][Xe]=[Ue,!!Qe],Xe},this.unsubscribe=function(Ne){for(var Ue in be)if(be[Ue][Ne])return delete be[Ue][Ne],Object.keys(be[Ue]).length===0&&delete be[Ue],!0;return!1},this.publish=function(Ne){if(be.hasOwnProperty(Ne)){var Ue=Array.prototype.slice.call(arguments,1),Qe=[];for(var Xe in be[Ne]){var qe=be[Ne][Xe];try{qe[0].apply(Ze,Ue)}catch(yt){S.console&&f.error("jsPDF PubSub Error",yt.message,yt)}qe[1]&&Qe.push(Xe)}Qe.length&&Qe.forEach(this.unsubscribe)}},this.getTopics=function(){return be}}function B(Ze){if(!(this instanceof B))return new B(Ze);var be="opacity,stroke-opacity".split(",");for(var Ne in Ze)Ze.hasOwnProperty(Ne)&&be.indexOf(Ne)>=0&&(this[Ne]=Ze[Ne]);this.id="",this.objectNumber=-1}function M(Ze,be){this.gState=Ze,this.matrix=be,this.id="",this.objectNumber=-1}function H(Ze,be,Ne,Ue,Qe){if(!(this instanceof H))return new H(Ze,be,Ne,Ue,Qe);this.type=Ze==="axial"?2:3,this.coords=be,this.colors=Ne,M.call(this,Ue,Qe)}function F(Ze,be,Ne,Ue,Qe){if(!(this instanceof F))return new F(Ze,be,Ne,Ue,Qe);this.boundingBox=Ze,this.xStep=be,this.yStep=Ne,this.stream="",this.cloneIndex=0,M.call(this,Ue,Qe)}function K(Ze){var be,Ne=typeof arguments[0]=="string"?arguments[0]:"p",Ue=arguments[1],Qe=arguments[2],Xe=arguments[3],qe=[],yt=1,ht=16,Jt="S",kr=null;T()(Ze=Ze||{})==="object"&&(Ne=Ze.orientation,Ue=Ze.unit||Ue,Qe=Ze.format||Qe,Xe=Ze.compress||Ze.compressPdf||Xe,(kr=Ze.encryption||null)!==null&&(kr.userPassword=kr.userPassword||"",kr.ownerPassword=kr.ownerPassword||"",kr.userPermissions=kr.userPermissions||[]),yt=typeof Ze.userUnit=="number"?Math.abs(Ze.userUnit):1,Ze.precision!==void 0&&(be=Ze.precision),Ze.floatPrecision!==void 0&&(ht=Ze.floatPrecision),Jt=Ze.defaultPathOperation||"S"),qe=Ze.filters||(Xe===!0?["FlateEncode"]:qe),Ue=Ue||"mm",Ne=(""+(Ne||"P")).toLowerCase();var _r=Ze.putOnlyUsedFonts||!1,Xr={},Bt={internal:{},__private__:{}};Bt.__private__.PubSub=R;var gn="1.3",hr=Bt.__private__.getPdfVersion=function(){return gn};Bt.__private__.setPdfVersion=function(xt){gn=xt};var vn={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};Bt.__private__.getPageFormats=function(){return vn};var en=Bt.__private__.getPageFormat=function(xt){return vn[xt]};Qe=Qe||"a4";var Dt={COMPAT:"compat",ADVANCED:"advanced"},jr=Dt.COMPAT;function un(){this.saveGraphicsState(),hn(new Ti(fr,0,0,-fr,0,Jo()*fr).toString()+" cm"),this.setFontSize(this.getFontSize()/fr),Jt="n",jr=Dt.ADVANCED}function Hr(){this.restoreGraphicsState(),Jt="S",jr=Dt.COMPAT}var Wt=Bt.__private__.combineFontStyleAndFontWeight=function(xt,Ft){if(xt=="bold"&&Ft=="normal"||xt=="bold"&&Ft==400||xt=="normal"&&Ft=="italic"||xt=="bold"&&Ft=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Ft&&(xt=Ft==400||Ft==="normal"?xt==="italic"?"italic":"normal":Ft!=700&&Ft!=="bold"||xt!=="normal"?(Ft==700?"bold":Ft)+""+xt:"bold"),xt};Bt.advancedAPI=function(xt){var Ft=jr===Dt.COMPAT;return Ft&&un.call(this),typeof xt!="function"||(xt(this),Ft&&Hr.call(this)),this},Bt.compatAPI=function(xt){var Ft=jr===Dt.ADVANCED;return Ft&&Hr.call(this),typeof xt!="function"||(xt(this),Ft&&un.call(this)),this},Bt.isAdvancedAPI=function(){return jr===Dt.ADVANCED};var wr,fn=function(Ft){if(jr!==Dt.ADVANCED)throw new Error(Ft+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},zt=Bt.roundToPrecision=Bt.__private__.roundToPrecision=function(xt,Ft){var An=be||Ft;if(isNaN(xt)||isNaN(An))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return xt.toFixed(An).replace(/0+$/,"")};wr=Bt.hpf=Bt.__private__.hpf=typeof ht=="number"?function(xt){if(isNaN(xt))throw new Error("Invalid argument passed to jsPDF.hpf");return zt(xt,ht)}:ht==="smart"?function(xt){if(isNaN(xt))throw new Error("Invalid argument passed to jsPDF.hpf");return zt(xt,xt>-1&&xt<1?16:5)}:function(xt){if(isNaN(xt))throw new Error("Invalid argument passed to jsPDF.hpf");return zt(xt,16)};var Dr=Bt.f2=Bt.__private__.f2=function(xt){if(isNaN(xt))throw new Error("Invalid argument passed to jsPDF.f2");return zt(xt,2)},ir=Bt.__private__.f3=function(xt){if(isNaN(xt))throw new Error("Invalid argument passed to jsPDF.f3");return zt(xt,3)},Lt=Bt.scale=Bt.__private__.scale=function(xt){if(isNaN(xt))throw new Error("Invalid argument passed to jsPDF.scale");return jr===Dt.COMPAT?xt*fr:jr===Dt.ADVANCED?xt:void 0},Qt=function(Ft){return jr===Dt.COMPAT?Jo()-Ft:jr===Dt.ADVANCED?Ft:void 0},It=function(Ft){return Lt(Qt(Ft))};Bt.__private__.setPrecision=Bt.setPrecision=function(xt){typeof parseInt(xt,10)=="number"&&(be=parseInt(xt,10))};var or,Cr="00000000000000000000000000000000",Er=Bt.__private__.getFileId=function(){return Cr},Kr=Bt.__private__.setFileId=function(xt){return Cr=xt!==void 0&&/^[a-fA-F0-9]{32}$/.test(xt)?xt.toUpperCase():Cr.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),kr!==null&&(Qi=new D(kr.userPermissions,kr.userPassword,kr.ownerPassword,Cr)),Cr};Bt.setFileId=function(xt){return Kr(xt),this},Bt.getFileId=function(){return Er()};var jn=Bt.__private__.convertDateToPDFDate=function(xt){var Ft=xt.getTimezoneOffset(),An=Ft<0?"+":"-",Hn=Math.floor(Math.abs(Ft/60)),hi=Math.abs(Ft%60),At=[An,dn(Hn),"'",dn(hi),"'"].join("");return["D:",xt.getFullYear(),dn(xt.getMonth()+1),dn(xt.getDate()),dn(xt.getHours()),dn(xt.getMinutes()),dn(xt.getSeconds()),At].join("")},Nn=Bt.__private__.convertPDFDateToDate=function(xt){var Ft=parseInt(xt.substr(2,4),10),An=parseInt(xt.substr(6,2),10)-1,Hn=parseInt(xt.substr(8,2),10),hi=parseInt(xt.substr(10,2),10),At=parseInt(xt.substr(12,2),10),se=parseInt(xt.substr(14,2),10);return new Date(Ft,An,Hn,hi,At,se,0)},ei=Bt.__private__.setCreationDate=function(xt){var Ft;if(xt===void 0&&(xt=new Date),xt instanceof Date)Ft=jn(xt);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(xt))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Ft=xt}return or=Ft},Zr=Bt.__private__.getCreationDate=function(xt){var Ft=or;return xt==="jsDate"&&(Ft=Nn(or)),Ft};Bt.setCreationDate=function(xt){return ei(xt),this},Bt.getCreationDate=function(xt){return Zr(xt)};var br,dn=Bt.__private__.padd2=function(xt){return("0"+parseInt(xt)).slice(-2)},Ln=Bt.__private__.padd2Hex=function(xt){return("00"+(xt=xt.toString())).substr(xt.length)},Fn=0,zn=[],ui=[],ii=0,qn=[],Li=[],zi=!1,Ri=ui,ga=function(){Fn=0,ii=0,ui=[],zn=[],qn=[],sa=ra(),Pa=ra()};Bt.__private__.setCustomOutputDestination=function(xt){zi=!0,Ri=xt};var oi=function(Ft){zi||(Ri=Ft)};Bt.__private__.resetCustomOutputDestination=function(){zi=!1,Ri=ui};var hn=Bt.__private__.out=function(xt){return xt=xt.toString(),ii+=xt.length+1,Ri.push(xt),Ri},Ei=Bt.__private__.write=function(xt){return hn(arguments.length===1?xt.toString():Array.prototype.join.call(arguments," "))},Hi=Bt.__private__.getArrayBuffer=function(xt){for(var Ft=xt.length,An=new ArrayBuffer(Ft),Hn=new Uint8Array(An);Ft--;)Hn[Ft]=xt.charCodeAt(Ft);return An},ki=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];Bt.__private__.getStandardFonts=function(){return ki};var ji=Ze.fontSize||16;Bt.__private__.setFontSize=Bt.setFontSize=function(xt){return ji=jr===Dt.ADVANCED?xt/fr:xt,this};var dr,sr=Bt.__private__.getFontSize=Bt.getFontSize=function(){return jr===Dt.COMPAT?ji:ji*fr},cn=Ze.R2L||!1;Bt.__private__.setR2L=Bt.setR2L=function(xt){return cn=xt,this},Bt.__private__.getR2L=Bt.getR2L=function(){return cn};var Zt,Ar=Bt.__private__.setZoomMode=function(xt){var Ft=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^\d*\.?\d*%$/.test(xt))dr=xt;else if(isNaN(xt)){if(Ft.indexOf(xt)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+xt+'" is not recognized.');dr=xt}else dr=parseInt(xt,10)};Bt.__private__.getZoomMode=function(){return dr};var Nr,tn=Bt.__private__.setPageMode=function(xt){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(xt)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+xt+'" is not recognized.');Zt=xt};Bt.__private__.getPageMode=function(){return Zt};var pn=Bt.__private__.setLayoutMode=function(xt){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(xt)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+xt+'" is not recognized.');Nr=xt};Bt.__private__.getLayoutMode=function(){return Nr},Bt.__private__.setDisplayMode=Bt.setDisplayMode=function(xt,Ft,An){return Ar(xt),pn(Ft),tn(An),this};var St={title:"",subject:"",author:"",keywords:"",creator:""};Bt.__private__.getDocumentProperty=function(xt){if(Object.keys(St).indexOf(xt)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return St[xt]},Bt.__private__.getDocumentProperties=function(){return St},Bt.__private__.setDocumentProperties=Bt.setProperties=Bt.setDocumentProperties=function(xt){for(var Ft in St)St.hasOwnProperty(Ft)&&xt[Ft]&&(St[Ft]=xt[Ft]);return this},Bt.__private__.setDocumentProperty=function(xt,Ft){if(Object.keys(St).indexOf(xt)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return St[xt]=Ft};var cr,fr,Br,$r,wn,rn={},On={},In=[],Gn={},fi={},Yn={},gi={},vi=null,Di=0,Mi=[],xi=new R(Bt),bi=Ze.hotfixes||[],Ci={},$i={},qi=[],Ti=function xt(Ft,An,Hn,hi,At,se){if(!(this instanceof xt))return new xt(Ft,An,Hn,hi,At,se);isNaN(Ft)&&(Ft=1),isNaN(An)&&(An=0),isNaN(Hn)&&(Hn=0),isNaN(hi)&&(hi=1),isNaN(At)&&(At=0),isNaN(se)&&(se=0),this._matrix=[Ft,An,Hn,hi,At,se]};Object.defineProperty(Ti.prototype,"sx",{get:function(){return this._matrix[0]},set:function(Ft){this._matrix[0]=Ft}}),Object.defineProperty(Ti.prototype,"shy",{get:function(){return this._matrix[1]},set:function(Ft){this._matrix[1]=Ft}}),Object.defineProperty(Ti.prototype,"shx",{get:function(){return this._matrix[2]},set:function(Ft){this._matrix[2]=Ft}}),Object.defineProperty(Ti.prototype,"sy",{get:function(){return this._matrix[3]},set:function(Ft){this._matrix[3]=Ft}}),Object.defineProperty(Ti.prototype,"tx",{get:function(){return this._matrix[4]},set:function(Ft){this._matrix[4]=Ft}}),Object.defineProperty(Ti.prototype,"ty",{get:function(){return this._matrix[5]},set:function(Ft){this._matrix[5]=Ft}}),Object.defineProperty(Ti.prototype,"a",{get:function(){return this._matrix[0]},set:function(Ft){this._matrix[0]=Ft}}),Object.defineProperty(Ti.prototype,"b",{get:function(){return this._matrix[1]},set:function(Ft){this._matrix[1]=Ft}}),Object.defineProperty(Ti.prototype,"c",{get:function(){return this._matrix[2]},set:function(Ft){this._matrix[2]=Ft}}),Object.defineProperty(Ti.prototype,"d",{get:function(){return this._matrix[3]},set:function(Ft){this._matrix[3]=Ft}}),Object.defineProperty(Ti.prototype,"e",{get:function(){return this._matrix[4]},set:function(Ft){this._matrix[4]=Ft}}),Object.defineProperty(Ti.prototype,"f",{get:function(){return this._matrix[5]},set:function(Ft){this._matrix[5]=Ft}}),Object.defineProperty(Ti.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ti.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ti.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ti.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Ti.prototype.join=function(xt){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(wr).join(xt)},Ti.prototype.multiply=function(xt){var Ft=xt.sx*this.sx+xt.shy*this.shx,An=xt.sx*this.shy+xt.shy*this.sy,Hn=xt.shx*this.sx+xt.sy*this.shx,hi=xt.shx*this.shy+xt.sy*this.sy,At=xt.tx*this.sx+xt.ty*this.shx+this.tx,se=xt.tx*this.shy+xt.ty*this.sy+this.ty;return new Ti(Ft,An,Hn,hi,At,se)},Ti.prototype.decompose=function(){var xt=this.sx,Ft=this.shy,An=this.shx,Hn=this.sy,hi=this.tx,At=this.ty,se=Math.sqrt(xt*xt+Ft*Ft),ge=(xt/=se)*An+(Ft/=se)*Hn;An-=xt*ge,Hn-=Ft*ge;var Se=Math.sqrt(An*An+Hn*Hn);return ge/=Se,xt*(Hn/=Se)<Ft*(An/=Se)&&(xt=-xt,Ft=-Ft,ge=-ge,se=-se),{scale:new Ti(se,0,0,Se,0,0),translate:new Ti(1,0,0,1,hi,At),rotate:new Ti(xt,Ft,-Ft,xt,0,0),skew:new Ti(1,0,ge,1,0,0)}},Ti.prototype.toString=function(xt){return this.join(" ")},Ti.prototype.inversed=function(){var xt=this.sx,Ft=this.shy,An=this.shx,Hn=this.sy,hi=this.tx,At=this.ty,se=1/(xt*Hn-Ft*An),ge=Hn*se,Se=-Ft*se,We=-An*se,vt=xt*se;return new Ti(ge,Se,We,vt,-ge*hi-We*At,-Se*hi-vt*At)},Ti.prototype.applyToPoint=function(xt){var Ft=xt.x*this.sx+xt.y*this.shx+this.tx,An=xt.x*this.shy+xt.y*this.sy+this.ty;return new Ss(Ft,An)},Ti.prototype.applyToRectangle=function(xt){var Ft=this.applyToPoint(xt),An=this.applyToPoint(new Ss(xt.x+xt.w,xt.y+xt.h));return new ns(Ft.x,Ft.y,An.x-Ft.x,An.y-Ft.y)},Ti.prototype.clone=function(){var xt=this.sx,Ft=this.shy,An=this.shx,Hn=this.sy,hi=this.tx,At=this.ty;return new Ti(xt,Ft,An,Hn,hi,At)},Bt.Matrix=Ti;var ia=Bt.matrixMult=function(xt,Ft){return Ft.multiply(xt)},na=new Ti(1,0,0,1,0,0);Bt.unitMatrix=Bt.identityMatrix=na;var Ui=function(Ft,An){if(!fi[Ft]){var Hn=(An instanceof H?"Sh":"P")+(Object.keys(Gn).length+1).toString(10);An.id=Hn,fi[Ft]=Hn,Gn[Hn]=An,xi.publish("addPattern",An)}};Bt.ShadingPattern=H,Bt.TilingPattern=F,Bt.addShadingPattern=function(xt,Ft){return fn("addShadingPattern()"),Ui(xt,Ft),this},Bt.beginTilingPattern=function(xt){fn("beginTilingPattern()"),fs(xt.boundingBox[0],xt.boundingBox[1],xt.boundingBox[2]-xt.boundingBox[0],xt.boundingBox[3]-xt.boundingBox[1],xt.matrix)},Bt.endTilingPattern=function(xt,Ft){fn("endTilingPattern()"),Ft.stream=Li[br].join(`
|
|
|
`),Ui(xt,Ft),xi.publish("endTilingPattern",Ft),qi.pop().restore()};var Ki=Bt.__private__.newObject=function(){var xt=ra();return ea(xt,!0),xt},ra=Bt.__private__.newObjectDeferred=function(){return Fn++,zn[Fn]=function(){return ii},Fn},ea=function(Ft,An){return An=typeof An=="boolean"&&An,zn[Ft]=ii,An&&hn(Ft+" 0 obj"),Ft},va=Bt.__private__.newAdditionalObject=function(){var xt={objId:ra(),content:""};return qn.push(xt),xt},sa=ra(),Pa=ra(),ka=Bt.__private__.decodeColorString=function(xt){var Ft=xt.split(" ");if(Ft.length!==2||Ft[1]!=="g"&&Ft[1]!=="G")Ft.length===5&&(Ft[4]==="k"||Ft[4]==="K")&&(Ft=[(1-Ft[0])*(1-Ft[3]),(1-Ft[1])*(1-Ft[3]),(1-Ft[2])*(1-Ft[3]),"r"]);else{var An=parseFloat(Ft[0]);Ft=[An,An,An,"r"]}for(var Hn="#",hi=0;hi<3;hi++)Hn+=("0"+Math.floor(255*parseFloat(Ft[hi])).toString(16)).slice(-2);return Hn},Ia=Bt.__private__.encodeColorString=function(xt){var Ft;typeof xt=="string"&&(xt={ch1:xt});var An=xt.ch1,Hn=xt.ch2,hi=xt.ch3,At=xt.ch4,se=xt.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof An=="string"&&An.charAt(0)!=="#"){var ge=new s(An);if(ge.ok)An=ge.toHex();else if(!/^\d*\.?\d*$/.test(An))throw new Error('Invalid color "'+An+'" passed to jsPDF.encodeColorString.')}if(typeof An=="string"&&/^#[0-9A-Fa-f]{3}$/.test(An)&&(An="#"+An[1]+An[1]+An[2]+An[2]+An[3]+An[3]),typeof An=="string"&&/^#[0-9A-Fa-f]{6}$/.test(An)){var Se=parseInt(An.substr(1),16);An=Se>>16&255,Hn=Se>>8&255,hi=255&Se}if(Hn===void 0||At===void 0&&An===Hn&&Hn===hi)if(typeof An=="string")Ft=An+" "+se[0];else switch(xt.precision){case 2:Ft=Dr(An/255)+" "+se[0];break;case 3:default:Ft=ir(An/255)+" "+se[0]}else if(At===void 0||T()(At)==="object"){if(At&&!isNaN(At.a)&&At.a===0)return Ft=["1.","1.","1.",se[1]].join(" ");if(typeof An=="string")Ft=[An,Hn,hi,se[1]].join(" ");else switch(xt.precision){case 2:Ft=[Dr(An/255),Dr(Hn/255),Dr(hi/255),se[1]].join(" ");break;default:case 3:Ft=[ir(An/255),ir(Hn/255),ir(hi/255),se[1]].join(" ")}}else if(typeof An=="string")Ft=[An,Hn,hi,At,se[2]].join(" ");else switch(xt.precision){case 2:Ft=[Dr(An),Dr(Hn),Dr(hi),Dr(At),se[2]].join(" ");break;case 3:default:Ft=[ir(An),ir(Hn),ir(hi),ir(At),se[2]].join(" ")}return Ft},Ea=Bt.__private__.getFilters=function(){return qe},So=Bt.__private__.putStream=function(xt){var Ft=(xt=xt||{}).data||"",An=xt.filters||Ea(),Hn=xt.alreadyAppliedFilters||[],hi=xt.addLength1||!1,At=Ft.length,se=xt.objectId,ge=function(Jn){return Jn};if(kr!==null&&se===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");kr!==null&&(ge=Qi.encryptor(se,0));var Se={};An===!0&&(An=["FlateEncode"]);var We=xt.additionalKeyValues||[],vt=(Se=K.API.processDataByFilters!==void 0?K.API.processDataByFilters(Ft,An):{data:Ft,reverseChain:[]}).reverseChain+(Array.isArray(Hn)?Hn.join(" "):Hn.toString());if(Se.data.length!==0&&(We.push({key:"Length",value:Se.data.length}),hi===!0&&We.push({key:"Length1",value:At})),vt.length!=0)if(vt.split("/").length-1==1)We.push({key:"Filter",value:vt});else{We.push({key:"Filter",value:"["+vt+"]"});for(var Yt=0;Yt<We.length;Yt+=1)if(We[Yt].key==="DecodeParms"){for(var Rr=[],Yr=0;Yr<Se.reverseChain.split("/").length-1;Yr+=1)Rr.push("null");Rr.push(We[Yt].value),We[Yt].value="["+Rr.join(" ")+"]"}}hn("<<");for(var mn=0;mn<We.length;mn++)hn("/"+We[mn].key+" "+We[mn].value);hn(">>"),Se.data.length!==0&&(hn("stream"),hn(ge(Se.data)),hn("endstream"))},Ga=Bt.__private__.putPage=function(xt){var Ft=xt.number,An=xt.data,Hn=xt.objId,hi=xt.contentsObjId;ea(Hn,!0),hn("<</Type /Page"),hn("/Parent "+xt.rootDictionaryObjId+" 0 R"),hn("/Resources "+xt.resourceDictionaryObjId+" 0 R"),hn("/MediaBox ["+parseFloat(wr(xt.mediaBox.bottomLeftX))+" "+parseFloat(wr(xt.mediaBox.bottomLeftY))+" "+wr(xt.mediaBox.topRightX)+" "+wr(xt.mediaBox.topRightY)+"]"),xt.cropBox!==null&&hn("/CropBox ["+wr(xt.cropBox.bottomLeftX)+" "+wr(xt.cropBox.bottomLeftY)+" "+wr(xt.cropBox.topRightX)+" "+wr(xt.cropBox.topRightY)+"]"),xt.bleedBox!==null&&hn("/BleedBox ["+wr(xt.bleedBox.bottomLeftX)+" "+wr(xt.bleedBox.bottomLeftY)+" "+wr(xt.bleedBox.topRightX)+" "+wr(xt.bleedBox.topRightY)+"]"),xt.trimBox!==null&&hn("/TrimBox ["+wr(xt.trimBox.bottomLeftX)+" "+wr(xt.trimBox.bottomLeftY)+" "+wr(xt.trimBox.topRightX)+" "+wr(xt.trimBox.topRightY)+"]"),xt.artBox!==null&&hn("/ArtBox ["+wr(xt.artBox.bottomLeftX)+" "+wr(xt.artBox.bottomLeftY)+" "+wr(xt.artBox.topRightX)+" "+wr(xt.artBox.topRightY)+"]"),typeof xt.userUnit=="number"&&xt.userUnit!==1&&hn("/UserUnit "+xt.userUnit),xi.publish("putPage",{objId:Hn,pageContext:Mi[Ft],pageNumber:Ft,page:An}),hn("/Contents "+hi+" 0 R"),hn(">>"),hn("endobj");var At=An.join(`
|
|
|
`);return jr===Dt.ADVANCED&&(At+=`
|
|
|
Q`),ea(hi,!0),So({data:At,filters:Ea(),objectId:hi}),hn("endobj"),Hn},Va=Bt.__private__.putPages=function(){var xt,Ft,An=[];for(xt=1;xt<=Di;xt++)Mi[xt].objId=ra(),Mi[xt].contentsObjId=ra();for(xt=1;xt<=Di;xt++)An.push(Ga({number:xt,data:Li[xt],objId:Mi[xt].objId,contentsObjId:Mi[xt].contentsObjId,mediaBox:Mi[xt].mediaBox,cropBox:Mi[xt].cropBox,bleedBox:Mi[xt].bleedBox,trimBox:Mi[xt].trimBox,artBox:Mi[xt].artBox,userUnit:Mi[xt].userUnit,rootDictionaryObjId:sa,resourceDictionaryObjId:Pa}));ea(sa,!0),hn("<</Type /Pages");var Hn="/Kids [";for(Ft=0;Ft<Di;Ft++)Hn+=An[Ft]+" 0 R ";hn(Hn+"]"),hn("/Count "+Di),hn(">>"),hn("endobj"),xi.publish("postPutPages")},Ra=function(Ft){xi.publish("putFont",{font:Ft,out:hn,newObject:Ki,putStream:So}),Ft.isAlreadyPutted!==!0&&(Ft.objectNumber=Ki(),hn("<<"),hn("/Type /Font"),hn("/BaseFont /"+N(Ft.postScriptName)),hn("/Subtype /Type1"),typeof Ft.encoding=="string"&&hn("/Encoding /"+Ft.encoding),hn("/FirstChar 32"),hn("/LastChar 255"),hn(">>"),hn("endobj"))},po=function(){for(var Ft in rn)rn.hasOwnProperty(Ft)&&(_r===!1||_r===!0&&Xr.hasOwnProperty(Ft))&&Ra(rn[Ft])},mo=function(Ft){Ft.objectNumber=Ki();var An=[];An.push({key:"Type",value:"/XObject"}),An.push({key:"Subtype",value:"/Form"}),An.push({key:"BBox",value:"["+[wr(Ft.x),wr(Ft.y),wr(Ft.x+Ft.width),wr(Ft.y+Ft.height)].join(" ")+"]"}),An.push({key:"Matrix",value:"["+Ft.matrix.toString()+"]"});var Hn=Ft.pages[1].join(`
|
|
|
`);So({data:Hn,additionalKeyValues:An,objectId:Ft.objectNumber}),hn("endobj")},Aa=function(){for(var Ft in Ci)Ci.hasOwnProperty(Ft)&&mo(Ci[Ft])},Io=function(Ft,An){var Hn,hi=[],At=1/(An-1);for(Hn=0;Hn<1;Hn+=At)hi.push(Hn);if(hi.push(1),Ft[0].offset!=0){var se={offset:0,color:Ft[0].color};Ft.unshift(se)}if(Ft[Ft.length-1].offset!=1){var ge={offset:1,color:Ft[Ft.length-1].color};Ft.push(ge)}for(var Se="",We=0,vt=0;vt<hi.length;vt++){for(Hn=hi[vt];Hn>Ft[We+1].offset;)We++;var Yt=Ft[We].offset,Rr=(Hn-Yt)/(Ft[We+1].offset-Yt),Yr=Ft[We].color,mn=Ft[We+1].color;Se+=Ln(Math.round((1-Rr)*Yr[0]+Rr*mn[0]).toString(16))+Ln(Math.round((1-Rr)*Yr[1]+Rr*mn[1]).toString(16))+Ln(Math.round((1-Rr)*Yr[2]+Rr*mn[2]).toString(16))}return Se.trim()},go=function(Ft,An){An||(An=21);var Hn=Ki(),hi=Io(Ft.colors,An),At=[];At.push({key:"FunctionType",value:"0"}),At.push({key:"Domain",value:"[0.0 1.0]"}),At.push({key:"Size",value:"["+An+"]"}),At.push({key:"BitsPerSample",value:"8"}),At.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),At.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),So({data:hi,additionalKeyValues:At,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Hn}),hn("endobj"),Ft.objectNumber=Ki(),hn("<< /ShadingType "+Ft.type),hn("/ColorSpace /DeviceRGB");var se="/Coords ["+wr(parseFloat(Ft.coords[0]))+" "+wr(parseFloat(Ft.coords[1]))+" ";Ft.type===2?se+=wr(parseFloat(Ft.coords[2]))+" "+wr(parseFloat(Ft.coords[3])):se+=wr(parseFloat(Ft.coords[2]))+" "+wr(parseFloat(Ft.coords[3]))+" "+wr(parseFloat(Ft.coords[4]))+" "+wr(parseFloat(Ft.coords[5])),hn(se+="]"),Ft.matrix&&hn("/Matrix ["+Ft.matrix.toString()+"]"),hn("/Function "+Hn+" 0 R"),hn("/Extend [true true]"),hn(">>"),hn("endobj")},Qa=function(Ft,An){var Hn=ra(),hi=Ki();An.push({resourcesOid:Hn,objectOid:hi}),Ft.objectNumber=hi;var At=[];At.push({key:"Type",value:"/Pattern"}),At.push({key:"PatternType",value:"1"}),At.push({key:"PaintType",value:"1"}),At.push({key:"TilingType",value:"1"}),At.push({key:"BBox",value:"["+Ft.boundingBox.map(wr).join(" ")+"]"}),At.push({key:"XStep",value:wr(Ft.xStep)}),At.push({key:"YStep",value:wr(Ft.yStep)}),At.push({key:"Resources",value:Hn+" 0 R"}),Ft.matrix&&At.push({key:"Matrix",value:"["+Ft.matrix.toString()+"]"}),So({data:Ft.stream,additionalKeyValues:At,objectId:Ft.objectNumber}),hn("endobj")},wo=function(Ft){var An;for(An in Gn)Gn.hasOwnProperty(An)&&(Gn[An]instanceof H?go(Gn[An]):Gn[An]instanceof F&&Qa(Gn[An],Ft))},pa=function(Ft){for(var An in Ft.objectNumber=Ki(),hn("<<"),Ft)switch(An){case"opacity":hn("/ca "+Dr(Ft[An]));break;case"stroke-opacity":hn("/CA "+Dr(Ft[An]))}hn(">>"),hn("endobj")},to=function(){var Ft;for(Ft in Yn)Yn.hasOwnProperty(Ft)&&pa(Yn[Ft])},ao=function(){for(var Ft in hn("/XObject <<"),Ci)Ci.hasOwnProperty(Ft)&&Ci[Ft].objectNumber>=0&&hn("/"+Ft+" "+Ci[Ft].objectNumber+" 0 R");xi.publish("putXobjectDict"),hn(">>")},Bo=function(){Qi.oid=Ki(),hn("<<"),hn("/Filter /Standard"),hn("/V "+Qi.v),hn("/R "+Qi.r),hn("/U <"+Qi.toHexString(Qi.U)+">"),hn("/O <"+Qi.toHexString(Qi.O)+">"),hn("/P "+Qi.P),hn(">>"),hn("endobj")},Ja=function(){for(var Ft in hn("/Font <<"),rn)rn.hasOwnProperty(Ft)&&(_r===!1||_r===!0&&Xr.hasOwnProperty(Ft))&&hn("/"+Ft+" "+rn[Ft].objectNumber+" 0 R");hn(">>")},_o=function(){if(Object.keys(Gn).length>0){for(var Ft in hn("/Shading <<"),Gn)Gn.hasOwnProperty(Ft)&&Gn[Ft]instanceof H&&Gn[Ft].objectNumber>=0&&hn("/"+Ft+" "+Gn[Ft].objectNumber+" 0 R");xi.publish("putShadingPatternDict"),hn(">>")}},Ao=function(Ft){if(Object.keys(Gn).length>0){for(var An in hn("/Pattern <<"),Gn)Gn.hasOwnProperty(An)&&Gn[An]instanceof Bt.TilingPattern&&Gn[An].objectNumber>=0&&Gn[An].objectNumber<Ft&&hn("/"+An+" "+Gn[An].objectNumber+" 0 R");xi.publish("putTilingPatternDict"),hn(">>")}},za=function(){if(Object.keys(Yn).length>0){var Ft;for(Ft in hn("/ExtGState <<"),Yn)Yn.hasOwnProperty(Ft)&&Yn[Ft].objectNumber>=0&&hn("/"+Ft+" "+Yn[Ft].objectNumber+" 0 R");xi.publish("putGStateDict"),hn(">>")}},ja=function(Ft){ea(Ft.resourcesOid,!0),hn("<<"),hn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Ja(),_o(),Ao(Ft.objectOid),za(),ao(),hn(">>"),hn("endobj")},da=function(){var Ft=[];po(),to(),Aa(),wo(Ft),xi.publish("putResources"),Ft.forEach(ja),ja({resourcesOid:Pa,objectOid:Number.MAX_SAFE_INTEGER}),xi.publish("postPutResources")},rt=function(){xi.publish("putAdditionalObjects");for(var Ft=0;Ft<qn.length;Ft++){var An=qn[Ft];ea(An.objId,!0),hn(An.content),hn("endobj")}xi.publish("postPutAdditionalObjects")},ar=function(Ft){On[Ft.fontName]=On[Ft.fontName]||{},On[Ft.fontName][Ft.fontStyle]=Ft.id},Fr=function(Ft,An,Hn,hi,At){var se={id:"F"+(Object.keys(rn).length+1).toString(10),postScriptName:Ft,fontName:An,fontStyle:Hn,encoding:hi,isStandardFont:At||!1,metadata:{}};return xi.publish("addFont",{font:se,instance:this}),rn[se.id]=se,ar(se),se.id},Ir=function(Ft){for(var An=0,Hn=ki.length;An<Hn;An++){var hi=Fr.call(this,Ft[An][0],Ft[An][1],Ft[An][2],ki[An][3],!0);_r===!1&&(Xr[hi]=!0);var At=Ft[An][0].split("-");ar({id:hi,fontName:At[0],fontStyle:At[1]||""})}xi.publish("addFonts",{fonts:rn,dictionary:On})},En=function(Ft){return Ft.foo=function(){try{return Ft.apply(this,arguments)}catch(hi){var An=hi.stack||"";~An.indexOf(" at ")&&(An=An.split(" at ")[1]);var Hn="Error in function "+An.split(`
|
|
|
`)[0].split("<")[0]+": "+hi.message;if(!S.console)throw new Error(Hn);S.console.error(Hn,hi),S.alert&&alert(Hn)}},Ft.foo.bar=Ft,Ft.foo},zr=function(Ft,An){var Hn,hi,At,se,ge,Se,We,vt,Yt;if(At=(An=An||{}).sourceEncoding||"Unicode",ge=An.outputEncoding,(An.autoencode||ge)&&rn[cr].metadata&&rn[cr].metadata[At]&&rn[cr].metadata[At].encoding&&(se=rn[cr].metadata[At].encoding,!ge&&rn[cr].encoding&&(ge=rn[cr].encoding),!ge&&se.codePages&&(ge=se.codePages[0]),typeof ge=="string"&&(ge=se[ge]),ge)){for(We=!1,Se=[],Hn=0,hi=Ft.length;Hn<hi;Hn++)(vt=ge[Ft.charCodeAt(Hn)])?Se.push(String.fromCharCode(vt)):Se.push(Ft[Hn]),Se[Hn].charCodeAt(0)>>8&&(We=!0);Ft=Se.join("")}for(Hn=Ft.length;We===void 0&&Hn!==0;)Ft.charCodeAt(Hn-1)>>8&&(We=!0),Hn--;if(!We)return Ft;for(Se=An.noBOM?[]:[254,255],Hn=0,hi=Ft.length;Hn<hi;Hn++){if((Yt=(vt=Ft.charCodeAt(Hn))>>8)>>8)throw new Error("Character at position "+Hn+" of string '"+Ft+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Se.push(Yt),Se.push(vt-(Yt<<8))}return String.fromCharCode.apply(void 0,Se)},yr=Bt.__private__.pdfEscape=Bt.pdfEscape=function(xt,Ft){return zr(xt,Ft).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Cn=Bt.__private__.beginPage=function(xt){Li[++Di]=[],Mi[Di]={objId:0,contentsObjId:0,userUnit:Number(yt),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(xt[0]),topRightY:Number(xt[1])}},Qn(Di),oi(Li[br])},Pr=function(Ft,An){var Hn,hi,At;switch(Ne=An||Ne,typeof Ft=="string"&&(Hn=en(Ft.toLowerCase()),Array.isArray(Hn)&&(hi=Hn[0],At=Hn[1])),Array.isArray(Ft)&&(hi=Ft[0]*fr,At=Ft[1]*fr),isNaN(hi)&&(hi=Qe[0],At=Qe[1]),(hi>14400||At>14400)&&(f.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),hi=Math.min(14400,hi),At=Math.min(14400,At)),Qe=[hi,At],Ne.substr(0,1)){case"l":At>hi&&(Qe=[At,hi]);break;case"p":hi>At&&(Qe=[At,hi])}Cn(Qe),Ca($a),hn(jo),cs!==0&&hn(cs+" J"),Vo!==0&&hn(Vo+" j"),xi.publish("addPage",{pageNumber:Di})},xn=function(Ft){Ft>0&&Ft<=Di&&(Li.splice(Ft,1),Mi.splice(Ft,1),Di--,br>Di&&(br=Di),this.setPage(br))},Qn=function(Ft){Ft>0&&Ft<=Di&&(br=Ft)},$n=Bt.__private__.getNumberOfPages=Bt.getNumberOfPages=function(){return Li.length-1},Kn=function(Ft,An,Hn){var hi,At=void 0;return Hn=Hn||{},Ft=Ft!==void 0?Ft:rn[cr].fontName,An=An!==void 0?An:rn[cr].fontStyle,hi=Ft.toLowerCase(),On[hi]!==void 0&&On[hi][An]!==void 0?At=On[hi][An]:On[Ft]!==void 0&&On[Ft][An]!==void 0?At=On[Ft][An]:Hn.disableWarning===!1&&f.warn("Unable to look up font label for font '"+Ft+"', '"+An+"'. Refer to getFontList() for available fonts."),At||Hn.noFallback||(At=On.times[An])==null&&(At=On.times.normal),At},si=Bt.__private__.putInfo=function(){var xt=Ki(),Ft=function(hi){return hi};for(var An in kr!==null&&(Ft=Qi.encryptor(xt,0)),hn("<<"),hn("/Producer ("+yr(Ft("jsPDF "+K.version))+")"),St)St.hasOwnProperty(An)&&St[An]&&hn("/"+An.substr(0,1).toUpperCase()+An.substr(1)+" ("+yr(Ft(St[An]))+")");hn("/CreationDate ("+yr(Ft(or))+")"),hn(">>"),hn("endobj")},Xn=Bt.__private__.putCatalog=function(xt){var Ft=(xt=xt||{}).rootDictionaryObjId||sa;switch(Ki(),hn("<<"),hn("/Type /Catalog"),hn("/Pages "+Ft+" 0 R"),dr||(dr="fullwidth"),dr){case"fullwidth":hn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":hn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":hn("/OpenAction [3 0 R /Fit]");break;case"original":hn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var An=""+dr;An.substr(An.length-1)==="%"&&(dr=parseInt(dr)/100),typeof dr=="number"&&hn("/OpenAction [3 0 R /XYZ null null "+Dr(dr)+"]")}switch(Nr||(Nr="continuous"),Nr){case"continuous":hn("/PageLayout /OneColumn");break;case"single":hn("/PageLayout /SinglePage");break;case"two":case"twoleft":hn("/PageLayout /TwoColumnLeft");break;case"tworight":hn("/PageLayout /TwoColumnRight")}Zt&&hn("/PageMode /"+Zt),xi.publish("putCatalog"),hn(">>"),hn("endobj")},ti=Bt.__private__.putTrailer=function(){hn("trailer"),hn("<<"),hn("/Size "+(Fn+1)),hn("/Root "+Fn+" 0 R"),hn("/Info "+(Fn-1)+" 0 R"),kr!==null&&hn("/Encrypt "+Qi.oid+" 0 R"),hn("/ID [ <"+Cr+"> <"+Cr+"> ]"),hn(">>")},di=Bt.__private__.putHeader=function(){hn("%PDF-"+gn),hn("%\xBA\xDF\xAC\xE0")},Bi=Bt.__private__.putXRef=function(){var xt="0000000000";hn("xref"),hn("0 "+(Fn+1)),hn("0000000000 65535 f ");for(var Ft=1;Ft<=Fn;Ft++)typeof zn[Ft]=="function"?hn((xt+zn[Ft]()).slice(-10)+" 00000 n "):zn[Ft]!==void 0?hn((xt+zn[Ft]).slice(-10)+" 00000 n "):hn("0000000000 00000 n ")},yi=Bt.__private__.buildDocument=function(){ga(),oi(ui),xi.publish("buildDocument"),di(),Va(),rt(),da(),kr!==null&&Bo(),si(),Xn();var xt=ii;return Bi(),ti(),hn("startxref"),hn(""+xt),hn("%%EOF"),oi(Li[br]),ui.join(`
|
|
|
`)},Xi=Bt.__private__.getBlob=function(xt){return new Blob([Hi(xt)],{type:"application/pdf"})},ba=Bt.output=Bt.__private__.output=En(function(xt,Ft){switch(typeof(Ft=Ft||{})=="string"?Ft={filename:Ft}:Ft.filename=Ft.filename||"generated.pdf",xt){case void 0:return yi();case"save":Bt.save(Ft.filename);break;case"arraybuffer":return Hi(yi());case"blob":return Xi(yi());case"bloburi":case"bloburl":if(S.URL!==void 0&&typeof S.URL.createObjectURL=="function")return S.URL&&S.URL.createObjectURL(Xi(yi()))||void 0;f.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var An="",Hn=yi();try{An=n(Hn)}catch(Yt){An=n(unescape(encodeURIComponent(Hn)))}return"data:application/pdf;filename="+Ft.filename+";base64,"+An;case"pdfobjectnewwindow":if(Object.prototype.toString.call(S)==="[object Window]"){var hi='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+(Ft.pdfObjectUrl||"https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js")+'"></script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Ft)+");</script></body></html>",At=S.open();return At!==null&&At.document.write(hi),At}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(S)==="[object Window]"){var se='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(Ft.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+Ft.filename+'" width="500px" height="400px" /></body></html>',ge=S.open();if(ge!==null){ge.document.write(se);var Se=this;ge.document.documentElement.querySelector("#pdfViewer").onload=function(){ge.document.title=Ft.filename,ge.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Se.output("bloburl"))}}return ge}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(S)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var We='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",Ft)+'"></iframe></body></html>',vt=S.open();if(vt!==null&&(vt.document.write(We),vt.document.title=Ft.filename),vt||typeof safari=="undefined")return vt;break;case"datauri":case"dataurl":return S.document.location.href=this.output("datauristring",Ft);default:return null}}),ta=function(Ft){return Array.isArray(bi)===!0&&bi.indexOf(Ft)>-1};switch(Ue){case"pt":fr=1;break;case"mm":fr=72/25.4;break;case"cm":fr=72/2.54;break;case"in":fr=72;break;case"px":fr=ta("px_scaling")==1?.75:96/72;break;case"pc":case"em":fr=12;break;case"ex":fr=6;break;default:throw new Error("Invalid unit: "+Ue)}var Qi=null;ei(),Kr();var aa=function(Ft){return kr!==null?Qi.encryptor(Ft,0):function(An){return An}},fa=Bt.__private__.getPageInfo=Bt.getPageInfo=function(xt){if(isNaN(xt)||xt%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Mi[xt].objId,pageNumber:xt,pageContext:Mi[xt]}},xo=Bt.__private__.getPageInfoByObjId=function(xt){if(isNaN(xt)||xt%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Ft in Mi)if(Mi[Ft].objId===xt)break;return fa(Ft)},Za=Bt.__private__.getCurrentPageInfo=Bt.getCurrentPageInfo=function(){return{objId:Mi[br].objId,pageNumber:br,pageContext:Mi[br]}};Bt.addPage=function(){return Pr.apply(this,arguments),this},Bt.setPage=function(){return Qn.apply(this,arguments),oi.call(this,Li[br]),this},Bt.insertPage=function(xt){return this.addPage(),this.movePage(br,xt),this},Bt.movePage=function(xt,Ft){var An,Hn;if(xt>Ft){An=Li[xt],Hn=Mi[xt];for(var hi=xt;hi>Ft;hi--)Li[hi]=Li[hi-1],Mi[hi]=Mi[hi-1];Li[Ft]=An,Mi[Ft]=Hn,this.setPage(Ft)}else if(xt<Ft){An=Li[xt],Hn=Mi[xt];for(var At=xt;At<Ft;At++)Li[At]=Li[At+1],Mi[At]=Mi[At+1];Li[Ft]=An,Mi[Ft]=Hn,this.setPage(Ft)}return this},Bt.deletePage=function(){return xn.apply(this,arguments),this},Bt.__private__.text=Bt.text=function(xt,Ft,An,Hn,hi){var At,se,ge,Se,We,vt,Yt,Rr,Yr=(Hn=Hn||{}).scope||this;if(typeof xt=="number"&&typeof Ft=="number"&&(typeof An=="string"||Array.isArray(An))){var mn=An;An=Ft,Ft=xt,xt=mn}if(arguments[3]instanceof Ti==!1?(ge=arguments[4],Se=arguments[5],T()(Yt=arguments[3])==="object"&&Yt!==null||(typeof ge=="string"&&(Se=ge,ge=null),typeof Yt=="string"&&(Se=Yt,Yt=null),typeof Yt=="number"&&(ge=Yt,Yt=null),Hn={flags:Yt,angle:ge,align:Se})):(fn("The transform parameter of text() with a Matrix value"),Rr=hi),isNaN(Ft)||isNaN(An)||xt==null)throw new Error("Invalid arguments passed to jsPDF.text");if(xt.length===0)return Yr;var Wn="",Jn=!1,ri=typeof Hn.lineHeightFactor=="number"?Hn.lineHeightFactor:Fa,Ii=Yr.internal.scaleFactor;function Yi(_s){return _s=_s.split(" ").join(Array(Hn.TabLen||9).join(" ")),yr(_s,Yt)}function ma(_s){for(var Ts,Ws=_s.concat(),Os=[],zs=Ws.length;zs--;)typeof(Ts=Ws.shift())=="string"?Os.push(Ts):Array.isArray(_s)&&(Ts.length===1||Ts[1]===void 0&&Ts[2]===void 0)?Os.push(Ts[0]):Os.push([Ts[0],Ts[1],Ts[2]]);return Os}function Ta(_s,Ts){var Ws;if(typeof _s=="string")Ws=Ts(_s)[0];else if(Array.isArray(_s)){for(var Os,zs,Tl=_s.concat(),Sl=[],Ol=Tl.length;Ol--;)typeof(Os=Tl.shift())=="string"?Sl.push(Ts(Os)[0]):Array.isArray(Os)&&typeof Os[0]=="string"&&(zs=Ts(Os[0],Os[1],Os[2]),Sl.push([zs[0],zs[1],zs[2]]));Ws=Sl}return Ws}var uo=!1,bo=!0;if(typeof xt=="string")uo=!0;else if(Array.isArray(xt)){var co=xt.concat();se=[];for(var Zo,Oo=co.length;Oo--;)(typeof(Zo=co.shift())!="string"||Array.isArray(Zo)&&typeof Zo[0]!="string")&&(bo=!1);uo=bo}if(uo===!1)throw new Error('Type of text must be string or Array. "'+xt+'" is not recognized.');typeof xt=="string"&&(xt=xt.match(/[\r?\n]/)?xt.split(/\r\n|\r|\n/g):[xt]);var Do=ji/Yr.internal.scaleFactor,Ha=Do*(Fa-1);switch(Hn.baseline){case"bottom":An-=Ha;break;case"top":An+=Do-Ha;break;case"hanging":An+=Do-2*Ha;break;case"middle":An+=Do/2-Ha}if((vt=Hn.maxWidth||0)>0&&(typeof xt=="string"?xt=Yr.splitTextToSize(xt,vt):Object.prototype.toString.call(xt)==="[object Array]"&&(xt=xt.reduce(function(_s,Ts){return _s.concat(Yr.splitTextToSize(Ts,vt))},[]))),At={text:xt,x:Ft,y:An,options:Hn,mutex:{pdfEscape:yr,activeFontKey:cr,fonts:rn,activeFontSize:ji}},xi.publish("preProcessText",At),xt=At.text,ge=(Hn=At.options).angle,Rr instanceof Ti==!1&&ge&&typeof ge=="number"){ge*=Math.PI/180,Hn.rotationDirection===0&&(ge=-ge),jr===Dt.ADVANCED&&(ge=-ge);var Ya=Math.cos(ge),ps=Math.sin(ge);Rr=new Ti(Ya,ps,-ps,Ya,0,0)}else ge&&ge instanceof Ti&&(Rr=ge);jr!==Dt.ADVANCED||Rr||(Rr=na),(We=Hn.charSpace||Bs)!==void 0&&(Wn+=wr(Lt(We))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),Hn.lang;var ts=-1,$o=Hn.renderingMode!==void 0?Hn.renderingMode:Hn.stroke,Ds=Yr.internal.getCurrentPageInfo().pageContext;switch($o){case 0:case!1:case"fill":ts=0;break;case 1:case!0:case"stroke":ts=1;break;case 2:case"fillThenStroke":ts=2;break;case 3:case"invisible":ts=3;break;case 4:case"fillAndAddForClipping":ts=4;break;case 5:case"strokeAndAddPathForClipping":ts=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":ts=6;break;case 7:case"addToPathForClipping":ts=7}var Hs=Ds.usedRenderingMode!==void 0?Ds.usedRenderingMode:-1;ts!==-1?Wn+=ts+` Tr
|
|
|
`:Hs!==-1&&(Wn+=`0 Tr
|
|
|
`),ts!==-1&&(Ds.usedRenderingMode=ts),Se=Hn.align||"left";var xs,Xo=ji*ri,Js=Yr.internal.pageSize.getWidth(),Cs=rn[cr];We=Hn.charSpace||Bs,vt=Hn.maxWidth||0,Yt=Object.assign({autoencode:!0,noBOM:!0},Hn.flags);var fl=[];if(Object.prototype.toString.call(xt)==="[object Array]"){var sl;se=ma(xt),Se!=="left"&&(xs=se.map(function(_s){return Yr.getStringUnitWidth(_s,{font:Cs,charSpace:We,fontSize:ji,doKerning:!1})*ji/Ii}));var Ks,as=0;if(Se==="right"){Ft-=xs[0],xt=[],Oo=se.length;for(var ha=0;ha<Oo;ha++)ha===0?(Ks=rs(Ft),sl=ho(An)):(Ks=Lt(as-xs[ha]),sl=-Xo),xt.push([se[ha],Ks,sl]),as=xs[ha]}else if(Se==="center"){Ft-=xs[0]/2,xt=[],Oo=se.length;for(var Zs=0;Zs<Oo;Zs++)Zs===0?(Ks=rs(Ft),sl=ho(An)):(Ks=Lt((as-xs[Zs])/2),sl=-Xo),xt.push([se[Zs],Ks,sl]),as=xs[Zs]}else if(Se==="left"){xt=[],Oo=se.length;for(var ll=0;ll<Oo;ll++)xt.push(se[ll])}else{if(Se!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');xt=[],Oo=se.length,vt=vt!==0?vt:Js;for(var lo=0;lo<Oo;lo++)sl=lo===0?ho(An):-Xo,Ks=lo===0?rs(Ft):0,lo<Oo-1?fl.push(wr(Lt((vt-xs[lo])/(se[lo].split(" ").length-1)))):fl.push(0),xt.push([se[lo],Ks,sl])}}var Ka=typeof Hn.R2L=="boolean"?Hn.R2L:cn;Ka===!0&&(xt=Ta(xt,function(_s,Ts,Ws){return[_s.split("").reverse().join(""),Ts,Ws]})),At={text:xt,x:Ft,y:An,options:Hn,mutex:{pdfEscape:yr,activeFontKey:cr,fonts:rn,activeFontSize:ji}},xi.publish("postProcessText",At),xt=At.text,Jn=At.mutex.isHex||!1;var Fo=rn[cr].encoding;Fo!=="WinAnsiEncoding"&&Fo!=="StandardEncoding"||(xt=Ta(xt,function(_s,Ts,Ws){return[Yi(_s),Ts,Ws]})),se=ma(xt),xt=[];for(var Ko,Wo,Co,is=0,ms=1,Rs=Array.isArray(se[0])?ms:is,Us="",el=function(Ts,Ws,Os){var zs="";return Os instanceof Ti?(Os=typeof Hn.angle=="number"?ia(Os,new Ti(1,0,0,1,Ts,Ws)):ia(new Ti(1,0,0,1,Ts,Ws),Os),jr===Dt.ADVANCED&&(Os=ia(new Ti(1,0,0,-1,0,0),Os)),zs=Os.join(" ")+` Tm
|
|
|
`):zs=wr(Ts)+" "+wr(Ws)+` Td
|
|
|
`,zs},Qs=0;Qs<se.length;Qs++){switch(Us="",Rs){case ms:Co=(Jn?"<":"(")+se[Qs][0]+(Jn?">":")"),Ko=parseFloat(se[Qs][1]),Wo=parseFloat(se[Qs][2]);break;case is:Co=(Jn?"<":"(")+se[Qs]+(Jn?">":")"),Ko=rs(Ft),Wo=ho(An)}fl!==void 0&&fl[Qs]!==void 0&&(Us=fl[Qs]+` Tw
|
|
|
`),Qs===0?xt.push(Us+el(Ko,Wo,Rr)+Co):Rs===is?xt.push(Us+Co):Rs===ms&&xt.push(Us+el(Ko,Wo,Rr)+Co)}xt=Rs===is?xt.join(` Tj
|
|
|
T* `):xt.join(` Tj
|
|
|
`),xt+=` Tj
|
|
|
`;var tl=`BT
|
|
|
/`;return tl+=cr+" "+ji+` Tf
|
|
|
`,tl+=wr(ji*ri)+` TL
|
|
|
`,tl+=on+`
|
|
|
`,tl+=Wn,tl+=xt,hn(tl+="ET"),Xr[cr]=!0,Yr};var Wi=Bt.__private__.clip=Bt.clip=function(xt){return hn(xt==="evenodd"?"W*":"W"),this};Bt.clipEvenOdd=function(){return Wi("evenodd")},Bt.__private__.discardPath=Bt.discardPath=function(){return hn("n"),this};var Gi=Bt.__private__.isValidStyle=function(xt){var Ft=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(xt)!==-1&&(Ft=!0),Ft};Bt.__private__.setDefaultPathOperation=Bt.setDefaultPathOperation=function(xt){return Gi(xt)&&(Jt=xt),this};var ca=Bt.__private__.getStyle=Bt.getStyle=function(xt){var Ft=Jt;switch(xt){case"D":case"S":Ft="S";break;case"F":Ft="f";break;case"FD":case"DF":Ft="B";break;case"f":case"f*":case"B":case"B*":Ft=xt}return Ft},ya=Bt.close=function(){return hn("h"),this};Bt.stroke=function(){return hn("S"),this},Bt.fill=function(xt){return Xa("f",xt),this},Bt.fillEvenOdd=function(xt){return Xa("f*",xt),this},Bt.fillStroke=function(xt){return Xa("B",xt),this},Bt.fillStrokeEvenOdd=function(xt){return Xa("B*",xt),this};var Xa=function(Ft,An){T()(An)==="object"?ro(An,Ft):hn(Ft)},_a=function(Ft){Ft===null||jr===Dt.ADVANCED&&Ft===void 0||(Ft=ca(Ft),hn(Ft))};function qa(xt,Ft,An,Hn,hi){var At=new F(Ft||this.boundingBox,An||this.xStep,Hn||this.yStep,this.gState,hi||this.matrix);At.stream=this.stream;var se=xt+"$$"+this.cloneIndex+++"$$";return Ui(se,At),At}var ro=function(Ft,An){var Hn=fi[Ft.key],hi=Gn[Hn];if(hi instanceof H)hn("q"),hn(Uo(An)),hi.gState&&Bt.setGState(hi.gState),hn(Ft.matrix.toString()+" cm"),hn("/"+Hn+" sh"),hn("Q");else if(hi instanceof F){var At=new Ti(1,0,0,-1,0,Jo());Ft.matrix&&(At=At.multiply(Ft.matrix||na),Hn=qa.call(hi,Ft.key,Ft.boundingBox,Ft.xStep,Ft.yStep,At).id),hn("q"),hn("/Pattern cs"),hn("/"+Hn+" scn"),hi.gState&&Bt.setGState(hi.gState),hn(An),hn("Q")}},Uo=function(Ft){switch(Ft){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},zo=Bt.moveTo=function(xt,Ft){return hn(wr(Lt(xt))+" "+wr(It(Ft))+" m"),this},hs=Bt.lineTo=function(xt,Ft){return hn(wr(Lt(xt))+" "+wr(It(Ft))+" l"),this},Po=Bt.curveTo=function(xt,Ft,An,Hn,hi,At){return hn([wr(Lt(xt)),wr(It(Ft)),wr(Lt(An)),wr(It(Hn)),wr(Lt(hi)),wr(It(At)),"c"].join(" ")),this};Bt.__private__.line=Bt.line=function(xt,Ft,An,Hn,hi){if(isNaN(xt)||isNaN(Ft)||isNaN(An)||isNaN(Hn)||!Gi(hi))throw new Error("Invalid arguments passed to jsPDF.line");return jr===Dt.COMPAT?this.lines([[An-xt,Hn-Ft]],xt,Ft,[1,1],hi||"S"):this.lines([[An-xt,Hn-Ft]],xt,Ft,[1,1]).stroke()},Bt.__private__.lines=Bt.lines=function(xt,Ft,An,Hn,hi,At){var se,ge,Se,We,vt,Yt,Rr,Yr,mn,Wn,Jn,ri;if(typeof xt=="number"&&(ri=An,An=Ft,Ft=xt,xt=ri),Hn=Hn||[1,1],At=At||!1,isNaN(Ft)||isNaN(An)||!Array.isArray(xt)||!Array.isArray(Hn)||!Gi(hi)||typeof At!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(zo(Ft,An),se=Hn[0],ge=Hn[1],We=xt.length,Wn=Ft,Jn=An,Se=0;Se<We;Se++)(vt=xt[Se]).length===2?(Wn=vt[0]*se+Wn,Jn=vt[1]*ge+Jn,hs(Wn,Jn)):(Yt=vt[0]*se+Wn,Rr=vt[1]*ge+Jn,Yr=vt[2]*se+Wn,mn=vt[3]*ge+Jn,Wn=vt[4]*se+Wn,Jn=vt[5]*ge+Jn,Po(Yt,Rr,Yr,mn,Wn,Jn));return At&&ya(),_a(hi),this},Bt.path=function(xt){for(var Ft=0;Ft<xt.length;Ft++){var An=xt[Ft],Hn=An.c;switch(An.op){case"m":zo(Hn[0],Hn[1]);break;case"l":hs(Hn[0],Hn[1]);break;case"c":Po.apply(this,Hn);break;case"h":ya()}}return this},Bt.__private__.rect=Bt.rect=function(xt,Ft,An,Hn,hi){if(isNaN(xt)||isNaN(Ft)||isNaN(An)||isNaN(Hn)||!Gi(hi))throw new Error("Invalid arguments passed to jsPDF.rect");return jr===Dt.COMPAT&&(Hn=-Hn),hn([wr(Lt(xt)),wr(It(Ft)),wr(Lt(An)),wr(Lt(Hn)),"re"].join(" ")),_a(hi),this},Bt.__private__.triangle=Bt.triangle=function(xt,Ft,An,Hn,hi,At,se){if(isNaN(xt)||isNaN(Ft)||isNaN(An)||isNaN(Hn)||isNaN(hi)||isNaN(At)||!Gi(se))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[An-xt,Hn-Ft],[hi-An,At-Hn],[xt-hi,Ft-At]],xt,Ft,[1,1],se,!0),this},Bt.__private__.roundedRect=Bt.roundedRect=function(xt,Ft,An,Hn,hi,At,se){if(isNaN(xt)||isNaN(Ft)||isNaN(An)||isNaN(Hn)||isNaN(hi)||isNaN(At)||!Gi(se))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ge=4/3*(Math.SQRT2-1);return hi=Math.min(hi,.5*An),At=Math.min(At,.5*Hn),this.lines([[An-2*hi,0],[hi*ge,0,hi,At-At*ge,hi,At],[0,Hn-2*At],[0,At*ge,-hi*ge,At,-hi,At],[2*hi-An,0],[-hi*ge,0,-hi,-At*ge,-hi,-At],[0,2*At-Hn],[0,-At*ge,hi*ge,-At,hi,-At]],xt+hi,Ft,[1,1],se,!0),this},Bt.__private__.ellipse=Bt.ellipse=function(xt,Ft,An,Hn,hi){if(isNaN(xt)||isNaN(Ft)||isNaN(An)||isNaN(Hn)||!Gi(hi))throw new Error("Invalid arguments passed to jsPDF.ellipse");var At=4/3*(Math.SQRT2-1)*An,se=4/3*(Math.SQRT2-1)*Hn;return zo(xt+An,Ft),Po(xt+An,Ft-se,xt+At,Ft-Hn,xt,Ft-Hn),Po(xt-At,Ft-Hn,xt-An,Ft-se,xt-An,Ft),Po(xt-An,Ft+se,xt-At,Ft+Hn,xt,Ft+Hn),Po(xt+At,Ft+Hn,xt+An,Ft+se,xt+An,Ft),_a(hi),this},Bt.__private__.circle=Bt.circle=function(xt,Ft,An,Hn){if(isNaN(xt)||isNaN(Ft)||isNaN(An)||!Gi(Hn))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(xt,Ft,An,An,Hn)},Bt.setFont=function(xt,Ft,An){return An&&(Ft=Wt(Ft,An)),cr=Kn(xt,Ft,{disableWarning:!1}),this};var Mo=Bt.__private__.getFont=Bt.getFont=function(){return rn[Kn.apply(Bt,arguments)]};Bt.__private__.getFontList=Bt.getFontList=function(){var xt,Ft,An={};for(xt in On)if(On.hasOwnProperty(xt))for(Ft in An[xt]=[],On[xt])On[xt].hasOwnProperty(Ft)&&An[xt].push(Ft);return An},Bt.addFont=function(xt,Ft,An,Hn,hi){var At=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&At.indexOf(arguments[3])!==-1?hi=arguments[3]:arguments[3]&&At.indexOf(arguments[3])==-1&&(An=Wt(An,Hn)),hi=hi||"Identity-H",Fr.call(this,xt,Ft,An,hi)};var Fa,$a=Ze.lineWidth||.200025,Ca=Bt.__private__.setLineWidth=Bt.setLineWidth=function(xt){return hn(wr(Lt(xt))+" w"),this};Bt.__private__.setLineDash=K.API.setLineDash=K.API.setLineDashPattern=function(xt,Ft){if(xt=xt||[],Ft=Ft||0,isNaN(Ft)||!Array.isArray(xt))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return xt=xt.map(function(An){return wr(Lt(An))}).join(" "),Ft=wr(Lt(Ft)),hn("["+xt+"] "+Ft+" d"),this};var Eo=Bt.__private__.getLineHeight=Bt.getLineHeight=function(){return ji*Fa};Bt.__private__.getLineHeight=Bt.getLineHeight=function(){return ji*Fa};var qo=Bt.__private__.setLineHeightFactor=Bt.setLineHeightFactor=function(xt){return typeof(xt=xt||1.15)=="number"&&(Fa=xt),this},vo=Bt.__private__.getLineHeightFactor=Bt.getLineHeightFactor=function(){return Fa};qo(Ze.lineHeight);var rs=Bt.__private__.getHorizontalCoordinate=function(xt){return Lt(xt)},ho=Bt.__private__.getVerticalCoordinate=function(xt){return jr===Dt.ADVANCED?xt:Mi[br].mediaBox.topRightY-Mi[br].mediaBox.bottomLeftY-Lt(xt)},No=Bt.__private__.getHorizontalCoordinateString=Bt.getHorizontalCoordinateString=function(xt){return wr(rs(xt))},us=Bt.__private__.getVerticalCoordinateString=Bt.getVerticalCoordinateString=function(xt){return wr(ho(xt))},jo=Ze.strokeColor||"0 G";Bt.__private__.getStrokeColor=Bt.getDrawColor=function(){return ka(jo)},Bt.__private__.setStrokeColor=Bt.setDrawColor=function(xt,Ft,An,Hn){return jo=Ia({ch1:xt,ch2:Ft,ch3:An,ch4:Hn,pdfColorType:"draw",precision:2}),hn(jo),this};var Qo=Ze.fillColor||"0 g";Bt.__private__.getFillColor=Bt.getFillColor=function(){return ka(Qo)},Bt.__private__.setFillColor=Bt.setFillColor=function(xt,Ft,An,Hn){return Qo=Ia({ch1:xt,ch2:Ft,ch3:An,ch4:Hn,pdfColorType:"fill",precision:2}),hn(Qo),this};var on=Ze.textColor||"0 g",Fi=Bt.__private__.getTextColor=Bt.getTextColor=function(){return ka(on)};Bt.__private__.setTextColor=Bt.setTextColor=function(xt,Ft,An,Hn){return on=Ia({ch1:xt,ch2:Ft,ch3:An,ch4:Hn,pdfColorType:"text",precision:3}),this};var Bs=Ze.charSpace,ws=Bt.__private__.getCharSpace=Bt.getCharSpace=function(){return parseFloat(Bs||0)};Bt.__private__.setCharSpace=Bt.setCharSpace=function(xt){if(isNaN(xt))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Bs=xt,this};var cs=0;Bt.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},Bt.__private__.setLineCap=Bt.setLineCap=function(xt){var Ft=Bt.CapJoinStyles[xt];if(Ft===void 0)throw new Error("Line cap style of '"+xt+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return cs=Ft,hn(Ft+" J"),this};var Vo=0;Bt.__private__.setLineJoin=Bt.setLineJoin=function(xt){var Ft=Bt.CapJoinStyles[xt];if(Ft===void 0)throw new Error("Line join style of '"+xt+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Vo=Ft,hn(Ft+" j"),this},Bt.__private__.setLineMiterLimit=Bt.__private__.setMiterLimit=Bt.setLineMiterLimit=Bt.setMiterLimit=function(xt){if(xt=xt||0,isNaN(xt))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return hn(wr(Lt(xt))+" M"),this},Bt.GState=B,Bt.setGState=function(xt){(xt=typeof xt=="string"?Yn[gi[xt]]:vs(null,xt)).equals(vi)||(hn("/"+xt.id+" gs"),vi=xt)};var vs=function(Ft,An){if(!Ft||!gi[Ft]){var Hn=!1;for(var hi in Yn)if(Yn.hasOwnProperty(hi)&&Yn[hi].equals(An)){Hn=!0;break}if(Hn)An=Yn[hi];else{var At="GS"+(Object.keys(Yn).length+1).toString(10);Yn[At]=An,An.id=At}return Ft&&(gi[Ft]=An.id),xi.publish("addGState",An),An}};Bt.addGState=function(xt,Ft){return vs(xt,Ft),this},Bt.saveGraphicsState=function(){return hn("q"),In.push({key:cr,size:ji,color:on}),this},Bt.restoreGraphicsState=function(){hn("Q");var xt=In.pop();return cr=xt.key,ji=xt.size,on=xt.color,vi=null,this},Bt.setCurrentTransformationMatrix=function(xt){return hn(xt.toString()+" cm"),this},Bt.comment=function(xt){return hn("#"+xt),this};var Ss=function(Ft,An){var Hn=Ft||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Hn},set:function(ge){isNaN(ge)||(Hn=parseFloat(ge))}});var hi=An||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return hi},set:function(ge){isNaN(ge)||(hi=parseFloat(ge))}});var At="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return At},set:function(ge){At=ge.toString()}}),this},ns=function(Ft,An,Hn,hi){Ss.call(this,Ft,An),this.type="rect";var At=Hn||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return At},set:function(Se){isNaN(Se)||(At=parseFloat(Se))}});var se=hi||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return se},set:function(Se){isNaN(Se)||(se=parseFloat(Se))}}),this},es=function(){this.page=Di,this.currentPage=br,this.pages=Li.slice(0),this.pagesContext=Mi.slice(0),this.x=Br,this.y=$r,this.matrix=wn,this.width=yo(br),this.height=Jo(br),this.outputDestination=Ri,this.id="",this.objectNumber=-1};es.prototype.restore=function(){Di=this.page,br=this.currentPage,Mi=this.pagesContext,Li=this.pages,Br=this.x,$r=this.y,wn=this.matrix,no(br,this.width),Go(br,this.height),Ri=this.outputDestination};var fs=function(Ft,An,Hn,hi,At){qi.push(new es),Di=br=0,Li=[],Br=Ft,$r=An,wn=At,Cn([Hn,hi])},ys=function(Ft){if($i[Ft])qi.pop().restore();else{var An=new es,Hn="Xo"+(Object.keys(Ci).length+1).toString(10);An.id=Hn,$i[Ft]=Hn,Ci[Hn]=An,xi.publish("addFormObject",An),qi.pop().restore()}};for(var ds in Bt.beginFormObject=function(xt,Ft,An,Hn,hi){return fs(xt,Ft,An,Hn,hi),this},Bt.endFormObject=function(xt){return ys(xt),this},Bt.doFormObject=function(xt,Ft){var An=Ci[$i[xt]];return hn("q"),hn(Ft.toString()+" cm"),hn("/"+An.id+" Do"),hn("Q"),this},Bt.getFormObject=function(xt){var Ft=Ci[$i[xt]];return{x:Ft.x,y:Ft.y,width:Ft.width,height:Ft.height,matrix:Ft.matrix}},Bt.save=function(xt,Ft){return xt=xt||"generated.pdf",(Ft=Ft||{}).returnPromise=Ft.returnPromise||!1,Ft.returnPromise===!1?(e(Xi(yi()),xt),typeof e.unload=="function"&&S.setTimeout&&setTimeout(e.unload,911),this):new Promise(function(An,Hn){try{var hi=e(Xi(yi()),xt);typeof e.unload=="function"&&S.setTimeout&&setTimeout(e.unload,911),An(hi)}catch(At){Hn(At.message)}})},K.API)K.API.hasOwnProperty(ds)&&(ds==="events"&&K.API.events.length?function(xt,Ft){var An,Hn,hi;for(hi=Ft.length-1;hi!==-1;hi--)An=Ft[hi][0],Hn=Ft[hi][1],xt.subscribe.apply(xt,[An].concat(typeof Hn=="function"?[Hn]:Hn))}(xi,K.API.events):Bt[ds]=K.API[ds]);var yo=Bt.getPageWidth=function(xt){return(Mi[xt=xt||br].mediaBox.topRightX-Mi[xt].mediaBox.bottomLeftX)/fr},no=Bt.setPageWidth=function(xt,Ft){Mi[xt].mediaBox.topRightX=Ft*fr+Mi[xt].mediaBox.bottomLeftX},Jo=Bt.getPageHeight=function(xt){return(Mi[xt=xt||br].mediaBox.topRightY-Mi[xt].mediaBox.bottomLeftY)/fr},Go=Bt.setPageHeight=function(xt,Ft){Mi[xt].mediaBox.topRightY=Ft*fr+Mi[xt].mediaBox.bottomLeftY};return Bt.internal={pdfEscape:yr,getStyle:ca,getFont:Mo,getFontSize:sr,getCharSpace:ws,getTextColor:Fi,getLineHeight:Eo,getLineHeightFactor:vo,write:Ei,getHorizontalCoordinate:rs,getVerticalCoordinate:ho,getCoordinateString:No,getVerticalCoordinateString:us,collections:{},newObject:Ki,newAdditionalObject:va,newObjectDeferred:ra,newObjectDeferredBegin:ea,getFilters:Ea,putStream:So,events:xi,scaleFactor:fr,pageSize:{getWidth:function(){return yo(br)},setWidth:function(Ft){no(br,Ft)},getHeight:function(){return Jo(br)},setHeight:function(Ft){Go(br,Ft)}},encryptionOptions:kr,encryption:Qi,getEncryptor:aa,output:ba,getNumberOfPages:$n,pages:Li,out:hn,f2:Dr,f3:ir,getPageInfo:fa,getPageInfoByObjId:xo,getCurrentPageInfo:Za,getPDFVersion:hr,Point:Ss,Rectangle:ns,Matrix:Ti,hasHotfix:ta},Object.defineProperty(Bt.internal.pageSize,"width",{get:function(){return yo(br)},set:function(Ft){no(br,Ft)},enumerable:!0,configurable:!0}),Object.defineProperty(Bt.internal.pageSize,"height",{get:function(){return Jo(br)},set:function(Ft){Go(br,Ft)},enumerable:!0,configurable:!0}),Ir.call(Bt,ki),cr="F1",Pr(Qe,Ne),xi.publish("initialized"),Bt}D.prototype.lsbFirstWord=function(Ze){return String.fromCharCode(Ze>>0&255,Ze>>8&255,Ze>>16&255,Ze>>24&255)},D.prototype.toHexString=function(Ze){return Ze.split("").map(function(be){return("0"+(255&be.charCodeAt(0)).toString(16)).slice(-2)}).join("")},D.prototype.hexToBytes=function(Ze){for(var be=[],Ne=0;Ne<Ze.length;Ne+=2)be.push(String.fromCharCode(parseInt(Ze.substr(Ne,2),16)));return be.join("")},D.prototype.processOwnerPassword=function(Ze,be){return _(w(be).substr(0,5),Ze)},D.prototype.encryptor=function(Ze,be){var Ne=w(this.encryptionKey+String.fromCharCode(255&Ze,Ze>>8&255,Ze>>16&255,255&be,be>>8&255)).substr(0,10);return function(Ue){return _(Ne,Ue)}},B.prototype.equals=function(Ze){var be,Ne="id,objectNumber,equals";if(!Ze||T()(Ze)!==T()(this))return!1;var Ue=0;for(be in this)if(!(Ne.indexOf(be)>=0)){if(this.hasOwnProperty(be)&&!Ze.hasOwnProperty(be))return!1;if(this[be]!==Ze[be])return!1;Ue++}for(be in Ze)Ze.hasOwnProperty(be)&&Ne.indexOf(be)<0&&Ue--;return Ue===0},K.API={events:[]},K.version="2.4.0";var j=K.API,V=1,z=function(be){return be.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Y=function(be){return be.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ee=function(be){return be.toFixed(2)},fe=function(be){return be.toFixed(5)};j.__acroform__={};var ie=function(be,Ne){be.prototype=Object.create(Ne.prototype),be.prototype.constructor=be},we=function(be){return be*V},Ce=function(be){var Ne=new Oe,Ue=Z.internal.getHeight(be)||0,Qe=Z.internal.getWidth(be)||0;return Ne.BBox=[0,0,Number(ee(Qe)),Number(ee(Ue))],Ne},Le=j.__acroform__.setBit=function(Ze,be){if(Ze=Ze||0,be=be||0,isNaN(Ze)||isNaN(be))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return Ze|=1<<be},He=j.__acroform__.clearBit=function(Ze,be){if(Ze=Ze||0,be=be||0,isNaN(Ze)||isNaN(be))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return Ze&=~(1<<be)},ce=j.__acroform__.getBit=function(Ze,be){if(isNaN(Ze)||isNaN(be))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(Ze&1<<be)==0?0:1},Pe=j.__acroform__.getBitForPdf=function(Ze,be){if(isNaN(Ze)||isNaN(be))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return ce(Ze,be-1)},Q=j.__acroform__.setBitForPdf=function(Ze,be){if(isNaN(Ze)||isNaN(be))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Le(Ze,be-1)},me=j.__acroform__.clearBitForPdf=function(Ze,be){if(isNaN(Ze)||isNaN(be))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return He(Ze,be-1)},Je=j.__acroform__.calculateCoordinates=function(Ze,be){var Ne=be.internal.getHorizontalCoordinate,Ue=be.internal.getVerticalCoordinate,Qe=Ze[0],Xe=Ze[1],qe=Ze[2],yt=Ze[3],ht={};return ht.lowerLeft_X=Ne(Qe)||0,ht.lowerLeft_Y=Ue(Xe+yt)||0,ht.upperRight_X=Ne(Qe+qe)||0,ht.upperRight_Y=Ue(Xe)||0,[Number(ee(ht.lowerLeft_X)),Number(ee(ht.lowerLeft_Y)),Number(ee(ht.upperRight_X)),Number(ee(ht.upperRight_Y))]},re=function(be){if(be.appearanceStreamContent)return be.appearanceStreamContent;if(be.V||be.DV){var Ne=[],Ue=be._V||be.DV,Qe=G(be,Ue),Xe=be.scope.internal.getFont(be.fontName,be.fontStyle).id;Ne.push("/Tx BMC"),Ne.push("q"),Ne.push("BT"),Ne.push(be.scope.__private__.encodeColorString(be.color)),Ne.push("/"+Xe+" "+ee(Qe.fontSize)+" Tf"),Ne.push("1 0 0 1 0 0 Tm"),Ne.push(Qe.text),Ne.push("ET"),Ne.push("Q"),Ne.push("EMC");var qe=Ce(be);return qe.scope=be.scope,qe.stream=Ne.join(`
|
|
|
`),qe}},G=function(be,Ne){var Ue=be.fontSize===0?be.maxFontSize:be.fontSize,Qe={text:"",fontSize:""},Xe=(Ne=(Ne=Ne.substr(0,1)=="("?Ne.substr(1):Ne).substr(Ne.length-1)==")"?Ne.substr(0,Ne.length-1):Ne).split(" "),qe=Ue,yt=Z.internal.getHeight(be)||0;yt=yt<0?-yt:yt;var ht=Z.internal.getWidth(be)||0;ht=ht<0?-ht:ht;var Jt=function(Dr,ir,Lt){if(Dr+1<Xe.length){var Qt=ir+" "+Xe[Dr+1];return X(Qt,be,Lt).width<=ht-4}return!1};qe++;e:for(;qe>0;){Ne="",qe--;var kr,_r,Xr=X("3",be,qe).height,Bt=be.multiline?yt-qe:(yt-Xr)/2,gn=Bt+=2,hr=0,vn=0;if(qe<=0){Ne=`(...) Tj
|
|
|
`,Ne+="% Width of Text: "+X(Ne,be,qe=12).width+", FieldWidth:"+ht+`
|
|
|
`;break}var en="",Dt=0;for(var jr in Xe)if(Xe.hasOwnProperty(jr)){en=(en+=Xe[jr]+" ").substr(en.length-1)==" "?en.substr(0,en.length-1):en;var un=parseInt(jr),Hr=Jt(un,en,qe),Wt=jr>=Xe.length-1;if(Hr&&!Wt){en+=" ";continue}if(Hr||Wt){if(Wt)vn=un;else if(be.multiline&&(Xr+2)*(Dt+2)+2>yt)continue e}else{if(!be.multiline)continue e;if((Xr+2)*(Dt+2)+2>yt)continue e;vn=un}for(var wr="",fn=hr;fn<=vn;fn++)wr+=Xe[fn]+" ";switch(wr=wr.substr(wr.length-1)==" "?wr.substr(0,wr.length-1):wr,_r=X(wr,be,qe).width,be.textAlign){case"right":kr=ht-_r-2;break;case"center":kr=(ht-_r)/2;break;case"left":default:kr=2}Ne+=ee(kr)+" "+ee(gn)+` Td
|
|
|
`,Ne+="("+z(wr)+`) Tj
|
|
|
`,Ne+=-ee(kr)+` 0 Td
|
|
|
`,gn=-(qe+2),_r=0,hr=vn+1,Dt++,en=""}break}return Qe.text=Ne,Qe.fontSize=qe,Qe},X=function(be,Ne,Ue){var Qe=Ne.scope.internal.getFont(Ne.fontName,Ne.fontStyle),Xe=Ne.scope.getStringUnitWidth(be,{font:Qe,fontSize:parseFloat(Ue),charSpace:0})*parseFloat(Ue);return{height:Ne.scope.getStringUnitWidth("3",{font:Qe,fontSize:parseFloat(Ue),charSpace:0})*parseFloat(Ue)*1.5,width:Xe}},J={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Ae=function(be,Ne){var Ue={type:"reference",object:be};Ne.internal.getPageInfo(be.page).pageContext.annotations.find(function(Qe){return Qe.type===Ue.type&&Qe.object===Ue.object})===void 0&&Ne.internal.getPageInfo(be.page).pageContext.annotations.push(Ue)},he=function(be,Ne){for(var Ue in be)if(be.hasOwnProperty(Ue)){var Qe=Ue,Xe=be[Ue];Ne.internal.newObjectDeferredBegin(Xe.objId,!0),T()(Xe)==="object"&&typeof Xe.putStream=="function"&&Xe.putStream(),delete be[Qe]}},Me=function(be,Ne){if(Ne.scope=be,be.internal!==void 0&&(be.internal.acroformPlugin===void 0||be.internal.acroformPlugin.isInitialized===!1)){if(it.FieldNum=0,be.internal.acroformPlugin=JSON.parse(JSON.stringify(J)),be.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");V=be.internal.scaleFactor,be.internal.acroformPlugin.acroFormDictionaryRoot=new Ye,be.internal.acroformPlugin.acroFormDictionaryRoot.scope=be,be.internal.acroformPlugin.acroFormDictionaryRoot._eventID=be.internal.events.subscribe("postPutResources",function(){!function(Ue){Ue.internal.events.unsubscribe(Ue.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete Ue.internal.acroformPlugin.acroFormDictionaryRoot._eventID,Ue.internal.acroformPlugin.printedOut=!0}(be)}),be.internal.events.subscribe("buildDocument",function(){!function(Ue){Ue.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var Qe=Ue.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var Xe in Qe)if(Qe.hasOwnProperty(Xe)){var qe=Qe[Xe];qe.objId=void 0,qe.hasAnnotation&&Ae(qe,Ue)}}(be)}),be.internal.events.subscribe("putCatalog",function(){!function(Ue){if(Ue.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");Ue.internal.write("/AcroForm "+Ue.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(be)}),be.internal.events.subscribe("postPutPages",function(Ue){!function(Qe,Xe){var qe=!Qe;for(var yt in Qe||(Xe.internal.newObjectDeferredBegin(Xe.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),Xe.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),Qe=Qe||Xe.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(Qe.hasOwnProperty(yt)){var ht=Qe[yt],Jt=[],kr=ht.Rect;if(ht.Rect&&(ht.Rect=Je(ht.Rect,Xe)),Xe.internal.newObjectDeferredBegin(ht.objId,!0),ht.DA=Z.createDefaultAppearanceStream(ht),T()(ht)==="object"&&typeof ht.getKeyValueListForStream=="function"&&(Jt=ht.getKeyValueListForStream()),ht.Rect=kr,ht.hasAppearanceStream&&!ht.appearanceStreamContent){var _r=re(ht);Jt.push({key:"AP",value:"<</N "+_r+">>"}),Xe.internal.acroformPlugin.xForms.push(_r)}if(ht.appearanceStreamContent){var Xr="";for(var Bt in ht.appearanceStreamContent)if(ht.appearanceStreamContent.hasOwnProperty(Bt)){var gn=ht.appearanceStreamContent[Bt];if(Xr+="/"+Bt+" ",Xr+="<<",Object.keys(gn).length>=1||Array.isArray(gn)){for(var yt in gn)if(gn.hasOwnProperty(yt)){var hr=gn[yt];typeof hr=="function"&&(hr=hr.call(Xe,ht)),Xr+="/"+yt+" "+hr+" ",Xe.internal.acroformPlugin.xForms.indexOf(hr)>=0||Xe.internal.acroformPlugin.xForms.push(hr)}}else typeof(hr=gn)=="function"&&(hr=hr.call(Xe,ht)),Xr+="/"+yt+" "+hr,Xe.internal.acroformPlugin.xForms.indexOf(hr)>=0||Xe.internal.acroformPlugin.xForms.push(hr);Xr+=">>"}Jt.push({key:"AP",value:`<<
|
|
|
`+Xr+">>"})}Xe.internal.putStream({additionalKeyValues:Jt,objectId:ht.objId}),Xe.internal.out("endobj")}qe&&he(Xe.internal.acroformPlugin.xForms,Xe)}(Ue,be)}),be.internal.acroformPlugin.isInitialized=!0}},Ie=j.__acroform__.arrayToPdfArray=function(Ze,be,Ne){var Ue=function(yt){return yt};if(Array.isArray(Ze)){for(var Qe="[",Xe=0;Xe<Ze.length;Xe++)switch(Xe!==0&&(Qe+=" "),T()(Ze[Xe])){case"boolean":case"number":case"object":Qe+=Ze[Xe].toString();break;case"string":Ze[Xe].substr(0,1)!=="/"?(be!==void 0&&Ne&&(Ue=Ne.internal.getEncryptor(be)),Qe+="("+z(Ue(Ze[Xe].toString()))+")"):Qe+=Ze[Xe].toString()}return Qe+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},oe=function(be,Ne,Ue){var Qe=function(qe){return qe};return Ne!==void 0&&Ue&&(Qe=Ue.internal.getEncryptor(Ne)),(be=be||"").toString(),be="("+z(Qe(be))+")"},pe=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(Ne){this._objId=Ne}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};pe.prototype.toString=function(){return this.objId+" 0 R"},pe.prototype.putStream=function(){var Ze=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:Ze,objectId:this.objId}),this.scope.internal.out("endobj")},pe.prototype.getKeyValueListForStream=function(){var Ze=[],be=Object.getOwnPropertyNames(this).filter(function(Xe){return Xe!="content"&&Xe!="appearanceStreamContent"&&Xe!="scope"&&Xe!="objId"&&Xe.substring(0,1)!="_"});for(var Ne in be)if(Object.getOwnPropertyDescriptor(this,be[Ne]).configurable===!1){var Ue=be[Ne],Qe=this[Ue];Qe&&(Array.isArray(Qe)?Ze.push({key:Ue,value:Ie(Qe,this.objId,this.scope)}):Qe instanceof pe?(Qe.scope=this.scope,Ze.push({key:Ue,value:Qe.objId+" 0 R"})):typeof Qe!="function"&&Ze.push({key:Ue,value:Qe}))}return Ze};var Oe=function(){pe.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var be,Ne=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return Ne},set:function(Qe){Ne=Qe}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(Qe){be=Qe.trim()},get:function(){return be||null}})};ie(Oe,pe);var Ye=function(){pe.call(this);var be,Ne=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return Ne.length>0?Ne:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return Ne}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(be){var Qe=function(qe){return qe};return this.scope&&(Qe=this.scope.internal.getEncryptor(this.objId)),"("+z(Qe(be))+")"}},set:function(Qe){be=Qe}})};ie(Ye,pe);var it=function Ze(){pe.call(this);var be=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return be},set:function(Dt){if(isNaN(Dt))throw new Error('Invalid value "'+Dt+'" for attribute F supplied.');be=Dt}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(Pe(be,3))},set:function(Dt){Boolean(Dt)===!0?this.F=Q(be,3):this.F=me(be,3)}});var Ne=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return Ne},set:function(Dt){if(isNaN(Dt))throw new Error('Invalid value "'+Dt+'" for attribute Ff supplied.');Ne=Dt}});var Ue=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(Ue.length!==0)return Ue},set:function(Dt){Ue=Dt!==void 0?Dt:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!Ue||isNaN(Ue[0])?0:Ue[0]},set:function(Dt){Ue[0]=Dt}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!Ue||isNaN(Ue[1])?0:Ue[1]},set:function(Dt){Ue[1]=Dt}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!Ue||isNaN(Ue[2])?0:Ue[2]},set:function(Dt){Ue[2]=Dt}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!Ue||isNaN(Ue[3])?0:Ue[3]},set:function(Dt){Ue[3]=Dt}});var Qe="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return Qe},set:function(Dt){switch(Dt){case"/Btn":case"/Tx":case"/Ch":case"/Sig":Qe=Dt;break;default:throw new Error('Invalid value "'+Dt+'" for attribute FT supplied.')}}});var Xe=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!Xe||Xe.length<1){if(this instanceof Ct)return;Xe="FieldObject"+Ze.FieldNum++}var Dt=function(un){return un};return this.scope&&(Dt=this.scope.internal.getEncryptor(this.objId)),"("+z(Dt(Xe))+")"},set:function(Dt){Xe=Dt.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return Xe},set:function(Dt){Xe=Dt}});var qe="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return qe},set:function(Dt){qe=Dt}});var yt="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return yt},set:function(Dt){yt=Dt}});var ht=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return ht},set:function(Dt){ht=Dt}});var Jt=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Jt===void 0?50/V:Jt},set:function(Dt){Jt=Dt}});var kr="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return kr},set:function(Dt){kr=Dt}});var _r="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!_r||this instanceof Ct||this instanceof Be))return oe(_r,this.objId,this.scope)},set:function(Dt){Dt=Dt.toString(),_r=Dt}});var Xr=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Xr)return this instanceof dt==!1?oe(Xr,this.objId,this.scope):Xr},set:function(Dt){Dt=Dt.toString(),Xr=this instanceof dt==!1?Dt.substr(0,1)==="("?Y(Dt.substr(1,Dt.length-2)):Y(Dt):Dt}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof dt==!0?Y(Xr.substr(1,Xr.length-1)):Xr},set:function(Dt){Dt=Dt.toString(),Xr=this instanceof dt==!0?"/"+Dt:Dt}});var Bt=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(Bt)return Bt},set:function(Dt){this.V=Dt}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(Bt)return this instanceof dt==!1?oe(Bt,this.objId,this.scope):Bt},set:function(Dt){Dt=Dt.toString(),Bt=this instanceof dt==!1?Dt.substr(0,1)==="("?Y(Dt.substr(1,Dt.length-2)):Y(Dt):Dt}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof dt==!0?Y(Bt.substr(1,Bt.length-1)):Bt},set:function(Dt){Dt=Dt.toString(),Bt=this instanceof dt==!0?"/"+Dt:Dt}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var gn,hr=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return hr},set:function(Dt){Dt=Boolean(Dt),hr=Dt}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(gn)return gn},set:function(Dt){gn=Dt}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Pe(this.Ff,1))},set:function(Dt){Boolean(Dt)===!0?this.Ff=Q(this.Ff,1):this.Ff=me(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Pe(this.Ff,2))},set:function(Dt){Boolean(Dt)===!0?this.Ff=Q(this.Ff,2):this.Ff=me(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Pe(this.Ff,3))},set:function(Dt){Boolean(Dt)===!0?this.Ff=Q(this.Ff,3):this.Ff=me(this.Ff,3)}});var vn=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(vn!==null)return vn},set:function(Dt){if([0,1,2].indexOf(Dt)===-1)throw new Error('Invalid value "'+Dt+'" for attribute Q supplied.');vn=Dt}}),Object.defineProperty(this,"textAlign",{get:function(){var Dt;switch(vn){case 0:default:Dt="left";break;case 1:Dt="center";break;case 2:Dt="right"}return Dt},configurable:!0,enumerable:!0,set:function(Dt){switch(Dt){case"right":case 2:vn=2;break;case"center":case 1:vn=1;break;case"left":case 0:default:vn=0}}})};ie(it,pe);var et=function(){it.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var be=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return be},set:function(Qe){be=Qe}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return be},set:function(Qe){be=Qe}});var Ne=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Ie(Ne,this.objId,this.scope)},set:function(Qe){var Xe,qe;qe=[],typeof(Xe=Qe)=="string"&&(qe=function(yt,ht,Jt){Jt||(Jt=1);for(var kr,_r=[];kr=ht.exec(yt);)_r.push(kr[Jt]);return _r}(Xe,/\((.*?)\)/g)),Ne=qe}}),this.getOptions=function(){return Ne},this.setOptions=function(Ue){Ne=Ue,this.sort&&Ne.sort()},this.addOption=function(Ue){Ue=(Ue=Ue||"").toString(),Ne.push(Ue),this.sort&&Ne.sort()},this.removeOption=function(Ue,Qe){for(Qe=Qe||!1,Ue=(Ue=Ue||"").toString();Ne.indexOf(Ue)!==-1&&(Ne.splice(Ne.indexOf(Ue),1),Qe!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(Pe(this.Ff,18))},set:function(Qe){Boolean(Qe)===!0?this.Ff=Q(this.Ff,18):this.Ff=me(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Pe(this.Ff,19))},set:function(Qe){this.combo===!0&&(Boolean(Qe)===!0?this.Ff=Q(this.Ff,19):this.Ff=me(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Pe(this.Ff,20))},set:function(Qe){Boolean(Qe)===!0?(this.Ff=Q(this.Ff,20),Ne.sort()):this.Ff=me(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Pe(this.Ff,22))},set:function(Qe){Boolean(Qe)===!0?this.Ff=Q(this.Ff,22):this.Ff=me(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Pe(this.Ff,23))},set:function(Qe){Boolean(Qe)===!0?this.Ff=Q(this.Ff,23):this.Ff=me(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Pe(this.Ff,27))},set:function(Qe){Boolean(Qe)===!0?this.Ff=Q(this.Ff,27):this.Ff=me(this.Ff,27)}}),this.hasAppearanceStream=!1};ie(et,it);var Te=function(){et.call(this),this.fontName="helvetica",this.combo=!1};ie(Te,et);var tt=function(){Te.call(this),this.combo=!0};ie(tt,Te);var ze=function(){tt.call(this),this.edit=!0};ie(ze,tt);var dt=function(){it.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Pe(this.Ff,15))},set:function(Qe){Boolean(Qe)===!0?this.Ff=Q(this.Ff,15):this.Ff=me(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Pe(this.Ff,16))},set:function(Qe){Boolean(Qe)===!0?this.Ff=Q(this.Ff,16):this.Ff=me(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Pe(this.Ff,17))},set:function(Qe){Boolean(Qe)===!0?this.Ff=Q(this.Ff,17):this.Ff=me(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Pe(this.Ff,26))},set:function(Qe){Boolean(Qe)===!0?this.Ff=Q(this.Ff,26):this.Ff=me(this.Ff,26)}});var be,Ne={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Qe=function(ht){return ht};if(this.scope&&(Qe=this.scope.internal.getEncryptor(this.objId)),Object.keys(Ne).length!==0){var Xe,qe=[];for(Xe in qe.push("<<"),Ne)qe.push("/"+Xe+" ("+z(Qe(Ne[Xe]))+")");return qe.push(">>"),qe.join(`
|
|
|
`)}},set:function(Qe){T()(Qe)==="object"&&(Ne=Qe)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Ne.CA||""},set:function(Qe){typeof Qe=="string"&&(Ne.CA=Qe)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return be},set:function(Qe){be=Qe}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return be.substr(1,be.length-1)},set:function(Qe){be="/"+Qe}})};ie(dt,it);var Ot=function(){dt.call(this),this.pushButton=!0};ie(Ot,dt);var Tt=function(){dt.call(this),this.radio=!0,this.pushButton=!1;var be=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return be},set:function(Ue){be=Ue!==void 0?Ue:[]}})};ie(Tt,dt);var Ct=function(){var be,Ne;it.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return be},set:function(qe){be=qe}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return Ne},set:function(qe){Ne=qe}});var Ue,Qe={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var qe=function(kr){return kr};this.scope&&(qe=this.scope.internal.getEncryptor(this.objId));var yt,ht=[];for(yt in ht.push("<<"),Qe)ht.push("/"+yt+" ("+z(qe(Qe[yt]))+")");return ht.push(">>"),ht.join(`
|
|
|
`)},set:function(qe){T()(qe)==="object"&&(Qe=qe)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Qe.CA||""},set:function(qe){typeof qe=="string"&&(Qe.CA=qe)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Ue},set:function(qe){Ue=qe}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Ue.substr(1,Ue.length-1)},set:function(qe){Ue="/"+qe}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Z.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};ie(Ct,it),Tt.prototype.setAppearance=function(Ze){if(!("createAppearanceStream"in Ze)||!("getCA"in Ze))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var be in this.Kids)if(this.Kids.hasOwnProperty(be)){var Ne=this.Kids[be];Ne.appearanceStreamContent=Ze.createAppearanceStream(Ne.optionName),Ne.caption=Ze.getCA()}},Tt.prototype.createOption=function(Ze){var be=new Ct;return be.Parent=this,be.optionName=Ze,this.Kids.push(be),Re.call(this.scope,be),be};var Nt=function(){dt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Z.CheckBox.createAppearanceStream()};ie(Nt,dt);var Be=function(){it.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Pe(this.Ff,13))},set:function(Ue){Boolean(Ue)===!0?this.Ff=Q(this.Ff,13):this.Ff=me(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Pe(this.Ff,21))},set:function(Ue){Boolean(Ue)===!0?this.Ff=Q(this.Ff,21):this.Ff=me(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Pe(this.Ff,23))},set:function(Ue){Boolean(Ue)===!0?this.Ff=Q(this.Ff,23):this.Ff=me(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Pe(this.Ff,24))},set:function(Ue){Boolean(Ue)===!0?this.Ff=Q(this.Ff,24):this.Ff=me(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Pe(this.Ff,25))},set:function(Ue){Boolean(Ue)===!0?this.Ff=Q(this.Ff,25):this.Ff=me(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Pe(this.Ff,26))},set:function(Ue){Boolean(Ue)===!0?this.Ff=Q(this.Ff,26):this.Ff=me(this.Ff,26)}});var be=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return be},set:function(Ue){be=Ue}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return be},set:function(Ue){Number.isInteger(Ue)&&(be=Ue)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};ie(Be,it);var $=function(){Be.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Pe(this.Ff,14))},set:function(Ne){Boolean(Ne)===!0?this.Ff=Q(this.Ff,14):this.Ff=me(this.Ff,14)}}),this.password=!0};ie($,Be);var Z={CheckBox:{createAppearanceStream:function(){return{N:{On:Z.CheckBox.YesNormal},D:{On:Z.CheckBox.YesPushDown,Off:Z.CheckBox.OffPushDown}}},YesPushDown:function(be){var Ne=Ce(be);Ne.scope=be.scope;var Ue=[],Qe=be.scope.internal.getFont(be.fontName,be.fontStyle).id,Xe=be.scope.__private__.encodeColorString(be.color),qe=G(be,be.caption);return Ue.push("0.749023 g"),Ue.push("0 0 "+ee(Z.internal.getWidth(be))+" "+ee(Z.internal.getHeight(be))+" re"),Ue.push("f"),Ue.push("BMC"),Ue.push("q"),Ue.push("0 0 1 rg"),Ue.push("/"+Qe+" "+ee(qe.fontSize)+" Tf "+Xe),Ue.push("BT"),Ue.push(qe.text),Ue.push("ET"),Ue.push("Q"),Ue.push("EMC"),Ne.stream=Ue.join(`
|
|
|
`),Ne},YesNormal:function(be){var Ne=Ce(be);Ne.scope=be.scope;var Ue=be.scope.internal.getFont(be.fontName,be.fontStyle).id,Qe=be.scope.__private__.encodeColorString(be.color),Xe=[],qe=Z.internal.getHeight(be),yt=Z.internal.getWidth(be),ht=G(be,be.caption);return Xe.push("1 g"),Xe.push("0 0 "+ee(yt)+" "+ee(qe)+" re"),Xe.push("f"),Xe.push("q"),Xe.push("0 0 1 rg"),Xe.push("0 0 "+ee(yt-1)+" "+ee(qe-1)+" re"),Xe.push("W"),Xe.push("n"),Xe.push("0 g"),Xe.push("BT"),Xe.push("/"+Ue+" "+ee(ht.fontSize)+" Tf "+Qe),Xe.push(ht.text),Xe.push("ET"),Xe.push("Q"),Ne.stream=Xe.join(`
|
|
|
`),Ne},OffPushDown:function(be){var Ne=Ce(be);Ne.scope=be.scope;var Ue=[];return Ue.push("0.749023 g"),Ue.push("0 0 "+ee(Z.internal.getWidth(be))+" "+ee(Z.internal.getHeight(be))+" re"),Ue.push("f"),Ne.stream=Ue.join(`
|
|
|
`),Ne}},RadioButton:{Circle:{createAppearanceStream:function(be){var Ne={D:{Off:Z.RadioButton.Circle.OffPushDown},N:{}};return Ne.N[be]=Z.RadioButton.Circle.YesNormal,Ne.D[be]=Z.RadioButton.Circle.YesPushDown,Ne},getCA:function(){return"l"},YesNormal:function(be){var Ne=Ce(be);Ne.scope=be.scope;var Ue=[],Qe=Z.internal.getWidth(be)<=Z.internal.getHeight(be)?Z.internal.getWidth(be)/4:Z.internal.getHeight(be)/4;Qe=Number((.9*Qe).toFixed(5));var Xe=Z.internal.Bezier_C,qe=Number((Qe*Xe).toFixed(5));return Ue.push("q"),Ue.push("1 0 0 1 "+fe(Z.internal.getWidth(be)/2)+" "+fe(Z.internal.getHeight(be)/2)+" cm"),Ue.push(Qe+" 0 m"),Ue.push(Qe+" "+qe+" "+qe+" "+Qe+" 0 "+Qe+" c"),Ue.push("-"+qe+" "+Qe+" -"+Qe+" "+qe+" -"+Qe+" 0 c"),Ue.push("-"+Qe+" -"+qe+" -"+qe+" -"+Qe+" 0 -"+Qe+" c"),Ue.push(qe+" -"+Qe+" "+Qe+" -"+qe+" "+Qe+" 0 c"),Ue.push("f"),Ue.push("Q"),Ne.stream=Ue.join(`
|
|
|
`),Ne},YesPushDown:function(be){var Ne=Ce(be);Ne.scope=be.scope;var Ue=[],Qe=Z.internal.getWidth(be)<=Z.internal.getHeight(be)?Z.internal.getWidth(be)/4:Z.internal.getHeight(be)/4;Qe=Number((.9*Qe).toFixed(5));var Xe=Number((2*Qe).toFixed(5)),qe=Number((Xe*Z.internal.Bezier_C).toFixed(5)),yt=Number((Qe*Z.internal.Bezier_C).toFixed(5));return Ue.push("0.749023 g"),Ue.push("q"),Ue.push("1 0 0 1 "+fe(Z.internal.getWidth(be)/2)+" "+fe(Z.internal.getHeight(be)/2)+" cm"),Ue.push(Xe+" 0 m"),Ue.push(Xe+" "+qe+" "+qe+" "+Xe+" 0 "+Xe+" c"),Ue.push("-"+qe+" "+Xe+" -"+Xe+" "+qe+" -"+Xe+" 0 c"),Ue.push("-"+Xe+" -"+qe+" -"+qe+" -"+Xe+" 0 -"+Xe+" c"),Ue.push(qe+" -"+Xe+" "+Xe+" -"+qe+" "+Xe+" 0 c"),Ue.push("f"),Ue.push("Q"),Ue.push("0 g"),Ue.push("q"),Ue.push("1 0 0 1 "+fe(Z.internal.getWidth(be)/2)+" "+fe(Z.internal.getHeight(be)/2)+" cm"),Ue.push(Qe+" 0 m"),Ue.push(Qe+" "+yt+" "+yt+" "+Qe+" 0 "+Qe+" c"),Ue.push("-"+yt+" "+Qe+" -"+Qe+" "+yt+" -"+Qe+" 0 c"),Ue.push("-"+Qe+" -"+yt+" -"+yt+" -"+Qe+" 0 -"+Qe+" c"),Ue.push(yt+" -"+Qe+" "+Qe+" -"+yt+" "+Qe+" 0 c"),Ue.push("f"),Ue.push("Q"),Ne.stream=Ue.join(`
|
|
|
`),Ne},OffPushDown:function(be){var Ne=Ce(be);Ne.scope=be.scope;var Ue=[],Qe=Z.internal.getWidth(be)<=Z.internal.getHeight(be)?Z.internal.getWidth(be)/4:Z.internal.getHeight(be)/4;Qe=Number((.9*Qe).toFixed(5));var Xe=Number((2*Qe).toFixed(5)),qe=Number((Xe*Z.internal.Bezier_C).toFixed(5));return Ue.push("0.749023 g"),Ue.push("q"),Ue.push("1 0 0 1 "+fe(Z.internal.getWidth(be)/2)+" "+fe(Z.internal.getHeight(be)/2)+" cm"),Ue.push(Xe+" 0 m"),Ue.push(Xe+" "+qe+" "+qe+" "+Xe+" 0 "+Xe+" c"),Ue.push("-"+qe+" "+Xe+" -"+Xe+" "+qe+" -"+Xe+" 0 c"),Ue.push("-"+Xe+" -"+qe+" -"+qe+" -"+Xe+" 0 -"+Xe+" c"),Ue.push(qe+" -"+Xe+" "+Xe+" -"+qe+" "+Xe+" 0 c"),Ue.push("f"),Ue.push("Q"),Ne.stream=Ue.join(`
|
|
|
`),Ne}},Cross:{createAppearanceStream:function(be){var Ne={D:{Off:Z.RadioButton.Cross.OffPushDown},N:{}};return Ne.N[be]=Z.RadioButton.Cross.YesNormal,Ne.D[be]=Z.RadioButton.Cross.YesPushDown,Ne},getCA:function(){return"8"},YesNormal:function(be){var Ne=Ce(be);Ne.scope=be.scope;var Ue=[],Qe=Z.internal.calculateCross(be);return Ue.push("q"),Ue.push("1 1 "+ee(Z.internal.getWidth(be)-2)+" "+ee(Z.internal.getHeight(be)-2)+" re"),Ue.push("W"),Ue.push("n"),Ue.push(ee(Qe.x1.x)+" "+ee(Qe.x1.y)+" m"),Ue.push(ee(Qe.x2.x)+" "+ee(Qe.x2.y)+" l"),Ue.push(ee(Qe.x4.x)+" "+ee(Qe.x4.y)+" m"),Ue.push(ee(Qe.x3.x)+" "+ee(Qe.x3.y)+" l"),Ue.push("s"),Ue.push("Q"),Ne.stream=Ue.join(`
|
|
|
`),Ne},YesPushDown:function(be){var Ne=Ce(be);Ne.scope=be.scope;var Ue=Z.internal.calculateCross(be),Qe=[];return Qe.push("0.749023 g"),Qe.push("0 0 "+ee(Z.internal.getWidth(be))+" "+ee(Z.internal.getHeight(be))+" re"),Qe.push("f"),Qe.push("q"),Qe.push("1 1 "+ee(Z.internal.getWidth(be)-2)+" "+ee(Z.internal.getHeight(be)-2)+" re"),Qe.push("W"),Qe.push("n"),Qe.push(ee(Ue.x1.x)+" "+ee(Ue.x1.y)+" m"),Qe.push(ee(Ue.x2.x)+" "+ee(Ue.x2.y)+" l"),Qe.push(ee(Ue.x4.x)+" "+ee(Ue.x4.y)+" m"),Qe.push(ee(Ue.x3.x)+" "+ee(Ue.x3.y)+" l"),Qe.push("s"),Qe.push("Q"),Ne.stream=Qe.join(`
|
|
|
`),Ne},OffPushDown:function(be){var Ne=Ce(be);Ne.scope=be.scope;var Ue=[];return Ue.push("0.749023 g"),Ue.push("0 0 "+ee(Z.internal.getWidth(be))+" "+ee(Z.internal.getHeight(be))+" re"),Ue.push("f"),Ne.stream=Ue.join(`
|
|
|
`),Ne}}},createDefaultAppearanceStream:function(be){var Ne=be.scope.internal.getFont(be.fontName,be.fontStyle).id,Ue=be.scope.__private__.encodeColorString(be.color);return"/"+Ne+" "+be.fontSize+" Tf "+Ue}};Z.internal={Bezier_C:.551915024494,calculateCross:function(be){var Ne=Z.internal.getWidth(be),Ue=Z.internal.getHeight(be),Qe=Math.min(Ne,Ue);return{x1:{x:(Ne-Qe)/2,y:(Ue-Qe)/2+Qe},x2:{x:(Ne-Qe)/2+Qe,y:(Ue-Qe)/2},x3:{x:(Ne-Qe)/2,y:(Ue-Qe)/2},x4:{x:(Ne-Qe)/2+Qe,y:(Ue-Qe)/2+Qe}}}},Z.internal.getWidth=function(Ze){var be=0;return T()(Ze)==="object"&&(be=we(Ze.Rect[2])),be},Z.internal.getHeight=function(Ze){var be=0;return T()(Ze)==="object"&&(be=we(Ze.Rect[3])),be};var Re=j.addField=function(Ze){if(Me(this,Ze),!(Ze instanceof it))throw new Error("Invalid argument passed to jsPDF.addField.");var be;return(be=Ze).scope.internal.acroformPlugin.printedOut&&(be.scope.internal.acroformPlugin.printedOut=!1,be.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),be.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(be),Ze.page=Ze.scope.internal.getCurrentPageInfo().pageNumber,this};j.AcroFormChoiceField=et,j.AcroFormListBox=Te,j.AcroFormComboBox=tt,j.AcroFormEditBox=ze,j.AcroFormButton=dt,j.AcroFormPushButton=Ot,j.AcroFormRadioButton=Tt,j.AcroFormCheckBox=Nt,j.AcroFormTextField=Be,j.AcroFormPasswordField=$,j.AcroFormAppearance=Z,j.AcroForm={ChoiceField:et,ListBox:Te,ComboBox:tt,EditBox:ze,Button:dt,PushButton:Ot,RadioButton:Tt,CheckBox:Nt,TextField:Be,PasswordField:$,Appearance:Z},K.AcroForm={ChoiceField:et,ListBox:Te,ComboBox:tt,EditBox:ze,Button:dt,PushButton:Ot,RadioButton:Tt,CheckBox:Nt,TextField:Be,PasswordField:$,Appearance:Z};var De=K.AcroForm;function ae(Ze){return Ze.reduce(function(be,Ne,Ue){return be[Ne]=Ue,be},{})}!function(Ze){Ze.__addimage__={};var be="UNKNOWN",Ne={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},Ue=Ze.__addimage__.getImageFileTypeByImageData=function(ir,Lt){var Qt,It,or,Cr,Er,Kr=be;if((Lt=Lt||be)==="RGBA"||ir.data!==void 0&&ir.data instanceof Uint8ClampedArray&&"height"in ir&&"width"in ir)return"RGBA";if(Wt(ir))for(Er in Ne)for(or=Ne[Er],Qt=0;Qt<or.length;Qt+=1){for(Cr=!0,It=0;It<or[Qt].length;It+=1)if(or[Qt][It]!==void 0&&or[Qt][It]!==ir[It]){Cr=!1;break}if(Cr===!0){Kr=Er;break}}else for(Er in Ne)for(or=Ne[Er],Qt=0;Qt<or.length;Qt+=1){for(Cr=!0,It=0;It<or[Qt].length;It+=1)if(or[Qt][It]!==void 0&&or[Qt][It]!==ir.charCodeAt(It)){Cr=!1;break}if(Cr===!0){Kr=Er;break}}return Kr===be&&Lt!==be&&(Kr=Lt),Kr},Qe=function ir(Lt){for(var Qt=this.internal.write,It=this.internal.putStream,or=(0,this.internal.getFilters)();or.indexOf("FlateEncode")!==-1;)or.splice(or.indexOf("FlateEncode"),1);Lt.objectId=this.internal.newObject();var Cr=[];if(Cr.push({key:"Type",value:"/XObject"}),Cr.push({key:"Subtype",value:"/Image"}),Cr.push({key:"Width",value:Lt.width}),Cr.push({key:"Height",value:Lt.height}),Lt.colorSpace===vn.INDEXED?Cr.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Lt.palette.length/3-1)+" "+("sMask"in Lt&&Lt.sMask!==void 0?Lt.objectId+2:Lt.objectId+1)+" 0 R]"}):(Cr.push({key:"ColorSpace",value:"/"+Lt.colorSpace}),Lt.colorSpace===vn.DEVICE_CMYK&&Cr.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Cr.push({key:"BitsPerComponent",value:Lt.bitsPerComponent}),"decodeParameters"in Lt&&Lt.decodeParameters!==void 0&&Cr.push({key:"DecodeParms",value:"<<"+Lt.decodeParameters+">>"}),"transparency"in Lt&&Array.isArray(Lt.transparency)){for(var Er="",Kr=0,jn=Lt.transparency.length;Kr<jn;Kr++)Er+=Lt.transparency[Kr]+" "+Lt.transparency[Kr]+" ";Cr.push({key:"Mask",value:"["+Er+"]"})}Lt.sMask!==void 0&&Cr.push({key:"SMask",value:Lt.objectId+1+" 0 R"});var Nn=Lt.filter!==void 0?["/"+Lt.filter]:void 0;if(It({data:Lt.data,additionalKeyValues:Cr,alreadyAppliedFilters:Nn,objectId:Lt.objectId}),Qt("endobj"),"sMask"in Lt&&Lt.sMask!==void 0){var ei="/Predictor "+Lt.predictor+" /Colors 1 /BitsPerComponent "+Lt.bitsPerComponent+" /Columns "+Lt.width,Zr={width:Lt.width,height:Lt.height,colorSpace:"DeviceGray",bitsPerComponent:Lt.bitsPerComponent,decodeParameters:ei,data:Lt.sMask};"filter"in Lt&&(Zr.filter=Lt.filter),ir.call(this,Zr)}if(Lt.colorSpace===vn.INDEXED){var br=this.internal.newObject();It({data:fn(new Uint8Array(Lt.palette)),objectId:br}),Qt("endobj")}},Xe=function(){var Lt=this.internal.collections.addImage_images;for(var Qt in Lt)Qe.call(this,Lt[Qt])},qe=function(){var Lt,Qt=this.internal.collections.addImage_images,It=this.internal.write;for(var or in Qt)It("/I"+(Lt=Qt[or]).index,Lt.objectId,"0","R")},yt=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",Xe),this.internal.events.subscribe("putXobjectDict",qe))},ht=function(){var Lt=this.internal.collections.addImage_images;return yt.call(this),Lt},Jt=function(){return Object.keys(this.internal.collections.addImage_images).length},kr=function(Lt){return typeof Ze["process"+Lt.toUpperCase()]=="function"},_r=function(Lt){return T()(Lt)==="object"&&Lt.nodeType===1},Xr=function(Lt,Qt){if(Lt.nodeName==="IMG"&&Lt.hasAttribute("src")){var It=""+Lt.getAttribute("src");if(It.indexOf("data:image/")===0)return a(unescape(It).split("base64,").pop());var or=Ze.loadFile(It,!0);if(or!==void 0)return or}if(Lt.nodeName==="CANVAS"){if(Lt.width===0||Lt.height===0)throw new Error("Given canvas must have data. Canvas width: "+Lt.width+", height: "+Lt.height);var Cr;switch(Qt){case"PNG":Cr="image/png";break;case"WEBP":Cr="image/webp";break;case"JPEG":case"JPG":default:Cr="image/jpeg"}return a(Lt.toDataURL(Cr,1).split("base64,").pop())}},Bt=function(Lt){var Qt=this.internal.collections.addImage_images;if(Qt){for(var It in Qt)if(Lt===Qt[It].alias)return Qt[It]}},gn=function(Lt,Qt,It){return Lt||Qt||(Lt=-96,Qt=-96),Lt<0&&(Lt=-1*It.width*72/Lt/this.internal.scaleFactor),Qt<0&&(Qt=-1*It.height*72/Qt/this.internal.scaleFactor),Lt===0&&(Lt=Qt*It.width/It.height),Qt===0&&(Qt=Lt*It.height/It.width),[Lt,Qt]},hr=function(Lt,Qt,It,or,Cr,Er){var Kr=gn.call(this,It,or,Cr),jn=this.internal.getCoordinateString,Nn=this.internal.getVerticalCoordinateString,ei=ht.call(this);if(It=Kr[0],or=Kr[1],ei[Cr.index]=Cr,Er){Er*=Math.PI/180;var Zr=Math.cos(Er),br=Math.sin(Er),dn=function(zn){return zn.toFixed(4)},Ln=[dn(Zr),dn(br),dn(-1*br),dn(Zr),0,0,"cm"]}this.internal.write("q"),Er?(this.internal.write([1,"0","0",1,jn(Lt),Nn(Qt+or),"cm"].join(" ")),this.internal.write(Ln.join(" ")),this.internal.write([jn(It),"0","0",jn(or),"0","0","cm"].join(" "))):this.internal.write([jn(It),"0","0",jn(or),jn(Lt),Nn(Qt+or),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Cr.index+" Do"),this.internal.write("Q")},vn=Ze.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};Ze.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var en=Ze.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Dt=Ze.__addimage__.sHashCode=function(ir){var Lt,Qt,It=0;if(typeof ir=="string")for(Qt=ir.length,Lt=0;Lt<Qt;Lt++)It=(It<<5)-It+ir.charCodeAt(Lt),It|=0;else if(Wt(ir))for(Qt=ir.byteLength/2,Lt=0;Lt<Qt;Lt++)It=(It<<5)-It+ir[Lt],It|=0;return It},jr=Ze.__addimage__.validateStringAsBase64=function(ir){(ir=ir||"").toString().trim();var Lt=!0;return ir.length===0&&(Lt=!1),ir.length%4!=0&&(Lt=!1),/^[A-Za-z0-9+/]+$/.test(ir.substr(0,ir.length-2))===!1&&(Lt=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(ir.substr(-2))===!1&&(Lt=!1),Lt},un=Ze.__addimage__.extractImageFromDataUrl=function(ir){var Lt=(ir=ir||"").split("base64,"),Qt=null;if(Lt.length===2){var It=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(Lt[0]);Array.isArray(It)&&(Qt={mimeType:It[1],charset:It[2],data:Lt[1]})}return Qt},Hr=Ze.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};Ze.__addimage__.isArrayBuffer=function(ir){return Hr()&&ir instanceof ArrayBuffer};var Wt=Ze.__addimage__.isArrayBufferView=function(ir){return Hr()&&typeof Uint32Array!="undefined"&&(ir instanceof Int8Array||ir instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&ir instanceof Uint8ClampedArray||ir instanceof Int16Array||ir instanceof Uint16Array||ir instanceof Int32Array||ir instanceof Uint32Array||ir instanceof Float32Array||ir instanceof Float64Array)},wr=Ze.__addimage__.binaryStringToUint8Array=function(ir){for(var Lt=ir.length,Qt=new Uint8Array(Lt),It=0;It<Lt;It++)Qt[It]=ir.charCodeAt(It);return Qt},fn=Ze.__addimage__.arrayBufferToBinaryString=function(ir){for(var Lt="",Qt=Wt(ir)?ir:new Uint8Array(ir),It=0;It<Qt.length;It+=8192)Lt+=String.fromCharCode.apply(null,Qt.subarray(It,It+8192));return Lt};Ze.addImage=function(){var ir,Lt,Qt,It,or,Cr,Er,Kr,jn;if(typeof arguments[1]=="number"?(Lt=be,Qt=arguments[1],It=arguments[2],or=arguments[3],Cr=arguments[4],Er=arguments[5],Kr=arguments[6],jn=arguments[7]):(Lt=arguments[1],Qt=arguments[2],It=arguments[3],or=arguments[4],Cr=arguments[5],Er=arguments[6],Kr=arguments[7],jn=arguments[8]),T()(ir=arguments[0])==="object"&&!_r(ir)&&"imageData"in ir){var Nn=ir;ir=Nn.imageData,Lt=Nn.format||Lt||be,Qt=Nn.x||Qt||0,It=Nn.y||It||0,or=Nn.w||Nn.width||or,Cr=Nn.h||Nn.height||Cr,Er=Nn.alias||Er,Kr=Nn.compression||Kr,jn=Nn.rotation||Nn.angle||jn}var ei=this.internal.getFilters();if(Kr===void 0&&ei.indexOf("FlateEncode")!==-1&&(Kr="SLOW"),isNaN(Qt)||isNaN(It))throw new Error("Invalid coordinates passed to jsPDF.addImage");yt.call(this);var Zr=zt.call(this,ir,Lt,Er,Kr);return hr.call(this,Qt,It,or,Cr,Zr,jn),this};var zt=function(Lt,Qt,It,or){var Cr,Er,Kr;if(typeof Lt=="string"&&Ue(Lt)===be){Lt=unescape(Lt);var jn=Dr(Lt,!1);(jn!==""||(jn=Ze.loadFile(Lt,!0))!==void 0)&&(Lt=jn)}if(_r(Lt)&&(Lt=Xr(Lt,Qt)),Qt=Ue(Lt,Qt),!kr(Qt))throw new Error("addImage does not support files of type '"+Qt+"', please ensure that a plugin for '"+Qt+"' support is added.");if(((Kr=It)==null||Kr.length===0)&&(It=function(Nn){return typeof Nn=="string"||Wt(Nn)?Dt(Nn):Wt(Nn.data)?Dt(Nn.data):null}(Lt)),(Cr=Bt.call(this,It))||(Hr()&&(Lt instanceof Uint8Array||Qt==="RGBA"||(Er=Lt,Lt=wr(Lt))),Cr=this["process"+Qt.toUpperCase()](Lt,Jt.call(this),It,function(Nn){return Nn&&typeof Nn=="string"&&(Nn=Nn.toUpperCase()),Nn in Ze.image_compression?Nn:en.NONE}(or),Er)),!Cr)throw new Error("An unknown error occurred whilst processing the image.");return Cr},Dr=Ze.__addimage__.convertBase64ToBinaryString=function(ir,Lt){var Qt;Lt=typeof Lt!="boolean"||Lt;var It,or="";if(typeof ir=="string"){It=(Qt=un(ir))!==null?Qt.data:ir;try{or=a(It)}catch(Cr){if(Lt)throw jr(It)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Cr.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return or};Ze.getImageProperties=function(ir){var Lt,Qt,It="";if(_r(ir)&&(ir=Xr(ir)),typeof ir=="string"&&Ue(ir)===be&&((It=Dr(ir,!1))===""&&(It=Ze.loadFile(ir)||""),ir=It),Qt=Ue(ir),!kr(Qt))throw new Error("addImage does not support files of type '"+Qt+"', please ensure that a plugin for '"+Qt+"' support is added.");if(!Hr()||ir instanceof Uint8Array||(ir=wr(ir)),!(Lt=this["process"+Qt.toUpperCase()](ir)))throw new Error("An unknown error occurred whilst processing the image");return Lt.fileType=Qt,Lt}}(K.API),function(Ze){var be=function(Ue){if(Ue!==void 0&&Ue!="")return!0};K.API.events.push(["addPage",function(Ne){this.internal.getPageInfo(Ne.pageNumber).pageContext.annotations=[]}]),Ze.events.push(["putPage",function(Ne){for(var Ue,Qe,Xe,qe=this.internal.getCoordinateString,yt=this.internal.getVerticalCoordinateString,ht=this.internal.getPageInfoByObjId(Ne.objId),Jt=Ne.pageContext.annotations,kr=!1,_r=0;_r<Jt.length&&!kr;_r++)switch((Ue=Jt[_r]).type){case"link":(be(Ue.options.url)||be(Ue.options.pageNumber))&&(kr=!0);break;case"reference":case"text":case"freetext":kr=!0}if(kr!=0){this.internal.write("/Annots [");for(var Xr=0;Xr<Jt.length;Xr++){Ue=Jt[Xr];var Bt=this.internal.pdfEscape,gn=this.internal.getEncryptor(Ne.objId);switch(Ue.type){case"reference":this.internal.write(" "+Ue.object.objId+" 0 R ");break;case"text":var hr=this.internal.newAdditionalObject(),vn=this.internal.newAdditionalObject(),en=this.internal.getEncryptor(hr.objId),Dt=Ue.title||"Note";Xe="<</Type /Annot /Subtype /Text "+(Qe="/Rect ["+qe(Ue.bounds.x)+" "+yt(Ue.bounds.y+Ue.bounds.h)+" "+qe(Ue.bounds.x+Ue.bounds.w)+" "+yt(Ue.bounds.y)+"] ")+"/Contents ("+Bt(en(Ue.contents))+")",Xe+=" /Popup "+vn.objId+" 0 R",Xe+=" /P "+ht.objId+" 0 R",Xe+=" /T ("+Bt(en(Dt))+") >>",hr.content=Xe;var jr=hr.objId+" 0 R";Xe="<</Type /Annot /Subtype /Popup "+(Qe="/Rect ["+qe(Ue.bounds.x+30)+" "+yt(Ue.bounds.y+Ue.bounds.h)+" "+qe(Ue.bounds.x+Ue.bounds.w+30)+" "+yt(Ue.bounds.y)+"] ")+" /Parent "+jr,Ue.open&&(Xe+=" /Open true"),Xe+=" >>",vn.content=Xe,this.internal.write(hr.objId,"0 R",vn.objId,"0 R");break;case"freetext":Qe="/Rect ["+qe(Ue.bounds.x)+" "+yt(Ue.bounds.y)+" "+qe(Ue.bounds.x+Ue.bounds.w)+" "+yt(Ue.bounds.y+Ue.bounds.h)+"] ";var un=Ue.color||"#000000";Xe="<</Type /Annot /Subtype /FreeText "+Qe+"/Contents ("+Bt(gn(Ue.contents))+")",Xe+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+un+")",Xe+=" /Border [0 0 0]",Xe+=" >>",this.internal.write(Xe);break;case"link":if(Ue.options.name){var Hr=this.annotations._nameMap[Ue.options.name];Ue.options.pageNumber=Hr.page,Ue.options.top=Hr.y}else Ue.options.top||(Ue.options.top=0);if(Qe="/Rect ["+Ue.finalBounds.x+" "+Ue.finalBounds.y+" "+Ue.finalBounds.w+" "+Ue.finalBounds.h+"] ",Xe="",Ue.options.url)Xe="<</Type /Annot /Subtype /Link "+Qe+"/Border [0 0 0] /A <</S /URI /URI ("+Bt(gn(Ue.options.url))+") >>";else if(Ue.options.pageNumber)switch(Xe="<</Type /Annot /Subtype /Link "+Qe+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Ue.options.pageNumber).objId+" 0 R",Ue.options.magFactor=Ue.options.magFactor||"XYZ",Ue.options.magFactor){case"Fit":Xe+=" /Fit]";break;case"FitH":Xe+=" /FitH "+Ue.options.top+"]";break;case"FitV":Ue.options.left=Ue.options.left||0,Xe+=" /FitV "+Ue.options.left+"]";break;case"XYZ":default:var Wt=yt(Ue.options.top);Ue.options.left=Ue.options.left||0,Ue.options.zoom===void 0&&(Ue.options.zoom=0),Xe+=" /XYZ "+Ue.options.left+" "+Wt+" "+Ue.options.zoom+"]"}Xe!=""&&(Xe+=" >>",this.internal.write(Xe))}}this.internal.write("]")}}]),Ze.createAnnotation=function(Ne){var Ue=this.internal.getCurrentPageInfo();switch(Ne.type){case"link":this.link(Ne.bounds.x,Ne.bounds.y,Ne.bounds.w,Ne.bounds.h,Ne);break;case"text":case"freetext":Ue.pageContext.annotations.push(Ne)}},Ze.link=function(Ne,Ue,Qe,Xe,qe){var yt=this.internal.getCurrentPageInfo(),ht=this.internal.getCoordinateString,Jt=this.internal.getVerticalCoordinateString;yt.pageContext.annotations.push({finalBounds:{x:ht(Ne),y:Jt(Ue),w:ht(Ne+Qe),h:Jt(Ue+Xe)},options:qe,type:"link"})},Ze.textWithLink=function(Ne,Ue,Qe,Xe){var qe=this.getTextWidth(Ne),yt=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(Ne,Ue,Qe,Xe),Qe+=.2*yt,Xe.align==="center"&&(Ue-=qe/2),Xe.align==="right"&&(Ue-=qe),this.link(Ue,Qe-yt,qe,yt,Xe),qe},Ze.getTextWidth=function(Ne){var Ue=this.internal.getFontSize();return this.getStringUnitWidth(Ne)*Ue/this.internal.scaleFactor}}(K.API),function(Ze){var be={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},Ne={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},Ue={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},Qe=[1570,1571,1573,1575];Ze.__arabicParser__={};var Xe=Ze.__arabicParser__.isInArabicSubstitutionA=function(hr){return be[hr.charCodeAt(0)]!==void 0},qe=Ze.__arabicParser__.isArabicLetter=function(hr){return typeof hr=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(hr)},yt=Ze.__arabicParser__.isArabicEndLetter=function(hr){return qe(hr)&&Xe(hr)&&be[hr.charCodeAt(0)].length<=2},ht=Ze.__arabicParser__.isArabicAlfLetter=function(hr){return qe(hr)&&Qe.indexOf(hr.charCodeAt(0))>=0};Ze.__arabicParser__.arabicLetterHasIsolatedForm=function(hr){return qe(hr)&&Xe(hr)&&be[hr.charCodeAt(0)].length>=1};var Jt=Ze.__arabicParser__.arabicLetterHasFinalForm=function(hr){return qe(hr)&&Xe(hr)&&be[hr.charCodeAt(0)].length>=2};Ze.__arabicParser__.arabicLetterHasInitialForm=function(hr){return qe(hr)&&Xe(hr)&&be[hr.charCodeAt(0)].length>=3};var kr=Ze.__arabicParser__.arabicLetterHasMedialForm=function(hr){return qe(hr)&&Xe(hr)&&be[hr.charCodeAt(0)].length==4},_r=Ze.__arabicParser__.resolveLigatures=function(hr){var vn=0,en=Ne,Dt="",jr=0;for(vn=0;vn<hr.length;vn+=1)en[hr.charCodeAt(vn)]!==void 0?(jr++,typeof(en=en[hr.charCodeAt(vn)])=="number"&&(Dt+=String.fromCharCode(en),en=Ne,jr=0),vn===hr.length-1&&(en=Ne,Dt+=hr.charAt(vn-(jr-1)),vn-=jr-1,jr=0)):(en=Ne,Dt+=hr.charAt(vn-jr),vn-=jr,jr=0);return Dt};Ze.__arabicParser__.isArabicDiacritic=function(hr){return hr!==void 0&&Ue[hr.charCodeAt(0)]!==void 0};var Xr=Ze.__arabicParser__.getCorrectForm=function(hr,vn,en){return qe(hr)?Xe(hr)===!1?-1:!Jt(hr)||!qe(vn)&&!qe(en)||!qe(en)&&yt(vn)||yt(hr)&&!qe(vn)||yt(hr)&&ht(vn)||yt(hr)&&yt(vn)?0:kr(hr)&&qe(vn)&&!yt(vn)&&qe(en)&&Jt(en)?3:yt(hr)||!qe(en)?1:2:-1},Bt=function(vn){var en=0,Dt=0,jr=0,un="",Hr="",Wt="",wr=(vn=vn||"").split("\\s+"),fn=[];for(en=0;en<wr.length;en+=1){for(fn.push(""),Dt=0;Dt<wr[en].length;Dt+=1)un=wr[en][Dt],Hr=wr[en][Dt-1],Wt=wr[en][Dt+1],qe(un)?(jr=Xr(un,Hr,Wt),fn[en]+=jr!==-1?String.fromCharCode(be[un.charCodeAt(0)][jr]):un):fn[en]+=un;fn[en]=_r(fn[en])}return fn.join(" ")},gn=Ze.__arabicParser__.processArabic=Ze.processArabic=function(){var hr,vn=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,en=[];if(Array.isArray(vn)){var Dt=0;for(en=[],Dt=0;Dt<vn.length;Dt+=1)Array.isArray(vn[Dt])?en.push([Bt(vn[Dt][0]),vn[Dt][1],vn[Dt][2]]):en.push([Bt(vn[Dt])]);hr=en}else hr=Bt(vn);return typeof arguments[0]=="string"?hr:(arguments[0].text=hr,arguments[0])};Ze.events.push(["preProcessText",gn])}(K.API),K.API.autoPrint=function(Ze){var be;switch((Ze=Ze||{}).variant=Ze.variant||"non-conform",Ze.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){be=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+be+" 0 R")})}return this},function(Ze){var be=function(){var Ue=void 0;Object.defineProperty(this,"pdf",{get:function(){return Ue},set:function(Jt){Ue=Jt}});var Qe=150;Object.defineProperty(this,"width",{get:function(){return Qe},set:function(Jt){Qe=isNaN(Jt)||Number.isInteger(Jt)===!1||Jt<0?150:Jt,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=Qe+1)}});var Xe=300;Object.defineProperty(this,"height",{get:function(){return Xe},set:function(Jt){Xe=isNaN(Jt)||Number.isInteger(Jt)===!1||Jt<0?300:Jt,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=Xe+1)}});var qe=[];Object.defineProperty(this,"childNodes",{get:function(){return qe},set:function(Jt){qe=Jt}});var yt={};Object.defineProperty(this,"style",{get:function(){return yt},set:function(Jt){yt=Jt}}),Object.defineProperty(this,"parentNode",{})};be.prototype.getContext=function(Ne,Ue){var Qe;if((Ne=Ne||"2d")!=="2d")return null;for(Qe in Ue)this.pdf.context2d.hasOwnProperty(Qe)&&(this.pdf.context2d[Qe]=Ue[Qe]);return this.pdf.context2d._canvas=this,this.pdf.context2d},be.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},Ze.events.push(["initialized",function(){this.canvas=new be,this.canvas.pdf=this}])}(K.API),function(Ze){var be={left:0,top:0,bottom:0,right:0},Ne=!1,Ue=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},be),this.internal.__cell__.margins.width=this.getPageWidth(),Qe.call(this))},Qe=function(){this.internal.__cell__.lastCell=new Xe,this.internal.__cell__.pages=1},Xe=function(){var Jt=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Jt},set:function(en){Jt=en}});var kr=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return kr},set:function(en){kr=en}});var _r=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return _r},set:function(en){_r=en}});var Xr=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return Xr},set:function(en){Xr=en}});var Bt=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Bt},set:function(en){Bt=en}});var gn=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return gn},set:function(en){gn=en}});var hr=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return hr},set:function(en){hr=en}}),this};Xe.prototype.clone=function(){return new Xe(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},Xe.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},Ze.setHeaderFunction=function(ht){return Ue.call(this),this.internal.__cell__.headerFunction=typeof ht=="function"?ht:void 0,this},Ze.getTextDimensions=function(ht,Jt){Ue.call(this);var kr=(Jt=Jt||{}).fontSize||this.getFontSize(),_r=Jt.font||this.getFont(),Xr=Jt.scaleFactor||this.internal.scaleFactor,Bt=0,gn=0,hr=0,vn=this;if(!Array.isArray(ht)&&typeof ht!="string"){if(typeof ht!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");ht=String(ht)}var en=Jt.maxWidth;en>0?typeof ht=="string"?ht=this.splitTextToSize(ht,en):Object.prototype.toString.call(ht)==="[object Array]"&&(ht=ht.reduce(function(jr,un){return jr.concat(vn.splitTextToSize(un,en))},[])):ht=Array.isArray(ht)?ht:[ht];for(var Dt=0;Dt<ht.length;Dt++)Bt<(hr=this.getStringUnitWidth(ht[Dt],{font:_r})*kr)&&(Bt=hr);return Bt!==0&&(gn=ht.length),{w:Bt/=Xr,h:Math.max((gn*kr*this.getLineHeightFactor()-kr*(this.getLineHeightFactor()-1))/Xr,0)}},Ze.cellAddPage=function(){Ue.call(this),this.addPage();var ht=this.internal.__cell__.margins||be;return this.internal.__cell__.lastCell=new Xe(ht.left,ht.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var qe=Ze.cell=function(){var ht;ht=arguments[0]instanceof Xe?arguments[0]:new Xe(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Ue.call(this);var Jt=this.internal.__cell__.lastCell,kr=this.internal.__cell__.padding,_r=this.internal.__cell__.margins||be,Xr=this.internal.__cell__.tableHeaderRow,Bt=this.internal.__cell__.printHeaders;return Jt.lineNumber!==void 0&&(Jt.lineNumber===ht.lineNumber?(ht.x=(Jt.x||0)+(Jt.width||0),ht.y=Jt.y||0):Jt.y+Jt.height+ht.height+_r.bottom>this.getPageHeight()?(this.cellAddPage(),ht.y=_r.top,Bt&&Xr&&(this.printHeaderRow(ht.lineNumber,!0),ht.y+=Xr[0].height)):ht.y=Jt.y+Jt.height||ht.y),ht.text[0]!==void 0&&(this.rect(ht.x,ht.y,ht.width,ht.height,Ne===!0?"FD":void 0),ht.align==="right"?this.text(ht.text,ht.x+ht.width-kr,ht.y+kr,{align:"right",baseline:"top"}):ht.align==="center"?this.text(ht.text,ht.x+ht.width/2,ht.y+kr,{align:"center",baseline:"top",maxWidth:ht.width-kr-kr}):this.text(ht.text,ht.x+kr,ht.y+kr,{align:"left",baseline:"top",maxWidth:ht.width-kr-kr})),this.internal.__cell__.lastCell=ht,this};Ze.table=function(ht,Jt,kr,_r,Xr){if(Ue.call(this),!kr)throw new Error("No data for PDF table.");var Bt,gn,hr,vn,en=[],Dt=[],jr=[],un={},Hr={},Wt=[],wr=[],fn=(Xr=Xr||{}).autoSize||!1,zt=Xr.printHeaders!==!1,Dr=Xr.css&&Xr.css["font-size"]!==void 0?16*Xr.css["font-size"]:Xr.fontSize||12,ir=Xr.margins||Object.assign({width:this.getPageWidth()},be),Lt=typeof Xr.padding=="number"?Xr.padding:3,Qt=Xr.headerBackgroundColor||"#c8c8c8",It=Xr.headerTextColor||"#000";if(Qe.call(this),this.internal.__cell__.printHeaders=zt,this.internal.__cell__.margins=ir,this.internal.__cell__.table_font_size=Dr,this.internal.__cell__.padding=Lt,this.internal.__cell__.headerBackgroundColor=Qt,this.internal.__cell__.headerTextColor=It,this.setFontSize(Dr),_r==null)Dt=en=Object.keys(kr[0]),jr=en.map(function(){return"left"});else if(Array.isArray(_r)&&T()(_r[0])==="object")for(en=_r.map(function(Nn){return Nn.name}),Dt=_r.map(function(Nn){return Nn.prompt||Nn.name||""}),jr=_r.map(function(Nn){return Nn.align||"left"}),Bt=0;Bt<_r.length;Bt+=1)Hr[_r[Bt].name]=_r[Bt].width*(19.049976/25.4);else Array.isArray(_r)&&typeof _r[0]=="string"&&(Dt=en=_r,jr=en.map(function(){return"left"}));if(fn||Array.isArray(_r)&&typeof _r[0]=="string")for(Bt=0;Bt<en.length;Bt+=1){for(un[vn=en[Bt]]=kr.map(function(Nn){return Nn[vn]}),this.setFont(void 0,"bold"),Wt.push(this.getTextDimensions(Dt[Bt],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),gn=un[vn],this.setFont(void 0,"normal"),hr=0;hr<gn.length;hr+=1)Wt.push(this.getTextDimensions(gn[hr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Hr[vn]=Math.max.apply(null,Wt)+Lt+Lt,Wt=[]}if(zt){var or={};for(Bt=0;Bt<en.length;Bt+=1)or[en[Bt]]={},or[en[Bt]].text=Dt[Bt],or[en[Bt]].align=jr[Bt];var Cr=yt.call(this,or,Hr);wr=en.map(function(Nn){return new Xe(ht,Jt,Hr[Nn],Cr,or[Nn].text,void 0,or[Nn].align)}),this.setTableHeaderRow(wr),this.printHeaderRow(1,!1)}var Er=_r.reduce(function(Nn,ei){return Nn[ei.name]=ei.align,Nn},{});for(Bt=0;Bt<kr.length;Bt+=1){"rowStart"in Xr&&Xr.rowStart instanceof Function&&Xr.rowStart({row:Bt,data:kr[Bt]},this);var Kr=yt.call(this,kr[Bt],Hr);for(hr=0;hr<en.length;hr+=1){var jn=kr[Bt][en[hr]];"cellStart"in Xr&&Xr.cellStart instanceof Function&&Xr.cellStart({row:Bt,col:hr,data:jn},this),qe.call(this,new Xe(ht,Jt,Hr[en[hr]],Kr,jn,Bt+2,Er[en[hr]]))}}return this.internal.__cell__.table_x=ht,this.internal.__cell__.table_y=Jt,this};var yt=function(Jt,kr){var _r=this.internal.__cell__.padding,Xr=this.internal.__cell__.table_font_size,Bt=this.internal.scaleFactor;return Object.keys(Jt).map(function(gn){var hr=Jt[gn];return this.splitTextToSize(hr.hasOwnProperty("text")?hr.text:hr,kr[gn]-_r-_r)},this).map(function(gn){return this.getLineHeightFactor()*gn.length*Xr/Bt+_r+_r},this).reduce(function(gn,hr){return Math.max(gn,hr)},0)};Ze.setTableHeaderRow=function(ht){Ue.call(this),this.internal.__cell__.tableHeaderRow=ht},Ze.printHeaderRow=function(ht,Jt){if(Ue.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var kr;if(Ne=!0,typeof this.internal.__cell__.headerFunction=="function"){var _r=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new Xe(_r[0],_r[1],_r[2],_r[3],void 0,-1)}this.setFont(void 0,"bold");for(var Xr=[],Bt=0;Bt<this.internal.__cell__.tableHeaderRow.length;Bt+=1){kr=this.internal.__cell__.tableHeaderRow[Bt].clone(),Jt&&(kr.y=this.internal.__cell__.margins.top||0,Xr.push(kr)),kr.lineNumber=ht;var gn=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),qe.call(this,kr),this.setTextColor(gn)}Xr.length>0&&this.setTableHeaderRow(Xr),this.setFont(void 0,"normal"),Ne=!1}}(K.API);var gt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},jt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],ut=ae(jt),rr=[100,200,300,400,500,600,700,800,900],pr=ae(rr);function nn(Ze){var be=Ze.family.replace(/"|'/g,"").toLowerCase(),Ne=function(Xe){return gt[Xe=Xe||"normal"]?Xe:"normal"}(Ze.style),Ue=function(Xe){if(!Xe)return 400;if(typeof Xe=="number")return Xe>=100&&Xe<=900&&Xe%100==0?Xe:400;if(/^\d00$/.test(Xe))return parseInt(Xe);switch(Xe){case"bold":return 700;case"normal":default:return 400}}(Ze.weight),Qe=function(Xe){return typeof ut[Xe=Xe||"normal"]=="number"?Xe:"normal"}(Ze.stretch);return{family:be,style:Ne,weight:Ue,stretch:Qe,src:Ze.src||[],ref:Ze.ref||{name:be,style:[Qe,Ne,Ue].join(" ")}}}function mr(Ze,be,Ne,Ue){var Qe;for(Qe=Ne;Qe>=0&&Qe<be.length;Qe+=Ue)if(Ze[be[Qe]])return Ze[be[Qe]];for(Qe=Ne;Qe>=0&&Qe<be.length;Qe-=Ue)if(Ze[be[Qe]])return Ze[be[Qe]]}var vr={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},$t={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Xt(Ze){return[Ze.stretch,Ze.style,Ze.weight,Ze.family].join(" ")}function ft(Ze,be,Ne){for(var Ue=(Ne=Ne||{}).defaultFontFamily||"times",Qe=Object.assign({},vr,Ne.genericFontFamilies||{}),Xe=null,qe=null,yt=0;yt<be.length;++yt)if(Qe[(Xe=nn(be[yt])).family]&&(Xe.family=Qe[Xe.family]),Ze.hasOwnProperty(Xe.family)){qe=Ze[Xe.family];break}if(!(qe=qe||Ze[Ue]))throw new Error("Could not find a font-family for the rule '"+Xt(Xe)+"' and default family '"+Ue+"'.");if(qe=function(ht,Jt){if(Jt[ht])return Jt[ht];var kr=ut[ht],_r=kr<=ut.normal?-1:1,Xr=mr(Jt,jt,kr,_r);if(!Xr)throw new Error("Could not find a matching font-stretch value for "+ht);return Xr}(Xe.stretch,qe),qe=function(ht,Jt){if(Jt[ht])return Jt[ht];for(var kr=gt[ht],_r=0;_r<kr.length;++_r)if(Jt[kr[_r]])return Jt[kr[_r]];throw new Error("Could not find a matching font-style for "+ht)}(Xe.style,qe),!(qe=function(ht,Jt){if(Jt[ht])return Jt[ht];if(ht===400&&Jt[500])return Jt[500];if(ht===500&&Jt[400])return Jt[400];var kr=pr[ht],_r=mr(Jt,rr,kr,ht<400?-1:1);if(!_r)throw new Error("Could not find a matching font-weight for value "+ht);return _r}(Xe.weight,qe)))throw new Error("Failed to resolve a font for the rule '"+Xt(Xe)+"'.");return qe}function Ur(Ze){return Ze.trimLeft()}function yn(Ze,be){for(var Ne=0;Ne<Ze.length;){if(Ze.charAt(Ne)===be)return[Ze.substring(0,Ne),Ze.substring(Ne+1)];Ne+=1}return null}function Dn(Ze){var be=Ze.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return be===null?null:[be[0],Ze.substring(be[0].length)]}var Un,wi,Rn,kn=["times"];!function(Ze){var be,Ne,Ue,Qe,Xe,qe,yt,ht,Jt,kr=function(br){return br=br||{},this.isStrokeTransparent=br.isStrokeTransparent||!1,this.strokeOpacity=br.strokeOpacity||1,this.strokeStyle=br.strokeStyle||"#000000",this.fillStyle=br.fillStyle||"#000000",this.isFillTransparent=br.isFillTransparent||!1,this.fillOpacity=br.fillOpacity||1,this.font=br.font||"10px sans-serif",this.textBaseline=br.textBaseline||"alphabetic",this.textAlign=br.textAlign||"left",this.lineWidth=br.lineWidth||1,this.lineJoin=br.lineJoin||"miter",this.lineCap=br.lineCap||"butt",this.path=br.path||[],this.transform=br.transform!==void 0?br.transform.clone():new ht,this.globalCompositeOperation=br.globalCompositeOperation||"normal",this.globalAlpha=br.globalAlpha||1,this.clip_path=br.clip_path||[],this.currentPoint=br.currentPoint||new qe,this.miterLimit=br.miterLimit||10,this.lastPoint=br.lastPoint||new qe,this.lineDashOffset=br.lineDashOffset||0,this.lineDash=br.lineDash||[],this.margin=br.margin||[0,0,0,0],this.prevPageLastElemOffset=br.prevPageLastElemOffset||0,this.ignoreClearRect=typeof br.ignoreClearRect!="boolean"||br.ignoreClearRect,this};Ze.events.push(["initialized",function(){this.context2d=new _r(this),be=this.internal.f2,Ne=this.internal.getCoordinateString,Ue=this.internal.getVerticalCoordinateString,Qe=this.internal.getHorizontalCoordinate,Xe=this.internal.getVerticalCoordinate,qe=this.internal.Point,yt=this.internal.Rectangle,ht=this.internal.Matrix,Jt=new kr}]);var _r=function(br){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var dn=br;Object.defineProperty(this,"pdf",{get:function(){return dn}});var Ln=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Ln},set:function(Ei){Ln=Boolean(Ei)}});var Fn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Fn},set:function(Ei){Fn=Boolean(Ei)}});var zn=0;Object.defineProperty(this,"posX",{get:function(){return zn},set:function(Ei){isNaN(Ei)||(zn=Ei)}});var ui=0;Object.defineProperty(this,"posY",{get:function(){return ui},set:function(Ei){isNaN(Ei)||(ui=Ei)}}),Object.defineProperty(this,"margin",{get:function(){return Jt.margin},set:function(Ei){var Hi;typeof Ei=="number"?Hi=[Ei,Ei,Ei,Ei]:((Hi=new Array(4))[0]=Ei[0],Hi[1]=Ei.length>=2?Ei[1]:Hi[0],Hi[2]=Ei.length>=3?Ei[2]:Hi[0],Hi[3]=Ei.length>=4?Ei[3]:Hi[1]),Jt.margin=Hi}});var ii=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ii},set:function(Ei){ii=Ei}});var qn=0;Object.defineProperty(this,"lastBreak",{get:function(){return qn},set:function(Ei){qn=Ei}});var Li=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Li},set:function(Ei){Li=Ei}}),Object.defineProperty(this,"ctx",{get:function(){return Jt},set:function(Ei){Ei instanceof kr&&(Jt=Ei)}}),Object.defineProperty(this,"path",{get:function(){return Jt.path},set:function(Ei){Jt.path=Ei}});var zi=[];Object.defineProperty(this,"ctxStack",{get:function(){return zi},set:function(Ei){zi=Ei}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Ei){var Hi;Hi=Xr(Ei),this.ctx.fillStyle=Hi.style,this.ctx.isFillTransparent=Hi.a===0,this.ctx.fillOpacity=Hi.a,this.pdf.setFillColor(Hi.r,Hi.g,Hi.b,{a:Hi.a}),this.pdf.setTextColor(Hi.r,Hi.g,Hi.b,{a:Hi.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Ei){var Hi=Xr(Ei);this.ctx.strokeStyle=Hi.style,this.ctx.isStrokeTransparent=Hi.a===0,this.ctx.strokeOpacity=Hi.a,Hi.a===0?this.pdf.setDrawColor(255,255,255):(Hi.a,this.pdf.setDrawColor(Hi.r,Hi.g,Hi.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Ei){["butt","round","square"].indexOf(Ei)!==-1&&(this.ctx.lineCap=Ei,this.pdf.setLineCap(Ei))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Ei){isNaN(Ei)||(this.ctx.lineWidth=Ei,this.pdf.setLineWidth(Ei))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Ei){["bevel","round","miter"].indexOf(Ei)!==-1&&(this.ctx.lineJoin=Ei,this.pdf.setLineJoin(Ei))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Ei){isNaN(Ei)||(this.ctx.miterLimit=Ei,this.pdf.setMiterLimit(Ei))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Ei){this.ctx.textBaseline=Ei}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Ei){["right","end","center","left","start"].indexOf(Ei)!==-1&&(this.ctx.textAlign=Ei)}});var Ri=null;function ga(hn,Ei){if(Ri===null){var Hi=function(ki){var ji=[];return Object.keys(ki).forEach(function(dr){ki[dr].forEach(function(sr){var cn=null;switch(sr){case"bold":cn={family:dr,weight:"bold"};break;case"italic":cn={family:dr,style:"italic"};break;case"bolditalic":cn={family:dr,weight:"bold",style:"italic"};break;case"":case"normal":cn={family:dr}}cn!==null&&(cn.ref={name:dr,style:sr},ji.push(cn))})}),ji}(hn.getFontList());Ri=function(ki){for(var ji={},dr=0;dr<ki.length;++dr){var sr=nn(ki[dr]),cn=sr.family,Zt=sr.stretch,Ar=sr.style,Nr=sr.weight;ji[cn]=ji[cn]||{},ji[cn][Zt]=ji[cn][Zt]||{},ji[cn][Zt][Ar]=ji[cn][Zt][Ar]||{},ji[cn][Zt][Ar][Nr]=sr}return ji}(Hi.concat(Ei))}return Ri}var oi=null;Object.defineProperty(this,"fontFaces",{get:function(){return oi},set:function(Ei){Ri=null,oi=Ei}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Ei){var Hi;if(this.ctx.font=Ei,(Hi=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(Ei))!==null){var ki=Hi[1],ji=(Hi[2],Hi[3]),dr=Hi[4],sr=(Hi[5],Hi[6]),cn=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(dr)[2];dr=cn==="px"?Math.floor(parseFloat(dr)*this.pdf.internal.scaleFactor):cn==="em"?Math.floor(parseFloat(dr)*this.pdf.getFontSize()):Math.floor(parseFloat(dr)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(dr);var Zt=function(fr){var Br,$r,wn=[],rn=fr.trim();if(rn==="")return kn;if(rn in $t)return[$t[rn]];for(;rn!=="";){switch($r=null,Br=(rn=Ur(rn)).charAt(0)){case'"':case"'":$r=yn(rn.substring(1),Br);break;default:$r=Dn(rn)}if($r===null)return kn;if(wn.push($r[0]),(rn=Ur($r[1]))!==""&&rn.charAt(0)!==",")return kn;rn=rn.replace(/^,/,"")}return wn}(sr);if(this.fontFaces){var Ar=ft(ga(this.pdf,this.fontFaces),Zt.map(function(fr){return{family:fr,stretch:"normal",weight:ji,style:ki}}));this.pdf.setFont(Ar.ref.name,Ar.ref.style)}else{var Nr="";(ji==="bold"||parseInt(ji,10)>=700||ki==="bold")&&(Nr="bold"),ki==="italic"&&(Nr+="italic"),Nr.length===0&&(Nr="normal");for(var tn="",pn={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},St=0;St<Zt.length;St++){if(this.pdf.internal.getFont(Zt[St],Nr,{noFallback:!0,disableWarning:!0})!==void 0){tn=Zt[St];break}if(Nr==="bolditalic"&&this.pdf.internal.getFont(Zt[St],"bold",{noFallback:!0,disableWarning:!0})!==void 0)tn=Zt[St],Nr="bold";else if(this.pdf.internal.getFont(Zt[St],"normal",{noFallback:!0,disableWarning:!0})!==void 0){tn=Zt[St],Nr="normal";break}}if(tn===""){for(var cr=0;cr<Zt.length;cr++)if(pn[Zt[cr]]){tn=pn[Zt[cr]];break}}tn=tn===""?"Times":tn,this.pdf.setFont(tn,Nr)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Ei){this.ctx.globalCompositeOperation=Ei}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Ei){this.ctx.globalAlpha=Ei}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Ei){this.ctx.lineDashOffset=Ei,ei.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Ei){this.ctx.lineDash=Ei,ei.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Ei){this.ctx.ignoreClearRect=Boolean(Ei)}})};_r.prototype.setLineDash=function(Zr){this.lineDash=Zr},_r.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},_r.prototype.fill=function(){un.call(this,"fill",!1)},_r.prototype.stroke=function(){un.call(this,"stroke",!1)},_r.prototype.beginPath=function(){this.path=[{type:"begin"}]},_r.prototype.moveTo=function(Zr,br){if(isNaN(Zr)||isNaN(br))throw f.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var dn=this.ctx.transform.applyToPoint(new qe(Zr,br));this.path.push({type:"mt",x:dn.x,y:dn.y}),this.ctx.lastPoint=new qe(Zr,br)},_r.prototype.closePath=function(){var Zr=new qe(0,0),br=0;for(br=this.path.length-1;br!==-1;br--)if(this.path[br].type==="begin"&&T()(this.path[br+1])==="object"&&typeof this.path[br+1].x=="number"){Zr=new qe(this.path[br+1].x,this.path[br+1].y),this.path.push({type:"lt",x:Zr.x,y:Zr.y});break}T()(this.path[br+2])==="object"&&typeof this.path[br+2].x=="number"&&this.path.push(JSON.parse(JSON.stringify(this.path[br+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new qe(Zr.x,Zr.y)},_r.prototype.lineTo=function(Zr,br){if(isNaN(Zr)||isNaN(br))throw f.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var dn=this.ctx.transform.applyToPoint(new qe(Zr,br));this.path.push({type:"lt",x:dn.x,y:dn.y}),this.ctx.lastPoint=new qe(dn.x,dn.y)},_r.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),un.call(this,null,!0)},_r.prototype.quadraticCurveTo=function(Zr,br,dn,Ln){if(isNaN(dn)||isNaN(Ln)||isNaN(Zr)||isNaN(br))throw f.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Fn=this.ctx.transform.applyToPoint(new qe(dn,Ln)),zn=this.ctx.transform.applyToPoint(new qe(Zr,br));this.path.push({type:"qct",x1:zn.x,y1:zn.y,x:Fn.x,y:Fn.y}),this.ctx.lastPoint=new qe(Fn.x,Fn.y)},_r.prototype.bezierCurveTo=function(Zr,br,dn,Ln,Fn,zn){if(isNaN(Fn)||isNaN(zn)||isNaN(Zr)||isNaN(br)||isNaN(dn)||isNaN(Ln))throw f.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ui=this.ctx.transform.applyToPoint(new qe(Fn,zn)),ii=this.ctx.transform.applyToPoint(new qe(Zr,br)),qn=this.ctx.transform.applyToPoint(new qe(dn,Ln));this.path.push({type:"bct",x1:ii.x,y1:ii.y,x2:qn.x,y2:qn.y,x:ui.x,y:ui.y}),this.ctx.lastPoint=new qe(ui.x,ui.y)},_r.prototype.arc=function(Zr,br,dn,Ln,Fn,zn){if(isNaN(Zr)||isNaN(br)||isNaN(dn)||isNaN(Ln)||isNaN(Fn))throw f.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(zn=Boolean(zn),!this.ctx.transform.isIdentity){var ui=this.ctx.transform.applyToPoint(new qe(Zr,br));Zr=ui.x,br=ui.y;var ii=this.ctx.transform.applyToPoint(new qe(0,dn)),qn=this.ctx.transform.applyToPoint(new qe(0,0));dn=Math.sqrt(Math.pow(ii.x-qn.x,2)+Math.pow(ii.y-qn.y,2))}Math.abs(Fn-Ln)>=2*Math.PI&&(Ln=0,Fn=2*Math.PI),this.path.push({type:"arc",x:Zr,y:br,radius:dn,startAngle:Ln,endAngle:Fn,counterclockwise:zn})},_r.prototype.arcTo=function(Zr,br,dn,Ln,Fn){throw new Error("arcTo not implemented.")},_r.prototype.rect=function(Zr,br,dn,Ln){if(isNaN(Zr)||isNaN(br)||isNaN(dn)||isNaN(Ln))throw f.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(Zr,br),this.lineTo(Zr+dn,br),this.lineTo(Zr+dn,br+Ln),this.lineTo(Zr,br+Ln),this.lineTo(Zr,br),this.lineTo(Zr+dn,br),this.lineTo(Zr,br)},_r.prototype.fillRect=function(Zr,br,dn,Ln){if(isNaN(Zr)||isNaN(br)||isNaN(dn)||isNaN(Ln))throw f.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!Bt.call(this)){var Fn={};this.lineCap!=="butt"&&(Fn.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Fn.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(Zr,br,dn,Ln),this.fill(),Fn.hasOwnProperty("lineCap")&&(this.lineCap=Fn.lineCap),Fn.hasOwnProperty("lineJoin")&&(this.lineJoin=Fn.lineJoin)}},_r.prototype.strokeRect=function(Zr,br,dn,Ln){if(isNaN(Zr)||isNaN(br)||isNaN(dn)||isNaN(Ln))throw f.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");gn.call(this)||(this.beginPath(),this.rect(Zr,br,dn,Ln),this.stroke())},_r.prototype.clearRect=function(Zr,br,dn,Ln){if(isNaN(Zr)||isNaN(br)||isNaN(dn)||isNaN(Ln))throw f.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(Zr,br,dn,Ln))},_r.prototype.save=function(Zr){Zr=typeof Zr!="boolean"||Zr;for(var br=this.pdf.internal.getCurrentPageInfo().pageNumber,dn=0;dn<this.pdf.internal.getNumberOfPages();dn++)this.pdf.setPage(dn+1),this.pdf.internal.out("q");if(this.pdf.setPage(br),Zr){this.ctx.fontSize=this.pdf.internal.getFontSize();var Ln=new kr(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Ln}},_r.prototype.restore=function(Zr){Zr=typeof Zr!="boolean"||Zr;for(var br=this.pdf.internal.getCurrentPageInfo().pageNumber,dn=0;dn<this.pdf.internal.getNumberOfPages();dn++)this.pdf.setPage(dn+1),this.pdf.internal.out("Q");this.pdf.setPage(br),Zr&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},_r.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Xr=function(br){var dn,Ln,Fn,zn;if(br.isCanvasGradient===!0&&(br=br.getColor()),!br)return{r:0,g:0,b:0,a:0,style:br};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(br))dn=0,Ln=0,Fn=0,zn=0;else{var ui=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(br);if(ui!==null)dn=parseInt(ui[1]),Ln=parseInt(ui[2]),Fn=parseInt(ui[3]),zn=1;else if((ui=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(br))!==null)dn=parseInt(ui[1]),Ln=parseInt(ui[2]),Fn=parseInt(ui[3]),zn=parseFloat(ui[4]);else{if(zn=1,typeof br=="string"&&br.charAt(0)!=="#"){var ii=new s(br);br=ii.ok?ii.toHex():"#000000"}br.length===4?(dn=br.substring(1,2),dn+=dn,Ln=br.substring(2,3),Ln+=Ln,Fn=br.substring(3,4),Fn+=Fn):(dn=br.substring(1,3),Ln=br.substring(3,5),Fn=br.substring(5,7)),dn=parseInt(dn,16),Ln=parseInt(Ln,16),Fn=parseInt(Fn,16)}}return{r:dn,g:Ln,b:Fn,a:zn,style:br}},Bt=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},gn=function(){return Boolean(this.ctx.isStrokeTransparent||this.globalAlpha==0)};_r.prototype.fillText=function(Zr,br,dn,Ln){if(isNaN(br)||isNaN(dn)||typeof Zr!="string")throw f.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Ln=isNaN(Ln)?void 0:Ln,!Bt.call(this)){var Fn=Kr(this.ctx.transform.rotation),zn=this.ctx.transform.scaleX;Lt.call(this,{text:Zr,x:br,y:dn,scale:zn,angle:Fn,align:this.textAlign,maxWidth:Ln})}},_r.prototype.strokeText=function(Zr,br,dn,Ln){if(isNaN(br)||isNaN(dn)||typeof Zr!="string")throw f.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!gn.call(this)){Ln=isNaN(Ln)?void 0:Ln;var Fn=Kr(this.ctx.transform.rotation),zn=this.ctx.transform.scaleX;Lt.call(this,{text:Zr,x:br,y:dn,scale:zn,renderingMode:"stroke",angle:Fn,align:this.textAlign,maxWidth:Ln})}},_r.prototype.measureText=function(Zr){if(typeof Zr!="string")throw f.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var br=this.pdf,dn=this.pdf.internal.scaleFactor,Ln=br.internal.getFontSize(),Fn=br.getStringUnitWidth(Zr)*Ln/br.internal.scaleFactor,zn=function(ii){var qn=(ii=ii||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return qn}}),this};return new zn({width:Fn*=Math.round(96*dn/72*1e4)/1e4})},_r.prototype.scale=function(Zr,br){if(isNaN(Zr)||isNaN(br))throw f.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var dn=new ht(Zr,0,0,br,0,0);this.ctx.transform=this.ctx.transform.multiply(dn)},_r.prototype.rotate=function(Zr){if(isNaN(Zr))throw f.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var br=new ht(Math.cos(Zr),Math.sin(Zr),-Math.sin(Zr),Math.cos(Zr),0,0);this.ctx.transform=this.ctx.transform.multiply(br)},_r.prototype.translate=function(Zr,br){if(isNaN(Zr)||isNaN(br))throw f.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var dn=new ht(1,0,0,1,Zr,br);this.ctx.transform=this.ctx.transform.multiply(dn)},_r.prototype.transform=function(Zr,br,dn,Ln,Fn,zn){if(isNaN(Zr)||isNaN(br)||isNaN(dn)||isNaN(Ln)||isNaN(Fn)||isNaN(zn))throw f.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ui=new ht(Zr,br,dn,Ln,Fn,zn);this.ctx.transform=this.ctx.transform.multiply(ui)},_r.prototype.setTransform=function(Zr,br,dn,Ln,Fn,zn){Zr=isNaN(Zr)?1:Zr,br=isNaN(br)?0:br,dn=isNaN(dn)?0:dn,Ln=isNaN(Ln)?1:Ln,Fn=isNaN(Fn)?0:Fn,zn=isNaN(zn)?0:zn,this.ctx.transform=new ht(Zr,br,dn,Ln,Fn,zn)};var hr=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};_r.prototype.drawImage=function(Zr,br,dn,Ln,Fn,zn,ui,ii,qn){var Li=this.pdf.getImageProperties(Zr),zi=1,Ri=1,ga=1,oi=1;Ln!==void 0&&ii!==void 0&&(ga=ii/Ln,oi=qn/Fn,zi=Li.width/Ln*ii/Ln,Ri=Li.height/Fn*qn/Fn),zn===void 0&&(zn=br,ui=dn,br=0,dn=0),Ln!==void 0&&ii===void 0&&(ii=Ln,qn=Fn),Ln===void 0&&ii===void 0&&(ii=Li.width,qn=Li.height);for(var hn,Ei=this.ctx.transform.decompose(),Hi=Kr(Ei.rotate.shx),ki=new ht,ji=(ki=(ki=(ki=ki.multiply(Ei.translate)).multiply(Ei.skew)).multiply(Ei.scale)).applyToRectangle(new yt(zn-br*ga,ui-dn*oi,Ln*zi,Fn*Ri)),dr=vn.call(this,ji),sr=[],cn=0;cn<dr.length;cn+=1)sr.indexOf(dr[cn])===-1&&sr.push(dr[cn]);if(jr(sr),this.autoPaging)for(var Zt=sr[0],Ar=sr[sr.length-1],Nr=Zt;Nr<Ar+1;Nr++){this.pdf.setPage(Nr);var tn=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],pn=Nr===1?this.posY+this.margin[0]:this.margin[0],St=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],cr=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],fr=Nr===1?0:St+(Nr-2)*cr;if(this.ctx.clip_path.length!==0){var Br=this.path;hn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Dt(hn,this.posX+this.margin[3],-fr+pn+this.ctx.prevPageLastElemOffset),Hr.call(this,"fill",!0),this.path=Br}var $r=JSON.parse(JSON.stringify(ji));$r=Dt([$r],this.posX+this.margin[3],-fr+pn+this.ctx.prevPageLastElemOffset)[0];var wn=(Nr>Zt||Nr<Ar)&&hr.call(this);wn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],tn,cr,null).clip().discardPath()),this.pdf.addImage(Zr,"JPEG",$r.x,$r.y,$r.w,$r.h,null,null,Hi),wn&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(Zr,"JPEG",ji.x,ji.y,ji.w,ji.h,null,null,Hi)};var vn=function(br,dn,Ln){var Fn=[];dn=dn||this.pdf.internal.pageSize.width,Ln=Ln||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var zn=this.posY+this.ctx.prevPageLastElemOffset;switch(br.type){default:case"mt":case"lt":Fn.push(Math.floor((br.y+zn)/Ln)+1);break;case"arc":Fn.push(Math.floor((br.y+zn-br.radius)/Ln)+1),Fn.push(Math.floor((br.y+zn+br.radius)/Ln)+1);break;case"qct":var ui=jn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,br.x1,br.y1,br.x,br.y);Fn.push(Math.floor((ui.y+zn)/Ln)+1),Fn.push(Math.floor((ui.y+ui.h+zn)/Ln)+1);break;case"bct":var ii=Nn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,br.x1,br.y1,br.x2,br.y2,br.x,br.y);Fn.push(Math.floor((ii.y+zn)/Ln)+1),Fn.push(Math.floor((ii.y+ii.h+zn)/Ln)+1);break;case"rect":Fn.push(Math.floor((br.y+zn)/Ln)+1),Fn.push(Math.floor((br.y+br.h+zn)/Ln)+1)}for(var qn=0;qn<Fn.length;qn+=1)for(;this.pdf.internal.getNumberOfPages()<Fn[qn];)en.call(this);return Fn},en=function(){var br=this.fillStyle,dn=this.strokeStyle,Ln=this.font,Fn=this.lineCap,zn=this.lineWidth,ui=this.lineJoin;this.pdf.addPage(),this.fillStyle=br,this.strokeStyle=dn,this.font=Ln,this.lineCap=Fn,this.lineWidth=zn,this.lineJoin=ui},Dt=function(br,dn,Ln){for(var Fn=0;Fn<br.length;Fn++)switch(br[Fn].type){case"bct":br[Fn].x2+=dn,br[Fn].y2+=Ln;case"qct":br[Fn].x1+=dn,br[Fn].y1+=Ln;case"mt":case"lt":case"arc":default:br[Fn].x+=dn,br[Fn].y+=Ln}return br},jr=function(br){return br.sort(function(dn,Ln){return dn-Ln})},un=function(br,dn){for(var Ln,Fn,zn=this.fillStyle,ui=this.strokeStyle,ii=this.lineCap,qn=this.lineWidth,Li=Math.abs(qn*this.ctx.transform.scaleX),zi=this.lineJoin,Ri=JSON.parse(JSON.stringify(this.path)),ga=JSON.parse(JSON.stringify(this.path)),oi=[],hn=0;hn<ga.length;hn++)if(ga[hn].x!==void 0)for(var Ei=vn.call(this,ga[hn]),Hi=0;Hi<Ei.length;Hi+=1)oi.indexOf(Ei[Hi])===-1&&oi.push(Ei[Hi]);for(var ki=0;ki<oi.length;ki++)for(;this.pdf.internal.getNumberOfPages()<oi[ki];)en.call(this);if(jr(oi),this.autoPaging)for(var ji=oi[0],dr=oi[oi.length-1],sr=ji;sr<dr+1;sr++){this.pdf.setPage(sr),this.fillStyle=zn,this.strokeStyle=ui,this.lineCap=ii,this.lineWidth=Li,this.lineJoin=zi;var cn=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Zt=sr===1?this.posY+this.margin[0]:this.margin[0],Ar=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Nr=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],tn=sr===1?0:Ar+(sr-2)*Nr;if(this.ctx.clip_path.length!==0){var pn=this.path;Ln=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Dt(Ln,this.posX+this.margin[3],-tn+Zt+this.ctx.prevPageLastElemOffset),Hr.call(this,br,!0),this.path=pn}if(Fn=JSON.parse(JSON.stringify(Ri)),this.path=Dt(Fn,this.posX+this.margin[3],-tn+Zt+this.ctx.prevPageLastElemOffset),dn===!1||sr===0){var St=(sr>ji||sr<dr)&&hr.call(this);St&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],cn,Nr,null).clip().discardPath()),Hr.call(this,br,dn),St&&this.pdf.restoreGraphicsState()}this.lineWidth=qn}else this.lineWidth=Li,Hr.call(this,br,dn),this.lineWidth=qn;this.path=Ri},Hr=function(br,dn){if((br!=="stroke"||dn||!gn.call(this))&&(br==="stroke"||dn||!Bt.call(this))){for(var Ln,Fn,zn=[],ui=this.path,ii=0;ii<ui.length;ii++){var qn=ui[ii];switch(qn.type){case"begin":zn.push({begin:!0});break;case"close":zn.push({close:!0});break;case"mt":zn.push({start:qn,deltas:[],abs:[]});break;case"lt":var Li=zn.length;if(!isNaN(ui[ii-1].x)&&(Ln=[qn.x-ui[ii-1].x,qn.y-ui[ii-1].y],Li>0)){for(;Li>=0;Li--)if(zn[Li-1].close!==!0&&zn[Li-1].begin!==!0){zn[Li-1].deltas.push(Ln),zn[Li-1].abs.push(qn);break}}break;case"bct":Ln=[qn.x1-ui[ii-1].x,qn.y1-ui[ii-1].y,qn.x2-ui[ii-1].x,qn.y2-ui[ii-1].y,qn.x-ui[ii-1].x,qn.y-ui[ii-1].y],zn[zn.length-1].deltas.push(Ln);break;case"qct":var zi=ui[ii-1].x+2/3*(qn.x1-ui[ii-1].x),Ri=ui[ii-1].y+2/3*(qn.y1-ui[ii-1].y),ga=qn.x+2/3*(qn.x1-qn.x),oi=qn.y+2/3*(qn.y1-qn.y),hn=qn.x,Ei=qn.y;Ln=[zi-ui[ii-1].x,Ri-ui[ii-1].y,ga-ui[ii-1].x,oi-ui[ii-1].y,hn-ui[ii-1].x,Ei-ui[ii-1].y],zn[zn.length-1].deltas.push(Ln);break;case"arc":zn.push({deltas:[],abs:[],arc:!0}),Array.isArray(zn[zn.length-1].abs)&&zn[zn.length-1].abs.push(qn)}}Fn=dn?null:br==="stroke"?"stroke":"fill";for(var Hi=0;Hi<zn.length;Hi++){if(zn[Hi].arc){for(var ki=zn[Hi].abs,ji=0;ji<ki.length;ji++){var dr=ki[ji];dr.type==="arc"?fn.call(this,dr.x,dr.y,dr.radius,dr.startAngle,dr.endAngle,dr.counterclockwise,void 0,dn):Qt.call(this,dr.x,dr.y)}zt.call(this,Fn),this.pdf.internal.out("h")}if(!zn[Hi].arc&&zn[Hi].close!==!0&&zn[Hi].begin!==!0){var sr=zn[Hi].start.x,cn=zn[Hi].start.y;It.call(this,zn[Hi].deltas,sr,cn)}}Fn&&zt.call(this,Fn),dn&&Dr.call(this)}},Wt=function(br){var dn=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Ln=dn*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return br-Ln;case"top":return br+dn-Ln;case"hanging":return br+dn-2*Ln;case"middle":return br+dn/2-Ln;case"ideographic":return br;case"alphabetic":default:return br}},wr=function(br){return br+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};_r.prototype.createLinearGradient=function(){var Zr=function(){};return Zr.colorStops=[],Zr.addColorStop=function(br,dn){this.colorStops.push([br,dn])},Zr.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},Zr.isCanvasGradient=!0,Zr},_r.prototype.createPattern=function(){return this.createLinearGradient()},_r.prototype.createRadialGradient=function(){return this.createLinearGradient()};var fn=function(br,dn,Ln,Fn,zn,ui,ii,qn){for(var Li=Cr.call(this,Ln,Fn,zn,ui),zi=0;zi<Li.length;zi++){var Ri=Li[zi];zi===0&&ir.call(this,Ri.x1+br,Ri.y1+dn),or.call(this,br,dn,Ri.x2,Ri.y2,Ri.x3,Ri.y3,Ri.x4,Ri.y4)}qn?Dr.call(this):zt.call(this,ii)},zt=function(br){switch(br){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Dr=function(){this.pdf.clip(),this.pdf.discardPath()},ir=function(br,dn){this.pdf.internal.out(Ne(br)+" "+Ue(dn)+" m")},Lt=function(br){var dn;switch(br.align){case"right":case"end":dn="right";break;case"center":dn="center";break;case"left":case"start":default:dn="left"}var Ln=this.pdf.getTextDimensions(br.text),Fn=Wt.call(this,br.y),zn=wr.call(this,Fn)-Ln.h,ui=this.ctx.transform.applyToPoint(new qe(br.x,Fn)),ii=this.ctx.transform.decompose(),qn=new ht;qn=(qn=(qn=qn.multiply(ii.translate)).multiply(ii.skew)).multiply(ii.scale);for(var Li,zi,Ri,ga=this.ctx.transform.applyToRectangle(new yt(br.x,Fn,Ln.w,Ln.h)),oi=qn.applyToRectangle(new yt(br.x,zn,Ln.w,Ln.h)),hn=vn.call(this,oi),Ei=[],Hi=0;Hi<hn.length;Hi+=1)Ei.indexOf(hn[Hi])===-1&&Ei.push(hn[Hi]);if(jr(Ei),this.autoPaging)for(var ki=Ei[0],ji=Ei[Ei.length-1],dr=ki;dr<ji+1;dr++){this.pdf.setPage(dr);var sr=dr===1?this.posY+this.margin[0]:this.margin[0],cn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Zt=this.pdf.internal.pageSize.height-this.margin[2],Ar=Zt-this.margin[0],Nr=this.pdf.internal.pageSize.width-this.margin[1],tn=Nr-this.margin[3],pn=dr===1?0:cn+(dr-2)*Ar;if(this.ctx.clip_path.length!==0){var St=this.path;Li=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Dt(Li,this.posX+this.margin[3],-1*pn+sr),Hr.call(this,"fill",!0),this.path=St}var cr=Dt([JSON.parse(JSON.stringify(oi))],this.posX+this.margin[3],-pn+sr+this.ctx.prevPageLastElemOffset)[0];br.scale>=.01&&(zi=this.pdf.internal.getFontSize(),this.pdf.setFontSize(zi*br.scale),Ri=this.lineWidth,this.lineWidth=Ri*br.scale);var fr=this.autoPaging!=="text";if(fr||cr.y+cr.h<=Zt){if(fr||cr.y>=sr&&cr.x<=Nr){var Br=fr?br.text:this.pdf.splitTextToSize(br.text,br.maxWidth||Nr-cr.x)[0],$r=Dt([JSON.parse(JSON.stringify(ga))],this.posX+this.margin[3],-pn+sr+this.ctx.prevPageLastElemOffset)[0],wn=fr&&(dr>ki||dr<ji)&&hr.call(this);wn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],tn,Ar,null).clip().discardPath()),this.pdf.text(Br,$r.x,$r.y,{angle:br.angle,align:dn,renderingMode:br.renderingMode}),wn&&this.pdf.restoreGraphicsState()}}else cr.y<Zt&&(this.ctx.prevPageLastElemOffset+=Zt-cr.y);br.scale>=.01&&(this.pdf.setFontSize(zi),this.lineWidth=Ri)}else br.scale>=.01&&(zi=this.pdf.internal.getFontSize(),this.pdf.setFontSize(zi*br.scale),Ri=this.lineWidth,this.lineWidth=Ri*br.scale),this.pdf.text(br.text,ui.x+this.posX,ui.y+this.posY,{angle:br.angle,align:dn,renderingMode:br.renderingMode,maxWidth:br.maxWidth}),br.scale>=.01&&(this.pdf.setFontSize(zi),this.lineWidth=Ri)},Qt=function(br,dn,Ln,Fn){Ln=Ln||0,Fn=Fn||0,this.pdf.internal.out(Ne(br+Ln)+" "+Ue(dn+Fn)+" l")},It=function(br,dn,Ln){return this.pdf.lines(br,dn,Ln,null,null)},or=function(br,dn,Ln,Fn,zn,ui,ii,qn){this.pdf.internal.out([be(Qe(Ln+br)),be(Xe(Fn+dn)),be(Qe(zn+br)),be(Xe(ui+dn)),be(Qe(ii+br)),be(Xe(qn+dn)),"c"].join(" "))},Cr=function(br,dn,Ln,Fn){for(var zn=2*Math.PI,ui=Math.PI/2;dn>Ln;)dn-=zn;var ii=Math.abs(Ln-dn);ii<zn&&Fn&&(ii=zn-ii);for(var qn=[],Li=Fn?-1:1,zi=dn;ii>1e-5;){var Ri=zi+Li*Math.min(ii,ui);qn.push(Er.call(this,br,zi,Ri)),ii-=Math.abs(Ri-zi),zi=Ri}return qn},Er=function(br,dn,Ln){var Fn=(Ln-dn)/2,zn=br*Math.cos(Fn),ui=br*Math.sin(Fn),ii=zn,qn=-ui,Li=ii*ii+qn*qn,zi=Li+ii*zn+qn*ui,Ri=4/3*(Math.sqrt(2*Li*zi)-zi)/(ii*ui-qn*zn),ga=ii-Ri*qn,oi=qn+Ri*ii,hn=ga,Ei=-oi,Hi=Fn+dn,ki=Math.cos(Hi),ji=Math.sin(Hi);return{x1:br*Math.cos(dn),y1:br*Math.sin(dn),x2:ga*ki-oi*ji,y2:ga*ji+oi*ki,x3:hn*ki-Ei*ji,y3:hn*ji+Ei*ki,x4:br*Math.cos(Ln),y4:br*Math.sin(Ln)}},Kr=function(br){return 180*br/Math.PI},jn=function(br,dn,Ln,Fn,zn,ui){var ii=br+.5*(Ln-br),qn=dn+.5*(Fn-dn),Li=zn+.5*(Ln-zn),zi=ui+.5*(Fn-ui),Ri=Math.min(br,zn,ii,Li),ga=Math.max(br,zn,ii,Li),oi=Math.min(dn,ui,qn,zi),hn=Math.max(dn,ui,qn,zi);return new yt(Ri,oi,ga-Ri,hn-oi)},Nn=function(br,dn,Ln,Fn,zn,ui,ii,qn){var Li,zi,Ri,ga,oi,hn,Ei,Hi,ki,ji,dr,sr,cn,Zt,Ar=Ln-br,Nr=Fn-dn,tn=zn-Ln,pn=ui-Fn,St=ii-zn,cr=qn-ui;for(zi=0;zi<41;zi++)ki=(Ei=(Ri=br+(Li=zi/40)*Ar)+Li*((oi=Ln+Li*tn)-Ri))+Li*(oi+Li*(zn+Li*St-oi)-Ei),ji=(Hi=(ga=dn+Li*Nr)+Li*((hn=Fn+Li*pn)-ga))+Li*(hn+Li*(ui+Li*cr-hn)-Hi),zi==0?(dr=ki,sr=ji,cn=ki,Zt=ji):(dr=Math.min(dr,ki),sr=Math.min(sr,ji),cn=Math.max(cn,ki),Zt=Math.max(Zt,ji));return new yt(Math.round(dr),Math.round(sr),Math.round(cn-dr),Math.round(Zt-sr))},ei=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var br,dn,Ln=(br=this.ctx.lineDash,dn=this.ctx.lineDashOffset,JSON.stringify({lineDash:br,lineDashOffset:dn}));this.prevLineDash!==Ln&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Ln)}}}(K.API),function(Ze){var be=function(qe){var yt,ht,Jt,kr,_r,Xr,Bt,gn,hr,vn;for(/[^\x00-\xFF]/.test(qe),ht=[],Jt=0,kr=(qe+=yt="\0\0\0\0".slice(qe.length%4||4)).length;kr>Jt;Jt+=4)(_r=(qe.charCodeAt(Jt)<<24)+(qe.charCodeAt(Jt+1)<<16)+(qe.charCodeAt(Jt+2)<<8)+qe.charCodeAt(Jt+3))!==0?(Xr=(_r=((_r=((_r=((_r=(_r-(vn=_r%85))/85)-(hr=_r%85))/85)-(gn=_r%85))/85)-(Bt=_r%85))/85)%85,ht.push(Xr+33,Bt+33,gn+33,hr+33,vn+33)):ht.push(122);return function(en,Dt){for(var jr=Dt;jr>0;jr--)en.pop()}(ht,yt.length),String.fromCharCode.apply(String,ht)+"~>"},Ne=function(qe){var yt,ht,Jt,kr,_r,Xr=String,Bt="length",gn=255,hr="charCodeAt",vn="slice",en="replace";for(qe[vn](-2),qe=qe[vn](0,-2)[en](/\s/g,"")[en]("z","!!!!!"),Jt=[],kr=0,_r=(qe+=yt="uuuuu"[vn](qe[Bt]%5||5))[Bt];_r>kr;kr+=5)ht=52200625*(qe[hr](kr)-33)+614125*(qe[hr](kr+1)-33)+7225*(qe[hr](kr+2)-33)+85*(qe[hr](kr+3)-33)+(qe[hr](kr+4)-33),Jt.push(gn&ht>>24,gn&ht>>16,gn&ht>>8,gn&ht);return function(Dt,jr){for(var un=jr;un>0;un--)Dt.pop()}(Jt,yt[Bt]),Xr.fromCharCode.apply(Xr,Jt)},Ue=function(qe){var yt=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((qe=qe.replace(/\s/g,"")).indexOf(">")!==-1&&(qe=qe.substr(0,qe.indexOf(">"))),qe.length%2&&(qe+="0"),yt.test(qe)===!1)return"";for(var ht="",Jt=0;Jt<qe.length;Jt+=2)ht+=String.fromCharCode("0x"+(qe[Jt]+qe[Jt+1]));return ht},Qe=function(qe){for(var yt=new Uint8Array(qe.length),ht=qe.length;ht--;)yt[ht]=qe.charCodeAt(ht);return qe=(yt=Object(v.b)(yt)).reduce(function(Jt,kr){return Jt+String.fromCharCode(kr)},"")};Ze.processDataByFilters=function(Xe,qe){var yt=0,ht=Xe||"",Jt=[];for(typeof(qe=qe||[])=="string"&&(qe=[qe]),yt=0;yt<qe.length;yt+=1)switch(qe[yt]){case"ASCII85Decode":case"/ASCII85Decode":ht=Ne(ht),Jt.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":ht=be(ht),Jt.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":ht=Ue(ht),Jt.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":ht=ht.split("").map(function(kr){return("0"+kr.charCodeAt().toString(16)).slice(-2)}).join("")+">",Jt.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":ht=Qe(ht),Jt.push("/FlateDecode");break;default:throw new Error('The filter: "'+qe[yt]+'" is not implemented')}return{data:ht,reverseChain:Jt.reverse().join(" ")}}}(K.API),function(Ze){Ze.loadFile=function(be,Ne,Ue){return function(Qe,Xe,qe){Xe=Xe!==!1,qe=typeof qe=="function"?qe:function(){};var yt=void 0;try{yt=function(ht,Jt,kr){var _r=new XMLHttpRequest,Xr=0,Bt=function(hr){var vn=hr.length,en=[],Dt=String.fromCharCode;for(Xr=0;Xr<vn;Xr+=1)en.push(Dt(255&hr.charCodeAt(Xr)));return en.join("")};if(_r.open("GET",ht,!Jt),_r.overrideMimeType("text/plain; charset=x-user-defined"),Jt===!1&&(_r.onload=function(){_r.status===200?kr(Bt(this.responseText)):kr(void 0)}),_r.send(null),Jt&&_r.status===200)return Bt(_r.responseText)}(Qe,Xe,qe)}catch(ht){}return yt}(be,Ne,Ue)},Ze.loadImageFile=Ze.loadFile}(K.API),function(Ze){function be(){return(S.html2canvas?Promise.resolve(S.html2canvas):Promise.resolve().then(d.t.bind(null,"wOnQ",7))).catch(function(qe){return Promise.reject(new Error("Could not load html2canvas: "+qe))}).then(function(qe){return qe.default?qe.default:qe})}function Ne(){return(S.DOMPurify?Promise.resolve(S.DOMPurify):d.e(240).then(d.t.bind(null,"qZ2Q",7))).catch(function(qe){return Promise.reject(new Error("Could not load dompurify: "+qe))}).then(function(qe){return qe.default?qe.default:qe})}var Ue=function(yt){var ht=T()(yt);return ht==="undefined"?"undefined":ht==="string"||yt instanceof String?"string":ht==="number"||yt instanceof Number?"number":ht==="function"||yt instanceof Function?"function":yt&&yt.constructor===Array?"array":yt&&yt.nodeType===1?"element":ht==="object"?"object":"unknown"},Qe=function(yt,ht){var Jt=document.createElement(yt);for(var kr in ht.className&&(Jt.className=ht.className),ht.innerHTML&&ht.dompurify&&(Jt.innerHTML=ht.dompurify.sanitize(ht.innerHTML)),ht.style)Jt.style[kr]=ht.style[kr];return Jt},Xe=function qe(yt){var ht=Object.assign(qe.convert(Promise.resolve()),JSON.parse(JSON.stringify(qe.template))),Jt=qe.convert(Promise.resolve(),ht);return Jt=(Jt=Jt.setProgress(1,qe,1,[qe])).set(yt)};(Xe.prototype=Object.create(Promise.prototype)).constructor=Xe,Xe.convert=function(qe,yt){return qe.__proto__=yt||Xe.prototype,qe},Xe.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},Xe.prototype.from=function(qe,yt){return this.then(function(){switch(yt=yt||function(ht){switch(Ue(ht)){case"string":return"string";case"element":return ht.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(qe)){case"string":return this.then(Ne).then(function(ht){return this.set({src:Qe("div",{innerHTML:qe,dompurify:ht})})});case"element":return this.set({src:qe});case"canvas":return this.set({canvas:qe});case"img":return this.set({img:qe});default:return this.error("Unknown source type.")}})},Xe.prototype.to=function(qe){switch(qe){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},Xe.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var qe={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},yt=function ht(Jt,kr){for(var _r=Jt.nodeType===3?document.createTextNode(Jt.nodeValue):Jt.cloneNode(!1),Xr=Jt.firstChild;Xr;Xr=Xr.nextSibling)kr!==!0&&Xr.nodeType===1&&Xr.nodeName==="SCRIPT"||_r.appendChild(ht(Xr,kr));return Jt.nodeType===1&&(Jt.nodeName==="CANVAS"?(_r.width=Jt.width,_r.height=Jt.height,_r.getContext("2d").drawImage(Jt,0,0)):Jt.nodeName!=="TEXTAREA"&&Jt.nodeName!=="SELECT"||(_r.value=Jt.value),_r.addEventListener("load",function(){_r.scrollTop=Jt.scrollTop,_r.scrollLeft=Jt.scrollLeft},!0)),_r}(this.prop.src,this.opt.html2canvas.javascriptEnabled);yt.tagName==="BODY"&&(qe.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=Qe("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=Qe("div",{className:"html2pdf__container",style:qe}),this.prop.container.appendChild(yt),this.prop.container.firstChild.appendChild(Qe("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},Xe.prototype.toCanvas=function(){var qe=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(qe).then(be).then(function(yt){var ht=Object.assign({},this.opt.html2canvas);return delete ht.onrendered,yt(this.prop.container,ht)}).then(function(yt){(this.opt.html2canvas.onrendered||function(){})(yt),this.prop.canvas=yt,document.body.removeChild(this.prop.overlay)})},Xe.prototype.toContext2d=function(){var qe=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(qe).then(be).then(function(yt){var ht=this.opt.jsPDF,Jt=this.opt.fontFaces,kr=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,_r=Object.assign({async:!0,allowTaint:!0,scale:kr,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete _r.onrendered,ht.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,ht.context2d.posX=this.opt.x,ht.context2d.posY=this.opt.y,ht.context2d.margin=this.opt.margin,ht.context2d.fontFaces=Jt,Jt)for(var Xr=0;Xr<Jt.length;++Xr){var Bt=Jt[Xr],gn=Bt.src.find(function(hr){return hr.format==="truetype"});gn&&ht.addFont(gn.url,Bt.ref.name,Bt.ref.style)}return _r.windowHeight=_r.windowHeight||0,_r.windowHeight=_r.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):_r.windowHeight,yt(this.prop.container,_r)}).then(function(yt){(this.opt.html2canvas.onrendered||function(){})(yt),this.prop.canvas=yt,document.body.removeChild(this.prop.overlay)})},Xe.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var qe=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=qe})},Xe.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},Xe.prototype.output=function(qe,yt,ht){return(ht=ht||"pdf").toLowerCase()==="img"||ht.toLowerCase()==="image"?this.outputImg(qe,yt):this.outputPdf(qe,yt)},Xe.prototype.outputPdf=function(qe,yt){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(qe,yt)})},Xe.prototype.outputImg=function(qe){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(qe){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+qe+'" is not supported.'}})},Xe.prototype.save=function(qe){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(qe?{filename:qe}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Xe.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},Xe.prototype.set=function(qe){if(Ue(qe)!=="object")return this;var yt=Object.keys(qe||{}).map(function(ht){if(ht in Xe.template.prop)return function(){this.prop[ht]=qe[ht]};switch(ht){case"margin":return this.setMargin.bind(this,qe.margin);case"jsPDF":return function(){return this.opt.jsPDF=qe.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,qe.pageSize);default:return function(){this.opt[ht]=qe[ht]}}},this);return this.then(function(){return this.thenList(yt)})},Xe.prototype.get=function(qe,yt){return this.then(function(){var ht=qe in Xe.template.prop?this.prop[qe]:this.opt[qe];return yt?yt(ht):ht})},Xe.prototype.setMargin=function(qe){return this.then(function(){switch(Ue(qe)){case"number":qe=[qe,qe,qe,qe];case"array":if(qe.length===2&&(qe=[qe[0],qe[1],qe[0],qe[1]]),qe.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=qe}).then(this.setPageSize)},Xe.prototype.setPageSize=function(qe){function yt(ht,Jt){return Math.floor(ht*Jt/72*96)}return this.then(function(){(qe=qe||K.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(qe.inner={width:qe.width-this.opt.margin[1]-this.opt.margin[3],height:qe.height-this.opt.margin[0]-this.opt.margin[2]},qe.inner.px={width:yt(qe.inner.width,qe.k),height:yt(qe.inner.height,qe.k)},qe.inner.ratio=qe.inner.height/qe.inner.width),this.prop.pageSize=qe})},Xe.prototype.setProgress=function(qe,yt,ht,Jt){return qe!=null&&(this.progress.val=qe),yt!=null&&(this.progress.state=yt),ht!=null&&(this.progress.n=ht),Jt!=null&&(this.progress.stack=Jt),this.progress.ratio=this.progress.val/this.progress.state,this},Xe.prototype.updateProgress=function(qe,yt,ht,Jt){return this.setProgress(qe?this.progress.val+qe:null,yt||null,ht?this.progress.n+ht:null,Jt?this.progress.stack.concat(Jt):null)},Xe.prototype.then=function(qe,yt){var ht=this;return this.thenCore(qe,yt,function(Jt,kr){return ht.updateProgress(null,null,1,[Jt]),Promise.prototype.then.call(this,function(_r){return ht.updateProgress(null,Jt),_r}).then(Jt,kr).then(function(_r){return ht.updateProgress(1),_r})})},Xe.prototype.thenCore=function(qe,yt,ht){ht=ht||Promise.prototype.then,qe&&(qe=qe.bind(this)),yt&&(yt=yt.bind(this));var Jt=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:Xe.convert(Object.assign({},this),Promise.prototype),kr=ht.call(Jt,qe,yt);return Xe.convert(kr,this.__proto__)},Xe.prototype.thenExternal=function(qe,yt){return Promise.prototype.then.call(this,qe,yt)},Xe.prototype.thenList=function(qe){var yt=this;return qe.forEach(function(ht){yt=yt.thenCore(ht)}),yt},Xe.prototype.catch=function(qe){qe&&(qe=qe.bind(this));var yt=Promise.prototype.catch.call(this,qe);return Xe.convert(yt,this)},Xe.prototype.catchExternal=function(qe){return Promise.prototype.catch.call(this,qe)},Xe.prototype.error=function(qe){return this.then(function(){throw new Error(qe)})},Xe.prototype.using=Xe.prototype.set,Xe.prototype.saveAs=Xe.prototype.save,Xe.prototype.export=Xe.prototype.output,Xe.prototype.run=Xe.prototype.then,K.getPageSize=function(qe,yt,ht){if(T()(qe)==="object"){var Jt=qe;qe=Jt.orientation,yt=Jt.unit||yt,ht=Jt.format||ht}yt=yt||"mm",ht=ht||"a4",qe=(""+(qe||"P")).toLowerCase();var kr,_r=(""+ht).toLowerCase(),Xr={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(yt){case"pt":kr=1;break;case"mm":kr=72/25.4;break;case"cm":kr=72/2.54;break;case"in":kr=72;break;case"px":kr=.75;break;case"pc":case"em":kr=12;break;case"ex":kr=6;break;default:throw"Invalid unit: "+yt}var Bt,gn=0,hr=0;if(Xr.hasOwnProperty(_r))gn=Xr[_r][1]/kr,hr=Xr[_r][0]/kr;else try{gn=ht[1],hr=ht[0]}catch(vn){throw new Error("Invalid format: "+ht)}if(qe==="p"||qe==="portrait")qe="p",hr>gn&&(Bt=hr,hr=gn,gn=Bt);else{if(qe!=="l"&&qe!=="landscape")throw"Invalid orientation: "+qe;qe="l",gn>hr&&(Bt=hr,hr=gn,gn=Bt)}return{width:hr,height:gn,unit:yt,k:kr,orientation:qe}},Ze.html=function(qe,yt){(yt=yt||{}).callback=yt.callback||function(){},yt.html2canvas=yt.html2canvas||{},yt.html2canvas.canvas=yt.html2canvas.canvas||this.canvas,yt.jsPDF=yt.jsPDF||this,yt.fontFaces=yt.fontFaces?yt.fontFaces.map(nn):null;var ht=new Xe(yt);return yt.worker?ht:ht.from(qe).doCallback()}}(K.API),K.API.addJS=function(Ze){return Rn=Ze,this.internal.events.subscribe("postPutResources",function(){Un=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Un+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),wi=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Rn+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Un!==void 0&&wi!==void 0&&this.internal.out("/Names <</JavaScript "+Un+" 0 R>>")}),this},function(Ze){var be;Ze.events.push(["postPutResources",function(){var Ne=this,Ue=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var Qe=Ne.outline.render().split(/\r\n/),Xe=0;Xe<Qe.length;Xe++){var qe=Qe[Xe],yt=Ue.exec(qe);if(yt!=null){var ht=yt[1];Ne.internal.newObjectDeferredBegin(ht,!1)}Ne.internal.write(qe)}if(this.outline.createNamedDestinations){var Jt=this.internal.pages.length,kr=[];for(Xe=0;Xe<Jt;Xe++){var _r=Ne.internal.newObject();kr.push(_r);var Xr=Ne.internal.getPageInfo(Xe+1);Ne.internal.write("<< /D["+Xr.objId+" 0 R /XYZ null null null]>> endobj")}var Bt=Ne.internal.newObject();for(Ne.internal.write("<< /Names [ "),Xe=0;Xe<kr.length;Xe++)Ne.internal.write("(page_"+(Xe+1)+")"+kr[Xe]+" 0 R");Ne.internal.write(" ] >>","endobj"),be=Ne.internal.newObject(),Ne.internal.write("<< /Dests "+Bt+" 0 R"),Ne.internal.write(">>","endobj")}}]),Ze.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+be+" 0 R"))}]),Ze.events.push(["initialized",function(){var Ne=this;Ne.outline={createNamedDestinations:!1,root:{children:[]}},Ne.outline.add=function(Ue,Qe,Xe){var qe={title:Qe,options:Xe,children:[]};return Ue==null&&(Ue=this.root),Ue.children.push(qe),qe},Ne.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=Ne,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},Ne.outline.genIds_r=function(Ue){Ue.id=Ne.internal.newObjectDeferred();for(var Qe=0;Qe<Ue.children.length;Qe++)this.genIds_r(Ue.children[Qe])},Ne.outline.renderRoot=function(Ue){this.objStart(Ue),this.line("/Type /Outlines"),Ue.children.length>0&&(this.line("/First "+this.makeRef(Ue.children[0])),this.line("/Last "+this.makeRef(Ue.children[Ue.children.length-1]))),this.line("/Count "+this.count_r({count:0},Ue)),this.objEnd()},Ne.outline.renderItems=function(Ue){for(var Qe=this.ctx.pdf.internal.getVerticalCoordinateString,Xe=0;Xe<Ue.children.length;Xe++){var qe=Ue.children[Xe];this.objStart(qe),this.line("/Title "+this.makeString(qe.title)),this.line("/Parent "+this.makeRef(Ue)),Xe>0&&this.line("/Prev "+this.makeRef(Ue.children[Xe-1])),Xe<Ue.children.length-1&&this.line("/Next "+this.makeRef(Ue.children[Xe+1])),qe.children.length>0&&(this.line("/First "+this.makeRef(qe.children[0])),this.line("/Last "+this.makeRef(qe.children[qe.children.length-1])));var yt=this.count=this.count_r({count:0},qe);if(yt>0&&this.line("/Count "+yt),qe.options&&qe.options.pageNumber){var ht=Ne.internal.getPageInfo(qe.options.pageNumber);this.line("/Dest ["+ht.objId+" 0 R /XYZ 0 "+Qe(0)+" 0]")}this.objEnd()}for(var Jt=0;Jt<Ue.children.length;Jt++)this.renderItems(Ue.children[Jt])},Ne.outline.line=function(Ue){this.ctx.val+=Ue+`\r
|
|
|
`},Ne.outline.makeRef=function(Ue){return Ue.id+" 0 R"},Ne.outline.makeString=function(Ue){return"("+Ne.internal.pdfEscape(Ue)+")"},Ne.outline.objStart=function(Ue){this.ctx.val+=`\r
|
|
|
`+Ue.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},Ne.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},Ne.outline.count_r=function(Ue,Qe){for(var Xe=0;Xe<Qe.children.length;Xe++)Ue.count++,this.count_r(Ue,Qe.children[Xe]);return Ue.count}}])}(K.API),function(Ze){var be=[192,193,194,195,196,197,198,199];Ze.processJPEG=function(Ne,Ue,Qe,Xe,qe,yt){var ht,Jt=this.decode.DCT_DECODE,kr=null;if(typeof Ne=="string"||this.__addimage__.isArrayBuffer(Ne)||this.__addimage__.isArrayBufferView(Ne)){switch(Ne=qe||Ne,Ne=this.__addimage__.isArrayBuffer(Ne)?new Uint8Array(Ne):Ne,(ht=function(_r){for(var Xr,Bt=256*_r.charCodeAt(4)+_r.charCodeAt(5),gn=_r.length,hr={width:0,height:0,numcomponents:1},vn=4;vn<gn;vn+=2){if(vn+=Bt,be.indexOf(_r.charCodeAt(vn+1))!==-1){Xr=256*_r.charCodeAt(vn+5)+_r.charCodeAt(vn+6),hr={width:256*_r.charCodeAt(vn+7)+_r.charCodeAt(vn+8),height:Xr,numcomponents:_r.charCodeAt(vn+9)};break}Bt=256*_r.charCodeAt(vn+2)+_r.charCodeAt(vn+3)}return hr}(Ne=this.__addimage__.isArrayBufferView(Ne)?this.__addimage__.arrayBufferToBinaryString(Ne):Ne)).numcomponents){case 1:yt=this.color_spaces.DEVICE_GRAY;break;case 4:yt=this.color_spaces.DEVICE_CMYK;break;case 3:yt=this.color_spaces.DEVICE_RGB}kr={data:Ne,width:ht.width,height:ht.height,colorSpace:yt,bitsPerComponent:8,filter:Jt,index:Ue,alias:Qe}}return kr}}(K.API);var Vn,Gt,st,ue,Ee,je=function(){var Ze,be,Ne;function Ue(Xe){var qe,yt,ht,Jt,kr,_r,Xr,Bt,gn,hr,vn,en,Dt,jr;for(this.data=Xe,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},_r=null;;){switch(qe=this.readUInt32(),gn=function(){var un,Hr;for(Hr=[],un=0;un<4;++un)Hr.push(String.fromCharCode(this.data[this.pos++]));return Hr}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(qe);break;case"fcTL":_r&&this.animation.frames.push(_r),this.pos+=4,_r={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},kr=this.readUInt16(),Jt=this.readUInt16()||100,_r.delay=1e3*kr/Jt,_r.disposeOp=this.data[this.pos++],_r.blendOp=this.data[this.pos++],_r.data=[];break;case"IDAT":case"fdAT":for(gn==="fdAT"&&(this.pos+=4,qe-=4),Xe=(_r!=null?_r.data:void 0)||this.imgData,en=0;0<=qe?en<qe:en>qe;0<=qe?++en:--en)Xe.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(ht=this.palette.length/3,this.transparency.indexed=this.read(qe),this.transparency.indexed.length>ht)throw new Error("More transparent colors than palette size");if((hr=ht-this.transparency.indexed.length)>0)for(Dt=0;0<=hr?Dt<hr:Dt>hr;0<=hr?++Dt:--Dt)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(qe)[0];break;case 2:this.transparency.rgb=this.read(qe)}break;case"tEXt":Xr=(vn=this.read(qe)).indexOf(0),Bt=String.fromCharCode.apply(String,vn.slice(0,Xr)),this.text[Bt]=String.fromCharCode.apply(String,vn.slice(Xr+1));break;case"IEND":return _r&&this.animation.frames.push(_r),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(jr=this.colorType)===4||jr===6,yt=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*yt,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=qe}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}Ue.prototype.read=function(Xe){var qe,yt;for(yt=[],qe=0;0<=Xe?qe<Xe:qe>Xe;0<=Xe?++qe:--qe)yt.push(this.data[this.pos++]);return yt},Ue.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},Ue.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},Ue.prototype.decodePixels=function(Xe){var qe=this.pixelBitlength/8,yt=new Uint8Array(this.width*this.height*qe),ht=0,Jt=this;if(Xe==null&&(Xe=this.imgData),Xe.length===0)return new Uint8Array(0);function kr(_r,Xr,Bt,gn){var hr,vn,en,Dt,jr,un,Hr,Wt,wr,fn,zt,Dr,ir,Lt,Qt,It,or,Cr,Er,Kr,jn,Nn=Math.ceil((Jt.width-_r)/Bt),ei=Math.ceil((Jt.height-Xr)/gn),Zr=Jt.width==Nn&&Jt.height==ei;for(Lt=qe*Nn,Dr=Zr?yt:new Uint8Array(Lt*ei),un=Xe.length,ir=0,vn=0;ir<ei&&ht<un;){switch(Xe[ht++]){case 0:for(Dt=or=0;or<Lt;Dt=or+=1)Dr[vn++]=Xe[ht++];break;case 1:for(Dt=Cr=0;Cr<Lt;Dt=Cr+=1)hr=Xe[ht++],jr=Dt<qe?0:Dr[vn-qe],Dr[vn++]=(hr+jr)%256;break;case 2:for(Dt=Er=0;Er<Lt;Dt=Er+=1)hr=Xe[ht++],en=(Dt-Dt%qe)/qe,Qt=ir&&Dr[(ir-1)*Lt+en*qe+Dt%qe],Dr[vn++]=(Qt+hr)%256;break;case 3:for(Dt=Kr=0;Kr<Lt;Dt=Kr+=1)hr=Xe[ht++],en=(Dt-Dt%qe)/qe,jr=Dt<qe?0:Dr[vn-qe],Qt=ir&&Dr[(ir-1)*Lt+en*qe+Dt%qe],Dr[vn++]=(hr+Math.floor((jr+Qt)/2))%256;break;case 4:for(Dt=jn=0;jn<Lt;Dt=jn+=1)hr=Xe[ht++],en=(Dt-Dt%qe)/qe,jr=Dt<qe?0:Dr[vn-qe],ir===0?Qt=It=0:(Qt=Dr[(ir-1)*Lt+en*qe+Dt%qe],It=en&&Dr[(ir-1)*Lt+(en-1)*qe+Dt%qe]),Hr=jr+Qt-It,Wt=Math.abs(Hr-jr),fn=Math.abs(Hr-Qt),zt=Math.abs(Hr-It),wr=Wt<=fn&&Wt<=zt?jr:fn<=zt?Qt:It,Dr[vn++]=(hr+wr)%256;break;default:throw new Error("Invalid filter algorithm: "+Xe[ht-1])}if(!Zr){var br=((Xr+ir*gn)*Jt.width+_r)*qe,dn=ir*Lt;for(Dt=0;Dt<Nn;Dt+=1){for(var Ln=0;Ln<qe;Ln+=1)yt[br++]=Dr[dn++];br+=(Bt-1)*qe}}ir++}}return Xe=Object(v.a)(Xe),Jt.interlaceMethod==1?(kr(0,0,8,8),kr(4,0,8,8),kr(0,4,4,8),kr(2,0,4,4),kr(0,2,2,4),kr(1,0,2,2),kr(0,1,1,2)):kr(0,0,1,1),yt},Ue.prototype.decodePalette=function(){var Xe,qe,yt,ht,Jt,kr,_r,Xr,Bt;for(yt=this.palette,kr=this.transparency.indexed||[],Jt=new Uint8Array((kr.length||0)+yt.length),ht=0,Xe=0,qe=_r=0,Xr=yt.length;_r<Xr;qe=_r+=3)Jt[ht++]=yt[qe],Jt[ht++]=yt[qe+1],Jt[ht++]=yt[qe+2],Jt[ht++]=(Bt=kr[Xe++])!=null?Bt:255;return Jt},Ue.prototype.copyToImageData=function(Xe,qe){var yt,ht,Jt,kr,_r,Xr,Bt,gn,hr,vn,en;if(ht=this.colors,hr=null,yt=this.hasAlphaChannel,this.palette.length&&(hr=(en=this._decodedPalette)!=null?en:this._decodedPalette=this.decodePalette(),ht=4,yt=!0),gn=(Jt=Xe.data||Xe).length,_r=hr||qe,kr=Xr=0,ht===1)for(;kr<gn;)Bt=hr?4*qe[kr/4]:Xr,vn=_r[Bt++],Jt[kr++]=vn,Jt[kr++]=vn,Jt[kr++]=vn,Jt[kr++]=yt?_r[Bt++]:255,Xr=Bt;else for(;kr<gn;)Bt=hr?4*qe[kr/4]:Xr,Jt[kr++]=_r[Bt++],Jt[kr++]=_r[Bt++],Jt[kr++]=_r[Bt++],Jt[kr++]=yt?_r[Bt++]:255,Xr=Bt},Ue.prototype.decode=function(){var Xe;return Xe=new Uint8Array(this.width*this.height*4),this.copyToImageData(Xe,this.decodePixels()),Xe};var Qe=function(){if(Object.prototype.toString.call(S)==="[object Window]"){try{be=S.document.createElement("canvas"),Ne=be.getContext("2d")}catch(qe){return!1}return!0}return!1};return Qe(),Ze=function(qe){var yt;if(Qe()===!0)return Ne.width=qe.width,Ne.height=qe.height,Ne.clearRect(0,0,qe.width,qe.height),Ne.putImageData(qe,0,0),(yt=new Image).src=be.toDataURL(),yt;throw new Error("This method requires a Browser with Canvas-capability.")},Ue.prototype.decodeFrames=function(Xe){var qe,yt,ht,Jt,kr,_r,Xr,Bt;if(this.animation){for(Bt=[],yt=kr=0,_r=(Xr=this.animation.frames).length;kr<_r;yt=++kr)qe=Xr[yt],ht=Xe.createImageData(qe.width,qe.height),Jt=this.decodePixels(new Uint8Array(qe.data)),this.copyToImageData(ht,Jt),qe.imageData=ht,Bt.push(qe.image=Ze(ht));return Bt}},Ue.prototype.renderFrame=function(Xe,qe){var yt,ht,Jt;return yt=(ht=this.animation.frames)[qe],Jt=ht[qe-1],qe===0&&Xe.clearRect(0,0,this.width,this.height),(Jt!=null?Jt.disposeOp:void 0)===1?Xe.clearRect(Jt.xOffset,Jt.yOffset,Jt.width,Jt.height):(Jt!=null?Jt.disposeOp:void 0)===2&&Xe.putImageData(Jt.imageData,Jt.xOffset,Jt.yOffset),yt.blendOp===0&&Xe.clearRect(yt.xOffset,yt.yOffset,yt.width,yt.height),Xe.drawImage(yt.image,yt.xOffset,yt.yOffset)},Ue.prototype.animate=function(Xe){var qe,yt,ht,Jt,kr,_r,Xr=this;return yt=0,_r=this.animation,Jt=_r.numFrames,ht=_r.frames,kr=_r.numPlays,(qe=function(){var gn,hr;if(gn=yt++%Jt,hr=ht[gn],Xr.renderFrame(Xe,gn),Jt>1&&yt/Jt<kr)return Xr.animation._timeout=setTimeout(qe,hr.delay)})()},Ue.prototype.stopAnimation=function(){var Xe;return clearTimeout((Xe=this.animation)!=null?Xe._timeout:void 0)},Ue.prototype.render=function(Xe){var qe,yt;return Xe._png&&Xe._png.stopAnimation(),Xe._png=this,Xe.width=this.width,Xe.height=this.height,qe=Xe.getContext("2d"),this.animation?(this.decodeFrames(qe),this.animate(qe)):(yt=qe.createImageData(this.width,this.height),this.copyToImageData(yt,this.decodePixels()),qe.putImageData(yt,0,0))},Ue}();/**
|
|
|
* @license
|
|
|
*
|
|
|
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
|
|
|
*
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining
|
|
|
* a copy of this software and associated documentation files (the
|
|
|
* "Software"), to deal in the Software without restriction, including
|
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
|
* permit persons to whom the Software is furnished to do so, subject to
|
|
|
* the following conditions:
|
|
|
*
|
|
|
* The above copyright notice and this permission notice shall be
|
|
|
* included in all copies or substantial portions of the Software.
|
|
|
*
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
|
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
* ====================================================================
|
|
|
*//**
|
|
|
* @license
|
|
|
* (c) Dean McNamee <dean@gmail.com>, 2013.
|
|
|
*
|
|
|
* https://github.com/deanm/omggif
|
|
|
*
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
* of this software and associated documentation files (the "Software"), to
|
|
|
* deal in the Software without restriction, including without limitation the
|
|
|
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
|
* sell copies of the Software, and to permit persons to whom the Software is
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
*
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
* all copies or substantial portions of the Software.
|
|
|
*
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
|
* IN THE SOFTWARE.
|
|
|
*
|
|
|
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
|
|
|
* including animation and compression. It does not rely on any specific
|
|
|
* underlying system, so should run in the browser, Node, or Plask.
|
|
|
*/function Ve(Ze){var be=0;if(Ze[be++]!==71||Ze[be++]!==73||Ze[be++]!==70||Ze[be++]!==56||(Ze[be++]+1&253)!=56||Ze[be++]!==97)throw new Error("Invalid GIF 87a/89a header.");var Ne=Ze[be++]|Ze[be++]<<8,Ue=Ze[be++]|Ze[be++]<<8,Qe=Ze[be++],Xe=Qe>>7,qe=1<<(7&Qe)+1;Ze[be++],Ze[be++];var yt=null,ht=null;Xe&&(yt=be,ht=qe,be+=3*qe);var Jt=!0,kr=[],_r=0,Xr=null,Bt=0,gn=null;for(this.width=Ne,this.height=Ue;Jt&&be<Ze.length;)switch(Ze[be++]){case 33:switch(Ze[be++]){case 255:if(Ze[be]!==11||Ze[be+1]==78&&Ze[be+2]==69&&Ze[be+3]==84&&Ze[be+4]==83&&Ze[be+5]==67&&Ze[be+6]==65&&Ze[be+7]==80&&Ze[be+8]==69&&Ze[be+9]==50&&Ze[be+10]==46&&Ze[be+11]==48&&Ze[be+12]==3&&Ze[be+13]==1&&Ze[be+16]==0)be+=14,gn=Ze[be++]|Ze[be++]<<8,be++;else for(be+=12;;){if(!((ir=Ze[be++])>=0))throw Error("Invalid block size");if(ir===0)break;be+=ir}break;case 249:if(Ze[be++]!==4||Ze[be+4]!==0)throw new Error("Invalid graphics extension block.");var hr=Ze[be++];_r=Ze[be++]|Ze[be++]<<8,Xr=Ze[be++],(1&hr)==0&&(Xr=null),Bt=hr>>2&7,be++;break;case 254:for(;;){if(!((ir=Ze[be++])>=0))throw Error("Invalid block size");if(ir===0)break;be+=ir}break;default:throw new Error("Unknown graphic control label: 0x"+Ze[be-1].toString(16))}break;case 44:var vn=Ze[be++]|Ze[be++]<<8,en=Ze[be++]|Ze[be++]<<8,Dt=Ze[be++]|Ze[be++]<<8,jr=Ze[be++]|Ze[be++]<<8,un=Ze[be++],Hr=un>>6&1,Wt=1<<(7&un)+1,wr=yt,fn=ht,zt=!1;un>>7&&(zt=!0,wr=be,fn=Wt,be+=3*Wt);var Dr=be;for(be++;;){var ir;if(!((ir=Ze[be++])>=0))throw Error("Invalid block size");if(ir===0)break;be+=ir}kr.push({x:vn,y:en,width:Dt,height:jr,has_local_palette:zt,palette_offset:wr,palette_size:fn,data_offset:Dr,data_length:be-Dr,transparent_index:Xr,interlaced:!!Hr,delay:_r,disposal:Bt});break;case 59:Jt=!1;break;default:throw new Error("Unknown gif block: 0x"+Ze[be-1].toString(16))}this.numFrames=function(){return kr.length},this.loopCount=function(){return gn},this.frameInfo=function(Lt){if(Lt<0||Lt>=kr.length)throw new Error("Frame index out of range.");return kr[Lt]},this.decodeAndBlitFrameBGRA=function(Lt,Qt){var It=this.frameInfo(Lt),or=It.width*It.height,Cr=new Uint8Array(or);$e(Ze,It.data_offset,Cr,or);var Er=It.palette_offset,Kr=It.transparent_index;Kr===null&&(Kr=256);var jn=It.width,Nn=Ne-jn,ei=jn,Zr=4*(It.y*Ne+It.x),br=4*((It.y+It.height)*Ne+It.x),dn=Zr,Ln=4*Nn;It.interlaced===!0&&(Ln+=4*Ne*7);for(var Fn=8,zn=0,ui=Cr.length;zn<ui;++zn){var ii=Cr[zn];if(ei===0&&(ei=jn,(dn+=Ln)>=br&&(Ln=4*Nn+4*Ne*(Fn-1),dn=Zr+(jn+Nn)*(Fn<<1),Fn>>=1)),ii===Kr)dn+=4;else{var qn=Ze[Er+3*ii],Li=Ze[Er+3*ii+1],zi=Ze[Er+3*ii+2];Qt[dn++]=zi,Qt[dn++]=Li,Qt[dn++]=qn,Qt[dn++]=255}--ei}},this.decodeAndBlitFrameRGBA=function(Lt,Qt){var It=this.frameInfo(Lt),or=It.width*It.height,Cr=new Uint8Array(or);$e(Ze,It.data_offset,Cr,or);var Er=It.palette_offset,Kr=It.transparent_index;Kr===null&&(Kr=256);var jn=It.width,Nn=Ne-jn,ei=jn,Zr=4*(It.y*Ne+It.x),br=4*((It.y+It.height)*Ne+It.x),dn=Zr,Ln=4*Nn;It.interlaced===!0&&(Ln+=4*Ne*7);for(var Fn=8,zn=0,ui=Cr.length;zn<ui;++zn){var ii=Cr[zn];if(ei===0&&(ei=jn,(dn+=Ln)>=br&&(Ln=4*Nn+4*Ne*(Fn-1),dn=Zr+(jn+Nn)*(Fn<<1),Fn>>=1)),ii===Kr)dn+=4;else{var qn=Ze[Er+3*ii],Li=Ze[Er+3*ii+1],zi=Ze[Er+3*ii+2];Qt[dn++]=qn,Qt[dn++]=Li,Qt[dn++]=zi,Qt[dn++]=255}--ei}}}function $e(Ze,be,Ne,Ue){for(var Qe=Ze[be++],Xe=1<<Qe,qe=Xe+1,yt=qe+1,ht=Qe+1,Jt=(1<<ht)-1,kr=0,_r=0,Xr=0,Bt=Ze[be++],gn=new Int32Array(4096),hr=null;;){for(;kr<16&&Bt!==0;)_r|=Ze[be++]<<kr,kr+=8,Bt===1?Bt=Ze[be++]:--Bt;if(kr<ht)break;var vn=_r&Jt;if(_r>>=ht,kr-=ht,vn!==Xe){if(vn===qe)break;for(var en=vn<yt?vn:hr,Dt=0,jr=en;jr>Xe;)jr=gn[jr]>>8,++Dt;var un=jr;if(Xr+Dt+(en!==vn?1:0)>Ue)return void f.log("Warning, gif stream longer than expected.");Ne[Xr++]=un;var Hr=Xr+=Dt;for(en!==vn&&(Ne[Xr++]=un),jr=en;Dt--;)jr=gn[jr],Ne[--Hr]=255&jr,jr>>=8;hr!==null&&yt<4096&&(gn[yt++]=hr<<8|un,yt>=Jt+1&&ht<12&&(++ht,Jt=Jt<<1|1)),hr=vn}else yt=qe+1,Jt=(1<<(ht=Qe+1))-1,hr=null}return Xr!==Ue&&f.log("Warning, gif stream shorter than expected."),Ne}/**
|
|
|
* @license
|
|
|
Copyright (c) 2008, Adobe Systems Incorporated
|
|
|
All rights reserved.
|
|
|
|
|
|
Redistribution and use in source and binary forms, with or without
|
|
|
modification, are permitted provided that the following conditions are
|
|
|
met:
|
|
|
|
|
|
* Redistributions of source code must retain the above copyright notice,
|
|
|
this list of conditions and the following disclaimer.
|
|
|
|
|
|
* Redistributions in binary form must reproduce the above copyright
|
|
|
notice, this list of conditions and the following disclaimer in the
|
|
|
documentation and/or other materials provided with the distribution.
|
|
|
|
|
|
* Neither the name of Adobe Systems Incorporated nor the names of its
|
|
|
contributors may be used to endorse or promote products derived from
|
|
|
this software without specific prior written permission.
|
|
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
|
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
|
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
|
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
|
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
|
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
|
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
|
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
*/function wt(Ze){var be,Ne,Ue,Qe,Xe,qe=Math.floor,yt=new Array(64),ht=new Array(64),Jt=new Array(64),kr=new Array(64),_r=new Array(65535),Xr=new Array(65535),Bt=new Array(64),gn=new Array(64),hr=[],vn=0,en=7,Dt=new Array(64),jr=new Array(64),un=new Array(64),Hr=new Array(256),Wt=new Array(2048),wr=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],fn=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],zt=[0,1,2,3,4,5,6,7,8,9,10,11],Dr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],ir=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],Lt=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Qt=[0,1,2,3,4,5,6,7,8,9,10,11],It=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],or=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function Cr(Zr,br){for(var dn=0,Ln=0,Fn=new Array,zn=1;zn<=16;zn++){for(var ui=1;ui<=Zr[zn];ui++)Fn[br[Ln]]=[],Fn[br[Ln]][0]=dn,Fn[br[Ln]][1]=zn,Ln++,dn++;dn*=2}return Fn}function Er(Zr){for(var br=Zr[0],dn=Zr[1]-1;dn>=0;)br&1<<dn&&(vn|=1<<en),dn--,--en<0&&(vn==255?(Kr(255),Kr(0)):Kr(vn),en=7,vn=0)}function Kr(Zr){hr.push(Zr)}function jn(Zr){Kr(Zr>>8&255),Kr(255&Zr)}function Nn(Zr,br,dn,Ln,Fn){for(var zn,ui=Fn[0],ii=Fn[240],qn=function(ki,ji){var dr,sr,cn,Zt,Ar,Nr,tn,pn,St,cr,fr=0;for(St=0;St<8;++St){dr=ki[fr],sr=ki[fr+1],cn=ki[fr+2],Zt=ki[fr+3],Ar=ki[fr+4],Nr=ki[fr+5],tn=ki[fr+6];var Br=dr+(pn=ki[fr+7]),$r=dr-pn,wn=sr+tn,rn=sr-tn,On=cn+Nr,In=cn-Nr,Gn=Zt+Ar,fi=Zt-Ar,Yn=Br+Gn,gi=Br-Gn,vi=wn+On,Di=wn-On;ki[fr]=Yn+vi,ki[fr+4]=Yn-vi;var Mi=.707106781*(Di+gi);ki[fr+2]=gi+Mi,ki[fr+6]=gi-Mi;var xi=.382683433*((Yn=fi+In)-(Di=rn+$r)),bi=.5411961*Yn+xi,Ci=1.306562965*Di+xi,$i=.707106781*(vi=In+rn),qi=$r+$i,Ti=$r-$i;ki[fr+5]=Ti+bi,ki[fr+3]=Ti-bi,ki[fr+1]=qi+Ci,ki[fr+7]=qi-Ci,fr+=8}for(fr=0,St=0;St<8;++St){dr=ki[fr],sr=ki[fr+8],cn=ki[fr+16],Zt=ki[fr+24],Ar=ki[fr+32],Nr=ki[fr+40],tn=ki[fr+48];var ia=dr+(pn=ki[fr+56]),na=dr-pn,Ui=sr+tn,Ki=sr-tn,ra=cn+Nr,ea=cn-Nr,va=Zt+Ar,sa=Zt-Ar,Pa=ia+va,ka=ia-va,Ia=Ui+ra,Ea=Ui-ra;ki[fr]=Pa+Ia,ki[fr+32]=Pa-Ia;var So=.707106781*(Ea+ka);ki[fr+16]=ka+So,ki[fr+48]=ka-So;var Ga=.382683433*((Pa=sa+ea)-(Ea=Ki+na)),Va=.5411961*Pa+Ga,Ra=1.306562965*Ea+Ga,po=.707106781*(Ia=ea+Ki),mo=na+po,Aa=na-po;ki[fr+40]=Aa+Va,ki[fr+24]=Aa-Va,ki[fr+8]=mo+Ra,ki[fr+56]=mo-Ra,fr++}for(St=0;St<64;++St)cr=ki[St]*ji[St],Bt[St]=cr>0?cr+.5|0:cr-.5|0;return Bt}(Zr,br),Li=0;Li<64;++Li)gn[wr[Li]]=qn[Li];var zi=gn[0]-dn;dn=gn[0],zi==0?Er(Ln[0]):(Er(Ln[Xr[zn=32767+zi]]),Er(_r[zn]));for(var Ri=63;Ri>0&&gn[Ri]==0;)Ri--;if(Ri==0)return Er(ui),dn;for(var ga,oi=1;oi<=Ri;){for(var hn=oi;gn[oi]==0&&oi<=Ri;)++oi;var Ei=oi-hn;if(Ei>=16){ga=Ei>>4;for(var Hi=1;Hi<=ga;++Hi)Er(ii);Ei&=15}zn=32767+gn[oi],Er(Fn[(Ei<<4)+Xr[zn]]),Er(_r[zn]),oi++}return Ri!=63&&Er(ui),dn}function ei(Zr){(Zr=Math.min(Math.max(Zr,1),100),Xe!=Zr)&&(!function(br){for(var dn=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],Ln=0;Ln<64;Ln++){var Fn=qe((dn[Ln]*br+50)/100);Fn=Math.min(Math.max(Fn,1),255),yt[wr[Ln]]=Fn}for(var zn=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],ui=0;ui<64;ui++){var ii=qe((zn[ui]*br+50)/100);ii=Math.min(Math.max(ii,1),255),ht[wr[ui]]=ii}for(var qn=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Li=0,zi=0;zi<8;zi++)for(var Ri=0;Ri<8;Ri++)Jt[Li]=1/(yt[wr[Li]]*qn[zi]*qn[Ri]*8),kr[Li]=1/(ht[wr[Li]]*qn[zi]*qn[Ri]*8),Li++}(Zr<50?Math.floor(5e3/Zr):Math.floor(200-2*Zr)),Xe=Zr)}this.encode=function(Zr,br){br&&ei(br),hr=new Array,vn=0,en=7,jn(65496),jn(65504),jn(16),Kr(74),Kr(70),Kr(73),Kr(70),Kr(0),Kr(1),Kr(1),Kr(0),jn(1),jn(1),Kr(0),Kr(0),function(){jn(65499),jn(132),Kr(0);for(var sr=0;sr<64;sr++)Kr(yt[sr]);Kr(1);for(var cn=0;cn<64;cn++)Kr(ht[cn])}(),function(sr,cn){jn(65472),jn(17),Kr(8),jn(cn),jn(sr),Kr(3),Kr(1),Kr(17),Kr(0),Kr(2),Kr(17),Kr(1),Kr(3),Kr(17),Kr(1)}(Zr.width,Zr.height),function(){jn(65476),jn(418),Kr(0);for(var sr=0;sr<16;sr++)Kr(fn[sr+1]);for(var cn=0;cn<=11;cn++)Kr(zt[cn]);Kr(16);for(var Zt=0;Zt<16;Zt++)Kr(Dr[Zt+1]);for(var Ar=0;Ar<=161;Ar++)Kr(ir[Ar]);Kr(1);for(var Nr=0;Nr<16;Nr++)Kr(Lt[Nr+1]);for(var tn=0;tn<=11;tn++)Kr(Qt[tn]);Kr(17);for(var pn=0;pn<16;pn++)Kr(It[pn+1]);for(var St=0;St<=161;St++)Kr(or[St])}(),jn(65498),jn(12),Kr(3),Kr(1),Kr(0),Kr(2),Kr(17),Kr(3),Kr(17),Kr(0),Kr(63),Kr(0);var dn=0,Ln=0,Fn=0;vn=0,en=7,this.encode.displayName="_encode_";for(var zn,ui,ii,qn,Li,zi,Ri,ga,oi,hn=Zr.data,Ei=Zr.width,Hi=Zr.height,ki=4*Ei,ji=0;ji<Hi;){for(zn=0;zn<ki;){for(Li=ki*ji+zn,Ri=-1,ga=0,oi=0;oi<64;oi++)zi=Li+(ga=oi>>3)*ki+(Ri=4*(7&oi)),ji+ga>=Hi&&(zi-=ki*(ji+1+ga-Hi)),zn+Ri>=ki&&(zi-=zn+Ri-ki+4),ui=hn[zi++],ii=hn[zi++],qn=hn[zi++],Dt[oi]=(Wt[ui]+Wt[ii+256>>0]+Wt[qn+512>>0]>>16)-128,jr[oi]=(Wt[ui+768>>0]+Wt[ii+1024>>0]+Wt[qn+1280>>0]>>16)-128,un[oi]=(Wt[ui+1280>>0]+Wt[ii+1536>>0]+Wt[qn+1792>>0]>>16)-128;dn=Nn(Dt,Jt,dn,be,Ue),Ln=Nn(jr,kr,Ln,Ne,Qe),Fn=Nn(un,kr,Fn,Ne,Qe),zn+=32}ji+=8}if(en>=0){var dr=[];dr[1]=en+1,dr[0]=(1<<en+1)-1,Er(dr)}return jn(65497),new Uint8Array(hr)},Ze=Ze||50,function(){for(var Zr=String.fromCharCode,br=0;br<256;br++)Hr[br]=Zr(br)}(),be=Cr(fn,zt),Ne=Cr(Lt,Qt),Ue=Cr(Dr,ir),Qe=Cr(It,or),function(){for(var Zr=1,br=2,dn=1;dn<=15;dn++){for(var Ln=Zr;Ln<br;Ln++)Xr[32767+Ln]=dn,_r[32767+Ln]=[],_r[32767+Ln][1]=dn,_r[32767+Ln][0]=Ln;for(var Fn=-(br-1);Fn<=-Zr;Fn++)Xr[32767+Fn]=dn,_r[32767+Fn]=[],_r[32767+Fn][1]=dn,_r[32767+Fn][0]=br-1+Fn;Zr<<=1,br<<=1}}(),function(){for(var Zr=0;Zr<256;Zr++)Wt[Zr]=19595*Zr,Wt[Zr+256>>0]=38470*Zr,Wt[Zr+512>>0]=7471*Zr+32768,Wt[Zr+768>>0]=-11059*Zr,Wt[Zr+1024>>0]=-21709*Zr,Wt[Zr+1280>>0]=32768*Zr+8421375,Wt[Zr+1536>>0]=-27439*Zr,Wt[Zr+1792>>0]=-5329*Zr}(),ei(Ze)}/**
|
|
|
* @license
|
|
|
* Copyright (c) 2017 Aras Abbasi
|
|
|
*
|
|
|
* Licensed under the MIT License.
|
|
|
* http://opensource.org/licenses/mit-license
|
|
|
*/function qt(Ze,be){if(this.pos=0,this.buffer=Ze,this.datav=new DataView(Ze.buffer),this.is_with_alpha=!!be,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Mr(Ze){function be(fn){if(!fn)throw Error("assert :P")}function Ne(fn,zt,Dr){for(var ir=0;4>ir;ir++)if(fn[zt+ir]!=Dr.charCodeAt(ir))return!0;return!1}function Ue(fn,zt,Dr,ir,Lt){for(var Qt=0;Qt<Lt;Qt++)fn[zt+Qt]=Dr[ir+Qt]}function Qe(fn,zt,Dr,ir){for(var Lt=0;Lt<ir;Lt++)fn[zt+Lt]=Dr}function Xe(fn){return new Int32Array(fn)}function qe(fn,zt){for(var Dr=[],ir=0;ir<fn;ir++)Dr.push(new zt);return Dr}function yt(fn,zt){var Dr=[];return function ir(Lt,Qt,It){for(var or=It[Qt],Cr=0;Cr<or&&(Lt.push(It.length>Qt+1?[]:new zt),!(It.length<Qt+1));Cr++)ir(Lt[Cr],Qt+1,It)}(Dr,0,fn),Dr}var ht=function(){var zt=this;function Dr(ve,Ke){for(var pt=1<<Ke-1>>>0;ve&pt;)pt>>>=1;return pt?(ve&pt-1)+pt:ve}function ir(ve,Ke,pt,tr,Tr){be(!(tr%pt));do ve[Ke+(tr-=pt)]=Tr;while(0<tr)}function Lt(ve,Ke,pt,tr,Tr){if(be(2328>=Tr),512>=Tr)var Gr=Xe(512);else if((Gr=Xe(Tr))==null)return 0;return function(_e,te,ye,Ge,lt,Rt){var Kt,Vt,Lr=te,Jr=1<<ye,Or=Xe(16),Sr=Xe(16);for(be(lt!=0),be(Ge!=null),be(_e!=null),be(0<ye),Vt=0;Vt<lt;++Vt){if(15<Ge[Vt])return 0;++Or[Ge[Vt]]}if(Or[0]==lt)return 0;for(Sr[1]=0,Kt=1;15>Kt;++Kt){if(Or[Kt]>1<<Kt)return 0;Sr[Kt+1]=Sr[Kt]+Or[Kt]}for(Vt=0;Vt<lt;++Vt)Kt=Ge[Vt],0<Ge[Vt]&&(Rt[Sr[Kt]++]=Vt);if(Sr[15]==1)return(Ge=new Qt).g=0,Ge.value=Rt[0],ir(_e,Lr,1,Jr,Ge),Jr;var Vr,qr=-1,Tn=Jr-1,ci=0,Ai=1,Vi=1,Ni=1<<ye;for(Vt=0,Kt=1,lt=2;Kt<=ye;++Kt,lt<<=1){if(Ai+=Vi<<=1,0>(Vi-=Or[Kt]))return 0;for(;0<Or[Kt];--Or[Kt])(Ge=new Qt).g=Kt,Ge.value=Rt[Vt++],ir(_e,Lr+ci,lt,Ni,Ge),ci=Dr(ci,Kt)}for(Kt=ye+1,lt=2;15>=Kt;++Kt,lt<<=1){if(Ai+=Vi<<=1,0>(Vi-=Or[Kt]))return 0;for(;0<Or[Kt];--Or[Kt]){if(Ge=new Qt,(ci&Tn)!=qr){for(Lr+=Ni,Vr=1<<(qr=Kt)-ye;15>qr&&!(0>=(Vr-=Or[qr]));)++qr,Vr<<=1;Jr+=Ni=1<<(Vr=qr-ye),_e[te+(qr=ci&Tn)].g=Vr+ye,_e[te+qr].value=Lr-te-qr}Ge.g=Kt-ye,Ge.value=Rt[Vt++],ir(_e,Lr+(ci>>ye),lt,Ni,Ge),ci=Dr(ci,Kt)}}return Ai!=2*Sr[15]-1?0:Jr}(ve,Ke,pt,tr,Tr,Gr)}function Qt(){this.value=this.g=0}function It(){this.value=this.g=0}function or(){this.G=qe(5,Qt),this.H=Xe(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=qe(Ya,It)}function Cr(ve,Ke,pt,tr){be(ve!=null),be(Ke!=null),be(2147483648>tr),ve.Ca=254,ve.I=0,ve.b=-8,ve.Ka=0,ve.oa=Ke,ve.pa=pt,ve.Jd=Ke,ve.Yc=pt+tr,ve.Zc=4<=tr?pt+tr-4+1:pt,ui(ve)}function Er(ve,Ke){for(var pt=0;0<Ke--;)pt|=qn(ve,128)<<Ke;return pt}function Kr(ve,Ke){var pt=Er(ve,Ke);return ii(ve)?-pt:pt}function jn(ve,Ke,pt,tr){var Tr,Gr=0;for(be(ve!=null),be(Ke!=null),be(4294967288>tr),ve.Sb=tr,ve.Ra=0,ve.u=0,ve.h=0,4<tr&&(tr=4),Tr=0;Tr<tr;++Tr)Gr+=Ke[pt+Tr]<<8*Tr;ve.Ra=Gr,ve.bb=tr,ve.oa=Ke,ve.pa=pt}function Nn(ve){for(;8<=ve.u&&ve.bb<ve.Sb;)ve.Ra>>>=8,ve.Ra+=ve.oa[ve.pa+ve.bb]<<$o-8>>>0,++ve.bb,ve.u-=8;Ln(ve)&&(ve.h=1,ve.u=0)}function ei(ve,Ke){if(be(0<=Ke),!ve.h&&Ke<=ts){var pt=dn(ve)&ps[Ke];return ve.u+=Ke,Nn(ve),pt}return ve.h=1,ve.u=0}function Zr(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function br(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function dn(ve){return ve.Ra>>>(ve.u&$o-1)>>>0}function Ln(ve){return be(ve.bb<=ve.Sb),ve.h||ve.bb==ve.Sb&&ve.u>$o}function Fn(ve,Ke){ve.u=Ke,ve.h=Ln(ve)}function zn(ve){ve.u>=Ds&&(be(ve.u>=Ds),Nn(ve))}function ui(ve){be(ve!=null&&ve.oa!=null),ve.pa<ve.Zc?(ve.I=(ve.oa[ve.pa++]|ve.I<<8)>>>0,ve.b+=8):(be(ve!=null&&ve.oa!=null),ve.pa<ve.Yc?(ve.b+=8,ve.I=ve.oa[ve.pa++]|ve.I<<8):ve.Ka?ve.b=0:(ve.I<<=8,ve.b+=8,ve.Ka=1))}function ii(ve){return Er(ve,1)}function qn(ve,Ke){var pt=ve.Ca;0>ve.b&&ui(ve);var tr=ve.b,Tr=pt*Ke>>>8,Gr=(ve.I>>>tr>Tr)+0;for(Gr?(pt-=Tr,ve.I-=Tr+1<<tr>>>0):pt=Tr+1,tr=pt,Tr=0;256<=tr;)Tr+=8,tr>>=8;return tr=7^Tr+Hs[tr],ve.b-=tr,ve.Ca=(pt<<tr)-1,Gr}function Li(ve,Ke,pt){ve[Ke+0]=pt>>24&255,ve[Ke+1]=pt>>16&255,ve[Ke+2]=pt>>8&255,ve[Ke+3]=pt>>0&255}function zi(ve,Ke){return ve[Ke+0]<<0|ve[Ke+1]<<8}function Ri(ve,Ke){return zi(ve,Ke)|ve[Ke+2]<<16}function ga(ve,Ke){return zi(ve,Ke)|zi(ve,Ke+2)<<16}function oi(ve,Ke){var pt=1<<Ke;return be(ve!=null),be(0<Ke),ve.X=Xe(pt),ve.X==null?0:(ve.Mb=32-Ke,ve.Xa=Ke,1)}function hn(ve,Ke){be(ve!=null),be(Ke!=null),be(ve.Xa==Ke.Xa),Ue(Ke.X,0,ve.X,0,1<<Ke.Xa)}function Ei(){this.X=[],this.Xa=this.Mb=0}function Hi(ve,Ke,pt,tr){be(pt!=null),be(tr!=null);var Tr=pt[0],Gr=tr[0];return Tr==0&&(Tr=(ve*Gr+Ke/2)/Ke),Gr==0&&(Gr=(Ke*Tr+ve/2)/ve),0>=Tr||0>=Gr?0:(pt[0]=Tr,tr[0]=Gr,1)}function ki(ve,Ke){return ve+(1<<Ke)-1>>>Ke}function ji(ve,Ke){return((4278255360&ve)+(4278255360&Ke)>>>0&4278255360)+((16711935&ve)+(16711935&Ke)>>>0&16711935)>>>0}function dr(ve,Ke){zt[Ke]=function(pt,tr,Tr,Gr,_e,te,ye){var Ge;for(Ge=0;Ge<_e;++Ge){var lt=zt[ve](te[ye+Ge-1],Tr,Gr+Ge);te[ye+Ge]=ji(pt[tr+Ge],lt)}}}function sr(){this.ud=this.hd=this.jd=0}function cn(ve,Ke){return((4278124286&(ve^Ke))>>>1)+(ve&Ke)>>>0}function Zt(ve){return 0<=ve&&256>ve?ve:0>ve?0:255<ve?255:void 0}function Ar(ve,Ke){return Zt(ve+(ve-Ke+.5>>1))}function Nr(ve,Ke,pt){return Math.abs(Ke-pt)-Math.abs(ve-pt)}function tn(ve,Ke,pt,tr,Tr,Gr,_e){for(tr=Gr[_e-1],pt=0;pt<Tr;++pt)Gr[_e+pt]=tr=ji(ve[Ke+pt],tr)}function pn(ve,Ke,pt,tr,Tr){var Gr;for(Gr=0;Gr<pt;++Gr){var _e=ve[Ke+Gr],te=_e>>8&255,ye=16711935&(ye=(ye=16711935&_e)+((te<<16)+te));tr[Tr+Gr]=(4278255360&_e)+ye>>>0}}function St(ve,Ke){Ke.jd=ve>>0&255,Ke.hd=ve>>8&255,Ke.ud=ve>>16&255}function cr(ve,Ke,pt,tr,Tr,Gr){var _e;for(_e=0;_e<tr;++_e){var te=Ke[pt+_e],ye=te>>>8,Ge=te,lt=255&(lt=(lt=te>>>16)+((ve.jd<<24>>24)*(ye<<24>>24)>>>5));Ge=255&(Ge=(Ge=Ge+((ve.hd<<24>>24)*(ye<<24>>24)>>>5))+((ve.ud<<24>>24)*(lt<<24>>24)>>>5)),Tr[Gr+_e]=(4278255360&te)+(lt<<16)+Ge}}function fr(ve,Ke,pt,tr,Tr){zt[Ke]=function(Gr,_e,te,ye,Ge,lt,Rt,Kt,Vt){for(ye=Rt;ye<Kt;++ye)for(Rt=0;Rt<Vt;++Rt)Ge[lt++]=Tr(te[tr(Gr[_e++])])},zt[ve]=function(Gr,_e,te,ye,Ge,lt,Rt){var Kt=8>>Gr.b,Vt=Gr.Ea,Lr=Gr.K[0],Jr=Gr.w;if(8>Kt)for(Gr=(1<<Gr.b)-1,Jr=(1<<Kt)-1;_e<te;++_e){var Or,Sr=0;for(Or=0;Or<Vt;++Or)Or&Gr||(Sr=tr(ye[Ge++])),lt[Rt++]=Tr(Lr[Sr&Jr]),Sr>>=Kt}else zt["VP8LMapColor"+pt](ye,Ge,Lr,Jr,lt,Rt,_e,te,Vt)}}function Br(ve,Ke,pt,tr,Tr){for(pt=Ke+pt;Ke<pt;){var Gr=ve[Ke++];tr[Tr++]=Gr>>16&255,tr[Tr++]=Gr>>8&255,tr[Tr++]=Gr>>0&255}}function $r(ve,Ke,pt,tr,Tr){for(pt=Ke+pt;Ke<pt;){var Gr=ve[Ke++];tr[Tr++]=Gr>>16&255,tr[Tr++]=Gr>>8&255,tr[Tr++]=Gr>>0&255,tr[Tr++]=Gr>>24&255}}function wn(ve,Ke,pt,tr,Tr){for(pt=Ke+pt;Ke<pt;){var Gr=(_e=ve[Ke++])>>16&240|_e>>12&15,_e=_e>>0&240|_e>>28&15;tr[Tr++]=Gr,tr[Tr++]=_e}}function rn(ve,Ke,pt,tr,Tr){for(pt=Ke+pt;Ke<pt;){var Gr=(_e=ve[Ke++])>>16&248|_e>>13&7,_e=_e>>5&224|_e>>3&31;tr[Tr++]=Gr,tr[Tr++]=_e}}function On(ve,Ke,pt,tr,Tr){for(pt=Ke+pt;Ke<pt;){var Gr=ve[Ke++];tr[Tr++]=Gr>>0&255,tr[Tr++]=Gr>>8&255,tr[Tr++]=Gr>>16&255}}function In(ve,Ke,pt,tr,Tr,Gr){if(Gr==0)for(pt=Ke+pt;Ke<pt;)Li(tr,((Gr=ve[Ke++])[0]>>24|Gr[1]>>8&65280|Gr[2]<<8&16711680|Gr[3]<<24)>>>0),Tr+=32;else Ue(tr,Tr,ve,Ke,pt)}function Gn(ve,Ke){zt[Ke][0]=zt[ve+"0"],zt[Ke][1]=zt[ve+"1"],zt[Ke][2]=zt[ve+"2"],zt[Ke][3]=zt[ve+"3"],zt[Ke][4]=zt[ve+"4"],zt[Ke][5]=zt[ve+"5"],zt[Ke][6]=zt[ve+"6"],zt[Ke][7]=zt[ve+"7"],zt[Ke][8]=zt[ve+"8"],zt[Ke][9]=zt[ve+"9"],zt[Ke][10]=zt[ve+"10"],zt[Ke][11]=zt[ve+"11"],zt[Ke][12]=zt[ve+"12"],zt[Ke][13]=zt[ve+"13"],zt[Ke][14]=zt[ve+"0"],zt[Ke][15]=zt[ve+"0"]}function fi(ve){return ve==du||ve==Al||ve==kl||ve==Pl}function Yn(){this.eb=[],this.size=this.A=this.fb=0}function gi(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function vi(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Yn,this.f.kb=new gi,this.sd=null}function Di(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Mi(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function xi(ve){return alert("todo:WebPSamplerProcessPlane"),ve.T}function bi(ve,Ke){var pt=ve.T,tr=Ke.ba.f.RGBA,Tr=tr.eb,Gr=tr.fb+ve.ka*tr.A,_e=Ro[Ke.ba.S],te=ve.y,ye=ve.O,Ge=ve.f,lt=ve.N,Rt=ve.ea,Kt=ve.W,Vt=Ke.cc,Lr=Ke.dc,Jr=Ke.Mc,Or=Ke.Nc,Sr=ve.ka,Vr=ve.ka+ve.T,qr=ve.U,Tn=qr+1>>1;for(Sr==0?_e(te,ye,null,null,Ge,lt,Rt,Kt,Ge,lt,Rt,Kt,Tr,Gr,null,null,qr):(_e(Ke.ec,Ke.fc,te,ye,Vt,Lr,Jr,Or,Ge,lt,Rt,Kt,Tr,Gr-tr.A,Tr,Gr,qr),++pt);Sr+2<Vr;Sr+=2)Vt=Ge,Lr=lt,Jr=Rt,Or=Kt,lt+=ve.Rc,Kt+=ve.Rc,Gr+=2*tr.A,_e(te,(ye+=2*ve.fa)-ve.fa,te,ye,Vt,Lr,Jr,Or,Ge,lt,Rt,Kt,Tr,Gr-tr.A,Tr,Gr,qr);return ye+=ve.fa,ve.j+Vr<ve.o?(Ue(Ke.ec,Ke.fc,te,ye,qr),Ue(Ke.cc,Ke.dc,Ge,lt,Tn),Ue(Ke.Mc,Ke.Nc,Rt,Kt,Tn),pt--):1&Vr||_e(te,ye,null,null,Ge,lt,Rt,Kt,Ge,lt,Rt,Kt,Tr,Gr+tr.A,null,null,qr),pt}function Ci(ve,Ke,pt){var tr=ve.F,Tr=[ve.J];if(tr!=null){var Gr=ve.U,_e=Ke.ba.S,te=_e==Ml||_e==kl;Ke=Ke.ba.f.RGBA;var ye=[0],Ge=ve.ka;ye[0]=ve.T,ve.Kb&&(Ge==0?--ye[0]:(--Ge,Tr[0]-=ve.width),ve.j+ve.ka+ve.T==ve.o&&(ye[0]=ve.o-ve.j-Ge));var lt=Ke.eb;Ge=Ke.fb+Ge*Ke.A,ve=ul(tr,Tr[0],ve.width,Gr,ye,lt,Ge+(te?0:3),Ke.A),be(pt==ye),ve&&fi(_e)&&Yl(lt,Ge,te,Gr,ye,Ke.A)}return 0}function $i(ve){var Ke=ve.ma,pt=Ke.ba.S,tr=11>pt,Tr=pt==tu||pt==Ql||pt==Ml||pt==nu||pt==12||fi(pt);if(Ke.memory=null,Ke.Ib=null,Ke.Jb=null,Ke.Nd=null,!Oo(Ke.Oa,ve,Tr?11:12))return 0;if(Tr&&fi(pt)&&We(),ve.da)alert("todo:use_scaling");else{if(tr){if(Ke.Ib=xi,ve.Kb){if(pt=ve.U+1>>1,Ke.memory=Xe(ve.U+2*pt),Ke.memory==null)return 0;Ke.ec=Ke.memory,Ke.fc=0,Ke.cc=Ke.ec,Ke.dc=Ke.fc+ve.U,Ke.Mc=Ke.cc,Ke.Nc=Ke.dc+pt,Ke.Ib=bi,We()}}else alert("todo:EmitYUV");Tr&&(Ke.Jb=Ci,tr&&ge())}if(tr&&!zu){for(ve=0;256>ve;++ve)qu[ve]=89858*(ve-128)+Gl>>Vs,ec[ve]=-22014*(ve-128)+Gl,Lu[ve]=-45773*(ve-128),mu[ve]=113618*(ve-128)+Gl>>Vs;for(ve=pu;ve<su;++ve)Ke=76283*(ve-16)+Gl>>Vs,Fu[ve-pu]=za(Ke,255),Cu[ve-pu]=za(Ke+8>>4,15);zu=1}return 1}function qi(ve){var Ke=ve.ma,pt=ve.U,tr=ve.T;return be(!(1&ve.ka)),0>=pt||0>=tr?0:(pt=Ke.Ib(ve,Ke),Ke.Jb!=null&&Ke.Jb(ve,Ke,pt),Ke.Dc+=pt,1)}function Ti(ve){ve.ma.memory=null}function ia(ve,Ke,pt,tr){return ei(ve,8)!=47?0:(Ke[0]=ei(ve,14)+1,pt[0]=ei(ve,14)+1,tr[0]=ei(ve,1),ei(ve,3)!=0?0:!ve.h)}function na(ve,Ke){if(4>ve)return ve+1;var pt=ve-2>>1;return(2+(1&ve)<<pt)+ei(Ke,pt)+1}function Ui(ve,Ke){return 120<Ke?Ke-120:1<=(pt=((pt=iu[Ke-1])>>4)*ve+(8-(15&pt)))?pt:1;var pt}function Ki(ve,Ke,pt){var tr=dn(pt),Tr=ve[Ke+=255&tr].g-8;return 0<Tr&&(Fn(pt,pt.u+8),tr=dn(pt),Ke+=ve[Ke].value,Ke+=tr&(1<<Tr)-1),Fn(pt,pt.u+ve[Ke].g),ve[Ke].value}function ra(ve,Ke,pt){return pt.g+=ve.g,pt.value+=ve.value<<Ke>>>0,be(8>=pt.g),ve.g}function ea(ve,Ke,pt){var tr=ve.xc;return be((Ke=tr==0?0:ve.vc[ve.md*(pt>>tr)+(Ke>>tr)])<ve.Wb),ve.Ya[Ke]}function va(ve,Ke,pt,tr){var Tr=ve.ab,Gr=ve.c*Ke,_e=ve.C;Ke=_e+Ke;var te=pt,ye=tr;for(tr=ve.Ta,pt=ve.Ua;0<Tr--;){var Ge=ve.gc[Tr],lt=_e,Rt=Ke,Kt=te,Vt=ye,Lr=(ye=tr,te=pt,Ge.Ea);switch(be(lt<Rt),be(Rt<=Ge.nc),Ge.hc){case 2:Js(Kt,Vt,(Rt-lt)*Lr,ye,te);break;case 0:var Jr=lt,Or=Rt,Sr=ye,Vr=te,qr=(Ni=Ge).Ea;Jr==0&&(xs(Kt,Vt,null,null,1,Sr,Vr),tn(Kt,Vt+1,0,0,qr-1,Sr,Vr+1),Vt+=qr,Vr+=qr,++Jr);for(var Tn=1<<Ni.b,ci=Tn-1,Ai=ki(qr,Ni.b),Vi=Ni.K,Ni=Ni.w+(Jr>>Ni.b)*Ai;Jr<Or;){var Oa=Vi,Zi=Ni,Wa=1;for(Xo(Kt,Vt,Sr,Vr-qr,1,Sr,Vr);Wa<qr;){var Na=(Wa&~ci)+Tn;Na>qr&&(Na=qr),(0,as[Oa[Zi++]>>8&15])(Kt,Vt+ +Wa,Sr,Vr+Wa-qr,Na-Wa,Sr,Vr+Wa),Wa=Na}Vt+=qr,Vr+=qr,++Jr&ci||(Ni+=Ai)}Rt!=Ge.nc&&Ue(ye,te-Lr,ye,te+(Rt-lt-1)*Lr,Lr);break;case 1:for(Lr=Kt,Or=Vt,qr=(Kt=Ge.Ea)-(Vr=Kt&~(Sr=(Vt=1<<Ge.b)-1)),Jr=ki(Kt,Ge.b),Tn=Ge.K,Ge=Ge.w+(lt>>Ge.b)*Jr;lt<Rt;){for(ci=Tn,Ai=Ge,Vi=new sr,Ni=Or+Vr,Oa=Or+Kt;Or<Ni;)St(ci[Ai++],Vi),ha(Vi,Lr,Or,Vt,ye,te),Or+=Vt,te+=Vt;Or<Oa&&(St(ci[Ai++],Vi),ha(Vi,Lr,Or,qr,ye,te),Or+=qr,te+=qr),++lt&Sr||(Ge+=Jr)}break;case 3:if(Kt==ye&&Vt==te&&0<Ge.b){for(Or=ye,Kt=Lr=te+(Rt-lt)*Lr-(Vr=(Rt-lt)*ki(Ge.Ea,Ge.b)),Vt=ye,Sr=te,Jr=[],Vr=(qr=Vr)-1;0<=Vr;--Vr)Jr[Vr]=Vt[Sr+Vr];for(Vr=qr-1;0<=Vr;--Vr)Or[Kt+Vr]=Jr[Vr];Cs(Ge,lt,Rt,ye,Lr,ye,te)}else Cs(Ge,lt,Rt,Kt,Vt,ye,te)}te=tr,ye=pt}ye!=pt&&Ue(tr,pt,te,ye,Gr)}function sa(ve,Ke){var pt=ve.V,tr=ve.Ba+ve.c*ve.C,Tr=Ke-ve.C;if(be(Ke<=ve.l.o),be(16>=Tr),0<Tr){var Gr=ve.l,_e=ve.Ta,te=ve.Ua,ye=Gr.width;if(va(ve,Tr,pt,tr),Tr=te=[te],be((pt=ve.C)<(tr=Ke)),be(Gr.v<Gr.va),tr>Gr.o&&(tr=Gr.o),pt<Gr.j){var Ge=Gr.j-pt;pt=Gr.j,Tr[0]+=Ge*ye}if(pt>=tr?pt=0:(Tr[0]+=4*Gr.v,Gr.ka=pt-Gr.j,Gr.U=Gr.va-Gr.v,Gr.T=tr-pt,pt=1),pt){if(te=te[0],11>(pt=ve.ca).S){var lt=pt.f.RGBA,Rt=(tr=pt.S,Tr=Gr.U,Gr=Gr.T,Ge=lt.eb,lt.A),Kt=Gr;for(lt=lt.fb+ve.Ma*lt.A;0<Kt--;){var Vt=_e,Lr=te,Jr=Tr,Or=Ge,Sr=lt;switch(tr){case Vl:Zs(Vt,Lr,Jr,Or,Sr);break;case tu:ll(Vt,Lr,Jr,Or,Sr);break;case du:ll(Vt,Lr,Jr,Or,Sr),Yl(Or,Sr,0,Jr,1,0);break;case ru:Fo(Vt,Lr,Jr,Or,Sr);break;case Ql:In(Vt,Lr,Jr,Or,Sr,1);break;case Al:In(Vt,Lr,Jr,Or,Sr,1),Yl(Or,Sr,0,Jr,1,0);break;case Ml:In(Vt,Lr,Jr,Or,Sr,0);break;case kl:In(Vt,Lr,Jr,Or,Sr,0),Yl(Or,Sr,1,Jr,1,0);break;case nu:lo(Vt,Lr,Jr,Or,Sr);break;case Pl:lo(Vt,Lr,Jr,Or,Sr),yu(Or,Sr,Jr,1,0);break;case Jl:Ka(Vt,Lr,Jr,Or,Sr);break;default:be(0)}te+=ye,lt+=Rt}ve.Ma+=Gr}else alert("todo:EmitRescaledRowsYUVA");be(ve.Ma<=pt.height)}}ve.C=Ke,be(ve.C<=ve.i)}function Pa(ve){var Ke;if(0<ve.ua)return 0;for(Ke=0;Ke<ve.Wb;++Ke){var pt=ve.Ya[Ke].G,tr=ve.Ya[Ke].H;if(0<pt[1][tr[1]+0].g||0<pt[2][tr[2]+0].g||0<pt[3][tr[3]+0].g)return 0}return 1}function ka(ve,Ke,pt,tr,Tr,Gr){if(ve.Z!=0){var _e=ve.qd,te=ve.rd;for(be(oo[ve.Z]!=null);Ke<pt;++Ke)oo[ve.Z](_e,te,tr,Tr,tr,Tr,Gr),_e=tr,te=Tr,Tr+=Gr;ve.qd=_e,ve.rd=te}}function Ia(ve,Ke){var pt=ve.l.ma,tr=pt.Z==0||pt.Z==1?ve.l.j:ve.C;if(tr=ve.C<tr?tr:ve.C,be(Ke<=ve.l.o),Ke>tr){var Tr=ve.l.width,Gr=pt.ca,_e=pt.tb+Tr*tr,te=ve.V,ye=ve.Ba+ve.c*tr,Ge=ve.gc;be(ve.ab==1),be(Ge[0].hc==3),sl(Ge[0],tr,Ke,te,ye,Gr,_e),ka(pt,tr,Ke,Gr,_e,Tr)}ve.C=ve.Ma=Ke}function Ea(ve,Ke,pt,tr,Tr,Gr,_e){var te=ve.$/tr,ye=ve.$%tr,Ge=ve.m,lt=ve.s,Rt=pt+ve.$,Kt=Rt;Tr=pt+tr*Tr;var Vt=pt+tr*Gr,Lr=280+lt.ua,Jr=ve.Pb?te:16777216,Or=0<lt.ua?lt.Wa:null,Sr=lt.wc,Vr=Rt<Vt?ea(lt,ye,te):null;be(ve.C<Gr),be(Vt<=Tr);var qr=!1;e:for(;;){for(;qr||Rt<Vt;){var Tn=0;if(te>=Jr){var ci=Rt-pt;be((Jr=ve).Pb),Jr.wd=Jr.m,Jr.xd=ci,0<Jr.s.ua&&hn(Jr.s.Wa,Jr.s.vb),Jr=te+hu}if(ye&Sr||(Vr=ea(lt,ye,te)),be(Vr!=null),Vr.Qb&&(Ke[Rt]=Vr.qb,qr=!0),!qr)if(zn(Ge),Vr.jc){Tn=Ge,ci=Ke;var Ai=Rt,Vi=Vr.pd[dn(Tn)&Ya-1];be(Vr.jc),256>Vi.g?(Fn(Tn,Tn.u+Vi.g),ci[Ai]=Vi.value,Tn=0):(Fn(Tn,Tn.u+Vi.g-256),be(256<=Vi.value),Tn=Vi.value),Tn==0&&(qr=!0)}else Tn=Ki(Vr.G[0],Vr.H[0],Ge);if(Ge.h)break;if(qr||256>Tn){if(!qr)if(Vr.nd)Ke[Rt]=(Vr.qb|Tn<<8)>>>0;else{if(zn(Ge),qr=Ki(Vr.G[1],Vr.H[1],Ge),zn(Ge),ci=Ki(Vr.G[2],Vr.H[2],Ge),Ai=Ki(Vr.G[3],Vr.H[3],Ge),Ge.h)break;Ke[Rt]=(Ai<<24|qr<<16|Tn<<8|ci)>>>0}if(qr=!1,++Rt,++ye>=tr&&(ye=0,++te,_e!=null&&te<=Gr&&!(te%16)&&_e(ve,te),Or!=null))for(;Kt<Rt;)Tn=Ke[Kt++],Or.X[(506832829*Tn&4294967295)>>>Or.Mb]=Tn}else if(280>Tn){if(Tn=na(Tn-256,Ge),ci=Ki(Vr.G[4],Vr.H[4],Ge),zn(Ge),ci=Ui(tr,ci=na(ci,Ge)),Ge.h)break;if(Rt-pt<ci||Tr-Rt<Tn)break e;for(Ai=0;Ai<Tn;++Ai)Ke[Rt+Ai]=Ke[Rt+Ai-ci];for(Rt+=Tn,ye+=Tn;ye>=tr;)ye-=tr,++te,_e!=null&&te<=Gr&&!(te%16)&&_e(ve,te);if(be(Rt<=Tr),ye&Sr&&(Vr=ea(lt,ye,te)),Or!=null)for(;Kt<Rt;)Tn=Ke[Kt++],Or.X[(506832829*Tn&4294967295)>>>Or.Mb]=Tn}else{if(!(Tn<Lr))break e;for(qr=Tn-280,be(Or!=null);Kt<Rt;)Tn=Ke[Kt++],Or.X[(506832829*Tn&4294967295)>>>Or.Mb]=Tn;Tn=Rt,be(!(qr>>>(ci=Or).Xa)),Ke[Tn]=ci.X[qr],qr=!0}qr||be(Ge.h==Ln(Ge))}if(ve.Pb&&Ge.h&&Rt<Tr)be(ve.m.h),ve.a=5,ve.m=ve.wd,ve.$=ve.xd,0<ve.s.ua&&hn(ve.s.vb,ve.s.Wa);else{if(Ge.h)break e;_e!=null&&_e(ve,te>Gr?Gr:te),ve.a=0,ve.$=Rt-pt}return 1}return ve.a=3,0}function So(ve){be(ve!=null),ve.vc=null,ve.yc=null,ve.Ya=null;var Ke=ve.Wa;Ke!=null&&(Ke.X=null),ve.vb=null,be(ve!=null)}function Ga(){var ve=new no;return ve==null?null:(ve.a=0,ve.xb=La,Gn("Predictor","VP8LPredictors"),Gn("Predictor","VP8LPredictors_C"),Gn("PredictorAdd","VP8LPredictorsAdd"),Gn("PredictorAdd","VP8LPredictorsAdd_C"),Js=pn,ha=cr,Zs=Br,ll=$r,lo=wn,Ka=rn,Fo=On,zt.VP8LMapColor32b=fl,zt.VP8LMapColor8b=Ks,ve)}function Va(ve,Ke,pt,tr,Tr){var Gr=1,_e=[ve],te=[Ke],ye=tr.m,Ge=tr.s,lt=null,Rt=0;e:for(;;){if(pt)for(;Gr&&ei(ye,1);){var Kt=_e,Vt=te,Lr=tr,Jr=1,Or=Lr.m,Sr=Lr.gc[Lr.ab],Vr=ei(Or,2);if(Lr.Oc&1<<Vr)Gr=0;else{switch(Lr.Oc|=1<<Vr,Sr.hc=Vr,Sr.Ea=Kt[0],Sr.nc=Vt[0],Sr.K=[null],++Lr.ab,be(4>=Lr.ab),Vr){case 0:case 1:Sr.b=ei(Or,3)+2,Jr=Va(ki(Sr.Ea,Sr.b),ki(Sr.nc,Sr.b),0,Lr,Sr.K),Sr.K=Sr.K[0];break;case 3:var qr,Tn=ei(Or,8)+1,ci=16<Tn?0:4<Tn?1:2<Tn?2:3;if(Kt[0]=ki(Sr.Ea,ci),Sr.b=ci,qr=Jr=Va(Tn,1,0,Lr,Sr.K)){var Ai,Vi=Tn,Ni=Sr,Oa=1<<(8>>Ni.b),Zi=Xe(Oa);if(Zi==null)qr=0;else{var Wa=Ni.K[0],Na=Ni.w;for(Zi[0]=Ni.K[0][0],Ai=1;Ai<1*Vi;++Ai)Zi[Ai]=ji(Wa[Na+Ai],Zi[Ai-1]);for(;Ai<4*Oa;++Ai)Zi[Ai]=0;Ni.K[0]=null,Ni.K[0]=Zi,qr=1}}Jr=qr;break;case 2:break;default:be(0)}Gr=Jr}}if(_e=_e[0],te=te[0],Gr&&ei(ye,1)&&!(Gr=1<=(Rt=ei(ye,4))&&11>=Rt)){tr.a=3;break e}var Ba;if(Ba=Gr)t:{var Lo,k,W,q=tr,ne=_e,le=te,Fe=Rt,mt=pt,Ut=q.m,nr=q.s,lr=[null],Sn=1,Bn=0,Zn=_u[Fe];r:for(;;){if(mt&&ei(Ut,1)){var ni=ei(Ut,3)+2,Pi=ki(ne,ni),Ji=ki(le,ni),ua=Pi*Ji;if(!Va(Pi,Ji,0,q,lr))break r;for(lr=lr[0],nr.xc=ni,Lo=0;Lo<ua;++Lo){var la=lr[Lo]>>8&65535;lr[Lo]=la,la>=Sn&&(Sn=la+1)}}if(Ut.h)break r;for(k=0;5>k;++k){var oa=Iu[k];!k&&0<Fe&&(oa+=1<<Fe),Bn<oa&&(Bn=oa)}var xa=qe(Sn*Zn,Qt),Ma=Sn,To=qe(Ma,or);if(To==null)var so=null;else be(65536>=Ma),so=To;var Yo=Xe(Bn);if(so==null||Yo==null||xa==null){q.a=1;break r}var os=xa;for(Lo=W=0;Lo<Sn;++Lo){var Ls=so[Lo],bs=Ls.G,nl=Ls.H,bl=0,Gs=1,wl=0;for(k=0;5>k;++k){oa=Iu[k],bs[k]=os,nl[k]=W,!k&&0<Fe&&(oa+=1<<Fe);i:{var il,$s=oa,Xs=q,Fs=Yo,vl=os,Du=W,Wl=0,Ys=Xs.m,Dl=ei(Ys,1);if(Qe(Fs,0,0,$s),Dl){var ol=ei(Ys,1)+1,tc=ei(Ys,1),Da=ei(Ys,tc==0?1:8);Fs[Da]=1,ol==2&&(Fs[Da=ei(Ys,8)]=1);var El=1}else{var Xl=Xe(19),Ms=ei(Ys,4)+4;if(19<Ms){Xs.a=3;var lu=0;break i}for(il=0;il<Ms;++il)Xl[xl[il]]=ei(Ys,3);var As=void 0,js=void 0,rc=Xs,xc=Xl,Uu=$s,wc=Fs,Vu=0,Ru=rc.m,Sc=8,fc=qe(128,Qt);n:for(;Lt(fc,0,7,xc,19);){if(ei(Ru,1)){var Ec=2+2*ei(Ru,3);if((As=2+ei(Ru,Ec))>Uu)break n}else As=Uu;for(js=0;js<Uu&&As--;){zn(Ru);var pc=fc[0+(127&dn(Ru))];Fn(Ru,Ru.u+pc.g);var ju=pc.value;if(16>ju)wc[js++]=ju,ju!=0&&(Sc=ju);else{var Cc=ju==16,mc=ju-16,Tc=Il[mc],gc=ei(Ru,Zl[mc])+Tc;if(js+gc>Uu)break n;for(var Oc=Cc?Sc:0;0<gc--;)wc[js++]=Oc}}Vu=1;break n}Vu||(rc.a=3),El=Vu}(El=El&&!Ys.h)&&(Wl=Lt(vl,Du,8,Fs,$s)),El&&Wl!=0?lu=Wl:(Xs.a=3,lu=0)}if(lu==0)break r;if(Gs&&pl[k]==1&&(Gs=os[W].g==0),bl+=os[W].g,W+=lu,3>=k){var nc,vc=Yo[0];for(nc=1;nc<oa;++nc)Yo[nc]>vc&&(vc=Yo[nc]);wl+=vc}}if(Ls.nd=Gs,Ls.Qb=0,Gs&&(Ls.qb=(bs[3][nl[3]+0].value<<24|bs[1][nl[1]+0].value<<16|bs[2][nl[2]+0].value)>>>0,bl==0&&256>bs[0][nl[0]+0].value&&(Ls.Qb=1,Ls.qb+=bs[0][nl[0]+0].value<<8)),Ls.jc=!Ls.Qb&&6>wl,Ls.jc){var Hu,hl=Ls;for(Hu=0;Hu<Ya;++Hu){var Ou=Hu,uu=hl.pd[Ou],uc=hl.G[0][hl.H[0]+Ou];256<=uc.value?(uu.g=uc.g+256,uu.value=uc.value):(uu.g=0,uu.value=0,Ou>>=ra(uc,8,uu),Ou>>=ra(hl.G[1][hl.H[1]+Ou],16,uu),Ou>>=ra(hl.G[2][hl.H[2]+Ou],0,uu),ra(hl.G[3][hl.H[3]+Ou],24,uu))}}}nr.vc=lr,nr.Wb=Sn,nr.Ya=so,nr.yc=xa,Ba=1;break t}Ba=0}if(!(Gr=Ba)){tr.a=3;break e}if(0<Rt){if(Ge.ua=1<<Rt,!oi(Ge.Wa,Rt)){tr.a=1,Gr=0;break e}}else Ge.ua=0;var Ac=tr,cc=_e,Gu=te,Xu=Ac.s,yc=Xu.xc;if(Ac.c=cc,Ac.i=Gu,Xu.md=ki(cc,yc),Xu.wc=yc==0?-1:(1<<yc)-1,pt){tr.xb=Ho;break e}if((lt=Xe(_e*te))==null){tr.a=1,Gr=0;break e}Gr=(Gr=Ea(tr,lt,0,_e,te,te,null))&&!ye.h;break e}return Gr?(Tr!=null?Tr[0]=lt:(be(lt==null),be(pt)),tr.$=0,pt||So(Ge)):So(Ge),Gr}function Ra(ve,Ke){var pt=ve.c*ve.i,tr=pt+Ke+16*Ke;return be(ve.c<=Ke),ve.V=Xe(tr),ve.V==null?(ve.Ta=null,ve.Ua=0,ve.a=1,0):(ve.Ta=ve.V,ve.Ua=ve.Ba+pt+Ke,1)}function po(ve,Ke){var pt=ve.C,tr=Ke-pt,Tr=ve.V,Gr=ve.Ba+ve.c*pt;for(be(Ke<=ve.l.o);0<tr;){var _e=16<tr?16:tr,te=ve.l.ma,ye=ve.l.width,Ge=ye*_e,lt=te.ca,Rt=te.tb+ye*pt,Kt=ve.Ta,Vt=ve.Ua;va(ve,_e,Tr,Gr),Rl(Kt,Vt,lt,Rt,Ge),ka(te,pt,pt+_e,lt,Rt,ye),tr-=_e,Tr+=_e*ve.c,pt+=_e}be(pt==Ke),ve.C=ve.Ma=Ke}function mo(){this.ub=this.yd=this.td=this.Rb=0}function Aa(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Io(){this.Fb=this.Bb=this.Cb=0,this.Zb=Xe(4),this.Lb=Xe(4)}function go(){this.Yb=function(){var ve=[];return function Ke(pt,tr,Tr){for(var Gr=Tr[tr],_e=0;_e<Gr&&(pt.push(Tr.length>tr+1?[]:0),!(Tr.length<tr+1));_e++)Ke(pt[_e],tr+1,Tr)}(ve,0,[3,11]),ve}()}function Qa(){this.jb=Xe(3),this.Wc=yt([4,8],go),this.Xc=yt([4,17],go)}function wo(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new Xe(4),this.od=new Xe(4)}function pa(){this.ld=this.La=this.dd=this.tc=0}function to(){this.Na=this.la=0}function ao(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Bo(){this.ad=Xe(384),this.Za=0,this.Ob=Xe(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ja(){this.uc=this.M=this.Nb=0,this.wa=Array(new pa),this.Y=0,this.ya=Array(new Bo),this.aa=0,this.l=new ja}function _o(){this.y=Xe(16),this.f=Xe(8),this.ea=Xe(8)}function Ao(){this.cb=this.a=0,this.sc="",this.m=new Zr,this.Od=new mo,this.Kc=new Aa,this.ed=new wo,this.Qa=new Io,this.Ic=this.$c=this.Aa=0,this.D=new Ja,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=qe(8,Zr),this.ia=0,this.pb=qe(4,ao),this.Pa=new Qa,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new _o),this.Hd=0,this.rb=Array(new to),this.sb=0,this.wa=Array(new pa),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Bo),this.L=this.aa=0,this.gd=yt([4,2],pa),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function za(ve,Ke){return 0>ve?0:ve>Ke?Ke:ve}function ja(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function da(){var ve=new Ao;return ve!=null&&(ve.a=0,ve.sc="OK",ve.cb=0,ve.Xb=0,Ul||(Ul=Ir)),ve}function rt(ve,Ke,pt){return ve.a==0&&(ve.a=Ke,ve.sc=pt,ve.cb=0),0}function ar(ve,Ke,pt){return 3<=pt&&ve[Ke+0]==157&&ve[Ke+1]==1&&ve[Ke+2]==42}function Fr(ve,Ke){if(ve==null)return 0;if(ve.a=0,ve.sc="OK",Ke==null)return rt(ve,2,"null VP8Io passed to VP8GetHeaders()");var pt=Ke.data,tr=Ke.w,Tr=Ke.ha;if(4>Tr)return rt(ve,7,"Truncated header.");var Gr=pt[tr+0]|pt[tr+1]<<8|pt[tr+2]<<16,_e=ve.Od;if(_e.Rb=!(1&Gr),_e.td=Gr>>1&7,_e.yd=Gr>>4&1,_e.ub=Gr>>5,3<_e.td)return rt(ve,3,"Incorrect keyframe parameters.");if(!_e.yd)return rt(ve,4,"Frame not displayable.");tr+=3,Tr-=3;var te=ve.Kc;if(_e.Rb){if(7>Tr)return rt(ve,7,"cannot parse picture header");if(!ar(pt,tr,Tr))return rt(ve,3,"Bad code word");te.c=16383&(pt[tr+4]<<8|pt[tr+3]),te.Td=pt[tr+4]>>6,te.i=16383&(pt[tr+6]<<8|pt[tr+5]),te.Ud=pt[tr+6]>>6,tr+=7,Tr-=7,ve.za=te.c+15>>4,ve.Ub=te.i+15>>4,Ke.width=te.c,Ke.height=te.i,Ke.Da=0,Ke.j=0,Ke.v=0,Ke.va=Ke.width,Ke.o=Ke.height,Ke.da=0,Ke.ib=Ke.width,Ke.hb=Ke.height,Ke.U=Ke.width,Ke.T=Ke.height,Qe((Gr=ve.Pa).jb,0,255,Gr.jb.length),be((Gr=ve.Qa)!=null),Gr.Cb=0,Gr.Bb=0,Gr.Fb=1,Qe(Gr.Zb,0,0,Gr.Zb.length),Qe(Gr.Lb,0,0,Gr.Lb)}if(_e.ub>Tr)return rt(ve,7,"bad partition length");Cr(Gr=ve.m,pt,tr,_e.ub),tr+=_e.ub,Tr-=_e.ub,_e.Rb&&(te.Ld=ii(Gr),te.Kd=ii(Gr)),te=ve.Qa;var ye,Ge=ve.Pa;if(be(Gr!=null),be(te!=null),te.Cb=ii(Gr),te.Cb){if(te.Bb=ii(Gr),ii(Gr)){for(te.Fb=ii(Gr),ye=0;4>ye;++ye)te.Zb[ye]=ii(Gr)?Kr(Gr,7):0;for(ye=0;4>ye;++ye)te.Lb[ye]=ii(Gr)?Kr(Gr,6):0}if(te.Bb)for(ye=0;3>ye;++ye)Ge.jb[ye]=ii(Gr)?Er(Gr,8):255}else te.Bb=0;if(Gr.Ka)return rt(ve,3,"cannot parse segment header");if((te=ve.ed).zd=ii(Gr),te.Tb=Er(Gr,6),te.wb=Er(Gr,3),te.Pc=ii(Gr),te.Pc&&ii(Gr)){for(Ge=0;4>Ge;++Ge)ii(Gr)&&(te.vd[Ge]=Kr(Gr,6));for(Ge=0;4>Ge;++Ge)ii(Gr)&&(te.od[Ge]=Kr(Gr,6))}if(ve.L=te.Tb==0?0:te.zd?1:2,Gr.Ka)return rt(ve,3,"cannot parse filter header");var lt=Tr;if(Tr=ye=tr,tr=ye+lt,te=lt,ve.Xb=(1<<Er(ve.m,2))-1,lt<3*(Ge=ve.Xb))pt=7;else{for(ye+=3*Ge,te-=3*Ge,lt=0;lt<Ge;++lt){var Rt=pt[Tr+0]|pt[Tr+1]<<8|pt[Tr+2]<<16;Rt>te&&(Rt=te),Cr(ve.Jc[+lt],pt,ye,Rt),ye+=Rt,te-=Rt,Tr+=3}Cr(ve.Jc[+Ge],pt,ye,te),pt=ye<tr?0:5}if(pt!=0)return rt(ve,pt,"cannot parse partitions");for(pt=Er(ye=ve.m,7),Tr=ii(ye)?Kr(ye,4):0,tr=ii(ye)?Kr(ye,4):0,te=ii(ye)?Kr(ye,4):0,Ge=ii(ye)?Kr(ye,4):0,ye=ii(ye)?Kr(ye,4):0,lt=ve.Qa,Rt=0;4>Rt;++Rt){if(lt.Cb){var Kt=lt.Zb[Rt];lt.Fb||(Kt+=pt)}else{if(0<Rt){ve.pb[Rt]=ve.pb[0];continue}Kt=pt}var Vt=ve.pb[Rt];Vt.Sc[0]=_l[za(Kt+Tr,127)],Vt.Sc[1]=ml[za(Kt+0,127)],Vt.Eb[0]=2*_l[za(Kt+tr,127)],Vt.Eb[1]=101581*ml[za(Kt+te,127)]>>16,8>Vt.Eb[1]&&(Vt.Eb[1]=8),Vt.Qc[0]=_l[za(Kt+Ge,117)],Vt.Qc[1]=ml[za(Kt+ye,127)],Vt.lc=Kt+ye}if(!_e.Rb)return rt(ve,4,"Not a key frame.");for(ii(Gr),_e=ve.Pa,pt=0;4>pt;++pt){for(Tr=0;8>Tr;++Tr)for(tr=0;3>tr;++tr)for(te=0;11>te;++te)Ge=qn(Gr,$l[pt][Tr][tr][te])?Er(Gr,8):jl[pt][Tr][tr][te],_e.Wc[pt][Tr].Yb[tr][te]=Ge;for(Tr=0;17>Tr;++Tr)_e.Xc[pt][Tr]=_e.Wc[pt][ou[Tr]]}return ve.kc=ii(Gr),ve.kc&&(ve.Bd=Er(Gr,8)),ve.cb=1}function Ir(ve,Ke,pt,tr,Tr,Gr,_e){var te=Ke[Tr].Yb[pt];for(pt=0;16>Tr;++Tr){if(!qn(ve,te[pt+0]))return Tr;for(;!qn(ve,te[pt+1]);)if(te=Ke[++Tr].Yb[0],pt=0,Tr==16)return 16;var ye=Ke[Tr+1].Yb;if(qn(ve,te[pt+2])){var Ge=ve,lt=0;if(qn(Ge,(Kt=te)[(Rt=pt)+3]))if(qn(Ge,Kt[Rt+6])){for(te=0,Rt=2*(lt=qn(Ge,Kt[Rt+8]))+(Kt=qn(Ge,Kt[Rt+9+lt])),lt=0,Kt=xu[Rt];Kt[te];++te)lt+=lt+qn(Ge,Kt[te]);lt+=3+(8<<Rt)}else qn(Ge,Kt[Rt+7])?(lt=7+2*qn(Ge,165),lt+=qn(Ge,145)):lt=5+qn(Ge,159);else lt=qn(Ge,Kt[Rt+4])?3+qn(Ge,Kt[Rt+5]):2;te=ye[2]}else lt=1,te=ye[1];ye=_e+Eu[Tr],0>(Ge=ve).b&&ui(Ge);var Rt,Kt=Ge.b,Vt=(Rt=Ge.Ca>>1)-(Ge.I>>Kt)>>31;--Ge.b,Ge.Ca+=Vt,Ge.Ca|=1,Ge.I-=(Rt+1&Vt)<<Kt,Gr[ye]=((lt^Vt)-Vt)*tr[(0<Tr)+0]}return 16}function En(ve){var Ke=ve.rb[ve.sb-1];Ke.la=0,Ke.Na=0,Qe(ve.zc,0,0,ve.zc.length),ve.ja=0}function zr(ve,Ke){if(ve==null)return 0;if(Ke==null)return rt(ve,2,"NULL VP8Io parameter in VP8Decode().");if(!ve.cb&&!Fr(ve,Ke))return 0;if(be(ve.cb),Ke.ac==null||Ke.ac(Ke)){Ke.ob&&(ve.L=0);var pt=gu[ve.L];if(ve.L==2?(ve.yb=0,ve.zb=0):(ve.yb=Ke.v-pt>>4,ve.zb=Ke.j-pt>>4,0>ve.yb&&(ve.yb=0),0>ve.zb&&(ve.zb=0)),ve.Va=Ke.o+15+pt>>4,ve.Hb=Ke.va+15+pt>>4,ve.Hb>ve.za&&(ve.Hb=ve.za),ve.Va>ve.Ub&&(ve.Va=ve.Ub),0<ve.L){var tr=ve.ed;for(pt=0;4>pt;++pt){var Tr;if(ve.Qa.Cb){var Gr=ve.Qa.Lb[pt];ve.Qa.Fb||(Gr+=tr.Tb)}else Gr=tr.Tb;for(Tr=0;1>=Tr;++Tr){var _e=ve.gd[pt][Tr],te=Gr;if(tr.Pc&&(te+=tr.vd[0],Tr&&(te+=tr.od[0])),0<(te=0>te?0:63<te?63:te)){var ye=te;0<tr.wb&&(ye=4<tr.wb?ye>>2:ye>>1)>9-tr.wb&&(ye=9-tr.wb),1>ye&&(ye=1),_e.dd=ye,_e.tc=2*te+ye,_e.ld=40<=te?2:15<=te?1:0}else _e.tc=0;_e.La=Tr}}}pt=0}else rt(ve,6,"Frame setup failed"),pt=ve.a;if(pt=pt==0){if(pt){ve.$c=0,0<ve.Aa||(ve.Ic=vu);e:{pt=ve.Ic,tr=4*(ye=ve.za);var Ge=32*ye,lt=ye+1,Rt=0<ve.L?ye*(0<ve.Aa?2:1):0,Kt=(ve.Aa==2?2:1)*ye;if((_e=tr+832+(Tr=3*(16*pt+gu[ve.L])/2*Ge)+(Gr=ve.Fa!=null&&0<ve.Fa.length?ve.Kc.c*ve.Kc.i:0))!=_e)pt=0;else{if(_e>ve.Vb){if(ve.Vb=0,ve.Ec=Xe(_e),ve.Fc=0,ve.Ec==null){pt=rt(ve,1,"no memory during frame initialization.");break e}ve.Vb=_e}_e=ve.Ec,te=ve.Fc,ve.Ac=_e,ve.Bc=te,te+=tr,ve.Gd=qe(Ge,_o),ve.Hd=0,ve.rb=qe(lt+1,to),ve.sb=1,ve.wa=Rt?qe(Rt,pa):null,ve.Y=0,ve.D.Nb=0,ve.D.wa=ve.wa,ve.D.Y=ve.Y,0<ve.Aa&&(ve.D.Y+=ye),be(!0),ve.oc=_e,ve.pc=te,te+=832,ve.ya=qe(Kt,Bo),ve.aa=0,ve.D.ya=ve.ya,ve.D.aa=ve.aa,ve.Aa==2&&(ve.D.aa+=ye),ve.R=16*ye,ve.B=8*ye,ye=(Ge=gu[ve.L])*ve.R,Ge=Ge/2*ve.B,ve.sa=_e,ve.ta=te+ye,ve.qa=ve.sa,ve.ra=ve.ta+16*pt*ve.R+Ge,ve.Ha=ve.qa,ve.Ia=ve.ra+8*pt*ve.B+Ge,ve.$c=0,te+=Tr,ve.mb=Gr?_e:null,ve.nb=Gr?te:null,be(te+Gr<=ve.Fc+ve.Vb),En(ve),Qe(ve.Ac,ve.Bc,0,tr),pt=1}}if(pt){if(Ke.ka=0,Ke.y=ve.sa,Ke.O=ve.ta,Ke.f=ve.qa,Ke.N=ve.ra,Ke.ea=ve.Ha,Ke.Vd=ve.Ia,Ke.fa=ve.R,Ke.Rc=ve.B,Ke.F=null,Ke.J=0,!Su){for(pt=-255;255>=pt;++pt)zl[255+pt]=0>pt?-pt:pt;for(pt=-1020;1020>=pt;++pt)bu[1020+pt]=-128>pt?-128:127<pt?127:pt;for(pt=-112;112>=pt;++pt)wu[112+pt]=-16>pt?-16:15<pt?15:pt;for(pt=-255;510>=pt;++pt)cu[255+pt]=0>pt?0:255<pt?255:pt;Su=1}Ko=ti,Wo=$n,is=Kn,ms=si,Rs=Xn,Co=Qn,Us=Bs,el=ws,Qs=vs,tl=Ss,_s=cs,Ts=Vo,Ws=ns,Os=es,zs=No,Tl=us,Sl=jo,Ol=Qo,cl[0]=ya,cl[1]=Bi,cl[2]=Gi,cl[3]=ca,cl[4]=Xa,cl[5]=qa,cl[6]=_a,cl[7]=ro,cl[8]=zo,cl[9]=Uo,Is[0]=aa,Is[1]=Xi,Is[2]=ba,Is[3]=ta,Is[4]=fa,Is[5]=xo,Is[6]=Za,Fl[0]=Fa,Fl[1]=yi,Fl[2]=hs,Fl[3]=Po,Fl[4]=Ca,Fl[5]=$a,Fl[6]=Eo,pt=1}else pt=0}pt&&(pt=function(Vt,Lr){for(Vt.M=0;Vt.M<Vt.Va;++Vt.M){var Jr,Or=Vt.Jc[Vt.M&Vt.Xb],Sr=Vt.m,Vr=Vt;for(Jr=0;Jr<Vr.za;++Jr){var qr=Sr,Tn=Vr,ci=Tn.Ac,Ai=Tn.Bc+4*Jr,Vi=Tn.zc,Ni=Tn.ya[Tn.aa+Jr];if(Tn.Qa.Bb?Ni.$b=qn(qr,Tn.Pa.jb[0])?2+qn(qr,Tn.Pa.jb[2]):qn(qr,Tn.Pa.jb[1]):Ni.$b=0,Tn.kc&&(Ni.Ad=qn(qr,Tn.Bd)),Ni.Za=!qn(qr,145)+0,Ni.Za){var Oa=Ni.Ob,Zi=0;for(Tn=0;4>Tn;++Tn){var Wa,Na=Vi[0+Tn];for(Wa=0;4>Wa;++Wa){Na=au[ci[Ai+Wa]][Na];for(var Ba=fu[qn(qr,Na[0])];0<Ba;)Ba=fu[2*Ba+qn(qr,Na[Ba])];Na=-Ba,ci[Ai+Wa]=Na}Ue(Oa,Zi,ci,Ai,4),Zi+=4,Vi[0+Tn]=Na}}else Na=qn(qr,156)?qn(qr,128)?1:3:qn(qr,163)?2:0,Ni.Ob[0]=Na,Qe(ci,Ai,Na,4),Qe(Vi,0,Na,4);Ni.Dd=qn(qr,142)?qn(qr,114)?qn(qr,183)?1:3:2:0}if(Vr.m.Ka)return rt(Vt,7,"Premature end-of-partition0 encountered.");for(;Vt.ja<Vt.za;++Vt.ja){if(Vr=Or,qr=(Sr=Vt).rb[Sr.sb-1],ci=Sr.rb[Sr.sb+Sr.ja],Jr=Sr.ya[Sr.aa+Sr.ja],Ai=Sr.kc?Jr.Ad:0)qr.la=ci.la=0,Jr.Za||(qr.Na=ci.Na=0),Jr.Hc=0,Jr.Gc=0,Jr.ia=0;else{var Lo,k;if(qr=ci,ci=Vr,Ai=Sr.Pa.Xc,Vi=Sr.ya[Sr.aa+Sr.ja],Ni=Sr.pb[Vi.$b],Tn=Vi.ad,Oa=0,Zi=Sr.rb[Sr.sb-1],Na=Wa=0,Qe(Tn,Oa,0,384),Vi.Za)var W=0,q=Ai[3];else{Ba=Xe(16);var ne=qr.Na+Zi.Na;if(ne=Ul(ci,Ai[1],ne,Ni.Eb,0,Ba,0),qr.Na=Zi.Na=(0<ne)+0,1<ne)Ko(Ba,0,Tn,Oa);else{var le=Ba[0]+3>>3;for(Ba=0;256>Ba;Ba+=16)Tn[Oa+Ba]=le}W=1,q=Ai[0]}var Fe=15&qr.la,mt=15&Zi.la;for(Ba=0;4>Ba;++Ba){var Ut=1&mt;for(le=k=0;4>le;++le)Fe=Fe>>1|(Ut=(ne=Ul(ci,q,ne=Ut+(1&Fe),Ni.Sc,W,Tn,Oa))>W)<<7,k=k<<2|(3<ne?3:1<ne?2:Tn[Oa+0]!=0),Oa+=16;Fe>>=4,mt=mt>>1|Ut<<7,Wa=(Wa<<8|k)>>>0}for(q=Fe,W=mt>>4,Lo=0;4>Lo;Lo+=2){for(k=0,Fe=qr.la>>4+Lo,mt=Zi.la>>4+Lo,Ba=0;2>Ba;++Ba){for(Ut=1&mt,le=0;2>le;++le)ne=Ut+(1&Fe),Fe=Fe>>1|(Ut=0<(ne=Ul(ci,Ai[2],ne,Ni.Qc,0,Tn,Oa)))<<3,k=k<<2|(3<ne?3:1<ne?2:Tn[Oa+0]!=0),Oa+=16;Fe>>=2,mt=mt>>1|Ut<<5}Na|=k<<4*Lo,q|=Fe<<4<<Lo,W|=(240&mt)<<Lo}qr.la=q,Zi.la=W,Vi.Hc=Wa,Vi.Gc=Na,Vi.ia=43690&Na?0:Ni.ia,Ai=!(Wa|Na)}if(0<Sr.L&&(Sr.wa[Sr.Y+Sr.ja]=Sr.gd[Jr.$b][Jr.Za],Sr.wa[Sr.Y+Sr.ja].La|=!Ai),Vr.Ka)return rt(Vt,7,"Premature end-of-file encountered.")}if(En(Vt),Sr=Lr,Vr=1,Jr=(Or=Vt).D,qr=0<Or.L&&Or.M>=Or.zb&&Or.M<=Or.Va,Or.Aa==0)e:{if(Jr.M=Or.M,Jr.uc=qr,co(Or,Jr),Vr=1,Jr=(k=Or.D).Nb,qr=(Na=gu[Or.L])*Or.R,ci=Na/2*Or.B,Ba=16*Jr*Or.R,le=8*Jr*Or.B,Ai=Or.sa,Vi=Or.ta-qr+Ba,Ni=Or.qa,Tn=Or.ra-ci+le,Oa=Or.Ha,Zi=Or.Ia-ci+le,mt=(Fe=k.M)==0,Wa=Fe>=Or.Va-1,Or.Aa==2&&co(Or,k),k.uc)for(Ut=(ne=Or).D.M,be(ne.D.uc),k=ne.yb;k<ne.Hb;++k){W=k,q=Ut;var nr=(lr=(oa=ne).D).Nb;Lo=oa.R;var lr=lr.wa[lr.Y+W],Sn=oa.sa,Bn=oa.ta+16*nr*Lo+16*W,Zn=lr.dd,ni=lr.tc;if(ni!=0)if(be(3<=ni),oa.L==1)0<W&&Tl(Sn,Bn,Lo,ni+4),lr.La&&Ol(Sn,Bn,Lo,ni),0<q&&zs(Sn,Bn,Lo,ni+4),lr.La&&Sl(Sn,Bn,Lo,ni);else{var Pi=oa.B,Ji=oa.qa,ua=oa.ra+8*nr*Pi+8*W,la=oa.Ha,oa=oa.Ia+8*nr*Pi+8*W;nr=lr.ld,0<W&&(el(Sn,Bn,Lo,ni+4,Zn,nr),tl(Ji,ua,la,oa,Pi,ni+4,Zn,nr)),lr.La&&(Ts(Sn,Bn,Lo,ni,Zn,nr),Os(Ji,ua,la,oa,Pi,ni,Zn,nr)),0<q&&(Us(Sn,Bn,Lo,ni+4,Zn,nr),Qs(Ji,ua,la,oa,Pi,ni+4,Zn,nr)),lr.La&&(_s(Sn,Bn,Lo,ni,Zn,nr),Ws(Ji,ua,la,oa,Pi,ni,Zn,nr))}}if(Or.ia&&alert("todo:DitherRow"),Sr.put!=null){if(k=16*Fe,Fe=16*(Fe+1),mt?(Sr.y=Or.sa,Sr.O=Or.ta+Ba,Sr.f=Or.qa,Sr.N=Or.ra+le,Sr.ea=Or.Ha,Sr.W=Or.Ia+le):(k-=Na,Sr.y=Ai,Sr.O=Vi,Sr.f=Ni,Sr.N=Tn,Sr.ea=Oa,Sr.W=Zi),Wa||(Fe-=Na),Fe>Sr.o&&(Fe=Sr.o),Sr.F=null,Sr.J=null,Or.Fa!=null&&0<Or.Fa.length&&k<Fe&&(Sr.J=An(Or,Sr,k,Fe-k),Sr.F=Or.mb,Sr.F==null&&Sr.F.length==0)){Vr=rt(Or,3,"Could not decode alpha data.");break e}k<Sr.j&&(Na=Sr.j-k,k=Sr.j,be(!(1&Na)),Sr.O+=Or.R*Na,Sr.N+=Or.B*(Na>>1),Sr.W+=Or.B*(Na>>1),Sr.F!=null&&(Sr.J+=Sr.width*Na)),k<Fe&&(Sr.O+=Sr.v,Sr.N+=Sr.v>>1,Sr.W+=Sr.v>>1,Sr.F!=null&&(Sr.J+=Sr.v),Sr.ka=k-Sr.j,Sr.U=Sr.va-Sr.v,Sr.T=Fe-k,Vr=Sr.put(Sr))}Jr+1!=Or.Ic||Wa||(Ue(Or.sa,Or.ta-qr,Ai,Vi+16*Or.R,qr),Ue(Or.qa,Or.ra-ci,Ni,Tn+8*Or.B,ci),Ue(Or.Ha,Or.Ia-ci,Oa,Zi+8*Or.B,ci))}if(!Vr)return rt(Vt,6,"Output aborted.")}return 1}(ve,Ke)),Ke.bc!=null&&Ke.bc(Ke),pt&=1}return pt?(ve.cb=0,pt):0}function yr(ve,Ke,pt,tr,Tr){Tr=ve[Ke+pt+32*tr]+(Tr>>3),ve[Ke+pt+32*tr]=-256&Tr?0>Tr?0:255:Tr}function Cn(ve,Ke,pt,tr,Tr,Gr){yr(ve,Ke,0,pt,tr+Tr),yr(ve,Ke,1,pt,tr+Gr),yr(ve,Ke,2,pt,tr-Gr),yr(ve,Ke,3,pt,tr-Tr)}function Pr(ve){return(20091*ve>>16)+ve}function xn(ve,Ke,pt,tr){var Tr,Gr=0,_e=Xe(16);for(Tr=0;4>Tr;++Tr){var te=ve[Ke+0]+ve[Ke+8],ye=ve[Ke+0]-ve[Ke+8],Ge=(35468*ve[Ke+4]>>16)-Pr(ve[Ke+12]),lt=Pr(ve[Ke+4])+(35468*ve[Ke+12]>>16);_e[Gr+0]=te+lt,_e[Gr+1]=ye+Ge,_e[Gr+2]=ye-Ge,_e[Gr+3]=te-lt,Gr+=4,Ke++}for(Tr=Gr=0;4>Tr;++Tr)te=(ve=_e[Gr+0]+4)+_e[Gr+8],ye=ve-_e[Gr+8],Ge=(35468*_e[Gr+4]>>16)-Pr(_e[Gr+12]),yr(pt,tr,0,0,te+(lt=Pr(_e[Gr+4])+(35468*_e[Gr+12]>>16))),yr(pt,tr,1,0,ye+Ge),yr(pt,tr,2,0,ye-Ge),yr(pt,tr,3,0,te-lt),Gr++,tr+=32}function Qn(ve,Ke,pt,tr){var Tr=ve[Ke+0]+4,Gr=35468*ve[Ke+4]>>16,_e=Pr(ve[Ke+4]),te=35468*ve[Ke+1]>>16;Cn(pt,tr,0,Tr+_e,ve=Pr(ve[Ke+1]),te),Cn(pt,tr,1,Tr+Gr,ve,te),Cn(pt,tr,2,Tr-Gr,ve,te),Cn(pt,tr,3,Tr-_e,ve,te)}function $n(ve,Ke,pt,tr,Tr){xn(ve,Ke,pt,tr),Tr&&xn(ve,Ke+16,pt,tr+4)}function Kn(ve,Ke,pt,tr){Wo(ve,Ke+0,pt,tr,1),Wo(ve,Ke+32,pt,tr+128,1)}function si(ve,Ke,pt,tr){var Tr;for(ve=ve[Ke+0]+4,Tr=0;4>Tr;++Tr)for(Ke=0;4>Ke;++Ke)yr(pt,tr,Ke,Tr,ve)}function Xn(ve,Ke,pt,tr){ve[Ke+0]&&ms(ve,Ke+0,pt,tr),ve[Ke+16]&&ms(ve,Ke+16,pt,tr+4),ve[Ke+32]&&ms(ve,Ke+32,pt,tr+128),ve[Ke+48]&&ms(ve,Ke+48,pt,tr+128+4)}function ti(ve,Ke,pt,tr){var Tr,Gr=Xe(16);for(Tr=0;4>Tr;++Tr){var _e=ve[Ke+0+Tr]+ve[Ke+12+Tr],te=ve[Ke+4+Tr]+ve[Ke+8+Tr],ye=ve[Ke+4+Tr]-ve[Ke+8+Tr],Ge=ve[Ke+0+Tr]-ve[Ke+12+Tr];Gr[0+Tr]=_e+te,Gr[8+Tr]=_e-te,Gr[4+Tr]=Ge+ye,Gr[12+Tr]=Ge-ye}for(Tr=0;4>Tr;++Tr)_e=(ve=Gr[0+4*Tr]+3)+Gr[3+4*Tr],te=Gr[1+4*Tr]+Gr[2+4*Tr],ye=Gr[1+4*Tr]-Gr[2+4*Tr],Ge=ve-Gr[3+4*Tr],pt[tr+0]=_e+te>>3,pt[tr+16]=Ge+ye>>3,pt[tr+32]=_e-te>>3,pt[tr+48]=Ge-ye>>3,tr+=64}function di(ve,Ke,pt){var tr,Tr=Ke-32,Gr=al,_e=255-ve[Tr-1];for(tr=0;tr<pt;++tr){var te,ye=Gr,Ge=_e+ve[Ke-1];for(te=0;te<pt;++te)ve[Ke+te]=ye[Ge+ve[Tr+te]];Ke+=32}}function Bi(ve,Ke){di(ve,Ke,4)}function yi(ve,Ke){di(ve,Ke,8)}function Xi(ve,Ke){di(ve,Ke,16)}function ba(ve,Ke){var pt;for(pt=0;16>pt;++pt)Ue(ve,Ke+32*pt,ve,Ke-32,16)}function ta(ve,Ke){var pt;for(pt=16;0<pt;--pt)Qe(ve,Ke,ve[Ke-1],16),Ke+=32}function Qi(ve,Ke,pt){var tr;for(tr=0;16>tr;++tr)Qe(Ke,pt+32*tr,ve,16)}function aa(ve,Ke){var pt,tr=16;for(pt=0;16>pt;++pt)tr+=ve[Ke-1+32*pt]+ve[Ke+pt-32];Qi(tr>>5,ve,Ke)}function fa(ve,Ke){var pt,tr=8;for(pt=0;16>pt;++pt)tr+=ve[Ke-1+32*pt];Qi(tr>>4,ve,Ke)}function xo(ve,Ke){var pt,tr=8;for(pt=0;16>pt;++pt)tr+=ve[Ke+pt-32];Qi(tr>>4,ve,Ke)}function Za(ve,Ke){Qi(128,ve,Ke)}function Wi(ve,Ke,pt){return ve+2*Ke+pt+2>>2}function Gi(ve,Ke){var pt,tr=Ke-32;for(tr=new Uint8Array([Wi(ve[tr-1],ve[tr+0],ve[tr+1]),Wi(ve[tr+0],ve[tr+1],ve[tr+2]),Wi(ve[tr+1],ve[tr+2],ve[tr+3]),Wi(ve[tr+2],ve[tr+3],ve[tr+4])]),pt=0;4>pt;++pt)Ue(ve,Ke+32*pt,tr,0,tr.length)}function ca(ve,Ke){var pt=ve[Ke-1],tr=ve[Ke-1+32],Tr=ve[Ke-1+64],Gr=ve[Ke-1+96];Li(ve,Ke+0,16843009*Wi(ve[Ke-1-32],pt,tr)),Li(ve,Ke+32,16843009*Wi(pt,tr,Tr)),Li(ve,Ke+64,16843009*Wi(tr,Tr,Gr)),Li(ve,Ke+96,16843009*Wi(Tr,Gr,Gr))}function ya(ve,Ke){var pt,tr=4;for(pt=0;4>pt;++pt)tr+=ve[Ke+pt-32]+ve[Ke-1+32*pt];for(tr>>=3,pt=0;4>pt;++pt)Qe(ve,Ke+32*pt,tr,4)}function Xa(ve,Ke){var pt=ve[Ke-1+0],tr=ve[Ke-1+32],Tr=ve[Ke-1+64],Gr=ve[Ke-1-32],_e=ve[Ke+0-32],te=ve[Ke+1-32],ye=ve[Ke+2-32],Ge=ve[Ke+3-32];ve[Ke+0+96]=Wi(tr,Tr,ve[Ke-1+96]),ve[Ke+1+96]=ve[Ke+0+64]=Wi(pt,tr,Tr),ve[Ke+2+96]=ve[Ke+1+64]=ve[Ke+0+32]=Wi(Gr,pt,tr),ve[Ke+3+96]=ve[Ke+2+64]=ve[Ke+1+32]=ve[Ke+0+0]=Wi(_e,Gr,pt),ve[Ke+3+64]=ve[Ke+2+32]=ve[Ke+1+0]=Wi(te,_e,Gr),ve[Ke+3+32]=ve[Ke+2+0]=Wi(ye,te,_e),ve[Ke+3+0]=Wi(Ge,ye,te)}function _a(ve,Ke){var pt=ve[Ke+1-32],tr=ve[Ke+2-32],Tr=ve[Ke+3-32],Gr=ve[Ke+4-32],_e=ve[Ke+5-32],te=ve[Ke+6-32],ye=ve[Ke+7-32];ve[Ke+0+0]=Wi(ve[Ke+0-32],pt,tr),ve[Ke+1+0]=ve[Ke+0+32]=Wi(pt,tr,Tr),ve[Ke+2+0]=ve[Ke+1+32]=ve[Ke+0+64]=Wi(tr,Tr,Gr),ve[Ke+3+0]=ve[Ke+2+32]=ve[Ke+1+64]=ve[Ke+0+96]=Wi(Tr,Gr,_e),ve[Ke+3+32]=ve[Ke+2+64]=ve[Ke+1+96]=Wi(Gr,_e,te),ve[Ke+3+64]=ve[Ke+2+96]=Wi(_e,te,ye),ve[Ke+3+96]=Wi(te,ye,ye)}function qa(ve,Ke){var pt=ve[Ke-1+0],tr=ve[Ke-1+32],Tr=ve[Ke-1+64],Gr=ve[Ke-1-32],_e=ve[Ke+0-32],te=ve[Ke+1-32],ye=ve[Ke+2-32],Ge=ve[Ke+3-32];ve[Ke+0+0]=ve[Ke+1+64]=Gr+_e+1>>1,ve[Ke+1+0]=ve[Ke+2+64]=_e+te+1>>1,ve[Ke+2+0]=ve[Ke+3+64]=te+ye+1>>1,ve[Ke+3+0]=ye+Ge+1>>1,ve[Ke+0+96]=Wi(Tr,tr,pt),ve[Ke+0+64]=Wi(tr,pt,Gr),ve[Ke+0+32]=ve[Ke+1+96]=Wi(pt,Gr,_e),ve[Ke+1+32]=ve[Ke+2+96]=Wi(Gr,_e,te),ve[Ke+2+32]=ve[Ke+3+96]=Wi(_e,te,ye),ve[Ke+3+32]=Wi(te,ye,Ge)}function ro(ve,Ke){var pt=ve[Ke+0-32],tr=ve[Ke+1-32],Tr=ve[Ke+2-32],Gr=ve[Ke+3-32],_e=ve[Ke+4-32],te=ve[Ke+5-32],ye=ve[Ke+6-32],Ge=ve[Ke+7-32];ve[Ke+0+0]=pt+tr+1>>1,ve[Ke+1+0]=ve[Ke+0+64]=tr+Tr+1>>1,ve[Ke+2+0]=ve[Ke+1+64]=Tr+Gr+1>>1,ve[Ke+3+0]=ve[Ke+2+64]=Gr+_e+1>>1,ve[Ke+0+32]=Wi(pt,tr,Tr),ve[Ke+1+32]=ve[Ke+0+96]=Wi(tr,Tr,Gr),ve[Ke+2+32]=ve[Ke+1+96]=Wi(Tr,Gr,_e),ve[Ke+3+32]=ve[Ke+2+96]=Wi(Gr,_e,te),ve[Ke+3+64]=Wi(_e,te,ye),ve[Ke+3+96]=Wi(te,ye,Ge)}function Uo(ve,Ke){var pt=ve[Ke-1+0],tr=ve[Ke-1+32],Tr=ve[Ke-1+64],Gr=ve[Ke-1+96];ve[Ke+0+0]=pt+tr+1>>1,ve[Ke+2+0]=ve[Ke+0+32]=tr+Tr+1>>1,ve[Ke+2+32]=ve[Ke+0+64]=Tr+Gr+1>>1,ve[Ke+1+0]=Wi(pt,tr,Tr),ve[Ke+3+0]=ve[Ke+1+32]=Wi(tr,Tr,Gr),ve[Ke+3+32]=ve[Ke+1+64]=Wi(Tr,Gr,Gr),ve[Ke+3+64]=ve[Ke+2+64]=ve[Ke+0+96]=ve[Ke+1+96]=ve[Ke+2+96]=ve[Ke+3+96]=Gr}function zo(ve,Ke){var pt=ve[Ke-1+0],tr=ve[Ke-1+32],Tr=ve[Ke-1+64],Gr=ve[Ke-1+96],_e=ve[Ke-1-32],te=ve[Ke+0-32],ye=ve[Ke+1-32],Ge=ve[Ke+2-32];ve[Ke+0+0]=ve[Ke+2+32]=pt+_e+1>>1,ve[Ke+0+32]=ve[Ke+2+64]=tr+pt+1>>1,ve[Ke+0+64]=ve[Ke+2+96]=Tr+tr+1>>1,ve[Ke+0+96]=Gr+Tr+1>>1,ve[Ke+3+0]=Wi(te,ye,Ge),ve[Ke+2+0]=Wi(_e,te,ye),ve[Ke+1+0]=ve[Ke+3+32]=Wi(pt,_e,te),ve[Ke+1+32]=ve[Ke+3+64]=Wi(tr,pt,_e),ve[Ke+1+64]=ve[Ke+3+96]=Wi(Tr,tr,pt),ve[Ke+1+96]=Wi(Gr,Tr,tr)}function hs(ve,Ke){var pt;for(pt=0;8>pt;++pt)Ue(ve,Ke+32*pt,ve,Ke-32,8)}function Po(ve,Ke){var pt;for(pt=0;8>pt;++pt)Qe(ve,Ke,ve[Ke-1],8),Ke+=32}function Mo(ve,Ke,pt){var tr;for(tr=0;8>tr;++tr)Qe(Ke,pt+32*tr,ve,8)}function Fa(ve,Ke){var pt,tr=8;for(pt=0;8>pt;++pt)tr+=ve[Ke+pt-32]+ve[Ke-1+32*pt];Mo(tr>>4,ve,Ke)}function $a(ve,Ke){var pt,tr=4;for(pt=0;8>pt;++pt)tr+=ve[Ke+pt-32];Mo(tr>>3,ve,Ke)}function Ca(ve,Ke){var pt,tr=4;for(pt=0;8>pt;++pt)tr+=ve[Ke-1+32*pt];Mo(tr>>3,ve,Ke)}function Eo(ve,Ke){Mo(128,ve,Ke)}function qo(ve,Ke,pt){var tr=ve[Ke-pt],Tr=ve[Ke+0],Gr=3*(Tr-tr)+Bl[1020+ve[Ke-2*pt]-ve[Ke+pt]],_e=rl[112+(Gr+4>>3)];ve[Ke-pt]=al[255+tr+rl[112+(Gr+3>>3)]],ve[Ke+0]=al[255+Tr-_e]}function vo(ve,Ke,pt,tr){var Tr=ve[Ke+0],Gr=ve[Ke+pt];return dl[255+ve[Ke-2*pt]-ve[Ke-pt]]>tr||dl[255+Gr-Tr]>tr}function rs(ve,Ke,pt,tr){return 4*dl[255+ve[Ke-pt]-ve[Ke+0]]+dl[255+ve[Ke-2*pt]-ve[Ke+pt]]<=tr}function ho(ve,Ke,pt,tr,Tr){var Gr=ve[Ke-3*pt],_e=ve[Ke-2*pt],te=ve[Ke-pt],ye=ve[Ke+0],Ge=ve[Ke+pt],lt=ve[Ke+2*pt],Rt=ve[Ke+3*pt];return 4*dl[255+te-ye]+dl[255+_e-Ge]>tr?0:dl[255+ve[Ke-4*pt]-Gr]<=Tr&&dl[255+Gr-_e]<=Tr&&dl[255+_e-te]<=Tr&&dl[255+Rt-lt]<=Tr&&dl[255+lt-Ge]<=Tr&&dl[255+Ge-ye]<=Tr}function No(ve,Ke,pt,tr){var Tr=2*tr+1;for(tr=0;16>tr;++tr)rs(ve,Ke+tr,pt,Tr)&&qo(ve,Ke+tr,pt)}function us(ve,Ke,pt,tr){var Tr=2*tr+1;for(tr=0;16>tr;++tr)rs(ve,Ke+tr*pt,1,Tr)&&qo(ve,Ke+tr*pt,1)}function jo(ve,Ke,pt,tr){var Tr;for(Tr=3;0<Tr;--Tr)No(ve,Ke+=4*pt,pt,tr)}function Qo(ve,Ke,pt,tr){var Tr;for(Tr=3;0<Tr;--Tr)us(ve,Ke+=4,pt,tr)}function on(ve,Ke,pt,tr,Tr,Gr,_e,te){for(Gr=2*Gr+1;0<Tr--;){if(ho(ve,Ke,pt,Gr,_e))if(vo(ve,Ke,pt,te))qo(ve,Ke,pt);else{var ye=ve,Ge=Ke,lt=pt,Rt=ye[Ge-2*lt],Kt=ye[Ge-lt],Vt=ye[Ge+0],Lr=ye[Ge+lt],Jr=ye[Ge+2*lt],Or=27*(Vr=Bl[1020+3*(Vt-Kt)+Bl[1020+Rt-Lr]])+63>>7,Sr=18*Vr+63>>7,Vr=9*Vr+63>>7;ye[Ge-3*lt]=al[255+ye[Ge-3*lt]+Vr],ye[Ge-2*lt]=al[255+Rt+Sr],ye[Ge-lt]=al[255+Kt+Or],ye[Ge+0]=al[255+Vt-Or],ye[Ge+lt]=al[255+Lr-Sr],ye[Ge+2*lt]=al[255+Jr-Vr]}Ke+=tr}}function Fi(ve,Ke,pt,tr,Tr,Gr,_e,te){for(Gr=2*Gr+1;0<Tr--;){if(ho(ve,Ke,pt,Gr,_e))if(vo(ve,Ke,pt,te))qo(ve,Ke,pt);else{var ye=ve,Ge=Ke,lt=pt,Rt=ye[Ge-lt],Kt=ye[Ge+0],Vt=ye[Ge+lt],Lr=rl[112+((Jr=3*(Kt-Rt))+4>>3)],Jr=rl[112+(Jr+3>>3)],Or=Lr+1>>1;ye[Ge-2*lt]=al[255+ye[Ge-2*lt]+Or],ye[Ge-lt]=al[255+Rt+Jr],ye[Ge+0]=al[255+Kt-Lr],ye[Ge+lt]=al[255+Vt-Or]}Ke+=tr}}function Bs(ve,Ke,pt,tr,Tr,Gr){on(ve,Ke,pt,1,16,tr,Tr,Gr)}function ws(ve,Ke,pt,tr,Tr,Gr){on(ve,Ke,1,pt,16,tr,Tr,Gr)}function cs(ve,Ke,pt,tr,Tr,Gr){var _e;for(_e=3;0<_e;--_e)Fi(ve,Ke+=4*pt,pt,1,16,tr,Tr,Gr)}function Vo(ve,Ke,pt,tr,Tr,Gr){var _e;for(_e=3;0<_e;--_e)Fi(ve,Ke+=4,1,pt,16,tr,Tr,Gr)}function vs(ve,Ke,pt,tr,Tr,Gr,_e,te){on(ve,Ke,Tr,1,8,Gr,_e,te),on(pt,tr,Tr,1,8,Gr,_e,te)}function Ss(ve,Ke,pt,tr,Tr,Gr,_e,te){on(ve,Ke,1,Tr,8,Gr,_e,te),on(pt,tr,1,Tr,8,Gr,_e,te)}function ns(ve,Ke,pt,tr,Tr,Gr,_e,te){Fi(ve,Ke+4*Tr,Tr,1,8,Gr,_e,te),Fi(pt,tr+4*Tr,Tr,1,8,Gr,_e,te)}function es(ve,Ke,pt,tr,Tr,Gr,_e,te){Fi(ve,Ke+4,1,Tr,8,Gr,_e,te),Fi(pt,tr+4,1,Tr,8,Gr,_e,te)}function fs(){this.ba=new vi,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Mi,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function ys(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function ds(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function yo(){this.ua=0,this.Wa=new Ei,this.vb=new Ei,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new or,this.yc=new Qt}function no(){this.xb=this.a=0,this.l=new ja,this.ca=new vi,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new br,this.Pb=0,this.wd=new br,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new yo,this.ab=0,this.gc=qe(4,ds),this.Oc=0}function Jo(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ja,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Go(ve,Ke,pt,tr,Tr,Gr,_e){for(ve=ve==null?0:ve[Ke+0],Ke=0;Ke<_e;++Ke)Tr[Gr+Ke]=ve+pt[tr+Ke]&255,ve=Tr[Gr+Ke]}function xt(ve,Ke,pt,tr,Tr,Gr,_e){var te;if(ve==null)Go(null,null,pt,tr,Tr,Gr,_e);else for(te=0;te<_e;++te)Tr[Gr+te]=ve[Ke+te]+pt[tr+te]&255}function Ft(ve,Ke,pt,tr,Tr,Gr,_e){if(ve==null)Go(null,null,pt,tr,Tr,Gr,_e);else{var te,ye=ve[Ke+0],Ge=ye,lt=ye;for(te=0;te<_e;++te)Ge=lt+(ye=ve[Ke+te])-Ge,lt=pt[tr+te]+(-256&Ge?0>Ge?0:255:Ge)&255,Ge=ye,Tr[Gr+te]=lt}}function An(ve,Ke,pt,tr){var Tr=Ke.width,Gr=Ke.o;if(be(ve!=null&&Ke!=null),0>pt||0>=tr||pt+tr>Gr)return null;if(!ve.Cc){if(ve.ga==null){var _e;if(ve.ga=new Jo,(_e=ve.ga==null)||(_e=Ke.width*Ke.o,be(ve.Gb.length==0),ve.Gb=Xe(_e),ve.Uc=0,ve.Gb==null?_e=0:(ve.mb=ve.Gb,ve.nb=ve.Uc,ve.rc=null,_e=1),_e=!_e),!_e){_e=ve.ga;var te=ve.Fa,ye=ve.P,Ge=ve.qc,lt=ve.mb,Rt=ve.nb,Kt=ye+1,Vt=Ge-1,Lr=_e.l;if(be(te!=null&<!=null&&Ke!=null),oo[0]=null,oo[1]=Go,oo[2]=xt,oo[3]=Ft,_e.ca=lt,_e.tb=Rt,_e.c=Ke.width,_e.i=Ke.height,be(0<_e.c&&0<_e.i),1>=Ge)Ke=0;else if(_e.$a=te[ye+0]>>0&3,_e.Z=te[ye+0]>>2&3,_e.Lc=te[ye+0]>>4&3,ye=te[ye+0]>>6&3,0>_e.$a||1<_e.$a||4<=_e.Z||1<_e.Lc||ye)Ke=0;else if(Lr.put=qi,Lr.ac=$i,Lr.bc=Ti,Lr.ma=_e,Lr.width=Ke.width,Lr.height=Ke.height,Lr.Da=Ke.Da,Lr.v=Ke.v,Lr.va=Ke.va,Lr.j=Ke.j,Lr.o=Ke.o,_e.$a)e:{be(_e.$a==1),Ke=Ga();t:for(;;){if(Ke==null){Ke=0;break e}if(be(_e!=null),_e.mc=Ke,Ke.c=_e.c,Ke.i=_e.i,Ke.l=_e.l,Ke.l.ma=_e,Ke.l.width=_e.c,Ke.l.height=_e.i,Ke.a=0,jn(Ke.m,te,Kt,Vt),!Va(_e.c,_e.i,1,Ke,null))break t;if(Ke.ab==1&&Ke.gc[0].hc==3&&Pa(Ke.s)?(_e.ic=1,te=Ke.c*Ke.i,Ke.Ta=null,Ke.Ua=0,Ke.V=Xe(te),Ke.Ba=0,Ke.V==null?(Ke.a=1,Ke=0):Ke=1):(_e.ic=0,Ke=Ra(Ke,_e.c)),!Ke)break t;Ke=1;break e}_e.mc=null,Ke=0}else Ke=Vt>=_e.c*_e.i;_e=!Ke}if(_e)return null;ve.ga.Lc!=1?ve.Ga=0:tr=Gr-pt}be(ve.ga!=null),be(pt+tr<=Gr);e:{if(Ke=(te=ve.ga).c,Gr=te.l.o,te.$a==0){if(Kt=ve.rc,Vt=ve.Vc,Lr=ve.Fa,ye=ve.P+1+pt*Ke,Ge=ve.mb,lt=ve.nb+pt*Ke,be(ye<=ve.P+ve.qc),te.Z!=0)for(be(oo[te.Z]!=null),_e=0;_e<tr;++_e)oo[te.Z](Kt,Vt,Lr,ye,Ge,lt,Ke),Kt=Ge,Vt=lt,lt+=Ke,ye+=Ke;else for(_e=0;_e<tr;++_e)Ue(Ge,lt,Lr,ye,Ke),Kt=Ge,Vt=lt,lt+=Ke,ye+=Ke;ve.rc=Kt,ve.Vc=Vt}else{if(be(te.mc!=null),Ke=pt+tr,be((_e=te.mc)!=null),be(Ke<=_e.i),_e.C>=Ke)Ke=1;else if(te.ic||ge(),te.ic){te=_e.V,Kt=_e.Ba,Vt=_e.c;var Jr=_e.i,Or=(Lr=1,ye=_e.$/Vt,Ge=_e.$%Vt,lt=_e.m,Rt=_e.s,_e.$),Sr=Vt*Jr,Vr=Vt*Ke,qr=Rt.wc,Tn=Or<Vr?ea(Rt,Ge,ye):null;be(Or<=Sr),be(Ke<=Jr),be(Pa(Rt));t:for(;;){for(;!lt.h&&Or<Vr;){if(Ge&qr||(Tn=ea(Rt,Ge,ye)),be(Tn!=null),zn(lt),256>(Jr=Ki(Tn.G[0],Tn.H[0],lt)))te[Kt+Or]=Jr,++Or,++Ge>=Vt&&(Ge=0,++ye<=Ke&&!(ye%16)&&Ia(_e,ye));else{if(!(280>Jr)){Lr=0;break t}Jr=na(Jr-256,lt);var ci,Ai=Ki(Tn.G[4],Tn.H[4],lt);if(zn(lt),!(Or>=(Ai=Ui(Vt,Ai=na(Ai,lt)))&&Sr-Or>=Jr)){Lr=0;break t}for(ci=0;ci<Jr;++ci)te[Kt+Or+ci]=te[Kt+Or+ci-Ai];for(Or+=Jr,Ge+=Jr;Ge>=Vt;)Ge-=Vt,++ye<=Ke&&!(ye%16)&&Ia(_e,ye);Or<Vr&&Ge&qr&&(Tn=ea(Rt,Ge,ye))}be(lt.h==Ln(lt))}Ia(_e,ye>Ke?Ke:ye);break t}!Lr||lt.h&&Or<Sr?(Lr=0,_e.a=lt.h?5:3):_e.$=Or,Ke=Lr}else Ke=Ea(_e,_e.V,_e.Ba,_e.c,_e.i,Ke,po);if(!Ke){tr=0;break e}}pt+tr>=Gr&&(ve.Cc=1),tr=1}if(!tr)return null;if(ve.Cc&&((tr=ve.ga)!=null&&(tr.mc=null),ve.ga=null,0<ve.Ga))return alert("todo:WebPDequantizeLevels"),null}return ve.nb+pt*Tr}function Hn(ve,Ke,pt,tr,Tr,Gr){for(;0<Tr--;){var _e,te=ve,ye=Ke+(pt?1:0),Ge=ve,lt=Ke+(pt?0:3);for(_e=0;_e<tr;++_e){var Rt=Ge[lt+4*_e];Rt!=255&&(Rt*=32897,te[ye+4*_e+0]=te[ye+4*_e+0]*Rt>>23,te[ye+4*_e+1]=te[ye+4*_e+1]*Rt>>23,te[ye+4*_e+2]=te[ye+4*_e+2]*Rt>>23)}Ke+=Gr}}function hi(ve,Ke,pt,tr,Tr){for(;0<tr--;){var Gr;for(Gr=0;Gr<pt;++Gr){var _e=ve[Ke+2*Gr+0],te=15&(Ge=ve[Ke+2*Gr+1]),ye=4369*te,Ge=(240&Ge|Ge>>4)*ye>>16;ve[Ke+2*Gr+0]=(240&_e|_e>>4)*ye>>16&240|(15&_e|_e<<4)*ye>>16>>4&15,ve[Ke+2*Gr+1]=240&Ge|te}Ke+=Tr}}function At(ve,Ke,pt,tr,Tr,Gr,_e,te){var ye,Ge,lt=255;for(Ge=0;Ge<Tr;++Ge){for(ye=0;ye<tr;++ye){var Rt=ve[Ke+ye];Gr[_e+4*ye]=Rt,lt&=Rt}Ke+=pt,_e+=te}return lt!=255}function se(ve,Ke,pt,tr,Tr){var Gr;for(Gr=0;Gr<Tr;++Gr)pt[tr+Gr]=ve[Ke+Gr]>>8}function ge(){Yl=Hn,yu=hi,ul=At,Rl=se}function Se(ve,Ke,pt){zt[ve]=function(tr,Tr,Gr,_e,te,ye,Ge,lt,Rt,Kt,Vt,Lr,Jr,Or,Sr,Vr,qr){var Tn,ci=qr-1>>1,Ai=te[ye+0]|Ge[lt+0]<<16,Vi=Rt[Kt+0]|Vt[Lr+0]<<16;be(tr!=null);var Ni=3*Ai+Vi+131074>>2;for(Ke(tr[Tr+0],255&Ni,Ni>>16,Jr,Or),Gr!=null&&(Ni=3*Vi+Ai+131074>>2,Ke(Gr[_e+0],255&Ni,Ni>>16,Sr,Vr)),Tn=1;Tn<=ci;++Tn){var Oa=te[ye+Tn]|Ge[lt+Tn]<<16,Zi=Rt[Kt+Tn]|Vt[Lr+Tn]<<16,Wa=Ai+Oa+Vi+Zi+524296,Na=Wa+2*(Oa+Vi)>>3;Ni=Na+Ai>>1,Ai=(Wa=Wa+2*(Ai+Zi)>>3)+Oa>>1,Ke(tr[Tr+2*Tn-1],255&Ni,Ni>>16,Jr,Or+(2*Tn-1)*pt),Ke(tr[Tr+2*Tn-0],255&Ai,Ai>>16,Jr,Or+(2*Tn-0)*pt),Gr!=null&&(Ni=Wa+Vi>>1,Ai=Na+Zi>>1,Ke(Gr[_e+2*Tn-1],255&Ni,Ni>>16,Sr,Vr+(2*Tn-1)*pt),Ke(Gr[_e+2*Tn+0],255&Ai,Ai>>16,Sr,Vr+(2*Tn+0)*pt)),Ai=Oa,Vi=Zi}1&qr||(Ni=3*Ai+Vi+131074>>2,Ke(tr[Tr+qr-1],255&Ni,Ni>>16,Jr,Or+(qr-1)*pt),Gr!=null&&(Ni=3*Vi+Ai+131074>>2,Ke(Gr[_e+qr-1],255&Ni,Ni>>16,Sr,Vr+(qr-1)*pt)))}}function We(){Ro[Vl]=Ps,Ro[tu]=Ll,Ro[ru]=Hl,Ro[Ql]=gl,Ro[Ml]=yl,Ro[nu]=Nl,Ro[Jl]=Kl,Ro[du]=Ll,Ro[Al]=gl,Ro[kl]=yl,Ro[Pl]=Nl}function vt(ve){return ve&~$u?0>ve?0:255:ve>>Pu}function Yt(ve,Ke){return vt((19077*ve>>8)+(26149*Ke>>8)-14234)}function Rr(ve,Ke,pt){return vt((19077*ve>>8)-(6419*Ke>>8)-(13320*pt>>8)+8708)}function Yr(ve,Ke){return vt((19077*ve>>8)+(33050*Ke>>8)-17685)}function mn(ve,Ke,pt,tr,Tr){tr[Tr+0]=Yt(ve,pt),tr[Tr+1]=Rr(ve,Ke,pt),tr[Tr+2]=Yr(ve,Ke)}function Wn(ve,Ke,pt,tr,Tr){tr[Tr+0]=Yr(ve,Ke),tr[Tr+1]=Rr(ve,Ke,pt),tr[Tr+2]=Yt(ve,pt)}function Jn(ve,Ke,pt,tr,Tr){var Gr=Rr(ve,Ke,pt);Ke=Gr<<3&224|Yr(ve,Ke)>>3,tr[Tr+0]=248&Yt(ve,pt)|Gr>>5,tr[Tr+1]=Ke}function ri(ve,Ke,pt,tr,Tr){var Gr=240&Yr(ve,Ke)|15;tr[Tr+0]=240&Yt(ve,pt)|Rr(ve,Ke,pt)>>4,tr[Tr+1]=Gr}function Ii(ve,Ke,pt,tr,Tr){tr[Tr+0]=255,mn(ve,Ke,pt,tr,Tr+1)}function Yi(ve,Ke,pt,tr,Tr){Wn(ve,Ke,pt,tr,Tr),tr[Tr+3]=255}function ma(ve,Ke,pt,tr,Tr){mn(ve,Ke,pt,tr,Tr),tr[Tr+3]=255}function za(ve,Ke){return 0>ve?0:ve>Ke?Ke:ve}function Ta(ve,Ke,pt){zt[ve]=function(tr,Tr,Gr,_e,te,ye,Ge,lt,Rt){for(var Kt=lt+(-2&Rt)*pt;lt!=Kt;)Ke(tr[Tr+0],Gr[_e+0],te[ye+0],Ge,lt),Ke(tr[Tr+1],Gr[_e+0],te[ye+0],Ge,lt+pt),Tr+=2,++_e,++ye,lt+=2*pt;1&Rt&&Ke(tr[Tr+0],Gr[_e+0],te[ye+0],Ge,lt)}}function uo(ve,Ke,pt){return pt==0?ve==0?Ke==0?6:5:Ke==0?4:0:pt}function bo(ve,Ke,pt,tr,Tr){switch(ve>>>30){case 3:Wo(Ke,pt,tr,Tr,0);break;case 2:Co(Ke,pt,tr,Tr);break;case 1:ms(Ke,pt,tr,Tr)}}function co(ve,Ke){var pt,tr,Tr=Ke.M,Gr=Ke.Nb,_e=ve.oc,te=ve.pc+40,ye=ve.oc,Ge=ve.pc+584,lt=ve.oc,Rt=ve.pc+600;for(pt=0;16>pt;++pt)_e[te+32*pt-1]=129;for(pt=0;8>pt;++pt)ye[Ge+32*pt-1]=129,lt[Rt+32*pt-1]=129;for(0<Tr?_e[te-1-32]=ye[Ge-1-32]=lt[Rt-1-32]=129:(Qe(_e,te-32-1,127,21),Qe(ye,Ge-32-1,127,9),Qe(lt,Rt-32-1,127,9)),tr=0;tr<ve.za;++tr){var Kt=Ke.ya[Ke.aa+tr];if(0<tr){for(pt=-1;16>pt;++pt)Ue(_e,te+32*pt-4,_e,te+32*pt+12,4);for(pt=-1;8>pt;++pt)Ue(ye,Ge+32*pt-4,ye,Ge+32*pt+4,4),Ue(lt,Rt+32*pt-4,lt,Rt+32*pt+4,4)}var Vt=ve.Gd,Lr=ve.Hd+tr,Jr=Kt.ad,Or=Kt.Hc;if(0<Tr&&(Ue(_e,te-32,Vt[Lr].y,0,16),Ue(ye,Ge-32,Vt[Lr].f,0,8),Ue(lt,Rt-32,Vt[Lr].ea,0,8)),Kt.Za){var Sr=_e,Vr=te-32+16;for(0<Tr&&(tr>=ve.za-1?Qe(Sr,Vr,Vt[Lr].y[15],4):Ue(Sr,Vr,Vt[Lr+1].y,0,4)),pt=0;4>pt;pt++)Sr[Vr+128+pt]=Sr[Vr+256+pt]=Sr[Vr+384+pt]=Sr[Vr+0+pt];for(pt=0;16>pt;++pt,Or<<=2)Sr=_e,Vr=te+Nu[pt],cl[Kt.Ob[pt]](Sr,Vr),bo(Or,Jr,16*+pt,Sr,Vr)}else if(Sr=uo(tr,Tr,Kt.Ob[0]),Is[Sr](_e,te),Or!=0)for(pt=0;16>pt;++pt,Or<<=2)bo(Or,Jr,16*+pt,_e,te+Nu[pt]);for(pt=Kt.Gc,Sr=uo(tr,Tr,Kt.Dd),Fl[Sr](ye,Ge),Fl[Sr](lt,Rt),Or=Jr,Sr=ye,Vr=Ge,255&(Kt=pt>>0)&&(170&Kt?is(Or,256,Sr,Vr):Rs(Or,256,Sr,Vr)),Kt=lt,Or=Rt,255&(pt>>=8)&&(170&pt?is(Jr,320,Kt,Or):Rs(Jr,320,Kt,Or)),Tr<ve.Ub-1&&(Ue(Vt[Lr].y,0,_e,te+480,16),Ue(Vt[Lr].f,0,ye,Ge+224,8),Ue(Vt[Lr].ea,0,lt,Rt+224,8)),pt=8*Gr*ve.B,Vt=ve.sa,Lr=ve.ta+16*tr+16*Gr*ve.R,Jr=ve.qa,Kt=ve.ra+8*tr+pt,Or=ve.Ha,Sr=ve.Ia+8*tr+pt,pt=0;16>pt;++pt)Ue(Vt,Lr+pt*ve.R,_e,te+32*pt,16);for(pt=0;8>pt;++pt)Ue(Jr,Kt+pt*ve.B,ye,Ge+32*pt,8),Ue(Or,Sr+pt*ve.B,lt,Rt+32*pt,8)}}function Zo(ve,Ke,pt,tr,Tr,Gr,_e,te,ye){var Ge=[0],lt=[0],Rt=0,Kt=ye!=null?ye.kd:0,Vt=ye!=null?ye:new ys;if(ve==null||12>pt)return 7;Vt.data=ve,Vt.w=Ke,Vt.ha=pt,Ke=[Ke],pt=[pt],Vt.gb=[Vt.gb];e:{var Lr=Ke,Jr=pt,Or=Vt.gb;if(be(ve!=null),be(Jr!=null),be(Or!=null),Or[0]=0,12<=Jr[0]&&!Ne(ve,Lr[0],"RIFF")){if(Ne(ve,Lr[0]+8,"WEBP")){Or=3;break e}var Sr=ga(ve,Lr[0]+4);if(12>Sr||4294967286<Sr){Or=3;break e}if(Kt&&Sr>Jr[0]-8){Or=7;break e}Or[0]=Sr,Lr[0]+=12,Jr[0]-=12}Or=0}if(Or!=0)return Or;for(Sr=0<Vt.gb[0],pt=pt[0];;){e:{var Vr=ve;Jr=Ke,Or=pt;var qr=Ge,Tn=lt,ci=Lr=[0];if((Ni=Rt=[Rt])[0]=0,8>Or[0])Or=7;else{if(!Ne(Vr,Jr[0],"VP8X")){if(ga(Vr,Jr[0]+4)!=10){Or=3;break e}if(18>Or[0]){Or=7;break e}var Ai=ga(Vr,Jr[0]+8),Vi=1+Ri(Vr,Jr[0]+12);if(2147483648<=Vi*(Vr=1+Ri(Vr,Jr[0]+15))){Or=3;break e}ci!=null&&(ci[0]=Ai),qr!=null&&(qr[0]=Vi),Tn!=null&&(Tn[0]=Vr),Jr[0]+=18,Or[0]-=18,Ni[0]=1}Or=0}}if(Rt=Rt[0],Lr=Lr[0],Or!=0)return Or;if(Jr=!!(2&Lr),!Sr&&Rt)return 3;if(Gr!=null&&(Gr[0]=!!(16&Lr)),_e!=null&&(_e[0]=Jr),te!=null&&(te[0]=0),_e=Ge[0],Lr=lt[0],Rt&&Jr&&ye==null){Or=0;break}if(4>pt){Or=7;break}if(Sr&&Rt||!Sr&&!Rt&&!Ne(ve,Ke[0],"ALPH")){pt=[pt],Vt.na=[Vt.na],Vt.P=[Vt.P],Vt.Sa=[Vt.Sa];e:{Ai=ve,Or=Ke,Sr=pt;var Ni=Vt.gb;qr=Vt.na,Tn=Vt.P,ci=Vt.Sa,Vi=22,be(Ai!=null),be(Sr!=null),Vr=Or[0];var Oa=Sr[0];for(be(qr!=null),be(ci!=null),qr[0]=null,Tn[0]=null,ci[0]=0;;){if(Or[0]=Vr,Sr[0]=Oa,8>Oa){Or=7;break e}var Zi=ga(Ai,Vr+4);if(4294967286<Zi){Or=3;break e}var Wa=8+Zi+1&-2;if(Vi+=Wa,0<Ni&&Vi>Ni){Or=3;break e}if(!Ne(Ai,Vr,"VP8 ")||!Ne(Ai,Vr,"VP8L")){Or=0;break e}if(Oa[0]<Wa){Or=7;break e}Ne(Ai,Vr,"ALPH")||(qr[0]=Ai,Tn[0]=Vr+8,ci[0]=Zi),Vr+=Wa,Oa-=Wa}}if(pt=pt[0],Vt.na=Vt.na[0],Vt.P=Vt.P[0],Vt.Sa=Vt.Sa[0],Or!=0)break}pt=[pt],Vt.Ja=[Vt.Ja],Vt.xa=[Vt.xa];e:if(Ni=ve,Or=Ke,Sr=pt,qr=Vt.gb[0],Tn=Vt.Ja,ci=Vt.xa,Ai=Or[0],Vr=!Ne(Ni,Ai,"VP8 "),Vi=!Ne(Ni,Ai,"VP8L"),be(Ni!=null),be(Sr!=null),be(Tn!=null),be(ci!=null),8>Sr[0])Or=7;else{if(Vr||Vi){if(Ni=ga(Ni,Ai+4),12<=qr&&Ni>qr-12){Or=3;break e}if(Kt&&Ni>Sr[0]-8){Or=7;break e}Tn[0]=Ni,Or[0]+=8,Sr[0]-=8,ci[0]=Vi}else ci[0]=5<=Sr[0]&&Ni[Ai+0]==47&&!(Ni[Ai+4]>>5),Tn[0]=Sr[0];Or=0}if(pt=pt[0],Vt.Ja=Vt.Ja[0],Vt.xa=Vt.xa[0],Ke=Ke[0],Or!=0)break;if(4294967286<Vt.Ja)return 3;if(te==null||Jr||(te[0]=Vt.xa?2:1),_e=[_e],Lr=[Lr],Vt.xa){if(5>pt){Or=7;break}te=_e,Kt=Lr,Jr=Gr,ve==null||5>pt?ve=0:5<=pt&&ve[Ke+0]==47&&!(ve[Ke+4]>>5)?(Sr=[0],Ni=[0],qr=[0],jn(Tn=new br,ve,Ke,pt),ia(Tn,Sr,Ni,qr)?(te!=null&&(te[0]=Sr[0]),Kt!=null&&(Kt[0]=Ni[0]),Jr!=null&&(Jr[0]=qr[0]),ve=1):ve=0):ve=0}else{if(10>pt){Or=7;break}te=Lr,ve==null||10>pt||!ar(ve,Ke+3,pt-3)?ve=0:(Kt=ve[Ke+0]|ve[Ke+1]<<8|ve[Ke+2]<<16,Jr=16383&(ve[Ke+7]<<8|ve[Ke+6]),ve=16383&(ve[Ke+9]<<8|ve[Ke+8]),1&Kt||3<(Kt>>1&7)||!(Kt>>4&1)||Kt>>5>=Vt.Ja||!Jr||!ve?ve=0:(_e&&(_e[0]=Jr),te&&(te[0]=ve),ve=1))}if(!ve)return 3;if(_e=_e[0],Lr=Lr[0],Rt&&(Ge[0]!=_e||lt[0]!=Lr))return 3;ye!=null&&(ye[0]=Vt,ye.offset=Ke-ye.w,be(4294967286>Ke-ye.w),be(ye.offset==ye.ha-pt));break}return Or==0||Or==7&&Rt&&ye==null?(Gr!=null&&(Gr[0]|=Vt.na!=null&&0<Vt.na.length),tr!=null&&(tr[0]=_e),Tr!=null&&(Tr[0]=Lr),0):Or}function Oo(ve,Ke,pt){var tr=Ke.width,Tr=Ke.height,Gr=0,_e=0,te=tr,ye=Tr;if(Ke.Da=ve!=null&&0<ve.Da,Ke.Da&&(te=ve.cd,ye=ve.bd,Gr=ve.v,_e=ve.j,11>pt||(Gr&=-2,_e&=-2),0>Gr||0>_e||0>=te||0>=ye||Gr+te>tr||_e+ye>Tr))return 0;if(Ke.v=Gr,Ke.j=_e,Ke.va=Gr+te,Ke.o=_e+ye,Ke.U=te,Ke.T=ye,Ke.da=ve!=null&&0<ve.da,Ke.da){if(!Hi(te,ye,pt=[ve.ib],Gr=[ve.hb]))return 0;Ke.ib=pt[0],Ke.hb=Gr[0]}return Ke.ob=ve!=null&&ve.ob,Ke.Kb=ve==null||!ve.Sd,Ke.da&&(Ke.ob=Ke.ib<3*tr/4&&Ke.hb<3*Tr/4,Ke.Kb=0),1}function Do(ve){if(ve==null)return 2;if(11>ve.S){var Ke=ve.f.RGBA;Ke.fb+=(ve.height-1)*Ke.A,Ke.A=-Ke.A}else Ke=ve.f.kb,ve=ve.height,Ke.O+=(ve-1)*Ke.fa,Ke.fa=-Ke.fa,Ke.N+=(ve-1>>1)*Ke.Ab,Ke.Ab=-Ke.Ab,Ke.W+=(ve-1>>1)*Ke.Db,Ke.Db=-Ke.Db,Ke.F!=null&&(Ke.J+=(ve-1)*Ke.lb,Ke.lb=-Ke.lb);return 0}function Ha(ve,Ke,pt,tr){if(tr==null||0>=ve||0>=Ke)return 2;if(pt!=null){if(pt.Da){var Tr=pt.cd,Gr=pt.bd,_e=-2&pt.v,te=-2&pt.j;if(0>_e||0>te||0>=Tr||0>=Gr||_e+Tr>ve||te+Gr>Ke)return 2;ve=Tr,Ke=Gr}if(pt.da){if(!Hi(ve,Ke,Tr=[pt.ib],Gr=[pt.hb]))return 2;ve=Tr[0],Ke=Gr[0]}}tr.width=ve,tr.height=Ke;e:{var ye=tr.width,Ge=tr.height;if(ve=tr.S,0>=ye||0>=Ge||!(ve>=Vl&&13>ve))ve=2;else{if(0>=tr.Rd&&tr.sd==null){_e=Gr=Tr=Ke=0;var lt=(te=ye*Tu[ve])*Ge;if(11>ve||(Gr=(Ge+1)/2*(Ke=(ye+1)/2),ve==12&&(_e=(Tr=ye)*Ge)),(Ge=Xe(lt+2*Gr+_e))==null){ve=1;break e}tr.sd=Ge,11>ve?((ye=tr.f.RGBA).eb=Ge,ye.fb=0,ye.A=te,ye.size=lt):((ye=tr.f.kb).y=Ge,ye.O=0,ye.fa=te,ye.Fd=lt,ye.f=Ge,ye.N=0+lt,ye.Ab=Ke,ye.Cd=Gr,ye.ea=Ge,ye.W=0+lt+Gr,ye.Db=Ke,ye.Ed=Gr,ve==12&&(ye.F=Ge,ye.J=0+lt+2*Gr),ye.Tc=_e,ye.lb=Tr)}if(Ke=1,Tr=tr.S,Gr=tr.width,_e=tr.height,Tr>=Vl&&13>Tr)if(11>Tr)ve=tr.f.RGBA,Ke&=(te=Math.abs(ve.A))*(_e-1)+Gr<=ve.size,Ke&=te>=Gr*Tu[Tr],Ke&=ve.eb!=null;else{ve=tr.f.kb,te=(Gr+1)/2,lt=(_e+1)/2,ye=Math.abs(ve.fa),Ge=Math.abs(ve.Ab);var Rt=Math.abs(ve.Db),Kt=Math.abs(ve.lb),Vt=Kt*(_e-1)+Gr;Ke&=ye*(_e-1)+Gr<=ve.Fd,Ke&=Ge*(lt-1)+te<=ve.Cd,Ke=(Ke&=Rt*(lt-1)+te<=ve.Ed)&ye>=Gr&Ge>=te&Rt>=te,Ke&=ve.y!=null,Ke&=ve.f!=null,Ke&=ve.ea!=null,Tr==12&&(Ke&=Kt>=Gr,Ke&=Vt<=ve.Tc,Ke&=ve.F!=null)}else Ke=0;ve=Ke?0:2}}return ve!=0||pt!=null&&pt.fd&&(ve=Do(tr)),ve}var Ya=64,ps=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],ts=24,$o=32,Ds=8,Hs=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];dr("Predictor0","PredictorAdd0"),zt.Predictor0=function(){return 4278190080},zt.Predictor1=function(ve){return ve},zt.Predictor2=function(ve,Ke,pt){return Ke[pt+0]},zt.Predictor3=function(ve,Ke,pt){return Ke[pt+1]},zt.Predictor4=function(ve,Ke,pt){return Ke[pt-1]},zt.Predictor5=function(ve,Ke,pt){return cn(cn(ve,Ke[pt+1]),Ke[pt+0])},zt.Predictor6=function(ve,Ke,pt){return cn(ve,Ke[pt-1])},zt.Predictor7=function(ve,Ke,pt){return cn(ve,Ke[pt+0])},zt.Predictor8=function(ve,Ke,pt){return cn(Ke[pt-1],Ke[pt+0])},zt.Predictor9=function(ve,Ke,pt){return cn(Ke[pt+0],Ke[pt+1])},zt.Predictor10=function(ve,Ke,pt){return cn(cn(ve,Ke[pt-1]),cn(Ke[pt+0],Ke[pt+1]))},zt.Predictor11=function(ve,Ke,pt){var tr=Ke[pt+0];return 0>=Nr(tr>>24&255,ve>>24&255,(Ke=Ke[pt-1])>>24&255)+Nr(tr>>16&255,ve>>16&255,Ke>>16&255)+Nr(tr>>8&255,ve>>8&255,Ke>>8&255)+Nr(255&tr,255&ve,255&Ke)?tr:ve},zt.Predictor12=function(ve,Ke,pt){var tr=Ke[pt+0];return(Zt((ve>>24&255)+(tr>>24&255)-((Ke=Ke[pt-1])>>24&255))<<24|Zt((ve>>16&255)+(tr>>16&255)-(Ke>>16&255))<<16|Zt((ve>>8&255)+(tr>>8&255)-(Ke>>8&255))<<8|Zt((255&ve)+(255&tr)-(255&Ke)))>>>0},zt.Predictor13=function(ve,Ke,pt){var tr=Ke[pt-1];return(Ar((ve=cn(ve,Ke[pt+0]))>>24&255,tr>>24&255)<<24|Ar(ve>>16&255,tr>>16&255)<<16|Ar(ve>>8&255,tr>>8&255)<<8|Ar(ve>>0&255,tr>>0&255))>>>0};var xs=zt.PredictorAdd0;zt.PredictorAdd1=tn,dr("Predictor2","PredictorAdd2"),dr("Predictor3","PredictorAdd3"),dr("Predictor4","PredictorAdd4"),dr("Predictor5","PredictorAdd5"),dr("Predictor6","PredictorAdd6"),dr("Predictor7","PredictorAdd7"),dr("Predictor8","PredictorAdd8"),dr("Predictor9","PredictorAdd9"),dr("Predictor10","PredictorAdd10"),dr("Predictor11","PredictorAdd11"),dr("Predictor12","PredictorAdd12"),dr("Predictor13","PredictorAdd13");var Xo=zt.PredictorAdd2;fr("ColorIndexInverseTransform","MapARGB","32b",function(ve){return ve>>8&255},function(ve){return ve}),fr("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(ve){return ve},function(ve){return ve>>8&255});var Js,Cs=zt.ColorIndexInverseTransform,fl=zt.MapARGB,sl=zt.VP8LColorIndexInverseTransformAlpha,Ks=zt.MapAlpha,as=zt.VP8LPredictorsAdd=[];as.length=16,(zt.VP8LPredictors=[]).length=16,(zt.VP8LPredictorsAdd_C=[]).length=16,(zt.VP8LPredictors_C=[]).length=16;var ha,Zs,ll,lo,Ka,Fo,Ko,Wo,Co,is,ms,Rs,Us,el,Qs,tl,_s,Ts,Ws,Os,zs,Tl,Sl,Ol,Yl,yu,ul,Rl,zl=Xe(511),bu=Xe(2041),wu=Xe(225),cu=Xe(767),Su=0,Bl=bu,rl=wu,al=cu,dl=zl,Vl=0,tu=1,ru=2,Ql=3,Ml=4,nu=5,Jl=6,du=7,Al=8,kl=9,Pl=10,Zl=[2,3,7],Il=[3,3,11],Iu=[280,256,256,256,40],pl=[0,1,1,1,0],xl=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],iu=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],_u=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],hu=8,_l=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ml=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Ul=null,xu=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Eu=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],fu=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],jl=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],au=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],$l=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],ou=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Is=[],cl=[],Fl=[],Ho=1,La=2,oo=[],Ro=[];Se("UpsampleRgbLinePair",mn,3),Se("UpsampleBgrLinePair",Wn,3),Se("UpsampleRgbaLinePair",ma,4),Se("UpsampleBgraLinePair",Yi,4),Se("UpsampleArgbLinePair",Ii,4),Se("UpsampleRgba4444LinePair",ri,2),Se("UpsampleRgb565LinePair",Jn,2);var Ps=zt.UpsampleRgbLinePair,Hl=zt.UpsampleBgrLinePair,Ll=zt.UpsampleRgbaLinePair,gl=zt.UpsampleBgraLinePair,yl=zt.UpsampleArgbLinePair,Nl=zt.UpsampleRgba4444LinePair,Kl=zt.UpsampleRgb565LinePair,Vs=16,Gl=1<<Vs-1,pu=-227,su=482,Pu=6,$u=(256<<Pu)-1,zu=0,qu=Xe(256),mu=Xe(256),Lu=Xe(256),ec=Xe(256),Fu=Xe(su-pu),Cu=Xe(su-pu);Ta("YuvToRgbRow",mn,3),Ta("YuvToBgrRow",Wn,3),Ta("YuvToRgbaRow",ma,4),Ta("YuvToBgraRow",Yi,4),Ta("YuvToArgbRow",Ii,4),Ta("YuvToRgba4444Row",ri,2),Ta("YuvToRgb565Row",Jn,2);var Nu=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],gu=[0,2,8],Bu=[8,7,6,4,4,2,2,2,1,1,1,1],vu=1;this.WebPDecodeRGBA=function(ve,Ke,pt,tr,Tr){var Gr=tu,_e=new fs,te=new vi;_e.ba=te,te.S=Gr,te.width=[te.width],te.height=[te.height];var ye=te.width,Ge=te.height,lt=new Di;if(lt==null||ve==null)var Rt=2;else be(lt!=null),Rt=Zo(ve,Ke,pt,lt.width,lt.height,lt.Pd,lt.Qd,lt.format,null);if(Rt!=0?ye=0:(ye!=null&&(ye[0]=lt.width[0]),Ge!=null&&(Ge[0]=lt.height[0]),ye=1),ye){te.width=te.width[0],te.height=te.height[0],tr!=null&&(tr[0]=te.width),Tr!=null&&(Tr[0]=te.height);e:{if(tr=new ja,(Tr=new ys).data=ve,Tr.w=Ke,Tr.ha=pt,Tr.kd=1,Ke=[0],be(Tr!=null),((ve=Zo(Tr.data,Tr.w,Tr.ha,null,null,null,Ke,null,Tr))==0||ve==7)&&Ke[0]&&(ve=4),(Ke=ve)==0){if(be(_e!=null),tr.data=Tr.data,tr.w=Tr.w+Tr.offset,tr.ha=Tr.ha-Tr.offset,tr.put=qi,tr.ac=$i,tr.bc=Ti,tr.ma=_e,Tr.xa){if((ve=Ga())==null){_e=1;break e}if(function(Kt,Vt){var Lr=[0],Jr=[0],Or=[0];t:for(;;){if(Kt==null)return 0;if(Vt==null)return Kt.a=2,0;if(Kt.l=Vt,Kt.a=0,jn(Kt.m,Vt.data,Vt.w,Vt.ha),!ia(Kt.m,Lr,Jr,Or)){Kt.a=3;break t}if(Kt.xb=La,Vt.width=Lr[0],Vt.height=Jr[0],!Va(Lr[0],Jr[0],1,Kt,null))break t;return 1}return be(Kt.a!=0),0}(ve,tr)){if(tr=(Ke=Ha(tr.width,tr.height,_e.Oa,_e.ba))==0){t:{tr=ve;r:for(;;){if(tr==null){tr=0;break t}if(be(tr.s.yc!=null),be(tr.s.Ya!=null),be(0<tr.s.Wb),be((pt=tr.l)!=null),be((Tr=pt.ma)!=null),tr.xb!=0){if(tr.ca=Tr.ba,tr.tb=Tr.tb,be(tr.ca!=null),!Oo(Tr.Oa,pt,Ql)){tr.a=2;break r}if(!Ra(tr,pt.width))break r;if(pt.da)break r;if((pt.da||fi(tr.ca.S))&&ge(),11>tr.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),tr.ca.f.kb.F!=null&&ge()),tr.Pb&&0<tr.s.ua&&tr.s.vb.X==null&&!oi(tr.s.vb,tr.s.Wa.Xa)){tr.a=1;break r}tr.xb=0}if(!Ea(tr,tr.V,tr.Ba,tr.c,tr.i,pt.o,sa))break r;Tr.Dc=tr.Ma,tr=1;break t}be(tr.a!=0),tr=0}tr=!tr}tr&&(Ke=ve.a)}else Ke=ve.a}else{if((ve=new da)==null){_e=1;break e}if(ve.Fa=Tr.na,ve.P=Tr.P,ve.qc=Tr.Sa,Fr(ve,tr)){if((Ke=Ha(tr.width,tr.height,_e.Oa,_e.ba))==0){if(ve.Aa=0,pt=_e.Oa,be((Tr=ve)!=null),pt!=null){if(0<(ye=0>(ye=pt.Md)?0:100<ye?255:255*ye/100)){for(Ge=lt=0;4>Ge;++Ge)12>(Rt=Tr.pb[Ge]).lc&&(Rt.ia=ye*Bu[0>Rt.lc?0:Rt.lc]>>3),lt|=Rt.ia;lt&&(alert("todo:VP8InitRandom"),Tr.ia=1)}Tr.Ga=pt.Id,100<Tr.Ga?Tr.Ga=100:0>Tr.Ga&&(Tr.Ga=0)}zr(ve,tr)||(Ke=ve.a)}}else Ke=ve.a}Ke==0&&_e.Oa!=null&&_e.Oa.fd&&(Ke=Do(_e.ba))}_e=Ke}Gr=_e!=0?null:11>Gr?te.f.RGBA.eb:te.f.kb.y}else Gr=null;return Gr};var Tu=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Jt(fn,zt){for(var Dr="",ir=0;ir<4;ir++)Dr+=String.fromCharCode(fn[zt++]);return Dr}function kr(fn,zt){return(fn[zt+0]<<0|fn[zt+1]<<8|fn[zt+2]<<16)>>>0}function _r(fn,zt){return(fn[zt+0]<<0|fn[zt+1]<<8|fn[zt+2]<<16|fn[zt+3]<<24)>>>0}new ht;var Xr=[0],Bt=[0],gn=[],hr=new ht,vn=Ze,en=function(fn,zt){var Dr={},ir=0,Lt=!1,Qt=0,It=0;if(Dr.frames=[],!function(br,dn,Ln,Fn){for(var zn=0;zn<Fn;zn++)if(br[dn+zn]!=Ln.charCodeAt(zn))return!0;return!1}(fn,zt,"RIFF",4)){var or,Cr;for(_r(fn,zt+=4),zt+=8;zt<fn.length;){var Er=Jt(fn,zt),Kr=_r(fn,zt+=4);zt+=4;var jn=Kr+(1&Kr);switch(Er){case"VP8 ":case"VP8L":Dr.frames[ir]===void 0&&(Dr.frames[ir]={}),(Zr=Dr.frames[ir]).src_off=Lt?It:zt-8,Zr.src_size=Qt+Kr+8,ir++,Lt&&(Lt=!1,Qt=0,It=0);break;case"VP8X":(Zr=Dr.header={}).feature_flags=fn[zt];var Nn=zt+4;Zr.canvas_width=1+kr(fn,Nn),Nn+=3,Zr.canvas_height=1+kr(fn,Nn),Nn+=3;break;case"ALPH":Lt=!0,Qt=jn+8,It=zt-8;break;case"ANIM":(Zr=Dr.header).bgcolor=_r(fn,zt),Nn=zt+4,Zr.loop_count=(or=fn)[(Cr=Nn)+0]<<0|or[Cr+1]<<8,Nn+=2;break;case"ANMF":var ei,Zr;(Zr=Dr.frames[ir]={}).offset_x=2*kr(fn,zt),zt+=3,Zr.offset_y=2*kr(fn,zt),zt+=3,Zr.width=1+kr(fn,zt),zt+=3,Zr.height=1+kr(fn,zt),zt+=3,Zr.duration=kr(fn,zt),zt+=3,ei=fn[zt++],Zr.dispose=1&ei,Zr.blend=ei>>1&1}Er!="ANMF"&&(zt+=jn)}return Dr}}(vn,0);en.response=vn,en.rgbaoutput=!0,en.dataurl=!1;var Dt=en.header?en.header:null,jr=en.frames?en.frames:null;if(Dt){Dt.loop_counter=Dt.loop_count,Xr=[Dt.canvas_height],Bt=[Dt.canvas_width];for(var un=0;un<jr.length&&jr[un].blend!=0;un++);}var Hr=jr[0],Wt=hr.WebPDecodeRGBA(vn,Hr.src_off,Hr.src_size,Bt,Xr);Hr.rgba=Wt,Hr.imgwidth=Bt[0],Hr.imgheight=Xr[0];for(var wr=0;wr<Bt[0]*Xr[0]*4;wr++)gn[wr]=Wt[wr];return this.width=Bt,this.height=Xr,this.data=gn,this}!function(Ze){var be=function(){return typeof v.b=="function"},Ne=function(Bt,gn,hr,vn){var en=4,Dt=qe;switch(vn){case Ze.image_compression.FAST:en=1,Dt=Xe;break;case Ze.image_compression.MEDIUM:en=6,Dt=yt;break;case Ze.image_compression.SLOW:en=9,Dt=ht}Bt=Ue(Bt,gn,hr,Dt);var jr=Object(v.b)(Bt,{level:en});return Ze.__addimage__.arrayBufferToBinaryString(jr)},Ue=function(Bt,gn,hr,vn){for(var en,Dt,jr,un=Bt.length/gn,Hr=new Uint8Array(Bt.length+un),Wt=kr(),wr=0;wr<un;wr+=1){if(jr=wr*gn,en=Bt.subarray(jr,jr+gn),vn)Hr.set(vn(en,hr,Dt),jr+wr);else{for(var fn,zt=Wt.length,Dr=[];fn<zt;fn+=1)Dr[fn]=Wt[fn](en,hr,Dt);var ir=_r(Dr.concat());Hr.set(Dr[ir],jr+wr)}Dt=en}return Hr},Qe=function(Bt){var gn=Array.apply([],Bt);return gn.unshift(0),gn},Xe=function(Bt,gn){var hr,vn=[],en=Bt.length;vn[0]=1;for(var Dt=0;Dt<en;Dt+=1)hr=Bt[Dt-gn]||0,vn[Dt+1]=Bt[Dt]-hr+256&255;return vn},qe=function(Bt,gn,hr){var vn,en=[],Dt=Bt.length;en[0]=2;for(var jr=0;jr<Dt;jr+=1)vn=hr&&hr[jr]||0,en[jr+1]=Bt[jr]-vn+256&255;return en},yt=function(Bt,gn,hr){var vn,en,Dt=[],jr=Bt.length;Dt[0]=3;for(var un=0;un<jr;un+=1)vn=Bt[un-gn]||0,en=hr&&hr[un]||0,Dt[un+1]=Bt[un]+256-(vn+en>>>1)&255;return Dt},ht=function(Bt,gn,hr){var vn,en,Dt,jr,un=[],Hr=Bt.length;un[0]=4;for(var Wt=0;Wt<Hr;Wt+=1)vn=Bt[Wt-gn]||0,en=hr&&hr[Wt]||0,Dt=hr&&hr[Wt-gn]||0,jr=Jt(vn,en,Dt),un[Wt+1]=Bt[Wt]-jr+256&255;return un},Jt=function(Bt,gn,hr){if(Bt===gn&&gn===hr)return Bt;var vn=Math.abs(gn-hr),en=Math.abs(Bt-hr),Dt=Math.abs(Bt+gn-hr-hr);return vn<=en&&vn<=Dt?Bt:en<=Dt?gn:hr},kr=function(){return[Qe,Xe,qe,yt,ht]},_r=function(Bt){var gn=Bt.map(function(hr){return hr.reduce(function(vn,en){return vn+Math.abs(en)},0)});return gn.indexOf(Math.min.apply(null,gn))};Ze.processPNG=function(Xr,Bt,gn,hr){var vn,en,Dt,jr,un,Hr,Wt,wr,fn,zt,Dr,ir,Lt,Qt,It,or=this.decode.FLATE_DECODE,Cr="";if(this.__addimage__.isArrayBuffer(Xr)&&(Xr=new Uint8Array(Xr)),this.__addimage__.isArrayBufferView(Xr)){if(Xr=(Dt=new je(Xr)).imgData,en=Dt.bits,vn=Dt.colorSpace,un=Dt.colors,[4,6].indexOf(Dt.colorType)!==-1){if(Dt.bits===8){fn=(wr=Dt.pixelBitlength==32?new Uint32Array(Dt.decodePixels().buffer):Dt.pixelBitlength==16?new Uint16Array(Dt.decodePixels().buffer):new Uint8Array(Dt.decodePixels().buffer)).length,Dr=new Uint8Array(fn*Dt.colors),zt=new Uint8Array(fn);var Er,Kr=Dt.pixelBitlength-Dt.bits;for(Qt=0,It=0;Qt<fn;Qt++){for(Lt=wr[Qt],Er=0;Er<Kr;)Dr[It++]=Lt>>>Er&255,Er+=Dt.bits;zt[Qt]=Lt>>>Er&255}}if(Dt.bits===16){fn=(wr=new Uint32Array(Dt.decodePixels().buffer)).length,Dr=new Uint8Array(fn*(32/Dt.pixelBitlength)*Dt.colors),zt=new Uint8Array(fn*(32/Dt.pixelBitlength)),ir=Dt.colors>1,Qt=0,It=0;for(var jn=0;Qt<fn;)Lt=wr[Qt++],Dr[It++]=Lt>>>0&255,ir&&(Dr[It++]=Lt>>>16&255,Lt=wr[Qt++],Dr[It++]=Lt>>>0&255),zt[jn++]=Lt>>>16&255;en=8}hr!==Ze.image_compression.NONE&&be()?(Xr=Ne(Dr,Dt.width*Dt.colors,Dt.colors,hr),Wt=Ne(zt,Dt.width,1,hr)):(Xr=Dr,Wt=zt,or=void 0)}if(Dt.colorType===3&&(vn=this.color_spaces.INDEXED,Hr=Dt.palette,Dt.transparency.indexed)){var Nn=Dt.transparency.indexed,ei=0;for(Qt=0,fn=Nn.length;Qt<fn;++Qt)ei+=Nn[Qt];if((ei/=255)===fn-1&&Nn.indexOf(0)!==-1)jr=[Nn.indexOf(0)];else if(ei!==fn){for(wr=Dt.decodePixels(),zt=new Uint8Array(wr.length),Qt=0,fn=wr.length;Qt<fn;Qt++)zt[Qt]=Nn[wr[Qt]];Wt=Ne(zt,Dt.width,1)}}var Zr=function(br){var dn;switch(br){case Ze.image_compression.FAST:dn=11;break;case Ze.image_compression.MEDIUM:dn=13;break;case Ze.image_compression.SLOW:dn=14;break;default:dn=12}return dn}(hr);return or===this.decode.FLATE_DECODE&&(Cr="/Predictor "+Zr+" "),Cr+="/Colors "+un+" /BitsPerComponent "+en+" /Columns "+Dt.width,(this.__addimage__.isArrayBuffer(Xr)||this.__addimage__.isArrayBufferView(Xr))&&(Xr=this.__addimage__.arrayBufferToBinaryString(Xr)),(Wt&&this.__addimage__.isArrayBuffer(Wt)||this.__addimage__.isArrayBufferView(Wt))&&(Wt=this.__addimage__.arrayBufferToBinaryString(Wt)),{alias:gn,data:Xr,index:Bt,filter:or,decodeParameters:Cr,transparency:jr,palette:Hr,sMask:Wt,predictor:Zr,width:Dt.width,height:Dt.height,bitsPerComponent:en,colorSpace:vn}}}}(K.API),function(Ze){Ze.processGIF89A=function(be,Ne,Ue,Qe){var Xe=new Ve(be),qe=Xe.width,yt=Xe.height,ht=[];Xe.decodeAndBlitFrameRGBA(0,ht);var Jt={data:ht,width:qe,height:yt},kr=new wt(100).encode(Jt,100);return Ze.processJPEG.call(this,kr,Ne,Ue,Qe)},Ze.processGIF87A=Ze.processGIF89A}(K.API),qt.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var Ze=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(Ze);for(var be=0;be<Ze;be++){var Ne=this.datav.getUint8(this.pos++,!0),Ue=this.datav.getUint8(this.pos++,!0),Qe=this.datav.getUint8(this.pos++,!0),Xe=this.datav.getUint8(this.pos++,!0);this.palette[be]={red:Qe,green:Ue,blue:Ne,quad:Xe}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},qt.prototype.parseBGR=function(){this.pos=this.offset;try{var Ze="bit"+this.bitPP,be=this.width*this.height*4;this.data=new Uint8Array(be),this[Ze]()}catch(Ne){f.log("bit decode error:"+Ne)}},qt.prototype.bit1=function(){var Ze,be=Math.ceil(this.width/8),Ne=be%4;for(Ze=this.height-1;Ze>=0;Ze--){for(var Ue=this.bottom_up?Ze:this.height-1-Ze,Qe=0;Qe<be;Qe++)for(var Xe=this.datav.getUint8(this.pos++,!0),qe=Ue*this.width*4+8*Qe*4,yt=0;yt<8&&8*Qe+yt<this.width;yt++){var ht=this.palette[Xe>>7-yt&1];this.data[qe+4*yt]=ht.blue,this.data[qe+4*yt+1]=ht.green,this.data[qe+4*yt+2]=ht.red,this.data[qe+4*yt+3]=255}Ne!==0&&(this.pos+=4-Ne)}},qt.prototype.bit4=function(){for(var Ze=Math.ceil(this.width/2),be=Ze%4,Ne=this.height-1;Ne>=0;Ne--){for(var Ue=this.bottom_up?Ne:this.height-1-Ne,Qe=0;Qe<Ze;Qe++){var Xe=this.datav.getUint8(this.pos++,!0),qe=Ue*this.width*4+2*Qe*4,yt=Xe>>4,ht=15&Xe,Jt=this.palette[yt];if(this.data[qe]=Jt.blue,this.data[qe+1]=Jt.green,this.data[qe+2]=Jt.red,this.data[qe+3]=255,2*Qe+1>=this.width)break;Jt=this.palette[ht],this.data[qe+4]=Jt.blue,this.data[qe+4+1]=Jt.green,this.data[qe+4+2]=Jt.red,this.data[qe+4+3]=255}be!==0&&(this.pos+=4-be)}},qt.prototype.bit8=function(){for(var Ze=this.width%4,be=this.height-1;be>=0;be--){for(var Ne=this.bottom_up?be:this.height-1-be,Ue=0;Ue<this.width;Ue++){var Qe=this.datav.getUint8(this.pos++,!0),Xe=Ne*this.width*4+4*Ue;if(Qe<this.palette.length){var qe=this.palette[Qe];this.data[Xe]=qe.red,this.data[Xe+1]=qe.green,this.data[Xe+2]=qe.blue,this.data[Xe+3]=255}else this.data[Xe]=255,this.data[Xe+1]=255,this.data[Xe+2]=255,this.data[Xe+3]=255}Ze!==0&&(this.pos+=4-Ze)}},qt.prototype.bit15=function(){for(var Ze=this.width%3,be=parseInt("11111",2),Ne=this.height-1;Ne>=0;Ne--){for(var Ue=this.bottom_up?Ne:this.height-1-Ne,Qe=0;Qe<this.width;Qe++){var Xe=this.datav.getUint16(this.pos,!0);this.pos+=2;var qe=(Xe&be)/be*255|0,yt=(Xe>>5&be)/be*255|0,ht=(Xe>>10&be)/be*255|0,Jt=Xe>>15?255:0,kr=Ue*this.width*4+4*Qe;this.data[kr]=ht,this.data[kr+1]=yt,this.data[kr+2]=qe,this.data[kr+3]=Jt}this.pos+=Ze}},qt.prototype.bit16=function(){for(var Ze=this.width%3,be=parseInt("11111",2),Ne=parseInt("111111",2),Ue=this.height-1;Ue>=0;Ue--){for(var Qe=this.bottom_up?Ue:this.height-1-Ue,Xe=0;Xe<this.width;Xe++){var qe=this.datav.getUint16(this.pos,!0);this.pos+=2;var yt=(qe&be)/be*255|0,ht=(qe>>5&Ne)/Ne*255|0,Jt=(qe>>11)/be*255|0,kr=Qe*this.width*4+4*Xe;this.data[kr]=Jt,this.data[kr+1]=ht,this.data[kr+2]=yt,this.data[kr+3]=255}this.pos+=Ze}},qt.prototype.bit24=function(){for(var Ze=this.height-1;Ze>=0;Ze--){for(var be=this.bottom_up?Ze:this.height-1-Ze,Ne=0;Ne<this.width;Ne++){var Ue=this.datav.getUint8(this.pos++,!0),Qe=this.datav.getUint8(this.pos++,!0),Xe=this.datav.getUint8(this.pos++,!0),qe=be*this.width*4+4*Ne;this.data[qe]=Xe,this.data[qe+1]=Qe,this.data[qe+2]=Ue,this.data[qe+3]=255}this.pos+=this.width%4}},qt.prototype.bit32=function(){for(var Ze=this.height-1;Ze>=0;Ze--)for(var be=this.bottom_up?Ze:this.height-1-Ze,Ne=0;Ne<this.width;Ne++){var Ue=this.datav.getUint8(this.pos++,!0),Qe=this.datav.getUint8(this.pos++,!0),Xe=this.datav.getUint8(this.pos++,!0),qe=this.datav.getUint8(this.pos++,!0),yt=be*this.width*4+4*Ne;this.data[yt]=Xe,this.data[yt+1]=Qe,this.data[yt+2]=Ue,this.data[yt+3]=qe}},qt.prototype.getData=function(){return this.data},function(Ze){Ze.processBMP=function(be,Ne,Ue,Qe){var Xe=new qt(be,!1),qe=Xe.width,yt=Xe.height,ht={data:Xe.getData(),width:qe,height:yt},Jt=new wt(100).encode(ht,100);return Ze.processJPEG.call(this,Jt,Ne,Ue,Qe)}}(K.API),Mr.prototype.getData=function(){return this.data},function(Ze){Ze.processWEBP=function(be,Ne,Ue,Qe){var Xe=new Mr(be,!1),qe=Xe.width,yt=Xe.height,ht={data:Xe.getData(),width:qe,height:yt},Jt=new wt(100).encode(ht,100);return Ze.processJPEG.call(this,Jt,Ne,Ue,Qe)}}(K.API),K.API.processRGBA=function(Ze,be,Ne){for(var Ue=Ze.data,Qe=Ue.length,Xe=new Uint8Array(Qe/4*3),qe=new Uint8Array(Qe/4),yt=0,ht=0,Jt=0;Jt<Qe;Jt+=4){var kr=Ue[Jt],_r=Ue[Jt+1],Xr=Ue[Jt+2],Bt=Ue[Jt+3];Xe[yt++]=kr,Xe[yt++]=_r,Xe[yt++]=Xr,qe[ht++]=Bt}var gn=this.__addimage__.arrayBufferToBinaryString(Xe);return{alpha:this.__addimage__.arrayBufferToBinaryString(qe),data:gn,index:be,alias:Ne,colorSpace:"DeviceRGB",bitsPerComponent:8,width:Ze.width,height:Ze.height}},K.API.setLanguage=function(Ze){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[Ze]!==void 0&&(this.internal.languageSettings.languageCode=Ze,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Vn=K.API,Gt=Vn.getCharWidthsArray=function(Ze,be){var Ne,Ue,Qe=(be=be||{}).font||this.internal.getFont(),Xe=be.fontSize||this.internal.getFontSize(),qe=be.charSpace||this.internal.getCharSpace(),yt=be.widths?be.widths:Qe.metadata.Unicode.widths,ht=yt.fof?yt.fof:1,Jt=be.kerning?be.kerning:Qe.metadata.Unicode.kerning,kr=Jt.fof?Jt.fof:1,_r=be.doKerning!==!1,Xr=0,Bt=Ze.length,gn=0,hr=yt[0]||ht,vn=[];for(Ne=0;Ne<Bt;Ne++)Ue=Ze.charCodeAt(Ne),typeof Qe.metadata.widthOfString=="function"?vn.push((Qe.metadata.widthOfGlyph(Qe.metadata.characterToGlyph(Ue))+qe*(1e3/Xe)||0)/1e3):(Xr=_r&&T()(Jt[Ue])==="object"&&!isNaN(parseInt(Jt[Ue][gn],10))?Jt[Ue][gn]/kr:0,vn.push((yt[Ue]||hr)/ht+Xr)),gn=Ue;return vn},st=Vn.getStringUnitWidth=function(Ze,be){var Ne=(be=be||{}).fontSize||this.internal.getFontSize(),Ue=be.font||this.internal.getFont(),Qe=be.charSpace||this.internal.getCharSpace();return Vn.processArabic&&(Ze=Vn.processArabic(Ze)),typeof Ue.metadata.widthOfString=="function"?Ue.metadata.widthOfString(Ze,Ne,Qe)/Ne:Gt.apply(this,arguments).reduce(function(Xe,qe){return Xe+qe},0)},ue=function(be,Ne,Ue,Qe){for(var Xe=[],qe=0,yt=be.length,ht=0;qe!==yt&&ht+Ne[qe]<Ue;)ht+=Ne[qe],qe++;Xe.push(be.slice(0,qe));var Jt=qe;for(ht=0;qe!==yt;)ht+Ne[qe]>Qe&&(Xe.push(be.slice(Jt,qe)),ht=0,Jt=qe),ht+=Ne[qe],qe++;return Jt!==qe&&Xe.push(be.slice(Jt,qe)),Xe},Ee=function(be,Ne,Ue){Ue||(Ue={});var Qe,Xe,qe,yt,ht,Jt,kr,_r=[],Xr=[_r],Bt=Ue.textIndent||0,gn=0,hr=0,vn=be.split(" "),en=Gt.apply(this,[" ",Ue])[0];if(Jt=Ue.lineIndent===-1?vn[0].length+2:Ue.lineIndent||0){var Dt=Array(Jt).join(" "),jr=[];vn.map(function(Hr){(Hr=Hr.split(/\s*\n/)).length>1?jr=jr.concat(Hr.map(function(Wt,wr){return(wr&&Wt.length?`
|
|
|
`:"")+Wt})):jr.push(Hr[0])}),vn=jr,Jt=st.apply(this,[Dt,Ue])}for(qe=0,yt=vn.length;qe<yt;qe++){var un=0;if(Qe=vn[qe],Jt&&Qe[0]==`
|
|
|
`&&(Qe=Qe.substr(1),un=1),Bt+gn+(hr=(Xe=Gt.apply(this,[Qe,Ue])).reduce(function(Hr,Wt){return Hr+Wt},0))>Ne||un){if(hr>Ne){for(ht=ue.apply(this,[Qe,Xe,Ne-(Bt+gn),Ne]),_r.push(ht.shift()),_r=[ht.pop()];ht.length;)Xr.push([ht.shift()]);hr=Xe.slice(Qe.length-(_r[0]?_r[0].length:0)).reduce(function(Hr,Wt){return Hr+Wt},0)}else _r=[Qe];Xr.push(_r),Bt=hr+Jt,gn=en}else _r.push(Qe),Bt+=gn+hr,gn=en}return kr=Jt?function(Hr,Wt){return(Wt?Dt:"")+Hr.join(" ")}:function(Hr){return Hr.join(" ")},Xr.map(kr)},Vn.splitTextToSize=function(Ze,be,Ne){var Ue,Qe=(Ne=Ne||{}).fontSize||this.internal.getFontSize(),Xe=function(kr){if(kr.widths&&kr.kerning)return{widths:kr.widths,kerning:kr.kerning};var _r=this.internal.getFont(kr.fontName,kr.fontStyle);return _r.metadata.Unicode?{widths:_r.metadata.Unicode.widths||{0:1},kerning:_r.metadata.Unicode.kerning||{}}:{font:_r.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,Ne);Ue=Array.isArray(Ze)?Ze:String(Ze).split(/\r?\n/);var qe=1*this.internal.scaleFactor*be/Qe;Xe.textIndent=Ne.textIndent?1*Ne.textIndent*this.internal.scaleFactor/Qe:0,Xe.lineIndent=Ne.lineIndent;var yt,ht,Jt=[];for(yt=0,ht=Ue.length;yt<ht;yt++)Jt=Jt.concat(Ee.apply(this,[Ue[yt],qe,Xe]));return Jt},function(Ze){Ze.__fontmetrics__=Ze.__fontmetrics__||{};for(var be="klmnopqrstuvwxyz",Ne={},Ue={},Qe=0;Qe<be.length;Qe++)Ne[be[Qe]]="0123456789abcdef"[Qe],Ue["0123456789abcdef"[Qe]]=be[Qe];var Xe=function(Xr){return"0x"+parseInt(Xr,10).toString(16)},qe=Ze.__fontmetrics__.compress=function(_r){var Xr,Bt,gn,hr,vn=["{"];for(var en in _r){if(Xr=_r[en],isNaN(parseInt(en,10))?Bt="'"+en+"'":(en=parseInt(en,10),Bt=(Bt=Xe(en).slice(2)).slice(0,-1)+Ue[Bt.slice(-1)]),typeof Xr=="number")Xr<0?(gn=Xe(Xr).slice(3),hr="-"):(gn=Xe(Xr).slice(2),hr=""),gn=hr+gn.slice(0,-1)+Ue[gn.slice(-1)];else{if(T()(Xr)!=="object")throw new Error("Don't know what to do with value type "+T()(Xr)+".");gn=qe(Xr)}vn.push(Bt+gn)}return vn.push("}"),vn.join("")},yt=Ze.__fontmetrics__.uncompress=function(_r){if(typeof _r!="string")throw new Error("Invalid argument passed to uncompress.");for(var Xr,Bt,gn,hr,vn={},en=1,Dt=vn,jr=[],un="",Hr="",Wt=_r.length-1,wr=1;wr<Wt;wr+=1)(hr=_r[wr])=="'"?Xr?(gn=Xr.join(""),Xr=void 0):Xr=[]:Xr?Xr.push(hr):hr=="{"?(jr.push([Dt,gn]),Dt={},gn=void 0):hr=="}"?((Bt=jr.pop())[0][Bt[1]]=Dt,gn=void 0,Dt=Bt[0]):hr=="-"?en=-1:gn===void 0?Ne.hasOwnProperty(hr)?(un+=Ne[hr],gn=parseInt(un,16)*en,en=1,un=""):un+=hr:Ne.hasOwnProperty(hr)?(Hr+=Ne[hr],Dt[gn]=parseInt(Hr,16)*en,en=1,gn=void 0,Hr=""):Hr+=hr;return vn},ht={codePages:["WinAnsiEncoding"],WinAnsiEncoding:yt("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Jt={Unicode:{Courier:ht,"Courier-Bold":ht,"Courier-BoldOblique":ht,"Courier-Oblique":ht,Helvetica:ht,"Helvetica-Bold":ht,"Helvetica-BoldOblique":ht,"Helvetica-Oblique":ht,"Times-Roman":ht,"Times-Bold":ht,"Times-BoldItalic":ht,"Times-Italic":ht}},kr={Unicode:{"Courier-Oblique":yt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":yt("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":yt("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:yt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":yt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":yt("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:yt("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:yt("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":yt("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:yt("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":yt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":yt("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":yt("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":yt("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};Ze.events.push(["addFont",function(_r){var Xr=_r.font,Bt=kr.Unicode[Xr.postScriptName];Bt&&(Xr.metadata.Unicode={},Xr.metadata.Unicode.widths=Bt.widths,Xr.metadata.Unicode.kerning=Bt.kerning);var gn=Jt.Unicode[Xr.postScriptName];gn&&(Xr.metadata.Unicode.encoding=gn,Xr.encoding=gn.codePages[0])}])}(K.API),function(Ze){var be=function(Ue){for(var Qe=Ue.length,Xe=new Uint8Array(Qe),qe=0;qe<Qe;qe++)Xe[qe]=Ue.charCodeAt(qe);return Xe};Ze.API.events.push(["addFont",function(Ne){var Ue=void 0,Qe=Ne.font,Xe=Ne.instance;if(!Qe.isStandardFont){if(Xe===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+Qe.postScriptName+"').");if(typeof(Ue=Xe.existsFileInVFS(Qe.postScriptName)===!1?Xe.loadFile(Qe.postScriptName):Xe.getFileFromVFS(Qe.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+Qe.postScriptName+"').");!function(qe,yt){yt=/^\x00\x01\x00\x00/.test(yt)?be(yt):be(a(yt)),qe.metadata=Ze.API.TTFFont.open(yt),qe.metadata.Unicode=qe.metadata.Unicode||{encoding:{},kerning:{},widths:[]},qe.metadata.glyIdsUsed=[0]}(Qe,Ue)}}])}(K),function(Ze){function be(){return(S.canvg?Promise.resolve(S.canvg):d.e(235).then(d.bind(null,"DXPr"))).catch(function(Ne){return Promise.reject(new Error("Could not load canvg: "+Ne))}).then(function(Ne){return Ne.default?Ne.default:Ne})}K.API.addSvgAsImage=function(Ne,Ue,Qe,Xe,qe,yt,ht,Jt){if(isNaN(Ue)||isNaN(Qe))throw f.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(Xe)||isNaN(qe))throw f.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var kr=document.createElement("canvas");kr.width=Xe,kr.height=qe;var _r=kr.getContext("2d");_r.fillStyle="#fff",_r.fillRect(0,0,kr.width,kr.height);var Xr={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Bt=this;return be().then(function(gn){return gn.fromString(_r,Ne,Xr)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(gn){return gn.render(Xr)}).then(function(){Bt.addImage(kr.toDataURL("image/jpeg",1),Ue,Qe,Xe,qe,ht,Jt)})}}(),K.API.putTotalPages=function(Ze){var be,Ne=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(be=new RegExp(Ze,"g"),Ne=this.internal.getNumberOfPages()):(be=new RegExp(this.pdfEscape16(Ze,this.internal.getFont()),"g"),Ne=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Ue=1;Ue<=this.internal.getNumberOfPages();Ue++)for(var Qe=0;Qe<this.internal.pages[Ue].length;Qe++)this.internal.pages[Ue][Qe]=this.internal.pages[Ue][Qe].replace(be,Ne);return this},K.API.viewerPreferences=function(Ze,be){var Ne;Ze=Ze||{},be=be||!1;var Ue,Qe,Xe,qe={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},yt=Object.keys(qe),ht=[],Jt=0,kr=0,_r=0;function Xr(gn,hr){var vn,en=!1;for(vn=0;vn<gn.length;vn+=1)gn[vn]===hr&&(en=!0);return en}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(qe)),this.internal.viewerpreferences.isSubscribed=!1),Ne=this.internal.viewerpreferences.configuration,Ze==="reset"||be===!0){var Bt=yt.length;for(_r=0;_r<Bt;_r+=1)Ne[yt[_r]].value=Ne[yt[_r]].defaultValue,Ne[yt[_r]].explicitSet=!1}if(T()(Ze)==="object"){for(Qe in Ze)if(Xe=Ze[Qe],Xr(yt,Qe)&&Xe!==void 0){if(Ne[Qe].type==="boolean"&&typeof Xe=="boolean")Ne[Qe].value=Xe;else if(Ne[Qe].type==="name"&&Xr(Ne[Qe].valueSet,Xe))Ne[Qe].value=Xe;else if(Ne[Qe].type==="integer"&&Number.isInteger(Xe))Ne[Qe].value=Xe;else if(Ne[Qe].type==="array"){for(Jt=0;Jt<Xe.length;Jt+=1)if(Ue=!0,Xe[Jt].length===1&&typeof Xe[Jt][0]=="number")ht.push(String(Xe[Jt]-1));else if(Xe[Jt].length>1){for(kr=0;kr<Xe[Jt].length;kr+=1)typeof Xe[Jt][kr]!="number"&&(Ue=!1);Ue===!0&&ht.push([Xe[Jt][0]-1,Xe[Jt][1]-1].join(" "))}Ne[Qe].value="["+ht.join(" ")+"]"}else Ne[Qe].value=Ne[Qe].defaultValue;Ne[Qe].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var gn,hr=[];for(gn in Ne)Ne[gn].explicitSet===!0&&(Ne[gn].type==="name"?hr.push("/"+gn+" /"+Ne[gn].value):hr.push("/"+gn+" "+Ne[gn].value));hr.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+hr.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=Ne,this},function(Ze){var be=function(){var Qe='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',Xe=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),qe=unescape(encodeURIComponent(Qe)),yt=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),ht=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),Jt=unescape(encodeURIComponent("</x:xmpmeta>")),kr=qe.length+yt.length+ht.length+Xe.length+Jt.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+kr+" >>"),this.internal.write("stream"),this.internal.write(Xe+qe+yt+ht+Jt),this.internal.write("endstream"),this.internal.write("endobj")},Ne=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};Ze.addMetadata=function(Ue,Qe){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:Ue,namespaceuri:Qe||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",Ne),this.internal.events.subscribe("postPutResources",be)),this}}(K.API),function(Ze){var be=Ze.API,Ne=be.pdfEscape16=function(Xe,qe){for(var yt,ht=qe.metadata.Unicode.widths,Jt=["","0","00","000","0000"],kr=[""],_r=0,Xr=Xe.length;_r<Xr;++_r){if(yt=qe.metadata.characterToGlyph(Xe.charCodeAt(_r)),qe.metadata.glyIdsUsed.push(yt),qe.metadata.toUnicode[yt]=Xe.charCodeAt(_r),ht.indexOf(yt)==-1&&(ht.push(yt),ht.push([parseInt(qe.metadata.widthOfGlyph(yt),10)])),yt=="0")return kr.join("");yt=yt.toString(16),kr.push(Jt[4-yt.length],yt)}return kr.join("")},Ue=function(qe){var yt,ht,Jt,kr,_r,Xr,Bt;for(_r=`/CIDInit /ProcSet findresource begin
|
|
|
12 dict begin
|
|
|
begincmap
|
|
|
/CIDSystemInfo <<
|
|
|
/Registry (Adobe)
|
|
|
/Ordering (UCS)
|
|
|
/Supplement 0
|
|
|
>> def
|
|
|
/CMapName /Adobe-Identity-UCS def
|
|
|
/CMapType 2 def
|
|
|
1 begincodespacerange
|
|
|
<0000><ffff>
|
|
|
endcodespacerange`,Jt=[],Xr=0,Bt=(ht=Object.keys(qe).sort(function(gn,hr){return gn-hr})).length;Xr<Bt;Xr++)yt=ht[Xr],Jt.length>=100&&(_r+=`
|
|
|
`+Jt.length+` beginbfchar
|
|
|
`+Jt.join(`
|
|
|
`)+`
|
|
|
endbfchar`,Jt=[]),qe[yt]!==void 0&&qe[yt]!==null&&typeof qe[yt].toString=="function"&&(kr=("0000"+qe[yt].toString(16)).slice(-4),yt=("0000"+(+yt).toString(16)).slice(-4),Jt.push("<"+yt+"><"+kr+">"));return Jt.length&&(_r+=`
|
|
|
`+Jt.length+` beginbfchar
|
|
|
`+Jt.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),_r+=`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};be.events.push(["putFont",function(Xe){!function(qe){var yt=qe.font,ht=qe.out,Jt=qe.newObject,kr=qe.putStream;if(yt.metadata instanceof Ze.API.TTFFont&&yt.encoding==="Identity-H"){for(var _r=yt.metadata.Unicode.widths,Xr=yt.metadata.subset.encode(yt.metadata.glyIdsUsed,1),Bt="",gn=0;gn<Xr.length;gn++)Bt+=String.fromCharCode(Xr[gn]);var hr=Jt();kr({data:Bt,addLength1:!0,objectId:hr}),ht("endobj");var vn=Jt();kr({data:Ue(yt.metadata.toUnicode),addLength1:!0,objectId:vn}),ht("endobj");var en=Jt();ht("<<"),ht("/Type /FontDescriptor"),ht("/FontName /"+N(yt.fontName)),ht("/FontFile2 "+hr+" 0 R"),ht("/FontBBox "+Ze.API.PDFObject.convert(yt.metadata.bbox)),ht("/Flags "+yt.metadata.flags),ht("/StemV "+yt.metadata.stemV),ht("/ItalicAngle "+yt.metadata.italicAngle),ht("/Ascent "+yt.metadata.ascender),ht("/Descent "+yt.metadata.decender),ht("/CapHeight "+yt.metadata.capHeight),ht(">>"),ht("endobj");var Dt=Jt();ht("<<"),ht("/Type /Font"),ht("/BaseFont /"+N(yt.fontName)),ht("/FontDescriptor "+en+" 0 R"),ht("/W "+Ze.API.PDFObject.convert(_r)),ht("/CIDToGIDMap /Identity"),ht("/DW 1000"),ht("/Subtype /CIDFontType2"),ht("/CIDSystemInfo"),ht("<<"),ht("/Supplement 0"),ht("/Registry (Adobe)"),ht("/Ordering ("+yt.encoding+")"),ht(">>"),ht(">>"),ht("endobj"),yt.objectNumber=Jt(),ht("<<"),ht("/Type /Font"),ht("/Subtype /Type0"),ht("/ToUnicode "+vn+" 0 R"),ht("/BaseFont /"+N(yt.fontName)),ht("/Encoding /"+yt.encoding),ht("/DescendantFonts ["+Dt+" 0 R]"),ht(">>"),ht("endobj"),yt.isAlreadyPutted=!0}}(Xe)}]),be.events.push(["putFont",function(Xe){!function(qe){var yt=qe.font,ht=qe.out,Jt=qe.newObject,kr=qe.putStream;if(yt.metadata instanceof Ze.API.TTFFont&&yt.encoding==="WinAnsiEncoding"){for(var _r=yt.metadata.rawData,Xr="",Bt=0;Bt<_r.length;Bt++)Xr+=String.fromCharCode(_r[Bt]);var gn=Jt();kr({data:Xr,addLength1:!0,objectId:gn}),ht("endobj");var hr=Jt();kr({data:Ue(yt.metadata.toUnicode),addLength1:!0,objectId:hr}),ht("endobj");var vn=Jt();ht("<<"),ht("/Descent "+yt.metadata.decender),ht("/CapHeight "+yt.metadata.capHeight),ht("/StemV "+yt.metadata.stemV),ht("/Type /FontDescriptor"),ht("/FontFile2 "+gn+" 0 R"),ht("/Flags 96"),ht("/FontBBox "+Ze.API.PDFObject.convert(yt.metadata.bbox)),ht("/FontName /"+N(yt.fontName)),ht("/ItalicAngle "+yt.metadata.italicAngle),ht("/Ascent "+yt.metadata.ascender),ht(">>"),ht("endobj"),yt.objectNumber=Jt();for(var en=0;en<yt.metadata.hmtx.widths.length;en++)yt.metadata.hmtx.widths[en]=parseInt(yt.metadata.hmtx.widths[en]*(1e3/yt.metadata.head.unitsPerEm));ht("<</Subtype/TrueType/Type/Font/ToUnicode "+hr+" 0 R/BaseFont/"+N(yt.fontName)+"/FontDescriptor "+vn+" 0 R/Encoding/"+yt.encoding+" /FirstChar 29 /LastChar 255 /Widths "+Ze.API.PDFObject.convert(yt.metadata.hmtx.widths)+">>"),ht("endobj"),yt.isAlreadyPutted=!0}}(Xe)}]);var Qe=function(qe){var yt,ht=qe.text||"",Jt=qe.x,kr=qe.y,_r=qe.options||{},Xr=qe.mutex||{},Bt=Xr.pdfEscape,gn=Xr.activeFontKey,hr=Xr.fonts,vn=gn,en="",Dt=0,jr="",un=hr[vn].encoding;if(hr[vn].encoding!=="Identity-H")return{text:ht,x:Jt,y:kr,options:_r,mutex:Xr};for(jr=ht,vn=gn,Array.isArray(ht)&&(jr=ht[0]),Dt=0;Dt<jr.length;Dt+=1)hr[vn].metadata.hasOwnProperty("cmap")&&(yt=hr[vn].metadata.cmap.unicode.codeMap[jr[Dt].charCodeAt(0)]),yt||jr[Dt].charCodeAt(0)<256&&hr[vn].metadata.hasOwnProperty("Unicode")?en+=jr[Dt]:en+="";var Hr="";return parseInt(vn.slice(1))<14||un==="WinAnsiEncoding"?Hr=Bt(en,vn).split("").map(function(Wt){return Wt.charCodeAt(0).toString(16)}).join(""):un==="Identity-H"&&(Hr=Ne(en,hr[vn])),Xr.isHex=!0,{text:Hr,x:Jt,y:kr,options:_r,mutex:Xr}};be.events.push(["postProcessText",function(Xe){var qe=Xe.text||"",yt=[],ht={text:qe,x:Xe.x,y:Xe.y,options:Xe.options,mutex:Xe.mutex};if(Array.isArray(qe)){var Jt=0;for(Jt=0;Jt<qe.length;Jt+=1)Array.isArray(qe[Jt])&&qe[Jt].length===3?yt.push([Qe(Object.assign({},ht,{text:qe[Jt][0]})).text,qe[Jt][1],qe[Jt][2]]):yt.push(Qe(Object.assign({},ht,{text:qe[Jt]})).text);Xe.text=yt}else Xe.text=Qe(Object.assign({},ht,{text:qe})).text}])}(K),function(Ze){var be=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};Ze.existsFileInVFS=function(Ne){return be.call(this),this.internal.vFS[Ne]!==void 0},Ze.addFileToVFS=function(Ne,Ue){return be.call(this),this.internal.vFS[Ne]=Ue,this},Ze.getFileFromVFS=function(Ne){return be.call(this),this.internal.vFS[Ne]!==void 0?this.internal.vFS[Ne]:null}}(K.API),function(Ze){Ze.__bidiEngine__=Ze.prototype.__bidiEngine__=function(Ue){var Qe,Xe,qe,yt,ht,Jt,kr,_r=be,Xr=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],Bt=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],gn={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},hr={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},vn=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],en=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),Dt=!1,jr=0;this.__bidiEngine__={};var un=function(Lt){var Qt=Lt.charCodeAt(),It=Qt>>8,or=hr[It];return or!==void 0?_r[256*or+(255&Qt)]:It===252||It===253?"AL":en.test(It)?"L":It===8?"R":"N"},Hr=function(Lt){for(var Qt,It=0;It<Lt.length;It++){if((Qt=un(Lt.charAt(It)))==="L")return!1;if(Qt==="R")return!0}return!1},Wt=function(Lt,Qt,It,or){var Cr,Er,Kr,jn,Nn=Qt[or];switch(Nn){case"L":case"R":Dt=!1;break;case"N":case"AN":break;case"EN":Dt&&(Nn="AN");break;case"AL":Dt=!0,Nn="R";break;case"WS":Nn="N";break;case"CS":or<1||or+1>=Qt.length||(Cr=It[or-1])!=="EN"&&Cr!=="AN"||(Er=Qt[or+1])!=="EN"&&Er!=="AN"?Nn="N":Dt&&(Er="AN"),Nn=Er===Cr?Er:"N";break;case"ES":Nn=(Cr=or>0?It[or-1]:"B")==="EN"&&or+1<Qt.length&&Qt[or+1]==="EN"?"EN":"N";break;case"ET":if(or>0&&It[or-1]==="EN"){Nn="EN";break}if(Dt){Nn="N";break}for(Kr=or+1,jn=Qt.length;Kr<jn&&Qt[Kr]==="ET";)Kr++;Nn=Kr<jn&&Qt[Kr]==="EN"?"EN":"N";break;case"NSM":if(qe&&!yt){for(jn=Qt.length,Kr=or+1;Kr<jn&&Qt[Kr]==="NSM";)Kr++;if(Kr<jn){var ei=Lt[or],Zr=ei>=1425&&ei<=2303||ei===64286;if(Cr=Qt[Kr],Zr&&(Cr==="R"||Cr==="AL")){Nn="R";break}}}Nn=or<1||(Cr=Qt[or-1])==="B"?"N":It[or-1];break;case"B":Dt=!1,Qe=!0,Nn=jr;break;case"S":Xe=!0,Nn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Dt=!1;break;case"BN":Nn="N"}return Nn},wr=function(Lt,Qt,It){var or=Lt.split("");return It&&fn(or,It,{hiLevel:jr}),or.reverse(),Qt&&Qt.reverse(),or.join("")},fn=function(Lt,Qt,It){var or,Cr,Er,Kr,jn,Nn=-1,ei=Lt.length,Zr=0,br=[],dn=jr?Bt:Xr,Ln=[];for(Dt=!1,Qe=!1,Xe=!1,Cr=0;Cr<ei;Cr++)Ln[Cr]=un(Lt[Cr]);for(Er=0;Er<ei;Er++){if(jn=Zr,br[Er]=Wt(Lt,Ln,br,Er),or=240&(Zr=dn[jn][gn[br[Er]]]),Zr&=15,Qt[Er]=Kr=dn[Zr][5],or>0)if(or===16){for(Cr=Nn;Cr<Er;Cr++)Qt[Cr]=1;Nn=-1}else Nn=-1;if(dn[Zr][6])Nn===-1&&(Nn=Er);else if(Nn>-1){for(Cr=Nn;Cr<Er;Cr++)Qt[Cr]=Kr;Nn=-1}Ln[Er]==="B"&&(Qt[Er]=0),It.hiLevel|=Kr}Xe&&function(Fn,zn,ui){for(var ii=0;ii<ui;ii++)if(Fn[ii]==="S"){zn[ii]=jr;for(var qn=ii-1;qn>=0&&Fn[qn]==="WS";qn--)zn[qn]=jr}}(Ln,Qt,ei)},zt=function(Lt,Qt,It,or,Cr){if(!(Cr.hiLevel<Lt)){if(Lt===1&&jr===1&&!Qe)return Qt.reverse(),void(It&&It.reverse());for(var Er,Kr,jn,Nn,ei=Qt.length,Zr=0;Zr<ei;){if(or[Zr]>=Lt){for(jn=Zr+1;jn<ei&&or[jn]>=Lt;)jn++;for(Nn=Zr,Kr=jn-1;Nn<Kr;Nn++,Kr--)Er=Qt[Nn],Qt[Nn]=Qt[Kr],Qt[Kr]=Er,It&&(Er=It[Nn],It[Nn]=It[Kr],It[Kr]=Er);Zr=jn}Zr++}}},Dr=function(Lt,Qt,It){var or=Lt.split(""),Cr={hiLevel:jr};return It||(It=[]),fn(or,It,Cr),function(Er,Kr,jn){if(jn.hiLevel!==0&&kr)for(var Nn,ei=0;ei<Er.length;ei++)Kr[ei]===1&&(Nn=vn.indexOf(Er[ei]))>=0&&(Er[ei]=vn[Nn+1])}(or,It,Cr),zt(2,or,Qt,It,Cr),zt(1,or,Qt,It,Cr),or.join("")};return this.__bidiEngine__.doBidiReorder=function(ir,Lt,Qt){if(function(or,Cr){if(Cr)for(var Er=0;Er<or.length;Er++)Cr[Er]=Er;yt===void 0&&(yt=Hr(or)),Jt===void 0&&(Jt=Hr(or))}(ir,Lt),qe||!ht||Jt)if(qe&&ht&&yt^Jt)jr=yt?1:0,ir=wr(ir,Lt,Qt);else if(!qe&&ht&&Jt)jr=yt?1:0,ir=Dr(ir,Lt,Qt),ir=wr(ir,Lt);else if(!qe||yt||ht||Jt){if(qe&&!ht&&yt^Jt)ir=wr(ir,Lt),yt?(jr=0,ir=Dr(ir,Lt,Qt)):(jr=1,ir=Dr(ir,Lt,Qt),ir=wr(ir,Lt));else if(qe&&yt&&!ht&&Jt)jr=1,ir=Dr(ir,Lt,Qt),ir=wr(ir,Lt);else if(!qe&&!ht&&yt^Jt){var It=kr;yt?(jr=1,ir=Dr(ir,Lt,Qt),jr=0,kr=!1,ir=Dr(ir,Lt,Qt),kr=It):(jr=0,ir=Dr(ir,Lt,Qt),ir=wr(ir,Lt),jr=1,kr=!1,ir=Dr(ir,Lt,Qt),kr=It,ir=wr(ir,Lt))}}else jr=0,ir=Dr(ir,Lt,Qt);else jr=yt?1:0,ir=Dr(ir,Lt,Qt);return ir},this.__bidiEngine__.setOptions=function(ir){ir&&(qe=ir.isInputVisual,ht=ir.isOutputVisual,yt=ir.isInputRtl,Jt=ir.isOutputRtl,kr=ir.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Ue),this.__bidiEngine__};var be=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],Ne=new Ze.__bidiEngine__({isInputVisual:!0});Ze.API.events.push(["postProcessText",function(Ue){var Qe=Ue.text,Xe=(Ue.x,Ue.y,Ue.options||{}),qe=(Ue.mutex,Xe.lang,[]);if(Xe.isInputVisual=typeof Xe.isInputVisual!="boolean"||Xe.isInputVisual,Ne.setOptions(Xe),Object.prototype.toString.call(Qe)==="[object Array]"){var yt=0;for(qe=[],yt=0;yt<Qe.length;yt+=1)Object.prototype.toString.call(Qe[yt])==="[object Array]"?qe.push([Ne.doBidiReorder(Qe[yt][0]),Qe[yt][1],Qe[yt][2]]):qe.push([Ne.doBidiReorder(Qe[yt])]);Ue.text=qe}else Ue.text=Ne.doBidiReorder(Qe);Ne.setOptions({isInputVisual:!0})}])}(K),K.API.TTFFont=function(){function Ze(be){var Ne;if(this.rawData=be,Ne=this.contents=new _t(be),this.contents.pos=4,Ne.readString(4)==="ttcf")throw new Error("TTCF not supported.");Ne.pos=0,this.parse(),this.subset=new Oi(this),this.registerTTF()}return Ze.open=function(be){return new Ze(be)},Ze.prototype.parse=function(){return this.directory=new at(this.contents),this.head=new Pt(this),this.name=new gr(this),this.cmap=new Ht(this),this.toUnicode={},this.hhea=new ot(this),this.maxp=new Qr(this),this.hmtx=new ln(this),this.post=new xr(this),this.os2=new Mt(this),this.loca=new pi(this),this.glyf=new Mn(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},Ze.prototype.registerTTF=function(){var be,Ne,Ue,Qe,Xe;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var qe,yt,ht,Jt;for(Jt=[],qe=0,yt=(ht=this.bbox).length;qe<yt;qe++)be=ht[qe],Jt.push(Math.round(be*this.scaleFactor));return Jt}.call(this),this.stemV=0,this.post.exists?(Ue=255&(Qe=this.post.italic_angle),(32768&(Ne=Qe>>16))!=0&&(Ne=-(1+(65535^Ne))),this.italicAngle=+(Ne+"."+Ue)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(Xe=this.familyClass)===1||Xe===2||Xe===3||Xe===4||Xe===5||Xe===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},Ze.prototype.characterToGlyph=function(be){var Ne;return((Ne=this.cmap.unicode)!=null?Ne.codeMap[be]:void 0)||0},Ze.prototype.widthOfGlyph=function(be){var Ne;return Ne=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(be).advance*Ne},Ze.prototype.widthOfString=function(be,Ne,Ue){var Qe,Xe,qe,yt;for(qe=0,Xe=0,yt=(be=""+be).length;0<=yt?Xe<yt:Xe>yt;Xe=0<=yt?++Xe:--Xe)Qe=be.charCodeAt(Xe),qe+=this.widthOfGlyph(this.characterToGlyph(Qe))+Ue*(1e3/Ne)||0;return qe*(Ne/1e3)},Ze.prototype.lineHeight=function(be,Ne){var Ue;return Ne==null&&(Ne=!1),Ue=Ne?this.lineGap:0,(this.ascender+Ue-this.decender)/1e3*be},Ze}();var an,_t=function(){function Ze(be){this.data=be!=null?be:[],this.pos=0,this.length=this.data.length}return Ze.prototype.readByte=function(){return this.data[this.pos++]},Ze.prototype.writeByte=function(be){return this.data[this.pos++]=be},Ze.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},Ze.prototype.writeUInt32=function(be){return this.writeByte(be>>>24&255),this.writeByte(be>>16&255),this.writeByte(be>>8&255),this.writeByte(255&be)},Ze.prototype.readInt32=function(){var be;return(be=this.readUInt32())>=2147483648?be-4294967296:be},Ze.prototype.writeInt32=function(be){return be<0&&(be+=4294967296),this.writeUInt32(be)},Ze.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},Ze.prototype.writeUInt16=function(be){return this.writeByte(be>>8&255),this.writeByte(255&be)},Ze.prototype.readInt16=function(){var be;return(be=this.readUInt16())>=32768?be-65536:be},Ze.prototype.writeInt16=function(be){return be<0&&(be+=65536),this.writeUInt16(be)},Ze.prototype.readString=function(be){var Ne,Ue;for(Ue=[],Ne=0;0<=be?Ne<be:Ne>be;Ne=0<=be?++Ne:--Ne)Ue[Ne]=String.fromCharCode(this.readByte());return Ue.join("")},Ze.prototype.writeString=function(be){var Ne,Ue,Qe;for(Qe=[],Ne=0,Ue=be.length;0<=Ue?Ne<Ue:Ne>Ue;Ne=0<=Ue?++Ne:--Ne)Qe.push(this.writeByte(be.charCodeAt(Ne)));return Qe},Ze.prototype.readShort=function(){return this.readInt16()},Ze.prototype.writeShort=function(be){return this.writeInt16(be)},Ze.prototype.readLongLong=function(){var be,Ne,Ue,Qe,Xe,qe,yt,ht;return be=this.readByte(),Ne=this.readByte(),Ue=this.readByte(),Qe=this.readByte(),Xe=this.readByte(),qe=this.readByte(),yt=this.readByte(),ht=this.readByte(),128&be?-1*(72057594037927940*(255^be)+281474976710656*(255^Ne)+1099511627776*(255^Ue)+4294967296*(255^Qe)+16777216*(255^Xe)+65536*(255^qe)+256*(255^yt)+(255^ht)+1):72057594037927940*be+281474976710656*Ne+1099511627776*Ue+4294967296*Qe+16777216*Xe+65536*qe+256*yt+ht},Ze.prototype.writeLongLong=function(be){var Ne,Ue;return Ne=Math.floor(be/4294967296),Ue=4294967295&be,this.writeByte(Ne>>24&255),this.writeByte(Ne>>16&255),this.writeByte(Ne>>8&255),this.writeByte(255&Ne),this.writeByte(Ue>>24&255),this.writeByte(Ue>>16&255),this.writeByte(Ue>>8&255),this.writeByte(255&Ue)},Ze.prototype.readInt=function(){return this.readInt32()},Ze.prototype.writeInt=function(be){return this.writeInt32(be)},Ze.prototype.read=function(be){var Ne,Ue;for(Ne=[],Ue=0;0<=be?Ue<be:Ue>be;Ue=0<=be?++Ue:--Ue)Ne.push(this.readByte());return Ne},Ze.prototype.write=function(be){var Ne,Ue,Qe,Xe;for(Xe=[],Ue=0,Qe=be.length;Ue<Qe;Ue++)Ne=be[Ue],Xe.push(this.writeByte(Ne));return Xe},Ze}(),at=function(){var Ze;function be(Ne){var Ue,Qe,Xe;for(this.scalarType=Ne.readInt(),this.tableCount=Ne.readShort(),this.searchRange=Ne.readShort(),this.entrySelector=Ne.readShort(),this.rangeShift=Ne.readShort(),this.tables={},Qe=0,Xe=this.tableCount;0<=Xe?Qe<Xe:Qe>Xe;Qe=0<=Xe?++Qe:--Qe)Ue={tag:Ne.readString(4),checksum:Ne.readInt(),offset:Ne.readInt(),length:Ne.readInt()},this.tables[Ue.tag]=Ue}return be.prototype.encode=function(Ne){var Ue,Qe,Xe,qe,yt,ht,Jt,kr,_r,Xr,Bt,gn,hr;for(hr in Bt=Object.keys(Ne).length,ht=Math.log(2),_r=16*Math.floor(Math.log(Bt)/ht),qe=Math.floor(_r/ht),kr=16*Bt-_r,(Qe=new _t).writeInt(this.scalarType),Qe.writeShort(Bt),Qe.writeShort(_r),Qe.writeShort(qe),Qe.writeShort(kr),Xe=16*Bt,Jt=Qe.pos+Xe,yt=null,gn=[],Ne)for(Xr=Ne[hr],Qe.writeString(hr),Qe.writeInt(Ze(Xr)),Qe.writeInt(Jt),Qe.writeInt(Xr.length),gn=gn.concat(Xr),hr==="head"&&(yt=Jt),Jt+=Xr.length;Jt%4;)gn.push(0),Jt++;return Qe.write(gn),Ue=2981146554-Ze(Qe.data),Qe.pos=yt+8,Qe.writeUInt32(Ue),Qe.data},Ze=function(Ue){var Qe,Xe,qe,yt;for(Ue=_n.call(Ue);Ue.length%4;)Ue.push(0);for(qe=new _t(Ue),Xe=0,Qe=0,yt=Ue.length;Qe<yt;Qe=Qe+=4)Xe+=qe.readUInt32();return 4294967295&Xe},be}(),bt={}.hasOwnProperty,kt=function(be,Ne){for(var Ue in Ne)bt.call(Ne,Ue)&&(be[Ue]=Ne[Ue]);function Qe(){this.constructor=be}return Qe.prototype=Ne.prototype,be.prototype=new Qe,be.__super__=Ne.prototype,be};an=function(){function Ze(be){var Ne;this.file=be,Ne=this.file.directory.tables[this.tag],this.exists=!!Ne,Ne&&(this.offset=Ne.offset,this.length=Ne.length,this.parse(this.file.contents))}return Ze.prototype.parse=function(){},Ze.prototype.encode=function(){},Ze.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},Ze}();var Pt=function(Ze){function be(){return be.__super__.constructor.apply(this,arguments)}return kt(be,an),be.prototype.tag="head",be.prototype.parse=function(Ne){return Ne.pos=this.offset,this.version=Ne.readInt(),this.revision=Ne.readInt(),this.checkSumAdjustment=Ne.readInt(),this.magicNumber=Ne.readInt(),this.flags=Ne.readShort(),this.unitsPerEm=Ne.readShort(),this.created=Ne.readLongLong(),this.modified=Ne.readLongLong(),this.xMin=Ne.readShort(),this.yMin=Ne.readShort(),this.xMax=Ne.readShort(),this.yMax=Ne.readShort(),this.macStyle=Ne.readShort(),this.lowestRecPPEM=Ne.readShort(),this.fontDirectionHint=Ne.readShort(),this.indexToLocFormat=Ne.readShort(),this.glyphDataFormat=Ne.readShort()},be.prototype.encode=function(Ne){var Ue;return(Ue=new _t).writeInt(this.version),Ue.writeInt(this.revision),Ue.writeInt(this.checkSumAdjustment),Ue.writeInt(this.magicNumber),Ue.writeShort(this.flags),Ue.writeShort(this.unitsPerEm),Ue.writeLongLong(this.created),Ue.writeLongLong(this.modified),Ue.writeShort(this.xMin),Ue.writeShort(this.yMin),Ue.writeShort(this.xMax),Ue.writeShort(this.yMax),Ue.writeShort(this.macStyle),Ue.writeShort(this.lowestRecPPEM),Ue.writeShort(this.fontDirectionHint),Ue.writeShort(Ne),Ue.writeShort(this.glyphDataFormat),Ue.data},be}(),Et=function(){function Ze(be,Ne){var Ue,Qe,Xe,qe,yt,ht,Jt,kr,_r,Xr,Bt,gn,hr,vn,en,Dt,jr;switch(this.platformID=be.readUInt16(),this.encodingID=be.readShort(),this.offset=Ne+be.readInt(),_r=be.pos,be.pos=this.offset,this.format=be.readUInt16(),this.length=be.readUInt16(),this.language=be.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(ht=0;ht<256;++ht)this.codeMap[ht]=be.readByte();break;case 4:for(Bt=be.readUInt16(),Xr=Bt/2,be.pos+=6,Xe=function(){var un,Hr;for(Hr=[],ht=un=0;0<=Xr?un<Xr:un>Xr;ht=0<=Xr?++un:--un)Hr.push(be.readUInt16());return Hr}(),be.pos+=2,hr=function(){var un,Hr;for(Hr=[],ht=un=0;0<=Xr?un<Xr:un>Xr;ht=0<=Xr?++un:--un)Hr.push(be.readUInt16());return Hr}(),Jt=function(){var un,Hr;for(Hr=[],ht=un=0;0<=Xr?un<Xr:un>Xr;ht=0<=Xr?++un:--un)Hr.push(be.readUInt16());return Hr}(),kr=function(){var un,Hr;for(Hr=[],ht=un=0;0<=Xr?un<Xr:un>Xr;ht=0<=Xr?++un:--un)Hr.push(be.readUInt16());return Hr}(),Qe=(this.length-be.pos+this.offset)/2,yt=function(){var un,Hr;for(Hr=[],ht=un=0;0<=Qe?un<Qe:un>Qe;ht=0<=Qe?++un:--un)Hr.push(be.readUInt16());return Hr}(),ht=en=0,jr=Xe.length;en<jr;ht=++en)for(vn=Xe[ht],Ue=Dt=gn=hr[ht];gn<=vn?Dt<=vn:Dt>=vn;Ue=gn<=vn?++Dt:--Dt)kr[ht]===0?qe=Ue+Jt[ht]:(qe=yt[kr[ht]/2+(Ue-gn)-(Xr-ht)]||0)!==0&&(qe+=Jt[ht]),this.codeMap[Ue]=65535&qe}be.pos=_r}return Ze.encode=function(be,Ne){var Ue,Qe,Xe,qe,yt,ht,Jt,kr,_r,Xr,Bt,gn,hr,vn,en,Dt,jr,un,Hr,Wt,wr,fn,zt,Dr,ir,Lt,Qt,It,or,Cr,Er,Kr,jn,Nn,ei,Zr,br,dn,Ln,Fn,zn,ui,ii,qn,Li,zi;switch(It=new _t,qe=Object.keys(be).sort(function(Ri,ga){return Ri-ga}),Ne){case"macroman":for(hr=0,vn=function(){var Ri=[];for(gn=0;gn<256;++gn)Ri.push(0);return Ri}(),Dt={0:0},Xe={},or=0,jn=qe.length;or<jn;or++)Dt[ii=be[Qe=qe[or]]]==null&&(Dt[ii]=++hr),Xe[Qe]={old:be[Qe],new:Dt[be[Qe]]},vn[Qe]=Dt[be[Qe]];return It.writeUInt16(1),It.writeUInt16(0),It.writeUInt32(12),It.writeUInt16(0),It.writeUInt16(262),It.writeUInt16(0),It.write(vn),{charMap:Xe,subtable:It.data,maxGlyphID:hr+1};case"unicode":for(Lt=[],_r=[],jr=0,Dt={},Ue={},en=Jt=null,Cr=0,Nn=qe.length;Cr<Nn;Cr++)Dt[Hr=be[Qe=qe[Cr]]]==null&&(Dt[Hr]=++jr),Ue[Qe]={old:Hr,new:Dt[Hr]},yt=Dt[Hr]-Qe,en!=null&&yt===Jt||(en&&_r.push(en),Lt.push(Qe),Jt=yt),en=Qe;for(en&&_r.push(en),_r.push(65535),Lt.push(65535),Dr=2*(zt=Lt.length),fn=2*Math.pow(Math.log(zt)/Math.LN2,2),Xr=Math.log(fn/2)/Math.LN2,wr=2*zt-fn,ht=[],Wt=[],Bt=[],gn=Er=0,ei=Lt.length;Er<ei;gn=++Er){if(ir=Lt[gn],kr=_r[gn],ir===65535){ht.push(0),Wt.push(0);break}if(ir-(Qt=Ue[ir].new)>=32768)for(ht.push(0),Wt.push(2*(Bt.length+zt-gn)),Qe=Kr=ir;ir<=kr?Kr<=kr:Kr>=kr;Qe=ir<=kr?++Kr:--Kr)Bt.push(Ue[Qe].new);else ht.push(Qt-ir),Wt.push(0)}for(It.writeUInt16(3),It.writeUInt16(1),It.writeUInt32(12),It.writeUInt16(4),It.writeUInt16(16+8*zt+2*Bt.length),It.writeUInt16(0),It.writeUInt16(Dr),It.writeUInt16(fn),It.writeUInt16(Xr),It.writeUInt16(wr),zn=0,Zr=_r.length;zn<Zr;zn++)Qe=_r[zn],It.writeUInt16(Qe);for(It.writeUInt16(0),ui=0,br=Lt.length;ui<br;ui++)Qe=Lt[ui],It.writeUInt16(Qe);for(qn=0,dn=ht.length;qn<dn;qn++)yt=ht[qn],It.writeUInt16(yt);for(Li=0,Ln=Wt.length;Li<Ln;Li++)un=Wt[Li],It.writeUInt16(un);for(zi=0,Fn=Bt.length;zi<Fn;zi++)hr=Bt[zi],It.writeUInt16(hr);return{charMap:Ue,subtable:It.data,maxGlyphID:jr+1}}},Ze}(),Ht=function(Ze){function be(){return be.__super__.constructor.apply(this,arguments)}return kt(be,an),be.prototype.tag="cmap",be.prototype.parse=function(Ne){var Ue,Qe,Xe;for(Ne.pos=this.offset,this.version=Ne.readUInt16(),Xe=Ne.readUInt16(),this.tables=[],this.unicode=null,Qe=0;0<=Xe?Qe<Xe:Qe>Xe;Qe=0<=Xe?++Qe:--Qe)Ue=new Et(Ne,this.offset),this.tables.push(Ue),Ue.isUnicode&&this.unicode==null&&(this.unicode=Ue);return!0},be.encode=function(Ne,Ue){var Qe,Xe;return Ue==null&&(Ue="macroman"),Qe=Et.encode(Ne,Ue),(Xe=new _t).writeUInt16(0),Xe.writeUInt16(1),Qe.table=Xe.data.concat(Qe.subtable),Qe},be}(),ot=function(Ze){function be(){return be.__super__.constructor.apply(this,arguments)}return kt(be,an),be.prototype.tag="hhea",be.prototype.parse=function(Ne){return Ne.pos=this.offset,this.version=Ne.readInt(),this.ascender=Ne.readShort(),this.decender=Ne.readShort(),this.lineGap=Ne.readShort(),this.advanceWidthMax=Ne.readShort(),this.minLeftSideBearing=Ne.readShort(),this.minRightSideBearing=Ne.readShort(),this.xMaxExtent=Ne.readShort(),this.caretSlopeRise=Ne.readShort(),this.caretSlopeRun=Ne.readShort(),this.caretOffset=Ne.readShort(),Ne.pos+=8,this.metricDataFormat=Ne.readShort(),this.numberOfMetrics=Ne.readUInt16()},be}(),Mt=function(Ze){function be(){return be.__super__.constructor.apply(this,arguments)}return kt(be,an),be.prototype.tag="OS/2",be.prototype.parse=function(Ne){if(Ne.pos=this.offset,this.version=Ne.readUInt16(),this.averageCharWidth=Ne.readShort(),this.weightClass=Ne.readUInt16(),this.widthClass=Ne.readUInt16(),this.type=Ne.readShort(),this.ySubscriptXSize=Ne.readShort(),this.ySubscriptYSize=Ne.readShort(),this.ySubscriptXOffset=Ne.readShort(),this.ySubscriptYOffset=Ne.readShort(),this.ySuperscriptXSize=Ne.readShort(),this.ySuperscriptYSize=Ne.readShort(),this.ySuperscriptXOffset=Ne.readShort(),this.ySuperscriptYOffset=Ne.readShort(),this.yStrikeoutSize=Ne.readShort(),this.yStrikeoutPosition=Ne.readShort(),this.familyClass=Ne.readShort(),this.panose=function(){var Ue,Qe;for(Qe=[],Ue=0;Ue<10;++Ue)Qe.push(Ne.readByte());return Qe}(),this.charRange=function(){var Ue,Qe;for(Qe=[],Ue=0;Ue<4;++Ue)Qe.push(Ne.readInt());return Qe}(),this.vendorID=Ne.readString(4),this.selection=Ne.readShort(),this.firstCharIndex=Ne.readShort(),this.lastCharIndex=Ne.readShort(),this.version>0&&(this.ascent=Ne.readShort(),this.descent=Ne.readShort(),this.lineGap=Ne.readShort(),this.winAscent=Ne.readShort(),this.winDescent=Ne.readShort(),this.codePageRange=function(){var Ue,Qe;for(Qe=[],Ue=0;Ue<2;Ue=++Ue)Qe.push(Ne.readInt());return Qe}(),this.version>1))return this.xHeight=Ne.readShort(),this.capHeight=Ne.readShort(),this.defaultChar=Ne.readShort(),this.breakChar=Ne.readShort(),this.maxContext=Ne.readShort()},be}(),xr=function(Ze){function be(){return be.__super__.constructor.apply(this,arguments)}return kt(be,an),be.prototype.tag="post",be.prototype.parse=function(Ne){var Ue,Qe,Xe;switch(Ne.pos=this.offset,this.format=Ne.readInt(),this.italicAngle=Ne.readInt(),this.underlinePosition=Ne.readShort(),this.underlineThickness=Ne.readShort(),this.isFixedPitch=Ne.readInt(),this.minMemType42=Ne.readInt(),this.maxMemType42=Ne.readInt(),this.minMemType1=Ne.readInt(),this.maxMemType1=Ne.readInt(),this.format){case 65536:break;case 131072:var qe;for(Qe=Ne.readUInt16(),this.glyphNameIndex=[],qe=0;0<=Qe?qe<Qe:qe>Qe;qe=0<=Qe?++qe:--qe)this.glyphNameIndex.push(Ne.readUInt16());for(this.names=[],Xe=[];Ne.pos<this.offset+this.length;)Ue=Ne.readByte(),Xe.push(this.names.push(Ne.readString(Ue)));return Xe;case 151552:return Qe=Ne.readUInt16(),this.offsets=Ne.read(Qe);case 196608:break;case 262144:return this.map=function(){var yt,ht,Jt;for(Jt=[],qe=yt=0,ht=this.file.maxp.numGlyphs;0<=ht?yt<ht:yt>ht;qe=0<=ht?++yt:--yt)Jt.push(Ne.readUInt32());return Jt}.call(this)}},be}(),ur=function(be,Ne){this.raw=be,this.length=be.length,this.platformID=Ne.platformID,this.encodingID=Ne.encodingID,this.languageID=Ne.languageID},gr=function(Ze){function be(){return be.__super__.constructor.apply(this,arguments)}return kt(be,an),be.prototype.tag="name",be.prototype.parse=function(Ne){var Ue,Qe,Xe,qe,yt,ht,Jt,kr,_r,Xr,Bt;for(Ne.pos=this.offset,Ne.readShort(),Ue=Ne.readShort(),ht=Ne.readShort(),Qe=[],qe=0;0<=Ue?qe<Ue:qe>Ue;qe=0<=Ue?++qe:--qe)Qe.push({platformID:Ne.readShort(),encodingID:Ne.readShort(),languageID:Ne.readShort(),nameID:Ne.readShort(),length:Ne.readShort(),offset:this.offset+ht+Ne.readShort()});for(Jt={},qe=_r=0,Xr=Qe.length;_r<Xr;qe=++_r)Xe=Qe[qe],Ne.pos=Xe.offset,kr=Ne.readString(Xe.length),yt=new ur(kr,Xe),Jt[Bt=Xe.nameID]==null&&(Jt[Bt]=[]),Jt[Xe.nameID].push(yt);this.strings=Jt,this.copyright=Jt[0],this.fontFamily=Jt[1],this.fontSubfamily=Jt[2],this.uniqueSubfamily=Jt[3],this.fontName=Jt[4],this.version=Jt[5];try{this.postscriptName=Jt[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(gn){this.postscriptName=Jt[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=Jt[7],this.manufacturer=Jt[8],this.designer=Jt[9],this.description=Jt[10],this.vendorUrl=Jt[11],this.designerUrl=Jt[12],this.license=Jt[13],this.licenseUrl=Jt[14],this.preferredFamily=Jt[15],this.preferredSubfamily=Jt[17],this.compatibleFull=Jt[18],this.sampleText=Jt[19]},be}(),Qr=function(Ze){function be(){return be.__super__.constructor.apply(this,arguments)}return kt(be,an),be.prototype.tag="maxp",be.prototype.parse=function(Ne){return Ne.pos=this.offset,this.version=Ne.readInt(),this.numGlyphs=Ne.readUInt16(),this.maxPoints=Ne.readUInt16(),this.maxContours=Ne.readUInt16(),this.maxCompositePoints=Ne.readUInt16(),this.maxComponentContours=Ne.readUInt16(),this.maxZones=Ne.readUInt16(),this.maxTwilightPoints=Ne.readUInt16(),this.maxStorage=Ne.readUInt16(),this.maxFunctionDefs=Ne.readUInt16(),this.maxInstructionDefs=Ne.readUInt16(),this.maxStackElements=Ne.readUInt16(),this.maxSizeOfInstructions=Ne.readUInt16(),this.maxComponentElements=Ne.readUInt16(),this.maxComponentDepth=Ne.readUInt16()},be}(),ln=function(Ze){function be(){return be.__super__.constructor.apply(this,arguments)}return kt(be,an),be.prototype.tag="hmtx",be.prototype.parse=function(Ne){var Ue,Qe,Xe,qe,yt,ht,Jt;for(Ne.pos=this.offset,this.metrics=[],Ue=0,ht=this.file.hhea.numberOfMetrics;0<=ht?Ue<ht:Ue>ht;Ue=0<=ht?++Ue:--Ue)this.metrics.push({advance:Ne.readUInt16(),lsb:Ne.readInt16()});for(Xe=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var kr,_r;for(_r=[],Ue=kr=0;0<=Xe?kr<Xe:kr>Xe;Ue=0<=Xe?++kr:--kr)_r.push(Ne.readInt16());return _r}(),this.widths=function(){var kr,_r,Xr,Bt;for(Bt=[],kr=0,_r=(Xr=this.metrics).length;kr<_r;kr++)qe=Xr[kr],Bt.push(qe.advance);return Bt}.call(this),Qe=this.widths[this.widths.length-1],Jt=[],Ue=yt=0;0<=Xe?yt<Xe:yt>Xe;Ue=0<=Xe?++yt:--yt)Jt.push(this.widths.push(Qe));return Jt},be.prototype.forGlyph=function(Ne){return Ne in this.metrics?this.metrics[Ne]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[Ne-this.metrics.length]}},be}(),_n=[].slice,Mn=function(Ze){function be(){return be.__super__.constructor.apply(this,arguments)}return kt(be,an),be.prototype.tag="glyf",be.prototype.parse=function(){return this.cache={}},be.prototype.glyphFor=function(Ne){var Ue,Qe,Xe,qe,yt,ht,Jt,kr,_r,Xr;return Ne in this.cache?this.cache[Ne]:(qe=this.file.loca,Ue=this.file.contents,Qe=qe.indexOf(Ne),(Xe=qe.lengthOf(Ne))===0?this.cache[Ne]=null:(Ue.pos=this.offset+Qe,yt=(ht=new _t(Ue.read(Xe))).readShort(),kr=ht.readShort(),Xr=ht.readShort(),Jt=ht.readShort(),_r=ht.readShort(),this.cache[Ne]=yt===-1?new ai(ht,kr,Xr,Jt,_r):new li(ht,yt,kr,Xr,Jt,_r),this.cache[Ne]))},be.prototype.encode=function(Ne,Ue,Qe){var Xe,qe,yt,ht,Jt;for(yt=[],qe=[],ht=0,Jt=Ue.length;ht<Jt;ht++)Xe=Ne[Ue[ht]],qe.push(yt.length),Xe&&(yt=yt.concat(Xe.encode(Qe)));return qe.push(yt.length),{table:yt,offsets:qe}},be}(),li=function(){function Ze(be,Ne,Ue,Qe,Xe,qe){this.raw=be,this.numberOfContours=Ne,this.xMin=Ue,this.yMin=Qe,this.xMax=Xe,this.yMax=qe,this.compound=!1}return Ze.prototype.encode=function(){return this.raw.data},Ze}(),ai=function(){function Ze(be,Ne,Ue,Qe,Xe){var qe,yt;for(this.raw=be,this.xMin=Ne,this.yMin=Ue,this.xMax=Qe,this.yMax=Xe,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],qe=this.raw;yt=qe.readShort(),this.glyphOffsets.push(qe.pos),this.glyphIDs.push(qe.readUInt16()),32&yt;)qe.pos+=1&yt?4:2,128&yt?qe.pos+=8:64&yt?qe.pos+=4:8&yt&&(qe.pos+=2)}return Ze.prototype.encode=function(){var be,Ne,Ue;for(Ne=new _t(_n.call(this.raw.data)),be=0,Ue=this.glyphIDs.length;be<Ue;++be)Ne.pos=this.glyphOffsets[be];return Ne.data},Ze}(),pi=function(Ze){function be(){return be.__super__.constructor.apply(this,arguments)}return kt(be,an),be.prototype.tag="loca",be.prototype.parse=function(Ne){var Ue,Qe;return Ne.pos=this.offset,Ue=this.file.head.indexToLocFormat,this.offsets=Ue===0?function(){var Xe,qe;for(qe=[],Qe=0,Xe=this.length;Qe<Xe;Qe+=2)qe.push(2*Ne.readUInt16());return qe}.call(this):function(){var Xe,qe;for(qe=[],Qe=0,Xe=this.length;Qe<Xe;Qe+=4)qe.push(Ne.readUInt32());return qe}.call(this)},be.prototype.indexOf=function(Ne){return this.offsets[Ne]},be.prototype.lengthOf=function(Ne){return this.offsets[Ne+1]-this.offsets[Ne]},be.prototype.encode=function(Ne,Ue){for(var Qe=new Uint32Array(this.offsets.length),Xe=0,qe=0,yt=0;yt<Qe.length;++yt)if(Qe[yt]=Xe,qe<Ue.length&&Ue[qe]==yt){++qe,Qe[yt]=Xe;var ht=this.offsets[yt],Jt=this.offsets[yt+1]-ht;Jt>0&&(Xe+=Jt)}for(var kr=new Array(4*Qe.length),_r=0;_r<Qe.length;++_r)kr[4*_r+3]=255&Qe[_r],kr[4*_r+2]=(65280&Qe[_r])>>8,kr[4*_r+1]=(16711680&Qe[_r])>>16,kr[4*_r]=(4278190080&Qe[_r])>>24;return kr},be}(),Oi=function(){function Ze(be){this.font=be,this.subset={},this.unicodes={},this.next=33}return Ze.prototype.generateCmap=function(){var be,Ne,Ue,Qe,Xe;for(Ne in Qe=this.font.cmap.tables[0].codeMap,be={},Xe=this.subset)Ue=Xe[Ne],be[Ne]=Qe[Ue];return be},Ze.prototype.glyphsFor=function(be){var Ne,Ue,Qe,Xe,qe,yt,ht;for(Qe={},qe=0,yt=be.length;qe<yt;qe++)Qe[Xe=be[qe]]=this.font.glyf.glyphFor(Xe);for(Xe in Ne=[],Qe)((Ue=Qe[Xe])!=null?Ue.compound:void 0)&&Ne.push.apply(Ne,Ue.glyphIDs);if(Ne.length>0)for(Xe in ht=this.glyphsFor(Ne))Ue=ht[Xe],Qe[Xe]=Ue;return Qe},Ze.prototype.encode=function(be,Ne){var Ue,Qe,Xe,qe,yt,ht,Jt,kr,_r,Xr,Bt,gn,hr,vn,en;for(Qe in Ue=Ht.encode(this.generateCmap(),"unicode"),qe=this.glyphsFor(be),Bt={0:0},en=Ue.charMap)Bt[(ht=en[Qe]).old]=ht.new;for(gn in Xr=Ue.maxGlyphID,qe)gn in Bt||(Bt[gn]=Xr++);return kr=function(Dt){var jr,un;for(jr in un={},Dt)un[Dt[jr]]=jr;return un}(Bt),_r=Object.keys(kr).sort(function(Dt,jr){return Dt-jr}),hr=function(){var Dt,jr,un;for(un=[],Dt=0,jr=_r.length;Dt<jr;Dt++)yt=_r[Dt],un.push(kr[yt]);return un}(),Xe=this.font.glyf.encode(qe,hr,Bt),Jt=this.font.loca.encode(Xe.offsets,hr),vn={cmap:this.font.cmap.raw(),glyf:Xe.table,loca:Jt,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(Ne)},this.font.os2.exists&&(vn["OS/2"]=this.font.os2.raw()),this.font.directory.encode(vn)},Ze}();K.API.PDFObject=function(){var Ze;function be(){}return Ze=function(Ue,Qe){return(Array(Qe+1).join("0")+Ue).slice(-Qe)},be.convert=function(Ne){var Ue,Qe,Xe,qe;if(Array.isArray(Ne))return"["+function(){var yt,ht,Jt;for(Jt=[],yt=0,ht=Ne.length;yt<ht;yt++)Ue=Ne[yt],Jt.push(be.convert(Ue));return Jt}().join(" ")+"]";if(typeof Ne=="string")return"/"+Ne;if(Ne!=null?Ne.isString:void 0)return"("+Ne+")";if(Ne instanceof Date)return"(D:"+Ze(Ne.getUTCFullYear(),4)+Ze(Ne.getUTCMonth(),2)+Ze(Ne.getUTCDate(),2)+Ze(Ne.getUTCHours(),2)+Ze(Ne.getUTCMinutes(),2)+Ze(Ne.getUTCSeconds(),2)+"Z)";if({}.toString.call(Ne)==="[object Object]"){for(Qe in Xe=["<<"],Ne)qe=Ne[Qe],Xe.push("/"+Qe+" "+be.convert(qe));return Xe.push(">>"),Xe.join(`
|
|
|
`)}return""+Ne},be}(),P.default=K}.call(this,d("yLpj"))},e5VY:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("YNAk"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},e7zE:function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("3y9D"),d("WYAk"))})(this,function(O){return function(){var x=O,T=x.lib,v=T.Base,S=T.WordArray,m=x.algo,f=m.SHA1,c=m.HMAC,o=m.PBKDF2=v.extend({cfg:v.extend({keySize:128/32,hasher:f,iterations:1}),init:function(a){this.cfg=this.cfg.extend(a)},compute:function(a,n){for(var e=this.cfg,s=c.create(e.hasher,a),t=S.create(),i=S.create([1]),l=t.words,u=i.words,h=e.keySize,p=e.iterations;l.length<h;){var g=s.update(n).finalize(i);s.reset();for(var A=g.words,y=A.length,E=g,C=1;C<p;C++){E=s.finalize(E),s.reset();for(var w=E.words,b=0;b<y;b++)A[b]^=w[b]}t.concat(g),u[0]++}return t.sigBytes=h*4,t}});x.PBKDF2=function(r,a,n){return o.create(n).compute(r,a)}}(),O.PBKDF2})},eIcI:function(U,P,d){var O=d("bYtY"),x=d("hM6l");function T(S,m,f){x.call(this,S,m,f),this.type="value",this.angle=0,this.name="",this.model}O.inherits(T,x);var v=T;U.exports=v},eJH7:function(U,P,d){var O=d("bYtY");function x(T){var v=T.polar;if(v){O.isArray(v)||(v=[v]);var S=[];O.each(v,function(m,f){m.indicator?(m.type&&!m.shape&&(m.shape=m.type),T.radar=T.radar||[],O.isArray(T.radar)||(T.radar=[T.radar]),T.radar.push(m)):S.push(m)}),T.polar=S}O.each(T.series,function(m){m&&m.type==="radar"&&m.polarIndex&&(m.radarIndex=m.polarIndex)})}U.exports=x},eP3c:function(U,P,d){"use strict";function O(Be){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(Z){return typeof Z}:O=function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},O(Be)}Object.defineProperty(P,"__esModule",{value:!0}),P.inflateReset=oe,P.inflateReset2=pe,P.inflateResetKeep=Ie,P.inflateInit=Ye,P.inflateInit2=Oe,P.inflate=dt,P.inflateEnd=Ot,P.inflateGetHeader=Tt,P.inflateSetDictionary=Ct,P.inflateInfo=P.Z_DEFLATED=P.Z_BUF_ERROR=P.Z_MEM_ERROR=P.Z_DATA_ERROR=P.Z_STREAM_ERROR=P.Z_NEED_DICT=P.Z_STREAM_END=P.Z_OK=P.Z_TREES=P.Z_BLOCK=P.Z_FINISH=void 0;var x=o(d("6BzB")),T=f(d("xlC8")),v=f(d("QV2g")),S=f(d("sjKO")),m=f(d("JSwD"));function f(Be){return Be&&Be.__esModule?Be:{default:Be}}function c(){if(typeof WeakMap!="function")return null;var Be=new WeakMap;return c=function(){return Be},Be}function o(Be){if(Be&&Be.__esModule)return Be;if(Be===null||O(Be)!=="object"&&typeof Be!="function")return{default:Be};var $=c();if($&&$.has(Be))return $.get(Be);var Z={},Re=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var De in Be)if(Object.prototype.hasOwnProperty.call(Be,De)){var ae=Re?Object.getOwnPropertyDescriptor(Be,De):null;ae&&(ae.get||ae.set)?Object.defineProperty(Z,De,ae):Z[De]=Be[De]}return Z.default=Be,$&&$.set(Be,Z),Z}var r=0,a=1,n=2,e=4;P.Z_FINISH=e;var s=5;P.Z_BLOCK=s;var t=6;P.Z_TREES=t;var i=0;P.Z_OK=i;var l=1;P.Z_STREAM_END=l;var u=2;P.Z_NEED_DICT=u;var h=-2;P.Z_STREAM_ERROR=h;var p=-3;P.Z_DATA_ERROR=p;var g=-4;P.Z_MEM_ERROR=g;var A=-5;P.Z_BUF_ERROR=A;var y=8;P.Z_DEFLATED=y;var E=1,C=2,w=3,b=4,I=5,_=6,L=7,D=8,N=9,R=10,B=11,M=12,H=13,F=14,K=15,j=16,V=17,z=18,Y=19,ee=20,fe=21,ie=22,we=23,Ce=24,Le=25,He=26,ce=27,Pe=28,Q=29,me=30,Je=31,re=32,G=852,X=592,J=15,Ae=J;function he(Be){return(Be>>>24&255)+(Be>>>8&65280)+((Be&65280)<<8)+((Be&255)<<24)}function Me(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new x.Buf16(320),this.work=new x.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ie(Be){var $;return!Be||!Be.state?h:($=Be.state,Be.total_in=Be.total_out=$.total=0,Be.msg="",$.wrap&&(Be.adler=$.wrap&1),$.mode=E,$.last=0,$.havedict=0,$.dmax=32768,$.head=null,$.hold=0,$.bits=0,$.lencode=$.lendyn=new x.Buf32(G),$.distcode=$.distdyn=new x.Buf32(X),$.sane=1,$.back=-1,i)}function oe(Be){var $;return!Be||!Be.state?h:($=Be.state,$.wsize=0,$.whave=0,$.wnext=0,Ie(Be))}function pe(Be,$){var Z,Re;return!Be||!Be.state?h:(Re=Be.state,$<0?(Z=0,$=-$):(Z=($>>4)+1,$<48&&($&=15)),$&&($<8||$>15)?h:(Re.window!==null&&Re.wbits!==$&&(Re.window=null),Re.wrap=Z,Re.wbits=$,oe(Be)))}function Oe(Be,$){var Z,Re;return Be?(Re=new Me,Be.state=Re,Re.window=null,Z=pe(Be,$),Z!==i&&(Be.state=null),Z):h}function Ye(Be){return Oe(Be,Ae)}var it=!0,et,Te;function tt(Be){if(it){var $;for(et=new x.Buf32(512),Te=new x.Buf32(32),$=0;$<144;)Be.lens[$++]=8;for(;$<256;)Be.lens[$++]=9;for(;$<280;)Be.lens[$++]=7;for(;$<288;)Be.lens[$++]=8;for((0,m.default)(a,Be.lens,0,288,et,0,Be.work,{bits:9}),$=0;$<32;)Be.lens[$++]=5;(0,m.default)(n,Be.lens,0,32,Te,0,Be.work,{bits:5}),it=!1}Be.lencode=et,Be.lenbits=9,Be.distcode=Te,Be.distbits=5}function ze(Be,$,Z,Re){var De,ae=Be.state;return ae.window===null&&(ae.wsize=1<<ae.wbits,ae.wnext=0,ae.whave=0,ae.window=new x.Buf8(ae.wsize)),Re>=ae.wsize?(x.arraySet(ae.window,$,Z-ae.wsize,ae.wsize,0),ae.wnext=0,ae.whave=ae.wsize):(De=ae.wsize-ae.wnext,De>Re&&(De=Re),x.arraySet(ae.window,$,Z-Re,De,ae.wnext),Re-=De,Re?(x.arraySet(ae.window,$,Z-Re,Re,0),ae.wnext=Re,ae.whave=ae.wsize):(ae.wnext+=De,ae.wnext===ae.wsize&&(ae.wnext=0),ae.whave<ae.wsize&&(ae.whave+=De))),0}function dt(Be,$){var Z,Re,De,ae,gt,jt,ut,rr,pr,nn,mr,vr,$t,Xt,ft=0,Ur,yn,Dn,Un,wi,Rn,kn,Vn,Gt=new x.Buf8(4),st,ue,Ee=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Be||!Be.state||!Be.output||!Be.input&&Be.avail_in!==0)return h;Z=Be.state,Z.mode===M&&(Z.mode=H),gt=Be.next_out,De=Be.output,ut=Be.avail_out,ae=Be.next_in,Re=Be.input,jt=Be.avail_in,rr=Z.hold,pr=Z.bits,nn=jt,mr=ut,Vn=i;e:for(;;)switch(Z.mode){case E:if(Z.wrap===0){Z.mode=H;break}for(;pr<16;){if(jt===0)break e;jt--,rr+=Re[ae++]<<pr,pr+=8}if(Z.wrap&2&&rr===35615){Z.check=0,Gt[0]=rr&255,Gt[1]=rr>>>8&255,Z.check=(0,v.default)(Z.check,Gt,2,0),rr=0,pr=0,Z.mode=C;break}if(Z.flags=0,Z.head&&(Z.head.done=!1),!(Z.wrap&1)||(((rr&255)<<8)+(rr>>8))%31){Be.msg="incorrect header check",Z.mode=me;break}if((rr&15)!==y){Be.msg="unknown compression method",Z.mode=me;break}if(rr>>>=4,pr-=4,kn=(rr&15)+8,Z.wbits===0)Z.wbits=kn;else if(kn>Z.wbits){Be.msg="invalid window size",Z.mode=me;break}Z.dmax=1<<kn,Be.adler=Z.check=1,Z.mode=rr&512?R:M,rr=0,pr=0;break;case C:for(;pr<16;){if(jt===0)break e;jt--,rr+=Re[ae++]<<pr,pr+=8}if(Z.flags=rr,(Z.flags&255)!==y){Be.msg="unknown compression method",Z.mode=me;break}if(Z.flags&57344){Be.msg="unknown header flags set",Z.mode=me;break}Z.head&&(Z.head.text=rr>>8&1),Z.flags&512&&(Gt[0]=rr&255,Gt[1]=rr>>>8&255,Z.check=(0,v.default)(Z.check,Gt,2,0)),rr=0,pr=0,Z.mode=w;case w:for(;pr<32;){if(jt===0)break e;jt--,rr+=Re[ae++]<<pr,pr+=8}Z.head&&(Z.head.time=rr),Z.flags&512&&(Gt[0]=rr&255,Gt[1]=rr>>>8&255,Gt[2]=rr>>>16&255,Gt[3]=rr>>>24&255,Z.check=(0,v.default)(Z.check,Gt,4,0)),rr=0,pr=0,Z.mode=b;case b:for(;pr<16;){if(jt===0)break e;jt--,rr+=Re[ae++]<<pr,pr+=8}Z.head&&(Z.head.xflags=rr&255,Z.head.os=rr>>8),Z.flags&512&&(Gt[0]=rr&255,Gt[1]=rr>>>8&255,Z.check=(0,v.default)(Z.check,Gt,2,0)),rr=0,pr=0,Z.mode=I;case I:if(Z.flags&1024){for(;pr<16;){if(jt===0)break e;jt--,rr+=Re[ae++]<<pr,pr+=8}Z.length=rr,Z.head&&(Z.head.extra_len=rr),Z.flags&512&&(Gt[0]=rr&255,Gt[1]=rr>>>8&255,Z.check=(0,v.default)(Z.check,Gt,2,0)),rr=0,pr=0}else Z.head&&(Z.head.extra=null);Z.mode=_;case _:if(Z.flags&1024&&(vr=Z.length,vr>jt&&(vr=jt),vr&&(Z.head&&(kn=Z.head.extra_len-Z.length,Z.head.extra||(Z.head.extra=new Array(Z.head.extra_len)),x.arraySet(Z.head.extra,Re,ae,vr,kn)),Z.flags&512&&(Z.check=(0,v.default)(Z.check,Re,vr,ae)),jt-=vr,ae+=vr,Z.length-=vr),Z.length))break e;Z.length=0,Z.mode=L;case L:if(Z.flags&2048){if(jt===0)break e;vr=0;do kn=Re[ae+vr++],Z.head&&kn&&Z.length<65536&&(Z.head.name+=String.fromCharCode(kn));while(kn&&vr<jt);if(Z.flags&512&&(Z.check=(0,v.default)(Z.check,Re,vr,ae)),jt-=vr,ae+=vr,kn)break e}else Z.head&&(Z.head.name=null);Z.length=0,Z.mode=D;case D:if(Z.flags&4096){if(jt===0)break e;vr=0;do kn=Re[ae+vr++],Z.head&&kn&&Z.length<65536&&(Z.head.comment+=String.fromCharCode(kn));while(kn&&vr<jt);if(Z.flags&512&&(Z.check=(0,v.default)(Z.check,Re,vr,ae)),jt-=vr,ae+=vr,kn)break e}else Z.head&&(Z.head.comment=null);Z.mode=N;case N:if(Z.flags&512){for(;pr<16;){if(jt===0)break e;jt--,rr+=Re[ae++]<<pr,pr+=8}if(rr!==(Z.check&65535)){Be.msg="header crc mismatch",Z.mode=me;break}rr=0,pr=0}Z.head&&(Z.head.hcrc=Z.flags>>9&1,Z.head.done=!0),Be.adler=Z.check=0,Z.mode=M;break;case R:for(;pr<32;){if(jt===0)break e;jt--,rr+=Re[ae++]<<pr,pr+=8}Be.adler=Z.check=he(rr),rr=0,pr=0,Z.mode=B;case B:if(Z.havedict===0)return Be.next_out=gt,Be.avail_out=ut,Be.next_in=ae,Be.avail_in=jt,Z.hold=rr,Z.bits=pr,u;Be.adler=Z.check=1,Z.mode=M;case M:if($===s||$===t)break e;case H:if(Z.last){rr>>>=pr&7,pr-=pr&7,Z.mode=ce;break}for(;pr<3;){if(jt===0)break e;jt--,rr+=Re[ae++]<<pr,pr+=8}Z.last=rr&1,rr>>>=1,pr-=1;switch(rr&3){case 0:Z.mode=F;break;case 1:if(tt(Z),Z.mode=ee,$===t){rr>>>=2,pr-=2;break e}break;case 2:Z.mode=V;break;case 3:Be.msg="invalid block type",Z.mode=me}rr>>>=2,pr-=2;break;case F:for(rr>>>=pr&7,pr-=pr&7;pr<32;){if(jt===0)break e;jt--,rr+=Re[ae++]<<pr,pr+=8}if((rr&65535)!==(rr>>>16^65535)){Be.msg="invalid stored block lengths",Z.mode=me;break}if(Z.length=rr&65535,rr=0,pr=0,Z.mode=K,$===t)break e;case K:Z.mode=j;case j:if(vr=Z.length,vr){if(vr>jt&&(vr=jt),vr>ut&&(vr=ut),vr===0)break e;x.arraySet(De,Re,ae,vr,gt),jt-=vr,ae+=vr,ut-=vr,gt+=vr,Z.length-=vr;break}Z.mode=M;break;case V:for(;pr<14;){if(jt===0)break e;jt--,rr+=Re[ae++]<<pr,pr+=8}if(Z.nlen=(rr&31)+257,rr>>>=5,pr-=5,Z.ndist=(rr&31)+1,rr>>>=5,pr-=5,Z.ncode=(rr&15)+4,rr>>>=4,pr-=4,Z.nlen>286||Z.ndist>30){Be.msg="too many length or distance symbols",Z.mode=me;break}Z.have=0,Z.mode=z;case z:for(;Z.have<Z.ncode;){for(;pr<3;){if(jt===0)break e;jt--,rr+=Re[ae++]<<pr,pr+=8}Z.lens[Ee[Z.have++]]=rr&7,rr>>>=3,pr-=3}for(;Z.have<19;)Z.lens[Ee[Z.have++]]=0;if(Z.lencode=Z.lendyn,Z.lenbits=7,st={bits:Z.lenbits},Vn=(0,m.default)(r,Z.lens,0,19,Z.lencode,0,Z.work,st),Z.lenbits=st.bits,Vn){Be.msg="invalid code lengths set",Z.mode=me;break}Z.have=0,Z.mode=Y;case Y:for(;Z.have<Z.nlen+Z.ndist;){for(;!(ft=Z.lencode[rr&(1<<Z.lenbits)-1],Ur=ft>>>24,yn=ft>>>16&255,Dn=ft&65535,Ur<=pr);){if(jt===0)break e;jt--,rr+=Re[ae++]<<pr,pr+=8}if(Dn<16)rr>>>=Ur,pr-=Ur,Z.lens[Z.have++]=Dn;else{if(Dn===16){for(ue=Ur+2;pr<ue;){if(jt===0)break e;jt--,rr+=Re[ae++]<<pr,pr+=8}if(rr>>>=Ur,pr-=Ur,Z.have===0){Be.msg="invalid bit length repeat",Z.mode=me;break}kn=Z.lens[Z.have-1],vr=3+(rr&3),rr>>>=2,pr-=2}else if(Dn===17){for(ue=Ur+3;pr<ue;){if(jt===0)break e;jt--,rr+=Re[ae++]<<pr,pr+=8}rr>>>=Ur,pr-=Ur,kn=0,vr=3+(rr&7),rr>>>=3,pr-=3}else{for(ue=Ur+7;pr<ue;){if(jt===0)break e;jt--,rr+=Re[ae++]<<pr,pr+=8}rr>>>=Ur,pr-=Ur,kn=0,vr=11+(rr&127),rr>>>=7,pr-=7}if(Z.have+vr>Z.nlen+Z.ndist){Be.msg="invalid bit length repeat",Z.mode=me;break}for(;vr--;)Z.lens[Z.have++]=kn}}if(Z.mode===me)break;if(Z.lens[256]===0){Be.msg="invalid code -- missing end-of-block",Z.mode=me;break}if(Z.lenbits=9,st={bits:Z.lenbits},Vn=(0,m.default)(a,Z.lens,0,Z.nlen,Z.lencode,0,Z.work,st),Z.lenbits=st.bits,Vn){Be.msg="invalid literal/lengths set",Z.mode=me;break}if(Z.distbits=6,Z.distcode=Z.distdyn,st={bits:Z.distbits},Vn=(0,m.default)(n,Z.lens,Z.nlen,Z.ndist,Z.distcode,0,Z.work,st),Z.distbits=st.bits,Vn){Be.msg="invalid distances set",Z.mode=me;break}if(Z.mode=ee,$===t)break e;case ee:Z.mode=fe;case fe:if(jt>=6&&ut>=258){Be.next_out=gt,Be.avail_out=ut,Be.next_in=ae,Be.avail_in=jt,Z.hold=rr,Z.bits=pr,(0,S.default)(Be,mr),gt=Be.next_out,De=Be.output,ut=Be.avail_out,ae=Be.next_in,Re=Be.input,jt=Be.avail_in,rr=Z.hold,pr=Z.bits,Z.mode===M&&(Z.back=-1);break}for(Z.back=0;!(ft=Z.lencode[rr&(1<<Z.lenbits)-1],Ur=ft>>>24,yn=ft>>>16&255,Dn=ft&65535,Ur<=pr);){if(jt===0)break e;jt--,rr+=Re[ae++]<<pr,pr+=8}if(yn&&(yn&240)===0){for(Un=Ur,wi=yn,Rn=Dn;!(ft=Z.lencode[Rn+((rr&(1<<Un+wi)-1)>>Un)],Ur=ft>>>24,yn=ft>>>16&255,Dn=ft&65535,Un+Ur<=pr);){if(jt===0)break e;jt--,rr+=Re[ae++]<<pr,pr+=8}rr>>>=Un,pr-=Un,Z.back+=Un}if(rr>>>=Ur,pr-=Ur,Z.back+=Ur,Z.length=Dn,yn===0){Z.mode=He;break}if(yn&32){Z.back=-1,Z.mode=M;break}if(yn&64){Be.msg="invalid literal/length code",Z.mode=me;break}Z.extra=yn&15,Z.mode=ie;case ie:if(Z.extra){for(ue=Z.extra;pr<ue;){if(jt===0)break e;jt--,rr+=Re[ae++]<<pr,pr+=8}Z.length+=rr&(1<<Z.extra)-1,rr>>>=Z.extra,pr-=Z.extra,Z.back+=Z.extra}Z.was=Z.length,Z.mode=we;case we:for(;!(ft=Z.distcode[rr&(1<<Z.distbits)-1],Ur=ft>>>24,yn=ft>>>16&255,Dn=ft&65535,Ur<=pr);){if(jt===0)break e;jt--,rr+=Re[ae++]<<pr,pr+=8}if((yn&240)===0){for(Un=Ur,wi=yn,Rn=Dn;!(ft=Z.distcode[Rn+((rr&(1<<Un+wi)-1)>>Un)],Ur=ft>>>24,yn=ft>>>16&255,Dn=ft&65535,Un+Ur<=pr);){if(jt===0)break e;jt--,rr+=Re[ae++]<<pr,pr+=8}rr>>>=Un,pr-=Un,Z.back+=Un}if(rr>>>=Ur,pr-=Ur,Z.back+=Ur,yn&64){Be.msg="invalid distance code",Z.mode=me;break}Z.offset=Dn,Z.extra=yn&15,Z.mode=Ce;case Ce:if(Z.extra){for(ue=Z.extra;pr<ue;){if(jt===0)break e;jt--,rr+=Re[ae++]<<pr,pr+=8}Z.offset+=rr&(1<<Z.extra)-1,rr>>>=Z.extra,pr-=Z.extra,Z.back+=Z.extra}if(Z.offset>Z.dmax){Be.msg="invalid distance too far back",Z.mode=me;break}Z.mode=Le;case Le:if(ut===0)break e;if(vr=mr-ut,Z.offset>vr){if(vr=Z.offset-vr,vr>Z.whave&&Z.sane){Be.msg="invalid distance too far back",Z.mode=me;break}vr>Z.wnext?(vr-=Z.wnext,$t=Z.wsize-vr):$t=Z.wnext-vr,vr>Z.length&&(vr=Z.length),Xt=Z.window}else Xt=De,$t=gt-Z.offset,vr=Z.length;vr>ut&&(vr=ut),ut-=vr,Z.length-=vr;do De[gt++]=Xt[$t++];while(--vr);Z.length===0&&(Z.mode=fe);break;case He:if(ut===0)break e;De[gt++]=Z.length,ut--,Z.mode=fe;break;case ce:if(Z.wrap){for(;pr<32;){if(jt===0)break e;jt--,rr|=Re[ae++]<<pr,pr+=8}if(mr-=ut,Be.total_out+=mr,Z.total+=mr,mr&&(Be.adler=Z.check=Z.flags?(0,v.default)(Z.check,De,mr,gt-mr):(0,T.default)(Z.check,De,mr,gt-mr)),mr=ut,(Z.flags?rr:he(rr))!==Z.check){Be.msg="incorrect data check",Z.mode=me;break}rr=0,pr=0}Z.mode=Pe;case Pe:if(Z.wrap&&Z.flags){for(;pr<32;){if(jt===0)break e;jt--,rr+=Re[ae++]<<pr,pr+=8}if(rr!==(Z.total&4294967295)){Be.msg="incorrect length check",Z.mode=me;break}rr=0,pr=0}Z.mode=Q;case Q:Vn=l;break e;case me:Vn=p;break e;case Je:return g;case re:default:return h}return Be.next_out=gt,Be.avail_out=ut,Be.next_in=ae,Be.avail_in=jt,Z.hold=rr,Z.bits=pr,(Z.wsize||mr!==Be.avail_out&&Z.mode<me&&(Z.mode<ce||$!==e))&&ze(Be,Be.output,Be.next_out,mr-Be.avail_out)?(Z.mode=Je,g):(nn-=Be.avail_in,mr-=Be.avail_out,Be.total_in+=nn,Be.total_out+=mr,Z.total+=mr,Z.wrap&&mr&&(Be.adler=Z.check=Z.flags?(0,v.default)(Z.check,De,mr,Be.next_out-mr):(0,T.default)(Z.check,De,mr,Be.next_out-mr)),Be.data_type=Z.bits+(Z.last?64:0)+(Z.mode===M?128:0)+(Z.mode===ee||Z.mode===K?256:0),(nn===0&&mr===0||$===e)&&Vn===i&&(Vn=A),Vn)}function Ot(Be){if(!Be||!Be.state)return h;var $=Be.state;return $.window&&($.window=null),Be.state=null,i}function Tt(Be,$){var Z;return!Be||!Be.state?h:(Z=Be.state,(Z.wrap&2)===0?h:(Z.head=$,$.done=!1,i))}function Ct(Be,$){var Z=$.length,Re,De,ae;return!Be||!Be.state?h:(Re=Be.state,Re.wrap!==0&&Re.mode!==B?h:Re.mode===B&&(De=1,De=(0,T.default)(De,$,Z,0),De!==Re.check)?p:(ae=ze(Be,$,Z,Z),ae?(Re.mode=Je,g):(Re.havedict=1,i)))}var Nt="pako inflate (from Nodeca project)";P.inflateInfo=Nt},ePAk:function(U,P,d){var O=d("ProS");d("2fGM");var x=O.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(T){var v,S=this.ecModel;return S.eachComponent(T,function(m){m.getCoordSysModel()===this&&(v=m)},this),v},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});U.exports=x},eRkO:function(U,P,d){var O=d("+TT/"),x=O.getLayoutRect,T=O.box,v=O.positionElement,S=d("7aKB"),m=d("IwbS");function f(o,r,a){var n=r.getBoxLayoutParams(),e=r.get("padding"),s={width:a.getWidth(),height:a.getHeight()},t=x(n,s,e);T(r.get("orient"),o,r.get("itemGap"),t.width,t.height),v(o,n,s,e)}function c(o,r){var a=S.normalizeCssArray(r.get("padding")),n=r.getItemStyle(["color","opacity"]);n.fill=r.get("backgroundColor");var o=new m.Rect({shape:{x:o.x-a[3],y:o.y-a[0],width:o.width+a[1]+a[3],height:o.height+a[0]+a[2],r:r.get("borderRadius")},style:n,silent:!0,z2:-1});return o}P.layout=f,P.makeBackground=c},eS4l:function(U,P,d){d("HM/N"),d("FNN5")},eUgh:function(U,P){function d(O,x){for(var T=-1,v=O==null?0:O.length,S=Array(v);++T<v;)S[T]=x(O[T],T,O);return S}U.exports=d},ewwo:function(U,P,d){var O=d("bMXI"),x=d("+TT/"),T=x.getLayoutRect,v=d("4mN7");function S(f,c,o){var r=f.getBoxLayoutParams();return r.aspect=o,T(r,{width:c.getWidth(),height:c.getHeight()})}function m(f,c){var o=[];return f.eachSeriesByType("graph",function(r){var a=r.get("coordinateSystem");if(!a||a==="view"){var n=r.getData(),e=n.mapArray(function(y){var E=n.getItemModel(y);return[+E.get("x"),+E.get("y")]}),s=[],t=[];v.fromPoints(e,s,t),t[0]-s[0]===0&&(t[0]+=1,s[0]-=1),t[1]-s[1]===0&&(t[1]+=1,s[1]-=1);var i=(t[0]-s[0])/(t[1]-s[1]),l=S(r,c,i);isNaN(i)&&(s=[l.x,l.y],t=[l.x+l.width,l.y+l.height]);var u=t[0]-s[0],h=t[1]-s[1],p=l.width,g=l.height,A=r.coordinateSystem=new O;A.zoomLimit=r.get("scaleLimit"),A.setBoundingRect(s[0],s[1],u,h),A.setViewRect(l.x,l.y,p,g),A.setCenter(r.get("center")),A.setZoom(r.get("zoom")),o.push(A)}}),o}U.exports=m},f1nB:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("ProS"),v=d("bYtY"),S=d("4NO4"),m=d("IwbS"),f=d("+TT/"),c=d("OELB"),o=c.parsePercent,r={path:null,compoundPath:null,group:m.Group,image:m.Image,text:m.Text};T.registerPreprocessor(function(p){var g=p.graphic;v.isArray(g)?!g[0]||!g[0].elements?p.graphic=[{elements:g}]:p.graphic=[p.graphic[0]]:g&&!g.elements&&(p.graphic=[{elements:[g]}])});var a=T.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(p){var g=this.option.elements;this.option.elements=null,a.superApply(this,"mergeOption",arguments),this.option.elements=g},optionUpdated:function(p,g){var A=this.option,y=(g?A:p).elements,E=A.elements=g?[]:A.elements,C=[];this._flatten(y,C);var w=S.mappingToExists(E,C);S.makeIdAndName(w);var b=this._elOptionsToUpdate=[];v.each(w,function(_,L){var D=_.option;if(!D)return;b.push(D),i(_,D),l(E,L,D),u(E[L],D)},this);for(var I=E.length-1;I>=0;I--)E[I]==null?E.splice(I,1):delete E[I].$action},_flatten:function(p,g,A){v.each(p,function(y){if(!y)return;A&&(y.parentOption=A),g.push(y);var E=y.children;y.type==="group"&&E&&this._flatten(E,g,y),delete y.children},this)},useElOptionsToUpdate:function(){var p=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,p}});T.extendComponentView({type:"graphic",init:function(p,g){this._elMap=v.createHashMap(),this._lastGraphicModel},render:function(p,g,A){p!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=p,this._updateElements(p),this._relocate(p,A)},_updateElements:function(p){var g=p.useElOptionsToUpdate();if(!g)return;var A=this._elMap,y=this.group;v.each(g,function(E){var C=E.$action,w=E.id,b=A.get(w),I=E.parentId,_=I!=null?A.get(I):y,L=E.style;E.type==="text"&&L&&(E.hv&&E.hv[1]&&(L.textVerticalAlign=L.textBaseline=null),!L.hasOwnProperty("textFill")&&L.fill&&(L.textFill=L.fill),!L.hasOwnProperty("textStroke")&&L.stroke&&(L.textStroke=L.stroke));var D=s(E);!C||C==="merge"?b?b.attr(D):n(w,_,D,A):C==="replace"?(e(b,A),n(w,_,D,A)):C==="remove"&&e(b,A);var N=A.get(w);N&&(N.__ecGraphicWidthOption=E.width,N.__ecGraphicHeightOption=E.height,h(N,p,E))})},_relocate:function(p,g){for(var A=p.option.elements,y=this.group,E=this._elMap,C=g.getWidth(),w=g.getHeight(),b=0;b<A.length;b++){var I=A[b],_=E.get(I.id);if(!_||!_.isGroup)continue;var L=_.parent,D=L===y;_.__ecGraphicWidth=o(_.__ecGraphicWidthOption,D?C:L.__ecGraphicWidth)||0,_.__ecGraphicHeight=o(_.__ecGraphicHeightOption,D?w:L.__ecGraphicHeight)||0}for(var b=A.length-1;b>=0;b--){var I=A[b],_=E.get(I.id);if(!_)continue;var L=_.parent,N=L===y?{width:C,height:w}:{width:L.__ecGraphicWidth,height:L.__ecGraphicHeight};f.positionElement(_,I,N,null,{hv:I.hv,boundingMode:I.bounding})}},_clear:function(){var p=this._elMap;p.each(function(g){e(g,p)}),this._elMap=v.createHashMap()},dispose:function(){this._clear()}});function n(p,g,A,y){var E=A.type,C=r.hasOwnProperty(E)?r[E]:m.getShapeClass(E),w=new C(A);g.add(w),y.set(p,w),w.__ecGraphicId=p}function e(p,g){var A=p&&p.parent;A&&(p.type==="group"&&p.traverse(function(y){e(y,g)}),g.removeKey(p.__ecGraphicId),A.remove(p))}function s(p){return p=v.extend({},p),v.each(["id","parentId","$action","hv","bounding"].concat(f.LOCATION_PARAMS),function(g){delete p[g]}),p}function t(p,g){var A;return v.each(g,function(y){p[y]!=null&&p[y]!=="auto"&&(A=!0)}),A}function i(p,g){var A=p.exist;if(g.id=p.keyInfo.id,!g.type&&A&&(g.type=A.type),g.parentId==null){var y=g.parentOption;y?g.parentId=y.id:A&&(g.parentId=A.parentId)}g.parentOption=null}function l(p,g,A){var y=v.extend({},A),E=p[g],C=A.$action||"merge";C==="merge"?E?(v.merge(E,y,!0),f.mergeLayoutParam(E,y,{ignoreSize:!0}),f.copyLayoutParams(A,E)):p[g]=y:C==="replace"?p[g]=y:C==="remove"&&(E&&(p[g]=null))}function u(p,g){if(!p)return;p.hv=g.hv=[t(g,["left","right"]),t(g,["top","bottom"])],p.type==="group"&&(p.width==null&&(p.width=g.width=0),p.height==null&&(p.height=g.height=0))}function h(p,g,A){var y=p.eventData;!p.silent&&!p.ignore&&!y&&(y=p.eventData={componentType:"graphic",componentIndex:g.componentIndex,name:p.name}),y&&(y.info=p.info)}},f3JH:function(U,P,d){d("aTJb"),d("OlYY"),d("fc+c"),d("oY9F"),d("MqEG"),d("LBfv"),d("noeP")},f5HG:function(U,P,d){var O=d("IwbS"),x=d("QBsz"),T=O.Line.prototype,v=O.BezierCurve.prototype;function S(f){return isNaN(+f.cpx1)||isNaN(+f.cpy1)}var m=O.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(f,c){this[S(c)?"_buildPathLine":"_buildPathCurve"](f,c)},_buildPathLine:T.buildPath,_buildPathCurve:v.buildPath,pointAt:function(f){return this[S(this.shape)?"_pointAtLine":"_pointAtCurve"](f)},_pointAtLine:T.pointAt,_pointAtCurve:v.pointAt,tangentAt:function(f){var c=this.shape,o=S(c)?[c.x2-c.x1,c.y2-c.y1]:this._tangentAtCurve(f);return x.normalize(o,o)},_tangentAtCurve:v.tangentAt});U.exports=m},f5Yq:function(U,P,d){var O=d("bYtY"),x=O.isFunction;function T(v,S,m){return{seriesType:v,performRawSeries:!0,reset:function(f,c,o){var r=f.getData(),a=f.get("symbol"),n=f.get("symbolSize"),e=f.get("symbolKeepAspect"),s=f.get("symbolRotate"),t=x(a),i=x(n),l=x(s),u=t||i||l,h=!t&&a?a:S,p=i?null:n,g=l?null:g;if(r.setVisual({legendSymbol:m||h,symbol:h,symbolSize:p,symbolKeepAspect:e,symbolRotate:s}),c.isSeriesFiltered(f))return;function A(y,E){if(u){var C=f.getRawValue(E),w=f.getDataParams(E);t&&y.setItemVisual(E,"symbol",a(C,w)),i&&y.setItemVisual(E,"symbolSize",n(C,w)),l&&y.setItemVisual(E,"symbolRotate",s(C,w))}if(y.hasItemOption){var b=y.getItemModel(E),I=b.getShallow("symbol",!0),_=b.getShallow("symbolSize",!0),L=b.getShallow("symbolRotate",!0),D=b.getShallow("symbolKeepAspect",!0);I!=null&&y.setItemVisual(E,"symbol",I),_!=null&&y.setItemVisual(E,"symbolSize",_),L!=null&&y.setItemVisual(E,"symbolRotate",L),D!=null&&y.setItemVisual(E,"symbolKeepAspect",D)}}return{dataEach:r.hasItemOption||u?A:null}}}}U.exports=T},fE02:function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("/IIm"),v=d("vZ6x"),S=d("b9oc"),m=d("72pK"),f=d("Kagy"),c=d("IUWy");d("3TkU");var o=f.toolbox.dataZoom,r=x.each,a="\0_ec_\0toolbox-dataZoom_";function n(h,p,g){(this._brushController=new T(g.getZr())).on("brush",x.bind(this._onBrush,this)).mount(),this._isZoomActive}n.defaultOption={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:x.clone(o.title)};var e=n.prototype;e.render=function(h,p,g,A){this.model=h,this.ecModel=p,this.api=g,l(h,p,this,A,g),i(h,p)},e.onclick=function(h,p,g){s[g].call(this)},e.remove=function(h,p){this._brushController.unmount()},e.dispose=function(h,p){this._brushController.dispose()};var s={zoom:function(){var h=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:h})},back:function(){this._dispatchZoomAction(S.pop(this.ecModel))}};e._onBrush=function(h,p){if(!p.isEnd||!h.length)return;var g={},A=this.ecModel;this._brushController.updateCovers([]);var y=new v(t(this.model.option),A,{include:["grid"]});y.matchOutputRanges(h,A,function(w,b,I){if(I.type!=="cartesian2d")return;var _=w.brushType;_==="rect"?(E("x",I,b[0]),E("y",I,b[1])):E({lineX:"x",lineY:"y"}[_],I,b)}),S.push(A,g),this._dispatchZoomAction(g);function E(w,b,I){var _=b.getAxis(w),L=_.model,D=C(w,L,A),N=D.findRepresentativeAxisProxy(L).getMinMaxSpan();(N.minValueSpan!=null||N.maxValueSpan!=null)&&(I=m(0,I.slice(),_.scale.getExtent(),0,N.minValueSpan,N.maxValueSpan)),D&&(g[D.id]={dataZoomId:D.id,startValue:I[0],endValue:I[1]})}function C(w,b,I){var _;return I.eachComponent({mainType:"dataZoom",subType:"select"},function(L){var D=L.getAxisModel(w,b.componentIndex);D&&(_=L)}),_}},e._dispatchZoomAction=function(h){var p=[];r(h,function(g,A){p.push(x.clone(g))}),p.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:p})};function t(h){var p={};return x.each(["xAxisIndex","yAxisIndex"],function(g){p[g]=h[g],p[g]==null&&(p[g]="all"),(p[g]===!1||p[g]==="none")&&(p[g]=[])}),p}function i(h,p){h.setIconStatus("back",S.count(p)>1?"emphasis":"normal")}function l(h,p,g,A,y){var E=g._isZoomActive;A&&A.type==="takeGlobalCursor"&&(E=A.key==="dataZoomSelect"?A.dataZoomSelectActive:!1),g._isZoomActive=E,h.setIconStatus("zoom",E?"emphasis":"normal");var C=new v(t(h.option),p,{include:["grid"]});g._brushController.setPanels(C.makePanelOpts(y,function(w){return w.xAxisDeclared&&!w.yAxisDeclared?"lineX":!w.xAxisDeclared&&w.yAxisDeclared?"lineY":"rect"})).enableBrush(E?{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}c.register("dataZoom",n),O.registerPreprocessor(function(h){if(!h)return;var p=h.dataZoom||(h.dataZoom=[]);x.isArray(p)||(h.dataZoom=p=[p]);var g=h.toolbox;if(g&&(x.isArray(g)&&(g=g[0]),g&&g.feature)){var A=g.feature.dataZoom;y("xAxis",A),y("yAxis",A)}function y(C,w){if(!w)return;var b=C+"Index",I=w[b];I!=null&&I!=="all"&&!x.isArray(I)&&(I=I===!1||I==="none"?[]:[I]),E(C,function(_,L){if(I!=null&&I!=="all"&&x.indexOf(I,L)===-1)return;var D={type:"select",$fromToolbox:!0,filterMode:w.filterMode||"filter",id:a+C+L};D[b]=L,p.push(D)})}function E(C,w){var b=h[C];x.isArray(b)||(b=b?[b]:[]),r(b,w)}});var u=n;U.exports=u},fNCr:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("tSko"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},fUL4:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("r+aA"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},fW2E:function(U,P){var d={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function O(x,T,v){return d.hasOwnProperty(T)?v*=x.dpr:v}U.exports=O},"fc+c":function(U,P,d){var O=d("sS/r"),x=O.extend({type:"dataZoom",render:function(T,v,S,m){this.dataZoomModel=T,this.ecModel=v,this.api=S},getTargetCoordInfo:function(){var T=this.dataZoomModel,v=this.ecModel,S={};T.eachTargetAxis(function(f,c){var o=v.getComponent(f.axis,c);if(o){var r=o.getCoordSysModel();r&&m(r,o,S[r.mainType]||(S[r.mainType]=[]),r.componentIndex)}},this);function m(f,c,o,r){for(var a,n=0;n<o.length;n++)if(o[n].model===f){a=o[n];break}a||o.push(a={model:f,axisModels:[],coordIndex:r}),a.axisModels.push(c)}return S}});U.exports=x},fjKi:function(U,P,d){var O=d("ProS");d("Q7if"),d("jndi"),O.registerPreprocessor(function(x){x.markArea=x.markArea||{}})},fls0:function(U,P,d){var O=d("bYtY"),x=d("QBsz"),T=d("oVpE"),v=d("f5HG"),S=d("IwbS"),m=d("OELB"),f=m.round,c=["fromSymbol","toSymbol"];function o(l){return"_"+l+"Type"}function r(l,u,h){var p=u.getItemVisual(h,"color"),g=u.getItemVisual(h,l),A=u.getItemVisual(h,l+"Size");if(!g||g==="none")return;O.isArray(A)||(A=[A,A]);var y=T.createSymbol(g,-A[0]/2,-A[1]/2,A[0],A[1],p);return y.name=l,y}function a(l){var u=new v({name:"line",subPixelOptimize:!0});return n(u.shape,l),u}function n(l,u){l.x1=u[0][0],l.y1=u[0][1],l.x2=u[1][0],l.y2=u[1][1],l.percent=1;var h=u[2];h?(l.cpx1=h[0],l.cpy1=h[1]):(l.cpx1=NaN,l.cpy1=NaN)}function e(){var l=this,u=l.childOfName("fromSymbol"),h=l.childOfName("toSymbol"),p=l.childOfName("label");if(!u&&!h&&p.ignore)return;for(var g=1,A=this.parent;A;)A.scale&&(g/=A.scale[0]),A=A.parent;var y=l.childOfName("line");if(!this.__dirty&&!y.__dirty)return;var E=y.shape.percent,C=y.pointAt(0),w=y.pointAt(E),b=x.sub([],w,C);if(x.normalize(b,b),u){u.attr("position",C);var I=y.tangentAt(0);u.attr("rotation",Math.PI/2-Math.atan2(I[1],I[0])),u.attr("scale",[g*E,g*E])}if(h){h.attr("position",w);var I=y.tangentAt(1);h.attr("rotation",-Math.PI/2-Math.atan2(I[1],I[0])),h.attr("scale",[g*E,g*E])}if(!p.ignore){p.attr("position",w);var _,L,D,N,R=p.__labelDistance,B=R[0]*g,M=R[1]*g,H=E/2,I=y.tangentAt(H),F=[I[1],-I[0]],K=y.pointAt(H);F[1]>0&&(F[0]=-F[0],F[1]=-F[1]);var j=I[0]<0?-1:1;if(p.__position!=="start"&&p.__position!=="end"){var V=-Math.atan2(I[1],I[0]);w[0]<C[0]&&(V=Math.PI+V),p.attr("rotation",V)}var z;switch(p.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":z=-M,D="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":z=M,D="top";break;default:z=0,D="middle"}switch(p.__position){case"end":_=[b[0]*B+w[0],b[1]*M+w[1]],L=b[0]>.8?"left":b[0]<-.8?"right":"center",D=b[1]>.8?"top":b[1]<-.8?"bottom":"middle";break;case"start":_=[-b[0]*B+C[0],-b[1]*M+C[1]],L=b[0]>.8?"right":b[0]<-.8?"left":"center",D=b[1]>.8?"bottom":b[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":_=[B*j+C[0],C[1]+z],L=I[0]<0?"right":"left",N=[-B*j,-z];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":_=[K[0],K[1]+z],L="center",N=[0,-z];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":_=[-B*j+w[0],w[1]+z],L=I[0]>=0?"right":"left",N=[B*j,-z];break}p.attr({style:{textVerticalAlign:p.__verticalAlign||D,textAlign:p.__textAlign||L},position:_,scale:[g,g],origin:N})}}function s(l,u,h){S.Group.call(this),this._createLine(l,u,h)}var t=s.prototype;t.beforeUpdate=e,t._createLine=function(l,u,h){var p=l.hostModel,g=l.getItemLayout(u),A=a(g);A.shape.percent=0,S.initProps(A,{shape:{percent:1}},p,u),this.add(A);var y=new S.Text({name:"label",lineLabelOriginalOpacity:1});this.add(y),O.each(c,function(E){var C=r(E,l,u);this.add(C),this[o(E)]=l.getItemVisual(u,E)},this),this._updateCommonStl(l,u,h)},t.updateData=function(l,u,h){var p=l.hostModel,g=this.childOfName("line"),A=l.getItemLayout(u),y={shape:{}};n(y.shape,A),S.updateProps(g,y,p,u),O.each(c,function(E){var C=l.getItemVisual(u,E),w=o(E);if(this[w]!==C){this.remove(this.childOfName(E));var b=r(E,l,u);this.add(b)}this[w]=C},this),this._updateCommonStl(l,u,h)},t._updateCommonStl=function(l,u,h){var p=l.hostModel,g=this.childOfName("line"),A=h&&h.lineStyle,y=h&&h.hoverLineStyle,E=h&&h.labelModel,C=h&&h.hoverLabelModel;if(!h||l.hasItemOption){var w=l.getItemModel(u);A=w.getModel("lineStyle").getLineStyle(),y=w.getModel("emphasis.lineStyle").getLineStyle(),E=w.getModel("label"),C=w.getModel("emphasis.label")}var b=l.getItemVisual(u,"color"),I=O.retrieve3(l.getItemVisual(u,"opacity"),A.opacity,1);g.useStyle(O.defaults({strokeNoScale:!0,fill:"none",stroke:b,opacity:I},A)),g.hoverStyle=y,O.each(c,function(j){var V=this.childOfName(j);V&&(V.setColor(b),V.setStyle({opacity:I}))},this);var _=E.getShallow("show"),L=C.getShallow("show"),D=this.childOfName("label"),N,R;if((_||L)&&(N=b||"#000",R=p.getFormattedLabel(u,"normal",l.dataType),R==null)){var B=p.getRawValue(u);R=B==null?l.getName(u):isFinite(B)?f(B):B}var M=_?R:null,H=L?O.retrieve2(p.getFormattedLabel(u,"emphasis",l.dataType),R):null,F=D.style;if(M!=null||H!=null){S.setTextStyle(D.style,E,{text:M},{autoColor:N}),D.__textAlign=F.textAlign,D.__verticalAlign=F.textVerticalAlign,D.__position=E.get("position")||"middle";var K=E.get("distance");O.isArray(K)||(K=[K,K]),D.__labelDistance=K}H!=null?D.hoverStyle={text:H,textFill:C.getTextColor(!0),fontStyle:C.getShallow("fontStyle"),fontWeight:C.getShallow("fontWeight"),fontSize:C.getShallow("fontSize"),fontFamily:C.getShallow("fontFamily")}:D.hoverStyle={text:null},D.ignore=!_&&!L,S.setHoverStyle(this)},t.highlight=function(){this.trigger("emphasis")},t.downplay=function(){this.trigger("normal")},t.updateLayout=function(l,u){this.setLinePoints(l.getItemLayout(u))},t.setLinePoints=function(l){var u=this.childOfName("line");n(u.shape,l),u.dirty()},O.inherits(s,S.Group);var i=s;U.exports=i},fmMI:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("bYtY"),v=T.each,S=T.filter,m=T.map,f=T.isArray,c=T.indexOf,o=T.isObject,r=T.isString,a=T.createHashMap,n=T.assert,e=T.clone,s=T.merge,t=T.extend,i=T.mixin,l=d("4NO4"),u=d("Qxkt"),h=d("bLfw"),p=d("iXHM"),g=d("5Hur"),A=d("D5nY"),y=A.resetSourceDefaulter,E="\0_ec_inner",C=u.extend({init:function(M,H,F,K){F=F||{},this.option=null,this._theme=new u(F),this._optionManager=K},setOption:function(M,H){n(!(E in M),"please use chart.getOption()"),this._optionManager.setOption(M,H),this.resetOption(null)},resetOption:function(M){var H=!1,F=this._optionManager;if(!M||M==="recreate"){var K=F.mountOption(M==="recreate");!this.option||M==="recreate"?I.call(this,K):(this.restoreData(),this.mergeOption(K)),H=!0}if((M==="timeline"||M==="media")&&this.restoreData(),!M||M==="recreate"||M==="timeline"){var j=F.getTimelineOption(this);j&&(this.mergeOption(j),H=!0)}if(!M||M==="recreate"||M==="media"){var V=F.getMediaOption(this,this._api);V.length&&v(V,function(z){this.mergeOption(z,H=!0)},this)}return H},mergeOption:function(M){var H=this.option,F=this._componentsMap,K=[];y(this),v(M,function(V,z){if(V==null)return;h.hasClass(z)?z&&K.push(z):H[z]=H[z]==null?e(V):s(H[z],V,!0)}),h.topologicalTravel(K,h.getAllClassMainTypes(),j,this);function j(V,z){var Y=l.normalizeToArray(M[V]),ee=l.mappingToExists(F.get(V),Y);l.makeIdAndName(ee),v(ee,function(ie,we){var Ce=ie.option;o(Ce)&&(ie.keyInfo.mainType=V,ie.keyInfo.subType=L(V,Ce,ie.exist))});var fe=_(F,z);H[V]=[],F.set(V,[]),v(ee,function(ie,we){var Ce=ie.exist,Le=ie.option;if(n(o(Le)||Ce,"Empty component definition"),!Le)Ce.mergeOption({},this),Ce.optionUpdated({},!1);else{var He=h.getClass(V,ie.keyInfo.subType,!0);if(Ce&&Ce.constructor===He)Ce.name=ie.keyInfo.name,Ce.mergeOption(Le,this),Ce.optionUpdated(Le,!1);else{var ce=t({dependentModels:fe,componentIndex:we},ie.keyInfo);Ce=new He(Le,this,this,ce),t(Ce,ce),Ce.init(Le,this,this,ce),Ce.optionUpdated(null,!0)}}F.get(V)[we]=Ce,H[V][we]=Ce.option},this),V==="series"&&D(this,F.get("series"))}this._seriesIndicesMap=a(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var M=e(this.option);return v(M,function(H,F){if(h.hasClass(F)){for(var H=l.normalizeToArray(H),K=H.length-1;K>=0;K--)l.isIdInner(H[K])&&H.splice(K,1);M[F]=H}}),delete M[E],M},getTheme:function(){return this._theme},getComponent:function(M,H){var F=this._componentsMap.get(M);if(F)return F[H||0]},queryComponents:function(M){var H=M.mainType;if(!H)return[];var F=M.index,K=M.id,j=M.name,V=this._componentsMap.get(H);if(!V||!V.length)return[];var z;if(F!=null)f(F)||(F=[F]),z=S(m(F,function(fe){return V[fe]}),function(fe){return!!fe});else if(K!=null){var Y=f(K);z=S(V,function(fe){return Y&&c(K,fe.id)>=0||!Y&&fe.id===K})}else if(j!=null){var ee=f(j);z=S(V,function(fe){return ee&&c(j,fe.name)>=0||!ee&&fe.name===j})}else z=V.slice();return N(z,M)},findComponents:function(M){var H=M.query,F=M.mainType,K=V(H),j=K?this.queryComponents(K):this._componentsMap.get(F);return z(N(j,M));function V(Y){var ee=F+"Index",fe=F+"Id",ie=F+"Name";return Y&&(Y[ee]!=null||Y[fe]!=null||Y[ie]!=null)?{mainType:F,index:Y[ee],id:Y[fe],name:Y[ie]}:null}function z(Y){return M.filter?S(Y,M.filter):Y}},eachComponent:function(M,H,F){var K=this._componentsMap;if(typeof M=="function")F=H,H=M,K.each(function(V,z){v(V,function(Y,ee){H.call(F,z,Y,ee)})});else if(r(M))v(K.get(M),H,F);else if(o(M)){var j=this.findComponents(M);v(j,H,F)}},getSeriesByName:function(M){var H=this._componentsMap.get("series");return S(H,function(F){return F.name===M})},getSeriesByIndex:function(M){return this._componentsMap.get("series")[M]},getSeriesByType:function(M){var H=this._componentsMap.get("series");return S(H,function(F){return F.subType===M})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(M,H){R(this),v(this._seriesIndices,function(F){var K=this._componentsMap.get("series")[F];M.call(H,K,F)},this)},eachRawSeries:function(M,H){v(this._componentsMap.get("series"),M,H)},eachSeriesByType:function(M,H,F){R(this),v(this._seriesIndices,function(K){var j=this._componentsMap.get("series")[K];j.subType===M&&H.call(F,j,K)},this)},eachRawSeriesByType:function(M,H,F){return v(this.getSeriesByType(M),H,F)},isSeriesFiltered:function(M){return R(this),this._seriesIndicesMap.get(M.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(M,H){R(this);var F=S(this._componentsMap.get("series"),M,H);D(this,F)},restoreData:function(M){var H=this._componentsMap;D(this,H.get("series"));var F=[];H.each(function(K,j){F.push(j)}),h.topologicalTravel(F,h.getAllClassMainTypes(),function(K,j){v(H.get(K),function(V){(K!=="series"||!w(V,M))&&V.restoreData()})})}});function w(M,H){if(H){var F=H.seiresIndex,K=H.seriesId,j=H.seriesName;return F!=null&&M.componentIndex!==F||K!=null&&M.id!==K||j!=null&&M.name!==j}}function b(M,H){var F=M.color&&!M.colorLayer;v(H,function(K,j){if(j==="colorLayer"&&F)return;h.hasClass(j)||(typeof K=="object"?M[j]=M[j]?s(M[j],K,!1):e(K):M[j]==null&&(M[j]=K))})}function I(M){M=M,this.option={},this.option[E]=1,this._componentsMap=a({series:[]}),this._seriesIndices,this._seriesIndicesMap,b(M,this._theme.option),s(M,p,!1),this.mergeOption(M)}function _(M,H){f(H)||(H=H?[H]:[]);var F={};return v(H,function(K){F[K]=(M.get(K)||[]).slice()}),F}function L(M,H,F){var K=H.type?H.type:F?F.subType:h.determineSubType(M,H);return K}function D(M,H){M._seriesIndicesMap=a(M._seriesIndices=m(H,function(F){return F.componentIndex})||[])}function N(M,H){return H.hasOwnProperty("subType")?S(M,function(F){return F.subType===H.subType}):M}function R(M){}i(C,g);var B=C;U.exports=B},fyUT:function(U,P,d){"use strict";var O=d("pVnL"),x=d.n(O),T=d("lSNA"),v=d.n(T),S=d("q1tI"),m=d.n(S),f=d("TSYQ"),c=d.n(f),o=d("Ff2n"),r=d("rePB"),a=d("1OyB"),n=d("vuIU"),e=d("Ji7U"),s=d("md7G"),t=d("foSv"),i=d("4IlW");function l(z,Y){var ee=Object.keys(z);if(Object.getOwnPropertySymbols){var fe=Object.getOwnPropertySymbols(z);Y&&(fe=fe.filter(function(ie){return Object.getOwnPropertyDescriptor(z,ie).enumerable})),ee.push.apply(ee,fe)}return ee}function u(z){for(var Y=1;Y<arguments.length;Y++){var ee=arguments[Y]!=null?arguments[Y]:{};Y%2?l(Object(ee),!0).forEach(function(fe){Object(r.a)(z,fe,ee[fe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(ee)):l(Object(ee)).forEach(function(fe){Object.defineProperty(z,fe,Object.getOwnPropertyDescriptor(ee,fe))})}return z}function h(z){var Y=p();return function(){var fe=Object(t.a)(z),ie;if(Y){var we=Object(t.a)(this).constructor;ie=Reflect.construct(fe,arguments,we)}else ie=fe.apply(this,arguments);return Object(s.a)(this,ie)}}function p(){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(z){return!1}}function g(){}function A(z){z.preventDefault()}var y=function(Y){return Y.replace(/[^\w.-]+/g,"")},E=200,C=600,w=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,b=function(Y){return Y!=null},I=function(Y,ee){return ee===Y||typeof ee=="number"&&typeof Y=="number"&&isNaN(ee)&&isNaN(Y)},_=function(z){Object(e.a)(ee,z);var Y=h(ee);function ee(fe){var ie;Object(a.a)(this,ee),ie=Y.call(this,fe),ie.onKeyDown=function(Le){var He=ie.props,ce=He.onKeyDown,Pe=He.onPressEnter;if(Le.keyCode===i.a.UP){var Q=ie.getRatio(Le);ie.up(Le,Q,null),ie.stop()}else if(Le.keyCode===i.a.DOWN){var me=ie.getRatio(Le);ie.down(Le,me,null),ie.stop()}else Le.keyCode===i.a.ENTER&&Pe&&Pe(Le);if(ie.recordCursorPosition(),ie.lastKeyCode=Le.keyCode,ce){for(var Je=arguments.length,re=new Array(Je>1?Je-1:0),G=1;G<Je;G++)re[G-1]=arguments[G];ce.apply(void 0,[Le].concat(re))}},ie.onKeyUp=function(Le){var He=ie.props.onKeyUp;if(ie.stop(),ie.recordCursorPosition(),He){for(var ce=arguments.length,Pe=new Array(ce>1?ce-1:0),Q=1;Q<ce;Q++)Pe[Q-1]=arguments[Q];He.apply(void 0,[Le].concat(Pe))}},ie.onChange=function(Le){var He=ie.props.onChange;ie.state.focused&&(ie.inputting=!0),ie.rawInput=ie.props.parser(ie.getValueFromEvent(Le)),ie.setState({inputValue:ie.rawInput}),He(ie.toNumber(ie.rawInput))},ie.onMouseUp=function(){var Le=ie.props.onMouseUp;ie.recordCursorPosition(),Le&&Le.apply(void 0,arguments)},ie.onFocus=function(){var Le;ie.setState({focused:!0}),(Le=ie.props).onFocus.apply(Le,arguments)},ie.onBlur=function(){var Le=ie.props.onBlur;ie.inputting=!1,ie.setState({focused:!1});var He=ie.getCurrentValidValue(ie.state.inputValue),ce=ie.setValue(He,g);if(Le){var Pe=ie.input.value,Q=ie.getInputDisplayValue({focus:!1,value:ce});ie.input.value=Q&&Number(Q),Le.apply(void 0,arguments),ie.input.value=Pe}},ie.getRatio=function(Le){var He=1;return Le.metaKey||Le.ctrlKey?He=.1:Le.shiftKey&&(He=10),He},ie.getFullNum=function(Le){return isNaN(Le)?Le:/e/i.test(String(Le))?Number(Le).toFixed(18).replace(/\.?0+$/,""):Le},ie.getPrecision=function(Le){if(b(ie.props.precision))return ie.props.precision;var He=String(Le);if(He.indexOf("e-")>=0)return parseInt(He.slice(He.indexOf("e-")+2),10);var ce=0;return He.indexOf(".")>=0&&(ce=He.length-He.indexOf(".")-1),ce},ie.getInputDisplayValue=function(Le){var He=Le||ie.state,ce=He.focused,Pe=He.inputValue,Q=He.value,me;ce?me=Pe:me=ie.toPrecisionAsStep(Q),me==null&&(me="");var Je=ie.formatWrapper(me);return b(ie.props.decimalSeparator)&&(Je=Je.toString().replace(".",ie.props.decimalSeparator)),Je},ie.recordCursorPosition=function(){try{ie.cursorStart=ie.input.selectionStart,ie.cursorEnd=ie.input.selectionEnd,ie.currentValue=ie.input.value,ie.cursorBefore=ie.input.value.substring(0,ie.cursorStart),ie.cursorAfter=ie.input.value.substring(ie.cursorEnd)}catch(Le){}},ie.restoreByAfter=function(Le){if(Le===void 0)return!1;var He=ie.input.value,ce=He.lastIndexOf(Le);if(ce===-1)return!1;var Pe=ie.cursorBefore.length;return ie.lastKeyCode===i.a.DELETE&&ie.cursorBefore.charAt(Pe-1)===Le[0]?(ie.fixCaret(Pe,Pe),!0):ce+Le.length===He.length?(ie.fixCaret(ce,ce),!0):!1},ie.partRestoreByAfter=function(Le){return Le===void 0?!1:Array.prototype.some.call(Le,function(He,ce){var Pe=Le.substring(ce);return ie.restoreByAfter(Pe)})},ie.isNotCompleteNumber=function(Le){return isNaN(Le)||Le===""||Le===null||Le&&Le.toString().indexOf(".")===Le.toString().length-1},ie.stop=function(){ie.autoStepTimer&&clearTimeout(ie.autoStepTimer)},ie.down=function(Le,He,ce){ie.pressingUpOrDown=!0,ie.step("down",Le,He,ce)},ie.up=function(Le,He,ce){ie.pressingUpOrDown=!0,ie.step("up",Le,He,ce)},ie.saveInput=function(Le){ie.input=Le};var we=fe.value;we===void 0&&(we=fe.defaultValue),ie.state={focused:fe.autoFocus};var Ce=ie.getValidValue(ie.toNumber(we));return ie.state=u(u({},ie.state),{},{inputValue:ie.toPrecisionAsStep(Ce),value:Ce}),ie}return Object(n.a)(ee,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(ie){var we=this.props,Ce=we.value,Le=we.onChange,He=we.max,ce=we.min,Pe=this.state.focused;if(ie){if(!I(ie.value,Ce)||!I(ie.max,He)||!I(ie.min,ce)){var Q=Pe?Ce:this.getValidValue(Ce),me;this.pressingUpOrDown?me=Q:this.inputting?me=this.rawInput:me=this.toPrecisionAsStep(Q),this.setState({value:Q,inputValue:me})}var Je="value"in this.props?Ce:this.state.value;"max"in this.props&&ie.max!==He&&typeof Je=="number"&&Je>He&&Le&&Le(He),"min"in this.props&&ie.min!==ce&&typeof Je=="number"&&Je<ce&&Le&&Le(ce)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var re=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===i.a.BACKSPACE?re=this.cursorStart-1:this.lastKeyCode===i.a.DELETE&&(re=this.cursorStart):re=this.input.value.length,this.fixCaret(re,re)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case i.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case i.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(G){}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(ie){var we=ie;return we===""?we="":this.isNotCompleteNumber(parseFloat(we))?we=this.state.value:we=this.getValidValue(we),this.toNumber(we)}},{key:"getValueFromEvent",value:function(ie){var we=ie.target.value.trim().replace(/。/g,".");return b(this.props.decimalSeparator)&&(we=we.replace(this.props.decimalSeparator,".")),we}},{key:"getValidValue",value:function(ie){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,Le=parseFloat(ie);return isNaN(Le)?ie:(Le<we&&(Le=we),Le>Ce&&(Le=Ce),Le)}},{key:"setValue",value:function(ie,we){var Ce=this.props.precision,Le=this.isNotCompleteNumber(parseFloat(ie))?null:parseFloat(ie),He=this.state.value,ce=He===void 0?null:He,Pe=this.state.inputValue,Q=Pe===void 0?null:Pe,me=typeof Le=="number"?Le.toFixed(Ce):"".concat(Le),Je=Le!==ce||me!=="".concat(Q);return"value"in this.props?(Q=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Q},we)):this.setState({value:Le,inputValue:this.toPrecisionAsStep(ie)},we),Je&&this.props.onChange(Le),Le}},{key:"getMaxPrecision",value:function(ie){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ce=this.props,Le=Ce.precision,He=Ce.step;if(b(Le))return Le;var ce=this.getPrecision(we),Pe=this.getPrecision(He),Q=this.getPrecision(ie);return ie?Math.max(Q,ce+Pe):ce+Pe}},{key:"getPrecisionFactor",value:function(ie){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ce=this.getMaxPrecision(ie,we);return Math.pow(10,Ce)}},{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(ie){return this.props.formatter?this.props.formatter(ie):ie}},{key:"toPrecisionAsStep",value:function(ie){if(this.isNotCompleteNumber(ie)||ie==="")return ie;var we=Math.abs(this.getMaxPrecision(ie));return isNaN(we)?ie.toString():Number(ie).toFixed(we)}},{key:"toNumber",value:function(ie){var we=this.props.precision,Ce=this.state.focused,Le=ie&&ie.length>16&&Ce;return this.isNotCompleteNumber(ie)||Le?ie:b(we)?Math.round(ie*Math.pow(10,we))/Math.pow(10,we):Number(ie)}},{key:"upStep",value:function(ie,we){var Ce=this.props.step,Le=this.getPrecisionFactor(ie,we),He=Math.abs(this.getMaxPrecision(ie,we)),ce=((Le*ie+Le*Ce*we)/Le).toFixed(He);return this.toNumber(ce)}},{key:"downStep",value:function(ie,we){var Ce=this.props.step,Le=this.getPrecisionFactor(ie,we),He=Math.abs(this.getMaxPrecision(ie,we)),ce=((Le*ie-Le*Ce*we)/Le).toFixed(He);return this.toNumber(ce)}},{key:"step",value:function(ie,we){var Ce=this,Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,He=arguments.length>3?arguments[3]:void 0;this.stop(),we&&(we.persist(),we.preventDefault());var ce=this.props;if(ce.disabled)return;var Pe=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(Pe))return;var Q=this["".concat(ie,"Step")](Pe,Le),me=Q>ce.max||Q<ce.min;if(Q>ce.max?Q=ce.max:Q<ce.min&&(Q=ce.min),this.setValue(Q,null),this.setState({focused:!0},function(){Ce.pressingUpOrDown=!1}),me)return;this.autoStepTimer=setTimeout(function(){Ce[ie](we,Le,!0)},He?E:C)}},{key:"fixCaret",value:function(ie,we){if(ie===void 0||we===void 0||!this.input||!this.input.value)return;try{var Ce=this.input.selectionStart,Le=this.input.selectionEnd;(ie!==Ce||we!==Le)&&this.input.setSelectionRange(ie,we)}catch(He){}}},{key:"render",value:function(){var ie,we=this.props,Ce=we.prefixCls,Le=we.disabled,He=we.readOnly,ce=we.useTouch,Pe=we.autoComplete,Q=we.upHandler,me=we.downHandler,Je=we.className,re=we.max,G=we.min,X=we.style,J=we.title,Ae=we.onMouseEnter,he=we.onMouseLeave,Me=we.onMouseOver,Ie=we.onMouseOut,oe=we.required,pe=we.onClick,Oe=we.tabIndex,Ye=we.type,it=we.placeholder,et=we.id,Te=we.inputMode,tt=we.pattern,ze=we.step,dt=we.maxLength,Ot=we.autoFocus,Tt=we.name,Ct=we.onPaste,Nt=we.onInput,Be=Object(o.a)(we,["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"]),$=this.state,Z=$.value,Re=$.focused,De=c()(Ce,(ie={},Object(r.a)(ie,Je,!!Je),Object(r.a)(ie,"".concat(Ce,"-disabled"),Le),Object(r.a)(ie,"".concat(Ce,"-focused"),Re),ie)),ae={};Object.keys(Be).forEach(function(ft){(ft.substr(0,5)==="data-"||ft.substr(0,5)==="aria-"||ft==="role")&&(ae[ft]=Be[ft])});var gt=!He&&!Le,jt=this.getInputDisplayValue(null),ut=(Z||Z===0)&&(isNaN(Z)||Number(Z)>=re),rr=(Z||Z===0)&&(isNaN(Z)||Number(Z)<=G),pr=ut||Le||He,nn=rr||Le||He,mr=c()("".concat(Ce,"-handler"),"".concat(Ce,"-handler-up"),Object(r.a)({},"".concat(Ce,"-handler-up-disabled"),pr)),vr=c()("".concat(Ce,"-handler"),"".concat(Ce,"-handler-down"),Object(r.a)({},"".concat(Ce,"-handler-down-disabled"),nn)),$t=ce?{onTouchStart:pr?g:this.up,onTouchEnd:this.stop}:{onMouseDown:pr?g:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Xt=ce?{onTouchStart:nn?g:this.down,onTouchEnd:this.stop}:{onMouseDown:nn?g:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return m.a.createElement("div",{className:De,style:X,title:J,onMouseEnter:Ae,onMouseLeave:he,onMouseOver:Me,onMouseOut:Ie,onFocus:function(){return null},onBlur:function(){return null}},m.a.createElement("div",{className:"".concat(Ce,"-handler-wrap")},m.a.createElement("span",Object.assign({unselectable:"on"},$t,{role:"button","aria-label":"Increase Value","aria-disabled":pr,className:mr}),Q||m.a.createElement("span",{unselectable:"on",className:"".concat(Ce,"-handler-up-inner"),onClick:A})),m.a.createElement("span",Object.assign({unselectable:"on"},Xt,{role:"button","aria-label":"Decrease Value","aria-disabled":nn,className:vr}),me||m.a.createElement("span",{unselectable:"on",className:"".concat(Ce,"-handler-down-inner"),onClick:A}))),m.a.createElement("div",{className:"".concat(Ce,"-input-wrap")},m.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":G,"aria-valuemax":re,"aria-valuenow":Z,required:oe,type:Ye,placeholder:it,onPaste:Ct,onClick:pe,onMouseUp:this.onMouseUp,className:"".concat(Ce,"-input"),tabIndex:Oe,autoComplete:Pe,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:gt?this.onKeyDown:g,onKeyUp:gt?this.onKeyUp:g,autoFocus:Ot,maxLength:dt,readOnly:He,disabled:Le,max:re,min:G,step:ze,name:Tt,title:J,id:et,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(jt),pattern:tt,inputMode:Te,onInput:Nt},ae))))}}]),ee}(m.a.Component);_.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:w,min:-w,step:1,style:{},onChange:g,onKeyDown:g,onPressEnter:g,onFocus:g,onBlur:g,parser:y,required:!1,autoComplete:"off"};var L=_,D=L,N=d("FH2Y"),R=d.n(N),B=d("HQEm"),M=d.n(B),H=d("H84U"),F=d("3Nzz"),K=function(z,Y){var ee={};for(var fe in z)Object.prototype.hasOwnProperty.call(z,fe)&&Y.indexOf(fe)<0&&(ee[fe]=z[fe]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,fe=Object.getOwnPropertySymbols(z);ie<fe.length;ie++)Y.indexOf(fe[ie])<0&&Object.prototype.propertyIsEnumerable.call(z,fe[ie])&&(ee[fe[ie]]=z[fe[ie]]);return ee},j=S.forwardRef(function(z,Y){var ee=function(ie){var we=ie.getPrefixCls,Ce=ie.direction,Le=z.className,He=z.size,ce=z.prefixCls,Pe=z.readOnly,Q=K(z,["className","size","prefixCls","readOnly"]),me=we("input-number",ce),Je=S.createElement(R.a,{className:"".concat(me,"-handler-up-inner")}),re=S.createElement(M.a,{className:"".concat(me,"-handler-down-inner")});return S.createElement(F.b.Consumer,null,function(G){var X,J=He||G,Ae=c()((X={},v()(X,"".concat(me,"-lg"),J==="large"),v()(X,"".concat(me,"-sm"),J==="small"),v()(X,"".concat(me,"-rtl"),Ce==="rtl"),v()(X,"".concat(me,"-readonly"),Pe),X),Le);return S.createElement(D,x()({ref:Y,className:Ae,upHandler:Je,downHandler:re,prefixCls:me,readOnly:Pe},Q))})};return S.createElement(H.a,null,ee)});j.defaultProps={step:1};var V=P.a=j},g0SD:function(U,P,d){var O=d("bYtY"),x=d("9wZj"),T=d("OELB"),v=d("YXkt"),S=d("kj2x"),m=d("iPDy");function f(r,a,n){var e=a.coordinateSystem;r.each(function(s){var t=r.getItemModel(s),i,l=T.parsePercent(t.get("x"),n.getWidth()),u=T.parsePercent(t.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))i=[l,u];else if(a.getMarkerPosition)i=a.getMarkerPosition(r.getValues(r.dimensions,s));else if(e){var h=r.get(e.dimensions[0],s),p=r.get(e.dimensions[1],s);i=e.dataToPoint([h,p])}isNaN(l)||(i[0]=l),isNaN(u)||(i[1]=u),r.setItemLayout(s,i)})}var c=m.extend({type:"markPoint",updateTransform:function(r,a,n){a.eachSeries(function(e){var s=e.markPointModel;s&&(f(s.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout(s))},this)},renderSeries:function(r,a,n,e){var s=r.coordinateSystem,t=r.id,i=r.getData(),l=this.markerGroupMap,u=l.get(t)||l.set(t,new x),h=o(s,r,a);a.setData(h),f(a.getData(),r,e),h.each(function(p){var g=h.getItemModel(p),A=g.getShallow("symbol"),y=g.getShallow("symbolSize"),E=O.isFunction(A),C=O.isFunction(y);if(E||C){var w=a.getRawValue(p),b=a.getDataParams(p);E&&(A=A(w,b)),C&&(y=y(w,b))}h.setItemVisual(p,{symbol:A,symbolSize:y,color:g.get("itemStyle.color")||i.getVisual("color")})}),u.updateData(h),this.group.add(u.group),h.eachItemGraphicEl(function(p){p.traverse(function(g){g.dataModel=a})}),u.__keep=!0,u.group.silent=a.get("silent")||r.get("silent")}});function o(r,a,n){var e;r?e=O.map(r&&r.dimensions,function(i){var l=a.getData().getDimensionInfo(a.getData().mapDimension(i))||{};return O.defaults({name:i},l)}):e=[{name:"value",type:"float"}];var s=new v(e,n),t=O.map(n.get("data"),O.curry(S.dataTransform,a));return r&&(t=O.filter(t,O.curry(S.dataFilter,r))),s.initData(t,null,r?S.dimValueGetter:function(i){return i.value}),s}U.exports=c},g5aB:function(U,P){function d(O){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?(U.exports=d=function(T){return typeof T},U.exports.default=U.exports,U.exports.__esModule=!0):(U.exports=d=function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},U.exports.default=U.exports,U.exports.__esModule=!0),d(O)}U.exports=d,U.exports.default=U.exports,U.exports.__esModule=!0},g7p0:function(U,P,d){var O=d("bYtY"),x=d("bLfw"),T=d("+TT/"),v=T.getLayoutParams,S=T.sizeCalculable,m=T.mergeLayoutParam,f=x.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(r,a,n,e){var s=v(r);f.superApply(this,"init",arguments),c(r,s)},mergeOption:function(r,a){f.superApply(this,"mergeOption",arguments),c(this.option,r)}});function c(r,a){var n=r.cellSize;O.isArray(n)?n.length===1&&(n[1]=n[0]):n=r.cellSize=[n,n];var e=O.map([0,1],function(s){return S(a,s)&&(n[s]="auto"),n[s]!=null&&n[s]!=="auto"});m(r,a,{type:"box",ignoreSize:e})}var o=f;U.exports=o},g9YV:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("pED+"),v=d.n(T),S=d("+L6B"),m=d("R9oj"),f=d("7Kak"),c=d("sRBo"),o=d("qVdP"),r=d("T2oS"),a=d("DjyN"),n=d("5Dmo")},gIYZ:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O={Backspace:"Backspace",AltLeft:"Alt",AltRight:"Alt",CapsLock:"CapsLock",ContextMenu:"ContextMenu",ControlLeft:"Control",ControlRight:"Control",Enter:"Enter",MetaLeft:"Meta",MetaRight:"Meta",ShiftLeft:"Shift",ShiftRight:"Shift",Tab:"Tab",Delete:"Delete",End:"End",Help:"Help",Home:"Home",Insert:"Insert",PageDown:"PageDown",PageUp:"PageUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp",NumLock:"NumLock",NumpadBackspace:"Backspace",NumpadClear:"Clear",Escape:"Escape",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F11",F12:"F12",F13:"F13",F14:"F14",F15:"F15",F16:"F16",F17:"F17",F18:"F18",F19:"F19",F20:"F20",F21:"F21",F22:"F22",F23:"F23",F24:"F24",F25:"F25",F26:"F26",F27:"F27",F28:"F28",F29:"F29",F30:"F30",F31:"F31",F32:"F32",F33:"F33",F34:"F34",F35:"F35",PrintScreen:"PrintScreen",ScrollLock:"ScrollLock",Pause:"Pause",BrowserBack:"BrowserBack",BrowserFavorites:"BrowserFavorites",BrowserForward:"BrowserForward",BrowserHome:"BrowserHome",BrowserRefresh:"BrowserRefresh",BrowserSearch:"BrowserSearch",BrowserStop:"BrowserStop",Eject:"Eject",LaunchApp1:"LaunchMyComputer",LaunchApp2:"LaunchCalendar",LaunchMail:"LaunchMail",MediaPlayPause:"MediaPlay",MediaStop:"MediaStop",MediaTrackNext:"MediaTrackNext",MediaTrackPrevious:"MediaTrackPrevious",Power:"Power",Sleep:"Sleep",AudioVolumeDown:"AudioVolumeDown",AudioVolumeMute:"AudioVolumeMute",AudioVolumeUp:"AudioVolumeUp",WakeUp:"WakeUp"};P.default=O},gKaM:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};P.default=O},gPAo:function(U,P){function d(v){return v}function O(v,S,m,f,c){this._old=v,this._new=S,this._oldKeyGetter=m||d,this._newKeyGetter=f||d,this.context=c}O.prototype={constructor:O,add:function(v){return this._add=v,this},update:function(v){return this._update=v,this},remove:function(v){return this._remove=v,this},execute:function(){var v=this._old,S=this._new,m={},f={},c=[],o=[],r;for(x(v,m,c,"_oldKeyGetter",this),x(S,f,o,"_newKeyGetter",this),r=0;r<v.length;r++){var a=c[r],n=f[a];if(n!=null){var e=n.length;e?(e===1&&(f[a]=null),n=n.shift()):f[a]=null,this._update&&this._update(n,r)}else this._remove&&this._remove(r)}for(var r=0;r<o.length;r++){var a=o[r];if(f.hasOwnProperty(a)){var n=f[a];if(n==null)continue;if(!n.length)this._add&&this._add(n);else for(var s=0,e=n.length;s<e;s++)this._add&&this._add(n[s])}}}};function x(v,S,m,f,c){for(var o=0;o<v.length;o++){var r="_ec_"+c[f](v[o],o),a=S[r];a==null?(m.push(r),S[r]=o):(a.length||(S[r]=a=[a]),a.push(o))}}var T=O;U.exports=T},gRFJ:function(U,P,d){U.exports=[d("rdUC"),d("ynwM"),d("RELg"),d("DlR+"),d("CrYA"),d("PD8m")]},gaXo:function(module,exports){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(U){return U<10?"0"+U:U}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(U){return rx_escapable.lastIndex=0,rx_escapable.test(U)?'"'+U.replace(rx_escapable,function(P){var d=meta[P];return typeof d=="string"?d:"\\u"+("0000"+P.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+U+'"'}function str(U,P){var d,O,x,T,v=gap,S,m=P[U];m&&typeof m=="object"&&typeof m.toJSON=="function"&&(m=m.toJSON(U)),typeof rep=="function"&&(m=rep.call(P,U,m));switch(typeof m){case"string":return quote(m);case"number":return isFinite(m)?String(m):"null";case"boolean":case"null":return String(m);case"object":if(!m)return"null";if(gap+=indent,S=[],Object.prototype.toString.apply(m)==="[object Array]"){for(T=m.length,d=0;d<T;d+=1)S[d]=str(d,m)||"null";return x=S.length===0?"[]":gap?`[
|
|
|
`+gap+S.join(`,
|
|
|
`+gap)+`
|
|
|
`+v+"]":"["+S.join(",")+"]",gap=v,x}if(rep&&typeof rep=="object")for(T=rep.length,d=0;d<T;d+=1)typeof rep[d]=="string"&&(O=rep[d],x=str(O,m),x&&S.push(quote(O)+(gap?": ":":")+x));else for(O in m)Object.prototype.hasOwnProperty.call(m,O)&&(x=str(O,m),x&&S.push(quote(O)+(gap?": ":":")+x));return x=S.length===0?"{}":gap?`{
|
|
|
`+gap+S.join(`,
|
|
|
`+gap)+`
|
|
|
`+v+"}":"{"+S.join(",")+"}",gap=v,x}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(U,P,d){var O;if(gap="",indent="",typeof d=="number")for(O=0;O<d;O+=1)indent+=" ";else typeof d=="string"&&(indent=d);if(rep=P,P&&typeof P!="function"&&(typeof P!="object"||typeof P.length!="number"))throw new Error("JSON.stringify");return str("",{"":U})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(U,P){var d,O,x=U[P];if(x&&typeof x=="object")for(d in x)Object.prototype.hasOwnProperty.call(x,d)&&(O=walk(x,d),O!==void 0?x[d]=O:delete x[d]);return reviver.call(U,P,x)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(U){return"\\u"+("0000"+U.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},gawk:function(U,P,d){var O=d("+TT/"),x=d("bYtY"),T=d("4NO4"),v=T.groupData;function S(I,_,L){I.eachSeriesByType("sankey",function(D){var N=D.get("nodeWidth"),R=D.get("nodeGap"),B=m(D,_);D.layoutInfo=B;var M=B.width,H=B.height,F=D.getGraph(),K=F.nodes,j=F.edges;c(K);var V=x.filter(K,function(fe){return fe.getLayout().value===0}),z=V.length!==0?0:D.get("layoutIterations"),Y=D.get("orient"),ee=D.get("nodeAlign");f(K,j,N,R,M,H,z,Y,ee)})}function m(I,_){return O.getLayoutRect(I.getBoxLayoutParams(),{width:_.getWidth(),height:_.getHeight()})}function f(I,_,L,D,N,R,B,M,H){o(I,_,L,N,R,M,H),s(I,_,R,N,D,B,M),b(I,M)}function c(I){x.each(I,function(_){var L=C(_.outEdges,E),D=C(_.inEdges,E),N=_.getValue()||0,R=Math.max(L,D,N);_.setLayout({value:R},!0)})}function o(I,_,L,D,N,R,B){for(var M=[],H=[],F=[],K=[],j=0,V=0,z=0;z<_.length;z++)M[z]=1;for(z=0;z<I.length;z++)H[z]=I[z].inEdges.length,H[z]===0&&F.push(I[z]);for(var Y=-1;F.length;){for(var ee=0;ee<F.length;ee++){var fe=F[ee],ie=fe.hostGraph.data.getRawDataItem(fe.dataIndex),we=ie.depth!=null&&ie.depth>=0;we&&ie.depth>Y&&(Y=ie.depth),fe.setLayout({depth:we?ie.depth:j},!0),R==="vertical"?fe.setLayout({dy:L},!0):fe.setLayout({dx:L},!0);for(var Ce=0;Ce<fe.outEdges.length;Ce++){var Le=fe.outEdges[Ce],He=_.indexOf(Le);M[He]=0;var ce=Le.node2,Pe=I.indexOf(ce);--H[Pe]===0&&K.indexOf(ce)<0&&K.push(ce)}}++j,F=K,K=[]}for(z=0;z<M.length;z++)if(M[z]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var Q=Y>j-1?Y:j-1;B&&B!=="left"&&a(I,B,R,Q);var V=R==="vertical"?(N-L)/Q:(D-L)/Q;e(I,V,R)}function r(I){var _=I.hostGraph.data.getRawDataItem(I.dataIndex);return _.depth!=null&&_.depth>=0}function a(I,_,L,D){if(_==="right"){for(var N=[],R=I,B=0;R.length;){for(var M=0;M<R.length;M++){var H=R[M];H.setLayout({skNodeHeight:B},!0);for(var F=0;F<H.inEdges.length;F++){var K=H.inEdges[F];N.indexOf(K.node1)<0&&N.push(K.node1)}}R=N,N=[],++B}x.each(I,function(j){r(j)||j.setLayout({depth:Math.max(0,D-j.getLayout().skNodeHeight)},!0)})}else _==="justify"&&n(I,D)}function n(I,_){x.each(I,function(L){!r(L)&&!L.outEdges.length&&L.setLayout({depth:_},!0)})}function e(I,_,L){x.each(I,function(D){var N=D.getLayout().depth*_;L==="vertical"?D.setLayout({y:N},!0):D.setLayout({x:N},!0)})}function s(I,_,L,D,N,R,B){var M=t(I,B);i(M,_,L,D,N,B),l(M,N,L,D,B);for(var H=1;R>0;R--)H*=.99,u(M,H,B),l(M,N,L,D,B),w(M,H,B),l(M,N,L,D,B)}function t(I,_){var L=[],D=_==="vertical"?"y":"x",N=v(I,function(R){return R.getLayout()[D]});return N.keys.sort(function(R,B){return R-B}),x.each(N.keys,function(R){L.push(N.buckets.get(R))}),L}function i(I,_,L,D,N,R){var B=Infinity;x.each(I,function(M){var H=M.length,F=0;x.each(M,function(j){F+=j.getLayout().value});var K=R==="vertical"?(D-(H-1)*N)/F:(L-(H-1)*N)/F;K<B&&(B=K)}),x.each(I,function(M){x.each(M,function(H,F){var K=H.getLayout().value*B;R==="vertical"?(H.setLayout({x:F},!0),H.setLayout({dx:K},!0)):(H.setLayout({y:F},!0),H.setLayout({dy:K},!0))})}),x.each(_,function(M){var H=+M.getValue()*B;M.setLayout({dy:H},!0)})}function l(I,_,L,D,N){var R=N==="vertical"?"x":"y";x.each(I,function(B){B.sort(function(ee,fe){return ee.getLayout()[R]-fe.getLayout()[R]});for(var M,H,F,K=0,j=B.length,V=N==="vertical"?"dx":"dy",z=0;z<j;z++)H=B[z],F=K-H.getLayout()[R],F>0&&(M=H.getLayout()[R]+F,N==="vertical"?H.setLayout({x:M},!0):H.setLayout({y:M},!0)),K=H.getLayout()[R]+H.getLayout()[V]+_;var Y=N==="vertical"?D:L;if(F=K-_-Y,F>0)for(M=H.getLayout()[R]-F,N==="vertical"?H.setLayout({x:M},!0):H.setLayout({y:M},!0),K=M,z=j-2;z>=0;--z)H=B[z],F=H.getLayout()[R]+H.getLayout()[V]+_-K,F>0&&(M=H.getLayout()[R]-F,N==="vertical"?H.setLayout({x:M},!0):H.setLayout({y:M},!0)),K=H.getLayout()[R]})}function u(I,_,L){x.each(I.slice().reverse(),function(D){x.each(D,function(N){if(N.outEdges.length){var R=C(N.outEdges,h,L)/C(N.outEdges,E,L);if(isNaN(R)){var B=N.outEdges.length;R=B?C(N.outEdges,p,L)/B:0}if(L==="vertical"){var M=N.getLayout().x+(R-y(N,L))*_;N.setLayout({x:M},!0)}else{var H=N.getLayout().y+(R-y(N,L))*_;N.setLayout({y:H},!0)}}})})}function h(I,_){return y(I.node2,_)*I.getValue()}function p(I,_){return y(I.node2,_)}function g(I,_){return y(I.node1,_)*I.getValue()}function A(I,_){return y(I.node1,_)}function y(I,_){return _==="vertical"?I.getLayout().x+I.getLayout().dx/2:I.getLayout().y+I.getLayout().dy/2}function E(I){return I.getValue()}function C(I,_,L){for(var D=0,N=I.length,R=-1;++R<N;){var B=+_.call(I,I[R],L);isNaN(B)||(D+=B)}return D}function w(I,_,L){x.each(I,function(D){x.each(D,function(N){if(N.inEdges.length){var R=C(N.inEdges,g,L)/C(N.inEdges,E,L);if(isNaN(R)){var B=N.inEdges.length;R=B?C(N.inEdges,A,L)/B:0}if(L==="vertical"){var M=N.getLayout().x+(R-y(N,L))*_;N.setLayout({x:M},!0)}else{var H=N.getLayout().y+(R-y(N,L))*_;N.setLayout({y:H},!0)}}})})}function b(I,_){var L=_==="vertical"?"x":"y";x.each(I,function(D){D.outEdges.sort(function(N,R){return N.node2.getLayout()[L]-R.node2.getLayout()[L]}),D.inEdges.sort(function(N,R){return N.node1.getLayout()[L]-R.node1.getLayout()[L]})}),x.each(I,function(D){var N=0,R=0;x.each(D.outEdges,function(B){B.setLayout({sy:N},!0),N+=B.getLayout().dy}),x.each(D.inEdges,function(B){B.setLayout({ty:R},!0),R+=B.getLayout().dy})})}U.exports=S},"gb/T":function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.mode.ECB=function(){var x=O.lib.BlockCipherMode.extend();return x.Encryptor=x.extend({processBlock:function(v,S){this._cipher.encryptBlock(v,S)}}),x.Decryptor=x.extend({processBlock:function(v,S){this._cipher.decryptBlock(v,S)}}),x}(),O.mode.ECB})},"giR+":function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("QbM5"),v=d.n(T)},gut8:function(U,P){var d={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},O=9;P.ContextCachedBy=d,P.WILL_BE_RESTORED=O},gvm7:function(U,P,d){var O=d("bYtY"),x=d("dqUG");function T(S){this._zr=S.getZr(),this._show=!1,this._hideTimeout}T.prototype={constructor:T,_enterable:!0,update:function(){},show:function(S){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(S,m,f){this.el&&this._zr.remove(this.el);for(var c={},o=S,r="{marker",a="|}",n=o.indexOf(r);n>=0;){var e=o.indexOf(a),s=o.substr(n+r.length,e-n-r.length);s.indexOf("sub")>-1?c["marker"+s]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:m[s],textOffset:[3,0]}:c["marker"+s]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:m[s]},o=o.substr(e+1),n=o.indexOf("{marker")}this.el=new x({style:{rich:c,text:S,textLineHeight:20,textBackgroundColor:f.get("backgroundColor"),textBorderRadius:f.get("borderRadius"),textFill:f.get("textStyle.color"),textPadding:f.get("padding")},z:f.get("z")}),this._zr.add(this.el);var t=this;this.el.on("mouseover",function(){t._enterable&&(clearTimeout(t._hideTimeout),t._show=!0),t._inContent=!0}),this.el.on("mouseout",function(){t._enterable&&(t._show&&t.hideLater(t._hideDelay)),t._inContent=!1})},setEnterable:function(S){this._enterable=S},getSize:function(){var S=this.el.getBoundingRect();return[S.width,S.height]},moveTo:function(S,m){this.el&&this.el.attr("position",[S,m])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(S){this._show&&!(this._inContent&&this._enterable)&&(S?(this._hideDelay=S,this._show=!1,this._hideTimeout=setTimeout(O.bind(this.hide,this),S)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var S=this.getSize();return{width:S[0],height:S[1]}}};var v=T;U.exports=v},gwTy:function(U,P,d){},h54F:function(U,P,d){var O=d("ProS"),x=d("YXkt"),T=d("bYtY"),v=d("4NO4"),S=v.defaultEmphasis,m=d("Qxkt"),f=d("7aKB"),c=f.encodeHTML,o=d("I3/A"),r=d("xKMd"),a=O.extendSeriesModel({type:"series.graph",init:function(e){a.superApply(this,"init",arguments);var s=this;function t(){return s._categoriesData}this.legendVisualProvider=new r(t,t),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){a.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){a.superApply(this,"mergeDefaultAndTheme",arguments),S(e,["edgeLabel"],["show"])},getInitialData:function(e,s){var t=e.edges||e.links||[],i=e.data||e.nodes||[],l=this;if(i&&t)return o(i,t,this,!0,u).data;function u(h,p){h.wrapMethod("getItemModel",function(w){var b=l._categoriesModels,I=w.getShallow("category"),_=b[I];return _&&(_.parentModel=w.parentModel,w.parentModel=_),w});var g=l.getModel("edgeLabel"),A=new m({label:g.option},g.parentModel,s),y=l.getModel("emphasis.edgeLabel"),E=new m({emphasis:{label:y.option}},y.parentModel,s);p.wrapMethod("getItemModel",function(w){return w.customizeGetParent(C),w});function C(w){return w=this.parsePath(w),w&&w[0]==="label"?A:w&&w[0]==="emphasis"&&w[1]==="label"?E:this.parentModel}}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,s,t){if(t==="edge"){var i=this.getData(),l=this.getDataParams(e,t),u=i.graph.getEdgeByIndex(e),h=i.getName(u.node1.dataIndex),p=i.getName(u.node2.dataIndex),g=[];return h!=null&&g.push(h),p!=null&&g.push(p),g=c(g.join(" > ")),l.value&&(g+=" : "+c(l.value)),g}else return a.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=T.map(this.option.categories||[],function(t){return t.value!=null?t:T.extend({value:0},t)}),s=new x(["value"],this);s.initData(e),this._categoriesData=s,this._categoriesModels=s.mapArray(function(t){return s.getItemModel(t,!0)})},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return a.superCall(this,"isAnimationEnabled")&&!(this.get("layout")==="force"&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),n=a;U.exports=n},h7HQ:function(U,P,d){var O=d("y+Vt"),x=d("T6xi"),T=O.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(S,m){x.buildPath(S,m,!0)}});U.exports=T},h8O9:function(U,P,d){var O=d("bYtY"),x=O.map,T=d("zM3Q"),v=d("7hqr"),S=v.isDimensionStacked;function m(f){return{seriesType:f,plan:T(),reset:function(c){var o=c.getData(),r=c.coordinateSystem,a=c.pipelineContext,n=a.large;if(!r)return;var e=x(r.dimensions,function(l){return o.mapDimension(l)}).slice(0,2),s=e.length,t=o.getCalculationInfo("stackResultDimension");S(o,e[0])&&(e[0]=t),S(o,e[1])&&(e[1]=t);function i(l,u){for(var h=l.end-l.start,p=n&&new Float32Array(h*s),g=l.start,A=0,y=[],E=[];g<l.end;g++){var C;if(s===1){var w=u.get(e[0],g);C=!isNaN(w)&&r.dataToPoint(w,null,E)}else{var w=y[0]=u.get(e[0],g),b=y[1]=u.get(e[1],g);C=!isNaN(w)&&!isNaN(b)&&r.dataToPoint(y,null,E)}n?(p[A++]=C?C[0]:NaN,p[A++]=C?C[1]:NaN):u.setItemLayout(g,C&&C.slice()||[NaN,NaN])}n&&u.setLayout("symbolPoints",p)}return s&&{progress:i}}}}U.exports=m},hD7B:function(U,P,d){var O=d("bYtY"),x=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function T(S){O.each(x,function(m){this[m]=O.bind(S[m],S)},this)}var v=T;U.exports=v},hFmY:function(U,P,d){var O=d("ProS"),x={type:"axisAreaSelect",event:"axisAreaSelected"};O.registerAction(x,function(T,v){v.eachComponent({mainType:"parallelAxis",query:T},function(S){S.axis.model.setActiveIntervals(T.intervals)})}),O.registerAction("parallelAxisExpand",function(T,v){v.eachComponent({mainType:"parallel",query:T},function(S){S.setAxisExpand(T)})})},hJvP:function(U,P,d){var O=d("2dDv"),x=d("IDmD");function T(v,S){var m=[];return v.eachComponent("parallel",function(f,c){var o=new O(f,v,S);o.name="parallel_"+c,o.resize(f,S),f.coordinateSystem=o,o.model=f,m.push(o)}),v.eachSeries(function(f){if(f.get("coordinateSystem")==="parallel"){var c=v.queryComponents({mainType:"parallel",index:f.get("parallelIndex"),id:f.get("parallelId")})[0];f.coordinateSystem=c.coordinateSystem}}),m}x.register("parallel",{create:T})},hM6l:function(U,P,d){var O=d("bYtY"),x=O.each,T=O.map,v=d("OELB"),S=v.linearMap,m=v.getPixelPrecision,f=v.round,c=d("4HMb"),o=c.createAxisTicks,r=c.createAxisLabels,a=c.calculateCategoryInterval,n=[0,1],e=function(l,u,h){this.dim=l,this.scale=u,this._extent=h||[0,0],this.inverse=!1,this.onBand=!1};e.prototype={constructor:e,contain:function(l){var u=this._extent,h=Math.min(u[0],u[1]),p=Math.max(u[0],u[1]);return l>=h&&l<=p},containData:function(l){return this.scale.contain(l)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(l){return m(l||this.scale.getExtent(),this._extent)},setExtent:function(l,u){var h=this._extent;h[0]=l,h[1]=u},dataToCoord:function(l,u){var h=this._extent,p=this.scale;return l=p.normalize(l),this.onBand&&p.type==="ordinal"&&(h=h.slice(),s(h,p.count())),S(l,n,h,u)},coordToData:function(l,u){var h=this._extent,p=this.scale;this.onBand&&p.type==="ordinal"&&(h=h.slice(),s(h,p.count()));var g=S(l,h,n,u);return this.scale.scale(g)},pointToData:function(l,u){},getTicksCoords:function(l){l=l||{};var u=l.tickModel||this.getTickModel(),h=o(this,u),p=h.ticks,g=T(p,function(y){return{coord:this.dataToCoord(y),tickValue:y}},this),A=u.get("alignWithLabel");return t(this,g,A,l.clamp),g},getMinorTicksCoords:function(){if(this.scale.type==="ordinal")return[];var l=this.model.getModel("minorTick"),u=l.get("splitNumber");u>0&&u<100||(u=5);var h=this.scale.getMinorTicks(u),p=T(h,function(g){return T(g,function(A){return{coord:this.dataToCoord(A),tickValue:A}},this)},this);return p},getViewLabels:function(){return r(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var l=this._extent,u=this.scale.getExtent(),h=u[1]-u[0]+(this.onBand?1:0);h===0&&(h=1);var p=Math.abs(l[1]-l[0]);return Math.abs(p)/h},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return a(this)}};function s(l,u){var h=l[1]-l[0],p=u,g=h/p/2;l[0]+=g,l[1]-=g}function t(l,u,h,p){var g=u.length;if(!l.onBand||h||!g)return;var A=l.getExtent(),y,E;if(g===1)u[0].coord=A[0],y=u[1]={coord:A[0]};else{var C=u[g-1].tickValue-u[0].tickValue,w=(u[g-1].coord-u[0].coord)/C;x(u,function(L){L.coord-=w/2});var b=l.scale.getExtent();E=1+b[1]-u[g-1].tickValue,y={coord:u[g-1].coord+w*E},u.push(y)}var I=A[0]>A[1];_(u[0].coord,A[0])&&(p?u[0].coord=A[0]:u.shift()),p&&_(A[0],u[0].coord)&&u.unshift({coord:A[0]}),_(A[1],y.coord)&&(p?y.coord=A[1]:u.pop()),p&&_(y.coord,A[1])&&u.push({coord:A[1]});function _(L,D){return L=f(L),D=f(D),I?L>D:L<D}}var i=e;U.exports=i},hNWo:function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("Qxkt"),v=d("4NO4"),S=v.isNameSpecified,m=d("Kagy"),f=m.legend.selector,c={all:{type:"all",title:x.clone(f.all)},inverse:{type:"inverse",title:x.clone(f.inverse)}},o=O.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(a,n,e){this.mergeDefaultAndTheme(a,e),a.selected=a.selected||{},this._updateSelector(a)},mergeOption:function(a){o.superCall(this,"mergeOption",a),this._updateSelector(a)},_updateSelector:function(a){var n=a.selector;n===!0&&(n=a.selector=["all","inverse"]),x.isArray(n)&&x.each(n,function(e,s){x.isString(e)&&(e={type:e}),n[s]=x.merge(e,c[e.type])})},optionUpdated:function(){this._updateData(this.ecModel);var a=this._data;if(a[0]&&this.get("selectedMode")==="single"){for(var n=!1,e=0;e<a.length;e++){var s=a[e].get("name");if(this.isSelected(s)){this.select(s),n=!0;break}}!n&&this.select(a[0].get("name"))}},_updateData:function(a){var n=[],e=[];a.eachRawSeries(function(i){var l=i.name;e.push(l);var u;if(i.legendVisualProvider){var h=i.legendVisualProvider,p=h.getAllNames();a.isSeriesFiltered(i)||(e=e.concat(p)),p.length?n=n.concat(p):u=!0}else u=!0;u&&S(i)&&n.push(i.name)}),this._availableNames=e;var s=this.get("data")||n,t=x.map(s,function(i){return(typeof i=="string"||typeof i=="number")&&(i={name:i}),new T(i,this,this.ecModel)},this);this._data=t},getData:function(){return this._data},select:function(a){var n=this.option.selected,e=this.get("selectedMode");if(e==="single"){var s=this._data;x.each(s,function(t){n[t.get("name")]=!1})}n[a]=!0},unSelect:function(a){this.get("selectedMode")!=="single"&&(this.option.selected[a]=!1)},toggleSelected:function(a){var n=this.option.selected;n.hasOwnProperty(a)||(n[a]=!0),this[n[a]?"unSelect":"select"](a)},allSelect:function(){var a=this._data,n=this.option.selected;x.each(a,function(e){n[e.get("name",!0)]=!0})},inverseSelect:function(){var a=this._data,n=this.option.selected;x.each(a,function(e){var s=e.get("name",!0);n.hasOwnProperty(s)||(n[s]=!0),n[s]=!n[s]})},isSelected:function(a){var n=this.option.selected;return!(n.hasOwnProperty(a)&&!n[a])&&x.indexOf(this._availableNames,a)>=0},getOrient:function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),r=o;U.exports=r},hOwI:function(U,P){var d=Math.log(2);function O(T,v,S,m,f,c){var o=m+"-"+f,r=T.length;if(c.hasOwnProperty(o))return c[o];if(v===1){var a=Math.round(Math.log((1<<r)-1&~f)/d);return T[S][a]}for(var n=m|1<<S,e=S+1;m&1<<e;)e++;for(var s=0,t=0,i=0;t<r;t++){var l=1<<t;l&f||(s+=(i%2?-1:1)*T[S][t]*O(T,v-1,e,n,f|l,c),i++)}return c[o]=s,s}function x(T,v){var S=[[T[0],T[1],1,0,0,0,-v[0]*T[0],-v[0]*T[1]],[0,0,0,T[0],T[1],1,-v[1]*T[0],-v[1]*T[1]],[T[2],T[3],1,0,0,0,-v[2]*T[2],-v[2]*T[3]],[0,0,0,T[2],T[3],1,-v[3]*T[2],-v[3]*T[3]],[T[4],T[5],1,0,0,0,-v[4]*T[4],-v[4]*T[5]],[0,0,0,T[4],T[5],1,-v[5]*T[4],-v[5]*T[5]],[T[6],T[7],1,0,0,0,-v[6]*T[6],-v[6]*T[7]],[0,0,0,T[6],T[7],1,-v[7]*T[6],-v[7]*T[7]]],m={},f=O(S,8,0,0,0,m);if(f===0)return;for(var c=[],o=0;o<8;o++)for(var r=0;r<8;r++)c[r]==null&&(c[r]=0),c[r]+=((o+r)%2?-1:1)*O(S,7,o===0?1:0,1<<o,1<<r,m)/f*v[o];return function(a,n,e){var s=n*c[6]+e*c[7]+1;a[0]=(n*c[0]+e*c[1]+c[2])/s,a[1]=(n*c[3]+e*c[4]+c[5])/s}}P.buildTransformer=x},hX1E:function(U,P){var d=Math.PI*2;function O(x){return x%=d,x<0&&(x+=d),x}P.normalizeRadian=O},hXwI:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;function O(S,m){if(!(S instanceof m))throw new TypeError("Cannot call a class as a function")}function x(S,m){for(var f=0;f<m.length;f++){var c=m[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(S,c.key,c)}}function T(S,m,f){return m&&x(S.prototype,m),f&&x(S,f),S}var v=function(){function S(){O(this,S)}return T(S,[{key:"decodeRect",value:function(f,c,o,r,a,n,e){if(a.rQwait("COPYRECT",4))return!1;var s=a.rQshift16(),t=a.rQshift16();return n.copyImage(s,t,f,c,o,r),!0}}]),S}();P.default=v},hi0g:function(U,P,d){var O=d("bYtY"),x=O.createHashMap,T=O.each,v=O.isString,S=O.defaults,m=O.extend,f=O.isObject,c=O.clone,o=d("4NO4"),r=o.normalizeToArray,a=d("D5nY"),n=a.guessOrdinal,e=a.BE_ORDINAL,s=d("7G+c"),t=d("L0Ub"),i=t.OTHER_DIMENSIONS,l=d("Vi4m");function u(A,y,E){s.isInstance(y)||(y=s.seriesDataToSource(y)),E=E||{},A=(A||[]).slice();for(var C=(E.dimsDef||[]).slice(),w=x(),b=x(),I=[],_=h(y,A,C,E.dimCount),L=0;L<_;L++){var D=C[L]=m({},f(C[L])?C[L]:{name:C[L]}),N=D.name,R=I[L]=new l;N!=null&&w.get(N)==null&&(R.name=R.displayName=N,w.set(N,L)),D.type!=null&&(R.type=D.type),D.displayName!=null&&(R.displayName=D.displayName)}var B=E.encodeDef;!B&&E.encodeDefaulter&&(B=E.encodeDefaulter(y,_)),B=x(B),B.each(function(ee,fe){if(ee=r(ee).slice(),ee.length===1&&!v(ee[0])&&ee[0]<0){B.set(fe,!1);return}var ie=B.set(fe,[]);T(ee,function(we,Ce){v(we)&&(we=w.get(we)),we!=null&&we<_&&(ie[Ce]=we,H(I[we],fe,Ce))})});var M=0;T(A,function(ee,fe){var ie,ee,we,Ce;if(v(ee))ie=ee,ee={};else{ie=ee.name;var Le=ee.ordinalMeta;ee.ordinalMeta=null,ee=c(ee),ee.ordinalMeta=Le,we=ee.dimsDef,Ce=ee.otherDims,ee.name=ee.coordDim=ee.coordDimIndex=ee.dimsDef=ee.otherDims=null}var He=B.get(ie);if(He===!1)return;var He=r(He);if(!He.length)for(var ce=0;ce<(we&&we.length||1);ce++){for(;M<I.length&&I[M].coordDim!=null;)M++;M<I.length&&He.push(M++)}T(He,function(Pe,Q){var me=I[Pe];if(H(S(me,ee),ie,Q),me.name==null&&we){var Je=we[Q];!f(Je)&&(Je={name:Je}),me.name=me.displayName=Je.name,me.defaultTooltip=Je.defaultTooltip}Ce&&S(me.otherDims,Ce)})});function H(ee,fe,ie){i.get(fe)!=null?ee.otherDims[fe]=ie:(ee.coordDim=fe,ee.coordDimIndex=ie,b.set(fe,!0))}var F=E.generateCoord,K=E.generateCoordCount,j=K!=null;K=F?K||1:0;for(var V=F||"value",z=0;z<_;z++){var R=I[z]=I[z]||new l,Y=R.coordDim;Y==null&&(R.coordDim=p(V,b,j),R.coordDimIndex=0,(!F||K<=0)&&(R.isExtraCoord=!0),K--),R.name==null&&(R.name=p(R.coordDim,w)),R.type==null&&(n(y,z,R.name)===e.Must||R.isExtraCoord&&(R.otherDims.itemName!=null||R.otherDims.seriesName!=null))&&(R.type="ordinal")}return I}function h(A,y,E,C){var w=Math.max(A.dimensionsDetectCount||1,y.length,E.length,C||0);return T(y,function(b){var I=b.dimsDef;I&&(w=Math.max(w,I.length))}),w}function p(A,y,E){if(E||y.get(A)!=null){for(var C=0;y.get(A+C)!=null;)C++;A+=C}return y.set(A,!0),A}var g=u;U.exports=g},hkKa:function(U,P,d){"use strict";d.d(P,"a",function(){return S});var O=d("J4zp"),x=d.n(O),T=d("q1tI"),v=d.n(T);function S(){var m=T.useReducer(function(o){return o+1},0),f=x()(m,2),c=f[1];return c}},hw6D:function(U,P,d){var O=d("bYtY");function x(S){S.eachSeriesByType("radar",function(m){var f=m.getData(),c=[],o=m.coordinateSystem;if(!o)return;var r=o.getIndicatorAxes();O.each(r,function(a,n){f.each(f.mapDimension(r[n].dim),function(e,s){c[s]=c[s]||[];var t=o.dataToPoint(e,n);c[s][n]=T(t)?t:v(o)})}),f.each(function(a){var n=O.find(c[a],function(e){return T(e)})||v(o);c[a].push(n.slice()),f.setItemLayout(a,c[a])})})}function T(S){return!isNaN(S[0])&&!isNaN(S[1])}function v(S){return[S.cx,S.cy]}U.exports=x},hwYd:function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("Nu4q")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="PictureTwoTone";var c=v.forwardRef(f);P.default=c},hydK:function(U,P){var d="http://www.w3.org/2000/svg";function O(x){return document.createElementNS(d,x)}P.createElement=O},hyiK:function(U,P){function d(O,x,T,v,S,m){if(m>x&&m>v||m<x&&m<v)return 0;if(v===x)return 0;var f=v<x?1:-1,c=(m-x)/(v-x);(c===1||c===0)&&(f=v<x?.5:-.5);var o=c*(T-O)+O;return o===S?Infinity:o>S?f:0}U.exports=d},i38C:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("bYtY"),v=T.createHashMap,S=T.retrieve,m=T.each;function f(a){this.coordSysName=a,this.coordSysDims=[],this.axisMap=v(),this.categoryAxisMap=v(),this.firstCategoryDimIndex=null}function c(a){var n=a.get("coordinateSystem"),e=new f(n),s=o[n];if(s)return s(a,e,e.axisMap,e.categoryAxisMap),e}var o={cartesian2d:function(a,n,e,s){var t=a.getReferringComponents("xAxis")[0],i=a.getReferringComponents("yAxis")[0];n.coordSysDims=["x","y"],e.set("x",t),e.set("y",i),r(t)&&(s.set("x",t),n.firstCategoryDimIndex=0),r(i)&&(s.set("y",i),n.firstCategoryDimIndex==null&(n.firstCategoryDimIndex=1))},singleAxis:function(a,n,e,s){var t=a.getReferringComponents("singleAxis")[0];n.coordSysDims=["single"],e.set("single",t),r(t)&&(s.set("single",t),n.firstCategoryDimIndex=0)},polar:function(a,n,e,s){var t=a.getReferringComponents("polar")[0],i=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");n.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",l),r(i)&&(s.set("radius",i),n.firstCategoryDimIndex=0),r(l)&&(s.set("angle",l),n.firstCategoryDimIndex==null&&(n.firstCategoryDimIndex=1))},geo:function(a,n,e,s){n.coordSysDims=["lng","lat"]},parallel:function(a,n,e,s){var t=a.ecModel,i=t.getComponent("parallel",a.get("parallelIndex")),l=n.coordSysDims=i.dimensions.slice();m(i.parallelAxisIndex,function(u,h){var p=t.getComponent("parallelAxis",u),g=l[h];e.set(g,p),r(p)&&n.firstCategoryDimIndex==null&&(s.set(g,p),n.firstCategoryDimIndex=h)})}};function r(a){return a.get("type")==="category"}P.getCoordSysInfoBySeries=c},i6bk:function(U,P,d){"use strict";d.d(P,"b",function(){return O}),d.d(P,"a",function(){return x});function O(T){return T!=null&&T===T.window}function x(T,v){if(typeof window=="undefined")return 0;var S=v?"scrollTop":"scrollLeft",m=0;return O(T)?m=T[v?"pageYOffset":"pageXOffset"]:T instanceof Document?m=T.documentElement[S]:T&&(m=T[S]),T&&!O(T)&&typeof m!="number"&&(m=(T.ownerDocument||T).documentElement[S]),m}},i8CU:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("Fm1+"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},iLNv:function(U,P){var d="\0__throttleOriginMethod",O="\0__throttleRate",x="\0__throttleType";function T(m,f,c){var o,r=0,a=0,n=null,e,s,t,i;f=f||0;function l(){a=new Date().getTime(),n=null,m.apply(s,t||[])}var u=function(){o=new Date().getTime(),s=this,t=arguments;var h=i||f,p=i||c;i=null,e=o-(p?r:a)-h,clearTimeout(n),p?n=setTimeout(l,h):e>=0?l():n=setTimeout(l,-e),r=o};return u.clear=function(){n&&(clearTimeout(n),n=null)},u.debounceNextCall=function(h){i=h},u}function v(m,f,c,o){var r=m[f];if(!r)return;var a=r[d]||r,n=r[x],e=r[O];if(e!==c||n!==o){if(c==null||!o)return m[f]=a;r=m[f]=T(a,c,o==="debounce"),r[d]=a,r[x]=o,r[O]=c}return r}function S(m,f){var c=m[f];c&&c[d]&&(m[f]=c[d])}P.throttle=T,P.createOrUpdate=v,P.clear=S},iPDy:function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=O.extendComponentView({type:"marker",init:function(){this.markerGroupMap=x.createHashMap()},render:function(v,S,m){var f=this.markerGroupMap;f.each(function(o){o.__keep=!1});var c=this.type+"Model";S.eachSeries(function(o){var r=o[c];r&&this.renderSeries(o,r,S,m)},this),f.each(function(o){!o.__keep&&this.group.remove(o.group)},this)},renderSeries:function(){}});U.exports=T},iQDF:function(U,P,d){"use strict";var O=d("ZTW2"),x=d.n(O),T=d("+BJd"),v=d("+L6B")},iRjW:function(U,P,d){var O=d("bYtY"),x=d("Yl7c"),T=x.parseClassType,v=0;function S(c){return[c||"",v++,Math.random().toFixed(5)].join("_")}function m(c){var o={};return c.registerSubTypeDefaulter=function(r,a){r=T(r),o[r.main]=a},c.determineSubType=function(r,a){var n=a.type;if(!n){var e=T(r).main;c.hasSubTypes(r)&&o[e]&&(n=o[e](a))}return n},c}function f(c,o){c.topologicalTravel=function(e,s,t,i){if(!e.length)return;var l=r(s),u=l.graph,h=l.noEntryList,p={};for(O.each(e,function(w){p[w]=!0});h.length;){var g=h.pop(),A=u[g],y=!!p[g];y&&(t.call(i,g,A.originalDeps.slice()),delete p[g]),O.each(A.successor,y?C:E)}O.each(p,function(){throw new Error("Circle dependency may exists")});function E(w){u[w].entryCount--,u[w].entryCount===0&&h.push(w)}function C(w){p[w]=!0,E(w)}};function r(e){var s={},t=[];return O.each(e,function(i){var l=a(s,i),u=l.originalDeps=o(i),h=n(u,e);l.entryCount=h.length,l.entryCount===0&&t.push(i),O.each(h,function(p){O.indexOf(l.predecessor,p)<0&&l.predecessor.push(p);var g=a(s,p);O.indexOf(g.successor,p)<0&&g.successor.push(i)})}),{graph:s,noEntryList:t}}function a(e,s){return e[s]||(e[s]={predecessor:[],successor:[]}),e[s]}function n(e,s){var t=[];return O.each(e,function(i){O.indexOf(s,i)>=0&&t.push(i)}),t}}P.getUID=S,P.enableSubTypeDefaulter=m,P.enableTopologicalTravel=f},iUHT:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;function O(A,y){if(!(A instanceof y))throw new TypeError("Cannot call a class as a function")}function x(A,y){for(var E=0;E<y.length;E++){var C=y[E];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(A,C.key,C)}}function T(A,y,E){return y&&x(A.prototype,y),E&&x(A,E),A}var v=[13,16,10,23,0,4,2,27,14,5,20,9,22,18,11,3,25,7,15,6,26,19,12,1,40,51,30,36,46,54,29,39,50,44,32,47,43,48,38,55,33,52,45,41,49,35,28,31],S=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],m=0,f,c,o,r,a,n;f=1<<16,c=1<<24,o=f|c,r=1<<2,a=1<<10,n=r|a;var e=[o|a,m|m,f|m,o|n,o|r,f|n,m|r,f|m,m|a,o|a,o|n,m|a,c|n,o|r,c|m,m|r,m|n,c|a,c|a,f|a,f|a,o|m,o|m,c|n,f|r,c|r,c|r,f|r,m|m,m|n,f|n,c|m,f|m,o|n,m|r,o|m,o|a,c|m,c|m,m|a,o|r,f|m,f|a,c|r,m|a,m|r,c|n,f|n,o|n,f|r,o|m,c|n,c|r,m|n,f|n,o|a,m|n,c|a,c|a,m|m,f|r,f|a,m|m,o|r];f=1<<20,c=1<<31,o=f|c,r=1<<5,a=1<<15,n=r|a;var s=[o|n,c|a,m|a,f|n,f|m,m|r,o|r,c|n,c|r,o|n,o|a,c|m,c|a,f|m,m|r,o|r,f|a,f|r,c|n,m|m,c|m,m|a,f|n,o|m,f|r,c|r,m|m,f|a,m|n,o|a,o|m,m|n,m|m,f|n,o|r,f|m,c|n,o|m,o|a,m|a,o|m,c|a,m|r,o|n,f|n,m|r,m|a,c|m,m|n,o|a,f|m,c|r,f|r,c|n,c|r,f|r,f|a,m|m,c|a,m|n,c|m,o|r,o|n,f|a];f=1<<17,c=1<<27,o=f|c,r=1<<3,a=1<<9,n=r|a;var t=[m|n,o|a,m|m,o|r,c|a,m|m,f|n,c|a,f|r,c|r,c|r,f|m,o|n,f|r,o|m,m|n,c|m,m|r,o|a,m|a,f|a,o|m,o|r,f|n,c|n,f|a,f|m,c|n,m|r,o|n,m|a,c|m,o|a,c|m,f|r,m|n,f|m,o|a,c|a,m|m,m|a,f|r,o|n,c|a,c|r,m|a,m|m,o|r,c|n,f|m,c|m,o|n,m|r,f|n,f|a,c|r,o|m,c|n,m|n,o|m,f|n,m|r,o|r,f|a];f=1<<13,c=1<<23,o=f|c,r=1<<0,a=1<<7,n=r|a;var i=[o|r,f|n,f|n,m|a,o|a,c|n,c|r,f|r,m|m,o|m,o|m,o|n,m|n,m|m,c|a,c|r,m|r,f|m,c|m,o|r,m|a,c|m,f|r,f|a,c|n,m|r,f|a,c|a,f|m,o|a,o|n,m|n,c|a,c|r,o|m,o|n,m|n,m|m,m|m,o|m,f|a,c|a,c|n,m|r,o|r,f|n,f|n,m|a,o|n,m|n,m|r,f|m,c|r,f|r,o|a,c|n,f|r,f|a,c|m,o|r,m|a,c|m,f|m,o|a];f=1<<25,c=1<<30,o=f|c,r=1<<8,a=1<<19,n=r|a;var l=[m|r,f|n,f|a,o|r,m|a,m|r,c|m,f|a,c|n,m|a,f|r,c|n,o|r,o|a,m|n,c|m,f|m,c|a,c|a,m|m,c|r,o|n,o|n,f|r,o|a,c|r,m|m,o|m,f|n,f|m,o|m,m|n,m|a,o|r,m|r,f|m,c|m,f|a,o|r,c|n,f|r,c|m,o|a,f|n,c|n,m|r,f|m,o|a,o|n,m|n,o|m,o|n,f|a,m|m,c|a,o|m,m|n,f|r,c|r,m|a,m|m,c|a,f|n,c|r];f=1<<22,c=1<<29,o=f|c,r=1<<4,a=1<<14,n=r|a;var u=[c|r,o|m,m|a,o|n,o|m,m|r,o|n,f|m,c|a,f|n,f|m,c|r,f|r,c|a,c|m,m|n,m|m,f|r,c|n,m|a,f|a,c|n,m|r,o|r,o|r,m|m,f|n,o|a,m|n,f|a,o|a,c|m,c|a,m|r,o|r,f|a,o|n,f|m,m|n,c|r,f|m,c|a,c|m,m|n,c|r,o|n,f|a,o|m,f|n,o|a,m|m,o|r,m|r,m|a,o|m,f|n,m|a,f|r,c|n,m|m,o|a,c|m,f|r,c|n];f=1<<21,c=1<<26,o=f|c,r=1<<1,a=1<<11,n=r|a;var h=[f|m,o|r,c|n,m|m,m|a,c|n,f|n,o|a,o|n,f|m,m|m,c|r,m|r,c|m,o|r,m|n,c|a,f|n,f|r,c|a,c|r,o|m,o|a,f|r,o|m,m|a,m|n,o|n,f|a,m|r,c|m,f|a,c|m,f|a,f|m,c|n,c|n,o|r,o|r,m|r,f|r,c|m,c|a,f|m,o|a,m|n,f|n,o|a,m|n,c|r,o|n,o|m,f|a,m|m,m|r,o|n,m|m,f|n,o|m,m|a,c|r,c|a,m|a,f|r];f=1<<18,c=1<<28,o=f|c,r=1<<6,a=1<<12,n=r|a;var p=[c|n,m|a,f|m,o|n,c|m,c|n,m|r,c|m,f|r,o|m,o|n,f|a,o|a,f|n,m|a,m|r,o|m,c|r,c|a,m|n,f|a,f|r,o|r,o|a,m|n,m|m,m|m,o|r,c|r,c|a,f|n,f|m,f|n,f|m,o|a,m|a,m|r,o|r,m|a,f|n,c|a,m|r,c|r,o|m,o|r,c|m,f|m,c|n,m|m,o|n,f|r,c|r,o|m,c|a,c|n,m|m,o|n,f|a,f|a,m|n,m|n,f|r,c|m,o|a],g=function(){function A(y){O(this,A),this.keys=[];for(var E=[],C=[],w=[],b=0,I=56;b<56;++b,I-=8){I+=I<-5?65:I<-3?31:I<-1?63:I===27?35:0;var _=I&7;E[b]=(y[I>>>3]&1<<_)!==0?1:0}for(var L=0;L<16;++L){var D=L<<1,N=D+1;w[D]=w[N]=0;for(var R=28;R<59;R+=28)for(var B=R-28;B<R;++B){var M=B+S[L];C[B]=M<R?E[M]:E[M-28]}for(var H=0;H<24;++H)C[v[H]]!==0&&(w[D]|=1<<23-H),C[v[H+24]]!==0&&(w[N]|=1<<23-H)}for(var F=0,K=0,j=0;F<16;++F){var V=w[K++],z=w[K++];this.keys[j]=(V&16515072)<<6,this.keys[j]|=(V&4032)<<10,this.keys[j]|=(z&16515072)>>>10,this.keys[j]|=(z&4032)>>>6,++j,this.keys[j]=(V&258048)<<12,this.keys[j]|=(V&63)<<16,this.keys[j]|=(z&258048)>>>4,this.keys[j]|=z&63,++j}}return T(A,[{key:"enc8",value:function(E){var C=E.slice(),w=0,b,I,_;b=C[w++]<<24|C[w++]<<16|C[w++]<<8|C[w++],I=C[w++]<<24|C[w++]<<16|C[w++]<<8|C[w++],_=(b>>>4^I)&252645135,I^=_,b^=_<<4,_=(b>>>16^I)&65535,I^=_,b^=_<<16,_=(I>>>2^b)&858993459,b^=_,I^=_<<2,_=(I>>>8^b)&16711935,b^=_,I^=_<<8,I=I<<1|I>>>31&1,_=(b^I)&2863311530,b^=_,I^=_,b=b<<1|b>>>31&1;for(var L=0,D=0;L<8;++L){_=I<<28|I>>>4,_^=this.keys[D++];var N=h[_&63];N|=l[_>>>8&63],N|=t[_>>>16&63],N|=e[_>>>24&63],_=I^this.keys[D++],N|=p[_&63],N|=u[_>>>8&63],N|=i[_>>>16&63],N|=s[_>>>24&63],b^=N,_=b<<28|b>>>4,_^=this.keys[D++],N=h[_&63],N|=l[_>>>8&63],N|=t[_>>>16&63],N|=e[_>>>24&63],_=b^this.keys[D++],N|=p[_&63],N|=u[_>>>8&63],N|=i[_>>>16&63],N|=s[_>>>24&63],I^=N}for(I=I<<31|I>>>1,_=(b^I)&2863311530,b^=_,I^=_,b=b<<31|b>>>1,_=(b>>>8^I)&16711935,I^=_,b^=_<<8,_=(b>>>2^I)&858993459,I^=_,b^=_<<2,_=(I>>>16^b)&65535,b^=_,I^=_<<16,_=(I>>>4^b)&252645135,b^=_,I^=_<<4,_=[I,b],w=0;w<8;w++)C[w]=(_[w>>>2]>>>8*(3-w%4))%256,C[w]<0&&(C[w]+=256);return C}},{key:"encrypt",value:function(E){return this.enc8(E.slice(0,8)).concat(this.enc8(E.slice(8,16)))}}]),A}();P.default=g},iXHM:function(U,P){var d="";typeof navigator!="undefined"&&(d=navigator.platform||"");var O={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:d.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};U.exports=O},iXp4:function(U,P,d){var O=d("ItGF"),x=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function T(v){return O.browser.ie&&O.browser.version>=11?function(){var S=this.__clipPaths,m=this.style,f;if(S)for(var c=0;c<S.length;c++){var o=S[c],r=o&&o.shape,a=o&&o.type;if(r&&(a==="sector"&&r.startAngle===r.endAngle||a==="rect"&&(!r.width||!r.height))){for(var n=0;n<x.length;n++)x[n][2]=m[x[n][0]],m[x[n][0]]=x[n][1];f=!0;break}}if(v.apply(this,arguments),f)for(var n=0;n<x.length;n++)m[x[n][0]]=x[n][2]}:v}U.exports=T},iYpf:function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("ZLWo")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="FolderOpenOutlined";var c=v.forwardRef(f);P.default=c},ieMj:function(U,P,d){var O=d("OELB"),x=d("7aKB"),T=d("4NgU"),v=d("lE7J"),S=O.round,m=T.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(c,o){var r=this._extent;isNaN(c)||(r[0]=parseFloat(c)),isNaN(o)||(r[1]=parseFloat(o))},unionExtent:function(c){var o=this._extent;c[0]<o[0]&&(o[0]=c[0]),c[1]>o[1]&&(o[1]=c[1]),m.prototype.setExtent.call(this,o[0],o[1])},getInterval:function(){return this._interval},setInterval:function(c){this._interval=c,this._niceExtent=this._extent.slice(),this._intervalPrecision=v.getIntervalPrecision(c)},getTicks:function(c){var o=this._interval,r=this._extent,a=this._niceExtent,n=this._intervalPrecision,e=[];if(!o)return e;var s=1e4;r[0]<a[0]&&(c?e.push(S(a[0]-o,n)):e.push(r[0]));for(var t=a[0];t<=a[1]&&!(e.push(t),t=S(t+o,n),t===e[e.length-1]);)if(e.length>s)return[];var i=e.length?e[e.length-1]:a[1];return r[1]>i&&(c?e.push(S(i+o,n)):e.push(r[1])),e},getMinorTicks:function(c){for(var o=this.getTicks(!0),r=[],a=this.getExtent(),n=1;n<o.length;n++){for(var e=o[n],s=o[n-1],t=0,i=[],l=e-s,u=l/c;t<c-1;){var h=O.round(s+(t+1)*u);h>a[0]&&h<a[1]&&i.push(h),t++}r.push(i)}return r},getLabel:function(c,o){if(c==null)return"";var r=o&&o.precision;return r==null?r=O.getPrecisionSafe(c)||0:r==="auto"&&(r=this._intervalPrecision),c=S(c,r,!0),x.addCommas(c)},niceTicks:function(c,o,r){c=c||5;var a=this._extent,n=a[1]-a[0];if(!isFinite(n))return;n<0&&(n=-n,a.reverse());var e=v.intervalScaleNiceTicks(a,c,o,r);this._intervalPrecision=e.intervalPrecision,this._interval=e.interval,this._niceExtent=e.niceTickExtent},niceExtent:function(c){var o=this._extent;if(o[0]===o[1])if(o[0]!==0){var r=o[0];c.fixMax||(o[1]+=r/2),o[0]-=r/2}else o[1]=1;var a=o[1]-o[0];isFinite(a)||(o[0]=0,o[1]=1),this.niceTicks(c.splitNumber,c.minInterval,c.maxInterval);var n=this._interval;c.fixMin||(o[0]=S(Math.floor(o[0]/n)*n)),c.fixMax||(o[1]=S(Math.ceil(o[1]/n)*n))}});m.create=function(){return new m};var f=m;U.exports=f},j5sG:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.createSensor=void 0;var O=x(d("NohK"));function x(v){return v&&v.__esModule?v:{default:v}}var T=function(S){var m=void 0,f=[],c=(0,O.default)(function(){f.forEach(function(e){e(S)})}),o=function(){var s=new ResizeObserver(c);return s.observe(S),c(),s},r=function(s){m||(m=o()),f.indexOf(s)===-1&&f.push(s)},a=function(){m.disconnect(),f=[],m=void 0},n=function(s){var t=f.indexOf(s);t!==-1&&f.splice(t,1),f.length===0&&m&&a()};return{element:S,bind:r,destroy:a,unbind:n}};P.createSensor=T},jCoz:function(U,P,d){var O=d("bYtY"),x=d("4NgU"),T=d("OELB"),v=d("ieMj"),S=x.prototype,m=v.prototype,f=T.getPrecisionSafe,c=T.round,o=Math.floor,r=Math.ceil,a=Math.pow,n=Math.log,e=x.extend({type:"log",base:10,$constructor:function(){x.apply(this,arguments),this._originalScale=new v},getTicks:function(i){var l=this._originalScale,u=this._extent,h=l.getExtent();return O.map(m.getTicks.call(this,i),function(p){var g=T.round(a(this.base,p));return g=p===u[0]&&l.__fixMin?s(g,h[0]):g,g=p===u[1]&&l.__fixMax?s(g,h[1]):g,g},this)},getMinorTicks:m.getMinorTicks,getLabel:m.getLabel,scale:function(i){return i=S.scale.call(this,i),a(this.base,i)},setExtent:function(i,l){var u=this.base;i=n(i)/n(u),l=n(l)/n(u),m.setExtent.call(this,i,l)},getExtent:function(){var i=this.base,l=S.getExtent.call(this);l[0]=a(i,l[0]),l[1]=a(i,l[1]);var u=this._originalScale,h=u.getExtent();return u.__fixMin&&(l[0]=s(l[0],h[0])),u.__fixMax&&(l[1]=s(l[1],h[1])),l},unionExtent:function(i){this._originalScale.unionExtent(i);var l=this.base;i[0]=n(i[0])/n(l),i[1]=n(i[1])/n(l),S.unionExtent.call(this,i)},unionExtentFromData:function(i,l){this.unionExtent(i.getApproximateExtent(l))},niceTicks:function(i){i=i||10;var l=this._extent,u=l[1]-l[0];if(u===Infinity||u<=0)return;var h=T.quantity(u),p=i/u*h;for(p<=.5&&(h*=10);!isNaN(h)&&Math.abs(h)<1&&Math.abs(h)>0;)h*=10;var g=[T.round(r(l[0]/h)*h),T.round(o(l[1]/h)*h)];this._interval=h,this._niceExtent=g},niceExtent:function(i){m.niceExtent.call(this,i);var l=this._originalScale;l.__fixMin=i.fixMin,l.__fixMax=i.fixMax}});O.each(["contain","normalize"],function(i){e.prototype[i]=function(l){return l=n(l)/n(this.base),S[i].call(this,l)}}),e.create=function(){return new e};function s(i,l){return c(i,f(l))}var t=e;U.exports=t},jN4g:function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="CloseCircleFilled";var f=P.a=x.forwardRef(m)},jO45:function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="CheckCircleFilled";var f=P.a=x.forwardRef(m)},jO9C:function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.Iso97971={pad:function(T,v){T.concat(O.lib.WordArray.create([2147483648],1)),O.pad.ZeroPadding.pad(T,v)},unpad:function(T){O.pad.ZeroPadding.unpad(T),T.sigBytes--}},O.pad.Iso97971})},jTL6:function(U,P,d){var O=d("y+Vt"),x=O.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(v,S){var m=S.cx,f=S.cy,c=Math.max(S.r,0),o=S.startAngle,r=S.endAngle,a=S.clockwise,n=Math.cos(o),e=Math.sin(o);v.moveTo(n*c+m,e*c+f),v.arc(m,f,c,o,r,!a)}});U.exports=x},je13:function(U,P,d){var O=d("5nXd"),x=d("gRFJ"),T=[d("uQRt")];U.exports=O.createStore(x,T)},jett:function(U,P,d){var O=d("ProS");d("VSLf"),d("oBaM"),d("FGaS");var x=d("mOdp"),T=d("f5Yq"),v=d("hw6D"),S=d("0/Rx"),m=d("eJH7");O.registerVisual(x("radar")),O.registerVisual(T("radar","circle")),O.registerLayout(v),O.registerProcessor(S("radar")),O.registerPreprocessor(m)},jhfD:function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="ArrowLeftOutlined";var f=P.a=x.forwardRef(m)},jkPA:function(U,P,d){var O=d("bYtY"),x=O.createHashMap,T=O.isObject,v=O.map;function S(r){this.categories=r.categories||[],this._needCollect=r.needCollect,this._deduplication=r.deduplication,this._map}S.createByAxisModel=function(r){var a=r.option,n=a.data,e=n&&v(n,c);return new S({categories:e,needCollect:!e,deduplication:a.dedplication!==!1})};var m=S.prototype;m.getOrdinal=function(r){return f(this).get(r)},m.parseAndCollect=function(r){var a,n=this._needCollect;if(typeof r!="string"&&!n)return r;if(n&&!this._deduplication)return a=this.categories.length,this.categories[a]=r,a;var e=f(this);return a=e.get(r),a==null&&(n?(a=this.categories.length,this.categories[a]=r,e.set(r,a)):a=NaN),a};function f(r){return r._map||(r._map=x(r.categories))}function c(r){return T(r)&&r.value!=null?r.value:r+""}var o=S;U.exports=o},jndi:function(U,P,d){var O=d("bYtY"),x=d("Qe9p"),T=d("YXkt"),v=d("OELB"),S=d("IwbS"),m=d("kj2x"),f=d("iPDy"),c=function(t,i,l,u){var h=m.dataTransform(t,u[0]),p=m.dataTransform(t,u[1]),g=O.retrieve,A=h.coord,y=p.coord;A[0]=g(A[0],-Infinity),A[1]=g(A[1],-Infinity),y[0]=g(y[0],Infinity),y[1]=g(y[1],Infinity);var E=O.mergeAll([{},h,p]);return E.coord=[h.coord,p.coord],E.x0=h.x,E.y0=h.y,E.x1=p.x,E.y1=p.y,E};function o(t){return!isNaN(t)&&!isFinite(t)}function r(t,i,l,u){var h=1-t;return o(i[h])&&o(l[h])}function a(t,i){var l=i.coord[0],u=i.coord[1];return t.type==="cartesian2d"&&(l&&u&&(r(1,l,u,t)||r(0,l,u,t)))?!0:m.dataFilter(t,{coord:l,x:i.x0,y:i.y0})||m.dataFilter(t,{coord:u,x:i.x1,y:i.y1})}function n(t,i,l,u,h){var p=u.coordinateSystem,g=t.getItemModel(i),A,y=v.parsePercent(g.get(l[0]),h.getWidth()),E=v.parsePercent(g.get(l[1]),h.getHeight());if(!isNaN(y)&&!isNaN(E))A=[y,E];else{if(u.getMarkerPosition)A=u.getMarkerPosition(t.getValues(l,i));else{var C=t.get(l[0],i),w=t.get(l[1],i),b=[C,w];p.clampData&&p.clampData(b,b),A=p.dataToPoint(b,!0)}if(p.type==="cartesian2d"){var I=p.getAxis("x"),_=p.getAxis("y"),C=t.get(l[0],i),w=t.get(l[1],i);o(C)?A[0]=I.toGlobalCoord(I.getExtent()[l[0]==="x0"?0:1]):o(w)&&(A[1]=_.toGlobalCoord(_.getExtent()[l[1]==="y0"?0:1]))}isNaN(y)||(A[0]=y),isNaN(E)||(A[1]=E)}return A}var e=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];f.extend({type:"markArea",updateTransform:function(t,i,l){i.eachSeries(function(u){var h=u.markAreaModel;if(h){var p=h.getData();p.each(function(g){var A=O.map(e,function(E){return n(p,g,E,u,l)});p.setItemLayout(g,A);var y=p.getItemGraphicEl(g);y.setShape("points",A)})}},this)},renderSeries:function(t,i,l,u){var h=t.coordinateSystem,p=t.id,g=t.getData(),A=this.markerGroupMap,y=A.get(p)||A.set(p,{group:new S.Group});this.group.add(y.group),y.__keep=!0;var E=s(h,t,i);i.setData(E),E.each(function(C){E.setItemLayout(C,O.map(e,function(w){return n(E,C,w,t,u)})),E.setItemVisual(C,{color:g.getVisual("color")})}),E.diff(y.__data).add(function(C){var w=new S.Polygon({shape:{points:E.getItemLayout(C)}});E.setItemGraphicEl(C,w),y.group.add(w)}).update(function(C,w){var b=y.__data.getItemGraphicEl(w);S.updateProps(b,{shape:{points:E.getItemLayout(C)}},i,C),y.group.add(b),E.setItemGraphicEl(C,b)}).remove(function(C){var w=y.__data.getItemGraphicEl(C);y.group.remove(w)}).execute(),E.eachItemGraphicEl(function(C,w){var b=E.getItemModel(w),I=b.getModel("label"),_=b.getModel("emphasis.label"),L=E.getItemVisual(w,"color");C.useStyle(O.defaults(b.getModel("itemStyle").getItemStyle(),{fill:x.modifyAlpha(L,.4),stroke:L})),C.hoverStyle=b.getModel("emphasis.itemStyle").getItemStyle(),S.setLabelStyle(C.style,C.hoverStyle,I,_,{labelFetcher:i,labelDataIndex:w,defaultText:E.getName(w)||"",isRectText:!0,autoColor:L}),S.setHoverStyle(C,{}),C.dataModel=i}),y.__data=E,y.group.silent=i.get("silent")||t.get("silent")}});function s(t,i,l){var u,h,p=["x0","y0","x1","y1"];t?(u=O.map(t&&t.dimensions,function(y){var E=i.getData(),C=E.getDimensionInfo(E.mapDimension(y))||{};return O.defaults({name:y},C)}),h=new T(O.map(p,function(y,E){return{name:y,type:u[E%2].type}}),l)):(u=[{name:"value",type:"float"}],h=new T(u,l));var g=O.map(l.get("data"),O.curry(c,i,t,l));t&&(g=O.filter(g,O.curry(a,t)));var A=t?function(y,E,C,w){return y.coord[Math.floor(w/2)][w%2]}:function(y){return y.value};return h.initData(g,null,A),h.hasItemOption=!0,h}},"jsU+":function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("IUWy"),v=O.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){v.superApply(this,"optionUpdated",arguments),x.each(this.option.feature,function(m,f){var c=T.get(f);c&&x.merge(m,c.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1}}}),S=v;U.exports=S},jtI2:function(U,P,d){d("SMc4");var O=d("bLfw"),x=O.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});U.exports=x},juDX:function(U,P,d){d("P47w");var O=d("aX58"),x=O.registerPainter,T=d("3CBa");x("svg",T)},k5C7:function(U,P,d){d("0JAE"),d("g7p0"),d("7mYs")},k9D9:function(U,P){var d="original",O="arrayRows",x="objectRows",T="keyedColumns",v="unknown",S="typedArray",m="column",f="row";P.SOURCE_FORMAT_ORIGINAL=d,P.SOURCE_FORMAT_ARRAY_ROWS=O,P.SOURCE_FORMAT_OBJECT_ROWS=x,P.SOURCE_FORMAT_KEYED_COLUMNS=T,P.SOURCE_FORMAT_UNKNOWN=v,P.SOURCE_FORMAT_TYPED_ARRAY=S,P.SERIES_LAYOUT_BY_COLUMN=m,P.SERIES_LAYOUT_BY_ROW=f},kDyi:function(U,P){function d(O){var x=O.findComponents({mainType:"legend"});x&&x.length&&O.filterSeries(function(T){for(var v=0;v<x.length;v++)if(!x[v].isSelected(T.name))return!1;return!0})}U.exports=d},kGiB:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("ABKa"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},kMLO:function(U,P,d){var O=d("XxSj"),x=d("Qe9p"),T=d("bYtY"),v=T.isArray,S="itemStyle",m={seriesType:"treemap",reset:function(t,i,l,u){var h=t.getData().tree,p=h.root,g=t.getModel(S);if(p.isRemoved())return;var A=T.map(h.levelModels,function(y){return y?y.get(S):null});f(p,{},A,g,t.getViewRoot().getAncestors(),t)}};function f(t,i,l,u,h,p){var g=t.getModel(),A=t.getLayout();if(!A||A.invisible||!A.isInView)return;var y=t.getModel(S),E=l[t.depth],C=c(y,i,E,u),w=y.get("borderColor"),b=y.get("borderColorSaturation"),I;b!=null&&(I=o(C,t),w=r(b,I)),t.setVisual("borderColor",w);var _=t.viewChildren;if(!_||!_.length)I=o(C,t),t.setVisual("color",I);else{var L=n(t,g,A,y,C,_);T.each(_,function(D,N){if(D.depth>=h.length||D===h[D.depth]){var R=s(g,C,D,N,L,p);f(D,R,l,u,h,p)}})}}function c(t,i,l,u){var h=T.extend({},i);return T.each(["color","colorAlpha","colorSaturation"],function(p){var g=t.get(p,!0);g==null&&l&&(g=l[p]),g==null&&(g=i[p]),g==null&&(g=u.get(p)),g!=null&&(h[p]=g)}),h}function o(t){var i=a(t,"color");if(i){var l=a(t,"colorAlpha"),u=a(t,"colorSaturation");return u&&(i=x.modifyHSL(i,null,null,u)),l&&(i=x.modifyAlpha(i,l)),i}}function r(t,i){return i!=null?x.modifyHSL(i,null,null,t):null}function a(t,i){var l=t[i];if(l!=null&&l!=="none")return l}function n(t,i,l,u,h,p){if(!p||!p.length)return;var g=e(i,"color")||h.color!=null&&h.color!=="none"&&(e(i,"colorAlpha")||e(i,"colorSaturation"));if(!g)return;var A=i.get("visualMin"),y=i.get("visualMax"),E=l.dataExtent.slice();A!=null&&A<E[0]&&(E[0]=A),y!=null&&y>E[1]&&(E[1]=y);var C=i.get("colorMappingBy"),w={type:g.name,dataExtent:E,visual:g.range};w.type==="color"&&(C==="index"||C==="id")?(w.mappingMethod="category",w.loop=!0):w.mappingMethod="linear";var b=new O(w);return b.__drColorMappingBy=C,b}function e(t,i){var l=t.get(i);return v(l)&&l.length?{name:i,range:l}:null}function s(t,i,l,u,h,p){var g=T.extend({},i);if(h){var A=h.type,y=A==="color"&&h.__drColorMappingBy,E=y==="index"?u:y==="id"?p.mapIdToIndex(l.getId()):l.getValue(t.get("visualDimension"));g[A]=h.mapValueToVisual(E)}return g}U.exports=m},"kVK+":function(U,P){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */P.read=function(d,O,x,T,v){var S,m,f=v*8-T-1,c=(1<<f)-1,o=c>>1,r=-7,a=x?v-1:0,n=x?-1:1,e=d[O+a];for(a+=n,S=e&(1<<-r)-1,e>>=-r,r+=f;r>0;S=S*256+d[O+a],a+=n,r-=8);for(m=S&(1<<-r)-1,S>>=-r,r+=T;r>0;m=m*256+d[O+a],a+=n,r-=8);if(S===0)S=1-o;else{if(S===c)return m?NaN:(e?-1:1)*Infinity;m=m+Math.pow(2,T),S=S-o}return(e?-1:1)*m*Math.pow(2,S-T)},P.write=function(d,O,x,T,v,S){var m,f,c,o=S*8-v-1,r=(1<<o)-1,a=r>>1,n=v===23?Math.pow(2,-24)-Math.pow(2,-77):0,e=T?0:S-1,s=T?1:-1,t=O<0||O===0&&1/O<0?1:0;for(O=Math.abs(O),isNaN(O)||O===Infinity?(f=isNaN(O)?1:0,m=r):(m=Math.floor(Math.log(O)/Math.LN2),O*(c=Math.pow(2,-m))<1&&(m--,c*=2),m+a>=1?O+=n/c:O+=n*Math.pow(2,1-a),O*c>=2&&(m++,c/=2),m+a>=r?(f=0,m=r):m+a>=1?(f=(O*c-1)*Math.pow(2,v),m=m+a):(f=O*Math.pow(2,a-1)*Math.pow(2,v),m=0));v>=8;d[x+e]=f&255,e+=s,f/=256,v-=8);for(m=m<<v|f,o+=v;o>0;d[x+e]=m&255,e+=s,m/=256,o-=8);d[x+e-s]|=t*128}},kj2x:function(U,P,d){var O=d("bYtY"),x=d("OELB"),T=d("7hqr"),v=T.isDimensionStacked,S=O.indexOf;function m(l){return!(isNaN(parseFloat(l.x))&&isNaN(parseFloat(l.y)))}function f(l){return!isNaN(parseFloat(l.x))&&!isNaN(parseFloat(l.y))}function c(l,u,h,p,g,A){var y=[],E=v(u,p),C=E?u.getCalculationInfo("stackResultDimension"):p,w=i(u,C,l),b=u.indicesOfNearest(C,w)[0];y[g]=u.get(h,b),y[A]=u.get(C,b);var I=u.get(p,b),_=x.getPrecision(u.get(p,b));return _=Math.min(_,20),_>=0&&(y[A]=+y[A].toFixed(_)),[y,I]}var o=O.curry,r={min:o(c,"min"),max:o(c,"max"),average:o(c,"average")};function a(l,u){var h=l.getData(),p=l.coordinateSystem;if(u&&!f(u)&&!O.isArray(u.coord)&&p){var g=p.dimensions,A=n(u,h,p,l);if(u=O.clone(u),u.type&&r[u.type]&&A.baseAxis&&A.valueAxis){var y=S(g,A.baseAxis.dim),E=S(g,A.valueAxis.dim),C=r[u.type](h,A.baseDataDim,A.valueDataDim,y,E);u.coord=C[0],u.value=C[1]}else{for(var w=[u.xAxis!=null?u.xAxis:u.radiusAxis,u.yAxis!=null?u.yAxis:u.angleAxis],b=0;b<2;b++)r[w[b]]&&(w[b]=i(h,h.mapDimension(g[b]),w[b]));u.coord=w}}return u}function n(l,u,h,p){var g={};return l.valueIndex!=null||l.valueDim!=null?(g.valueDataDim=l.valueIndex!=null?u.getDimension(l.valueIndex):l.valueDim,g.valueAxis=h.getAxis(e(p,g.valueDataDim)),g.baseAxis=h.getOtherAxis(g.valueAxis),g.baseDataDim=u.mapDimension(g.baseAxis.dim)):(g.baseAxis=p.getBaseAxis(),g.valueAxis=h.getOtherAxis(g.baseAxis),g.baseDataDim=u.mapDimension(g.baseAxis.dim),g.valueDataDim=u.mapDimension(g.valueAxis.dim)),g}function e(l,u){var h=l.getData(),p=h.dimensions;u=h.getDimension(u);for(var g=0;g<p.length;g++){var A=h.getDimensionInfo(p[g]);if(A.name===u)return A.coordDim}}function s(l,u){return l&&l.containData&&u.coord&&!m(u)?l.containData(u.coord):!0}function t(l,u,h,p){return p<2?l.coord&&l.coord[p]:l.value}function i(l,u,h){if(h==="average"){var p=0,g=0;return l.each(u,function(A,y){isNaN(A)||(p+=A,g++)}),p/g}else return h==="median"?l.getMedian(u):l.getDataExtent(u,!0)[h==="max"?1:0]}P.dataTransform=a,P.getAxisInfo=n,P.dataFilter=s,P.dimValueGetter=t,P.numCalculate=i},knOB:function(U,P,d){var O=d("bYtY"),x=d("hM6l");function T(S,m){x.call(this,"radius",S,m),this.type="category"}T.prototype={constructor:T,pointToData:function(S,m){return this.polar.pointToData(S,m)[this.dim==="radius"?0:1]},dataToRadius:x.prototype.dataToCoord,radiusToData:x.prototype.coordToData},O.inherits(T,x);var v=T;U.exports=v},ko1b:function(U,P,d){var O=d("bYtY"),x=d("T4UG"),T=d("Bsck"),v=d("Qxkt"),S=d("7aKB"),m=S.encodeHTML,f=S.addCommas,c=d("VaxA"),o=c.wrapTreePathInfo,r=x.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(e,s){var t={name:e.name,children:e.data};a(t);var i=e.levels||[];i=e.levels=n(i,s);var l=O.map(i||[],function(p){return new v(p,this,s)},this),u=T.createTree(t,this,null,h);function h(p){p.wrapMethod("getItemModel",function(g,A){var y=u.getNodeByDataIndex(A),E=l[y.depth];return E&&(g.parentModel=E),g})}return u.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var s=this.getData(),t=this.getRawValue(e),i=O.isArray(t)?f(t[0]):f(t),l=s.getName(e);return m(l+": "+i)},getDataParams:function(e){var s=x.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(e);return s.treePathInfo=o(t,this),s},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},O.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var s=this._idIndexMap;s||(s=this._idIndexMap=O.createHashMap(),this._idIndexMapCount=0);var t=s.get(e);return t==null&&s.set(e,t=this._idIndexMapCount++),t},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var s=this.getRawData().tree.root;(!e||e!==s&&!s.contains(e))&&(this._viewRoot=s)}});function a(e){var s=0;O.each(e.children,function(i){a(i);var l=i.value;O.isArray(l)&&(l=l[0]),s+=l});var t=e.value;O.isArray(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=s),t<0&&(t=0),O.isArray(e.value)?e.value[0]=t:e.value=t}function n(e,s){var t=s.get("color");if(!t)return;e=e||[];var i;if(O.each(e,function(u){var h=new v(u),p=h.get("color");(h.get("itemStyle.color")||p&&p!=="none")&&(i=!0)}),!i){var l=e[0]||(e[0]={});l.color=t.slice()}return e}U.exports=r},kzFp:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O=P.pick=function(T,v){var S={};return v.forEach(function(m){S[m]=T[m]}),S}},kzvK:function(U,P,d){var O=d("sS/r"),x=O.extend({type:"timeline"});U.exports=x},"l+S1":function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="SearchOutlined";var f=P.a=x.forwardRef(m)},lE7J:function(U,P,d){var O=d("OELB"),x=O.round;function T(f,c,o,r){var a={},n=f[1]-f[0],e=a.interval=O.nice(n/c,!0);o!=null&&e<o&&(e=a.interval=o),r!=null&&e>r&&(e=a.interval=r);var s=a.intervalPrecision=v(e),t=a.niceTickExtent=[x(Math.ceil(f[0]/e)*e,s),x(Math.floor(f[1]/e)*e,s)];return m(t,f),a}function v(f){return O.getPrecisionSafe(f)+2}function S(f,c,o){f[c]=Math.max(Math.min(f[c],o[1]),o[0])}function m(f,c){!isFinite(f[0])&&(f[0]=c[0]),!isFinite(f[1])&&(f[1]=c[1]),S(f,0,c),S(f,1,c),f[0]>f[1]&&(f[0]=f[1])}P.intervalScaleNiceTicks=T,P.getIntervalPrecision=v,P.fixExtent=m},lELe:function(U,P,d){var O=d("bYtY");function x(T){var v=[];O.each(T.series,function(S){S&&S.type==="map"&&(v.push(S),S.map=S.map||S.mapType,O.defaults(S,S.mapLocation))})}U.exports=x},lLGD:function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("nVfU"),v=T.layout,S=T.largeLayout;d("Wqna"),d("F7hV"),d("Z8zF"),d("Ae16"),O.registerLayout(O.PRIORITY.VISUAL.LAYOUT,x.curry(v,"bar")),O.registerLayout(O.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,S),O.registerVisual({seriesType:"bar",reset:function(m){m.getData().setVisual("legendSymbol","roundRect")}})},lNSK:function(U,P,d){"use strict";function O(ae){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(jt){return typeof jt}:O=function(jt){return jt&&typeof Symbol=="function"&&jt.constructor===Symbol&&jt!==Symbol.prototype?"symbol":typeof jt},O(ae)}Object.defineProperty(P,"__esModule",{value:!0}),P.deflateInit=Be,P.deflateInit2=Nt,P.deflateReset=Tt,P.deflateResetKeep=Ot,P.deflateSetHeader=Ct,P.deflate=$,P.deflateEnd=Z,P.deflateSetDictionary=Re,P.deflateInfo=P.Z_DEFLATED=P.Z_UNKNOWN=P.Z_DEFAULT_STRATEGY=P.Z_FIXED=P.Z_RLE=P.Z_HUFFMAN_ONLY=P.Z_FILTERED=P.Z_DEFAULT_COMPRESSION=P.Z_BUF_ERROR=P.Z_DATA_ERROR=P.Z_STREAM_ERROR=P.Z_STREAM_END=P.Z_OK=P.Z_BLOCK=P.Z_FINISH=P.Z_FULL_FLUSH=P.Z_PARTIAL_FLUSH=P.Z_NO_FLUSH=void 0;var x=o(d("6BzB")),T=o(d("c5fP")),v=f(d("xlC8")),S=f(d("QV2g")),m=f(d("xSIq"));function f(ae){return ae&&ae.__esModule?ae:{default:ae}}function c(){if(typeof WeakMap!="function")return null;var ae=new WeakMap;return c=function(){return ae},ae}function o(ae){if(ae&&ae.__esModule)return ae;if(ae===null||O(ae)!=="object"&&typeof ae!="function")return{default:ae};var gt=c();if(gt&>.has(ae))return gt.get(ae);var jt={},ut=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var rr in ae)if(Object.prototype.hasOwnProperty.call(ae,rr)){var pr=ut?Object.getOwnPropertyDescriptor(ae,rr):null;pr&&(pr.get||pr.set)?Object.defineProperty(jt,rr,pr):jt[rr]=ae[rr]}return jt.default=ae,gt&>.set(ae,jt),jt}var r=0;P.Z_NO_FLUSH=r;var a=1;P.Z_PARTIAL_FLUSH=a;var n=3;P.Z_FULL_FLUSH=n;var e=4;P.Z_FINISH=e;var s=5;P.Z_BLOCK=s;var t=0;P.Z_OK=t;var i=1;P.Z_STREAM_END=i;var l=-2;P.Z_STREAM_ERROR=l;var u=-3;P.Z_DATA_ERROR=u;var h=-5;P.Z_BUF_ERROR=h;var p=-1;P.Z_DEFAULT_COMPRESSION=p;var g=1;P.Z_FILTERED=g;var A=2;P.Z_HUFFMAN_ONLY=A;var y=3;P.Z_RLE=y;var E=4;P.Z_FIXED=E;var C=0;P.Z_DEFAULT_STRATEGY=C;var w=2;P.Z_UNKNOWN=w;var b=8;P.Z_DEFLATED=b;var I=9,_=15,L=8,D=29,N=256,R=N+1+D,B=30,M=19,H=2*R+1,F=15,K=3,j=258,V=j+K+1,z=32,Y=42,ee=69,fe=73,ie=91,we=103,Ce=113,Le=666,He=1,ce=2,Pe=3,Q=4,me=3;function Je(ae,gt){return ae.msg=m.default[gt],gt}function re(ae){return(ae<<1)-(ae>4?9:0)}function G(ae){for(var gt=ae.length;--gt>=0;)ae[gt]=0}function X(ae){var gt=ae.state,jt=gt.pending;if(jt>ae.avail_out&&(jt=ae.avail_out),jt===0)return;x.arraySet(ae.output,gt.pending_buf,gt.pending_out,jt,ae.next_out),ae.next_out+=jt,gt.pending_out+=jt,ae.total_out+=jt,ae.avail_out-=jt,gt.pending-=jt,gt.pending===0&&(gt.pending_out=0)}function J(ae,gt){T._tr_flush_block(ae,ae.block_start>=0?ae.block_start:-1,ae.strstart-ae.block_start,gt),ae.block_start=ae.strstart,X(ae.strm)}function Ae(ae,gt){ae.pending_buf[ae.pending++]=gt}function he(ae,gt){ae.pending_buf[ae.pending++]=gt>>>8&255,ae.pending_buf[ae.pending++]=gt&255}function Me(ae,gt,jt,ut){var rr=ae.avail_in;return rr>ut&&(rr=ut),rr===0?0:(ae.avail_in-=rr,x.arraySet(gt,ae.input,ae.next_in,rr,jt),ae.state.wrap===1?ae.adler=(0,v.default)(ae.adler,gt,rr,jt):ae.state.wrap===2&&(ae.adler=(0,S.default)(ae.adler,gt,rr,jt)),ae.next_in+=rr,ae.total_in+=rr,rr)}function Ie(ae,gt){var jt=ae.max_chain_length,ut=ae.strstart,rr,pr,nn=ae.prev_length,mr=ae.nice_match,vr=ae.strstart>ae.w_size-V?ae.strstart-(ae.w_size-V):0,$t=ae.window,Xt=ae.w_mask,ft=ae.prev,Ur=ae.strstart+j,yn=$t[ut+nn-1],Dn=$t[ut+nn];ae.prev_length>=ae.good_match&&(jt>>=2),mr>ae.lookahead&&(mr=ae.lookahead);do{if(rr=gt,$t[rr+nn]!==Dn||$t[rr+nn-1]!==yn||$t[rr]!==$t[ut]||$t[++rr]!==$t[ut+1])continue;ut+=2,rr++;do;while($t[++ut]===$t[++rr]&&$t[++ut]===$t[++rr]&&$t[++ut]===$t[++rr]&&$t[++ut]===$t[++rr]&&$t[++ut]===$t[++rr]&&$t[++ut]===$t[++rr]&&$t[++ut]===$t[++rr]&&$t[++ut]===$t[++rr]&&ut<Ur);if(pr=j-(Ur-ut),ut=Ur-j,pr>nn){if(ae.match_start=gt,nn=pr,pr>=mr)break;yn=$t[ut+nn-1],Dn=$t[ut+nn]}}while((gt=ft[gt&Xt])>vr&&--jt!==0);return nn<=ae.lookahead?nn:ae.lookahead}function oe(ae){var gt=ae.w_size,jt,ut,rr,pr,nn;do{if(pr=ae.window_size-ae.lookahead-ae.strstart,ae.strstart>=gt+(gt-V)){x.arraySet(ae.window,ae.window,gt,gt,0),ae.match_start-=gt,ae.strstart-=gt,ae.block_start-=gt,ut=ae.hash_size,jt=ut;do rr=ae.head[--jt],ae.head[jt]=rr>=gt?rr-gt:0;while(--ut);ut=gt,jt=ut;do rr=ae.prev[--jt],ae.prev[jt]=rr>=gt?rr-gt:0;while(--ut);pr+=gt}if(ae.strm.avail_in===0)break;if(ut=Me(ae.strm,ae.window,ae.strstart+ae.lookahead,pr),ae.lookahead+=ut,ae.lookahead+ae.insert>=K)for(nn=ae.strstart-ae.insert,ae.ins_h=ae.window[nn],ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[nn+1])&ae.hash_mask;ae.insert&&!(ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[nn+K-1])&ae.hash_mask,ae.prev[nn&ae.w_mask]=ae.head[ae.ins_h],ae.head[ae.ins_h]=nn,nn++,ae.insert--,ae.lookahead+ae.insert<K););}while(ae.lookahead<V&&ae.strm.avail_in!==0)}function pe(ae,gt){var jt=65535;for(jt>ae.pending_buf_size-5&&(jt=ae.pending_buf_size-5);;){if(ae.lookahead<=1){if(oe(ae),ae.lookahead===0&>===r)return He;if(ae.lookahead===0)break}ae.strstart+=ae.lookahead,ae.lookahead=0;var ut=ae.block_start+jt;if((ae.strstart===0||ae.strstart>=ut)&&(ae.lookahead=ae.strstart-ut,ae.strstart=ut,J(ae,!1),ae.strm.avail_out===0))return He;if(ae.strstart-ae.block_start>=ae.w_size-V&&(J(ae,!1),ae.strm.avail_out===0))return He}return ae.insert=0,gt===e?(J(ae,!0),ae.strm.avail_out===0?Pe:Q):(ae.strstart>ae.block_start&&(J(ae,!1),ae.strm.avail_out===0),He)}function Oe(ae,gt){for(var jt,ut;;){if(ae.lookahead<V){if(oe(ae),ae.lookahead<V&>===r)return He;if(ae.lookahead===0)break}if(jt=0,ae.lookahead>=K&&(ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[ae.strstart+K-1])&ae.hash_mask,jt=ae.prev[ae.strstart&ae.w_mask]=ae.head[ae.ins_h],ae.head[ae.ins_h]=ae.strstart),jt!==0&&ae.strstart-jt<=ae.w_size-V&&(ae.match_length=Ie(ae,jt)),ae.match_length>=K)if(ut=T._tr_tally(ae,ae.strstart-ae.match_start,ae.match_length-K),ae.lookahead-=ae.match_length,ae.match_length<=ae.max_lazy_match&&ae.lookahead>=K){ae.match_length--;do ae.strstart++,ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[ae.strstart+K-1])&ae.hash_mask,jt=ae.prev[ae.strstart&ae.w_mask]=ae.head[ae.ins_h],ae.head[ae.ins_h]=ae.strstart;while(--ae.match_length!==0);ae.strstart++}else ae.strstart+=ae.match_length,ae.match_length=0,ae.ins_h=ae.window[ae.strstart],ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[ae.strstart+1])&ae.hash_mask;else ut=T._tr_tally(ae,0,ae.window[ae.strstart]),ae.lookahead--,ae.strstart++;if(ut&&(J(ae,!1),ae.strm.avail_out===0))return He}return ae.insert=ae.strstart<K-1?ae.strstart:K-1,gt===e?(J(ae,!0),ae.strm.avail_out===0?Pe:Q):ae.last_lit&&(J(ae,!1),ae.strm.avail_out===0)?He:ce}function Ye(ae,gt){for(var jt,ut,rr;;){if(ae.lookahead<V){if(oe(ae),ae.lookahead<V&>===r)return He;if(ae.lookahead===0)break}if(jt=0,ae.lookahead>=K&&(ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[ae.strstart+K-1])&ae.hash_mask,jt=ae.prev[ae.strstart&ae.w_mask]=ae.head[ae.ins_h],ae.head[ae.ins_h]=ae.strstart),ae.prev_length=ae.match_length,ae.prev_match=ae.match_start,ae.match_length=K-1,jt!==0&&ae.prev_length<ae.max_lazy_match&&ae.strstart-jt<=ae.w_size-V&&(ae.match_length=Ie(ae,jt),ae.match_length<=5&&(ae.strategy===g||ae.match_length===K&&ae.strstart-ae.match_start>4096)&&(ae.match_length=K-1)),ae.prev_length>=K&&ae.match_length<=ae.prev_length){rr=ae.strstart+ae.lookahead-K,ut=T._tr_tally(ae,ae.strstart-1-ae.prev_match,ae.prev_length-K),ae.lookahead-=ae.prev_length-1,ae.prev_length-=2;do++ae.strstart<=rr&&(ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[ae.strstart+K-1])&ae.hash_mask,jt=ae.prev[ae.strstart&ae.w_mask]=ae.head[ae.ins_h],ae.head[ae.ins_h]=ae.strstart);while(--ae.prev_length!==0);if(ae.match_available=0,ae.match_length=K-1,ae.strstart++,ut&&(J(ae,!1),ae.strm.avail_out===0))return He}else if(ae.match_available){if(ut=T._tr_tally(ae,0,ae.window[ae.strstart-1]),ut&&J(ae,!1),ae.strstart++,ae.lookahead--,ae.strm.avail_out===0)return He}else ae.match_available=1,ae.strstart++,ae.lookahead--}return ae.match_available&&(ut=T._tr_tally(ae,0,ae.window[ae.strstart-1]),ae.match_available=0),ae.insert=ae.strstart<K-1?ae.strstart:K-1,gt===e?(J(ae,!0),ae.strm.avail_out===0?Pe:Q):ae.last_lit&&(J(ae,!1),ae.strm.avail_out===0)?He:ce}function it(ae,gt){for(var jt,ut,rr,pr,nn=ae.window;;){if(ae.lookahead<=j){if(oe(ae),ae.lookahead<=j&>===r)return He;if(ae.lookahead===0)break}if(ae.match_length=0,ae.lookahead>=K&&ae.strstart>0&&(rr=ae.strstart-1,ut=nn[rr],ut===nn[++rr]&&ut===nn[++rr]&&ut===nn[++rr])){pr=ae.strstart+j;do;while(ut===nn[++rr]&&ut===nn[++rr]&&ut===nn[++rr]&&ut===nn[++rr]&&ut===nn[++rr]&&ut===nn[++rr]&&ut===nn[++rr]&&ut===nn[++rr]&&rr<pr);ae.match_length=j-(pr-rr),ae.match_length>ae.lookahead&&(ae.match_length=ae.lookahead)}if(ae.match_length>=K?(jt=T._tr_tally(ae,1,ae.match_length-K),ae.lookahead-=ae.match_length,ae.strstart+=ae.match_length,ae.match_length=0):(jt=T._tr_tally(ae,0,ae.window[ae.strstart]),ae.lookahead--,ae.strstart++),jt&&(J(ae,!1),ae.strm.avail_out===0))return He}return ae.insert=0,gt===e?(J(ae,!0),ae.strm.avail_out===0?Pe:Q):ae.last_lit&&(J(ae,!1),ae.strm.avail_out===0)?He:ce}function et(ae,gt){for(var jt;;){if(ae.lookahead===0&&(oe(ae),ae.lookahead===0)){if(gt===r)return He;break}if(ae.match_length=0,jt=T._tr_tally(ae,0,ae.window[ae.strstart]),ae.lookahead--,ae.strstart++,jt&&(J(ae,!1),ae.strm.avail_out===0))return He}return ae.insert=0,gt===e?(J(ae,!0),ae.strm.avail_out===0?Pe:Q):ae.last_lit&&(J(ae,!1),ae.strm.avail_out===0)?He:ce}function Te(ae,gt,jt,ut,rr){this.good_length=ae,this.max_lazy=gt,this.nice_length=jt,this.max_chain=ut,this.func=rr}var tt;tt=[new Te(0,0,0,0,pe),new Te(4,4,8,4,Oe),new Te(4,5,16,8,Oe),new Te(4,6,32,32,Oe),new Te(4,4,16,16,Ye),new Te(8,16,32,32,Ye),new Te(8,16,128,128,Ye),new Te(8,32,128,256,Ye),new Te(32,128,258,1024,Ye),new Te(32,258,258,4096,Ye)];function ze(ae){ae.window_size=2*ae.w_size,G(ae.head),ae.max_lazy_match=tt[ae.level].max_lazy,ae.good_match=tt[ae.level].good_length,ae.nice_match=tt[ae.level].nice_length,ae.max_chain_length=tt[ae.level].max_chain,ae.strstart=0,ae.block_start=0,ae.lookahead=0,ae.insert=0,ae.match_length=ae.prev_length=K-1,ae.match_available=0,ae.ins_h=0}function dt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=b,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new x.Buf16(H*2),this.dyn_dtree=new x.Buf16((2*B+1)*2),this.bl_tree=new x.Buf16((2*M+1)*2),G(this.dyn_ltree),G(this.dyn_dtree),G(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new x.Buf16(F+1),this.heap=new x.Buf16(2*R+1),G(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new x.Buf16(2*R+1),G(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ot(ae){var gt;return!ae||!ae.state?Je(ae,l):(ae.total_in=ae.total_out=0,ae.data_type=w,gt=ae.state,gt.pending=0,gt.pending_out=0,gt.wrap<0&&(gt.wrap=-gt.wrap),gt.status=gt.wrap?Y:Ce,ae.adler=gt.wrap===2?0:1,gt.last_flush=r,T._tr_init(gt),t)}function Tt(ae){var gt=Ot(ae);return gt===t&&ze(ae.state),gt}function Ct(ae,gt){return!ae||!ae.state||ae.state.wrap!==2?l:(ae.state.gzhead=gt,t)}function Nt(ae,gt,jt,ut,rr,pr){if(!ae)return l;var nn=1;if(gt===p&&(gt=6),ut<0?(nn=0,ut=-ut):ut>15&&(nn=2,ut-=16),rr<1||rr>I||jt!==b||ut<8||ut>15||gt<0||gt>9||pr<0||pr>E)return Je(ae,l);ut===8&&(ut=9);var mr=new dt;return ae.state=mr,mr.strm=ae,mr.wrap=nn,mr.gzhead=null,mr.w_bits=ut,mr.w_size=1<<mr.w_bits,mr.w_mask=mr.w_size-1,mr.hash_bits=rr+7,mr.hash_size=1<<mr.hash_bits,mr.hash_mask=mr.hash_size-1,mr.hash_shift=~~((mr.hash_bits+K-1)/K),mr.window=new x.Buf8(mr.w_size*2),mr.head=new x.Buf16(mr.hash_size),mr.prev=new x.Buf16(mr.w_size),mr.lit_bufsize=1<<rr+6,mr.pending_buf_size=mr.lit_bufsize*4,mr.pending_buf=new x.Buf8(mr.pending_buf_size),mr.d_buf=1*mr.lit_bufsize,mr.l_buf=(1+2)*mr.lit_bufsize,mr.level=gt,mr.strategy=pr,mr.method=jt,Tt(ae)}function Be(ae,gt){return Nt(ae,gt,b,_,L,C)}function $(ae,gt){var jt,ut,rr,pr;if(!ae||!ae.state||gt>s||gt<0)return ae?Je(ae,l):l;if(ut=ae.state,!ae.output||!ae.input&&ae.avail_in!==0||ut.status===Le&>!==e)return Je(ae,ae.avail_out===0?h:l);if(ut.strm=ae,jt=ut.last_flush,ut.last_flush=gt,ut.status===Y)if(ut.wrap===2)ae.adler=0,Ae(ut,31),Ae(ut,139),Ae(ut,8),ut.gzhead?(Ae(ut,(ut.gzhead.text?1:0)+(ut.gzhead.hcrc?2:0)+(ut.gzhead.extra?4:0)+(ut.gzhead.name?8:0)+(ut.gzhead.comment?16:0)),Ae(ut,ut.gzhead.time&255),Ae(ut,ut.gzhead.time>>8&255),Ae(ut,ut.gzhead.time>>16&255),Ae(ut,ut.gzhead.time>>24&255),Ae(ut,ut.level===9?2:ut.strategy>=A||ut.level<2?4:0),Ae(ut,ut.gzhead.os&255),ut.gzhead.extra&&ut.gzhead.extra.length&&(Ae(ut,ut.gzhead.extra.length&255),Ae(ut,ut.gzhead.extra.length>>8&255)),ut.gzhead.hcrc&&(ae.adler=(0,S.default)(ae.adler,ut.pending_buf,ut.pending,0)),ut.gzindex=0,ut.status=ee):(Ae(ut,0),Ae(ut,0),Ae(ut,0),Ae(ut,0),Ae(ut,0),Ae(ut,ut.level===9?2:ut.strategy>=A||ut.level<2?4:0),Ae(ut,me),ut.status=Ce);else{var nn=b+(ut.w_bits-8<<4)<<8,mr=-1;ut.strategy>=A||ut.level<2?mr=0:ut.level<6?mr=1:ut.level===6?mr=2:mr=3,nn|=mr<<6,ut.strstart!==0&&(nn|=z),nn+=31-nn%31,ut.status=Ce,he(ut,nn),ut.strstart!==0&&(he(ut,ae.adler>>>16),he(ut,ae.adler&65535)),ae.adler=1}if(ut.status===ee)if(ut.gzhead.extra){for(rr=ut.pending;ut.gzindex<(ut.gzhead.extra.length&65535)&&!(ut.pending===ut.pending_buf_size&&(ut.gzhead.hcrc&&ut.pending>rr&&(ae.adler=(0,S.default)(ae.adler,ut.pending_buf,ut.pending-rr,rr)),X(ae),rr=ut.pending,ut.pending===ut.pending_buf_size));)Ae(ut,ut.gzhead.extra[ut.gzindex]&255),ut.gzindex++;ut.gzhead.hcrc&&ut.pending>rr&&(ae.adler=(0,S.default)(ae.adler,ut.pending_buf,ut.pending-rr,rr)),ut.gzindex===ut.gzhead.extra.length&&(ut.gzindex=0,ut.status=fe)}else ut.status=fe;if(ut.status===fe)if(ut.gzhead.name){rr=ut.pending;do{if(ut.pending===ut.pending_buf_size&&(ut.gzhead.hcrc&&ut.pending>rr&&(ae.adler=(0,S.default)(ae.adler,ut.pending_buf,ut.pending-rr,rr)),X(ae),rr=ut.pending,ut.pending===ut.pending_buf_size)){pr=1;break}ut.gzindex<ut.gzhead.name.length?pr=ut.gzhead.name.charCodeAt(ut.gzindex++)&255:pr=0,Ae(ut,pr)}while(pr!==0);ut.gzhead.hcrc&&ut.pending>rr&&(ae.adler=(0,S.default)(ae.adler,ut.pending_buf,ut.pending-rr,rr)),pr===0&&(ut.gzindex=0,ut.status=ie)}else ut.status=ie;if(ut.status===ie)if(ut.gzhead.comment){rr=ut.pending;do{if(ut.pending===ut.pending_buf_size&&(ut.gzhead.hcrc&&ut.pending>rr&&(ae.adler=(0,S.default)(ae.adler,ut.pending_buf,ut.pending-rr,rr)),X(ae),rr=ut.pending,ut.pending===ut.pending_buf_size)){pr=1;break}ut.gzindex<ut.gzhead.comment.length?pr=ut.gzhead.comment.charCodeAt(ut.gzindex++)&255:pr=0,Ae(ut,pr)}while(pr!==0);ut.gzhead.hcrc&&ut.pending>rr&&(ae.adler=(0,S.default)(ae.adler,ut.pending_buf,ut.pending-rr,rr)),pr===0&&(ut.status=we)}else ut.status=we;if(ut.status===we&&(ut.gzhead.hcrc?(ut.pending+2>ut.pending_buf_size&&X(ae),ut.pending+2<=ut.pending_buf_size&&(Ae(ut,ae.adler&255),Ae(ut,ae.adler>>8&255),ae.adler=0,ut.status=Ce)):ut.status=Ce),ut.pending!==0){if(X(ae),ae.avail_out===0)return ut.last_flush=-1,t}else if(ae.avail_in===0&&re(gt)<=re(jt)&>!==e)return Je(ae,h);if(ut.status===Le&&ae.avail_in!==0)return Je(ae,h);if(ae.avail_in!==0||ut.lookahead!==0||gt!==r&&ut.status!==Le){var vr=ut.strategy===A?et(ut,gt):ut.strategy===y?it(ut,gt):tt[ut.level].func(ut,gt);if((vr===Pe||vr===Q)&&(ut.status=Le),vr===He||vr===Pe)return ae.avail_out===0&&(ut.last_flush=-1),t;if(vr===ce&&(gt===a?T._tr_align(ut):gt!==s&&(T._tr_stored_block(ut,0,0,!1),gt===n&&(G(ut.head),ut.lookahead===0&&(ut.strstart=0,ut.block_start=0,ut.insert=0))),X(ae),ae.avail_out===0))return ut.last_flush=-1,t}return gt!==e?t:ut.wrap<=0?i:(ut.wrap===2?(Ae(ut,ae.adler&255),Ae(ut,ae.adler>>8&255),Ae(ut,ae.adler>>16&255),Ae(ut,ae.adler>>24&255),Ae(ut,ae.total_in&255),Ae(ut,ae.total_in>>8&255),Ae(ut,ae.total_in>>16&255),Ae(ut,ae.total_in>>24&255)):(he(ut,ae.adler>>>16),he(ut,ae.adler&65535)),X(ae),ut.wrap>0&&(ut.wrap=-ut.wrap),ut.pending!==0?t:i)}function Z(ae){var gt;return!ae||!ae.state?l:(gt=ae.state.status,gt!==Y&>!==ee&>!==fe&>!==ie&>!==we&>!==Ce&>!==Le?Je(ae,l):(ae.state=null,gt===Ce?Je(ae,u):t))}function Re(ae,gt){var jt=gt.length,ut,rr,pr,nn,mr,vr,$t,Xt;if(!ae||!ae.state)return l;if(ut=ae.state,nn=ut.wrap,nn===2||nn===1&&ut.status!==Y||ut.lookahead)return l;for(nn===1&&(ae.adler=(0,v.default)(ae.adler,gt,jt,0)),ut.wrap=0,jt>=ut.w_size&&(nn===0&&(G(ut.head),ut.strstart=0,ut.block_start=0,ut.insert=0),Xt=new x.Buf8(ut.w_size),x.arraySet(Xt,gt,jt-ut.w_size,ut.w_size,0),gt=Xt,jt=ut.w_size),mr=ae.avail_in,vr=ae.next_in,$t=ae.input,ae.avail_in=jt,ae.next_in=0,ae.input=gt,oe(ut);ut.lookahead>=K;){rr=ut.strstart,pr=ut.lookahead-(K-1);do ut.ins_h=(ut.ins_h<<ut.hash_shift^ut.window[rr+K-1])&ut.hash_mask,ut.prev[rr&ut.w_mask]=ut.head[ut.ins_h],ut.head[ut.ins_h]=rr,rr++;while(--pr);ut.strstart=rr,ut.lookahead=K-1,oe(ut)}return ut.strstart+=ut.lookahead,ut.block_start=ut.strstart,ut.insert=ut.lookahead,ut.lookahead=0,ut.match_length=ut.prev_length=K-1,ut.match_available=0,ae.next_in=vr,ae.input=$t,ae.avail_in=mr,ut.wrap=nn,t}var De="pako deflate (from Nodeca project)";P.deflateInfo=De},lOQZ:function(U,P,d){var O=d("QBsz"),x=d("U/Mo"),T=x.getSymbolSize,v=x.getNodeGlobalScale,S=Math.PI,m=[];function f(o,r){var a=o.coordinateSystem;if(a&&a.type!=="view")return;var n=a.getBoundingRect(),e=o.getData(),s=e.graph,t=n.width/2+n.x,i=n.height/2+n.y,l=Math.min(n.width,n.height)/2,u=e.count();if(e.setLayout({cx:t,cy:i}),!u)return;c[r](o,a,s,e,l,t,i,u),s.eachEdge(function(h){var p=h.getModel().get("lineStyle.curveness")||0,g=O.clone(h.node1.getLayout()),A=O.clone(h.node2.getLayout()),y,E=(g[0]+A[0])/2,C=(g[1]+A[1])/2;+p&&(p*=3,y=[t*p+E*(1-p),i*p+C*(1-p)]),h.setLayout([g,A,y])})}var c={value:function(o,r,a,n,e,s,t,i){var l=0,u=n.getSum("value"),h=Math.PI*2/(u||i);a.eachNode(function(p){var g=p.getValue("value"),A=h*(u?g:1)/2;l+=A,p.setLayout([e*Math.cos(l)+s,e*Math.sin(l)+t]),l+=A})},symbolSize:function(o,r,a,n,e,s,t,i){var l=0;m.length=i;var u=v(o);a.eachNode(function(g){var A=T(g);isNaN(A)&&(A=2),A<0&&(A=0),A*=u;var y=Math.asin(A/2/e);isNaN(y)&&(y=S/2),m[g.dataIndex]=y,l+=y*2});var h=(2*S-l)/i/2,p=0;a.eachNode(function(g){var A=h+m[g.dataIndex];p+=A,g.setLayout([e*Math.cos(p)+s,e*Math.sin(p)+t]),p+=A})}};P.circularLayout=f},lPiR:function(U,P,d){(function(O,x){U.exports=P=x(d("Ib8C"))})(this,function(O){return function(x){var T=O,v=T.lib,S=v.WordArray,m=v.Hasher,f=T.algo,c=[],o=[];(function(){function n(i){for(var l=x.sqrt(i),u=2;u<=l;u++)if(!(i%u))return!1;return!0}function e(i){return(i-(i|0))*4294967296|0}for(var s=2,t=0;t<64;)n(s)&&(t<8&&(c[t]=e(x.pow(s,1/2))),o[t]=e(x.pow(s,1/3)),t++),s++})();var r=[],a=f.SHA256=m.extend({_doReset:function(){this._hash=new S.init(c.slice(0))},_doProcessBlock:function(e,s){for(var t=this._hash.words,i=t[0],l=t[1],u=t[2],h=t[3],p=t[4],g=t[5],A=t[6],y=t[7],E=0;E<64;E++){if(E<16)r[E]=e[s+E]|0;else{var C=r[E-15],w=(C<<25|C>>>7)^(C<<14|C>>>18)^C>>>3,b=r[E-2],I=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;r[E]=w+r[E-7]+I+r[E-16]}var _=p&g^~p&A,L=i&l^i&u^l&u,D=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),N=(p<<26|p>>>6)^(p<<21|p>>>11)^(p<<7|p>>>25),R=y+N+_+o[E]+r[E],B=D+L;y=A,A=g,g=p,p=h+R|0,h=u,u=l,l=i,i=R+B|0}t[0]=t[0]+i|0,t[1]=t[1]+l|0,t[2]=t[2]+u|0,t[3]=t[3]+h|0,t[4]=t[4]+p|0,t[5]=t[5]+g|0,t[6]=t[6]+A|0,t[7]=t[7]+y|0},_doFinalize:function(){var e=this._data,s=e.words,t=this._nDataBytes*8,i=e.sigBytes*8;return s[i>>>5]|=128<<24-i%32,s[(i+64>>>9<<4)+14]=x.floor(t/4294967296),s[(i+64>>>9<<4)+15]=t,e.sigBytes=s.length*4,this._process(),this._hash},clone:function(){var e=m.clone.call(this);return e._hash=this._hash.clone(),e}});T.SHA256=m._createHelper(a),T.HmacSHA256=m._createHmacHelper(a)}(Math),O.SHA256})},lUTK:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("x54q"),v=d.n(T),S=d("5Dmo")},lZu9:function(U,P,d){(function(O){O(d("VrN/"),d("1eCo"),d("8EBN"))})(function(O){"use strict";O.defineMode("markdown",function(x,T){var v=O.getMode(x,"text/html"),S=v.name=="null";function m(F){if(O.findModeByName){var K=O.findModeByName(F);K&&(F=K.mime||K.mimes[0])}var j=O.getMode(x,F);return j.name=="null"?null:j}T.highlightFormatting===void 0&&(T.highlightFormatting=!1),T.maxBlockquoteDepth===void 0&&(T.maxBlockquoteDepth=0),T.taskLists===void 0&&(T.taskLists=!1),T.strikethrough===void 0&&(T.strikethrough=!1),T.emoji===void 0&&(T.emoji=!1),T.fencedCodeBlockHighlighting===void 0&&(T.fencedCodeBlockHighlighting=!0),T.fencedCodeBlockDefaultMode===void 0&&(T.fencedCodeBlockDefaultMode="text/plain"),T.xml===void 0&&(T.xml=!0),T.tokenTypeOverrides===void 0&&(T.tokenTypeOverrides={});var f={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 c in f)f.hasOwnProperty(c)&&T.tokenTypeOverrides[c]&&(f[c]=T.tokenTypeOverrides[c]);var o=/^([*\-_])(?:\s*\1){2,}\s*$/,r=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,a=/^\[(x| )\](?=\s)/i,n=T.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,e=/^ {0,3}(?:\={1,}|-{2,})\s*$/,s=/^[^#!\[\]*_\\<>` "'(~:]+/,t=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,i=/^\s*\[[^\]]+?\]:.*$/,l=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,u=" ";function h(F,K,j){return K.f=K.inline=j,j(F,K)}function p(F,K,j){return K.f=K.block=j,j(F,K)}function g(F){return!F||!/\S/.test(F.string)}function A(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==E){var K=S;if(!K){var j=O.innerMode(v,F.htmlState);K=j.mode.name=="xml"&&j.state.tagStart===null&&!j.state.context&&j.state.tokenize.isInText}K&&(F.f=I,F.block=y,F.htmlState=null)}return F.trailingSpace=0,F.trailingSpaceNewLine=!1,F.prevLine=F.thisLine,F.thisLine={stream:null},null}function y(F,K){var j=F.column()===K.indentation,V=g(K.prevLine.stream),z=K.indentedCode,Y=K.prevLine.hr,ee=K.list!==!1,fe=(K.listStack[K.listStack.length-1]||0)+3;K.indentedCode=!1;var ie=K.indentation;if(K.indentationDiff===null&&(K.indentationDiff=K.indentation,ee)){for(K.list=null;ie<K.listStack[K.listStack.length-1];)K.listStack.pop(),K.listStack.length?K.indentation=K.listStack[K.listStack.length-1]:K.list=!1;K.list!==!1&&(K.indentationDiff=ie-K.listStack[K.listStack.length-1])}var we=!V&&!Y&&!K.prevLine.header&&(!ee||!z)&&!K.prevLine.fencedCodeEnd,Ce=(K.list===!1||Y||V)&&K.indentation<=fe&&F.match(o),Le=null;if(K.indentationDiff>=4&&(z||K.prevLine.fencedCodeEnd||K.prevLine.header||V))return F.skipToEnd(),K.indentedCode=!0,f.code;if(F.eatSpace())return null;if(j&&K.indentation<=fe&&(Le=F.match(n))&&Le[1].length<=6)return K.quote=0,K.header=Le[1].length,K.thisLine.header=!0,T.highlightFormatting&&(K.formatting="header"),K.f=K.inline,w(K);if(K.indentation<=fe&&F.eat(">"))return K.quote=j?1:K.quote+1,T.highlightFormatting&&(K.formatting="quote"),F.eatSpace(),w(K);if(!Ce&&!K.setext&&j&&K.indentation<=fe&&(Le=F.match(r))){var He=Le[1]?"ol":"ul";return K.indentation=ie+F.current().length,K.list=!0,K.quote=0,K.listStack.push(K.indentation),K.em=!1,K.strong=!1,K.code=!1,K.strikethrough=!1,T.taskLists&&F.match(a,!1)&&(K.taskList=!0),K.f=K.inline,T.highlightFormatting&&(K.formatting=["list","list-"+He]),w(K)}else{if(j&&K.indentation<=fe&&(Le=F.match(t,!0)))return K.quote=0,K.fencedEndRE=new RegExp(Le[1]+"+ *$"),K.localMode=T.fencedCodeBlockHighlighting&&m(Le[2]||T.fencedCodeBlockDefaultMode),K.localMode&&(K.localState=O.startState(K.localMode)),K.f=K.block=C,T.highlightFormatting&&(K.formatting="code-block"),K.code=-1,w(K);if(K.setext||(!we||!ee)&&!K.quote&&K.list===!1&&!K.code&&!Ce&&!i.test(F.string)&&(Le=F.lookAhead(1))&&(Le=Le.match(e)))return K.setext?(K.header=K.setext,K.setext=0,F.skipToEnd(),T.highlightFormatting&&(K.formatting="header")):(K.header=Le[0].charAt(0)=="="?1:2,K.setext=K.header),K.thisLine.header=!0,K.f=K.inline,w(K);if(Ce)return F.skipToEnd(),K.hr=!0,K.thisLine.hr=!0,f.hr;if(F.peek()==="[")return h(F,K,R)}return h(F,K,K.inline)}function E(F,K){var j=v.token(F,K.htmlState);if(!S){var V=O.innerMode(v,K.htmlState);(V.mode.name=="xml"&&V.state.tagStart===null&&!V.state.context&&V.state.tokenize.isInText||K.md_inside&&F.current().indexOf(">")>-1)&&(K.f=I,K.block=y,K.htmlState=null)}return j}function C(F,K){var j=K.listStack[K.listStack.length-1]||0,V=K.indentation<j,z=j+3;if(K.fencedEndRE&&K.indentation<=z&&(V||F.match(K.fencedEndRE))){T.highlightFormatting&&(K.formatting="code-block");var Y;return V||(Y=w(K)),K.localMode=K.localState=null,K.block=y,K.f=I,K.fencedEndRE=null,K.code=0,K.thisLine.fencedCodeEnd=!0,V?p(F,K,K.block):Y}else return K.localMode?K.localMode.token(F,K.localState):(F.skipToEnd(),f.code)}function w(F){var K=[];if(F.formatting){K.push(f.formatting),typeof F.formatting=="string"&&(F.formatting=[F.formatting]);for(var j=0;j<F.formatting.length;j++)K.push(f.formatting+"-"+F.formatting[j]),F.formatting[j]==="header"&&K.push(f.formatting+"-"+F.formatting[j]+"-"+F.header),F.formatting[j]==="quote"&&(!T.maxBlockquoteDepth||T.maxBlockquoteDepth>=F.quote?K.push(f.formatting+"-"+F.formatting[j]+"-"+F.quote):K.push("error"))}if(F.taskOpen)return K.push("meta"),K.length?K.join(" "):null;if(F.taskClosed)return K.push("property"),K.length?K.join(" "):null;if(F.linkHref?K.push(f.linkHref,"url"):(F.strong&&K.push(f.strong),F.em&&K.push(f.em),F.strikethrough&&K.push(f.strikethrough),F.emoji&&K.push(f.emoji),F.linkText&&K.push(f.linkText),F.code&&K.push(f.code),F.image&&K.push(f.image),F.imageAltText&&K.push(f.imageAltText,"link"),F.imageMarker&&K.push(f.imageMarker)),F.header&&K.push(f.header,f.header+"-"+F.header),F.quote&&(K.push(f.quote),!T.maxBlockquoteDepth||T.maxBlockquoteDepth>=F.quote?K.push(f.quote+"-"+F.quote):K.push(f.quote+"-"+T.maxBlockquoteDepth)),F.list!==!1){var V=(F.listStack.length-1)%3;V?V===1?K.push(f.list2):K.push(f.list3):K.push(f.list1)}return F.trailingSpaceNewLine?K.push("trailing-space-new-line"):F.trailingSpace&&K.push("trailing-space-"+(F.trailingSpace%2?"a":"b")),K.length?K.join(" "):null}function b(F,K){return F.match(s,!0)?w(K):void 0}function I(F,K){var j=K.text(F,K);if(typeof j!="undefined")return j;if(K.list)return K.list=null,w(K);if(K.taskList){var V=F.match(a,!0)[1]===" ";return V?K.taskOpen=!0:K.taskClosed=!0,T.highlightFormatting&&(K.formatting="task"),K.taskList=!1,w(K)}if(K.taskOpen=!1,K.taskClosed=!1,K.header&&F.match(/^#+$/,!0))return T.highlightFormatting&&(K.formatting="header"),w(K);var z=F.next();if(K.linkTitle){K.linkTitle=!1;var Y=z;z==="("&&(Y=")"),Y=(Y+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ee="^\\s*(?:[^"+Y+"\\\\]+|\\\\\\\\|\\\\.)"+Y;if(F.match(new RegExp(ee),!0))return f.linkHref}if(z==="`"){var fe=K.formatting;T.highlightFormatting&&(K.formatting="code"),F.eatWhile("`");var ie=F.current().length;if(K.code==0&&(!K.quote||ie==1))return K.code=ie,w(K);if(ie==K.code){var we=w(K);return K.code=0,we}else return K.formatting=fe,w(K)}else if(K.code)return w(K);if(z==="\\"&&(F.next(),T.highlightFormatting)){var Ce=w(K),Le=f.formatting+"-escape";return Ce?Ce+" "+Le:Le}if(z==="!"&&F.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return K.imageMarker=!0,K.image=!0,T.highlightFormatting&&(K.formatting="image"),w(K);if(z==="["&&K.imageMarker&&F.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return K.imageMarker=!1,K.imageAltText=!0,T.highlightFormatting&&(K.formatting="image"),w(K);if(z==="]"&&K.imageAltText){T.highlightFormatting&&(K.formatting="image");var Ce=w(K);return K.imageAltText=!1,K.image=!1,K.inline=K.f=L,Ce}if(z==="["&&!K.image)return K.linkText&&F.match(/^.*?\]/)||(K.linkText=!0,T.highlightFormatting&&(K.formatting="link")),w(K);if(z==="]"&&K.linkText){T.highlightFormatting&&(K.formatting="link");var Ce=w(K);return K.linkText=!1,K.inline=K.f=F.match(/\(.*?\)| ?\[.*?\]/,!1)?L:I,Ce}if(z==="<"&&F.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){K.f=K.inline=_,T.highlightFormatting&&(K.formatting="link");var Ce=w(K);return Ce?Ce+=" ":Ce="",Ce+f.linkInline}if(z==="<"&&F.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){K.f=K.inline=_,T.highlightFormatting&&(K.formatting="link");var Ce=w(K);return Ce?Ce+=" ":Ce="",Ce+f.linkEmail}if(T.xml&&z==="<"&&F.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var He=F.string.indexOf(">",F.pos);if(He!=-1){var ce=F.string.substring(F.start,He);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ce)&&(K.md_inside=!0)}return F.backUp(1),K.htmlState=O.startState(v),p(F,K,E)}if(T.xml&&z==="<"&&F.match(/^\/\w*?>/))return K.md_inside=!1,"tag";if(z==="*"||z==="_"){for(var Pe=1,Q=F.pos==1?" ":F.string.charAt(F.pos-2);Pe<3&&F.eat(z);)Pe++;var me=F.peek()||" ",Je=!/\s/.test(me)&&(!l.test(me)||/\s/.test(Q)||l.test(Q)),re=!/\s/.test(Q)&&(!l.test(Q)||/\s/.test(me)||l.test(me)),G=null,X=null;if(Pe%2&&(!K.em&&Je&&(z==="*"||!re||l.test(Q))?G=!0:K.em==z&&re&&(z==="*"||!Je||l.test(me))&&(G=!1)),Pe>1&&(!K.strong&&Je&&(z==="*"||!re||l.test(Q))?X=!0:K.strong==z&&re&&(z==="*"||!Je||l.test(me))&&(X=!1)),X!=null||G!=null){T.highlightFormatting&&(K.formatting=G==null?"strong":X==null?"em":"strong em"),G===!0&&(K.em=z),X===!0&&(K.strong=z);var we=w(K);return G===!1&&(K.em=!1),X===!1&&(K.strong=!1),we}}else if(z===" "&&(F.eat("*")||F.eat("_"))){if(F.peek()===" ")return w(K);F.backUp(1)}if(T.strikethrough){if(z==="~"&&F.eatWhile(z)){if(K.strikethrough){T.highlightFormatting&&(K.formatting="strikethrough");var we=w(K);return K.strikethrough=!1,we}else if(F.match(/^[^\s]/,!1))return K.strikethrough=!0,T.highlightFormatting&&(K.formatting="strikethrough"),w(K)}else if(z===" "&&F.match(/^~~/,!0)){if(F.peek()===" ")return w(K);F.backUp(2)}}if(T.emoji&&z===":"&&F.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){K.emoji=!0,T.highlightFormatting&&(K.formatting="emoji");var J=w(K);return K.emoji=!1,J}return z===" "&&(F.match(/^ +$/,!1)?K.trailingSpace++:K.trailingSpace&&(K.trailingSpaceNewLine=!0)),w(K)}function _(F,K){var j=F.next();if(j===">"){K.f=K.inline=I,T.highlightFormatting&&(K.formatting="link");var V=w(K);return V?V+=" ":V="",V+f.linkInline}return F.match(/^[^>]+/,!0),f.linkInline}function L(F,K){if(F.eatSpace())return null;var j=F.next();return j==="("||j==="["?(K.f=K.inline=N(j==="("?")":"]"),T.highlightFormatting&&(K.formatting="link-string"),K.linkHref=!0,w(K)):"error"}var D={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(F){return function(K,j){var V=K.next();if(V===F){j.f=j.inline=I,T.highlightFormatting&&(j.formatting="link-string");var z=w(j);return j.linkHref=!1,z}return K.match(D[F]),j.linkHref=!0,w(j)}}function R(F,K){return F.match(/^([^\]\\]|\\.)*\]:/,!1)?(K.f=B,F.next(),T.highlightFormatting&&(K.formatting="link"),K.linkText=!0,w(K)):h(F,K,I)}function B(F,K){if(F.match(/^\]:/,!0)){K.f=K.inline=M,T.highlightFormatting&&(K.formatting="link");var j=w(K);return K.linkText=!1,j}return F.match(/^([^\]\\]|\\.)+/,!0),f.linkText}function M(F,K){return F.eatSpace()?null:(F.match(/^[^\s]+/,!0),F.peek()===void 0?K.linkTitle=!0:F.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),K.f=K.inline=I,f.linkHref+" url")}var H={startState:function(){return{f:y,prevLine:{stream:null},thisLine:{stream:null},block:y,htmlState:null,indentation:0,inline:I,text:b,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(K){return{f:K.f,prevLine:K.prevLine,thisLine:K.thisLine,block:K.block,htmlState:K.htmlState&&O.copyState(v,K.htmlState),indentation:K.indentation,localMode:K.localMode,localState:K.localMode?O.copyState(K.localMode,K.localState):null,inline:K.inline,text:K.text,formatting:!1,linkText:K.linkText,linkTitle:K.linkTitle,linkHref:K.linkHref,code:K.code,em:K.em,strong:K.strong,strikethrough:K.strikethrough,emoji:K.emoji,header:K.header,setext:K.setext,hr:K.hr,taskList:K.taskList,list:K.list,listStack:K.listStack.slice(0),quote:K.quote,indentedCode:K.indentedCode,trailingSpace:K.trailingSpace,trailingSpaceNewLine:K.trailingSpaceNewLine,md_inside:K.md_inside,fencedEndRE:K.fencedEndRE}},token:function(K,j){if(j.formatting=!1,K!=j.thisLine.stream){if(j.header=0,j.hr=!1,K.match(/^\s*$/,!0))return A(j),null;if(j.prevLine=j.thisLine,j.thisLine={stream:K},j.taskList=!1,j.trailingSpace=0,j.trailingSpaceNewLine=!1,!j.localState&&(j.f=j.block,j.f!=E)){var V=K.match(/^\s*/,!0)[0].replace(/\t/g,u).length;if(j.indentation=V,j.indentationDiff=null,V>0)return null}}return j.f(K,j)},innerMode:function(K){return K.block==E?{state:K.htmlState,mode:v}:K.localState?{state:K.localState,mode:K.localMode}:{state:K,mode:H}},indent:function(K,j,V){return K.block==E&&v.indent?v.indent(K.htmlState,j,V):K.localState&&K.localMode.indent?K.localMode.indent(K.localState,j,V):O.Pass},blankLine:A,getType:w,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return H},"xml"),O.defineMIME("text/markdown","markdown"),O.defineMIME("text/x-markdown","markdown")})},laiN:function(U,P,d){var O=d("ProS");d("GVMX"),d("MH26"),O.registerPreprocessor(function(x){x.markLine=x.markLine||{}})},lnY3:function(U,P,d){},loD1:function(U,P){function d(O,x,T,v,S,m,f){if(S===0)return!1;var c=S,o=0,r=O;if(f>x+c&&f>v+c||f<x-c&&f<v-c||m>O+c&&m>T+c||m<O-c&&m<T-c)return!1;if(O!==T)o=(x-v)/(O-T),r=(O*v-T*x)/(O-T);else return Math.abs(m-O)<=c/2;var a=o*m-f+r,n=a*a/(o*o+1);return n<=c/2*c/2}P.containStroke=d},lr6o:function(U,P,d){"use strict";var O=d("rePB"),x=d("Ff2n"),T=d("VTBJ"),v=d("1OyB"),S=d("vuIU"),m=d("JX7q"),f=d("Ji7U"),c=d("LK+K"),o=d("q1tI"),r=d("TSYQ"),a=d.n(r),n=d("FTAc"),e=d("wPhX"),s=function(E){var C=E.prefixCls,w=E.level,b=E.isStart,I=E.isEnd;if(!w)return null;for(var _="".concat(C,"-indent-unit"),L=[],D=0;D<w;D+=1){var N;L.push(o.createElement("span",{key:D,className:a()(_,(N={},Object(O.a)(N,"".concat(_,"-start"),b[D+1]),Object(O.a)(N,"".concat(_,"-end"),I[D+1]),Object(O.a)(N,"".concat(_,"-end-first-level"),!D&&I[0]),N))}))}return o.createElement("span",{"aria-hidden":"true",className:"".concat(C,"-indent")},L)},t=s,i=d("c3jg"),l="open",u="close",h="---",p=function(y){Object(f.a)(C,y);var E=Object(c.a)(C);function C(){var w;return Object(v.a)(this,C),w=E.apply(this,arguments),w.state={dragNodeHighlight:!1},w.onSelectorClick=function(b){var I=w.props.context.onNodeClick;I(b,Object(i.b)(w.props)),w.isSelectable()?w.onSelect(b):w.onCheck(b)},w.onSelectorDoubleClick=function(b){var I=w.props.context.onNodeDoubleClick;I(b,Object(i.b)(w.props))},w.onSelect=function(b){if(w.isDisabled())return;var I=w.props.context.onNodeSelect;b.preventDefault(),I(b,Object(i.b)(w.props))},w.onCheck=function(b){if(w.isDisabled())return;var I=w.props,_=I.disableCheckbox,L=I.checked,D=w.props.context.onNodeCheck;if(!w.isCheckable()||_)return;b.preventDefault();var N=!L;D(b,Object(i.b)(w.props),N)},w.onMouseEnter=function(b){var I=w.props.context.onNodeMouseEnter;I(b,Object(i.b)(w.props))},w.onMouseLeave=function(b){var I=w.props.context.onNodeMouseLeave;I(b,Object(i.b)(w.props))},w.onContextMenu=function(b){var I=w.props.context.onNodeContextMenu;I(b,Object(i.b)(w.props))},w.onDragStart=function(b){var I=w.props.context.onNodeDragStart;b.stopPropagation(),w.setState({dragNodeHighlight:!0}),I(b,Object(m.a)(w));try{b.dataTransfer.setData("text/plain","")}catch(_){}},w.onDragEnter=function(b){var I=w.props.context.onNodeDragEnter;b.preventDefault(),b.stopPropagation(),I(b,Object(m.a)(w))},w.onDragOver=function(b){var I=w.props.context.onNodeDragOver;b.preventDefault(),b.stopPropagation(),I(b,Object(m.a)(w))},w.onDragLeave=function(b){var I=w.props.context.onNodeDragLeave;b.stopPropagation(),I(b,Object(m.a)(w))},w.onDragEnd=function(b){var I=w.props.context.onNodeDragEnd;b.stopPropagation(),w.setState({dragNodeHighlight:!1}),I(b,Object(m.a)(w))},w.onDrop=function(b){var I=w.props.context.onNodeDrop;b.preventDefault(),b.stopPropagation(),w.setState({dragNodeHighlight:!1}),I(b,Object(m.a)(w))},w.onExpand=function(b){var I=w.props.context.onNodeExpand;I(b,Object(i.b)(w.props))},w.setSelectHandle=function(b){w.selectHandle=b},w.getNodeState=function(){var b=w.props.expanded;return w.isLeaf()?null:b?l:u},w.hasChildren=function(){var b=w.props.eventKey,I=w.props.context.keyEntities,_=I[b]||{},L=_.children;return!!(L||[]).length},w.isLeaf=function(){var b=w.props,I=b.isLeaf,_=b.loaded,L=w.props.context.loadData,D=w.hasChildren();return I===!1?!1:I||!L&&!D||L&&_&&!D},w.isDisabled=function(){var b=w.props.disabled,I=w.props.context.disabled;return!!(I||b)},w.isCheckable=function(){var b=w.props.checkable,I=w.props.context.checkable;return!I||b===!1?!1:I},w.syncLoadData=function(b){var I=b.expanded,_=b.loading,L=b.loaded,D=w.props.context,N=D.loadData,R=D.onNodeLoad;if(_)return;N&&I&&!w.isLeaf()&&(!w.hasChildren()&&!L&&R(Object(i.b)(w.props)))},w.renderSwitcher=function(){var b=w.props,I=b.expanded,_=b.switcherIcon,L=w.props.context,D=L.prefixCls,N=L.switcherIcon,R=_||N;if(w.isLeaf())return o.createElement("span",{className:a()("".concat(D,"-switcher"),"".concat(D,"-switcher-noop"))},typeof R=="function"?R(Object(T.a)(Object(T.a)({},w.props),{},{isLeaf:!0})):R);var B=a()("".concat(D,"-switcher"),"".concat(D,"-switcher_").concat(I?l:u));return o.createElement("span",{onClick:w.onExpand,className:B},typeof R=="function"?R(Object(T.a)(Object(T.a)({},w.props),{},{isLeaf:!1})):R)},w.renderCheckbox=function(){var b=w.props,I=b.checked,_=b.halfChecked,L=b.disableCheckbox,D=w.props.context.prefixCls,N=w.isDisabled(),R=w.isCheckable();if(!R)return null;var B=typeof R!="boolean"?R:null;return o.createElement("span",{className:a()("".concat(D,"-checkbox"),I&&"".concat(D,"-checkbox-checked"),!I&&_&&"".concat(D,"-checkbox-indeterminate"),(N||L)&&"".concat(D,"-checkbox-disabled")),onClick:w.onCheck},B)},w.renderIcon=function(){var b=w.props.loading,I=w.props.context.prefixCls;return o.createElement("span",{className:a()("".concat(I,"-iconEle"),"".concat(I,"-icon__").concat(w.getNodeState()||"docu"),b&&"".concat(I,"-icon_loading"))})},w.renderSelector=function(){var b=w.state.dragNodeHighlight,I=w.props,_=I.title,L=I.selected,D=I.icon,N=I.loading,R=I.data,B=w.props.context,M=B.prefixCls,H=B.showIcon,F=B.icon,K=B.draggable,j=B.loadData,V=B.titleRender,z=w.isDisabled(),Y="".concat(M,"-node-content-wrapper"),ee;if(H){var fe=D||F;ee=fe?o.createElement("span",{className:a()("".concat(M,"-iconEle"),"".concat(M,"-icon__customize"))},typeof fe=="function"?fe(w.props):fe):w.renderIcon()}else j&&N&&(ee=w.renderIcon());var ie;typeof _=="function"?ie=_(R):V?ie=V(R):ie=_;var we=o.createElement("span",{className:"".concat(M,"-title")},ie);return o.createElement("span",{ref:w.setSelectHandle,title:typeof _=="string"?_:"",className:a()("".concat(Y),"".concat(Y,"-").concat(w.getNodeState()||"normal"),!z&&(L||b)&&"".concat(M,"-node-selected"),!z&&K&&"draggable"),draggable:!z&&K||void 0,"aria-grabbed":!z&&K||void 0,onMouseEnter:w.onMouseEnter,onMouseLeave:w.onMouseLeave,onContextMenu:w.onContextMenu,onClick:w.onSelectorClick,onDoubleClick:w.onSelectorDoubleClick,onDragStart:K?w.onDragStart:void 0},ee,we)},w}return Object(S.a)(C,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var b=this.props.selectable,I=this.props.context.selectable;return typeof b=="boolean"?b:I}},{key:"render",value:function(){var b,I=this.props,_=I.eventKey,L=I.className,D=I.style,N=I.dragOver,R=I.dragOverGapTop,B=I.dragOverGapBottom,M=I.isLeaf,H=I.isStart,F=I.isEnd,K=I.expanded,j=I.selected,V=I.checked,z=I.halfChecked,Y=I.loading,ee=I.domRef,fe=I.active,ie=I.onMouseMove,we=Object(x.a)(I,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),Ce=this.props.context,Le=Ce.prefixCls,He=Ce.filterTreeNode,ce=Ce.draggable,Pe=Ce.keyEntities,Q=this.isDisabled(),me=Object(e.f)(we),Je=Pe[_]||{},re=Je.level,G=F[F.length-1];return o.createElement("div",Object.assign({ref:ee,className:a()(L,"".concat(Le,"-treenode"),(b={},Object(O.a)(b,"".concat(Le,"-treenode-disabled"),Q),Object(O.a)(b,"".concat(Le,"-treenode-switcher-").concat(K?"open":"close"),!M),Object(O.a)(b,"".concat(Le,"-treenode-checkbox-checked"),V),Object(O.a)(b,"".concat(Le,"-treenode-checkbox-indeterminate"),z),Object(O.a)(b,"".concat(Le,"-treenode-selected"),j),Object(O.a)(b,"".concat(Le,"-treenode-loading"),Y),Object(O.a)(b,"".concat(Le,"-treenode-active"),fe),Object(O.a)(b,"".concat(Le,"-treenode-leaf-last"),G),Object(O.a)(b,"drag-over",!Q&&N),Object(O.a)(b,"drag-over-gap-top",!Q&&R),Object(O.a)(b,"drag-over-gap-bottom",!Q&&B),Object(O.a)(b,"filter-node",He&&He(Object(i.b)(this.props))),b)),style:D,onDragEnter:ce?this.onDragEnter:void 0,onDragOver:ce?this.onDragOver:void 0,onDragLeave:ce?this.onDragLeave:void 0,onDrop:ce?this.onDrop:void 0,onDragEnd:ce?this.onDragEnd:void 0,onMouseMove:ie},me),o.createElement(t,{prefixCls:Le,level:re,isStart:H,isEnd:F}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),C}(o.Component),g=function(E){return o.createElement(n.a.Consumer,null,function(C){return o.createElement(p,Object.assign({},E,{context:C}))})};g.displayName="TreeNode",g.defaultProps={title:h},g.isTreeNode=1;var A=P.a=g},lrIw:function(U,P,d){"use strict";var O=d("pVnL"),x=d.n(O),T=d("cDf5"),v=d.n(T),S=d("J4zp"),m=d.n(S),f=d("q1tI"),c=d.n(f),o=d("Zm9Q"),r=d("TSYQ"),a=d.n(r),n=d("BGR+"),e=d("2fM7"),s=d("H84U"),t=d("uaoM"),i=d("0n0R"),l=e.a.Option,u=e.a;function h(A){return A&&A.type&&(A.type.isSelectOption||A.type.isSelectOptGroup)}var p=function(y,E){var C=y.prefixCls,w=y.className,b=y.children,I=y.dataSource,_=Object(o.a)(b),L=f.useRef();f.useImperativeHandle(E,function(){return L.current});var D;if(_.length===1&&Object(i.b)(_[0])&&!h(_[0])){var N=m()(_,1);D=N[0]}var R=function(){return D},B;return _.length&&h(_[0])?B=b:B=I?I.map(function(M){if(Object(i.b)(M))return M;switch(v()(M)){case"string":return f.createElement(l,{key:M,value:M},M);case"object":{var H=M.value;return f.createElement(l,{key:H,value:H},M.text)}default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[],f.useEffect(function(){Object(t.a)(!("dataSource"in y),"AutoComplete","`dataSource` is deprecated, please use `options` instead."),Object(t.a)(!D||!("size"in y),"AutoComplete","You need to control style self instead of setting `size` when using customize input.")},[]),f.createElement(s.a,null,function(M){var H=M.getPrefixCls,F=H("select",C);return f.createElement(u,x()({ref:L},Object(n.default)(y,["dataSource"]),{prefixCls:F,className:a()(w,"".concat(F,"-auto-complete")),mode:e.a.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:R}),B)})},g=f.forwardRef(p);g.Option=l,P.a=g},lwQL:function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("9wZj"),v=d("c8qY"),S=d("SgGq"),m=d("Ae+d"),f=d("xSat"),c=f.onIrrelevantElement,o=d("IwbS"),r=d("SA8n"),a=d("U/Mo"),n=a.getNodeGlobalScale,e="__focusNodeAdjacency",s="__unfocusNodeAdjacency",t=["itemStyle","opacity"],i=["lineStyle","opacity"];function l(g,A){var y=g.getVisual("opacity");return y!=null?y:g.getModel().get(A)}function u(g,A,y){var E=g.getGraphicEl(),C=l(g,A);y!=null&&(C==null&&(C=1),C*=y),E.downplay&&E.downplay(),E.traverse(function(w){if(!w.isGroup){var b=w.lineLabelOriginalOpacity;(b==null||y!=null)&&(b=C),w.setStyle("opacity",b)}})}function h(g,A){var y=l(g,A),E=g.getGraphicEl();E.traverse(function(C){!C.isGroup&&C.setStyle("opacity",y)}),E.highlight&&E.highlight()}var p=O.extendChartView({type:"graph",init:function(g,A){var y=new T,E=new v,C=this.group;this._controller=new S(A.getZr()),this._controllerHost={target:C},C.add(y.group),C.add(E.group),this._symbolDraw=y,this._lineDraw=E,this._firstRender=!0},render:function(g,A,y){var E=this,C=g.coordinateSystem;this._model=g;var w=this._symbolDraw,b=this._lineDraw,I=this.group;if(C.type==="view"){var _={position:C.position,scale:C.scale};this._firstRender?I.attr(_):o.updateProps(I,_,g)}r(g.getGraph(),n(g));var L=g.getData();w.updateData(L);var D=g.getEdgeData();b.updateData(D),this._updateNodeAndLinkScale(),this._updateController(g,A,y),clearTimeout(this._layoutTimeout);var N=g.forceLayout,R=g.get("force.layoutAnimation");N&&this._startForceLayoutIteration(N,R),L.eachItemGraphicEl(function(F,K){var j=L.getItemModel(K);F.off("drag").off("dragend");var V=j.get("draggable");V&&F.on("drag",function(){N&&(N.warmUp(),!this._layouting&&this._startForceLayoutIteration(N,R),N.setFixed(K),L.setItemLayout(K,F.position))},this).on("dragend",function(){N&&N.setUnfixed(K)},this),F.setDraggable(V&&N),F[e]&&F.off("mouseover",F[e]),F[s]&&F.off("mouseout",F[s]),j.get("focusNodeAdjacency")&&(F.on("mouseover",F[e]=function(){E._clearTimer(),y.dispatchAction({type:"focusNodeAdjacency",seriesId:g.id,dataIndex:F.dataIndex})}),F.on("mouseout",F[s]=function(){E._dispatchUnfocus(y)}))},this),L.graph.eachEdge(function(F){var K=F.getGraphicEl();K[e]&&K.off("mouseover",K[e]),K[s]&&K.off("mouseout",K[s]),F.getModel().get("focusNodeAdjacency")&&(K.on("mouseover",K[e]=function(){E._clearTimer(),y.dispatchAction({type:"focusNodeAdjacency",seriesId:g.id,edgeDataIndex:F.dataIndex})}),K.on("mouseout",K[s]=function(){E._dispatchUnfocus(y)}))});var B=g.get("layout")==="circular"&&g.get("circular.rotateLabel"),M=L.getLayout("cx"),H=L.getLayout("cy");L.eachItemGraphicEl(function(F,K){var j=L.getItemModel(K),V=j.get("label.rotate")||0,z=F.getSymbolPath();if(B){var Y=L.getItemLayout(K),ee=Math.atan2(Y[1]-H,Y[0]-M);ee<0&&(ee=Math.PI*2+ee);var fe=Y[0]<M;fe&&(ee=ee-Math.PI);var ie=fe?"left":"right";o.modifyLabelStyle(z,{textRotation:-ee,textPosition:ie,textOrigin:"center"},{textPosition:ie})}else o.modifyLabelStyle(z,{textRotation:V*=Math.PI/180})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(g,A){var y=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){y._unfocusDelayTimer=null,g.dispatchAction({type:"unfocusNodeAdjacency",seriesId:y._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(g,A,y,E){var C=g.getData(),w=C.graph,b=E.dataIndex,I=E.edgeDataIndex,_=w.getNodeByIndex(b),L=w.getEdgeByIndex(I);if(!_&&!L)return;w.eachNode(function(D){u(D,t,.1)}),w.eachEdge(function(D){u(D,i,.1)}),_&&(h(_,t),x.each(_.edges,function(D){if(D.dataIndex<0)return;h(D,i),h(D.node1,t),h(D.node2,t)})),L&&(h(L,i),h(L.node1,t),h(L.node2,t))},unfocusNodeAdjacency:function(g,A,y,E){var C=g.getData().graph;C.eachNode(function(w){u(w,t)}),C.eachEdge(function(w){u(w,i)})},_startForceLayoutIteration:function(g,A){var y=this;(function E(){g.step(function(C){y.updateLayout(y._model),(y._layouting=!C)&&(A?y._layoutTimeout=setTimeout(E,16):E())})})()},_updateController:function(g,A,y){var E=this._controller,C=this._controllerHost,w=this.group;if(E.setPointerChecker(function(b,I,_){var L=w.getBoundingRect();return L.applyTransform(w.transform),L.contain(I,_)&&!c(b,y,g)}),g.coordinateSystem.type!=="view"){E.disable();return}E.enable(g.get("roam")),C.zoomLimit=g.get("scaleLimit"),C.zoom=g.coordinateSystem.getZoom(),E.off("pan").off("zoom").on("pan",function(b){m.updateViewOnPan(C,b.dx,b.dy),y.dispatchAction({seriesId:g.id,type:"graphRoam",dx:b.dx,dy:b.dy})}).on("zoom",function(b){m.updateViewOnZoom(C,b.scale,b.originX,b.originY),y.dispatchAction({seriesId:g.id,type:"graphRoam",zoom:b.scale,originX:b.originX,originY:b.originY}),this._updateNodeAndLinkScale(),r(g.getGraph(),n(g)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var g=this._model,A=g.getData(),y=n(g),E=[y,y];A.eachItemGraphicEl(function(C,w){C.attr("scale",E)})},updateLayout:function(g){r(g.getGraph(),n(g)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(g,A){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});U.exports=p},m9t5:function(U,P,d){var O=d("KCsZ"),x=O([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),T={getAreaStyle:function(v,S){return x(this,v,S)}};U.exports=T},mFDi:function(U,P,d){var O=d("QBsz"),x=d("Fofx"),T=O.applyTransform,v=Math.min,S=Math.max;function m(c,o,r,a){r<0&&(c=c+r,r=-r),a<0&&(o=o+a,a=-a),this.x=c,this.y=o,this.width=r,this.height=a}m.prototype={constructor:m,union:function(o){var r=v(o.x,this.x),a=v(o.y,this.y);this.width=S(o.x+o.width,this.x+this.width)-r,this.height=S(o.y+o.height,this.y+this.height)-a,this.x=r,this.y=a},applyTransform:function(){var c=[],o=[],r=[],a=[];return function(n){if(!n)return;c[0]=r[0]=this.x,c[1]=a[1]=this.y,o[0]=a[0]=this.x+this.width,o[1]=r[1]=this.y+this.height,T(c,c,n),T(o,o,n),T(r,r,n),T(a,a,n),this.x=v(c[0],o[0],r[0],a[0]),this.y=v(c[1],o[1],r[1],a[1]);var e=S(c[0],o[0],r[0],a[0]),s=S(c[1],o[1],r[1],a[1]);this.width=e-this.x,this.height=s-this.y}}(),calculateTransform:function(o){var r=this,a=o.width/r.width,n=o.height/r.height,e=x.create();return x.translate(e,e,[-r.x,-r.y]),x.scale(e,e,[a,n]),x.translate(e,e,[o.x,o.y]),e},intersect:function(o){if(!o)return!1;o instanceof m||(o=m.create(o));var r=this,a=r.x,n=r.x+r.width,e=r.y,s=r.y+r.height,t=o.x,i=o.x+o.width,l=o.y,u=o.y+o.height;return!(n<t||i<a||s<l||u<e)},contain:function(o,r){var a=this;return o>=a.x&&o<=a.x+a.width&&r>=a.y&&r<=a.y+a.height},clone:function(){return new m(this.x,this.y,this.width,this.height)},copy:function(o){this.x=o.x,this.y=o.y,this.width=o.width,this.height=o.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},m.create=function(c){return new m(c.x,c.y,c.width,c.height)};var f=m;U.exports=f},mHUz:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O={XK_VoidSymbol:16777215,XK_BackSpace:65288,XK_Tab:65289,XK_Linefeed:65290,XK_Clear:65291,XK_Return:65293,XK_Pause:65299,XK_Scroll_Lock:65300,XK_Sys_Req:65301,XK_Escape:65307,XK_Delete:65535,XK_Multi_key:65312,XK_Codeinput:65335,XK_SingleCandidate:65340,XK_MultipleCandidate:65341,XK_PreviousCandidate:65342,XK_Kanji:65313,XK_Muhenkan:65314,XK_Henkan_Mode:65315,XK_Henkan:65315,XK_Romaji:65316,XK_Hiragana:65317,XK_Katakana:65318,XK_Hiragana_Katakana:65319,XK_Zenkaku:65320,XK_Hankaku:65321,XK_Zenkaku_Hankaku:65322,XK_Touroku:65323,XK_Massyo:65324,XK_Kana_Lock:65325,XK_Kana_Shift:65326,XK_Eisu_Shift:65327,XK_Eisu_toggle:65328,XK_Kanji_Bangou:65335,XK_Zen_Koho:65341,XK_Mae_Koho:65342,XK_Home:65360,XK_Left:65361,XK_Up:65362,XK_Right:65363,XK_Down:65364,XK_Prior:65365,XK_Page_Up:65365,XK_Next:65366,XK_Page_Down:65366,XK_End:65367,XK_Begin:65368,XK_Select:65376,XK_Print:65377,XK_Execute:65378,XK_Insert:65379,XK_Undo:65381,XK_Redo:65382,XK_Menu:65383,XK_Find:65384,XK_Cancel:65385,XK_Help:65386,XK_Break:65387,XK_Mode_switch:65406,XK_script_switch:65406,XK_Num_Lock:65407,XK_KP_Space:65408,XK_KP_Tab:65417,XK_KP_Enter:65421,XK_KP_F1:65425,XK_KP_F2:65426,XK_KP_F3:65427,XK_KP_F4:65428,XK_KP_Home:65429,XK_KP_Left:65430,XK_KP_Up:65431,XK_KP_Right:65432,XK_KP_Down:65433,XK_KP_Prior:65434,XK_KP_Page_Up:65434,XK_KP_Next:65435,XK_KP_Page_Down:65435,XK_KP_End:65436,XK_KP_Begin:65437,XK_KP_Insert:65438,XK_KP_Delete:65439,XK_KP_Equal:65469,XK_KP_Multiply:65450,XK_KP_Add:65451,XK_KP_Separator:65452,XK_KP_Subtract:65453,XK_KP_Decimal:65454,XK_KP_Divide:65455,XK_KP_0:65456,XK_KP_1:65457,XK_KP_2:65458,XK_KP_3:65459,XK_KP_4:65460,XK_KP_5:65461,XK_KP_6:65462,XK_KP_7:65463,XK_KP_8:65464,XK_KP_9:65465,XK_F1:65470,XK_F2:65471,XK_F3:65472,XK_F4:65473,XK_F5:65474,XK_F6:65475,XK_F7:65476,XK_F8:65477,XK_F9:65478,XK_F10:65479,XK_F11:65480,XK_L1:65480,XK_F12:65481,XK_L2:65481,XK_F13:65482,XK_L3:65482,XK_F14:65483,XK_L4:65483,XK_F15:65484,XK_L5:65484,XK_F16:65485,XK_L6:65485,XK_F17:65486,XK_L7:65486,XK_F18:65487,XK_L8:65487,XK_F19:65488,XK_L9:65488,XK_F20:65489,XK_L10:65489,XK_F21:65490,XK_R1:65490,XK_F22:65491,XK_R2:65491,XK_F23:65492,XK_R3:65492,XK_F24:65493,XK_R4:65493,XK_F25:65494,XK_R5:65494,XK_F26:65495,XK_R6:65495,XK_F27:65496,XK_R7:65496,XK_F28:65497,XK_R8:65497,XK_F29:65498,XK_R9:65498,XK_F30:65499,XK_R10:65499,XK_F31:65500,XK_R11:65500,XK_F32:65501,XK_R12:65501,XK_F33:65502,XK_R13:65502,XK_F34:65503,XK_R14:65503,XK_F35:65504,XK_R15:65504,XK_Shift_L:65505,XK_Shift_R:65506,XK_Control_L:65507,XK_Control_R:65508,XK_Caps_Lock:65509,XK_Shift_Lock:65510,XK_Meta_L:65511,XK_Meta_R:65512,XK_Alt_L:65513,XK_Alt_R:65514,XK_Super_L:65515,XK_Super_R:65516,XK_Hyper_L:65517,XK_Hyper_R:65518,XK_ISO_Level3_Shift:65027,XK_ISO_Next_Group:65032,XK_ISO_Prev_Group:65034,XK_ISO_First_Group:65036,XK_ISO_Last_Group:65038,XK_space:32,XK_exclam:33,XK_quotedbl:34,XK_numbersign:35,XK_dollar:36,XK_percent:37,XK_ampersand:38,XK_apostrophe:39,XK_quoteright:39,XK_parenleft:40,XK_parenright:41,XK_asterisk:42,XK_plus:43,XK_comma:44,XK_minus:45,XK_period:46,XK_slash:47,XK_0:48,XK_1:49,XK_2:50,XK_3:51,XK_4:52,XK_5:53,XK_6:54,XK_7:55,XK_8:56,XK_9:57,XK_colon:58,XK_semicolon:59,XK_less:60,XK_equal:61,XK_greater:62,XK_question:63,XK_at:64,XK_A:65,XK_B:66,XK_C:67,XK_D:68,XK_E:69,XK_F:70,XK_G:71,XK_H:72,XK_I:73,XK_J:74,XK_K:75,XK_L:76,XK_M:77,XK_N:78,XK_O:79,XK_P:80,XK_Q:81,XK_R:82,XK_S:83,XK_T:84,XK_U:85,XK_V:86,XK_W:87,XK_X:88,XK_Y:89,XK_Z:90,XK_bracketleft:91,XK_backslash:92,XK_bracketright:93,XK_asciicircum:94,XK_underscore:95,XK_grave:96,XK_quoteleft:96,XK_a:97,XK_b:98,XK_c:99,XK_d:100,XK_e:101,XK_f:102,XK_g:103,XK_h:104,XK_i:105,XK_j:106,XK_k:107,XK_l:108,XK_m:109,XK_n:110,XK_o:111,XK_p:112,XK_q:113,XK_r:114,XK_s:115,XK_t:116,XK_u:117,XK_v:118,XK_w:119,XK_x:120,XK_y:121,XK_z:122,XK_braceleft:123,XK_bar:124,XK_braceright:125,XK_asciitilde:126,XK_nobreakspace:160,XK_exclamdown:161,XK_cent:162,XK_sterling:163,XK_currency:164,XK_yen:165,XK_brokenbar:166,XK_section:167,XK_diaeresis:168,XK_copyright:169,XK_ordfeminine:170,XK_guillemotleft:171,XK_notsign:172,XK_hyphen:173,XK_registered:174,XK_macron:175,XK_degree:176,XK_plusminus:177,XK_twosuperior:178,XK_threesuperior:179,XK_acute:180,XK_mu:181,XK_paragraph:182,XK_periodcentered:183,XK_cedilla:184,XK_onesuperior:185,XK_masculine:186,XK_guillemotright:187,XK_onequarter:188,XK_onehalf:189,XK_threequarters:190,XK_questiondown:191,XK_Agrave:192,XK_Aacute:193,XK_Acircumflex:194,XK_Atilde:195,XK_Adiaeresis:196,XK_Aring:197,XK_AE:198,XK_Ccedilla:199,XK_Egrave:200,XK_Eacute:201,XK_Ecircumflex:202,XK_Ediaeresis:203,XK_Igrave:204,XK_Iacute:205,XK_Icircumflex:206,XK_Idiaeresis:207,XK_ETH:208,XK_Eth:208,XK_Ntilde:209,XK_Ograve:210,XK_Oacute:211,XK_Ocircumflex:212,XK_Otilde:213,XK_Odiaeresis:214,XK_multiply:215,XK_Oslash:216,XK_Ooblique:216,XK_Ugrave:217,XK_Uacute:218,XK_Ucircumflex:219,XK_Udiaeresis:220,XK_Yacute:221,XK_THORN:222,XK_Thorn:222,XK_ssharp:223,XK_agrave:224,XK_aacute:225,XK_acircumflex:226,XK_atilde:227,XK_adiaeresis:228,XK_aring:229,XK_ae:230,XK_ccedilla:231,XK_egrave:232,XK_eacute:233,XK_ecircumflex:234,XK_ediaeresis:235,XK_igrave:236,XK_iacute:237,XK_icircumflex:238,XK_idiaeresis:239,XK_eth:240,XK_ntilde:241,XK_ograve:242,XK_oacute:243,XK_ocircumflex:244,XK_otilde:245,XK_odiaeresis:246,XK_division:247,XK_oslash:248,XK_ooblique:248,XK_ugrave:249,XK_uacute:250,XK_ucircumflex:251,XK_udiaeresis:252,XK_yacute:253,XK_thorn:254,XK_ydiaeresis:255,XK_Hangul:65329,XK_Hangul_Hanja:65332,XK_Hangul_Jeonja:65336,XF86XK_ModeLock:269025025,XF86XK_MonBrightnessUp:269025026,XF86XK_MonBrightnessDown:269025027,XF86XK_KbdLightOnOff:269025028,XF86XK_KbdBrightnessUp:269025029,XF86XK_KbdBrightnessDown:269025030,XF86XK_Standby:269025040,XF86XK_AudioLowerVolume:269025041,XF86XK_AudioMute:269025042,XF86XK_AudioRaiseVolume:269025043,XF86XK_AudioPlay:269025044,XF86XK_AudioStop:269025045,XF86XK_AudioPrev:269025046,XF86XK_AudioNext:269025047,XF86XK_HomePage:269025048,XF86XK_Mail:269025049,XF86XK_Start:269025050,XF86XK_Search:269025051,XF86XK_AudioRecord:269025052,XF86XK_Calculator:269025053,XF86XK_Memo:269025054,XF86XK_ToDoList:269025055,XF86XK_Calendar:269025056,XF86XK_PowerDown:269025057,XF86XK_ContrastAdjust:269025058,XF86XK_RockerUp:269025059,XF86XK_RockerDown:269025060,XF86XK_RockerEnter:269025061,XF86XK_Back:269025062,XF86XK_Forward:269025063,XF86XK_Stop:269025064,XF86XK_Refresh:269025065,XF86XK_PowerOff:269025066,XF86XK_WakeUp:269025067,XF86XK_Eject:269025068,XF86XK_ScreenSaver:269025069,XF86XK_WWW:269025070,XF86XK_Sleep:269025071,XF86XK_Favorites:269025072,XF86XK_AudioPause:269025073,XF86XK_AudioMedia:269025074,XF86XK_MyComputer:269025075,XF86XK_VendorHome:269025076,XF86XK_LightBulb:269025077,XF86XK_Shop:269025078,XF86XK_History:269025079,XF86XK_OpenURL:269025080,XF86XK_AddFavorite:269025081,XF86XK_HotLinks:269025082,XF86XK_BrightnessAdjust:269025083,XF86XK_Finance:269025084,XF86XK_Community:269025085,XF86XK_AudioRewind:269025086,XF86XK_BackForward:269025087,XF86XK_Launch0:269025088,XF86XK_Launch1:269025089,XF86XK_Launch2:269025090,XF86XK_Launch3:269025091,XF86XK_Launch4:269025092,XF86XK_Launch5:269025093,XF86XK_Launch6:269025094,XF86XK_Launch7:269025095,XF86XK_Launch8:269025096,XF86XK_Launch9:269025097,XF86XK_LaunchA:269025098,XF86XK_LaunchB:269025099,XF86XK_LaunchC:269025100,XF86XK_LaunchD:269025101,XF86XK_LaunchE:269025102,XF86XK_LaunchF:269025103,XF86XK_ApplicationLeft:269025104,XF86XK_ApplicationRight:269025105,XF86XK_Book:269025106,XF86XK_CD:269025107,XF86XK_Calculater:269025108,XF86XK_Clear:269025109,XF86XK_Close:269025110,XF86XK_Copy:269025111,XF86XK_Cut:269025112,XF86XK_Display:269025113,XF86XK_DOS:269025114,XF86XK_Documents:269025115,XF86XK_Excel:269025116,XF86XK_Explorer:269025117,XF86XK_Game:269025118,XF86XK_Go:269025119,XF86XK_iTouch:269025120,XF86XK_LogOff:269025121,XF86XK_Market:269025122,XF86XK_Meeting:269025123,XF86XK_MenuKB:269025125,XF86XK_MenuPB:269025126,XF86XK_MySites:269025127,XF86XK_New:269025128,XF86XK_News:269025129,XF86XK_OfficeHome:269025130,XF86XK_Open:269025131,XF86XK_Option:269025132,XF86XK_Paste:269025133,XF86XK_Phone:269025134,XF86XK_Q:269025136,XF86XK_Reply:269025138,XF86XK_Reload:269025139,XF86XK_RotateWindows:269025140,XF86XK_RotationPB:269025141,XF86XK_RotationKB:269025142,XF86XK_Save:269025143,XF86XK_ScrollUp:269025144,XF86XK_ScrollDown:269025145,XF86XK_ScrollClick:269025146,XF86XK_Send:269025147,XF86XK_Spell:269025148,XF86XK_SplitScreen:269025149,XF86XK_Support:269025150,XF86XK_TaskPane:269025151,XF86XK_Terminal:269025152,XF86XK_Tools:269025153,XF86XK_Travel:269025154,XF86XK_UserPB:269025156,XF86XK_User1KB:269025157,XF86XK_User2KB:269025158,XF86XK_Video:269025159,XF86XK_WheelButton:269025160,XF86XK_Word:269025161,XF86XK_Xfer:269025162,XF86XK_ZoomIn:269025163,XF86XK_ZoomOut:269025164,XF86XK_Away:269025165,XF86XK_Messenger:269025166,XF86XK_WebCam:269025167,XF86XK_MailForward:269025168,XF86XK_Pictures:269025169,XF86XK_Music:269025170,XF86XK_Battery:269025171,XF86XK_Bluetooth:269025172,XF86XK_WLAN:269025173,XF86XK_UWB:269025174,XF86XK_AudioForward:269025175,XF86XK_AudioRepeat:269025176,XF86XK_AudioRandomPlay:269025177,XF86XK_Subtitle:269025178,XF86XK_AudioCycleTrack:269025179,XF86XK_CycleAngle:269025180,XF86XK_FrameBack:269025181,XF86XK_FrameForward:269025182,XF86XK_Time:269025183,XF86XK_Select:269025184,XF86XK_View:269025185,XF86XK_TopMenu:269025186,XF86XK_Red:269025187,XF86XK_Green:269025188,XF86XK_Yellow:269025189,XF86XK_Blue:269025190,XF86XK_Suspend:269025191,XF86XK_Hibernate:269025192,XF86XK_TouchpadToggle:269025193,XF86XK_TouchpadOn:269025200,XF86XK_TouchpadOff:269025201,XF86XK_AudioMicMute:269025202,XF86XK_Switch_VT_1:269024769,XF86XK_Switch_VT_2:269024770,XF86XK_Switch_VT_3:269024771,XF86XK_Switch_VT_4:269024772,XF86XK_Switch_VT_5:269024773,XF86XK_Switch_VT_6:269024774,XF86XK_Switch_VT_7:269024775,XF86XK_Switch_VT_8:269024776,XF86XK_Switch_VT_9:269024777,XF86XK_Switch_VT_10:269024778,XF86XK_Switch_VT_11:269024779,XF86XK_Switch_VT_12:269024780,XF86XK_Ungrab:269024800,XF86XK_ClearGrab:269024801,XF86XK_Next_VMode:269024802,XF86XK_Prev_VMode:269024803,XF86XK_LogWindowTree:269024804,XF86XK_LogGrabInfo:269024805};P.default=O},mLcG:function(U,P){var d=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(O){setTimeout(O,16)};U.exports=d},"mO/d":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("I9Y+"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},mOdp:function(U,P,d){var O=d("bYtY"),x=O.createHashMap;function T(v){return{getTargetSeries:function(S){var m={},f=x();return S.eachSeriesByType(v,function(c){c.__paletteScope=m,f.set(c.uid,c)}),f},reset:function(S,m){var f=S.getRawData(),c={},o=S.getData();o.each(function(r){var a=o.getRawIndex(r);c[a]=r}),f.each(function(r){var a=c[r],n=a!=null&&o.getItemVisual(a,"color",!0),e=a!=null&&o.getItemVisual(a,"borderColor",!0),s;if((!n||!e)&&(s=f.getItemModel(r)),!n){var t=s.get("itemStyle.color")||S.getColorFromPalette(f.getName(r)||r+"",S.__paletteScope,f.count());a!=null&&o.setItemVisual(a,"color",t)}if(!e){var i=s.get("itemStyle.borderColor");a!=null&&o.setItemVisual(a,"borderColor",i)}})}}}U.exports=T},mTgk:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("mHUz"));function x(c){return c&&c.__esModule?c:{default:c}}var T={};function v(c,o){if(o===void 0)throw new Error('Undefined keysym for key "'+c+'"');if(c in T)throw new Error('Duplicate entry for key "'+c+'"');T[c]=[o,o,o,o]}function S(c,o,r){if(o===void 0)throw new Error('Undefined keysym for key "'+c+'"');if(r===void 0)throw new Error('Undefined keysym for key "'+c+'"');if(c in T)throw new Error('Duplicate entry for key "'+c+'"');T[c]=[o,o,r,o]}function m(c,o,r){if(o===void 0)throw new Error('Undefined keysym for key "'+c+'"');if(r===void 0)throw new Error('Undefined keysym for key "'+c+'"');if(c in T)throw new Error('Duplicate entry for key "'+c+'"');T[c]=[o,o,o,r]}S("Alt",O.default.XK_Alt_L,O.default.XK_Alt_R),v("AltGraph",O.default.XK_ISO_Level3_Shift),v("CapsLock",O.default.XK_Caps_Lock),S("Control",O.default.XK_Control_L,O.default.XK_Control_R),S("Meta",O.default.XK_Super_L,O.default.XK_Super_R),v("NumLock",O.default.XK_Num_Lock),v("ScrollLock",O.default.XK_Scroll_Lock),S("Shift",O.default.XK_Shift_L,O.default.XK_Shift_R),m("Enter",O.default.XK_Return,O.default.XK_KP_Enter),v("Tab",O.default.XK_Tab),m(" ",O.default.XK_space,O.default.XK_KP_Space),m("ArrowDown",O.default.XK_Down,O.default.XK_KP_Down),m("ArrowUp",O.default.XK_Up,O.default.XK_KP_Up),m("ArrowLeft",O.default.XK_Left,O.default.XK_KP_Left),m("ArrowRight",O.default.XK_Right,O.default.XK_KP_Right),m("End",O.default.XK_End,O.default.XK_KP_End),m("Home",O.default.XK_Home,O.default.XK_KP_Home),m("PageDown",O.default.XK_Next,O.default.XK_KP_Next),m("PageUp",O.default.XK_Prior,O.default.XK_KP_Prior),v("Backspace",O.default.XK_BackSpace),m("Clear",O.default.XK_Clear,O.default.XK_KP_Begin),v("Copy",O.default.XF86XK_Copy),v("Cut",O.default.XF86XK_Cut),m("Delete",O.default.XK_Delete,O.default.XK_KP_Delete),m("Insert",O.default.XK_Insert,O.default.XK_KP_Insert),v("Paste",O.default.XF86XK_Paste),v("Redo",O.default.XK_Redo),v("Undo",O.default.XK_Undo),v("Cancel",O.default.XK_Cancel),v("ContextMenu",O.default.XK_Menu),v("Escape",O.default.XK_Escape),v("Execute",O.default.XK_Execute),v("Find",O.default.XK_Find),v("Help",O.default.XK_Help),v("Pause",O.default.XK_Pause),v("Select",O.default.XK_Select),v("ZoomIn",O.default.XF86XK_ZoomIn),v("ZoomOut",O.default.XF86XK_ZoomOut),v("BrightnessDown",O.default.XF86XK_MonBrightnessDown),v("BrightnessUp",O.default.XF86XK_MonBrightnessUp),v("Eject",O.default.XF86XK_Eject),v("LogOff",O.default.XF86XK_LogOff),v("Power",O.default.XF86XK_PowerOff),v("PowerOff",O.default.XF86XK_PowerDown),v("PrintScreen",O.default.XK_Print),v("Hibernate",O.default.XF86XK_Hibernate),v("Standby",O.default.XF86XK_Standby),v("WakeUp",O.default.XF86XK_WakeUp),v("AllCandidates",O.default.XK_MultipleCandidate),v("Alphanumeric",O.default.XK_Eisu_Shift),v("CodeInput",O.default.XK_Codeinput),v("Compose",O.default.XK_Multi_key),v("Convert",O.default.XK_Henkan),v("GroupFirst",O.default.XK_ISO_First_Group),v("GroupLast",O.default.XK_ISO_Last_Group),v("GroupNext",O.default.XK_ISO_Next_Group),v("GroupPrevious",O.default.XK_ISO_Prev_Group),v("NonConvert",O.default.XK_Muhenkan),v("PreviousCandidate",O.default.XK_PreviousCandidate),v("SingleCandidate",O.default.XK_SingleCandidate),v("HangulMode",O.default.XK_Hangul),v("HanjaMode",O.default.XK_Hangul_Hanja),v("JunjuaMode",O.default.XK_Hangul_Jeonja),v("Eisu",O.default.XK_Eisu_toggle),v("Hankaku",O.default.XK_Hankaku),v("Hiragana",O.default.XK_Hiragana),v("HiraganaKatakana",O.default.XK_Hiragana_Katakana),v("KanaMode",O.default.XK_Kana_Shift),v("KanjiMode",O.default.XK_Kanji),v("Katakana",O.default.XK_Katakana),v("Romaji",O.default.XK_Romaji),v("Zenkaku",O.default.XK_Zenkaku),v("ZenkakuHanaku",O.default.XK_Zenkaku_Hankaku),v("F1",O.default.XK_F1),v("F2",O.default.XK_F2),v("F3",O.default.XK_F3),v("F4",O.default.XK_F4),v("F5",O.default.XK_F5),v("F6",O.default.XK_F6),v("F7",O.default.XK_F7),v("F8",O.default.XK_F8),v("F9",O.default.XK_F9),v("F10",O.default.XK_F10),v("F11",O.default.XK_F11),v("F12",O.default.XK_F12),v("F13",O.default.XK_F13),v("F14",O.default.XK_F14),v("F15",O.default.XK_F15),v("F16",O.default.XK_F16),v("F17",O.default.XK_F17),v("F18",O.default.XK_F18),v("F19",O.default.XK_F19),v("F20",O.default.XK_F20),v("F21",O.default.XK_F21),v("F22",O.default.XK_F22),v("F23",O.default.XK_F23),v("F24",O.default.XK_F24),v("F25",O.default.XK_F25),v("F26",O.default.XK_F26),v("F27",O.default.XK_F27),v("F28",O.default.XK_F28),v("F29",O.default.XK_F29),v("F30",O.default.XK_F30),v("F31",O.default.XK_F31),v("F32",O.default.XK_F32),v("F33",O.default.XK_F33),v("F34",O.default.XK_F34),v("F35",O.default.XK_F35),v("Close",O.default.XF86XK_Close),v("MailForward",O.default.XF86XK_MailForward),v("MailReply",O.default.XF86XK_Reply),v("MailSend",O.default.XF86XK_Send),v("MediaFastForward",O.default.XF86XK_AudioForward),v("MediaPause",O.default.XF86XK_AudioPause),v("MediaPlay",O.default.XF86XK_AudioPlay),v("MediaRecord",O.default.XF86XK_AudioRecord),v("MediaRewind",O.default.XF86XK_AudioRewind),v("MediaStop",O.default.XF86XK_AudioStop),v("MediaTrackNext",O.default.XF86XK_AudioNext),v("MediaTrackPrevious",O.default.XF86XK_AudioPrev),v("New",O.default.XF86XK_New),v("Open",O.default.XF86XK_Open),v("Print",O.default.XK_Print),v("Save",O.default.XF86XK_Save),v("SpellCheck",O.default.XF86XK_Spell),v("AudioVolumeDown",O.default.XF86XK_AudioLowerVolume),v("AudioVolumeUp",O.default.XF86XK_AudioRaiseVolume),v("AudioVolumeMute",O.default.XF86XK_AudioMute),v("MicrophoneVolumeMute",O.default.XF86XK_AudioMicMute),v("LaunchApplication1",O.default.XF86XK_MyComputer),v("LaunchApplication2",O.default.XF86XK_Calculator),v("LaunchCalendar",O.default.XF86XK_Calendar),v("LaunchMail",O.default.XF86XK_Mail),v("LaunchMediaPlayer",O.default.XF86XK_AudioMedia),v("LaunchMusicPlayer",O.default.XF86XK_Music),v("LaunchPhone",O.default.XF86XK_Phone),v("LaunchScreenSaver",O.default.XF86XK_ScreenSaver),v("LaunchSpreadsheet",O.default.XF86XK_Excel),v("LaunchWebBrowser",O.default.XF86XK_WWW),v("LaunchWebCam",O.default.XF86XK_WebCam),v("LaunchWordProcessor",O.default.XF86XK_Word),v("BrowserBack",O.default.XF86XK_Back),v("BrowserFavorites",O.default.XF86XK_Favorites),v("BrowserForward",O.default.XF86XK_Forward),v("BrowserHome",O.default.XF86XK_HomePage),v("BrowserRefresh",O.default.XF86XK_Refresh),v("BrowserSearch",O.default.XF86XK_Search),v("BrowserStop",O.default.XF86XK_Stop),v("Dimmer",O.default.XF86XK_BrightnessAdjust),v("MediaAudioTrack",O.default.XF86XK_AudioCycleTrack),v("RandomToggle",O.default.XF86XK_AudioRandomPlay),v("SplitScreenToggle",O.default.XF86XK_SplitScreen),v("Subtitle",O.default.XF86XK_Subtitle),v("VideoModeNext",O.default.XF86XK_Next_VMode),m("=",O.default.XK_equal,O.default.XK_KP_Equal),m("+",O.default.XK_plus,O.default.XK_KP_Add),m("-",O.default.XK_minus,O.default.XK_KP_Subtract),m("*",O.default.XK_asterisk,O.default.XK_KP_Multiply),m("/",O.default.XK_slash,O.default.XK_KP_Divide),m(".",O.default.XK_period,O.default.XK_KP_Decimal),m(",",O.default.XK_comma,O.default.XK_KP_Separator),m("0",O.default.XK_0,O.default.XK_KP_0),m("1",O.default.XK_1,O.default.XK_KP_1),m("2",O.default.XK_2,O.default.XK_KP_2),m("3",O.default.XK_3,O.default.XK_KP_3),m("4",O.default.XK_4,O.default.XK_KP_4),m("5",O.default.XK_5,O.default.XK_KP_5),m("6",O.default.XK_6,O.default.XK_KP_6),m("7",O.default.XK_7,O.default.XK_KP_7),m("8",O.default.XK_8,O.default.XK_KP_8),m("9",O.default.XK_9,O.default.XK_KP_9);var f=T;P.default=f},mYwL:function(U,P,d){var O=d("bYtY"),x=d("IwbS"),T=d("6GrX"),v=Math.PI;function S(m,f){f=f||{},O.defaults(f,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var c=new x.Group,o=new x.Rect({style:{fill:f.maskColor},zlevel:f.zlevel,z:1e4});c.add(o);var r=f.fontSize+" sans-serif",a=new x.Rect({style:{fill:"none",text:f.text,font:r,textPosition:"right",textDistance:10,textFill:f.textColor},zlevel:f.zlevel,z:10001});if(c.add(a),f.showSpinner){var n=new x.Arc({shape:{startAngle:-v/2,endAngle:-v/2+.1,r:f.spinnerRadius},style:{stroke:f.color,lineCap:"round",lineWidth:f.lineWidth},zlevel:f.zlevel,z:10001});n.animateShape(!0).when(1e3,{endAngle:v*3/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:v*3/2}).delay(300).start("circularInOut"),c.add(n)}return c.resize=function(){var e=T.getWidth(f.text,r),s=f.showSpinner?f.spinnerRadius:0,t=(m.getWidth()-s*2-(f.showSpinner&&e?10:0)-e)/2-(f.showSpinner?0:e/2),i=m.getHeight()/2;f.showSpinner&&n.setShape({cx:t,cy:i}),a.setShape({x:t-s,y:i-s,width:s*2,height:s*2}),o.setShape({x:0,y:0,width:m.getWidth(),height:m.getHeight()})},c.resize(),c}U.exports=S},mdZa:function(U,P,d){"use strict";typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(x,T){"use strict";if(x==null)throw new TypeError("Cannot convert undefined or null to object");for(var v=Object(x),S=1;S<arguments.length;S++){var m=arguments[S];if(m!=null)for(var f in m)Object.prototype.hasOwnProperty.call(m,f)&&(v[f]=m[f])}return v},writable:!0,configurable:!0}),function(){function O(x,T){T=T||{bubbles:!1,cancelable:!1,detail:void 0};var v=document.createEvent("CustomEvent");return v.initCustomEvent(x,T.bubbles,T.cancelable,T.detail),v}O.prototype=window.Event.prototype,typeof window.CustomEvent!="function"&&(window.CustomEvent=O)}(),Number.isInteger=Number.isInteger||function(x){return typeof x=="number"&&isFinite(x)&&Math.floor(x)===x}},mr32:function(U,P,d){"use strict";var O=d("lSNA"),x=d.n(O),T=d("pVnL"),v=d.n(T),S=d("J4zp"),m=d.n(S),f=d("q1tI"),c=d("TSYQ"),o=d.n(c),r=d("BGR+"),a=d("V/uB"),n=d.n(a),e=d("H84U"),s=function(C,w){var b={};for(var I in C)Object.prototype.hasOwnProperty.call(C,I)&&w.indexOf(I)<0&&(b[I]=C[I]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,I=Object.getOwnPropertySymbols(C);_<I.length;_++)w.indexOf(I[_])<0&&Object.prototype.propertyIsEnumerable.call(C,I[_])&&(b[I[_]]=C[I[_]]);return b},t=function(w){var b,I=f.useContext(e.b),_=I.getPrefixCls,L=function(K){var j=w.checked,V=w.onChange,z=w.onClick;V&&V(!j),z&&z(K)},D=w.prefixCls,N=w.className,R=w.checked,B=s(w,["prefixCls","className","checked"]),M=_("tag",D),H=o()(M,(b={},x()(b,"".concat(M,"-checkable"),!0),x()(b,"".concat(M,"-checkable-checked"),R),b),N);return delete B.onChange,f.createElement("span",v()({},B,{className:H,onClick:L}))},i=t,l=d("09Wf"),u=d("g0mS"),h=function(C,w){var b={};for(var I in C)Object.prototype.hasOwnProperty.call(C,I)&&w.indexOf(I)<0&&(b[I]=C[I]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,I=Object.getOwnPropertySymbols(C);_<I.length;_++)w.indexOf(I[_])<0&&Object.prototype.propertyIsEnumerable.call(C,I[_])&&(b[I[_]]=C[I[_]]);return b},p=new RegExp("^(".concat(l.a.join("|"),")(-inverse)?$")),g=new RegExp("^(".concat(l.b.join("|"),")$")),A=function(w,b){var I,_=w.prefixCls,L=w.className,D=w.style,N=w.children,R=w.icon,B=w.color,M=w.onClose,H=w.closeIcon,F=w.closable,K=F===void 0?!1:F,j=h(w,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),V=f.useContext(e.b),z=V.getPrefixCls,Y=V.direction,ee=f.useState(!0),fe=m()(ee,2),ie=fe[0],we=fe[1];f.useEffect(function(){"visible"in j&&we(j.visible)},[j.visible]);var Ce=function(){return B?p.test(B)||g.test(B):!1},Le=v()({backgroundColor:B&&!Ce()?B:void 0},D),He=Ce(),ce=z("tag",_),Pe=o()(ce,(I={},x()(I,"".concat(ce,"-").concat(B),He),x()(I,"".concat(ce,"-has-color"),B&&!He),x()(I,"".concat(ce,"-hidden"),!ie),x()(I,"".concat(ce,"-rtl"),Y==="rtl"),I),L),Q=function(he){if(he.stopPropagation(),M&&M(he),he.defaultPrevented)return;"visible"in j||we(!1)},me=function(){return K?H?f.createElement("div",{className:"".concat(ce,"-close-icon"),onClick:Q},H):f.createElement(n.a,{className:"".concat(ce,"-close-icon"),onClick:Q}):null},Je="onClick"in j||N&&N.type==="a",re=Object(r.default)(j,["visible"]),G=R||null,X=G?f.createElement(f.Fragment,null,G,f.createElement("span",null,N)):N,J=f.createElement("span",v()({},re,{ref:b,className:Pe,style:Le}),X,me());return Je?f.createElement(u.a,null,J):J},y=f.forwardRef(A);y.displayName="Tag",y.CheckableTag=i;var E=P.a=y},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(U){if(!0)module.exports=U();else var P})(function(){var define,module,exports;return function(){function U(P,d,O){function x(S,m){if(!d[S]){if(!P[S]){var f=typeof require=="function"&&require;if(!m&&f)return require(S,!0);if(T)return T(S,!0);var c=new Error("Cannot find module '"+S+"'");throw c.code="MODULE_NOT_FOUND",c}var o=d[S]={exports:{}};P[S][0].call(o.exports,function(r){var a=P[S][1][r];return x(a||r)},o,o.exports,U,P,d,O)}return d[S].exports}for(var T=typeof require=="function"&&require,v=0;v<O.length;v++)x(O[v]);return x}return U}()({1:[function(U,P,d){"use strict";var O=U("./browser/client");O.Buffer=U("buffer").Buffer,O.urllib=U("../shims/xhr"),O.version=U("./browser/version").version,P.exports=O},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(U,P,d){(function(O,x){"use strict";var T=U("babel-runtime/core-js/promise"),v=o(T),S=U("babel-runtime/regenerator"),m=o(S),f=U("babel-runtime/core-js/object/assign"),c=o(f);function o(R){return R&&R.__esModule?R:{default:R}}var r=U("debug")("ali-oss"),a=U("copy-to"),n=U("xml2js"),e=U("agentkeepalive"),s=U("merge-descriptors"),t=U("url"),i=U("is-type-of"),l=U("platform"),u=U("utility"),h=U("urllib"),p=U("./version"),g=U("bowser"),A=U("../common/signUtils"),y=U("../common/utils/isIP"),E=y.isIP,C=U("../common/client/initOptions"),w=U("../common/utils/createRequest"),b=w.createRequest,I=new e;function _(){var R=l.name,B=l.version;R&&R.toLowerCase&&R.toLowerCase()==="ie"&&B.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function L(){return location&&location.protocol==="https:"}function D(R,B){if(_(),!(this instanceof D))return new D(R,B);R&&R.inited?this.options=R:this.options=D.initOptions(R),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=h,this.agent=this.options.agent||I),this.ctx=B,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}P.exports=D,D.initOptions=function(B){B.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var M=(0,c.default)({secure:L(),useFetch:!1},B);return C(M)};var N=D.prototype;N.debug=r,s(N,U("./object")),s(N,U("../common/bucket/getBucketWebsite")),s(N,U("../common/bucket/putBucketWebsite")),s(N,U("../common/bucket/deleteBucketWebsite")),s(N,U("../common/bucket/getBucketLifecycle")),s(N,U("../common/bucket/putBucketLifecycle")),s(N,U("../common/bucket/deleteBucketLifecycle")),s(N,U("../common/bucket/putBucketVersioning")),s(N,U("../common/bucket/getBucketVersioning")),s(N,U("./managed-upload")),s(N,U("../common/multipart")),s(N,U("../common/parallel")),N.signature=function(B){return this.debug("authorization stringToSign: %s",B,"info"),A.computeSignature(this.options.accessKeySecret,B)},N.authorization=function(B,M,H,F){var K=A.buildCanonicalString(B.toUpperCase(),M,{headers:F,parameters:H});return A.authorization(this.options.accessKeyId,this.options.accessKeySecret,K)},N.request=function(B){var M,H,F,K,j,V;return m.default.async(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return M=b.call(this,B),this.options.useFetch||(M.params.mode="disable-fetch"),H=void 0,F=void 0,K=!!B.stream,Y.prev=5,Y.next=8,m.default.awrap(this.urllib.request(M.url,M.params));case 8:H=Y.sent,this.debug("response %s %s, got %s, headers: %j",B.method,M.url,H.status,H.headers,"info"),Y.next=15;break;case 12:Y.prev=12,Y.t0=Y.catch(5),F=Y.t0;case 15:if(j=void 0,!(H&&B.successStatuses&&B.successStatuses.indexOf(H.status)===-1)){Y.next=28;break}return Y.next=19,m.default.awrap(this.requestError(H));case 19:if(j=Y.sent,!(j.code==="RequestTimeTooSkewed"&&!K)){Y.next=25;break}return this.options.amendTimeSkewed=+new Date(j.serverTime)-new Date,Y.next=24,m.default.awrap(this.request(B));case 24:return Y.abrupt("return",Y.sent);case 25:j.params=B,Y.next=32;break;case 28:if(!F){Y.next=32;break}return Y.next=31,m.default.awrap(this.requestError(F));case 31:j=Y.sent;case 32:if(!j){Y.next=34;break}throw j;case 34:if(!B.xmlResponse){Y.next=39;break}return Y.next=37,m.default.awrap(this.parseXML(H.data));case 37:V=Y.sent,H.data=V;case 39:return Y.abrupt("return",H);case 40:case"end":return Y.stop()}},null,this,[[5,12]])},N._getResource=function(B){var M="/";return B.bucket&&(M+=B.bucket+"/"),B.object&&(M+=B.object),M},N._isIP=E,N._escape=function(B){return u.encodeURIComponent(B).replace(/%2F/g,"/")},N._getReqUrl=function(B){var M={};a(this.options.endpoint).to(M);var H=this._isIP(M.hostname),F=this.options.cname;B.bucket&&!F&&!H&&(M.host=B.bucket+"."+M.host);var K="/";B.bucket&&H&&(K+=B.bucket+"/"),B.object&&(K+=this._escape(B.object).replace(/\+/g,"%2B")),M.pathname=K;var j={};if(B.query&&s(j,B.query),B.subres){var V={};i.string(B.subres)?V[B.subres]="":i.array(B.subres)?B.subres.forEach(function(z){V[z]=""}):V=B.subres,s(j,V)}return M.query=j,t.format(M)},N._getUserAgent=function(){var B=x&&x.browser?"js":"nodejs",M="aliyun-sdk-"+B+"/"+p.version,H=l.description;return!H&&x&&(H="Node.js "+x.version.slice(1)+" on "+x.platform+" "+x.arch),this._checkUserAgent(M+" "+H)},N._checkUserAgent=function(B){var M=B.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return M},N.checkBrowserAndVersion=function(B,M){return g.name===B&&g.version.split(".")[0]===M},N.parseXML=function(B){return new v.default(function(M,H){O.isBuffer(B)&&(B=B.toString()),n.parseString(B,{explicitRoot:!1,explicitArray:!1},function(F,K){F?H(F):M(K)})})},N.requestError=function(B){var M,H,F,K;return m.default.async(function(V){for(;;)switch(V.prev=V.next){case 0:if(M=null,!(!B.data||!B.data.length)){V.next=5;break}B.status===-1||B.status===-2?(M=new Error(B.message),M.name=B.name,M.status=B.status,M.code=B.name):(B.status===404?(M=new Error("Object not exists"),M.name="NoSuchKeyError",M.status=404,M.code="NoSuchKey"):B.status===412?(M=new Error("Pre condition failed"),M.name="PreconditionFailedError",M.status=412,M.code="PreconditionFailed"):(M=new Error("Unknow error, status: "+B.status),M.name="UnknowError",M.status=B.status),M.requestId=B.headers["x-oss-request-id"],M.host=""),V.next=33;break;case 5:return H=String(B.data),this.debug("request response error data: %s",H,"error"),F=void 0,V.prev=8,V.next=11,m.default.awrap(this.parseXML(H));case 11:if(V.t0=V.sent,V.t0){V.next=14;break}V.t0={};case 14:F=V.t0,V.next=24;break;case 17:return V.prev=17,V.t1=V.catch(8),this.debug(H,"error"),V.t1.message+=`
|
|
|
raw xml: `+H,V.t1.status=B.status,V.t1.requestId=B.headers["x-oss-request-id"],V.abrupt("return",V.t1);case 24:K=F.Message||"unknow request error, status: "+B.status,F.Condition&&(K+=" (condition: "+F.Condition+")"),M=new Error(K),M.name=F.Code?F.Code+"Error":"UnknowError",M.status=B.status,M.code=F.Code,M.requestId=F.RequestId,M.hostId=F.HostId,M.serverTime=F.ServerTime;case 33:return this.debug("generate error %j",M,"error"),V.abrupt("return",M);case 35:case"end":return V.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:U("../../node_modules/is-buffer/index.js")},U("_process"))},{"../../node_modules/is-buffer/index.js":197,"../common/bucket/deleteBucketLifecycle":6,"../common/bucket/deleteBucketWebsite":7,"../common/bucket/getBucketLifecycle":8,"../common/bucket/getBucketVersioning":9,"../common/bucket/getBucketWebsite":10,"../common/bucket/putBucketLifecycle":11,"../common/bucket/putBucketVersioning":12,"../common/bucket/putBucketWebsite":13,"../common/client/initOptions":15,"../common/multipart":18,"../common/parallel":33,"../common/signUtils":34,"../common/utils/createRequest":38,"../common/utils/isIP":45,"./managed-upload":3,"./object":4,"./version":5,_process:208,agentkeepalive:48,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,bowser:70,"copy-to":76,debug:288,"is-type-of":289,"merge-descriptors":200,platform:206,url:238,urllib:291,utility:290,xml2js:249}],3:[function(U,P,d){(function(O){"use strict";var x=U("babel-runtime/core-js/array/from"),T=c(x),v=U("babel-runtime/core-js/promise"),S=c(v),m=U("babel-runtime/regenerator"),f=c(m);function c(A){return A&&A.__esModule?A:{default:A}}var o=U("is-type-of"),r=U("util"),a=U("path"),n=U("mime"),e=U("copy-to"),s=U("../common/utils/isBlob"),t=s.isBlob,i=U("../common/utils/isFile"),l=i.isFile,u=d;u.multipartUpload=function(y,E,C){var w,b,I,_,L,D,N,R,B;return f.default.async(function(H){for(;;)switch(H.prev=H.next){case 0:if(this.resetCancelFlag(),C=C||{},!(C.checkpoint&&C.checkpoint.uploadId)){H.next=6;break}return H.next=5,f.default.awrap(this._resumeMultipart(C.checkpoint,C));case 5:return H.abrupt("return",H.sent);case 6:return w=100*1024,C.mime||(l(E)?C.mime=n.getType(a.extname(E.name)):t(E)?C.mime=E.type:C.mime=n.getType(a.extname(E))),C.headers=C.headers||{},this._convertMetaToHeaders(C.meta,C.headers),H.next=12,f.default.awrap(this._getFileSize(E));case 12:if(b=H.sent,!(b<w)){H.next=25;break}return I=this._createStream(E,0,b),C.contentLength=b,H.next=18,f.default.awrap(this.putStream(y,I,C));case 18:if(_=H.sent,!(C&&C.progress)){H.next=22;break}return H.next=22,f.default.awrap(C.progress(1));case 22:return L={res:_.res,bucket:this.options.bucket,name:y,etag:_.res.headers.etag},(C.headers&&C.headers["x-oss-callback"]||C.callback)&&(L.data=_.data),H.abrupt("return",L);case 25:if(!(C.partSize&&!(parseInt(C.partSize,10)===C.partSize))){H.next=27;break}throw new Error("partSize must be int number");case 27:if(!(C.partSize&&C.partSize<w)){H.next=29;break}throw new Error("partSize must not be smaller than "+w);case 29:return H.next=31,f.default.awrap(this.initMultipartUpload(y,C));case 31:if(D=H.sent,N=D.uploadId,R=this._getPartSize(b,C.partSize),B={file:E,name:y,fileSize:b,partSize:R,uploadId:N,doneParts:[]},!(C&&C.progress)){H.next=38;break}return H.next=38,f.default.awrap(C.progress(0,B,D.res));case 38:return H.next=40,f.default.awrap(this._resumeMultipart(B,C));case 40:return H.abrupt("return",H.sent);case 41:case"end":return H.stop()}},null,this)},u._resumeMultipart=function(y,E){var C,w,b,I,_,L,D,N,R,B,M,H,F,K,j,V,z,Y;return f.default.async(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(C=this,!this.isCancel()){fe.next=3;break}throw this._makeCancelEvent();case 3:return w=y.file,b=y.fileSize,I=y.partSize,_=y.uploadId,L=y.doneParts,D=y.name,N=[],L.length>0&&e(L).to(N),R=this._divideParts(b,I),B=R.length,M=!1,H=function(we,Ce){var Le=this;return new S.default(function(ce,Pe){var Q,me,Je,re;return f.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:if(X.prev=0,we.isCancel()){X.next=18;break}return Q=R[Ce-1],me={stream:we._createStream(w,Q.start,Q.end),size:Q.end-Q.start},X.next=6,f.default.awrap(we._uploadPart(D,_,Ce,me));case 6:if(Je=X.sent,!(!we.isCancel()&&!M)){X.next=15;break}if(y.doneParts.push({number:Ce,etag:Je.res.headers.etag}),!E.progress){X.next=12;break}return X.next=12,f.default.awrap(E.progress(L.length/B,y,Je.res));case 12:ce({number:Ce,etag:Je.res.headers.etag}),X.next=16;break;case 15:ce();case 16:X.next=19;break;case 18:ce();case 19:X.next=30;break;case 21:X.prev=21,X.t0=X.catch(0),re=new Error,re.name=X.t0.name,re.message=X.t0.message,re.stack=X.t0.stack,re.partNum=Ce,e(X.t0).to(re),Pe(re);case 30:case"end":return X.stop()}},null,Le,[[0,21]])})},F=(0,T.default)(new Array(B),function(ie,we){return we+1}),K=N.map(function(ie){return ie.number}),j=F.filter(function(ie){return K.indexOf(ie)<0}),V=5,z=E.parallel||V,fe.next=17,f.default.awrap(this._parallel(j,z,function(ie){return new S.default(function(we,Ce){H(C,ie).then(function(Le){Le&&N.push(Le),we()}).catch(function(Le){Ce(Le)})})}));case 17:if(Y=fe.sent,M=!0,!this.isCancel()){fe.next=22;break}throw H=null,this._makeCancelEvent();case 22:if(!(Y&&Y.length>0)){fe.next=25;break}throw Y[0].message="Failed to upload some parts with error: "+Y[0].toString()+" part_num: "+Y[0].partNum,Y[0];case 25:return fe.next=27,f.default.awrap(this.completeMultipartUpload(D,_,N,E));case 27:return fe.abrupt("return",fe.sent);case 28:case"end":return fe.stop()}},null,this)},u._getFileSize=function(y){return f.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:if(!o.buffer(y)){C.next=4;break}return C.abrupt("return",y.length);case 4:if(!(t(y)||l(y))){C.next=6;break}return C.abrupt("return",y.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return C.stop()}},null,this)};var h=U("stream"),p=h.Readable;function g(A,y){if(!(this instanceof g))return new g(A,y);p.call(this,y),this.file=A,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}r.inherits(g,p),g.prototype.readFileAndPush=function(y){if(this.fileBuffer)for(var E=!0;E&&this.fileBuffer&&this.start<this.fileBuffer.length;){var C=this.start,w=C+y;w=w>this.fileBuffer.length?this.fileBuffer.length:w,this.start=w,E=this.push(this.fileBuffer.slice(C,w))}},g.prototype._read=function(y){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var E=16*1024;y=y||E;var C=this;this.reader.onload=function(b){C.fileBuffer=O.from(new Uint8Array(b.target.result)),C.file=null,C.readFileAndPush(y)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(y)},u._createStream=function(y,E,C){if(t(y)||l(y))return new g(y.slice(E,C));throw new Error("_createStream requires File/Blob.")},u._getPartSize=function(y,E){var C=10*1e3,w=1024*1024;return E?Math.max(Math.ceil(y/C),E):w},u._divideParts=function(y,E){for(var C=Math.ceil(y/E),w=[],b=0;b<C;b++){var I=E*b,_=Math.min(I+E,y);w.push({start:I,end:_})}return w}}).call(this,U("buffer").Buffer)},{"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/array/from":52,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,buffer:73,"copy-to":76,"is-type-of":289,mime:202,path:205,stream:230,util:243}],4:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/promise"),x=o(O),T=U("babel-runtime/core-js/object/keys"),v=o(T),S=U("babel-runtime/core-js/object/assign"),m=o(S),f=U("babel-runtime/regenerator"),c=o(f);function o(C){return C&&C.__esModule?C:{default:C}}var r=U("utility"),a=U("fs"),n=U("is-type-of"),e=U("url"),s=U("copy-to"),t=U("path"),i=U("mime"),l=U("../common/callback"),u=U("../common/signUtils"),h=U("merge-descriptors"),p=U("../common/utils/isBlob"),g=p.isBlob,A=U("../common/utils/isFile"),y=A.isFile,E=d;E.append=function(w,b,I){var _;return c.default.async(function(D){for(;;)switch(D.prev=D.next){case 0:return I=I||{},I.position===void 0&&(I.position="0"),I.subres={append:"",position:I.position},I.method="POST",D.next=6,c.default.awrap(this.put(w,b,I));case 6:return _=D.sent,_.nextAppendPosition=_.res.headers["x-oss-next-append-position"],D.abrupt("return",_);case 9:case"end":return D.stop()}},null,this)},E.put=function(w,b,I){var _,L,D,N,R,B,M;return c.default.async(function(F){for(;;)switch(F.prev=F.next){case 0:if(_=void 0,I=I||{},w=this._objectName(w),!n.buffer(b)){F.next=7;break}_=b,F.next=33;break;case 7:if(!(g(b)||y(b))){F.next=32;break}return I.mime||(y(b)?I.mime=i.getType(t.extname(b.name)):I.mime=b.type),L=this._createStream(b,0,b.size),F.next=12,c.default.awrap(this._getFileSize(b));case 12:return I.contentLength=F.sent,F.prev=13,F.next=16,c.default.awrap(this.putStream(w,L,I));case 16:return D=F.sent,F.abrupt("return",D);case 20:if(F.prev=20,F.t0=F.catch(13),!(F.t0.code==="RequestTimeTooSkewed")){F.next=29;break}return this.options.amendTimeSkewed=+new Date(F.t0.serverTime)-new Date,F.next=26,c.default.awrap(this.put(w,b,I));case 26:return F.abrupt("return",F.sent);case 29:throw F.t0;case 30:F.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return I.headers=I.headers||{},this._convertMetaToHeaders(I.meta,I.headers),N=I.method||"PUT",R=this._objectRequestParams(N,w,I),l.encodeCallback(R,I),R.mime=I.mime,R.content=_,R.successStatuses=[200],F.next=43,c.default.awrap(this.request(R));case 43:return B=F.sent,M={name:w,url:this._objectUrl(w),res:B.res},R.headers&&R.headers["x-oss-callback"]&&(M.data=JSON.parse(B.data.toString())),F.abrupt("return",M);case 47:case"end":return F.stop()}},null,this,[[13,20]])},E.putStream=function(w,b,I){var _,L,D,N;return c.default.async(function(B){for(;;)switch(B.prev=B.next){case 0:return I=I||{},I.headers=I.headers||{},w=this._objectName(w),I.contentLength?I.headers["Content-Length"]=I.contentLength:I.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(I.meta,I.headers),_=I.method||"PUT",L=this._objectRequestParams(_,w,I),l.encodeCallback(L,I),L.mime=I.mime,L.stream=b,L.successStatuses=[200],B.next=13,c.default.awrap(this.request(L));case 13:return D=B.sent,N={name:w,url:this._objectUrl(w),res:D.res},L.headers&&L.headers["x-oss-callback"]&&(N.data=JSON.parse(D.data.toString())),B.abrupt("return",N);case 17:case"end":return B.stop()}},null,this)},h(E,U("../common/object/copyObject")),h(E,U("../common/object/getObjectTagging")),h(E,U("../common/object/putObjectTagging")),h(E,U("../common/object/deleteObjectTagging")),h(E,U("../common/image")),h(E,U("../common/object/getBucketVersions")),h(E,U("../common/object/getACL")),h(E,U("../common/object/putACL")),h(E,U("../common/object/head")),h(E,U("../common/object/delete")),h(E,U("../common/object/get")),h(E,U("../common/object/putSymlink")),h(E,U("../common/object/getSymlink")),h(E,U("../common/object/deleteMulti")),h(E,U("../common/object/getObjectMeta")),E.putMeta=function(w,b,I){var _;return c.default.async(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,c.default.awrap(this.copy(w,w,{meta:b||{},timeout:I&&I.timeout,ctx:I&&I.ctx}));case 2:return _=D.sent,D.abrupt("return",_);case 4:case"end":return D.stop()}},null,this)},E.list=function(w,b){var I,_,L,D,N;return c.default.async(function(B){for(;;)switch(B.prev=B.next){case 0:return I=this._objectRequestParams("GET","",b),I.query=w,I.xmlResponse=!0,I.successStatuses=[200],B.next=6,c.default.awrap(this.request(I));case 6:return _=B.sent,L=_.data.Contents,D=this,L&&(Array.isArray(L)||(L=[L]),L=L.map(function(M){return{name:M.Key,url:D._objectUrl(M.Key),lastModified:M.LastModified,etag:M.ETag,type:M.Type,size:Number(M.Size),storageClass:M.StorageClass,owner:{id:M.Owner.ID,displayName:M.Owner.DisplayName}}})),N=_.data.CommonPrefixes||null,N&&(Array.isArray(N)||(N=[N]),N=N.map(function(M){return M.Prefix})),B.abrupt("return",{res:_.res,objects:L,prefixes:N,nextMarker:_.data.NextMarker||null,isTruncated:_.data.IsTruncated==="true"});case 13:case"end":return B.stop()}},null,this)},E.restore=function(w,b){var I,_;return c.default.async(function(D){for(;;)switch(D.prev=D.next){case 0:return b=b||{},b.subres=(0,m.default)({restore:""},b.subres),b.versionId&&(b.subres.versionId=b.versionId),I=this._objectRequestParams("POST",w,b),I.successStatuses=[202],D.next=7,c.default.awrap(this.request(I));case 7:return _=D.sent,D.abrupt("return",{res:_.res});case 9:case"end":return D.stop()}},null,this)},E.signatureUrl=function(w,b){b=b||{},w=this._objectName(w),b.method=b.method||"GET";var I=r.timestamp()+(b.expires||1800),_={bucket:this.options.bucket,object:w},L=this._getResource(_);this.options.stsToken&&(b["security-token"]=this.options.stsToken);var D=u._signatureForURL(this.options.accessKeySecret,b,L,I),N=e.parse(this._getReqUrl(_));return N.query={OSSAccessKeyId:this.options.accessKeyId,Expires:I,Signature:D.Signature},s(D.subResource).to(N.query),N.format()},E.getObjectUrl=function(w,b){return b?b[b.length-1]!=="/"&&(b+="/"):b=this.options.endpoint.format(),b+this._escape(this._objectName(w))},E._objectUrl=function(w){return this._getReqUrl({bucket:this.options.bucket,object:w})},E.generateObjectUrl=function(C,w){if(w)w[w.length-1]!=="/"&&(w+="/");else{w=this.options.endpoint.format();var b=e.parse(w),I=this.options.bucket;b.hostname=I+"."+b.hostname,b.host=I+"."+b.host,w=b.format()}return w+this._escape(this._objectName(C))},E._objectRequestParams=function(w,b,I){if(!this.options.bucket)throw new Error("Please create a bucket first");I=I||{},b=this._objectName(b);var _={object:b,bucket:this.options.bucket,method:w,subres:I&&I.subres,timeout:I&&I.timeout,ctx:I&&I.ctx};return I.headers&&(_.headers={},s(I.headers).to(_.headers)),_},E._objectName=function(w){return w.replace(/^\/+/,"")},E._convertMetaToHeaders=function(w,b){if(!w)return;(0,v.default)(w).forEach(function(I){b["x-oss-meta-"+I]=w[I]})},E._deleteFileSafe=function(w){var b=this;return new x.default(function(I){a.exists(w,function(_){_?a.unlink(w,function(L){L&&b.debug("unlink %j error: %s",w,L,"error"),I()}):I()})})}},{"../common/callback":14,"../common/image":16,"../common/object/copyObject":19,"../common/object/delete":20,"../common/object/deleteMulti":21,"../common/object/deleteObjectTagging":22,"../common/object/get":23,"../common/object/getACL":24,"../common/object/getBucketVersions":25,"../common/object/getObjectMeta":26,"../common/object/getObjectTagging":27,"../common/object/getSymlink":28,"../common/object/head":29,"../common/object/putACL":30,"../common/object/putObjectTagging":31,"../common/object/putSymlink":32,"../common/signUtils":34,"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,"copy-to":76,fs:71,"is-type-of":289,"merge-descriptors":200,mime:202,path:205,url:238,utility:290}],5:[function(U,P,d){"use strict";d.version="6.10.0"},{}],6:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=T(O);function T(f){return f&&f.__esModule?f:{default:f}}var v=U("../utils/checkBucketName"),S=v.checkBucketName,m=d;m.deleteBucketLifecycle=function(c,o){var r,a;return x.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return S(c),r=this._bucketRequestParams("DELETE",c,"lifecycle",o),r.successStatuses=[204],e.next=5,x.default.awrap(this.request(r));case 5:return a=e.sent,e.abrupt("return",{res:a.res});case 7:case"end":return e.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=T(O);function T(f){return f&&f.__esModule?f:{default:f}}var v=U("../utils/checkBucketName"),S=v.checkBucketName,m=d;m.deleteBucketWebsite=function(c,o){var r,a;return x.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return S(c),r=this._bucketRequestParams("DELETE",c,"website",o),r.successStatuses=[204],e.next=5,x.default.awrap(this.request(r));case 5:return a=e.sent,e.abrupt("return",{res:a.res});case 7:case"end":return e.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=T(O);function T(a){return a&&a.__esModule?a:{default:a}}var v=U("../utils/checkBucketName"),S=v.checkBucketName,m=U("../utils/isArray"),f=m.isArray,c=U("../utils/formatObjKey"),o=c.formatObjKey,r=d;r.getBucketLifecycle=function(n,e){var s,t,i;return x.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return S(n),s=this._bucketRequestParams("GET",n,"lifecycle",e),s.successStatuses=[200],s.xmlResponse=!0,u.next=6,x.default.awrap(this.request(s));case 6:return t=u.sent,i=t.data.Rule||null,i&&(f(i)||(i=[i]),i=i.map(function(h){return h.ID&&(h.id=h.ID,delete h.ID),h.Tag&&!f(h.Tag)&&(h.Tag=[h.Tag]),o(h,"firstLowerCase")})),u.abrupt("return",{rules:i,res:t.res});case 10:case"end":return u.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=T(O);function T(f){return f&&f.__esModule?f:{default:f}}var v=U("../utils/checkBucketName"),S=v.checkBucketName,m=d;m.getBucketVersioning=function(c,o){var r,a,n;return x.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return S(c),r=this._bucketRequestParams("GET",c,"versioning",o),r.xmlResponse=!0,r.successStatuses=[200],s.next=6,x.default.awrap(this.request(r));case 6:return a=s.sent,n=a.data.Status,s.abrupt("return",{status:a.status,versionStatus:n,res:a.res});case 9:case"end":return s.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=T(O);function T(o){return o&&o.__esModule?o:{default:o}}var v=U("../utils/checkBucketName"),S=v.checkBucketName,m=U("../utils/isObject"),f=m.isObject,c=d;c.getBucketWebsite=function(r,a){var n,e,s;return x.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return S(r),n=this._bucketRequestParams("GET",r,"website",a),n.successStatuses=[200],n.xmlResponse=!0,i.next=6,x.default.awrap(this.request(n));case 6:return e=i.sent,s=[],e.data.RoutingRules&&e.data.RoutingRules.RoutingRule&&(f(e.data.RoutingRules.RoutingRule)?s=[e.data.RoutingRules.RoutingRule]:s=e.data.RoutingRules.RoutingRule),i.abrupt("return",{index:e.data.IndexDocument&&e.data.IndexDocument.Suffix||"",supportSubDir:e.data.IndexDocument&&e.data.IndexDocument.SupportSubDir||"false",type:e.data.IndexDocument&&e.data.IndexDocument.Type,routingRules:s,error:e.data.ErrorDocument&&e.data.ErrorDocument.Key||null,res:e.res});case 10:case"end":return i.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=T(O);function T(y){return y&&y.__esModule?y:{default:y}}var v=U("../utils/checkBucketName"),S=v.checkBucketName,m=U("../utils/isArray"),f=m.isArray,c=U("../utils/deepCopy"),o=c.deepCopy,r=U("../utils/isObject"),a=r.isObject,n=U("../utils/obj2xml"),e=n.obj2xml,s=U("../utils/checkObjectTag"),t=s.checkObjectTag,i=U("../utils/getStrBytesCount"),l=i.getStrBytesCount,u=d;u.putBucketLifecycle=function(E,C,w){var b,I,_,L,D;return x.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:if(S(E),f(C)){R.next=3;break}throw new Error("rules must be Array");case 3:return b=this._bucketRequestParams("PUT",E,"lifecycle",w),I=[],_={LifecycleConfiguration:{Rule:I}},C.forEach(function(B){h(B),A(B),B.id&&(B.ID=B.id,delete B.id),I.push(B)}),L=e(_,{headers:!0,firstUpperCase:!0}),b.content=L,b.mime="xml",b.successStatuses=[200],R.next=13,x.default.awrap(this.request(b));case 13:return D=R.sent,R.abrupt("return",{res:D.res});case 15:case"end":return R.stop()}},null,this)};function h(y){y.days&&(y.expiration={days:y.days}),y.date&&(y.expiration={createdBeforeDate:y.date})}function p(y,E){var C=y.days,w=y.createdBeforeDate;if(!C&&!w)throw new Error(E+" must includes days or createdBeforeDate");if(C&&!/^[1-9][0-9]*$/.test(C))throw new Error("days must be a positive integer");if(w&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(w))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function g(y){if(!f(y)&&!a(y))throw new Error("tag must be Object or Array");y=a(y)?[y]:y;var E={},C=o(y);C.forEach(function(w){E[w.key]=w.value}),t(E)}function A(y){if(y.id&&l(y.id)>255)throw new Error("ID is composed of 255 bytes at most");if(y.prefix===""||y.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(y.status))throw new Error("Status must be Enabled or Disabled");if(y.transition){if(!["IA","Archive"].includes(y.transition.storageClass))throw new Error("StorageClass must be IA or Archive");p(y.transition,"Transition")}if(y.expiration){if(!y.expiration.expiredObjectDeleteMarker)p(y.expiration,"Expiration");else if(y.expiration.days||y.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(y.abortMultipartUpload&&p(y.abortMultipartUpload,"AbortMultipartUpload"),!y.expiration&&!y.abortMultipartUpload&&!y.transition&&!y.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(y.tag){if(y.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");g(y.tag)}}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=T(O);function T(o){return o&&o.__esModule?o:{default:o}}var v=U("../utils/checkBucketName"),S=v.checkBucketName,m=U("../utils/obj2xml"),f=m.obj2xml,c=d;c.putBucketVersioning=function(r,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,s,t;return x.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:if(S(r),["Enabled","Suspended"].includes(a)){l.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return e=this._bucketRequestParams("PUT",r,"versioning",n),s={VersioningConfiguration:{Status:a}},e.mime="xml",e.content=f(s,{headers:!0}),l.next=9,x.default.awrap(this.request(e));case 9:return t=l.sent,l.abrupt("return",{res:t.res,status:t.status});case 11:case"end":return l.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=T(O);function T(a){return a&&a.__esModule?a:{default:a}}var v=U("../utils/checkBucketName"),S=v.checkBucketName,m=U("../utils/obj2xml"),f=m.obj2xml,c=U("../utils/isArray"),o=c.isArray,r=d;r.putBucketWebsite=function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments[2],t,i,l,u,h;return x.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:if(S(n),t=this._bucketRequestParams("PUT",n,"website",s),i={Suffix:e.index||"index.html"},l={IndexDocument:i},u={WebsiteConfiguration:l},e.supportSubDir&&(i.SupportSubDir=e.supportSubDir),e.type&&(i.Type=e.type),e.error&&(l.ErrorDocument={Key:e.error}),!(e.routingRules!==void 0)){g.next=12;break}if(o(e.routingRules)){g.next=11;break}throw new Error("RoutingRules must be Array");case 11:l.RoutingRules={RoutingRule:e.routingRules};case 12:return u=f(u),t.content=u,t.mime="xml",t.successStatuses=[200],g.next=18,x.default.awrap(this.request(t));case 18:return h=g.sent,g.abrupt("return",{res:h.res});case 20:case"end":return g.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(U,P,d){(function(O){"use strict";var x=U("babel-runtime/core-js/object/keys"),T=m(x),v=U("babel-runtime/core-js/json/stringify"),S=m(v);function m(f){return f&&f.__esModule?f:{default:f}}d.encodeCallback=function(c,o){if(c.headers=c.headers||{},!Object.prototype.hasOwnProperty.call(c.headers,"x-oss-callback")&&o.callback){var r={callbackUrl:encodeURI(o.callback.url),callbackBody:o.callback.body};o.callback.host&&(r.callbackHost=o.callback.host),o.callback.contentType&&(r.callbackBodyType=o.callback.contentType);var a=O.from((0,S.default)(r)).toString("base64");if(c.headers["x-oss-callback"]=a,o.callback.customValue){var n={};(0,T.default)(o.callback.customValue).forEach(function(e){n["x:"+e]=o.callback.customValue[e]}),c.headers["x-oss-callback-var"]=O.from((0,S.default)(n)).toString("base64")}}}}).call(this,U("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/object/assign"),x=T(O);function T(r){return r&&r.__esModule?r:{default:r}}var v=U("humanize-ms"),S=U("url"),m=U("../utils/checkBucketName"),f=m.checkBucketName;function c(r,a){var n=S.parse(r);if(n.protocol||(n=S.parse("http"+(a?"s":"")+"://"+r)),n.protocol!=="http:"&&n.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return n}function o(r,a,n){var e=n?"https://":"http://",s=a?"-internal.aliyuncs.com":".aliyuncs.com",t="vpc100-oss-cn-";return r.substr(0,t.length)===t&&(s=".aliyuncs.com"),S.parse(e+r+s)}P.exports=function(r){if(!r||!r.accessKeyId||!r.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");r.bucket&&f(r.bucket);var a=(0,x.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},r);if(a.accessKeyId=a.accessKeyId.trim(),a.accessKeySecret=a.accessKeySecret.trim(),a.timeout&&(a.timeout=v(a.timeout)),a.endpoint)a.endpoint=c(a.endpoint,a.secure);else if(a.region)a.endpoint=o(a.region,a.internal,a.secure);else throw new Error("require options.endpoint or options.region");return a.inited=!0,a}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(U,P,d){"use strict";var O=U("merge-descriptors"),x=d;O(x,U("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=T(O);function T(a){return a&&a.__esModule?a:{default:a}}var v=U("../utils/checkBucketName"),S=v.checkBucketName,m=U("querystring"),f=U("js-base64"),c=f.Base64.encode,o=d;o.processObjectSave=function(n,e,s,t){var i,l,u,h;return x.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return r(n,"sourceObject"),r(e,"targetObject"),r(s,"process"),e=this._objectName(e),t&&S(t),i=this._objectRequestParams("POST",n,{subres:"x-oss-process"}),l=t?",b_"+c(t):"",e=c(e),u={"x-oss-process":s+"|sys/saveas,o_"+e+l},i.content=m.stringify(u),g.next=12,x.default.awrap(this.request(i));case 12:return h=g.sent,g.abrupt("return",{res:h.res,status:h.res.status});case 14:case"end":return g.stop()}},null,this)};function r(a,n){if(!a)throw new Error(n+" is required");if(typeof a!="string")throw new Error(n+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=T(O);function T(o){return o&&o.__esModule?o:{default:o}}var v=U("copy-to"),S=U("./callback"),m=U("./utils/deepCopy"),f=m.deepCopy,c=d;c.listUploads=function(r,a){var n,e,s,t;return x.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return a=a||{},n={},v(a).to(n),n.subres="uploads",e=this._objectRequestParams("GET","",n),e.query=r,e.xmlResponse=!0,e.successStatuses=[200],l.next=10,x.default.awrap(this.request(e));case 10:return s=l.sent,t=s.data.Upload||[],Array.isArray(t)||(t=[t]),t=t.map(function(u){return{name:u.Key,uploadId:u.UploadId,initiated:u.Initiated}}),l.abrupt("return",{res:s.res,uploads:t,bucket:s.data.Bucket,nextKeyMarker:s.data.NextKeyMarker,nextUploadIdMarker:s.data.NextUploadIdMarker,isTruncated:s.data.IsTruncated==="true"});case 15:case"end":return l.stop()}},null,this)},c.listParts=function(r,a,n,e){var s,t,i;return x.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return e=e||{},s={},v(e).to(s),s.subres={uploadId:a},t=this._objectRequestParams("GET",r,s),t.query=n,t.xmlResponse=!0,t.successStatuses=[200],u.next=10,x.default.awrap(this.request(t));case 10:return i=u.sent,u.abrupt("return",{res:i.res,uploadId:i.data.UploadId,bucket:i.data.Bucket,name:i.data.Key,partNumberMarker:i.data.PartNumberMarker,nextPartNumberMarker:i.data.NextPartNumberMarker,maxParts:i.data.MaxParts,isTruncated:i.data.IsTruncated,parts:i.data.Part||[]});case 12:case"end":return u.stop()}},null,this)},c.abortMultipartUpload=function(r,a,n){var e,s,t;return x.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return this._stop(),n=n||{},e={},v(n).to(e),e.subres={uploadId:a},s=this._objectRequestParams("DELETE",r,e),s.successStatuses=[204],l.next=9,x.default.awrap(this.request(s));case 9:return t=l.sent,l.abrupt("return",{res:t.res});case 11:case"end":return l.stop()}},null,this)},c.initMultipartUpload=function(r,a){var n,e,s;return x.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return a=a||{},n={},v(a).to(n),n.headers=n.headers||{},this._convertMetaToHeaders(a.meta,n.headers),n.subres="uploads",e=this._objectRequestParams("POST",r,n),e.mime=a.mime,e.xmlResponse=!0,e.successStatuses=[200],i.next=12,x.default.awrap(this.request(e));case 12:return s=i.sent,i.abrupt("return",{res:s.res,bucket:s.data.Bucket,name:s.data.Key,uploadId:s.data.UploadId});case 14:case"end":return i.stop()}},null,this)},c.uploadPart=function(r,a,n,e,s,t,i){var l;return x.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return l={stream:this._createStream(e,s,t),size:t-s},h.next=3,x.default.awrap(this._uploadPart(r,a,n,l,i));case 3:return h.abrupt("return",h.sent);case 4:case"end":return h.stop()}},null,this)},c.completeMultipartUpload=function(r,a,n,e){var s,t,i,l,u,h,p,g;return x.default.async(function(y){for(;;)switch(y.prev=y.next){case 0:for(s=n.concat().sort(function(E,C){return E.number-C.number}).filter(function(E,C,w){return!C||E.number!==w[C-1].number}),t=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,i=0;i<s.length;i++)l=s[i],t+=`<Part>
|
|
|
`,t+="<PartNumber>"+l.number+`</PartNumber>
|
|
|
`,t+="<ETag>"+l.etag+`</ETag>
|
|
|
`,t+=`</Part>
|
|
|
`;return t+="</CompleteMultipartUpload>",e=e||{},u={},u=f(e),u.headers&&delete u.headers["x-oss-server-side-encryption"],u.subres={uploadId:a},h=this._objectRequestParams("POST",r,u),S.encodeCallback(h,u),h.mime="xml",h.content=t,h.headers&&h.headers["x-oss-callback"]||(h.xmlResponse=!0),h.successStatuses=[200],y.next=17,x.default.awrap(this.request(h));case 17:return p=y.sent,g={res:p.res,bucket:h.bucket,name:r,etag:p.res.headers.etag},h.headers&&h.headers["x-oss-callback"]&&(g.data=JSON.parse(p.data.toString())),y.abrupt("return",g);case 21:case"end":return y.stop()}},null,this)},c._uploadPart=function(r,a,n,e,s){var t,i,l;return x.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return s=s||{},t={},v(s).to(t),t.headers={"Content-Length":e.size},t.subres={partNumber:n,uploadId:a},i=this._objectRequestParams("PUT",r,t),i.mime=t.mime,i.stream=e.stream,i.successStatuses=[200],h.next=11,x.default.awrap(this.request(i));case 11:if(l=h.sent,l.res.headers.etag){h.next=14;break}throw new Error(`Please set the etag of expose-headers in OSS
|
|
|
https://help.aliyun.com/document_detail/32069.html`);case 14:return e.stream=null,i.stream=null,h.abrupt("return",{name:r,etag:l.res.headers.etag,res:l.res});case 17:case"end":return h.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=f(O),T=U("babel-runtime/core-js/object/keys"),v=f(T),S=U("babel-runtime/helpers/typeof"),m=f(S);function f(a){return a&&a.__esModule?a:{default:a}}var c=U("../utils/checkBucketName"),o=c.checkBucketName,r=d;r.copy=function(n,e,s,t){var i,l,u;return x.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return(typeof s=="undefined"?"undefined":(0,m.default)(s))==="object"&&(t=s),t=t||{},t.headers=t.headers||{},(0,v.default)(t.headers).forEach(function(g){t.headers["x-oss-copy-source-"+g.toLowerCase()]=t.headers[g]}),t.meta&&(t.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(t.meta,t.headers),e=this._getSourceName(e,s),t.versionId&&(e=e+"?versionId="+t.versionId),t.headers["x-oss-copy-source"]=e,i=this._objectRequestParams("PUT",n,t),i.xmlResponse=!0,i.successStatuses=[200,304],p.next=14,x.default.awrap(this.request(i));case 14:return l=p.sent,u=l.data,u&&(u={etag:u.ETag,lastModified:u.LastModified}),p.abrupt("return",{data:u,res:l.res});case 18:case"end":return p.stop()}},null,this)},r._getSourceName=function(n,e){return typeof e=="string"?n=this._objectName(n):n[0]!=="/"?e=this.options.bucket:(e=n.replace(/\/(.+?)(\/.*)/,"$1"),n=n.replace(/(\/.+?\/)(.*)/,"$2")),o(e),n=encodeURI(n),n="/"+e+"/"+n,n}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=S(O),T=U("babel-runtime/core-js/object/assign"),v=S(T);function S(f){return f&&f.__esModule?f:{default:f}}var m=d;m.delete=function(c){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,a;return x.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o.subres=(0,v.default)({},o.subres),o.versionId&&(o.subres.versionId=o.versionId),r=this._objectRequestParams("DELETE",c,o),r.successStatuses=[204],e.next=6,x.default.awrap(this.request(r));case 6:return a=e.sent,e.abrupt("return",{res:a.res});case 8:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=S(O),T=U("babel-runtime/core-js/object/assign"),v=S(T);function S(r){return r&&r.__esModule?r:{default:r}}var m=U("utility"),f=U("../utils/obj2xml"),c=f.obj2xml,o=d;o.deleteMulti=function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e,s,t,i,l,u,h,p,g,A,y,E;return x.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:if(e=[],!(!a||!a.length)){w.next=3;break}throw new Error("names is required");case 3:for(s=0;s<a.length;s++)t={},typeof a[s]=="string"?t.Key=m.escape(this._objectName(a[s])):(i=a[s],l=i.key,u=i.versionId,t.Key=m.escape(this._objectName(l)),t.VersionId=u),e.push(t);return h={Delete:{Quiet:!!n.quiet,Object:e}},p=c(h,{headers:!0}),n.subres=(0,v.default)({delete:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),g=this._objectRequestParams("POST","",n),g.mime="xml",g.content=p,g.xmlResponse=!0,g.successStatuses=[200],w.next=15,x.default.awrap(this.request(g));case 15:return A=w.sent,y=A.data,E=y&&y.Deleted||null,E&&(Array.isArray(E)||(E=[E])),w.abrupt("return",{res:A.res,deleted:E||[]});case 20:case"end":return w.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=S(O),T=U("babel-runtime/core-js/object/assign"),v=S(T);function S(f){return f&&f.__esModule?f:{default:f}}var m=d;m.deleteObjectTagging=function(c){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,a;return x.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o.subres=(0,v.default)({tagging:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),c=this._objectName(c),r=this._objectRequestParams("DELETE",c,o),r.successStatuses=[204],e.next=7,x.default.awrap(this.request(r));case 7:return a=e.sent,e.abrupt("return",{status:a.status,res:a.res});case 9:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=S(O),T=U("babel-runtime/core-js/object/assign"),v=S(T);function S(o){return o&&o.__esModule?o:{default:o}}var m=U("fs"),f=U("is-type-of"),c=d;c.get=function(r,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,s,t,i;return x.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return e=null,s=!1,f.writableStream(a)?e=a:f.string(a)?(e=m.createWriteStream(a),s=!0):n=a,n=n||{},n.subres=(0,v.default)({},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.process&&(n.subres["x-oss-process"]=n.process),t=void 0,u.prev=8,i=this._objectRequestParams("GET",r,n),i.writeStream=e,i.successStatuses=[200,206,304],u.next=14,x.default.awrap(this.request(i));case 14:t=u.sent,s&&e.destroy(),u.next=25;break;case 18:if(u.prev=18,u.t0=u.catch(8),!s){u.next=24;break}return e.destroy(),u.next=24,x.default.awrap(this._deleteFileSafe(a));case 24:throw u.t0;case 25:return u.abrupt("return",{res:t.res,content:t.data});case 26:case"end":return u.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=S(O),T=U("babel-runtime/core-js/object/assign"),v=S(T);function S(f){return f&&f.__esModule?f:{default:f}}var m=d;m.getACL=function(c){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,a;return x.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o.subres=(0,v.default)({acl:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),c=this._objectName(c),r=this._objectRequestParams("GET",c,o),r.successStatuses=[200],r.xmlResponse=!0,e.next=8,x.default.awrap(this.request(r));case 8:return a=e.sent,e.abrupt("return",{acl:a.data.AccessControlList.Grant,owner:{id:a.data.Owner.ID,displayName:a.data.Owner.DisplayName},res:a.res});case 10:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/object/keys"),x=f(O),T=U("babel-runtime/regenerator"),v=f(T),S=U("babel-runtime/core-js/object/assign"),m=f(S);function f(i){return i&&i.__esModule?i:{default:i}}var c=d,o=U("../utils/isObject"),r=o.isObject,a=U("../utils/isArray"),n=a.isArray;c.getBucketVersions=e,c.listObjectVersions=e;function e(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,h,p,g,A,y;return v.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:if(!(i.versionIdMarker&&i.keyMarker===void 0)){C.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return l.subres=(0,m.default)({versions:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),u=this._objectRequestParams("GET","",l),u.xmlResponse=!0,u.successStatuses=[200],u.query=t(i),C.next=10,v.default.awrap(this.request(u));case 10:return h=C.sent,p=h.data.Version||[],g=h.data.DeleteMarker||[],A=this,p&&(Array.isArray(p)||(p=[p]),p=p.map(function(w){return{name:w.Key,url:A._objectUrl(w.Key),lastModified:w.LastModified,isLatest:w.IsLatest==="true",versionId:w.VersionId,etag:w.ETag,type:w.Type,size:Number(w.Size),storageClass:w.StorageClass,owner:{id:w.Owner.ID,displayName:w.Owner.DisplayName}}})),g&&(n(g)||(g=[g]),g=g.map(function(w){return{name:w.Key,lastModified:w.LastModified,versionId:w.VersionId,owner:{id:w.Owner.ID,displayName:w.Owner.DisplayName}}})),y=h.data.CommonPrefixes||null,y&&(n(y)||(y=[y]),y=y.map(function(w){return w.Prefix})),C.abrupt("return",{res:h.res,objects:p,deleteMarker:g,prefixes:y,nextMarker:h.data.NextMarker||null,NextVersionIdMarker:h.data.NextVersionIdMarker||null,isTruncated:h.data.IsTruncated==="true"});case 19:case"end":return C.stop()}},null,this)}function s(i){return i.replace(/([A-Z])/g,"-$1").toLowerCase()}function t(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l={};return r(i)&&(0,x.default)(i).forEach(function(u){l[s(u)]=i[u]}),l}},{"../utils/isArray":42,"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],26:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=S(O),T=U("babel-runtime/core-js/object/assign"),v=S(T);function S(f){return f&&f.__esModule?f:{default:f}}var m=d;m.getObjectMeta=function(c,o){var r,a;return x.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o=o||{},c=this._objectName(c),o.subres=(0,v.default)({objectMeta:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),r=this._objectRequestParams("HEAD",c,o),r.successStatuses=[200],e.next=8,x.default.awrap(this.request(r));case 8:return a=e.sent,e.abrupt("return",{status:a.status,res:a.res});case 10:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=S(O),T=U("babel-runtime/core-js/object/assign"),v=S(T);function S(o){return o&&o.__esModule?o:{default:o}}var m=d,f=U("../utils/isObject"),c=f.isObject;m.getObjectTagging=function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,e,s,t,i;return x.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return a.subres=(0,v.default)({tagging:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),r=this._objectName(r),n=this._objectRequestParams("GET",r,a),n.successStatuses=[200],u.next=7,x.default.awrap(this.request(n));case 7:return e=u.sent,u.next=10,x.default.awrap(this.parseXML(e.data));case 10:return s=u.sent,t=s.TagSet.Tag,t=t&&c(t)?[t]:t||[],i={},t.forEach(function(h){i[h.Key]=h.Value}),u.abrupt("return",{status:e.status,res:e.res,tag:i});case 16:case"end":return u.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=S(O),T=U("babel-runtime/core-js/object/assign"),v=S(T);function S(f){return f&&f.__esModule?f:{default:f}}var m=d;m.getSymlink=function(c){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,a,n;return x.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return o.subres=(0,v.default)({symlink:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),c=this._objectName(c),r=this._objectRequestParams("GET",c,o),r.successStatuses=[200],s.next=7,x.default.awrap(this.request(r));case 7:return a=s.sent,n=a.res.headers["x-oss-symlink-target"],s.abrupt("return",{targetName:decodeURIComponent(n),res:a.res});case 10:case"end":return s.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=f(O),T=U("babel-runtime/core-js/object/keys"),v=f(T),S=U("babel-runtime/core-js/object/assign"),m=f(S);function f(o){return o&&o.__esModule?o:{default:o}}var c=d;c.head=function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,e,s;return x.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return a.subres=(0,m.default)({},a.subres),a.versionId&&(a.subres.versionId=a.versionId),n=this._objectRequestParams("HEAD",r,a),n.successStatuses=[200,304],i.next=6,x.default.awrap(this.request(n));case 6:return e=i.sent,s={meta:null,res:e.res,status:e.status},e.status===200&&(0,v.default)(e.headers).forEach(function(l){l.indexOf("x-oss-meta-")===0&&(s.meta||(s.meta={}),s.meta[l.substring(11)]=e.headers[l])}),i.abrupt("return",s);case 10:case"end":return i.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=S(O),T=U("babel-runtime/core-js/object/assign"),v=S(T);function S(f){return f&&f.__esModule?f:{default:f}}var m=d;m.putACL=function(c,o,r){var a,n;return x.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return r=r||{},r.subres=(0,v.default)({acl:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),r.headers=r.headers||{},r.headers["x-oss-object-acl"]=o,c=this._objectName(c),a=this._objectRequestParams("PUT",c,r),a.successStatuses=[200],s.next=10,x.default.awrap(this.request(a));case 10:return n=s.sent,s.abrupt("return",{res:n.res});case 12:case"end":return s.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=f(O),T=U("babel-runtime/core-js/object/keys"),v=f(T),S=U("babel-runtime/core-js/object/assign"),m=f(S);function f(e){return e&&e.__esModule?e:{default:e}}var c=U("../utils/obj2xml"),o=c.obj2xml,r=U("../utils/checkObjectTag"),a=r.checkObjectTag,n=d;n.putObjectTagging=function(s,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l,u,h;return x.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return a(t),i.subres=(0,m.default)({tagging:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),s=this._objectName(s),l=this._objectRequestParams("PUT",s,i),l.successStatuses=[200],t=(0,v.default)(t).map(function(A){return{Key:A,Value:t[A]}}),u={Tagging:{TagSet:{Tag:t}}},l.mime="xml",l.content=o(u),g.next=12,x.default.awrap(this.request(l));case 12:return h=g.sent,g.abrupt("return",{res:h.res,status:h.status});case 14:case"end":return g.stop()}},null,this)}},{"../utils/checkObjectTag":36,"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],32:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=S(O),T=U("babel-runtime/core-js/object/assign"),v=S(T);function S(f){return f&&f.__esModule?f:{default:f}}var m=d;m.putSymlink=function(c,o,r){var a,n;return x.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return r=r||{},r.headers=r.headers||{},o=this._escape(this._objectName(o)),this._convertMetaToHeaders(r.meta,r.headers),r.headers["x-oss-symlink-target"]=o,r.subres=(0,v.default)({symlink:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),r.storageClass&&(r.headers["x-oss-storage-class"]=r.storageClass),c=this._objectName(c),a=this._objectRequestParams("PUT",c,r),a.successStatuses=[200],s.next=13,x.default.awrap(this.request(a));case 13:return n=s.sent,s.abrupt("return",{res:n.res});case 15:case"end":return s.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(U,P,d){"use strict";var O=U("babel-runtime/regenerator"),x=S(O),T=U("babel-runtime/core-js/promise"),v=S(T);function S(f){return f&&f.__esModule?f:{default:f}}var m=d;m._parallelNode=function(c,o,r,a){var n,e,s,t,i,l,u,h;return x.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:n=this,e=[],s=[],t=c.length/o,i=c.length%o,l=i===0?t:(c.length-i)/o+1,u=1,h=0;case 8:if(!(h<c.length)){g.next=26;break}if(!n.isCancel()){g.next=11;break}return g.abrupt("break",26);case 11:if(a?s.push(r(n,c[h],a)):s.push(r(n,c[h])),!(s.length===o||u===l&&h===c.length-1)){g.next=23;break}return g.prev=13,u+=1,g.next=17,x.default.awrap(v.default.all(s));case 17:g.next=22;break;case 19:g.prev=19,g.t0=g.catch(13),e.push(g.t0);case 22:s=[];case 23:h++,g.next=8;break;case 26:return g.abrupt("return",e);case 27:case"end":return g.stop()}},null,this,[[13,19]])},m._parallel=function(c,o,r){var a=this;return new v.default(function(n){var e=[];if(o<=0||!c){n(e);return}function s(y){return function(){if(y===null)throw new Error("Callback was already called.");var E=y;y=null;for(var C=arguments.length,w=Array(C),b=0;b<C;b++)w[b]=arguments[b];E.apply(this,w)}}function t(y){var E=-1,C=y.length;return function(){return++E<C&&!a.isCancel()?{value:y[E],key:E}:null}}var i=t(c),l=!1,u=0,h=!1;function p(y,E){u-=1,y?(l=!0,e.push(y),n(e)):E==={}||l&&u<=0?(l=!0,n(e)):h||(a.isCancel()?n(e):A())}function g(y,E){r(y).then(function(C){E(null,C)}).catch(function(C){E(C)})}function A(){for(h=!0;u<o&&!l&&!a.isCancel();){var y=i();if(y===null||e.length>0){l=!0,u<=0&&n(e);return}u+=1,g(y.value,s(p))}h=!1}A()})},m.cancel=function(c){this.options.cancelFlag=!0,c&&this.abortMultipartUpload(c.name,c.uploadId,c.options)},m.isCancel=function(){return this.options.cancelFlag},m.resetCancelFlag=function(){this.options.cancelFlag=!1},m._stop=function(){this.options.cancelFlag=!0},m._makeCancelEvent=function(){var c={status:0,name:"cancel"};return c}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(U,P,d){(function(O){"use strict";var x=U("babel-runtime/core-js/json/stringify"),T=m(x),v=U("babel-runtime/core-js/object/keys"),S=m(v);function m(o){return o&&o.__esModule?o:{default:o}}var f=U("./../../shims/crypto/crypto.js"),c=U("is-type-of");d.buildCanonicalizedResource=function(r,a){var n=""+r,e="?";if(c.string(a)&&a.trim()!=="")n+=e+a;else if(c.array(a))a.sort(),n+=e+a.join("&");else if(a){var s=function(l,u){return l[0]>u[0]?1:l[0]<u[0]?-1:0},t=function(l){n+=e+l,a[l]&&(n+="="+a[l]),e="&"};(0,S.default)(a).sort(s).forEach(t)}return n},d.buildCanonicalString=function(r,a,n,e){n=n||{};var s=n.headers||{},t="x-oss-",i=[],l={},u=[r.toUpperCase(),s["Content-Md5"]||"",s["Content-Type"]||s["Content-Type".toLowerCase()],e||s["x-oss-date"]];return(0,S.default)(s).forEach(function(h){var p=h.toLowerCase();p.indexOf(t)===0&&(l[p]=String(s[h]).trim())}),(0,S.default)(l).sort().forEach(function(h){i.push(h+":"+l[h])}),u=u.concat(i),u.push(this.buildCanonicalizedResource(a,n.parameters)),u.join(`
|
|
|
`)},d.computeSignature=function(r,a){var n=f.createHmac("sha1",r);return n.update(O.from(a,"utf8")).digest("base64")},d.authorization=function(r,a,n){return"OSS "+r+":"+this.computeSignature(a,n)},d._signatureForURL=function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments[2],e=arguments[3],s={},t=a.subResource,i=t===void 0?{}:t;if(a.process){var l="x-oss-process";i[l]=a.process}if(a.trafficLimit){var u="x-oss-traffic-limit";i[u]=a.trafficLimit}if(a.response&&(0,S.default)(a.response).forEach(function(A){var y="response-"+A.toLowerCase();i[y]=a.response[A]}),(0,S.default)(a).forEach(function(A){var y=A.toLowerCase(),E=a[A];y.indexOf("x-oss-")===0?s[y]=E:(y.indexOf("content-md5")===0||y.indexOf("content-type")===0)&&(s[A]=E)}),Object.prototype.hasOwnProperty.call(a,"security-token")&&(i["security-token"]=a["security-token"]),Object.prototype.hasOwnProperty.call(a,"callback")){var h={callbackUrl:encodeURI(a.callback.url),callbackBody:a.callback.body};if(a.callback.host&&(h.callbackHost=a.callback.host),a.callback.contentType&&(h.callbackBodyType=a.callback.contentType),i.callback=O.from((0,T.default)(h)).toString("base64"),a.callback.customValue){var p={};(0,S.default)(a.callback.customValue).forEach(function(A){p["x:"+A]=a.callback.customValue[A]}),i["callback-var"]=O.from((0,T.default)(p)).toString("base64")}}var g=this.buildCanonicalString(a.method,n,{headers:s,parameters:i},e.toString());return{Signature:this.computeSignature(r,g),subResource:i}}}).call(this,U("buffer").Buffer)},{"./../../shims/crypto/crypto.js":284,"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73,"is-type-of":289}],35:[function(U,P,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.checkBucketName=void 0,d.checkBucketName=function(O,x){var T=x?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!T.test(O))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/object/entries"),x=T(O);function T(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(d,"__esModule",{value:!0}),d.checkObjectTag=void 0;var v=U("./checkValid"),S=v.checkValid,m=U("./isObject"),f=m.isObject,c=[{validator:function(n){if(typeof n!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],o={key:[].concat(c,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(c,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function r(a){if(!f(a))throw new Error("tag must be Object");var n=(0,x.default)(a);if(n.length>10)throw new Error("maximum of 10 tags for a object");var e=["key","value"];n.forEach(function(s){s.forEach(function(t,i){S(t,o[e[i]])})})}d.checkObjectTag=r},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(U,P,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.checkValid=void 0;function O(x,T){T.forEach(function(v){if(v.validator)v.validator(x);else if(v.pattern&&!v.pattern.test(x))throw new Error(v.msg)})}d.checkValid=O},{}],38:[function(U,P,d){(function(O){"use strict";var x=U("babel-runtime/core-js/object/assign"),T=v(x);function v(s){return s&&s.__esModule?s:{default:s}}Object.defineProperty(d,"__esModule",{value:!0}),d.createRequest=void 0;var S=U("./../../../shims/crypto/crypto.js"),m=U("debug")("ali-oss"),f=U("mime"),c=U("dateformat"),o=U("copy-to"),r=U("path");function a(s,t){return s[t]||s[t.toLowerCase()]}function n(s,t){delete s[t],delete s[t.toLowerCase()]}function e(s){var t=new Date;this.options.amendTimeSkewed&&(t=+new Date+this.options.amendTimeSkewed);var i={"x-oss-date":c(t,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(i["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,T.default)(i,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(i["x-oss-security-token"]=this.options.stsToken),o(s.headers).to(i),a(i,"Content-Type")||(s.mime&&s.mime.indexOf("/")>0?i["Content-Type"]=s.mime:i["Content-Type"]=f.getType(s.mime||r.extname(s.object||""))),a(i,"Content-Type")||n(i,"Content-Type"),s.content&&(i["Content-Md5"]=S.createHash("md5").update(O.from(s.content,"utf8")).digest("base64"),i["Content-Length"]||(i["Content-Length"]=s.content.length));var l=this._getResource(s);i.authorization=this.authorization(s.method,l,s.subres,i);var u=this._getReqUrl(s);m("request %s %s, with headers %j, !!stream: %s",s.method,u,i,!!s.stream);var h=s.timeout||this.options.timeout,p={method:s.method,content:s.content,stream:s.stream,headers:i,timeout:h,writeStream:s.writeStream,customResponse:s.customResponse,ctx:s.ctx||this.ctx};return this.agent&&(p.agent=this.agent),this.httpsAgent&&(p.httpsAgent=this.httpsAgent),{url:u,params:p}}d.createRequest=e}).call(this,U("buffer").Buffer)},{"./../../../shims/crypto/crypto.js":284,"babel-runtime/core-js/object/assign":54,buffer:73,"copy-to":76,dateformat:190,debug:288,mime:202,path:205}],39:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/object/keys"),x=S(O),T=U("babel-runtime/helpers/typeof"),v=S(T);function S(m){return m&&m.__esModule?m:{default:m}}Object.defineProperty(d,"__esModule",{value:!0}),d.deepCopy=void 0,d.deepCopy=function(m){if(m===null||(typeof m=="undefined"?"undefined":(0,v.default)(m))!=="object")return m;var f=Array.isArray(m)?[]:{};return(0,x.default)(m).forEach(function(c){f[c]=d.deepCopy(m[c])}),f}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/object/keys"),x=S(O),T=U("babel-runtime/helpers/typeof"),v=S(T);function S(c){return c&&c.__esModule?c:{default:c}}Object.defineProperty(d,"__esModule",{value:!0}),d.formatObjKey=void 0;function m(c,o){if(c===null||(typeof c=="undefined"?"undefined":(0,v.default)(c))!=="object")return c;var r=void 0;if(Array.isArray(c)){r=[];for(var a=0;a<c.length;a++)r.push(m(c[a],o))}else r={},(0,x.default)(c).forEach(function(n){r[f(n,o)]=m(c[n],o)});return r}d.formatObjKey=m;function f(c,o){return o==="firstUpperCase"?c=c.replace(/^./,function(r){return r.toUpperCase()}):o==="firstLowerCase"&&(c=c.replace(/^./,function(r){return r.toLowerCase()})),c}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(U,P,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.getStrBytesCount=void 0;function O(x){for(var T=0,v=0;v<x.length;v++){var S=x.charAt(v);/^[\u00-\uff]$/.test(S)?T+=1:T+=2}return T}d.getStrBytesCount=O},{}],42:[function(U,P,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isArray=void 0,d.isArray=function(O){return Object.prototype.toString.call(O)==="[object Array]"}},{}],43:[function(U,P,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isBlob=void 0;function O(x){return typeof Blob!="undefined"&&x instanceof Blob}d.isBlob=O},{}],44:[function(U,P,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isFile=void 0,d.isFile=function(O){return typeof File!="undefined"&&O instanceof File}},{}],45:[function(U,P,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isIP=void 0,d.isIP=function(O){var x=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,T=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return x.test(O)||T.test(O)}},{}],46:[function(U,P,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isObject=void 0,d.isObject=function(O){return Object.prototype.toString.call(O)==="[object Object]"}},{}],47:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/object/keys"),x=T(O);function T(f){return f&&f.__esModule?f:{default:f}}Object.defineProperty(d,"__esModule",{value:!0}),d.obj2xml=void 0;var v=U("./formatObjKey");function S(f){return Object.prototype.toString.call(f).replace(/(.*? |])/g,"").toLowerCase()}function m(f,c){var o="";return c&&c.headers&&(o=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),c&&c.firstUpperCase&&(f=v.formatObjKey(f,"firstUpperCase")),S(f)==="object"?(0,x.default)(f).forEach(function(r){S(f[r])==="string"||S(f[r])==="number"?o+="<"+r+">"+f[r]+"</"+r+">":S(f[r])==="object"?o+="<"+r+">"+m(f[r])+"</"+r+">":S(f[r])==="array"?o+=f[r].map(function(a){return"<"+r+">"+m(a)+"</"+r+">"}).join(""):o+="<"+r+">"+f[r].toString()+"</"+r+">"}):o+=f.toString(),o}d.obj2xml=m},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(U,P,d){P.exports=O,P.exports.HttpsAgent=O;function O(){}},{}],49:[function(U,P,d){P.exports=U("./register")().Promise},{"./register":51}],50:[function(U,P,d){"use strict";var O="@@any-promise/REGISTRATION",x=null;P.exports=function(T,v){return function(m,f){m=m||null,f=f||{};var c=f.global!==!1;if(x===null&&c&&(x=T[O]||null),x!==null&&m!==null&&x.implementation!==m)throw new Error('any-promise already defined as "'+x.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return x===null&&(m!==null&&typeof f.Promise!="undefined"?x={Promise:f.Promise,implementation:m}:x=v(m),c&&(T[O]=x)),x}}},{}],51:[function(U,P,d){"use strict";P.exports=U("./loader")(window,O);function O(){if(typeof window.Promise=="undefined")throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}},{"./loader":50}],52:[function(U,P,d){P.exports={default:U("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(U,P,d){P.exports={default:U("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(U,P,d){P.exports={default:U("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(U,P,d){P.exports={default:U("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(U,P,d){P.exports={default:U("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(U,P,d){P.exports={default:U("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(U,P,d){P.exports={default:U("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(U,P,d){P.exports={default:U("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(U,P,d){P.exports={default:U("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(U,P,d){P.exports={default:U("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(U,P,d){P.exports={default:U("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(U,P,d){P.exports={default:U("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(U,P,d){P.exports={default:U("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(U,P,d){P.exports={default:U("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(U,P,d){P.exports={default:U("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(U,P,d){"use strict";d.__esModule=!0;var O=U("../core-js/symbol/iterator"),x=m(O),T=U("../core-js/symbol"),v=m(T),S=typeof v.default=="function"&&typeof x.default=="symbol"?function(f){return typeof f}:function(f){return f&&typeof v.default=="function"&&f.constructor===v.default&&f!==v.default.prototype?"symbol":typeof f};function m(f){return f&&f.__esModule?f:{default:f}}d.default=typeof v.default=="function"&&S(x.default)==="symbol"?function(f){return typeof f=="undefined"?"undefined":S(f)}:function(f){return f&&typeof v.default=="function"&&f.constructor===v.default&&f!==v.default.prototype?"symbol":typeof f=="undefined"?"undefined":S(f)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(U,P,d){P.exports=U("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(U,P,d){"use strict";d.byteLength=c,d.toByteArray=r,d.fromByteArray=e;for(var O=[],x=[],T=typeof Uint8Array!="undefined"?Uint8Array:Array,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=0,m=v.length;S<m;++S)O[S]=v[S],x[v.charCodeAt(S)]=S;x["-".charCodeAt(0)]=62,x["_".charCodeAt(0)]=63;function f(s){var t=s.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=s.indexOf("=");i===-1&&(i=t);var l=i===t?0:4-i%4;return[i,l]}function c(s){var t=f(s),i=t[0],l=t[1];return(i+l)*3/4-l}function o(s,t,i){return(t+i)*3/4-i}function r(s){var t,i=f(s),l=i[0],u=i[1],h=new T(o(s,l,u)),p=0,g=u>0?l-4:l,A;for(A=0;A<g;A+=4)t=x[s.charCodeAt(A)]<<18|x[s.charCodeAt(A+1)]<<12|x[s.charCodeAt(A+2)]<<6|x[s.charCodeAt(A+3)],h[p++]=t>>16&255,h[p++]=t>>8&255,h[p++]=t&255;return u===2&&(t=x[s.charCodeAt(A)]<<2|x[s.charCodeAt(A+1)]>>4,h[p++]=t&255),u===1&&(t=x[s.charCodeAt(A)]<<10|x[s.charCodeAt(A+1)]<<4|x[s.charCodeAt(A+2)]>>2,h[p++]=t>>8&255,h[p++]=t&255),h}function a(s){return O[s>>18&63]+O[s>>12&63]+O[s>>6&63]+O[s&63]}function n(s,t,i){for(var l,u=[],h=t;h<i;h+=3)l=(s[h]<<16&16711680)+(s[h+1]<<8&65280)+(s[h+2]&255),u.push(a(l));return u.join("")}function e(s){for(var t,i=s.length,l=i%3,u=[],h=16383,p=0,g=i-l;p<g;p+=h)u.push(n(s,p,p+h>g?g:p+h));return l===1?(t=s[i-1],u.push(O[t>>2]+O[t<<4&63]+"==")):l===2&&(t=(s[i-2]<<8)+s[i-1],u.push(O[t>>10]+O[t>>4&63]+O[t<<2&63]+"=")),u.join("")}},{}],70:[function(U,P,d){/*!
|
|
|
* Bowser - a browser detector
|
|
|
* https://github.com/ded/bowser
|
|
|
* MIT License | (c) Dustin Diaz 2015
|
|
|
*/!function(O,x,T){typeof P!="undefined"&&P.exports?P.exports=T():typeof define=="function"&&define.amd?define(x,T):O[x]=T()}(this,"bowser",function(){var O=!0;function x(o){function r(H){var F=o.match(H);return F&&F.length>1&&F[1]||""}function a(H){var F=o.match(H);return F&&F.length>1&&F[2]||""}var n=r(/(ipod|iphone|ipad)/i).toLowerCase(),e=/like android/i.test(o),s=!e&&/android/i.test(o),t=/nexus\s*[0-6]\s*/i.test(o),i=!t&&/nexus\s*[0-9]+/i.test(o),l=/CrOS/.test(o),u=/silk/i.test(o),h=/sailfish/i.test(o),p=/tizen/i.test(o),g=/(web|hpw)(o|0)s/i.test(o),A=/windows phone/i.test(o),y=/SamsungBrowser/i.test(o),E=!A&&/windows/i.test(o),C=!n&&!u&&/macintosh/i.test(o),w=!s&&!h&&!p&&!g&&/linux/i.test(o),b=a(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),I=r(/version\/(\d+(\.\d+)?)/i),_=/tablet/i.test(o)&&!/tablet pc/i.test(o),L=!_&&/[^-]mobi/i.test(o),D=/xbox/i.test(o),N;/opera/i.test(o)?N={name:"Opera",opera:O,version:I||r(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(o)?N={name:"Opera",opera:O,version:r(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||I}:/SamsungBrowser/i.test(o)?N={name:"Samsung Internet for Android",samsungBrowser:O,version:I||r(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(o)?N={name:"NAVER Whale browser",whale:O,version:r(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(o)?N={name:"MZ Browser",mzbrowser:O,version:r(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(o)?N={name:"Opera Coast",coast:O,version:I||r(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(o)?N={name:"Focus",focus:O,version:r(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(o)?N={name:"Yandex Browser",yandexbrowser:O,version:I||r(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(o)?N={name:"UC Browser",ucbrowser:O,version:r(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(o)?N={name:"Maxthon",maxthon:O,version:r(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(o)?N={name:"Epiphany",epiphany:O,version:r(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(o)?N={name:"Puffin",puffin:O,version:r(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(o)?N={name:"Sleipnir",sleipnir:O,version:r(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(o)?N={name:"K-Meleon",kMeleon:O,version:r(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:A?(N={name:"Windows Phone",osname:"Windows Phone",windowsphone:O},b?(N.msedge=O,N.version=b):(N.msie=O,N.version=r(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(o)?N={name:"Internet Explorer",msie:O,version:r(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:l?N={name:"Chrome",osname:"Chrome OS",chromeos:O,chromeBook:O,chrome:O,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(o)?N={name:"Microsoft Edge",msedge:O,version:b}:/vivaldi/i.test(o)?N={name:"Vivaldi",vivaldi:O,version:r(/vivaldi\/(\d+(\.\d+)?)/i)||I}:h?N={name:"Sailfish",osname:"Sailfish OS",sailfish:O,version:r(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(o)?N={name:"SeaMonkey",seamonkey:O,version:r(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(o)?(N={name:"Firefox",firefox:O,version:r(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(o)&&(N.firefoxos=O,N.osname="Firefox OS")):u?N={name:"Amazon Silk",silk:O,version:r(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(o)?N={name:"PhantomJS",phantom:O,version:r(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(o)?N={name:"SlimerJS",slimer:O,version:r(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(o)||/rim\stablet/i.test(o)?N={name:"BlackBerry",osname:"BlackBerry OS",blackberry:O,version:I||r(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:g?(N={name:"WebOS",osname:"WebOS",webos:O,version:I||r(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(o)&&(N.touchpad=O)):/bada/i.test(o)?N={name:"Bada",osname:"Bada",bada:O,version:r(/dolfin\/(\d+(\.\d+)?)/i)}:p?N={name:"Tizen",osname:"Tizen",tizen:O,version:r(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||I}:/qupzilla/i.test(o)?N={name:"QupZilla",qupzilla:O,version:r(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||I}:/chromium/i.test(o)?N={name:"Chromium",chromium:O,version:r(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||I}:/chrome|crios|crmo/i.test(o)?N={name:"Chrome",chrome:O,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:s?N={name:"Android",version:I}:/safari|applewebkit/i.test(o)?(N={name:"Safari",safari:O},I&&(N.version=I)):n?(N={name:n=="iphone"?"iPhone":n=="ipad"?"iPad":"iPod"},I&&(N.version=I)):/googlebot/i.test(o)?N={name:"Googlebot",googlebot:O,version:r(/googlebot\/(\d+(\.\d+))/i)||I}:N={name:r(/^(.*)\/(.*) /),version:a(/^(.*)\/(.*) /)},!N.msedge&&/(apple)?webkit/i.test(o)?(/(apple)?webkit\/537\.36/i.test(o)?(N.name=N.name||"Blink",N.blink=O):(N.name=N.name||"Webkit",N.webkit=O),!N.version&&I&&(N.version=I)):!N.opera&&/gecko\//i.test(o)&&(N.name=N.name||"Gecko",N.gecko=O,N.version=N.version||r(/gecko\/(\d+(\.\d+)?)/i)),!N.windowsphone&&(s||N.silk)?(N.android=O,N.osname="Android"):!N.windowsphone&&n?(N[n]=O,N.ios=O,N.osname="iOS"):C?(N.mac=O,N.osname="macOS"):D?(N.xbox=O,N.osname="Xbox"):E?(N.windows=O,N.osname="Windows"):w&&(N.linux=O,N.osname="Linux");function R(H){switch(H){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var B="";N.windows?B=R(r(/Windows ((NT|XP)( \d\d?.\d)?)/i)):N.windowsphone?B=r(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):N.mac?(B=r(/Mac OS X (\d+([_\.\s]\d+)*)/i),B=B.replace(/[_\s]/g,".")):n?(B=r(/os (\d+([_\s]\d+)*) like mac os x/i),B=B.replace(/[_\s]/g,".")):s?B=r(/android[ \/-](\d+(\.\d+)*)/i):N.webos?B=r(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):N.blackberry?B=r(/rim\stablet\sos\s(\d+(\.\d+)*)/i):N.bada?B=r(/bada\/(\d+(\.\d+)*)/i):N.tizen&&(B=r(/tizen[\/\s](\d+(\.\d+)*)/i)),B&&(N.osversion=B);var M=!N.windows&&B.split(".")[0];return _||i||n=="ipad"||s&&(M==3||M>=4&&!L)||N.silk?N.tablet=O:(L||n=="iphone"||n=="ipod"||s||t||N.blackberry||N.webos||N.bada)&&(N.mobile=O),N.msedge||N.msie&&N.version>=10||N.yandexbrowser&&N.version>=15||N.vivaldi&&N.version>=1||N.chrome&&N.version>=20||N.samsungBrowser&&N.version>=4||N.whale&&m([N.version,"1.0"])===1||N.mzbrowser&&m([N.version,"6.0"])===1||N.focus&&m([N.version,"1.0"])===1||N.firefox&&N.version>=20||N.safari&&N.version>=6||N.opera&&N.version>=10||N.ios&&N.osversion&&N.osversion.split(".")[0]>=6||N.blackberry&&N.version>=10.1||N.chromium&&N.version>=20?N.a=O:N.msie&&N.version<10||N.chrome&&N.version<20||N.firefox&&N.version<20||N.safari&&N.version<6||N.opera&&N.version<10||N.ios&&N.osversion&&N.osversion.split(".")[0]<6||N.chromium&&N.version<20?N.c=O:N.x=O,N}var T=x(typeof navigator!="undefined"&&navigator.userAgent||"");T.test=function(o){for(var r=0;r<o.length;++r){var a=o[r];if(typeof a=="string"&&a in T)return!0}return!1};function v(o){return o.split(".").length}function S(o,r){var a=[],n;if(Array.prototype.map)return Array.prototype.map.call(o,r);for(n=0;n<o.length;n++)a.push(r(o[n]));return a}function m(o){for(var r=Math.max(v(o[0]),v(o[1])),a=S(o,function(n){var e=r-v(n);return n=n+new Array(e+1).join(".0"),S(n.split("."),function(s){return new Array(20-s.length).join("0")+s}).reverse()});--r>=0;){if(a[0][r]>a[1][r])return 1;if(a[0][r]===a[1][r]){if(r===0)return 0}else return-1}}function f(o,r,a){var n=T;typeof r=="string"&&(a=r,r=void 0),r===void 0&&(r=!1),a&&(n=x(a));var e=""+n.version;for(var s in o)if(o.hasOwnProperty(s)&&n[s]){if(typeof o[s]!="string")throw new Error("Browser version in the minVersion map should be a string: "+s+": "+String(o));return m([e,o[s]])<0}return r}function c(o,r,a){return!f(o,r,a)}return T.isUnsupportedBrowser=f,T.compareVersions=m,T.check=c,T._detect=x,T.detect=x,T})},{}],71:[function(U,P,d){},{}],72:[function(U,P,d){var O=U("buffer").Buffer,x=O.isEncoding||function(c){switch(c&&c.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function T(c){if(c&&!x(c))throw new Error("Unknown encoding: "+c)}var v=d.StringDecoder=function(c){this.encoding=(c||"utf8").toLowerCase().replace(/[-_]/,""),T(c);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=m;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=f;break;default:this.write=S;return}this.charBuffer=new O(6),this.charReceived=0,this.charLength=0};v.prototype.write=function(c){for(var o="";this.charLength;){var r=c.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:c.length;if(c.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";c=c.slice(r,c.length),o=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var n=o.charCodeAt(o.length-1);if(n>=55296&&n<=56319){this.charLength+=this.surrogateSize,o="";continue}if(this.charReceived=this.charLength=0,c.length===0)return o;break}this.detectIncompleteChar(c);var a=c.length;this.charLength&&(c.copy(this.charBuffer,0,c.length-this.charReceived,a),a-=this.charReceived),o+=c.toString(this.encoding,0,a);var a=o.length-1,n=o.charCodeAt(a);if(n>=55296&&n<=56319){var e=this.surrogateSize;return this.charLength+=e,this.charReceived+=e,this.charBuffer.copy(this.charBuffer,e,0,e),c.copy(this.charBuffer,0,0,e),o.substring(0,a)}return o},v.prototype.detectIncompleteChar=function(c){for(var o=c.length>=3?3:c.length;o>0;o--){var r=c[c.length-o];if(o==1&&r>>5==6){this.charLength=2;break}if(o<=2&&r>>4==14){this.charLength=3;break}if(o<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=o},v.prototype.end=function(c){var o="";if(c&&c.length&&(o=this.write(c)),this.charReceived){var r=this.charReceived,a=this.charBuffer,n=this.encoding;o+=a.slice(0,r).toString(n)}return o};function S(c){return c.toString(this.encoding)}function m(c){this.charReceived=c.length%2,this.charLength=this.charReceived?2:0}function f(c){this.charReceived=c.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(U,P,d){(function(O,x){/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/"use strict";var T=U("base64-js"),v=U("ieee754"),S=U("isarray");d.Buffer=x,d.SlowBuffer=u,d.INSPECT_MAX_BYTES=50,x.TYPED_ARRAY_SUPPORT=O.TYPED_ARRAY_SUPPORT!==void 0?O.TYPED_ARRAY_SUPPORT:m(),d.kMaxLength=f();function m(){try{var re=new Uint8Array(1);return re.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},re.foo()===42&&typeof re.subarray=="function"&&re.subarray(1,1).byteLength===0}catch(G){return!1}}function f(){return x.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(re,G){if(f()<G)throw new RangeError("Invalid typed array length");return x.TYPED_ARRAY_SUPPORT?(re=new Uint8Array(G),re.__proto__=x.prototype):(re===null&&(re=new x(G)),re.length=G),re}function x(re,G,X){if(!x.TYPED_ARRAY_SUPPORT&&!(this instanceof x))return new x(re,G,X);if(typeof re=="number"){if(typeof G=="string")throw new Error("If encoding is specified then the first argument must be a string");return n(this,re)}return o(this,re,G,X)}x.poolSize=8192,x._augment=function(re){return re.__proto__=x.prototype,re};function o(re,G,X,J){if(typeof G=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&G instanceof ArrayBuffer?t(re,G,X,J):typeof G=="string"?e(re,G,X):i(re,G)}x.from=function(re,G,X){return o(null,re,G,X)},x.TYPED_ARRAY_SUPPORT&&(x.prototype.__proto__=Uint8Array.prototype,x.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&x[Symbol.species]===x&&Object.defineProperty(x,Symbol.species,{value:null,configurable:!0}));function r(re){if(typeof re!="number")throw new TypeError('"size" argument must be a number');if(re<0)throw new RangeError('"size" argument must not be negative')}function a(re,G,X,J){return r(G),G<=0?c(re,G):X!==void 0?typeof J=="string"?c(re,G).fill(X,J):c(re,G).fill(X):c(re,G)}x.alloc=function(re,G,X){return a(null,re,G,X)};function n(re,G){if(r(G),re=c(re,G<0?0:l(G)|0),!x.TYPED_ARRAY_SUPPORT)for(var X=0;X<G;++X)re[X]=0;return re}x.allocUnsafe=function(re){return n(null,re)},x.allocUnsafeSlow=function(re){return n(null,re)};function e(re,G,X){if((typeof X!="string"||X==="")&&(X="utf8"),!x.isEncoding(X))throw new TypeError('"encoding" must be a valid string encoding');var J=h(G,X)|0;re=c(re,J);var Ae=re.write(G,X);return Ae!==J&&(re=re.slice(0,Ae)),re}function s(re,G){var X=G.length<0?0:l(G.length)|0;re=c(re,X);for(var J=0;J<X;J+=1)re[J]=G[J]&255;return re}function t(re,G,X,J){if(G.byteLength,X<0||G.byteLength<X)throw new RangeError("'offset' is out of bounds");if(G.byteLength<X+(J||0))throw new RangeError("'length' is out of bounds");return X===void 0&&J===void 0?G=new Uint8Array(G):J===void 0?G=new Uint8Array(G,X):G=new Uint8Array(G,X,J),x.TYPED_ARRAY_SUPPORT?(re=G,re.__proto__=x.prototype):re=s(re,G),re}function i(re,G){if(x.isBuffer(G)){var X=l(G.length)|0;return re=c(re,X),re.length===0||G.copy(re,0,0,X),re}if(G){if(typeof ArrayBuffer!="undefined"&&G.buffer instanceof ArrayBuffer||"length"in G)return typeof G.length!="number"||Je(G.length)?c(re,0):s(re,G);if(G.type==="Buffer"&&S(G.data))return s(re,G.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function l(re){if(re>=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return re|0}function u(re){return+re!=re&&(re=0),x.alloc(+re)}x.isBuffer=function(G){return!!(G!=null&&G._isBuffer)},x.compare=function(G,X){if(!x.isBuffer(G)||!x.isBuffer(X))throw new TypeError("Arguments must be Buffers");if(G===X)return 0;for(var J=G.length,Ae=X.length,he=0,Me=Math.min(J,Ae);he<Me;++he)if(G[he]!==X[he]){J=G[he],Ae=X[he];break}return J<Ae?-1:Ae<J?1:0},x.isEncoding=function(G){switch(String(G).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},x.concat=function(G,X){if(!S(G))throw new TypeError('"list" argument must be an Array of Buffers');if(G.length===0)return x.alloc(0);var J;if(X===void 0)for(X=0,J=0;J<G.length;++J)X+=G[J].length;var Ae=x.allocUnsafe(X),he=0;for(J=0;J<G.length;++J){var Me=G[J];if(!x.isBuffer(Me))throw new TypeError('"list" argument must be an Array of Buffers');Me.copy(Ae,he),he+=Me.length}return Ae};function h(re,G){if(x.isBuffer(re))return re.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(re)||re instanceof ArrayBuffer))return re.byteLength;typeof re!="string"&&(re=""+re);var X=re.length;if(X===0)return 0;for(var J=!1;;)switch(G){case"ascii":case"latin1":case"binary":return X;case"utf8":case"utf-8":case void 0:return He(re).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X*2;case"hex":return X>>>1;case"base64":return Q(re).length;default:if(J)return He(re).length;G=(""+G).toLowerCase(),J=!0}}x.byteLength=h;function p(re,G,X){var J=!1;if((G===void 0||G<0)&&(G=0),G>this.length)return"";if((X===void 0||X>this.length)&&(X=this.length),X<=0)return"";if(X>>>=0,G>>>=0,X<=G)return"";for(re||(re="utf8");;)switch(re){case"hex":return H(this,G,X);case"utf8":case"utf-8":return D(this,G,X);case"ascii":return B(this,G,X);case"latin1":case"binary":return M(this,G,X);case"base64":return L(this,G,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,G,X);default:if(J)throw new TypeError("Unknown encoding: "+re);re=(re+"").toLowerCase(),J=!0}}x.prototype._isBuffer=!0;function g(re,G,X){var J=re[G];re[G]=re[X],re[X]=J}x.prototype.swap16=function(){var G=this.length;if(G%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var X=0;X<G;X+=2)g(this,X,X+1);return this},x.prototype.swap32=function(){var G=this.length;if(G%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var X=0;X<G;X+=4)g(this,X,X+3),g(this,X+1,X+2);return this},x.prototype.swap64=function(){var G=this.length;if(G%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var X=0;X<G;X+=8)g(this,X,X+7),g(this,X+1,X+6),g(this,X+2,X+5),g(this,X+3,X+4);return this},x.prototype.toString=function(){var G=this.length|0;return G===0?"":arguments.length===0?D(this,0,G):p.apply(this,arguments)},x.prototype.equals=function(G){if(!x.isBuffer(G))throw new TypeError("Argument must be a Buffer");return this===G?!0:x.compare(this,G)===0},x.prototype.inspect=function(){var G="",X=d.INSPECT_MAX_BYTES;return this.length>0&&(G=this.toString("hex",0,X).match(/.{2}/g).join(" "),this.length>X&&(G+=" ... ")),"<Buffer "+G+">"},x.prototype.compare=function(G,X,J,Ae,he){if(!x.isBuffer(G))throw new TypeError("Argument must be a Buffer");if(X===void 0&&(X=0),J===void 0&&(J=G?G.length:0),Ae===void 0&&(Ae=0),he===void 0&&(he=this.length),X<0||J>G.length||Ae<0||he>this.length)throw new RangeError("out of range index");if(Ae>=he&&X>=J)return 0;if(Ae>=he)return-1;if(X>=J)return 1;if(X>>>=0,J>>>=0,Ae>>>=0,he>>>=0,this===G)return 0;for(var Me=he-Ae,Ie=J-X,oe=Math.min(Me,Ie),pe=this.slice(Ae,he),Oe=G.slice(X,J),Ye=0;Ye<oe;++Ye)if(pe[Ye]!==Oe[Ye]){Me=pe[Ye],Ie=Oe[Ye];break}return Me<Ie?-1:Ie<Me?1:0};function A(re,G,X,J,Ae){if(re.length===0)return-1;if(typeof X=="string"?(J=X,X=0):X>2147483647?X=2147483647:X<-2147483648&&(X=-2147483648),X=+X,isNaN(X)&&(X=Ae?0:re.length-1),X<0&&(X=re.length+X),X>=re.length){if(Ae)return-1;X=re.length-1}else if(X<0)if(Ae)X=0;else return-1;if(typeof G=="string"&&(G=x.from(G,J)),x.isBuffer(G))return G.length===0?-1:y(re,G,X,J,Ae);if(typeof G=="number")return G=G&255,x.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Ae?Uint8Array.prototype.indexOf.call(re,G,X):Uint8Array.prototype.lastIndexOf.call(re,G,X):y(re,[G],X,J,Ae);throw new TypeError("val must be string, number or Buffer")}function y(re,G,X,J,Ae){var he=1,Me=re.length,Ie=G.length;if(J!==void 0&&(J=String(J).toLowerCase(),J==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(re.length<2||G.length<2)return-1;he=2,Me/=2,Ie/=2,X/=2}function oe(et,Te){return he===1?et[Te]:et.readUInt16BE(Te*he)}var pe;if(Ae){var Oe=-1;for(pe=X;pe<Me;pe++)if(oe(re,pe)===oe(G,Oe===-1?0:pe-Oe)){if(Oe===-1&&(Oe=pe),pe-Oe+1===Ie)return Oe*he}else Oe!==-1&&(pe-=pe-Oe),Oe=-1}else for(X+Ie>Me&&(X=Me-Ie),pe=X;pe>=0;pe--){for(var Ye=!0,it=0;it<Ie;it++)if(oe(re,pe+it)!==oe(G,it)){Ye=!1;break}if(Ye)return pe}return-1}x.prototype.includes=function(G,X,J){return this.indexOf(G,X,J)!==-1},x.prototype.indexOf=function(G,X,J){return A(this,G,X,J,!0)},x.prototype.lastIndexOf=function(G,X,J){return A(this,G,X,J,!1)};function E(re,G,X,J){X=Number(X)||0;var Ae=re.length-X;J?(J=Number(J),J>Ae&&(J=Ae)):J=Ae;var he=G.length;if(he%2!==0)throw new TypeError("Invalid hex string");J>he/2&&(J=he/2);for(var Me=0;Me<J;++Me){var Ie=parseInt(G.substr(Me*2,2),16);if(isNaN(Ie))return Me;re[X+Me]=Ie}return Me}function C(re,G,X,J){return me(He(G,re.length-X),re,X,J)}function w(re,G,X,J){return me(ce(G),re,X,J)}function b(re,G,X,J){return w(re,G,X,J)}function I(re,G,X,J){return me(Q(G),re,X,J)}function _(re,G,X,J){return me(Pe(G,re.length-X),re,X,J)}x.prototype.write=function(G,X,J,Ae){if(X===void 0)Ae="utf8",J=this.length,X=0;else if(J===void 0&&typeof X=="string")Ae=X,J=this.length,X=0;else if(isFinite(X))X=X|0,isFinite(J)?(J=J|0,Ae===void 0&&(Ae="utf8")):(Ae=J,J=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var he=this.length-X;if((J===void 0||J>he)&&(J=he),G.length>0&&(J<0||X<0)||X>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ae||(Ae="utf8");for(var Me=!1;;)switch(Ae){case"hex":return E(this,G,X,J);case"utf8":case"utf-8":return C(this,G,X,J);case"ascii":return w(this,G,X,J);case"latin1":case"binary":return b(this,G,X,J);case"base64":return I(this,G,X,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,G,X,J);default:if(Me)throw new TypeError("Unknown encoding: "+Ae);Ae=(""+Ae).toLowerCase(),Me=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L(re,G,X){return G===0&&X===re.length?T.fromByteArray(re):T.fromByteArray(re.slice(G,X))}function D(re,G,X){X=Math.min(re.length,X);for(var J=[],Ae=G;Ae<X;){var he=re[Ae],Me=null,Ie=he>239?4:he>223?3:he>191?2:1;if(Ae+Ie<=X){var oe,pe,Oe,Ye;switch(Ie){case 1:he<128&&(Me=he);break;case 2:oe=re[Ae+1],(oe&192)===128&&(Ye=(he&31)<<6|oe&63,Ye>127&&(Me=Ye));break;case 3:oe=re[Ae+1],pe=re[Ae+2],(oe&192)===128&&(pe&192)===128&&(Ye=(he&15)<<12|(oe&63)<<6|pe&63,Ye>2047&&(Ye<55296||Ye>57343)&&(Me=Ye));break;case 4:oe=re[Ae+1],pe=re[Ae+2],Oe=re[Ae+3],(oe&192)===128&&(pe&192)===128&&(Oe&192)===128&&(Ye=(he&15)<<18|(oe&63)<<12|(pe&63)<<6|Oe&63,Ye>65535&&Ye<1114112&&(Me=Ye))}}Me===null?(Me=65533,Ie=1):Me>65535&&(Me-=65536,J.push(Me>>>10&1023|55296),Me=56320|Me&1023),J.push(Me),Ae+=Ie}return R(J)}var N=4096;function R(re){var G=re.length;if(G<=N)return String.fromCharCode.apply(String,re);for(var X="",J=0;J<G;)X+=String.fromCharCode.apply(String,re.slice(J,J+=N));return X}function B(re,G,X){var J="";X=Math.min(re.length,X);for(var Ae=G;Ae<X;++Ae)J+=String.fromCharCode(re[Ae]&127);return J}function M(re,G,X){var J="";X=Math.min(re.length,X);for(var Ae=G;Ae<X;++Ae)J+=String.fromCharCode(re[Ae]);return J}function H(re,G,X){var J=re.length;(!G||G<0)&&(G=0),(!X||X<0||X>J)&&(X=J);for(var Ae="",he=G;he<X;++he)Ae+=Le(re[he]);return Ae}function F(re,G,X){for(var J=re.slice(G,X),Ae="",he=0;he<J.length;he+=2)Ae+=String.fromCharCode(J[he]+J[he+1]*256);return Ae}x.prototype.slice=function(G,X){var J=this.length;G=~~G,X=X===void 0?J:~~X,G<0?(G+=J,G<0&&(G=0)):G>J&&(G=J),X<0?(X+=J,X<0&&(X=0)):X>J&&(X=J),X<G&&(X=G);var Ae;if(x.TYPED_ARRAY_SUPPORT)Ae=this.subarray(G,X),Ae.__proto__=x.prototype;else{var he=X-G;Ae=new x(he,void 0);for(var Me=0;Me<he;++Me)Ae[Me]=this[Me+G]}return Ae};function K(re,G,X){if(re%1!==0||re<0)throw new RangeError("offset is not uint");if(re+G>X)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUIntLE=function(G,X,J){G=G|0,X=X|0,J||K(G,X,this.length);for(var Ae=this[G],he=1,Me=0;++Me<X&&(he*=256);)Ae+=this[G+Me]*he;return Ae},x.prototype.readUIntBE=function(G,X,J){G=G|0,X=X|0,J||K(G,X,this.length);for(var Ae=this[G+--X],he=1;X>0&&(he*=256);)Ae+=this[G+--X]*he;return Ae},x.prototype.readUInt8=function(G,X){return X||K(G,1,this.length),this[G]},x.prototype.readUInt16LE=function(G,X){return X||K(G,2,this.length),this[G]|this[G+1]<<8},x.prototype.readUInt16BE=function(G,X){return X||K(G,2,this.length),this[G]<<8|this[G+1]},x.prototype.readUInt32LE=function(G,X){return X||K(G,4,this.length),(this[G]|this[G+1]<<8|this[G+2]<<16)+this[G+3]*16777216},x.prototype.readUInt32BE=function(G,X){return X||K(G,4,this.length),this[G]*16777216+(this[G+1]<<16|this[G+2]<<8|this[G+3])},x.prototype.readIntLE=function(G,X,J){G=G|0,X=X|0,J||K(G,X,this.length);for(var Ae=this[G],he=1,Me=0;++Me<X&&(he*=256);)Ae+=this[G+Me]*he;return he*=128,Ae>=he&&(Ae-=Math.pow(2,8*X)),Ae},x.prototype.readIntBE=function(G,X,J){G=G|0,X=X|0,J||K(G,X,this.length);for(var Ae=X,he=1,Me=this[G+--Ae];Ae>0&&(he*=256);)Me+=this[G+--Ae]*he;return he*=128,Me>=he&&(Me-=Math.pow(2,8*X)),Me},x.prototype.readInt8=function(G,X){return X||K(G,1,this.length),this[G]&128?(255-this[G]+1)*-1:this[G]},x.prototype.readInt16LE=function(G,X){X||K(G,2,this.length);var J=this[G]|this[G+1]<<8;return J&32768?J|4294901760:J},x.prototype.readInt16BE=function(G,X){X||K(G,2,this.length);var J=this[G+1]|this[G]<<8;return J&32768?J|4294901760:J},x.prototype.readInt32LE=function(G,X){return X||K(G,4,this.length),this[G]|this[G+1]<<8|this[G+2]<<16|this[G+3]<<24},x.prototype.readInt32BE=function(G,X){return X||K(G,4,this.length),this[G]<<24|this[G+1]<<16|this[G+2]<<8|this[G+3]},x.prototype.readFloatLE=function(G,X){return X||K(G,4,this.length),v.read(this,G,!0,23,4)},x.prototype.readFloatBE=function(G,X){return X||K(G,4,this.length),v.read(this,G,!1,23,4)},x.prototype.readDoubleLE=function(G,X){return X||K(G,8,this.length),v.read(this,G,!0,52,8)},x.prototype.readDoubleBE=function(G,X){return X||K(G,8,this.length),v.read(this,G,!1,52,8)};function j(re,G,X,J,Ae,he){if(!x.isBuffer(re))throw new TypeError('"buffer" argument must be a Buffer instance');if(G>Ae||G<he)throw new RangeError('"value" argument is out of bounds');if(X+J>re.length)throw new RangeError("Index out of range")}x.prototype.writeUIntLE=function(G,X,J,Ae){if(G=+G,X=X|0,J=J|0,!Ae){var he=Math.pow(2,8*J)-1;j(this,G,X,J,he,0)}var Me=1,Ie=0;for(this[X]=G&255;++Ie<J&&(Me*=256);)this[X+Ie]=G/Me&255;return X+J},x.prototype.writeUIntBE=function(G,X,J,Ae){if(G=+G,X=X|0,J=J|0,!Ae){var he=Math.pow(2,8*J)-1;j(this,G,X,J,he,0)}var Me=J-1,Ie=1;for(this[X+Me]=G&255;--Me>=0&&(Ie*=256);)this[X+Me]=G/Ie&255;return X+J},x.prototype.writeUInt8=function(G,X,J){return G=+G,X=X|0,J||j(this,G,X,1,255,0),x.TYPED_ARRAY_SUPPORT||(G=Math.floor(G)),this[X]=G&255,X+1};function V(re,G,X,J){G<0&&(G=65535+G+1);for(var Ae=0,he=Math.min(re.length-X,2);Ae<he;++Ae)re[X+Ae]=(G&255<<8*(J?Ae:1-Ae))>>>(J?Ae:1-Ae)*8}x.prototype.writeUInt16LE=function(G,X,J){return G=+G,X=X|0,J||j(this,G,X,2,65535,0),x.TYPED_ARRAY_SUPPORT?(this[X]=G&255,this[X+1]=G>>>8):V(this,G,X,!0),X+2},x.prototype.writeUInt16BE=function(G,X,J){return G=+G,X=X|0,J||j(this,G,X,2,65535,0),x.TYPED_ARRAY_SUPPORT?(this[X]=G>>>8,this[X+1]=G&255):V(this,G,X,!1),X+2};function z(re,G,X,J){G<0&&(G=4294967295+G+1);for(var Ae=0,he=Math.min(re.length-X,4);Ae<he;++Ae)re[X+Ae]=G>>>(J?Ae:3-Ae)*8&255}x.prototype.writeUInt32LE=function(G,X,J){return G=+G,X=X|0,J||j(this,G,X,4,4294967295,0),x.TYPED_ARRAY_SUPPORT?(this[X+3]=G>>>24,this[X+2]=G>>>16,this[X+1]=G>>>8,this[X]=G&255):z(this,G,X,!0),X+4},x.prototype.writeUInt32BE=function(G,X,J){return G=+G,X=X|0,J||j(this,G,X,4,4294967295,0),x.TYPED_ARRAY_SUPPORT?(this[X]=G>>>24,this[X+1]=G>>>16,this[X+2]=G>>>8,this[X+3]=G&255):z(this,G,X,!1),X+4},x.prototype.writeIntLE=function(G,X,J,Ae){if(G=+G,X=X|0,!Ae){var he=Math.pow(2,8*J-1);j(this,G,X,J,he-1,-he)}var Me=0,Ie=1,oe=0;for(this[X]=G&255;++Me<J&&(Ie*=256);)G<0&&oe===0&&this[X+Me-1]!==0&&(oe=1),this[X+Me]=(G/Ie>>0)-oe&255;return X+J},x.prototype.writeIntBE=function(G,X,J,Ae){if(G=+G,X=X|0,!Ae){var he=Math.pow(2,8*J-1);j(this,G,X,J,he-1,-he)}var Me=J-1,Ie=1,oe=0;for(this[X+Me]=G&255;--Me>=0&&(Ie*=256);)G<0&&oe===0&&this[X+Me+1]!==0&&(oe=1),this[X+Me]=(G/Ie>>0)-oe&255;return X+J},x.prototype.writeInt8=function(G,X,J){return G=+G,X=X|0,J||j(this,G,X,1,127,-128),x.TYPED_ARRAY_SUPPORT||(G=Math.floor(G)),G<0&&(G=255+G+1),this[X]=G&255,X+1},x.prototype.writeInt16LE=function(G,X,J){return G=+G,X=X|0,J||j(this,G,X,2,32767,-32768),x.TYPED_ARRAY_SUPPORT?(this[X]=G&255,this[X+1]=G>>>8):V(this,G,X,!0),X+2},x.prototype.writeInt16BE=function(G,X,J){return G=+G,X=X|0,J||j(this,G,X,2,32767,-32768),x.TYPED_ARRAY_SUPPORT?(this[X]=G>>>8,this[X+1]=G&255):V(this,G,X,!1),X+2},x.prototype.writeInt32LE=function(G,X,J){return G=+G,X=X|0,J||j(this,G,X,4,2147483647,-2147483648),x.TYPED_ARRAY_SUPPORT?(this[X]=G&255,this[X+1]=G>>>8,this[X+2]=G>>>16,this[X+3]=G>>>24):z(this,G,X,!0),X+4},x.prototype.writeInt32BE=function(G,X,J){return G=+G,X=X|0,J||j(this,G,X,4,2147483647,-2147483648),G<0&&(G=4294967295+G+1),x.TYPED_ARRAY_SUPPORT?(this[X]=G>>>24,this[X+1]=G>>>16,this[X+2]=G>>>8,this[X+3]=G&255):z(this,G,X,!1),X+4};function Y(re,G,X,J,Ae,he){if(X+J>re.length)throw new RangeError("Index out of range");if(X<0)throw new RangeError("Index out of range")}function ee(re,G,X,J,Ae){return Ae||Y(re,G,X,4,34028234663852886e22,-34028234663852886e22),v.write(re,G,X,J,23,4),X+4}x.prototype.writeFloatLE=function(G,X,J){return ee(this,G,X,!0,J)},x.prototype.writeFloatBE=function(G,X,J){return ee(this,G,X,!1,J)};function fe(re,G,X,J,Ae){return Ae||Y(re,G,X,8,17976931348623157e292,-17976931348623157e292),v.write(re,G,X,J,52,8),X+8}x.prototype.writeDoubleLE=function(G,X,J){return fe(this,G,X,!0,J)},x.prototype.writeDoubleBE=function(G,X,J){return fe(this,G,X,!1,J)},x.prototype.copy=function(G,X,J,Ae){if(J||(J=0),!Ae&&Ae!==0&&(Ae=this.length),X>=G.length&&(X=G.length),X||(X=0),Ae>0&&Ae<J&&(Ae=J),Ae===J)return 0;if(G.length===0||this.length===0)return 0;if(X<0)throw new RangeError("targetStart out of bounds");if(J<0||J>=this.length)throw new RangeError("sourceStart out of bounds");if(Ae<0)throw new RangeError("sourceEnd out of bounds");Ae>this.length&&(Ae=this.length),G.length-X<Ae-J&&(Ae=G.length-X+J);var he=Ae-J,Me;if(this===G&&J<X&&X<Ae)for(Me=he-1;Me>=0;--Me)G[Me+X]=this[Me+J];else if(he<1e3||!x.TYPED_ARRAY_SUPPORT)for(Me=0;Me<he;++Me)G[Me+X]=this[Me+J];else Uint8Array.prototype.set.call(G,this.subarray(J,J+he),X);return he},x.prototype.fill=function(G,X,J,Ae){if(typeof G=="string"){if(typeof X=="string"?(Ae=X,X=0,J=this.length):typeof J=="string"&&(Ae=J,J=this.length),G.length===1){var he=G.charCodeAt(0);he<256&&(G=he)}if(Ae!==void 0&&typeof Ae!="string")throw new TypeError("encoding must be a string");if(typeof Ae=="string"&&!x.isEncoding(Ae))throw new TypeError("Unknown encoding: "+Ae)}else typeof G=="number"&&(G=G&255);if(X<0||this.length<X||this.length<J)throw new RangeError("Out of range index");if(J<=X)return this;X=X>>>0,J=J===void 0?this.length:J>>>0,G||(G=0);var Me;if(typeof G=="number")for(Me=X;Me<J;++Me)this[Me]=G;else{var Ie=x.isBuffer(G)?G:He(new x(G,Ae).toString()),oe=Ie.length;for(Me=0;Me<J-X;++Me)this[Me+X]=Ie[Me%oe]}return this};var ie=/[^+\/0-9A-Za-z-_]/g;function we(re){if(re=Ce(re).replace(ie,""),re.length<2)return"";for(;re.length%4!==0;)re=re+"=";return re}function Ce(re){return re.trim?re.trim():re.replace(/^\s+|\s+$/g,"")}function Le(re){return re<16?"0"+re.toString(16):re.toString(16)}function He(re,G){G=G||Infinity;for(var X,J=re.length,Ae=null,he=[],Me=0;Me<J;++Me){if(X=re.charCodeAt(Me),X>55295&&X<57344){if(!Ae){if(X>56319){(G-=3)>-1&&he.push(239,191,189);continue}else if(Me+1===J){(G-=3)>-1&&he.push(239,191,189);continue}Ae=X;continue}if(X<56320){(G-=3)>-1&&he.push(239,191,189),Ae=X;continue}X=(Ae-55296<<10|X-56320)+65536}else Ae&&((G-=3)>-1&&he.push(239,191,189));if(Ae=null,X<128){if((G-=1)<0)break;he.push(X)}else if(X<2048){if((G-=2)<0)break;he.push(X>>6|192,X&63|128)}else if(X<65536){if((G-=3)<0)break;he.push(X>>12|224,X>>6&63|128,X&63|128)}else if(X<1114112){if((G-=4)<0)break;he.push(X>>18|240,X>>12&63|128,X>>6&63|128,X&63|128)}else throw new Error("Invalid code point")}return he}function ce(re){for(var G=[],X=0;X<re.length;++X)G.push(re.charCodeAt(X)&255);return G}function Pe(re,G){for(var X,J,Ae,he=[],Me=0;Me<re.length&&!((G-=2)<0);++Me)X=re.charCodeAt(Me),J=X>>8,Ae=X%256,he.push(Ae),he.push(J);return he}function Q(re){return T.toByteArray(we(re))}function me(re,G,X,J){for(var Ae=0;Ae<J&&!(Ae+X>=G.length||Ae>=re.length);++Ae)G[Ae+X]=re[Ae];return Ae}function Je(re){return re!==re}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},U("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(U,P,d){P.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}},{}],75:[function(U,P,d){P.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],76:[function(U,P,d){/*!
|
|
|
* copy-to - index.js
|
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var O=Array.prototype.slice;P.exports=x;function x(v,S){if(!(this instanceof x))return new x(v,S);this.src=v,this._withAccess=S}x.prototype.withAccess=function(v){return this._withAccess=v!==!1,this},x.prototype.pick=function(v){return Array.isArray(v)||(v=O.call(arguments)),v.length&&(this.keys=v),this},x.prototype.to=function(v){if(v=v||{},!this.src)return v;var S=this.keys||Object.keys(this.src);if(!this._withAccess){for(var m=0;m<S.length;m++){if(f=S[m],v[f]!==void 0)continue;v[f]=this.src[f]}return v}for(var m=0;m<S.length;m++){var f=S[m];if(!T(v,f))continue;var c=this.src.__lookupGetter__(f),o=this.src.__lookupSetter__(f);c&&v.__defineGetter__(f,c),o&&v.__defineSetter__(f,o),!c&&!o&&(v[f]=this.src[f])}return v},x.prototype.toCover=function(v){for(var S=this.keys||Object.keys(this.src),m=0;m<S.length;m++){var f=S[m];delete v[f];var c=this.src.__lookupGetter__(f),o=this.src.__lookupSetter__(f);c&&v.__defineGetter__(f,c),o&&v.__defineSetter__(f,o),!c&&!o&&(v[f]=this.src[f])}},x.prototype.override=x.prototype.toCover,x.prototype.and=function(v){var S={};return this.to(S),this.src=v,this.to(S),this.src=S,this};function T(v,S){return v[S]===void 0&&v.__lookupGetter__(S)===void 0&&v.__lookupSetter__(S)===void 0}},{}],77:[function(U,P,d){U("../../modules/es6.string.iterator"),U("../../modules/es6.array.from"),P.exports=U("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(U,P,d){var O=U("../../modules/_core"),x=O.JSON||(O.JSON={stringify:JSON.stringify});P.exports=function(v){return x.stringify.apply(x,arguments)}},{"../../modules/_core":99}],79:[function(U,P,d){U("../../modules/es6.object.assign"),P.exports=U("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(U,P,d){U("../../modules/es6.object.create");var O=U("../../modules/_core").Object;P.exports=function(T,v){return O.create(T,v)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(U,P,d){U("../../modules/es6.object.define-property");var O=U("../../modules/_core").Object;P.exports=function(T,v,S){return O.defineProperty(T,v,S)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(U,P,d){U("../../modules/es7.object.entries"),P.exports=U("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(U,P,d){U("../../modules/es6.object.get-own-property-names");var O=U("../../modules/_core").Object;P.exports=function(T){return O.getOwnPropertyNames(T)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(U,P,d){U("../../modules/es6.object.get-prototype-of"),P.exports=U("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(U,P,d){U("../../modules/es6.object.keys"),P.exports=U("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(U,P,d){U("../modules/es6.object.to-string"),U("../modules/es6.string.iterator"),U("../modules/web.dom.iterable"),U("../modules/es6.promise"),U("../modules/es7.promise.finally"),U("../modules/es7.promise.try"),P.exports=U("../modules/_core").Promise},{"../modules/_core":99,"../modules/es6.object.to-string":177,"../modules/es6.promise":178,"../modules/es6.string.iterator":180,"../modules/es7.promise.finally":183,"../modules/es7.promise.try":184,"../modules/web.dom.iterable":187}],87:[function(U,P,d){U("../modules/web.immediate"),P.exports=U("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(U,P,d){U("../../modules/es6.string.from-code-point"),P.exports=U("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(U,P,d){U("../../modules/es6.function.has-instance"),P.exports=U("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(U,P,d){U("../../modules/es6.symbol"),U("../../modules/es6.object.to-string"),U("../../modules/es7.symbol.async-iterator"),U("../../modules/es7.symbol.observable"),P.exports=U("../../modules/_core").Symbol},{"../../modules/_core":99,"../../modules/es6.object.to-string":177,"../../modules/es6.symbol":181,"../../modules/es7.symbol.async-iterator":185,"../../modules/es7.symbol.observable":186}],91:[function(U,P,d){U("../../modules/es6.string.iterator"),U("../../modules/web.dom.iterable"),P.exports=U("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(U,P,d){P.exports=function(O){if(typeof O!="function")throw TypeError(O+" is not a function!");return O}},{}],93:[function(U,P,d){P.exports=function(){}},{}],94:[function(U,P,d){P.exports=function(O,x,T,v){if(!(O instanceof x)||v!==void 0&&v in O)throw TypeError(T+": incorrect invocation!");return O}},{}],95:[function(U,P,d){var O=U("./_is-object");P.exports=function(x){if(!O(x))throw TypeError(x+" is not an object!");return x}},{"./_is-object":119}],96:[function(U,P,d){var O=U("./_to-iobject"),x=U("./_to-length"),T=U("./_to-absolute-index");P.exports=function(v){return function(S,m,f){var c=O(S),o=x(c.length),r=T(f,o),a;if(v&&m!=m){for(;o>r;)if(a=c[r++],a!=a)return!0}else for(;o>r;r++)if((v||r in c)&&c[r]===m)return v||r||0;return!v&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(U,P,d){var O=U("./_cof"),x=U("./_wks")("toStringTag"),T=O(function(){return arguments}())=="Arguments",v=function(m,f){try{return m[f]}catch(c){}};P.exports=function(S){var m,f,c;return S===void 0?"Undefined":S===null?"Null":typeof(f=v(m=Object(S),x))=="string"?f:T?O(m):(c=O(m))=="Object"&&typeof m.callee=="function"?"Arguments":c}},{"./_cof":98,"./_wks":166}],98:[function(U,P,d){var O={}.toString;P.exports=function(x){return O.call(x).slice(8,-1)}},{}],99:[function(U,P,d){var O=P.exports={version:"2.6.11"};typeof __e=="number"&&(__e=O)},{}],100:[function(U,P,d){"use strict";var O=U("./_object-dp"),x=U("./_property-desc");P.exports=function(T,v,S){v in T?O.f(T,v,x(0,S)):T[v]=S}},{"./_object-dp":132,"./_property-desc":146}],101:[function(U,P,d){var O=U("./_a-function");P.exports=function(x,T,v){if(O(x),T===void 0)return x;switch(v){case 1:return function(S){return x.call(T,S)};case 2:return function(S,m){return x.call(T,S,m)};case 3:return function(S,m,f){return x.call(T,S,m,f)}}return function(){return x.apply(T,arguments)}}},{"./_a-function":92}],102:[function(U,P,d){P.exports=function(O){if(O==null)throw TypeError("Can't call method on "+O);return O}},{}],103:[function(U,P,d){P.exports=!U("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(U,P,d){var O=U("./_is-object"),x=U("./_global").document,T=O(x)&&O(x.createElement);P.exports=function(v){return T?x.createElement(v):{}}},{"./_global":110,"./_is-object":119}],105:[function(U,P,d){P.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(U,P,d){var O=U("./_object-keys"),x=U("./_object-gops"),T=U("./_object-pie");P.exports=function(v){var S=O(v),m=x.f;if(m)for(var f=m(v),c=T.f,o=0,r;f.length>o;)c.call(v,r=f[o++])&&S.push(r);return S}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(U,P,d){var O=U("./_global"),x=U("./_core"),T=U("./_ctx"),v=U("./_hide"),S=U("./_has"),m="prototype",f=function c(o,r,a){var n=o&c.F,e=o&c.G,s=o&c.S,t=o&c.P,i=o&c.B,l=o&c.W,u=e?x:x[r]||(x[r]={}),h=u[m],p=e?O:s?O[r]:(O[r]||{})[m],g,A,y;e&&(a=r);for(g in a){if(A=!n&&p&&p[g]!==void 0,A&&S(u,g))continue;y=A?p[g]:a[g],u[g]=e&&typeof p[g]!="function"?a[g]:i&&A?T(y,O):l&&p[g]==y?function(E){var C=function(b,I,_){if(this instanceof E){switch(arguments.length){case 0:return new E;case 1:return new E(b);case 2:return new E(b,I)}return new E(b,I,_)}return E.apply(this,arguments)};return C[m]=E[m],C}(y):t&&typeof y=="function"?T(Function.call,y):y,t&&((u.virtual||(u.virtual={}))[g]=y,o&c.R&&h&&!h[g]&&v(h,g,y))}};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,P.exports=f},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(U,P,d){P.exports=function(O){try{return!!O()}catch(x){return!0}}},{}],109:[function(U,P,d){var O=U("./_ctx"),x=U("./_iter-call"),T=U("./_is-array-iter"),v=U("./_an-object"),S=U("./_to-length"),m=U("./core.get-iterator-method"),f={},c={},d=P.exports=function(o,r,a,n,e){var s=e?function(){return o}:m(o),t=O(a,n,r?2:1),i=0,l,u,h,p;if(typeof s!="function")throw TypeError(o+" is not iterable!");if(T(s)){for(l=S(o.length);l>i;i++)if(p=r?t(v(u=o[i])[0],u[1]):t(o[i]),p===f||p===c)return p}else for(h=s.call(o);!(u=h.next()).done;)if(p=x(h,t,u.value,r),p===f||p===c)return p};d.BREAK=f,d.RETURN=c},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(U,P,d){var O=P.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=O)},{}],111:[function(U,P,d){var O={}.hasOwnProperty;P.exports=function(x,T){return O.call(x,T)}},{}],112:[function(U,P,d){var O=U("./_object-dp"),x=U("./_property-desc");P.exports=U("./_descriptors")?function(T,v,S){return O.f(T,v,x(1,S))}:function(T,v,S){return T[v]=S,T}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(U,P,d){var O=U("./_global").document;P.exports=O&&O.documentElement},{"./_global":110}],114:[function(U,P,d){P.exports=!U("./_descriptors")&&!U("./_fails")(function(){return Object.defineProperty(U("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(U,P,d){P.exports=function(O,x,T){var v=T===void 0;switch(x.length){case 0:return v?O():O.call(T);case 1:return v?O(x[0]):O.call(T,x[0]);case 2:return v?O(x[0],x[1]):O.call(T,x[0],x[1]);case 3:return v?O(x[0],x[1],x[2]):O.call(T,x[0],x[1],x[2]);case 4:return v?O(x[0],x[1],x[2],x[3]):O.call(T,x[0],x[1],x[2],x[3])}return O.apply(T,x)}},{}],116:[function(U,P,d){var O=U("./_cof");P.exports=Object("z").propertyIsEnumerable(0)?Object:function(x){return O(x)=="String"?x.split(""):Object(x)}},{"./_cof":98}],117:[function(U,P,d){var O=U("./_iterators"),x=U("./_wks")("iterator"),T=Array.prototype;P.exports=function(v){return v!==void 0&&(O.Array===v||T[x]===v)}},{"./_iterators":125,"./_wks":166}],118:[function(U,P,d){var O=U("./_cof");P.exports=Array.isArray||function(T){return O(T)=="Array"}},{"./_cof":98}],119:[function(U,P,d){P.exports=function(O){return typeof O=="object"?O!==null:typeof O=="function"}},{}],120:[function(U,P,d){var O=U("./_an-object");P.exports=function(x,T,v,S){try{return S?T(O(v)[0],v[1]):T(v)}catch(f){var m=x.return;throw m!==void 0&&O(m.call(x)),f}}},{"./_an-object":95}],121:[function(U,P,d){"use strict";var O=U("./_object-create"),x=U("./_property-desc"),T=U("./_set-to-string-tag"),v={};U("./_hide")(v,U("./_wks")("iterator"),function(){return this}),P.exports=function(S,m,f){S.prototype=O(v,{next:x(1,f)}),T(S,m+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(U,P,d){"use strict";var O=U("./_library"),x=U("./_export"),T=U("./_redefine"),v=U("./_hide"),S=U("./_iterators"),m=U("./_iter-create"),f=U("./_set-to-string-tag"),c=U("./_object-gpo"),o=U("./_wks")("iterator"),r=!([].keys&&"next"in[].keys()),a="@@iterator",n="keys",e="values",s=function(){return this};P.exports=function(t,i,l,u,h,p,g){m(l,i,u);var A=function(M){if(!r&&M in w)return w[M];switch(M){case n:return function(){return new l(this,M)};case e:return function(){return new l(this,M)}}return function(){return new l(this,M)}},y=i+" Iterator",E=h==e,C=!1,w=t.prototype,b=w[o]||w[a]||h&&w[h],I=b||A(h),_=h?E?A("entries"):I:void 0,L=i=="Array"&&w.entries||b,D,N,R;if(L&&(R=c(L.call(new t)),R!==Object.prototype&&R.next&&(f(R,y,!0),!O&&typeof R[o]!="function"&&v(R,o,s))),E&&b&&b.name!==e&&(C=!0,I=function(){return b.call(this)}),(!O||g)&&(r||C||!w[o])&&v(w,o,I),S[i]=I,S[y]=s,h)if(D={values:E?I:A(e),keys:p?I:A(n),entries:_},g)for(N in D)N in w||T(w,N,D[N]);else x(x.P+x.F*(r||C),i,D);return D}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(U,P,d){var O=U("./_wks")("iterator"),x=!1;try{var T=[7][O]();T.return=function(){x=!0},Array.from(T,function(){throw 2})}catch(v){}P.exports=function(v,S){if(!S&&!x)return!1;var m=!1;try{var f=[7],c=f[O]();c.next=function(){return{done:m=!0}},f[O]=function(){return c},v(f)}catch(o){}return m}},{"./_wks":166}],124:[function(U,P,d){P.exports=function(O,x){return{value:x,done:!!O}}},{}],125:[function(U,P,d){P.exports={}},{}],126:[function(U,P,d){P.exports=!0},{}],127:[function(U,P,d){var O=U("./_uid")("meta"),x=U("./_is-object"),T=U("./_has"),v=U("./_object-dp").f,S=0,m=Object.isExtensible||function(){return!0},f=!U("./_fails")(function(){return m(Object.preventExtensions({}))}),c=function(s){v(s,O,{value:{i:"O"+ ++S,w:{}}})},o=function(s,t){if(!x(s))return typeof s=="symbol"?s:(typeof s=="string"?"S":"P")+s;if(!T(s,O)){if(!m(s))return"F";if(!t)return"E";c(s)}return s[O].i},r=function(s,t){if(!T(s,O)){if(!m(s))return!0;if(!t)return!1;c(s)}return s[O].w},a=function(s){return f&&n.NEED&&m(s)&&!T(s,O)&&c(s),s},n=P.exports={KEY:O,NEED:!1,fastKey:o,getWeak:r,onFreeze:a}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(U,P,d){var O=U("./_global"),x=U("./_task").set,T=O.MutationObserver||O.WebKitMutationObserver,v=O.process,S=O.Promise,m=U("./_cof")(v)=="process";P.exports=function(){var f,c,o,r=function(){var t,i;for(m&&(t=v.domain)&&t.exit();f;){i=f.fn,f=f.next;try{i()}catch(l){throw f?o():c=void 0,l}}c=void 0,t&&t.enter()};if(m)o=function(){v.nextTick(r)};else if(T&&!(O.navigator&&O.navigator.standalone)){var a=!0,n=document.createTextNode("");new T(r).observe(n,{characterData:!0}),o=function(){n.data=a=!a}}else if(S&&S.resolve){var e=S.resolve(void 0);o=function(){e.then(r)}}else o=function(){x.call(O,r)};return function(s){var t={fn:s,next:void 0};c&&(c.next=t),f||(f=t,o()),c=t}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(U,P,d){"use strict";var O=U("./_a-function");function x(T){var v,S;this.promise=new T(function(m,f){if(v!==void 0||S!==void 0)throw TypeError("Bad Promise constructor");v=m,S=f}),this.resolve=O(v),this.reject=O(S)}P.exports.f=function(T){return new x(T)}},{"./_a-function":92}],130:[function(U,P,d){"use strict";var O=U("./_descriptors"),x=U("./_object-keys"),T=U("./_object-gops"),v=U("./_object-pie"),S=U("./_to-object"),m=U("./_iobject"),f=Object.assign;P.exports=!f||U("./_fails")(function(){var c={},o={},r=Symbol(),a="abcdefghijklmnopqrst";return c[r]=7,a.split("").forEach(function(n){o[n]=n}),f({},c)[r]!=7||Object.keys(f({},o)).join("")!=a})?function(o,r){for(var a=S(o),n=arguments.length,e=1,s=T.f,t=v.f;n>e;)for(var i=m(arguments[e++]),l=s?x(i).concat(s(i)):x(i),u=l.length,h=0,p;u>h;)p=l[h++],(!O||t.call(i,p))&&(a[p]=i[p]);return a}:f},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(U,P,d){var O=U("./_an-object"),x=U("./_object-dps"),T=U("./_enum-bug-keys"),v=U("./_shared-key")("IE_PROTO"),S=function(){},m="prototype",f=function(){var o=U("./_dom-create")("iframe"),r=T.length,a="<",n=">",e;for(o.style.display="none",U("./_html").appendChild(o),o.src="javascript:",e=o.contentWindow.document,e.open(),e.write(a+"script"+n+"document.F=Object"+a+"/script"+n),e.close(),f=e.F;r--;)delete f[m][T[r]];return f()};P.exports=Object.create||function(o,r){var a;return o!==null?(S[m]=O(o),a=new S,S[m]=null,a[v]=o):a=f(),r===void 0?a:x(a,r)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(U,P,d){var O=U("./_an-object"),x=U("./_ie8-dom-define"),T=U("./_to-primitive"),v=Object.defineProperty;d.f=U("./_descriptors")?Object.defineProperty:function(m,f,c){if(O(m),f=T(f,!0),O(c),x)try{return v(m,f,c)}catch(o){}if("get"in c||"set"in c)throw TypeError("Accessors not supported!");return"value"in c&&(m[f]=c.value),m}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(U,P,d){var O=U("./_object-dp"),x=U("./_an-object"),T=U("./_object-keys");P.exports=U("./_descriptors")?Object.defineProperties:function(S,m){x(S);for(var f=T(m),c=f.length,o=0,r;c>o;)O.f(S,r=f[o++],m[r]);return S}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(U,P,d){var O=U("./_object-pie"),x=U("./_property-desc"),T=U("./_to-iobject"),v=U("./_to-primitive"),S=U("./_has"),m=U("./_ie8-dom-define"),f=Object.getOwnPropertyDescriptor;d.f=U("./_descriptors")?f:function(o,r){if(o=T(o),r=v(r,!0),m)try{return f(o,r)}catch(a){}if(S(o,r))return x(!O.f.call(o,r),o[r])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(U,P,d){var O=U("./_to-iobject"),x=U("./_object-gopn").f,T={}.toString,v=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],S=function(f){try{return x(f)}catch(c){return v.slice()}};P.exports.f=function(f){return v&&T.call(f)=="[object Window]"?S(f):x(O(f))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(U,P,d){var O=U("./_object-keys-internal"),x=U("./_enum-bug-keys").concat("length","prototype");d.f=Object.getOwnPropertyNames||function(v){return O(v,x)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(U,P,d){d.f=Object.getOwnPropertySymbols},{}],138:[function(U,P,d){var O=U("./_has"),x=U("./_to-object"),T=U("./_shared-key")("IE_PROTO"),v=Object.prototype;P.exports=Object.getPrototypeOf||function(S){return S=x(S),O(S,T)?S[T]:typeof S.constructor=="function"&&S instanceof S.constructor?S.constructor.prototype:S instanceof Object?v:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(U,P,d){var O=U("./_has"),x=U("./_to-iobject"),T=U("./_array-includes")(!1),v=U("./_shared-key")("IE_PROTO");P.exports=function(S,m){var f=x(S),c=0,o=[],r;for(r in f)r!=v&&(O(f,r)&&o.push(r));for(;m.length>c;)O(f,r=m[c++])&&(~T(o,r)||o.push(r));return o}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(U,P,d){var O=U("./_object-keys-internal"),x=U("./_enum-bug-keys");P.exports=Object.keys||function(v){return O(v,x)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(U,P,d){d.f={}.propertyIsEnumerable},{}],142:[function(U,P,d){var O=U("./_export"),x=U("./_core"),T=U("./_fails");P.exports=function(v,S){var m=(x.Object||{})[v]||Object[v],f={};f[v]=S(m),O(O.S+O.F*T(function(){m(1)}),"Object",f)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(U,P,d){var O=U("./_descriptors"),x=U("./_object-keys"),T=U("./_to-iobject"),v=U("./_object-pie").f;P.exports=function(S){return function(m){for(var f=T(m),c=x(f),o=c.length,r=0,a=[],n;o>r;)n=c[r++],(!O||v.call(f,n))&&a.push(S?[n,f[n]]:f[n]);return a}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(U,P,d){P.exports=function(O){try{return{e:!1,v:O()}}catch(x){return{e:!0,v:x}}}},{}],145:[function(U,P,d){var O=U("./_an-object"),x=U("./_is-object"),T=U("./_new-promise-capability");P.exports=function(v,S){if(O(v),x(S)&&S.constructor===v)return S;var m=T.f(v),f=m.resolve;return f(S),m.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(U,P,d){P.exports=function(O,x){return{enumerable:!(O&1),configurable:!(O&2),writable:!(O&4),value:x}}},{}],147:[function(U,P,d){var O=U("./_hide");P.exports=function(x,T,v){for(var S in T)v&&x[S]?x[S]=T[S]:O(x,S,T[S]);return x}},{"./_hide":112}],148:[function(U,P,d){P.exports=U("./_hide")},{"./_hide":112}],149:[function(U,P,d){"use strict";var O=U("./_global"),x=U("./_core"),T=U("./_object-dp"),v=U("./_descriptors"),S=U("./_wks")("species");P.exports=function(m){var f=typeof x[m]=="function"?x[m]:O[m];v&&f&&!f[S]&&T.f(f,S,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(U,P,d){var O=U("./_object-dp").f,x=U("./_has"),T=U("./_wks")("toStringTag");P.exports=function(v,S,m){v&&!x(v=m?v:v.prototype,T)&&O(v,T,{configurable:!0,value:S})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(U,P,d){var O=U("./_shared")("keys"),x=U("./_uid");P.exports=function(T){return O[T]||(O[T]=x(T))}},{"./_shared":152,"./_uid":162}],152:[function(U,P,d){var O=U("./_core"),x=U("./_global"),T="__core-js_shared__",v=x[T]||(x[T]={});(P.exports=function(S,m){return v[S]||(v[S]=m!==void 0?m:{})})("versions",[]).push({version:O.version,mode:U("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(U,P,d){var O=U("./_an-object"),x=U("./_a-function"),T=U("./_wks")("species");P.exports=function(v,S){var m=O(v).constructor,f;return m===void 0||(f=O(m)[T])==null?S:x(f)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(U,P,d){var O=U("./_to-integer"),x=U("./_defined");P.exports=function(T){return function(v,S){var m=String(x(v)),f=O(S),c=m.length,o,r;return f<0||f>=c?T?"":void 0:(o=m.charCodeAt(f),o<55296||o>56319||f+1===c||(r=m.charCodeAt(f+1))<56320||r>57343?T?m.charAt(f):o:T?m.slice(f,f+2):(o-55296<<10)+(r-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(U,P,d){var O=U("./_ctx"),x=U("./_invoke"),T=U("./_html"),v=U("./_dom-create"),S=U("./_global"),m=S.process,f=S.setImmediate,c=S.clearImmediate,o=S.MessageChannel,r=S.Dispatch,a=0,n={},e="onreadystatechange",s,t,i,l=function(){var p=+this;if(n.hasOwnProperty(p)){var g=n[p];delete n[p],g()}},u=function(p){l.call(p.data)};(!f||!c)&&(f=function(p){for(var g=[],A=1;arguments.length>A;)g.push(arguments[A++]);return n[++a]=function(){x(typeof p=="function"?p:Function(p),g)},s(a),a},c=function(p){delete n[p]},U("./_cof")(m)=="process"?s=function(p){m.nextTick(O(l,p,1))}:r&&r.now?s=function(p){r.now(O(l,p,1))}:o?(t=new o,i=t.port2,t.port1.onmessage=u,s=O(i.postMessage,i,1)):S.addEventListener&&typeof postMessage=="function"&&!S.importScripts?(s=function(p){S.postMessage(p+"","*")},S.addEventListener("message",u,!1)):e in v("script")?s=function(p){T.appendChild(v("script"))[e]=function(){T.removeChild(this),l.call(p)}}:s=function(p){setTimeout(O(l,p,1),0)}),P.exports={set:f,clear:c}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(U,P,d){var O=U("./_to-integer"),x=Math.max,T=Math.min;P.exports=function(v,S){return v=O(v),v<0?x(v+S,0):T(v,S)}},{"./_to-integer":157}],157:[function(U,P,d){var O=Math.ceil,x=Math.floor;P.exports=function(T){return isNaN(T=+T)?0:(T>0?x:O)(T)}},{}],158:[function(U,P,d){var O=U("./_iobject"),x=U("./_defined");P.exports=function(T){return O(x(T))}},{"./_defined":102,"./_iobject":116}],159:[function(U,P,d){var O=U("./_to-integer"),x=Math.min;P.exports=function(T){return T>0?x(O(T),9007199254740991):0}},{"./_to-integer":157}],160:[function(U,P,d){var O=U("./_defined");P.exports=function(x){return Object(O(x))}},{"./_defined":102}],161:[function(U,P,d){var O=U("./_is-object");P.exports=function(x,T){if(!O(x))return x;var v,S;if(T&&typeof(v=x.toString)=="function"&&!O(S=v.call(x)))return S;if(typeof(v=x.valueOf)=="function"&&!O(S=v.call(x)))return S;if(!T&&typeof(v=x.toString)=="function"&&!O(S=v.call(x)))return S;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(U,P,d){var O=0,x=Math.random();P.exports=function(T){return"Symbol(".concat(T===void 0?"":T,")_",(++O+x).toString(36))}},{}],163:[function(U,P,d){var O=U("./_global"),x=O.navigator;P.exports=x&&x.userAgent||""},{"./_global":110}],164:[function(U,P,d){var O=U("./_global"),x=U("./_core"),T=U("./_library"),v=U("./_wks-ext"),S=U("./_object-dp").f;P.exports=function(m){var f=x.Symbol||(x.Symbol=T?{}:O.Symbol||{});m.charAt(0)!="_"&&!(m in f)&&S(f,m,{value:v.f(m)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(U,P,d){d.f=U("./_wks")},{"./_wks":166}],166:[function(U,P,d){var O=U("./_shared")("wks"),x=U("./_uid"),T=U("./_global").Symbol,v=typeof T=="function",S=P.exports=function(m){return O[m]||(O[m]=v&&T[m]||(v?T:x)("Symbol."+m))};S.store=O},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(U,P,d){var O=U("./_classof"),x=U("./_wks")("iterator"),T=U("./_iterators");P.exports=U("./_core").getIteratorMethod=function(v){if(v!=null)return v[x]||v["@@iterator"]||T[O(v)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(U,P,d){"use strict";var O=U("./_ctx"),x=U("./_export"),T=U("./_to-object"),v=U("./_iter-call"),S=U("./_is-array-iter"),m=U("./_to-length"),f=U("./_create-property"),c=U("./core.get-iterator-method");x(x.S+x.F*!U("./_iter-detect")(function(o){Array.from(o)}),"Array",{from:function(r){var a=T(r),n=typeof this=="function"?this:Array,e=arguments.length,s=e>1?arguments[1]:void 0,t=s!==void 0,i=0,l=c(a),u,h,p,g;if(t&&(s=O(s,e>2?arguments[2]:void 0,2)),l!=null&&!(n==Array&&S(l)))for(g=l.call(a),h=new n;!(p=g.next()).done;i++)f(h,i,t?v(g,s,[p.value,i],!0):p.value);else for(u=m(a.length),h=new n(u);u>i;i++)f(h,i,t?s(a[i],i):a[i]);return h.length=i,h}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(U,P,d){"use strict";var O=U("./_add-to-unscopables"),x=U("./_iter-step"),T=U("./_iterators"),v=U("./_to-iobject");P.exports=U("./_iter-define")(Array,"Array",function(S,m){this._t=v(S),this._i=0,this._k=m},function(){var S=this._t,m=this._k,f=this._i++;return!S||f>=S.length?(this._t=void 0,x(1)):m=="keys"?x(0,f):m=="values"?x(0,S[f]):x(0,[f,S[f]])},"values"),T.Arguments=T.Array,O("keys"),O("values"),O("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(U,P,d){"use strict";var O=U("./_is-object"),x=U("./_object-gpo"),T=U("./_wks")("hasInstance"),v=Function.prototype;T in v||U("./_object-dp").f(v,T,{value:function(m){if(typeof this!="function"||!O(m))return!1;if(!O(this.prototype))return m instanceof this;for(;m=x(m);)if(this.prototype===m)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(U,P,d){var O=U("./_export");O(O.S+O.F,"Object",{assign:U("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(U,P,d){var O=U("./_export");O(O.S,"Object",{create:U("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(U,P,d){var O=U("./_export");O(O.S+O.F*!U("./_descriptors"),"Object",{defineProperty:U("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(U,P,d){U("./_object-sap")("getOwnPropertyNames",function(){return U("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(U,P,d){var O=U("./_to-object"),x=U("./_object-gpo");U("./_object-sap")("getPrototypeOf",function(){return function(v){return x(O(v))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(U,P,d){var O=U("./_to-object"),x=U("./_object-keys");U("./_object-sap")("keys",function(){return function(v){return x(O(v))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(U,P,d){arguments[4][71][0].apply(d,arguments)},{dup:71}],178:[function(U,P,d){"use strict";var O=U("./_library"),x=U("./_global"),T=U("./_ctx"),v=U("./_classof"),S=U("./_export"),m=U("./_is-object"),f=U("./_a-function"),c=U("./_an-instance"),o=U("./_for-of"),r=U("./_species-constructor"),a=U("./_task").set,n=U("./_microtask")(),e=U("./_new-promise-capability"),s=U("./_perform"),t=U("./_user-agent"),i=U("./_promise-resolve"),l="Promise",u=x.TypeError,h=x.process,p=h&&h.versions,g=p&&p.v8||"",A=x[l],y=v(h)=="process",E=function(){},C,w,b,I,_=w=e.f,L=!!function(){try{var K=A.resolve(1),j=(K.constructor={})[U("./_wks")("species")]=function(V){V(E,E)};return(y||typeof PromiseRejectionEvent=="function")&&K.then(E)instanceof j&&g.indexOf("6.6")!==0&&t.indexOf("Chrome/66")===-1}catch(V){}}(),D=function(j){var V;return m(j)&&typeof(V=j.then)=="function"?V:!1},N=function(j,V){if(j._n)return;j._n=!0;var z=j._c;n(function(){for(var Y=j._v,ee=j._s==1,fe=0,ie=function(Ce){var Le=ee?Ce.ok:Ce.fail,He=Ce.resolve,ce=Ce.reject,Pe=Ce.domain,Q,me,Je;try{Le?(ee||(j._h==2&&M(j),j._h=1),Le===!0?Q=Y:(Pe&&Pe.enter(),Q=Le(Y),Pe&&(Pe.exit(),Je=!0)),Q===Ce.promise?ce(u("Promise-chain cycle")):(me=D(Q))?me.call(Q,He,ce):He(Q)):ce(Y)}catch(re){Pe&&!Je&&Pe.exit(),ce(re)}};z.length>fe;)ie(z[fe++]);j._c=[],j._n=!1,V&&!j._h&&R(j)})},R=function(j){a.call(x,function(){var V=j._v,z=B(j),Y,ee,fe;if(z&&(Y=s(function(){y?h.emit("unhandledRejection",V,j):(ee=x.onunhandledrejection)?ee({promise:j,reason:V}):(fe=x.console)&&fe.error&&fe.error("Unhandled promise rejection",V)}),j._h=y||B(j)?2:1),j._a=void 0,z&&Y.e)throw Y.v})},B=function(j){return j._h!==1&&(j._a||j._c).length===0},M=function(j){a.call(x,function(){var V;y?h.emit("rejectionHandled",j):(V=x.onrejectionhandled)&&V({promise:j,reason:j._v})})},H=function(j){var V=this;if(V._d)return;V._d=!0,V=V._w||V,V._v=j,V._s=2,V._a||(V._a=V._c.slice()),N(V,!0)},F=function K(j){var V=this,z;if(V._d)return;V._d=!0,V=V._w||V;try{if(V===j)throw u("Promise can't be resolved itself");(z=D(j))?n(function(){var Y={_w:V,_d:!1};try{z.call(j,T(K,Y,1),T(H,Y,1))}catch(ee){H.call(Y,ee)}}):(V._v=j,V._s=1,N(V,!1))}catch(Y){H.call({_w:V,_d:!1},Y)}};L||(A=function(j){c(this,A,l,"_h"),f(j),C.call(this);try{j(T(F,this,1),T(H,this,1))}catch(V){H.call(this,V)}},C=function(j){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},C.prototype=U("./_redefine-all")(A.prototype,{then:function(j,V){var z=_(r(this,A));return z.ok=typeof j=="function"?j:!0,z.fail=typeof V=="function"&&V,z.domain=y?h.domain:void 0,this._c.push(z),this._a&&this._a.push(z),this._s&&N(this,!1),z.promise},catch:function(j){return this.then(void 0,j)}}),b=function(){var j=new C;this.promise=j,this.resolve=T(F,j,1),this.reject=T(H,j,1)},e.f=_=function(j){return j===A||j===I?new b(j):w(j)}),S(S.G+S.W+S.F*!L,{Promise:A}),U("./_set-to-string-tag")(A,l),U("./_set-species")(l),I=U("./_core")[l],S(S.S+S.F*!L,l,{reject:function(j){var V=_(this),z=V.reject;return z(j),V.promise}}),S(S.S+S.F*(O||!L),l,{resolve:function(j){return i(O&&this===I?A:this,j)}}),S(S.S+S.F*!(L&&U("./_iter-detect")(function(K){A.all(K).catch(E)})),l,{all:function(j){var V=this,z=_(V),Y=z.resolve,ee=z.reject,fe=s(function(){var ie=[],we=0,Ce=1;o(j,!1,function(Le){var He=we++,ce=!1;ie.push(void 0),Ce++,V.resolve(Le).then(function(Pe){if(ce)return;ce=!0,ie[He]=Pe,--Ce||Y(ie)},ee)}),--Ce||Y(ie)});return fe.e&&ee(fe.v),z.promise},race:function(j){var V=this,z=_(V),Y=z.reject,ee=s(function(){o(j,!1,function(fe){V.resolve(fe).then(z.resolve,Y)})});return ee.e&&Y(ee.v),z.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(U,P,d){var O=U("./_export"),x=U("./_to-absolute-index"),T=String.fromCharCode,v=String.fromCodePoint;O(O.S+O.F*(!!v&&v.length!=1),"String",{fromCodePoint:function(m){for(var f=[],c=arguments.length,o=0,r;c>o;){if(r=+arguments[o++],x(r,1114111)!==r)throw RangeError(r+" is not a valid code point");f.push(r<65536?T(r):T(((r-=65536)>>10)+55296,r%1024+56320))}return f.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(U,P,d){"use strict";var O=U("./_string-at")(!0);U("./_iter-define")(String,"String",function(x){this._t=String(x),this._i=0},function(){var x=this._t,T=this._i,v;return T>=x.length?{value:void 0,done:!0}:(v=O(x,T),this._i+=v.length,{value:v,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(U,P,d){"use strict";var O=U("./_global"),x=U("./_has"),T=U("./_descriptors"),v=U("./_export"),S=U("./_redefine"),m=U("./_meta").KEY,f=U("./_fails"),c=U("./_shared"),o=U("./_set-to-string-tag"),r=U("./_uid"),a=U("./_wks"),n=U("./_wks-ext"),e=U("./_wks-define"),s=U("./_enum-keys"),t=U("./_is-array"),i=U("./_an-object"),l=U("./_is-object"),u=U("./_to-object"),h=U("./_to-iobject"),p=U("./_to-primitive"),g=U("./_property-desc"),A=U("./_object-create"),y=U("./_object-gopn-ext"),E=U("./_object-gopd"),C=U("./_object-gops"),w=U("./_object-dp"),b=U("./_object-keys"),I=E.f,_=w.f,L=y.f,D=O.Symbol,N=O.JSON,R=N&&N.stringify,B="prototype",M=a("_hidden"),H=a("toPrimitive"),F={}.propertyIsEnumerable,K=c("symbol-registry"),j=c("symbols"),V=c("op-symbols"),z=Object[B],Y=typeof D=="function"&&!!C.f,ee=O.QObject,fe=!ee||!ee[B]||!ee[B].findChild,ie=T&&f(function(){return A(_({},"a",{get:function(){return _(this,"a",{value:7}).a}})).a!=7})?function(he,Me,Ie){var oe=I(z,Me);oe&&delete z[Me],_(he,Me,Ie),oe&&he!==z&&_(z,Me,oe)}:_,we=function(Me){var Ie=j[Me]=A(D[B]);return Ie._k=Me,Ie},Ce=Y&&typeof D.iterator=="symbol"?function(he){return typeof he=="symbol"}:function(he){return he instanceof D},Le=function(Me,Ie,oe){return Me===z&&Le(V,Ie,oe),i(Me),Ie=p(Ie,!0),i(oe),x(j,Ie)?(oe.enumerable?(x(Me,M)&&Me[M][Ie]&&(Me[M][Ie]=!1),oe=A(oe,{enumerable:g(0,!1)})):(x(Me,M)||_(Me,M,g(1,{})),Me[M][Ie]=!0),ie(Me,Ie,oe)):_(Me,Ie,oe)},He=function(Me,Ie){i(Me);for(var oe=s(Ie=h(Ie)),pe=0,Oe=oe.length,Ye;Oe>pe;)Le(Me,Ye=oe[pe++],Ie[Ye]);return Me},ce=function(Me,Ie){return Ie===void 0?A(Me):He(A(Me),Ie)},Pe=function(Me){var Ie=F.call(this,Me=p(Me,!0));return this===z&&x(j,Me)&&!x(V,Me)?!1:Ie||!x(this,Me)||!x(j,Me)||x(this,M)&&this[M][Me]?Ie:!0},Q=function(Me,Ie){if(Me=h(Me),Ie=p(Ie,!0),Me===z&&x(j,Ie)&&!x(V,Ie))return;var oe=I(Me,Ie);return oe&&x(j,Ie)&&!(x(Me,M)&&Me[M][Ie])&&(oe.enumerable=!0),oe},me=function(Me){for(var Ie=L(h(Me)),oe=[],pe=0,Oe;Ie.length>pe;)!x(j,Oe=Ie[pe++])&&Oe!=M&&Oe!=m&&oe.push(Oe);return oe},Je=function(Me){for(var Ie=Me===z,oe=L(Ie?V:h(Me)),pe=[],Oe=0,Ye;oe.length>Oe;)x(j,Ye=oe[Oe++])&&(Ie?x(z,Ye):!0)&&pe.push(j[Ye]);return pe};Y||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var Me=r(arguments.length>0?arguments[0]:void 0),Ie=function oe(pe){this===z&&oe.call(V,pe),x(this,M)&&x(this[M],Me)&&(this[M][Me]=!1),ie(this,Me,g(1,pe))};return T&&fe&&ie(z,Me,{configurable:!0,set:Ie}),we(Me)},S(D[B],"toString",function(){return this._k}),E.f=Q,w.f=Le,U("./_object-gopn").f=y.f=me,U("./_object-pie").f=Pe,C.f=Je,T&&!U("./_library")&&S(z,"propertyIsEnumerable",Pe,!0),n.f=function(he){return we(a(he))}),v(v.G+v.W+v.F*!Y,{Symbol:D});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),G=0;re.length>G;)a(re[G++]);for(var X=b(a.store),J=0;X.length>J;)e(X[J++]);v(v.S+v.F*!Y,"Symbol",{for:function(Me){return x(K,Me+="")?K[Me]:K[Me]=D(Me)},keyFor:function(Me){if(!Ce(Me))throw TypeError(Me+" is not a symbol!");for(var Ie in K)if(K[Ie]===Me)return Ie},useSetter:function(){fe=!0},useSimple:function(){fe=!1}}),v(v.S+v.F*!Y,"Object",{create:ce,defineProperty:Le,defineProperties:He,getOwnPropertyDescriptor:Q,getOwnPropertyNames:me,getOwnPropertySymbols:Je});var Ae=f(function(){C.f(1)});v(v.S+v.F*Ae,"Object",{getOwnPropertySymbols:function(Me){return C.f(u(Me))}}),N&&v(v.S+v.F*(!Y||f(function(){var he=D();return R([he])!="[null]"||R({a:he})!="{}"||R(Object(he))!="{}"})),"JSON",{stringify:function(Me){for(var Ie=[Me],oe=1,pe,Oe;arguments.length>oe;)Ie.push(arguments[oe++]);return Oe=pe=Ie[1],!l(pe)&&Me===void 0||Ce(Me)?void 0:(t(pe)||(pe=function(it,et){if(typeof Oe=="function"&&(et=Oe.call(this,it,et)),!Ce(et))return et}),Ie[1]=pe,R.apply(N,Ie))}}),D[B][H]||U("./_hide")(D[B],H,D[B].valueOf),o(D,"Symbol"),o(Math,"Math",!0),o(O.JSON,"JSON",!0)},{"./_an-object":95,"./_descriptors":103,"./_enum-keys":106,"./_export":107,"./_fails":108,"./_global":110,"./_has":111,"./_hide":112,"./_is-array":118,"./_is-object":119,"./_library":126,"./_meta":127,"./_object-create":131,"./_object-dp":132,"./_object-gopd":134,"./_object-gopn":136,"./_object-gopn-ext":135,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_property-desc":146,"./_redefine":148,"./_set-to-string-tag":150,"./_shared":152,"./_to-iobject":158,"./_to-object":160,"./_to-primitive":161,"./_uid":162,"./_wks":166,"./_wks-define":164,"./_wks-ext":165}],182:[function(U,P,d){var O=U("./_export"),x=U("./_object-to-array")(!0);O(O.S,"Object",{entries:function(v){return x(v)}})},{"./_export":107,"./_object-to-array":143}],183:[function(U,P,d){"use strict";var O=U("./_export"),x=U("./_core"),T=U("./_global"),v=U("./_species-constructor"),S=U("./_promise-resolve");O(O.P+O.R,"Promise",{finally:function(f){var c=v(this,x.Promise||T.Promise),o=typeof f=="function";return this.then(o?function(r){return S(c,f()).then(function(){return r})}:f,o?function(r){return S(c,f()).then(function(){throw r})}:f)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(U,P,d){"use strict";var O=U("./_export"),x=U("./_new-promise-capability"),T=U("./_perform");O(O.S,"Promise",{try:function(S){var m=x.f(this),f=T(S);return(f.e?m.reject:m.resolve)(f.v),m.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(U,P,d){U("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(U,P,d){U("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(U,P,d){U("./es6.array.iterator");for(var O=U("./_global"),x=U("./_hide"),T=U("./_iterators"),v=U("./_wks")("toStringTag"),S="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),m=0;m<S.length;m++){var f=S[m],c=O[f],o=c&&c.prototype;o&&!o[v]&&x(o,v,f),T[f]=T.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(U,P,d){var O=U("./_export"),x=U("./_task");O(O.G+O.B,{setImmediate:x.set,clearImmediate:x.clear})},{"./_export":107,"./_task":155}],189:[function(U,P,d){(function(O){"use strict";var x=U("babel-runtime/helpers/typeof"),T=v(x);function v(p){return p&&p.__esModule?p:{default:p}}function S(p){return Array.isArray?Array.isArray(p):h(p)==="[object Array]"}d.isArray=S;function m(p){return typeof p=="boolean"}d.isBoolean=m;function f(p){return p===null}d.isNull=f;function c(p){return p==null}d.isNullOrUndefined=c;function o(p){return typeof p=="number"}d.isNumber=o;function r(p){return typeof p=="string"}d.isString=r;function a(p){return(typeof p=="undefined"?"undefined":(0,T.default)(p))==="symbol"}d.isSymbol=a;function n(p){return p===void 0}d.isUndefined=n;function e(p){return h(p)==="[object RegExp]"}d.isRegExp=e;function s(p){return(typeof p=="undefined"?"undefined":(0,T.default)(p))==="object"&&p!==null}d.isObject=s;function t(p){return h(p)==="[object Date]"}d.isDate=t;function i(p){return h(p)==="[object Error]"||p instanceof Error}d.isError=i;function l(p){return typeof p=="function"}d.isFunction=l;function u(p){return p===null||typeof p=="boolean"||typeof p=="number"||typeof p=="string"||(typeof p=="undefined"?"undefined":(0,T.default)(p))==="symbol"||typeof p=="undefined"}d.isPrimitive=u,d.isBuffer=O.isBuffer;function h(p){return Object.prototype.toString.call(p)}}).call(this,{isBuffer:U("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(U,P,d){"use strict";var O=U("babel-runtime/helpers/typeof"),x=T(O);function T(v){return v&&v.__esModule?v:{default:v}}(function(v){"use strict";var S=function(){var r=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,a=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,n=/[^-+\dA-Z]/g;return function(e,s,t,i){if(arguments.length===1&&o(e)==="string"&&!/\d/.test(e)&&(s=e,e=void 0),e=e||new Date,e instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");s=String(S.masks[s]||s||S.masks.default);var l=s.slice(0,4);(l==="UTC:"||l==="GMT:")&&(s=s.slice(4),t=!0,l==="GMT:"&&(i=!0));var u=t?"getUTC":"get",h=e[u+"Date"](),p=e[u+"Day"](),g=e[u+"Month"](),A=e[u+"FullYear"](),y=e[u+"Hours"](),E=e[u+"Minutes"](),C=e[u+"Seconds"](),w=e[u+"Milliseconds"](),b=t?0:e.getTimezoneOffset(),I=f(e),_=c(e),L={d:h,dd:m(h),ddd:S.i18n.dayNames[p],dddd:S.i18n.dayNames[p+7],m:g+1,mm:m(g+1),mmm:S.i18n.monthNames[g],mmmm:S.i18n.monthNames[g+12],yy:String(A).slice(2),yyyy:A,h:y%12||12,hh:m(y%12||12),H:y,HH:m(y),M:E,MM:m(E),s:C,ss:m(C),l:m(w,3),L:m(Math.round(w/10)),t:y<12?"a":"p",tt:y<12?"am":"pm",T:y<12?"A":"P",TT:y<12?"AM":"PM",Z:i?"GMT":t?"UTC":(String(e).match(a)||[""]).pop().replace(n,""),o:(b>0?"-":"+")+m(Math.floor(Math.abs(b)/60)*100+Math.abs(b)%60,4),S:["th","st","nd","rd"][h%10>3?0:(h%100-h%10!=10)*h%10],W:I,N:_};return s.replace(r,function(D){return D in L?L[D]:D.slice(1,D.length-1)})}}();S.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},S.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function m(r,a){for(r=String(r),a=a||2;r.length<a;)r="0"+r;return r}function f(r){var a=new Date(r.getFullYear(),r.getMonth(),r.getDate());a.setDate(a.getDate()-(a.getDay()+6)%7+3);var n=new Date(a.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);var e=a.getTimezoneOffset()-n.getTimezoneOffset();a.setHours(a.getHours()-e);var s=(a-n)/(864e5*7);return 1+Math.floor(s)}function c(r){var a=r.getDay();return a===0&&(a=7),a}function o(r){return r===null?"null":r===void 0?"undefined":(typeof r=="undefined"?"undefined":(0,x.default)(r))!=="object"?typeof r=="undefined"?"undefined":(0,x.default)(r):Array.isArray(r)?"array":{}.toString.call(r).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return S}):(typeof d=="undefined"?"undefined":(0,x.default)(d))==="object"?P.exports=S:v.dateFormat=S})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(U,P,d){/*!
|
|
|
* escape-html
|
|
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
|
* Copyright(c) 2015 Andreas Lubbe
|
|
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var O=/["'&<>]/;P.exports=x;function x(T){var v=""+T,S=O.exec(v);if(!S)return v;var m,f="",c=0,o=0;for(c=S.index;c<v.length;c++){switch(v.charCodeAt(c)){case 34:m=""";break;case 38:m="&";break;case 39:m="'";break;case 60:m="<";break;case 62:m=">";break;default:continue}o!==c&&(f+=v.substring(o,c)),o=c+1,f+=m}return o!==c?f+v.substring(o,c):f}},{}],192:[function(U,P,d){function O(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}P.exports=O,O.EventEmitter=O,O.prototype._events=void 0,O.prototype._maxListeners=void 0,O.defaultMaxListeners=10,O.prototype.setMaxListeners=function(m){if(!T(m)||m<0||isNaN(m))throw TypeError("n must be a positive number");return this._maxListeners=m,this},O.prototype.emit=function(m){var f,c,o,r,a,n;if(this._events||(this._events={}),m==="error"&&(!this._events.error||v(this._events.error)&&!this._events.error.length)){if(f=arguments[1],f instanceof Error)throw f;var e=new Error('Uncaught, unspecified "error" event. ('+f+")");throw e.context=f,e}if(c=this._events[m],S(c))return!1;if(x(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:r=Array.prototype.slice.call(arguments,1),c.apply(this,r)}else if(v(c))for(r=Array.prototype.slice.call(arguments,1),n=c.slice(),o=n.length,a=0;a<o;a++)n[a].apply(this,r);return!0},O.prototype.addListener=function(m,f){var c;if(!x(f))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",m,x(f.listener)?f.listener:f),this._events[m]?v(this._events[m])?this._events[m].push(f):this._events[m]=[this._events[m],f]:this._events[m]=f,v(this._events[m])&&!this._events[m].warned&&(S(this._maxListeners)?c=O.defaultMaxListeners:c=this._maxListeners,c&&c>0&&this._events[m].length>c&&(this._events[m].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[m].length),typeof console.trace=="function"&&console.trace())),this},O.prototype.on=O.prototype.addListener,O.prototype.once=function(m,f){if(!x(f))throw TypeError("listener must be a function");var c=!1;function o(){this.removeListener(m,o),c||(c=!0,f.apply(this,arguments))}return o.listener=f,this.on(m,o),this},O.prototype.removeListener=function(m,f){var c,o,r,a;if(!x(f))throw TypeError("listener must be a function");if(!this._events||!this._events[m])return this;if(c=this._events[m],r=c.length,o=-1,c===f||x(c.listener)&&c.listener===f)delete this._events[m],this._events.removeListener&&this.emit("removeListener",m,f);else if(v(c)){for(a=r;a-- >0;)if(c[a]===f||c[a].listener&&c[a].listener===f){o=a;break}if(o<0)return this;c.length===1?(c.length=0,delete this._events[m]):c.splice(o,1),this._events.removeListener&&this.emit("removeListener",m,f)}return this},O.prototype.removeAllListeners=function(m){var f,c;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[m]&&delete this._events[m],this;if(arguments.length===0){for(f in this._events){if(f==="removeListener")continue;this.removeAllListeners(f)}return this.removeAllListeners("removeListener"),this._events={},this}if(c=this._events[m],x(c))this.removeListener(m,c);else if(c)for(;c.length;)this.removeListener(m,c[c.length-1]);return delete this._events[m],this},O.prototype.listeners=function(m){var f;return!this._events||!this._events[m]?f=[]:x(this._events[m])?f=[this._events[m]]:f=this._events[m].slice(),f},O.prototype.listenerCount=function(m){if(this._events){var f=this._events[m];if(x(f))return 1;if(f)return f.length}return 0},O.listenerCount=function(m,f){return m.listenerCount(f)};function x(m){return typeof m=="function"}function T(m){return typeof m=="number"}function v(m){return typeof m=="object"&&m!==null}function S(m){return m===void 0}},{}],193:[function(U,P,d){var O=U("http"),x=P.exports;for(var T in O)O.hasOwnProperty(T)&&(x[T]=O[T]);x.request=function(v,S){return v||(v={}),v.scheme="https",v.protocol="https:",O.request.call(this,v,S)}},{http:231}],194:[function(U,P,d){/*!
|
|
|
* humanize-ms - index.js
|
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var O=U("util"),x=U("ms");P.exports=function(T){if(typeof T=="number")return T;var v=x(T);if(v===void 0){var S=new Error(O.format("humanize-ms(%j) result undefined",T));console.warn(S.stack)}return v}},{ms:204,util:243}],195:[function(U,P,d){d.read=function(O,x,T,v,S){var m,f,c=S*8-v-1,o=(1<<c)-1,r=o>>1,a=-7,n=T?S-1:0,e=T?-1:1,s=O[x+n];for(n+=e,m=s&(1<<-a)-1,s>>=-a,a+=c;a>0;m=m*256+O[x+n],n+=e,a-=8);for(f=m&(1<<-a)-1,m>>=-a,a+=v;a>0;f=f*256+O[x+n],n+=e,a-=8);if(m===0)m=1-r;else{if(m===o)return f?NaN:(s?-1:1)*Infinity;f=f+Math.pow(2,v),m=m-r}return(s?-1:1)*f*Math.pow(2,m-v)},d.write=function(O,x,T,v,S,m){var f,c,o,r=m*8-S-1,a=(1<<r)-1,n=a>>1,e=S===23?Math.pow(2,-24)-Math.pow(2,-77):0,s=v?0:m-1,t=v?1:-1,i=x<0||x===0&&1/x<0?1:0;for(x=Math.abs(x),isNaN(x)||x===Infinity?(c=isNaN(x)?1:0,f=a):(f=Math.floor(Math.log(x)/Math.LN2),x*(o=Math.pow(2,-f))<1&&(f--,o*=2),f+n>=1?x+=e/o:x+=e*Math.pow(2,1-n),x*o>=2&&(f++,o/=2),f+n>=a?(c=0,f=a):f+n>=1?(c=(x*o-1)*Math.pow(2,S),f=f+n):(c=x*Math.pow(2,n-1)*Math.pow(2,S),f=0));S>=8;O[T+s]=c&255,s+=t,c/=256,S-=8);for(f=f<<S|c,r+=S;r>0;O[T+s]=f&255,s+=t,f/=256,r-=8);O[T+s-t]|=i*128}},{}],196:[function(U,P,d){typeof Object.create=="function"?P.exports=function(x,T){T&&(x.super_=T,x.prototype=Object.create(T.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}))}:P.exports=function(x,T){if(T){x.super_=T;var v=function(){};v.prototype=T.prototype,x.prototype=new v,x.prototype.constructor=x}}},{}],197:[function(U,P,d){/*!
|
|
|
* Determine if an object is a Buffer
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
|
* @license MIT
|
|
|
*/P.exports=function(T){return T!=null&&(O(T)||x(T)||!!T._isBuffer)};function O(T){return!!T.constructor&&typeof T.constructor.isBuffer=="function"&&T.constructor.isBuffer(T)}function x(T){return typeof T.readFloatLE=="function"&&typeof T.slice=="function"&&O(T.slice(0,0))}},{}],198:[function(U,P,d){var O={}.toString;P.exports=Array.isArray||function(x){return O.call(x)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(U,P){typeof exports=="object"&&typeof module!="undefined"?module.exports=P(U):typeof define=="function"&&define.amd?define(P):P(U)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:this,function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if(typeof module!="undefined"&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(U){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(U){for(var P={},d=0,O=U.length;d<O;d++)P[U.charAt(d)]=d;return P}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(P){if(P.length<2){var d=P.charCodeAt(0);return d<128?P:d<2048?fromCharCode(192|d>>>6)+fromCharCode(128|d&63):fromCharCode(224|d>>>12&15)+fromCharCode(128|d>>>6&63)+fromCharCode(128|d&63)}else{var d=65536+(P.charCodeAt(0)-55296)*1024+(P.charCodeAt(1)-56320);return fromCharCode(240|d>>>18&7)+fromCharCode(128|d>>>12&63)+fromCharCode(128|d>>>6&63)+fromCharCode(128|d&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(P){return P.replace(re_utob,cb_utob)},cb_encode=function(P){var d=[0,2,1][P.length%3],O=P.charCodeAt(0)<<16|(P.length>1?P.charCodeAt(1):0)<<8|(P.length>2?P.charCodeAt(2):0),x=[b64chars.charAt(O>>>18),b64chars.charAt(O>>>12&63),d>=2?"=":b64chars.charAt(O>>>6&63),d>=1?"=":b64chars.charAt(O&63)];return x.join("")},btoa=global.btoa?function(U){return global.btoa(U)}:function(U){return U.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(P){var d=Object.prototype.toString.call(P)==="[object Uint8Array]";return d?P.toString("base64"):btoa(utob(String(P)))},encode=function(P,d){return d?_encode(String(P)).replace(/[+\/]/g,function(O){return O=="+"?"-":"_"}).replace(/=/g,""):_encode(P)},encodeURI=function(P){return encode(P,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(P){switch(P.length){case 4:var d=(7&P.charCodeAt(0))<<18|(63&P.charCodeAt(1))<<12|(63&P.charCodeAt(2))<<6|63&P.charCodeAt(3),O=d-65536;return fromCharCode((O>>>10)+55296)+fromCharCode((O&1023)+56320);case 3:return fromCharCode((15&P.charCodeAt(0))<<12|(63&P.charCodeAt(1))<<6|63&P.charCodeAt(2));default:return fromCharCode((31&P.charCodeAt(0))<<6|63&P.charCodeAt(1))}},btou=function(P){return P.replace(re_btou,cb_btou)},cb_decode=function(P){var d=P.length,O=d%4,x=(d>0?b64tab[P.charAt(0)]<<18:0)|(d>1?b64tab[P.charAt(1)]<<12:0)|(d>2?b64tab[P.charAt(2)]<<6:0)|(d>3?b64tab[P.charAt(3)]:0),T=[fromCharCode(x>>>16),fromCharCode(x>>>8&255),fromCharCode(x&255)];return T.length-=[0,0,2,1][O],T.join("")},_atob=global.atob?function(U){return global.atob(U)}:function(U){return U.replace(/\S{1,4}/g,cb_decode)},atob=function(P){return _atob(String(P).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(U){return(U.constructor===buffer.constructor?U:buffer.from(U,"base64")).toString()}:function(U){return(U.constructor===buffer.constructor?U:new buffer(U,"base64")).toString()}:function(U){return btou(_atob(U))},decode=function(P){return _decode(String(P).replace(/[-_]/g,function(d){return d=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var P=global.Base64;return global.Base64=_Base64,P};if(global.Base64={VERSION:version,atob,btoa,fromBase64:decode,toBase64:encode,utob,encode,encodeURI,btou,decode,noConflict,__buffer__:buffer},typeof Object.defineProperty=="function"){var noEnum=function(P){return{value:P,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(U){return encode(this,U)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),typeof module!="undefined"&&module.exports?module.exports.Base64=global.Base64:typeof define=="function"&&define.amd&&define([],function(){return global.Base64}),{Base64:global.Base64}})}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],200:[function(U,P,d){/*!
|
|
|
* merge-descriptors
|
|
|
* Copyright(c) 2014 Jonathan Ong
|
|
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
|
* MIT Licensed
|
|
|
*/"use strict";P.exports=x;var O=Object.prototype.hasOwnProperty;function x(T,v,S){if(!T)throw new TypeError("argument dest is required");if(!v)throw new TypeError("argument src is required");return S===void 0&&(S=!0),Object.getOwnPropertyNames(v).forEach(function(f){if(!S&&O.call(T,f))return;var c=Object.getOwnPropertyDescriptor(v,f);Object.defineProperty(T,f,c)}),T}},{}],201:[function(U,P,d){"use strict";function O(){this._types=Object.create(null),this._extensions=Object.create(null);for(var x=0;x<arguments.length;x++)this.define(arguments[x]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}O.prototype.define=function(x,T){for(var v in x){var S=x[v].map(function(c){return c.toLowerCase()});v=v.toLowerCase();for(var m=0;m<S.length;m++){var f=S[m];if(f[0]=="*")continue;if(!T&&f in this._types)throw new Error('Attempt to change mapping for "'+f+'" extension from "'+this._types[f]+'" to "'+v+'". Pass `force=true` to allow this, otherwise remove "'+f+'" from the list of extensions for "'+v+'".');this._types[f]=v}if(T||!this._extensions[v]){var f=S[0];this._extensions[v]=f[0]!="*"?f:f.substr(1)}}},O.prototype.getType=function(x){x=String(x);var T=x.replace(/^.*[/\\]/,"").toLowerCase(),v=T.replace(/^.*\./,"").toLowerCase(),S=T.length<x.length,m=v.length<T.length-1;return(m||!S)&&this._types[v]||null},O.prototype.getExtension=function(x){return x=/^\s*([^;\s]*)/.test(x)&&RegExp.$1,x&&this._extensions[x.toLowerCase()]||null},P.exports=O},{}],202:[function(U,P,d){"use strict";var O=U("./Mime");P.exports=new O(U("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(U,P,d){P.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/mrb-consumer+xml":["*xdf"],"application/mrb-publish+xml":["*xdf"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["*xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/ttml+xml":["ttml"],"application/urc-ressheet+xml":["rsheet"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-error+xml":["xer"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],204:[function(U,P,d){var O=1e3,x=O*60,T=x*60,v=T*24,S=v*7,m=v*365.25;P.exports=function(a,n){n=n||{};var e=typeof a;if(e==="string"&&a.length>0)return f(a);if(e==="number"&&isFinite(a))return n.long?o(a):c(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))};function f(a){if(a=String(a),a.length>100)return;var n=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(!n)return;var e=parseFloat(n[1]),s=(n[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return e*m;case"weeks":case"week":case"w":return e*S;case"days":case"day":case"d":return e*v;case"hours":case"hour":case"hrs":case"hr":case"h":return e*T;case"minutes":case"minute":case"mins":case"min":case"m":return e*x;case"seconds":case"second":case"secs":case"sec":case"s":return e*O;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}function c(a){var n=Math.abs(a);return n>=v?Math.round(a/v)+"d":n>=T?Math.round(a/T)+"h":n>=x?Math.round(a/x)+"m":n>=O?Math.round(a/O)+"s":a+"ms"}function o(a){var n=Math.abs(a);return n>=v?r(a,n,v,"day"):n>=T?r(a,n,T,"hour"):n>=x?r(a,n,x,"minute"):n>=O?r(a,n,O,"second"):a+" ms"}function r(a,n,e,s){var t=n>=e*1.5;return Math.round(a/e)+" "+s+(t?"s":"")}},{}],205:[function(U,P,d){(function(O){function x(m,f){for(var c=0,o=m.length-1;o>=0;o--){var r=m[o];r==="."?m.splice(o,1):r===".."?(m.splice(o,1),c++):c&&(m.splice(o,1),c--)}if(f)for(;c--;c)m.unshift("..");return m}d.resolve=function(){for(var m="",f=!1,c=arguments.length-1;c>=-1&&!f;c--){var o=c>=0?arguments[c]:O.cwd();if(typeof o!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!o)continue;m=o+"/"+m,f=o.charAt(0)==="/"}return m=x(v(m.split("/"),function(r){return!!r}),!f).join("/"),(f?"/":"")+m||"."},d.normalize=function(m){var f=d.isAbsolute(m),c=S(m,-1)==="/";return m=x(v(m.split("/"),function(o){return!!o}),!f).join("/"),!m&&!f&&(m="."),m&&c&&(m+="/"),(f?"/":"")+m},d.isAbsolute=function(m){return m.charAt(0)==="/"},d.join=function(){var m=Array.prototype.slice.call(arguments,0);return d.normalize(v(m,function(f,c){if(typeof f!="string")throw new TypeError("Arguments to path.join must be strings");return f}).join("/"))},d.relative=function(m,f){m=d.resolve(m).substr(1),f=d.resolve(f).substr(1);function c(t){for(var i=0;i<t.length&&!(t[i]!=="");i++);for(var l=t.length-1;l>=0&&!(t[l]!=="");l--);return i>l?[]:t.slice(i,l-i+1)}for(var o=c(m.split("/")),r=c(f.split("/")),a=Math.min(o.length,r.length),n=a,e=0;e<a;e++)if(o[e]!==r[e]){n=e;break}for(var s=[],e=n;e<o.length;e++)s.push("..");return s=s.concat(r.slice(n)),s.join("/")},d.sep="/",d.delimiter=":",d.dirname=function(m){if(typeof m!="string"&&(m=m+""),m.length===0)return".";for(var f=m.charCodeAt(0),c=f===47,o=-1,r=!0,a=m.length-1;a>=1;--a)if(f=m.charCodeAt(a),f===47){if(!r){o=a;break}}else r=!1;return o===-1?c?"/":".":c&&o===1?"/":m.slice(0,o)};function T(m){typeof m!="string"&&(m=m+"");var f=0,c=-1,o=!0,r;for(r=m.length-1;r>=0;--r)if(m.charCodeAt(r)===47){if(!o){f=r+1;break}}else c===-1&&(o=!1,c=r+1);return c===-1?"":m.slice(f,c)}d.basename=function(m,f){var c=T(m);return f&&c.substr(-1*f.length)===f&&(c=c.substr(0,c.length-f.length)),c},d.extname=function(m){typeof m!="string"&&(m=m+"");for(var f=-1,c=0,o=-1,r=!0,a=0,n=m.length-1;n>=0;--n){var e=m.charCodeAt(n);if(e===47){if(!r){c=n+1;break}continue}o===-1&&(r=!1,o=n+1),e===46?f===-1?f=n:a!==1&&(a=1):f!==-1&&(a=-1)}return f===-1||o===-1||a===0||a===1&&f===o-1&&f===c+1?"":m.slice(f,o)};function v(m,f){if(m.filter)return m.filter(f);for(var c=[],o=0;o<m.length;o++)f(m[o],o,m)&&c.push(m[o]);return c}var S="ab".substr(-1)==="b"?function(m,f,c){return m.substr(f,c)}:function(m,f,c){return f<0&&(f=m.length+f),m.substr(f,c)}}).call(this,U("_process"))},{_process:208}],206:[function(U,P,d){(function(O){/*!
|
|
|
* Platform.js <https://mths.be/platform>
|
|
|
* Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/>
|
|
|
* Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/>
|
|
|
* Available under MIT license <https://mths.be/mit>
|
|
|
*/(function(){"use strict";var x={function:!0,object:!0},T=x[typeof window]&&window||this,v=T,S=x[typeof d]&&d,m=x[typeof P]&&P&&!P.nodeType&&P,f=S&&m&&typeof O=="object"&&O;f&&(f.global===f||f.window===f||f.self===f)&&(T=f);var c=Math.pow(2,53)-1,o=/\bOpera/,r=this,a=Object.prototype,n=a.hasOwnProperty,e=a.toString;function s(w){return w=String(w),w.charAt(0).toUpperCase()+w.slice(1)}function t(w,b,I){var _={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return b&&I&&/^Win/i.test(w)&&!/^Windows Phone /i.test(w)&&(_=_[/[\d.]+$/.exec(w)])&&(w="Windows "+_),w=String(w),b&&I&&(w=w.replace(RegExp(b,"i"),I)),w=l(w.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),w}function i(w,b){var I=-1,_=w?w.length:0;if(typeof _=="number"&&_>-1&&_<=c)for(;++I<_;)b(w[I],I,w);else u(w,b)}function l(w){return w=y(w),/^(?:webOS|i(?:OS|P))/.test(w)?w:s(w)}function u(w,b){for(var I in w)n.call(w,I)&&b(w[I],I,w)}function h(w){return w==null?s(w):e.call(w).slice(8,-1)}function p(w,b){var I=w!=null?typeof w[b]:"number";return!/^(?:boolean|number|string|undefined)$/.test(I)&&(I=="object"?!!w[b]:!0)}function g(w){return String(w).replace(/([ -])(?!$)/g,"$1?")}function A(w,b){var I=null;return i(w,function(_,L){I=b(I,_,L,w)}),I}function y(w){return String(w).replace(/^ +| +$/g,"")}function E(w){var b=T,I=w&&typeof w=="object"&&h(w)!="String";I&&(b=w,w=null);var _=b.navigator||{},L=_.userAgent||"";w||(w=L);var D=I||r==v,N=I?!!_.likeChrome:/\bChrome\b/.test(w)&&!/internal|\n/i.test(e.toString()),R="Object",B=I?R:"ScriptBridgingProxyObject",M=I?R:"Environment",H=I&&b.java?"JavaPackage":h(b.java),F=I?R:"RuntimeObject",K=/\bJava/.test(H)&&b.java,j=K&&h(b.environment)==M,V=K?"a":"\u03B1",z=K?"b":"\u03B2",Y=b.document||{},ee=b.operamini||b.opera,fe=o.test(fe=I&&ee?ee["[[Class]]"]:h(ee))?fe:ee=null,ie,we=w,Ce=[],Le=null,He=w==L,ce=He&&ee&&typeof ee.version=="function"&&ee.version(),Pe,Q=X([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),me=Ae(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Je=Me([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),re=J({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),G=he(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function X(Oe){return A(Oe,function(Ye,it){return Ye||RegExp("\\b"+(it.pattern||g(it))+"\\b","i").exec(w)&&(it.label||it)})}function J(Oe){return A(Oe,function(Ye,it,et){return Ye||(it[Je]||it[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Je)]||RegExp("\\b"+g(et)+"(?:\\b|\\w*\\d)","i").exec(w))&&et})}function Ae(Oe){return A(Oe,function(Ye,it){return Ye||RegExp("\\b"+(it.pattern||g(it))+"\\b","i").exec(w)&&(it.label||it)})}function he(Oe){return A(Oe,function(Ye,it){var et=it.pattern||g(it);return!Ye&&(Ye=RegExp("\\b"+et+"(?:/[\\d.]+|[ \\w.]*)","i").exec(w))&&(Ye=t(Ye,et,it.label||it)),Ye})}function Me(Oe){return A(Oe,function(Ye,it){var et=it.pattern||g(it);return!Ye&&(Ye=RegExp("\\b"+et+" *\\d+[.\\w_]*","i").exec(w)||RegExp("\\b"+et+" *\\w+-[\\w]*","i").exec(w)||RegExp("\\b"+et+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(w))&&((Ye=String(it.label&&!RegExp(et,"i").test(it.label)?it.label:Ye).split("/"))[1]&&!/[\d.]+/.test(Ye[0])&&(Ye[0]+=" "+Ye[1]),it=it.label||it,Ye=l(Ye[0].replace(RegExp(et,"i"),it).replace(RegExp("; *(?:"+it+"[_-])?","i")," ").replace(RegExp("("+it+")[-_.]?(\\w)","i"),"$1 $2"))),Ye})}function Ie(Oe){return A(Oe,function(Ye,it){return Ye||(RegExp(it+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(w)||0)[1]||null})}function oe(){return this.description||""}if(Q&&(Q=[Q]),re&&!Je&&(Je=Me([re])),(ie=/\bGoogle TV\b/.exec(Je))&&(Je=ie[0]),/\bSimulator\b/i.test(w)&&(Je=(Je?Je+" ":"")+"Simulator"),me=="Opera Mini"&&/\bOPiOS\b/.test(w)&&Ce.push("running in Turbo/Uncompressed mode"),me=="IE"&&/\blike iPhone OS\b/.test(w)?(ie=E(w.replace(/like iPhone OS/,"")),re=ie.manufacturer,Je=ie.product):/^iP/.test(Je)?(me||(me="Safari"),G="iOS"+((ie=/ OS ([\d_]+)/i.exec(w))?" "+ie[1].replace(/_/g,"."):"")):me=="Konqueror"&&!/buntu/i.test(G)?G="Kubuntu":re&&re!="Google"&&(/Chrome/.test(me)&&!/\bMobile Safari\b/i.test(w)||/\bVita\b/.test(Je))||/\bAndroid\b/.test(G)&&/^Chrome/.test(me)&&/\bVersion\//i.test(w)?(me="Android Browser",G=/\bAndroid\b/.test(G)?G:"Android"):me=="Silk"?(/\bMobi/i.test(w)||(G="Android",Ce.unshift("desktop mode")),/Accelerated *= *true/i.test(w)&&Ce.unshift("accelerated")):me=="PaleMoon"&&(ie=/\bFirefox\/([\d.]+)\b/.exec(w))?Ce.push("identifying as Firefox "+ie[1]):me=="Firefox"&&(ie=/\b(Mobile|Tablet|TV)\b/i.exec(w))?(G||(G="Firefox OS"),Je||(Je=ie[1])):!me||(ie=!/\bMinefield\b/i.test(w)&&/\b(?:Firefox|Safari)\b/.exec(me))?(me&&!Je&&/[\/,]|^[^(]+?\)/.test(w.slice(w.indexOf(ie+"/")+8))&&(me=null),(ie=Je||re||G)&&(Je||re||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(G))&&(me=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(G)?G:ie)+" Browser")):me=="Electron"&&(ie=(/\bChrome\/([\d.]+)\b/.exec(w)||0)[1])&&Ce.push("Chromium "+ie),ce||(ce=Ie(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",g(me),"(?:Firefox|Minefield|NetFront)"])),(ie=Q=="iCab"&&parseFloat(ce)>3&&"WebKit"||/\bOpera\b/.test(me)&&(/\bOPR\b/.test(w)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(w)&&!/^(?:Trident|EdgeHTML)$/.test(Q)&&"WebKit"||!Q&&/\bMSIE\b/i.test(w)&&(G=="Mac OS"?"Tasman":"Trident")||Q=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(me)&&"NetFront")&&(Q=[ie]),me=="IE"&&(ie=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(w)||0)[1])?(me+=" Mobile",G="Windows Phone "+(/\+$/.test(ie)?ie:ie+".x"),Ce.unshift("desktop mode")):/\bWPDesktop\b/i.test(w)?(me="IE Mobile",G="Windows Phone 8.x",Ce.unshift("desktop mode"),ce||(ce=(/\brv:([\d.]+)/.exec(w)||0)[1])):me!="IE"&&Q=="Trident"&&(ie=/\brv:([\d.]+)/.exec(w))&&(me&&Ce.push("identifying as "+me+(ce?" "+ce:"")),me="IE",ce=ie[1]),He){if(p(b,"global"))if(K&&(ie=K.lang.System,we=ie.getProperty("os.arch"),G=G||ie.getProperty("os.name")+" "+ie.getProperty("os.version")),j){try{ce=b.require("ringo/engine").version.join("."),me="RingoJS"}catch(Oe){(ie=b.system)&&ie.global.system==b.system&&(me="Narwhal",G||(G=ie[0].os||null))}me||(me="Rhino")}else typeof b.process=="object"&&!b.process.browser&&(ie=b.process)&&(typeof ie.versions=="object"&&(typeof ie.versions.electron=="string"?(Ce.push("Node "+ie.versions.node),me="Electron",ce=ie.versions.electron):typeof ie.versions.nw=="string"&&(Ce.push("Chromium "+ce,"Node "+ie.versions.node),me="NW.js",ce=ie.versions.nw)),me||(me="Node.js",we=ie.arch,G=ie.platform,ce=/[\d.]+/.exec(ie.version),ce=ce?ce[0]:null));else h(ie=b.runtime)==B?(me="Adobe AIR",G=ie.flash.system.Capabilities.os):h(ie=b.phantom)==F?(me="PhantomJS",ce=(ie=ie.version||null)&&ie.major+"."+ie.minor+"."+ie.patch):typeof Y.documentMode=="number"&&(ie=/\bTrident\/(\d+)/i.exec(w))?(ce=[ce,Y.documentMode],(ie=+ie[1]+4)!=ce[1]&&(Ce.push("IE "+ce[1]+" mode"),Q&&(Q[1]=""),ce[1]=ie),ce=me=="IE"?String(ce[1].toFixed(1)):ce[0]):typeof Y.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(me)&&(Ce.push("masking as "+me+" "+ce),me="IE",ce="11.0",Q=["Trident"],G="Windows");G=G&&l(G)}if(ce&&(ie=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(ce)||/(?:alpha|beta)(?: ?\d)?/i.exec(w+";"+(He&&_.appMinorVersion))||/\bMinefield\b/i.test(w)&&"a")&&(Le=/b/i.test(ie)?"beta":"alpha",ce=ce.replace(RegExp(ie+"\\+?$"),"")+(Le=="beta"?z:V)+(/\d+\+?/.exec(ie)||"")),me=="Fennec"||me=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(G))me="Firefox Mobile";else if(me=="Maxthon"&&ce)ce=ce.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Je))Je=="Xbox 360"&&(G=null),Je=="Xbox 360"&&/\bIEMobile\b/.test(w)&&Ce.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(me)||me&&!Je&&!/Browser|Mobi/.test(me))&&(G=="Windows CE"||/Mobi/i.test(w)))me+=" Mobile";else if(me=="IE"&&He)try{b.external===null&&Ce.unshift("platform preview")}catch(Oe){Ce.unshift("embedded")}else(/\bBlackBerry\b/.test(Je)||/\bBB10\b/.test(w))&&(ie=(RegExp(Je.replace(/ +/g," *")+"/([.\\d]+)","i").exec(w)||0)[1]||ce)?(ie=[ie,/BB10/.test(w)],G=(ie[1]?(Je=null,re="BlackBerry"):"Device Software")+" "+ie[0],ce=null):this!=u&&Je!="Wii"&&(He&&ee||/Opera/.test(me)&&/\b(?:MSIE|Firefox)\b/i.test(w)||me=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(G)||me=="IE"&&(G&&!/^Win/.test(G)&&ce>5.5||/\bWindows XP\b/.test(G)&&ce>8||ce==8&&!/\bTrident\b/.test(w)))&&!o.test(ie=E.call(u,w.replace(o,"")+";"))&&ie.name&&(ie="ing as "+ie.name+((ie=ie.version)?" "+ie:""),o.test(me)?(/\bIE\b/.test(ie)&&G=="Mac OS"&&(G=null),ie="identify"+ie):(ie="mask"+ie,fe?me=l(fe.replace(/([a-z])([A-Z])/g,"$1 $2")):me="Opera",/\bIE\b/.test(ie)&&(G=null),He||(ce=null)),Q=["Presto"],Ce.push(ie));(ie=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(w)||0)[1])&&(ie=[parseFloat(ie.replace(/\.(\d)$/,".0$1")),ie],me=="Safari"&&ie[1].slice(-1)=="+"?(me="WebKit Nightly",Le="alpha",ce=ie[1].slice(0,-1)):(ce==ie[1]||ce==(ie[2]=(/\bSafari\/([\d.]+\+?)/i.exec(w)||0)[1]))&&(ce=null),ie[1]=(/\bChrome\/([\d.]+)/i.exec(w)||0)[1],ie[0]==537.36&&ie[2]==537.36&&parseFloat(ie[1])>=28&&Q=="WebKit"&&(Q=["Blink"]),!He||!N&&!ie[1]?(Q&&(Q[1]="like Safari"),ie=(ie=ie[0],ie<400?1:ie<500?2:ie<526?3:ie<533?4:ie<534?"4+":ie<535?5:ie<537?6:ie<538?7:ie<601?8:"8")):(Q&&(Q[1]="like Chrome"),ie=ie[1]||(ie=ie[0],ie<530?1:ie<532?2:ie<532.05?3:ie<533?4:ie<534.03?5:ie<534.07?6:ie<534.1?7:ie<534.13?8:ie<534.16?9:ie<534.24?10:ie<534.3?11:ie<535.01?12:ie<535.02?"13+":ie<535.07?15:ie<535.11?16:ie<535.19?17:ie<536.05?18:ie<536.1?19:ie<537.01?20:ie<537.11?"21+":ie<537.13?23:ie<537.18?24:ie<537.24?25:ie<537.36?26:Q!="Blink"?"27":"28")),Q&&(Q[1]+=" "+(ie+=typeof ie=="number"?".x":/[.+]/.test(ie)?"":"+")),me=="Safari"&&(!ce||parseInt(ce)>45)&&(ce=ie)),me=="Opera"&&(ie=/\bzbov|zvav$/.exec(G))?(me+=" ",Ce.unshift("desktop mode"),ie=="zvav"?(me+="Mini",ce=null):me+="Mobile",G=G.replace(RegExp(" *"+ie+"$"),"")):me=="Safari"&&/\bChrome\b/.exec(Q&&Q[1])&&(Ce.unshift("desktop mode"),me="Chrome Mobile",ce=null,/\bOS X\b/.test(G)?(re="Apple",G="iOS 4.3+"):G=null),ce&&ce.indexOf(ie=/[\d.]+$/.exec(G))==0&&w.indexOf("/"+ie+"-")>-1&&(G=y(G.replace(ie,""))),Q&&!/\b(?:Avant|Nook)\b/.test(me)&&(/Browser|Lunascape|Maxthon/.test(me)||me!="Safari"&&/^iOS/.test(G)&&/\bSafari\b/.test(Q[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(me)&&Q[1])&&((ie=Q[Q.length-1])&&Ce.push(ie)),Ce.length&&(Ce=["("+Ce.join("; ")+")"]),re&&Je&&Je.indexOf(re)<0&&Ce.push("on "+re),Je&&Ce.push((/^on /.test(Ce[Ce.length-1])?"":"on ")+Je),G&&(ie=/ ([\d.+]+)$/.exec(G),Pe=ie&&G.charAt(G.length-ie[0].length-1)=="/",G={architecture:32,family:ie&&!Pe?G.replace(ie[0],""):G,version:ie?ie[1]:null,toString:function(){var Ye=this.version;return this.family+(Ye&&!Pe?" "+Ye:"")+(this.architecture==64?" 64-bit":"")}}),(ie=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(we))&&!/\bi686\b/i.test(we)?(G&&(G.architecture=64,G.family=G.family.replace(RegExp(" *"+ie),"")),me&&(/\bWOW64\b/i.test(w)||He&&/\w(?:86|32)$/.test(_.cpuClass||_.platform)&&!/\bWin64; x64\b/i.test(w))&&Ce.unshift("32-bit")):G&&/^OS X/.test(G.family)&&me=="Chrome"&&parseFloat(ce)>=39&&(G.architecture=64),w||(w=null);var pe={};return pe.description=w,pe.layout=Q&&Q[0],pe.manufacturer=re,pe.name=me,pe.prerelease=Le,pe.product=Je,pe.ua=w,pe.version=me&&ce,pe.os=G||{architecture:null,family:null,version:null,toString:function(){return"null"}},pe.parse=E,pe.toString=oe,pe.version&&Ce.unshift(ce),pe.name&&Ce.unshift(me),G&&me&&!(G==String(G).split(" ")[0]&&(G==me.split(" ")[0]||Je))&&Ce.push(Je?"("+G+")":"on "+G),Ce.length&&(pe.description=Ce.join(" ")),pe}var C=E();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(T.platform=C,define(function(){return C})):S&&m?u(C,function(w,b){S[b]=w}):T.platform=C}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(U,P,d){(function(O){"use strict";typeof O=="undefined"||!O.version||O.version.indexOf("v0.")===0||O.version.indexOf("v1.")===0&&O.version.indexOf("v1.8.")!==0?P.exports={nextTick:x}:P.exports=O;function x(T,v,S,m){if(typeof T!="function")throw new TypeError('"callback" argument must be a function');var f=arguments.length,c,o;switch(f){case 0:case 1:return O.nextTick(T);case 2:return O.nextTick(function(){T.call(null,v)});case 3:return O.nextTick(function(){T.call(null,v,S)});case 4:return O.nextTick(function(){T.call(null,v,S,m)});default:for(c=new Array(f-1),o=0;o<c.length;)c[o++]=arguments[o];return O.nextTick(function(){T.apply(null,c)})}}}).call(this,U("_process"))},{_process:208}],208:[function(U,P,d){var O=P.exports={},x,T;function v(){throw new Error("setTimeout has not been defined")}function S(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?x=setTimeout:x=v}catch(i){x=v}try{typeof clearTimeout=="function"?T=clearTimeout:T=S}catch(i){T=S}})();function m(i){if(x===setTimeout)return setTimeout(i,0);if((x===v||!x)&&setTimeout)return x=setTimeout,setTimeout(i,0);try{return x(i,0)}catch(l){try{return x.call(null,i,0)}catch(u){return x.call(this,i,0)}}}function f(i){if(T===clearTimeout)return clearTimeout(i);if((T===S||!T)&&clearTimeout)return T=clearTimeout,clearTimeout(i);try{return T(i)}catch(l){try{return T.call(null,i)}catch(u){return T.call(this,i)}}}var c=[],o=!1,r,a=-1;function n(){if(!o||!r)return;o=!1,r.length?c=r.concat(c):a=-1,c.length&&e()}function e(){if(o)return;var i=m(n);o=!0;for(var l=c.length;l;){for(r=c,c=[];++a<l;)r&&r[a].run();a=-1,l=c.length}r=null,o=!1,f(i)}O.nextTick=function(i){var l=new Array(arguments.length-1);if(arguments.length>1)for(var u=1;u<arguments.length;u++)l[u-1]=arguments[u];c.push(new s(i,l)),c.length===1&&!o&&m(e)};function s(i,l){this.fun=i,this.array=l}s.prototype.run=function(){this.fun.apply(null,this.array)},O.title="browser",O.browser=!0,O.env={},O.argv=[],O.version="",O.versions={};function t(){}O.on=t,O.addListener=t,O.once=t,O.off=t,O.removeListener=t,O.removeAllListeners=t,O.emit=t,O.prependListener=t,O.prependOnceListener=t,O.listeners=function(i){return[]},O.binding=function(i){throw new Error("process.binding is not supported")},O.cwd=function(){return"/"},O.chdir=function(i){throw new Error("process.chdir is not supported")},O.umask=function(){return 0}},{}],209:[function(U,P,d){(function(O){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(x){var T=typeof d=="object"&&d&&!d.nodeType&&d,v=typeof P=="object"&&P&&!P.nodeType&&P,S=typeof O=="object"&&O;(S.global===S||S.window===S||S.self===S)&&(x=S);var m,f=2147483647,c=36,o=1,r=26,a=38,n=700,e=72,s=128,t="-",i=/^xn--/,l=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=c-o,g=Math.floor,A=String.fromCharCode,y;function E(H){throw new RangeError(h[H])}function C(H,F){for(var K=H.length,j=[];K--;)j[K]=F(H[K]);return j}function w(H,F){var K=H.split("@"),j="";K.length>1&&(j=K[0]+"@",H=K[1]),H=H.replace(u,".");var V=H.split("."),z=C(V,F).join(".");return j+z}function b(H){for(var F=[],K=0,j=H.length,V,z;K<j;)V=H.charCodeAt(K++),V>=55296&&V<=56319&&K<j?(z=H.charCodeAt(K++),(z&64512)==56320?F.push(((V&1023)<<10)+(z&1023)+65536):(F.push(V),K--)):F.push(V);return F}function I(H){return C(H,function(F){var K="";return F>65535&&(F-=65536,K+=A(F>>>10&1023|55296),F=56320|F&1023),K+=A(F),K}).join("")}function _(H){return H-48<10?H-22:H-65<26?H-65:H-97<26?H-97:c}function L(H,F){return H+22+75*(H<26)-((F!=0)<<5)}function D(H,F,K){var j=0;for(H=K?g(H/n):H>>1,H+=g(H/F);H>p*r>>1;j+=c)H=g(H/p);return g(j+(p+1)*H/(H+a))}function N(H){var F=[],K=H.length,j,V=0,z=s,Y=e,ee,fe,ie,we,Ce,Le,He,ce,Pe;for(ee=H.lastIndexOf(t),ee<0&&(ee=0),fe=0;fe<ee;++fe)H.charCodeAt(fe)>=128&&E("not-basic"),F.push(H.charCodeAt(fe));for(ie=ee>0?ee+1:0;ie<K;){for(we=V,Ce=1,Le=c;!(ie>=K&&E("invalid-input"),He=_(H.charCodeAt(ie++)),(He>=c||He>g((f-V)/Ce))&&E("overflow"),V+=He*Ce,ce=Le<=Y?o:Le>=Y+r?r:Le-Y,He<ce);Le+=c)Pe=c-ce,Ce>g(f/Pe)&&E("overflow"),Ce*=Pe;j=F.length+1,Y=D(V-we,j,we==0),g(V/j)>f-z&&E("overflow"),z+=g(V/j),V%=j,F.splice(V++,0,z)}return I(F)}function R(H){var F,K,j,V,z,Y,ee,fe,ie,we,Ce,Le=[],He,ce,Pe,Q;for(H=b(H),He=H.length,F=s,K=0,z=e,Y=0;Y<He;++Y)Ce=H[Y],Ce<128&&Le.push(A(Ce));for(j=V=Le.length,V&&Le.push(t);j<He;){for(ee=f,Y=0;Y<He;++Y)Ce=H[Y],Ce>=F&&Ce<ee&&(ee=Ce);for(ce=j+1,ee-F>g((f-K)/ce)&&E("overflow"),K+=(ee-F)*ce,F=ee,Y=0;Y<He;++Y)if(Ce=H[Y],Ce<F&&++K>f&&E("overflow"),Ce==F){for(fe=K,ie=c;!(we=ie<=z?o:ie>=z+r?r:ie-z,fe<we);ie+=c)Q=fe-we,Pe=c-we,Le.push(A(L(we+Q%Pe,0))),fe=g(Q/Pe);Le.push(A(L(fe,0))),z=D(K,ce,j==V),K=0,++j}++K,++F}return Le.join("")}function B(H){return w(H,function(F){return i.test(F)?N(F.slice(4).toLowerCase()):F})}function M(H){return w(H,function(F){return l.test(F)?"xn--"+R(F):F})}if(m={version:"1.4.1",ucs2:{decode:b,encode:I},decode:N,encode:R,toASCII:M,toUnicode:B},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return m});else if(T&&v)if(P.exports==T)v.exports=m;else for(y in m)m.hasOwnProperty(y)&&(T[y]=m[y]);else x.punycode=m})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(U,P,d){"use strict";function O(T,v){return Object.prototype.hasOwnProperty.call(T,v)}P.exports=function(T,v,S,m){v=v||"&",S=S||"=";var f={};if(typeof T!="string"||T.length===0)return f;var c=/\+/g;T=T.split(v);var o=1e3;m&&typeof m.maxKeys=="number"&&(o=m.maxKeys);var r=T.length;o>0&&r>o&&(r=o);for(var a=0;a<r;++a){var n=T[a].replace(c,"%20"),e=n.indexOf(S),s,t,i,l;e>=0?(s=n.substr(0,e),t=n.substr(e+1)):(s=n,t=""),i=decodeURIComponent(s),l=decodeURIComponent(t),O(f,i)?x(f[i])?f[i].push(l):f[i]=[f[i],l]:f[i]=l}return f};var x=Array.isArray||function(T){return Object.prototype.toString.call(T)==="[object Array]"}},{}],211:[function(U,P,d){"use strict";var O=function(m){switch(typeof m){case"string":return m;case"boolean":return m?"true":"false";case"number":return isFinite(m)?m:"";default:return""}};P.exports=function(S,m,f,c){return m=m||"&",f=f||"=",S===null&&(S=void 0),typeof S=="object"?T(v(S),function(o){var r=encodeURIComponent(O(o))+f;return x(S[o])?T(S[o],function(a){return r+encodeURIComponent(O(a))}).join(m):r+encodeURIComponent(O(S[o]))}).join(m):c?encodeURIComponent(O(c))+f+encodeURIComponent(O(S)):""};var x=Array.isArray||function(S){return Object.prototype.toString.call(S)==="[object Array]"};function T(S,m){if(S.map)return S.map(m);for(var f=[],c=0;c<S.length;c++)f.push(m(S[c],c));return f}var v=Object.keys||function(S){var m=[];for(var f in S)Object.prototype.hasOwnProperty.call(S,f)&&m.push(f);return m}},{}],212:[function(U,P,d){"use strict";d.decode=d.parse=U("./decode"),d.encode=d.stringify=U("./encode")},{"./decode":210,"./encode":211}],213:[function(U,P,d){P.exports=U("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/object/create"),x=S(O),T=U("babel-runtime/core-js/object/keys"),v=S(T);function S(l){return l&&l.__esModule?l:{default:l}}var m=U("process-nextick-args"),f=v.default||function(l){var u=[];for(var h in l)u.push(h);return u};P.exports=s;var c=(0,x.default)(U("core-util-is"));c.inherits=U("inherits");var o=U("./_stream_readable"),r=U("./_stream_writable");c.inherits(s,o);for(var a=f(r.prototype),n=0;n<a.length;n++){var e=a[n];s.prototype[e]||(s.prototype[e]=r.prototype[e])}function s(l){if(!(this instanceof s))return new s(l);o.call(this,l),r.call(this,l),l&&l.readable===!1&&(this.readable=!1),l&&l.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,l&&l.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",t)}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function t(){if(this.allowHalfOpen||this._writableState.ended)return;m.nextTick(i,this)}function i(l){l.end()}Object.defineProperty(s.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=u,this._writableState.destroyed=u}}),s.prototype._destroy=function(l,u){this.push(null),this.end(),m.nextTick(u,l)}},{"./_stream_readable":216,"./_stream_writable":218,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60,"core-util-is":189,inherits:196,"process-nextick-args":207}],215:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/object/create"),x=T(O);function T(f){return f&&f.__esModule?f:{default:f}}P.exports=m;var v=U("./_stream_transform"),S=(0,x.default)(U("core-util-is"));S.inherits=U("inherits"),S.inherits(m,v);function m(f){if(!(this instanceof m))return new m(f);v.call(this,f)}m.prototype._transform=function(f,c,o){o(null,f)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(U,P,d){(function(O,x){"use strict";var T=U("babel-runtime/core-js/object/get-prototype-of"),v=f(T),S=U("babel-runtime/core-js/object/create"),m=f(S);function f(Q){return Q&&Q.__esModule?Q:{default:Q}}var c=U("process-nextick-args");P.exports=b;var o=U("isarray"),r;b.ReadableState=w;var a=U("events").EventEmitter,n=function(me,Je){return me.listeners(Je).length},e=U("./internal/streams/stream"),s=U("safe-buffer").Buffer,t=x.Uint8Array||function(){};function i(Q){return s.from(Q)}function l(Q){return s.isBuffer(Q)||Q instanceof t}var u=(0,m.default)(U("core-util-is"));u.inherits=U("inherits");var h=U("util"),p=void 0;h&&h.debuglog?p=h.debuglog("stream"):p=function(){};var g=U("./internal/streams/BufferList"),A=U("./internal/streams/destroy"),y;u.inherits(b,e);var E=["error","close","destroy","pause","resume"];function C(Q,me,Je){if(typeof Q.prependListener=="function")return Q.prependListener(me,Je);!Q._events||!Q._events[me]?Q.on(me,Je):o(Q._events[me])?Q._events[me].unshift(Je):Q._events[me]=[Je,Q._events[me]]}function w(Q,me){r=r||U("./_stream_duplex"),Q=Q||{};var Je=me instanceof r;this.objectMode=!!Q.objectMode,Je&&(this.objectMode=this.objectMode||!!Q.readableObjectMode);var re=Q.highWaterMark,G=Q.readableHighWaterMark,X=this.objectMode?16:16*1024;re||re===0?this.highWaterMark=re:Je&&(G||G===0)?this.highWaterMark=G:this.highWaterMark=X,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=Q.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Q.encoding&&(y||(y=U("string_decoder/").StringDecoder),this.decoder=new y(Q.encoding),this.encoding=Q.encoding)}function b(Q){if(r=r||U("./_stream_duplex"),!(this instanceof b))return new b(Q);this._readableState=new w(Q,this),this.readable=!0,Q&&(typeof Q.read=="function"&&(this._read=Q.read),typeof Q.destroy=="function"&&(this._destroy=Q.destroy)),e.call(this)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(me){if(!this._readableState)return;this._readableState.destroyed=me}}),b.prototype.destroy=A.destroy,b.prototype._undestroy=A.undestroy,b.prototype._destroy=function(Q,me){this.push(null),me(Q)},b.prototype.push=function(Q,me){var Je=this._readableState,re;return Je.objectMode?re=!0:typeof Q=="string"&&(me=me||Je.defaultEncoding,me!==Je.encoding&&(Q=s.from(Q,me),me=""),re=!0),I(this,Q,me,!1,re)},b.prototype.unshift=function(Q){return I(this,Q,null,!0,!1)};function I(Q,me,Je,re,G){var X=Q._readableState;if(me===null)X.reading=!1,M(Q,X);else{var J;G||(J=L(X,me)),J?Q.emit("error",J):X.objectMode||me&&me.length>0?(typeof me!="string"&&!X.objectMode&&(0,v.default)(me)!==s.prototype&&(me=i(me)),re?X.endEmitted?Q.emit("error",new Error("stream.unshift() after end event")):_(Q,X,me,!0):X.ended?Q.emit("error",new Error("stream.push() after EOF")):(X.reading=!1,X.decoder&&!Je?(me=X.decoder.write(me),X.objectMode||me.length!==0?_(Q,X,me,!1):K(Q,X)):_(Q,X,me,!1))):re||(X.reading=!1)}return D(X)}function _(Q,me,Je,re){me.flowing&&me.length===0&&!me.sync?(Q.emit("data",Je),Q.read(0)):(me.length+=me.objectMode?1:Je.length,re?me.buffer.unshift(Je):me.buffer.push(Je),me.needReadable&&H(Q)),K(Q,me)}function L(Q,me){var Je;return!l(me)&&typeof me!="string"&&me!==void 0&&!Q.objectMode&&(Je=new TypeError("Invalid non-string/buffer chunk")),Je}function D(Q){return!Q.ended&&(Q.needReadable||Q.length<Q.highWaterMark||Q.length===0)}b.prototype.isPaused=function(){return this._readableState.flowing===!1},b.prototype.setEncoding=function(Q){return y||(y=U("string_decoder/").StringDecoder),this._readableState.decoder=new y(Q),this._readableState.encoding=Q,this};var N=8388608;function R(Q){return Q>=N?Q=N:(Q--,Q|=Q>>>1,Q|=Q>>>2,Q|=Q>>>4,Q|=Q>>>8,Q|=Q>>>16,Q++),Q}function B(Q,me){return Q<=0||me.length===0&&me.ended?0:me.objectMode?1:Q!==Q?me.flowing&&me.length?me.buffer.head.data.length:me.length:(Q>me.highWaterMark&&(me.highWaterMark=R(Q)),Q<=me.length?Q:me.ended?me.length:(me.needReadable=!0,0))}b.prototype.read=function(Q){p("read",Q),Q=parseInt(Q,10);var me=this._readableState,Je=Q;if(Q!==0&&(me.emittedReadable=!1),Q===0&&me.needReadable&&(me.length>=me.highWaterMark||me.ended))return p("read: emitReadable",me.length,me.ended),me.length===0&&me.ended?He(this):H(this),null;if(Q=B(Q,me),Q===0&&me.ended)return me.length===0&&He(this),null;var re=me.needReadable;p("need readable",re),(me.length===0||me.length-Q<me.highWaterMark)&&(re=!0,p("length less than watermark",re)),me.ended||me.reading?(re=!1,p("reading or ended",re)):re&&(p("do read"),me.reading=!0,me.sync=!0,me.length===0&&(me.needReadable=!0),this._read(me.highWaterMark),me.sync=!1,me.reading||(Q=B(Je,me)));var G;return Q>0?G=ie(Q,me):G=null,G===null?(me.needReadable=!0,Q=0):me.length-=Q,me.length===0&&(me.ended||(me.needReadable=!0),Je!==Q&&me.ended&&He(this)),G!==null&&this.emit("data",G),G};function M(Q,me){if(me.ended)return;if(me.decoder){var Je=me.decoder.end();Je&&Je.length&&(me.buffer.push(Je),me.length+=me.objectMode?1:Je.length)}me.ended=!0,H(Q)}function H(Q){var me=Q._readableState;me.needReadable=!1,me.emittedReadable||(p("emitReadable",me.flowing),me.emittedReadable=!0,me.sync?c.nextTick(F,Q):F(Q))}function F(Q){p("emit readable"),Q.emit("readable"),fe(Q)}function K(Q,me){me.readingMore||(me.readingMore=!0,c.nextTick(j,Q,me))}function j(Q,me){for(var Je=me.length;!me.reading&&!me.flowing&&!me.ended&&me.length<me.highWaterMark&&!(p("maybeReadMore read 0"),Q.read(0),Je===me.length);)Je=me.length;me.readingMore=!1}b.prototype._read=function(Q){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(Q,me){var Je=this,re=this._readableState;switch(re.pipesCount){case 0:re.pipes=Q;break;case 1:re.pipes=[re.pipes,Q];break;default:re.pipes.push(Q);break}re.pipesCount+=1,p("pipe count=%d opts=%j",re.pipesCount,me);var G=(!me||me.end!==!1)&&Q!==O.stdout&&Q!==O.stderr,X=G?Ae:et;re.endEmitted?c.nextTick(X):Je.once("end",X),Q.on("unpipe",J);function J(Te,tt){p("onunpipe"),Te===Je&&(tt&&tt.hasUnpiped===!1&&(tt.hasUnpiped=!0,Ie()))}function Ae(){p("onend"),Q.end()}var he=V(Je);Q.on("drain",he);var Me=!1;function Ie(){p("cleanup"),Q.removeListener("close",Ye),Q.removeListener("finish",it),Q.removeListener("drain",he),Q.removeListener("error",Oe),Q.removeListener("unpipe",J),Je.removeListener("end",Ae),Je.removeListener("end",et),Je.removeListener("data",pe),Me=!0,re.awaitDrain&&(!Q._writableState||Q._writableState.needDrain)&&he()}var oe=!1;Je.on("data",pe);function pe(Te){p("ondata"),oe=!1;var tt=Q.write(Te);tt===!1&&!oe&&((re.pipesCount===1&&re.pipes===Q||re.pipesCount>1&&Pe(re.pipes,Q)!==-1)&&!Me&&(p("false write response, pause",Je._readableState.awaitDrain),Je._readableState.awaitDrain++,oe=!0),Je.pause())}function Oe(Te){p("onerror",Te),et(),Q.removeListener("error",Oe),n(Q,"error")===0&&Q.emit("error",Te)}C(Q,"error",Oe);function Ye(){Q.removeListener("finish",it),et()}Q.once("close",Ye);function it(){p("onfinish"),Q.removeListener("close",Ye),et()}Q.once("finish",it);function et(){p("unpipe"),Je.unpipe(Q)}return Q.emit("pipe",Je),re.flowing||(p("pipe resume"),Je.resume()),Q};function V(Q){return function(){var me=Q._readableState;p("pipeOnDrain",me.awaitDrain),me.awaitDrain&&me.awaitDrain--,me.awaitDrain===0&&n(Q,"data")&&(me.flowing=!0,fe(Q))}}b.prototype.unpipe=function(Q){var me=this._readableState,Je={hasUnpiped:!1};if(me.pipesCount===0)return this;if(me.pipesCount===1)return Q&&Q!==me.pipes?this:(Q||(Q=me.pipes),me.pipes=null,me.pipesCount=0,me.flowing=!1,Q&&Q.emit("unpipe",this,Je),this);if(!Q){var re=me.pipes,G=me.pipesCount;me.pipes=null,me.pipesCount=0,me.flowing=!1;for(var X=0;X<G;X++)re[X].emit("unpipe",this,Je);return this}var J=Pe(me.pipes,Q);return J===-1?this:(me.pipes.splice(J,1),me.pipesCount-=1,me.pipesCount===1&&(me.pipes=me.pipes[0]),Q.emit("unpipe",this,Je),this)},b.prototype.on=function(Q,me){var Je=e.prototype.on.call(this,Q,me);if(Q==="data")this._readableState.flowing!==!1&&this.resume();else if(Q==="readable"){var re=this._readableState;!re.endEmitted&&!re.readableListening&&(re.readableListening=re.needReadable=!0,re.emittedReadable=!1,re.reading?re.length&&H(this):c.nextTick(z,this))}return Je},b.prototype.addListener=b.prototype.on;function z(Q){p("readable nexttick read 0"),Q.read(0)}b.prototype.resume=function(){var Q=this._readableState;return Q.flowing||(p("resume"),Q.flowing=!0,Y(this,Q)),this};function Y(Q,me){me.resumeScheduled||(me.resumeScheduled=!0,c.nextTick(ee,Q,me))}function ee(Q,me){me.reading||(p("resume read 0"),Q.read(0)),me.resumeScheduled=!1,me.awaitDrain=0,Q.emit("resume"),fe(Q),me.flowing&&!me.reading&&Q.read(0)}b.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function fe(Q){var me=Q._readableState;for(p("flow",me.flowing);me.flowing&&Q.read()!==null;);}b.prototype.wrap=function(Q){var me=this,Je=this._readableState,re=!1;Q.on("end",function(){if(p("wrapped end"),Je.decoder&&!Je.ended){var J=Je.decoder.end();J&&J.length&&me.push(J)}me.push(null)}),Q.on("data",function(J){if(p("wrapped data"),Je.decoder&&(J=Je.decoder.write(J)),Je.objectMode&&J==null)return;if(!Je.objectMode&&(!J||!J.length))return;var Ae=me.push(J);Ae||(re=!0,Q.pause())});for(var G in Q)this[G]===void 0&&typeof Q[G]=="function"&&(this[G]=function(J){return function(){return Q[J].apply(Q,arguments)}}(G));for(var X=0;X<E.length;X++)Q.on(E[X],this.emit.bind(this,E[X]));return this._read=function(J){p("wrapped _read",J),re&&(re=!1,Q.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=ie;function ie(Q,me){if(me.length===0)return null;var Je;return me.objectMode?Je=me.buffer.shift():!Q||Q>=me.length?(me.decoder?Je=me.buffer.join(""):me.buffer.length===1?Je=me.buffer.head.data:Je=me.buffer.concat(me.length),me.buffer.clear()):Je=we(Q,me.buffer,me.decoder),Je}function we(Q,me,Je){var re;return Q<me.head.data.length?(re=me.head.data.slice(0,Q),me.head.data=me.head.data.slice(Q)):Q===me.head.data.length?re=me.shift():re=Je?Ce(Q,me):Le(Q,me),re}function Ce(Q,me){var Je=me.head,re=1,G=Je.data;for(Q-=G.length;Je=Je.next;){var X=Je.data,J=Q>X.length?X.length:Q;if(J===X.length?G+=X:G+=X.slice(0,Q),Q-=J,Q===0){J===X.length?(++re,Je.next?me.head=Je.next:me.head=me.tail=null):(me.head=Je,Je.data=X.slice(J));break}++re}return me.length-=re,G}function Le(Q,me){var Je=s.allocUnsafe(Q),re=me.head,G=1;for(re.data.copy(Je),Q-=re.data.length;re=re.next;){var X=re.data,J=Q>X.length?X.length:Q;if(X.copy(Je,Je.length-Q,0,J),Q-=J,Q===0){J===X.length?(++G,re.next?me.head=re.next:me.head=me.tail=null):(me.head=re,re.data=X.slice(J));break}++G}return me.length-=G,Je}function He(Q){var me=Q._readableState;if(me.length>0)throw new Error('"endReadable()" called on non-empty stream');me.endEmitted||(me.ended=!0,c.nextTick(ce,me,Q))}function ce(Q,me){!Q.endEmitted&&Q.length===0&&(Q.endEmitted=!0,me.readable=!1,me.emit("end"))}function Pe(Q,me){for(var Je=0,re=Q.length;Je<re;Je++)if(Q[Je]===me)return Je;return-1}}).call(this,U("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/BufferList":219,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/get-prototype-of":59,"core-util-is":189,events:192,inherits:196,isarray:198,"process-nextick-args":207,"safe-buffer":228,"string_decoder/":235,util:71}],217:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/object/create"),x=T(O);function T(r){return r&&r.__esModule?r:{default:r}}P.exports=f;var v=U("./_stream_duplex"),S=(0,x.default)(U("core-util-is"));S.inherits=U("inherits"),S.inherits(f,v);function m(r,a){var n=this._transformState;n.transforming=!1;var e=n.writecb;if(!e)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,a!=null&&this.push(a),e(r);var s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function f(r){if(!(this instanceof f))return new f(r);v.call(this,r),this._transformState={afterTransform:m.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&(typeof r.transform=="function"&&(this._transform=r.transform),typeof r.flush=="function"&&(this._flush=r.flush)),this.on("prefinish",c)}function c(){var r=this;typeof this._flush=="function"?this._flush(function(a,n){o(r,a,n)}):o(this,null,null)}f.prototype.push=function(r,a){return this._transformState.needTransform=!1,v.prototype.push.call(this,r,a)},f.prototype._transform=function(r,a,n){throw new Error("_transform() is not implemented")},f.prototype._write=function(r,a,n){var e=this._transformState;if(e.writecb=n,e.writechunk=r,e.writeencoding=a,!e.transforming){var s=this._readableState;(e.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}},f.prototype._read=function(r){var a=this._transformState;a.writechunk!==null&&a.writecb&&!a.transforming?(a.transforming=!0,this._transform(a.writechunk,a.writeencoding,a.afterTransform)):a.needTransform=!0},f.prototype._destroy=function(r,a){var n=this;v.prototype._destroy.call(this,r,function(e){a(e),n.emit("close")})};function o(r,a,n){if(a)return r.emit("error",a);if(n!=null&&r.push(n),r._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(r._transformState.transforming)throw new Error("Calling transform done when still transforming");return r.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(U,P,d){(function(O,x){"use strict";var T=U("babel-runtime/core-js/object/define-property"),v=e(T),S=U("babel-runtime/core-js/symbol/has-instance"),m=e(S),f=U("babel-runtime/core-js/symbol"),c=e(f),o=U("babel-runtime/core-js/object/create"),r=e(o),a=U("babel-runtime/core-js/set-immediate"),n=e(a);function e(Le){return Le&&Le.__esModule?Le:{default:Le}}var s=U("process-nextick-args");P.exports=L;function t(Le,He,ce){this.chunk=Le,this.encoding=He,this.callback=ce,this.next=null}function i(Le){var He=this;this.next=null,this.entry=null,this.finish=function(){Ce(He,Le)}}var l=!O.browser&&["v0.10","v0.9."].indexOf(O.version.slice(0,5))>-1?n.default:s.nextTick,u;L.WritableState=I;var h=(0,r.default)(U("core-util-is"));h.inherits=U("inherits");var p={deprecate:U("util-deprecate")},g=U("./internal/streams/stream"),A=U("safe-buffer").Buffer,y=x.Uint8Array||function(){};function E(Le){return A.from(Le)}function C(Le){return A.isBuffer(Le)||Le instanceof y}var w=U("./internal/streams/destroy");h.inherits(L,g);function b(){}function I(Le,He){u=u||U("./_stream_duplex"),Le=Le||{};var ce=He instanceof u;this.objectMode=!!Le.objectMode,ce&&(this.objectMode=this.objectMode||!!Le.writableObjectMode);var Pe=Le.highWaterMark,Q=Le.writableHighWaterMark,me=this.objectMode?16:16*1024;Pe||Pe===0?this.highWaterMark=Pe:ce&&(Q||Q===0)?this.highWaterMark=Q:this.highWaterMark=me,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Je=Le.decodeStrings===!1;this.decodeStrings=!Je,this.defaultEncoding=Le.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(re){K(He,re)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}I.prototype.getBuffer=function(){for(var He=this.bufferedRequest,ce=[];He;)ce.push(He),He=He.next;return ce},function(){try{Object.defineProperty(I.prototype,"buffer",{get:p.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Le){}}();var _;typeof c.default=="function"&&m.default&&typeof Function.prototype[m.default]=="function"?(_=Function.prototype[m.default],(0,v.default)(L,m.default,{value:function(He){return _.call(this,He)?!0:this!==L?!1:He&&He._writableState instanceof I}})):_=function(He){return He instanceof this};function L(Le){if(u=u||U("./_stream_duplex"),!_.call(L,this)&&!(this instanceof u))return new L(Le);this._writableState=new I(Le,this),this.writable=!0,Le&&(typeof Le.write=="function"&&(this._write=Le.write),typeof Le.writev=="function"&&(this._writev=Le.writev),typeof Le.destroy=="function"&&(this._destroy=Le.destroy),typeof Le.final=="function"&&(this._final=Le.final)),g.call(this)}L.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function D(Le,He){var ce=new Error("write after end");Le.emit("error",ce),s.nextTick(He,ce)}function N(Le,He,ce,Pe){var Q=!0,me=!1;return ce===null?me=new TypeError("May not write null values to stream"):typeof ce!="string"&&ce!==void 0&&!He.objectMode&&(me=new TypeError("Invalid non-string/buffer chunk")),me&&(Le.emit("error",me),s.nextTick(Pe,me),Q=!1),Q}L.prototype.write=function(Le,He,ce){var Pe=this._writableState,Q=!1,me=!Pe.objectMode&&C(Le);return me&&!A.isBuffer(Le)&&(Le=E(Le)),typeof He=="function"&&(ce=He,He=null),me?He="buffer":He||(He=Pe.defaultEncoding),typeof ce!="function"&&(ce=b),Pe.ended?D(this,ce):(me||N(this,Pe,Le,ce))&&(Pe.pendingcb++,Q=B(this,Pe,me,Le,He,ce)),Q},L.prototype.cork=function(){var Le=this._writableState;Le.corked++},L.prototype.uncork=function(){var Le=this._writableState;Le.corked&&(Le.corked--,!Le.writing&&!Le.corked&&!Le.finished&&!Le.bufferProcessing&&Le.bufferedRequest&&z(this,Le))},L.prototype.setDefaultEncoding=function(He){if(typeof He=="string"&&(He=He.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((He+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+He);return this._writableState.defaultEncoding=He,this};function R(Le,He,ce){return!Le.objectMode&&Le.decodeStrings!==!1&&typeof He=="string"&&(He=A.from(He,ce)),He}Object.defineProperty(L.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function B(Le,He,ce,Pe,Q,me){if(!ce){var Je=R(He,Pe,Q);Pe!==Je&&(ce=!0,Q="buffer",Pe=Je)}var re=He.objectMode?1:Pe.length;He.length+=re;var G=He.length<He.highWaterMark;if(G||(He.needDrain=!0),He.writing||He.corked){var X=He.lastBufferedRequest;He.lastBufferedRequest={chunk:Pe,encoding:Q,isBuf:ce,callback:me,next:null},X?X.next=He.lastBufferedRequest:He.bufferedRequest=He.lastBufferedRequest,He.bufferedRequestCount+=1}else M(Le,He,!1,re,Pe,Q,me);return G}function M(Le,He,ce,Pe,Q,me,Je){He.writelen=Pe,He.writecb=Je,He.writing=!0,He.sync=!0,ce?Le._writev(Q,He.onwrite):Le._write(Q,me,He.onwrite),He.sync=!1}function H(Le,He,ce,Pe,Q){--He.pendingcb,ce?(s.nextTick(Q,Pe),s.nextTick(ie,Le,He),Le._writableState.errorEmitted=!0,Le.emit("error",Pe)):(Q(Pe),Le._writableState.errorEmitted=!0,Le.emit("error",Pe),ie(Le,He))}function F(Le){Le.writing=!1,Le.writecb=null,Le.length-=Le.writelen,Le.writelen=0}function K(Le,He){var ce=Le._writableState,Pe=ce.sync,Q=ce.writecb;if(F(ce),He)H(Le,ce,Pe,He,Q);else{var me=Y(ce);!me&&!ce.corked&&!ce.bufferProcessing&&ce.bufferedRequest&&z(Le,ce),Pe?l(j,Le,ce,me,Q):j(Le,ce,me,Q)}}function j(Le,He,ce,Pe){ce||V(Le,He),He.pendingcb--,Pe(),ie(Le,He)}function V(Le,He){He.length===0&&He.needDrain&&(He.needDrain=!1,Le.emit("drain"))}function z(Le,He){He.bufferProcessing=!0;var ce=He.bufferedRequest;if(Le._writev&&ce&&ce.next){var Pe=He.bufferedRequestCount,Q=new Array(Pe),me=He.corkedRequestsFree;me.entry=ce;for(var Je=0,re=!0;ce;)Q[Je]=ce,ce.isBuf||(re=!1),ce=ce.next,Je+=1;Q.allBuffers=re,M(Le,He,!0,He.length,Q,"",me.finish),He.pendingcb++,He.lastBufferedRequest=null,me.next?(He.corkedRequestsFree=me.next,me.next=null):He.corkedRequestsFree=new i(He),He.bufferedRequestCount=0}else{for(;ce;){var G=ce.chunk,X=ce.encoding,J=ce.callback,Ae=He.objectMode?1:G.length;if(M(Le,He,!1,Ae,G,X,J),ce=ce.next,He.bufferedRequestCount--,He.writing)break}ce===null&&(He.lastBufferedRequest=null)}He.bufferedRequest=ce,He.bufferProcessing=!1}L.prototype._write=function(Le,He,ce){ce(new Error("_write() is not implemented"))},L.prototype._writev=null,L.prototype.end=function(Le,He,ce){var Pe=this._writableState;typeof Le=="function"?(ce=Le,Le=null,He=null):typeof He=="function"&&(ce=He,He=null),Le!=null&&this.write(Le,He),Pe.corked&&(Pe.corked=1,this.uncork()),!Pe.ending&&!Pe.finished&&we(this,Pe,ce)};function Y(Le){return Le.ending&&Le.length===0&&Le.bufferedRequest===null&&!Le.finished&&!Le.writing}function ee(Le,He){Le._final(function(ce){He.pendingcb--,ce&&Le.emit("error",ce),He.prefinished=!0,Le.emit("prefinish"),ie(Le,He)})}function fe(Le,He){!He.prefinished&&!He.finalCalled&&(typeof Le._final=="function"?(He.pendingcb++,He.finalCalled=!0,s.nextTick(ee,Le,He)):(He.prefinished=!0,Le.emit("prefinish")))}function ie(Le,He){var ce=Y(He);return ce&&(fe(Le,He),He.pendingcb===0&&(He.finished=!0,Le.emit("finish"))),ce}function we(Le,He,ce){He.ending=!0,ie(Le,He),ce&&(He.finished?s.nextTick(ce):Le.once("finish",ce)),He.ended=!0,Le.writable=!1}function Ce(Le,He,ce){var Pe=Le.entry;for(Le.entry=null;Pe;){var Q=Pe.callback;He.pendingcb--,Q(ce),Pe=Pe.next}He.corkedRequestsFree?He.corkedRequestsFree.next=Le:He.corkedRequestsFree=Le}Object.defineProperty(L.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(He){if(!this._writableState)return;this._writableState.destroyed=He}}),L.prototype.destroy=w.destroy,L.prototype._undestroy=w.undestroy,L.prototype._destroy=function(Le,He){this.end(),He(Le)}}).call(this,U("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/set-immediate":62,"babel-runtime/core-js/symbol":64,"babel-runtime/core-js/symbol/has-instance":65,"core-util-is":189,inherits:196,"process-nextick-args":207,"safe-buffer":228,"util-deprecate":240}],219:[function(U,P,d){"use strict";function O(S,m){if(!(S instanceof m))throw new TypeError("Cannot call a class as a function")}var x=U("safe-buffer").Buffer,T=U("util");function v(S,m,f){S.copy(m,f)}P.exports=function(){function S(){O(this,S),this.head=null,this.tail=null,this.length=0}return S.prototype.push=function(f){var c={data:f,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length},S.prototype.unshift=function(f){var c={data:f,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length},S.prototype.shift=function(){if(this.length===0)return;var f=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,f},S.prototype.clear=function(){this.head=this.tail=null,this.length=0},S.prototype.join=function(f){if(this.length===0)return"";for(var c=this.head,o=""+c.data;c=c.next;)o+=f+c.data;return o},S.prototype.concat=function(f){if(this.length===0)return x.alloc(0);if(this.length===1)return this.head.data;for(var c=x.allocUnsafe(f>>>0),o=this.head,r=0;o;)v(o.data,c,r),r+=o.data.length,o=o.next;return c},S}(),T&&T.inspect&&T.inspect.custom&&(P.exports.prototype[T.inspect.custom]=function(){var S=T.inspect({length:this.length});return this.constructor.name+" "+S})},{"safe-buffer":228,util:71}],220:[function(U,P,d){"use strict";var O=U("process-nextick-args");function x(S,m){var f=this,c=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return c||o?(m?m(S):S&&(!this._writableState||!this._writableState.errorEmitted)&&O.nextTick(v,this,S),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(S||null,function(r){!m&&r?(O.nextTick(v,f,r),f._writableState&&(f._writableState.errorEmitted=!0)):m&&m(r)}),this)}function T(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function v(S,m){S.emit("error",m)}P.exports={destroy:x,undestroy:T}},{"process-nextick-args":207}],221:[function(U,P,d){"use strict";P.exports=U("events").EventEmitter},{events:192}],222:[function(U,P,d){P.exports=U("./readable").PassThrough},{"./readable":223}],223:[function(U,P,d){d=P.exports=U("./lib/_stream_readable.js"),d.Stream=d,d.Readable=d,d.Writable=U("./lib/_stream_writable.js"),d.Duplex=U("./lib/_stream_duplex.js"),d.Transform=U("./lib/_stream_transform.js"),d.PassThrough=U("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(U,P,d){P.exports=U("./readable").Transform},{"./readable":223}],225:[function(U,P,d){P.exports=U("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(U,P,d){var O=function(){return this}()||Function("return this")(),x=O.regeneratorRuntime&&Object.getOwnPropertyNames(O).indexOf("regeneratorRuntime")>=0,T=x&&O.regeneratorRuntime;if(O.regeneratorRuntime=void 0,P.exports=U("./runtime"),x)O.regeneratorRuntime=T;else try{delete O.regeneratorRuntime}catch(v){O.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(U,P,d){!function(O){"use strict";var x=Object.prototype,T=x.hasOwnProperty,v,S=typeof Symbol=="function"?Symbol:{},m=S.iterator||"@@iterator",f=S.asyncIterator||"@@asyncIterator",c=S.toStringTag||"@@toStringTag",o=typeof P=="object",r=O.regeneratorRuntime;if(r){o&&(P.exports=r);return}r=O.regeneratorRuntime=o?P.exports:{};function a(B,M,H,F){var K=M&&M.prototype instanceof u?M:u,j=Object.create(K.prototype),V=new D(F||[]);return j._invoke=b(B,H,V),j}r.wrap=a;function n(B,M,H){try{return{type:"normal",arg:B.call(M,H)}}catch(F){return{type:"throw",arg:F}}}var e="suspendedStart",s="suspendedYield",t="executing",i="completed",l={};function u(){}function h(){}function p(){}var g={};g[m]=function(){return this};var A=Object.getPrototypeOf,y=A&&A(A(N([])));y&&y!==x&&T.call(y,m)&&(g=y);var E=p.prototype=u.prototype=Object.create(g);h.prototype=E.constructor=p,p.constructor=h,p[c]=h.displayName="GeneratorFunction";function C(B){["next","throw","return"].forEach(function(M){B[M]=function(H){return this._invoke(M,H)}})}r.isGeneratorFunction=function(B){var M=typeof B=="function"&&B.constructor;return M?M===h||(M.displayName||M.name)==="GeneratorFunction":!1},r.mark=function(B){return Object.setPrototypeOf?Object.setPrototypeOf(B,p):(B.__proto__=p,c in B||(B[c]="GeneratorFunction")),B.prototype=Object.create(E),B},r.awrap=function(B){return{__await:B}};function w(B){function M(K,j,V,z){var Y=n(B[K],B,j);if(Y.type==="throw")z(Y.arg);else{var ee=Y.arg,fe=ee.value;return fe&&typeof fe=="object"&&T.call(fe,"__await")?Promise.resolve(fe.__await).then(function(ie){M("next",ie,V,z)},function(ie){M("throw",ie,V,z)}):Promise.resolve(fe).then(function(ie){ee.value=ie,V(ee)},z)}}var H;function F(K,j){function V(){return new Promise(function(z,Y){M(K,j,z,Y)})}return H=H?H.then(V,V):V()}this._invoke=F}C(w.prototype),w.prototype[f]=function(){return this},r.AsyncIterator=w,r.async=function(B,M,H,F){var K=new w(a(B,M,H,F));return r.isGeneratorFunction(M)?K:K.next().then(function(j){return j.done?j.value:K.next()})};function b(B,M,H){var F=e;return function(j,V){if(F===t)throw new Error("Generator is already running");if(F===i){if(j==="throw")throw V;return R()}for(H.method=j,H.arg=V;;){var z=H.delegate;if(z){var Y=I(z,H);if(Y){if(Y===l)continue;return Y}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(F===e)throw F=i,H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);F=t;var ee=n(B,M,H);if(ee.type==="normal"){if(F=H.done?i:s,ee.arg===l)continue;return{value:ee.arg,done:H.done}}else ee.type==="throw"&&(F=i,H.method="throw",H.arg=ee.arg)}}}function I(B,M){var H=B.iterator[M.method];if(H===v){if(M.delegate=null,M.method==="throw"){if(B.iterator.return&&(M.method="return",M.arg=v,I(B,M),M.method==="throw"))return l;M.method="throw",M.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var F=n(H,B.iterator,M.arg);if(F.type==="throw")return M.method="throw",M.arg=F.arg,M.delegate=null,l;var K=F.arg;if(!K)return M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,l;if(K.done)M[B.resultName]=K.value,M.next=B.nextLoc,M.method!=="return"&&(M.method="next",M.arg=v);else return K;return M.delegate=null,l}C(E),E[c]="Generator",E[m]=function(){return this},E.toString=function(){return"[object Generator]"};function _(B){var M={tryLoc:B[0]};1 in B&&(M.catchLoc=B[1]),2 in B&&(M.finallyLoc=B[2],M.afterLoc=B[3]),this.tryEntries.push(M)}function L(B){var M=B.completion||{};M.type="normal",delete M.arg,B.completion=M}function D(B){this.tryEntries=[{tryLoc:"root"}],B.forEach(_,this),this.reset(!0)}r.keys=function(B){var M=[];for(var H in B)M.push(H);return M.reverse(),function F(){for(;M.length;){var K=M.pop();if(K in B)return F.value=K,F.done=!1,F}return F.done=!0,F}};function N(B){if(B){var M=B[m];if(M)return M.call(B);if(typeof B.next=="function")return B;if(!isNaN(B.length)){var H=-1,F=function K(){for(;++H<B.length;)if(T.call(B,H))return K.value=B[H],K.done=!1,K;return K.value=v,K.done=!0,K};return F.next=F}}return{next:R}}r.values=N;function R(){return{value:v,done:!0}}D.prototype={constructor:D,reset:function(M){if(this.prev=0,this.next=0,this.sent=this._sent=v,this.done=!1,this.delegate=null,this.method="next",this.arg=v,this.tryEntries.forEach(L),!M)for(var H in this)H.charAt(0)==="t"&&T.call(this,H)&&!isNaN(+H.slice(1))&&(this[H]=v)},stop:function(){this.done=!0;var M=this.tryEntries[0],H=M.completion;if(H.type==="throw")throw H.arg;return this.rval},dispatchException:function(M){if(this.done)throw M;var H=this;function F(ee,fe){return V.type="throw",V.arg=M,H.next=ee,fe&&(H.method="next",H.arg=v),!!fe}for(var K=this.tryEntries.length-1;K>=0;--K){var j=this.tryEntries[K],V=j.completion;if(j.tryLoc==="root")return F("end");if(j.tryLoc<=this.prev){var z=T.call(j,"catchLoc"),Y=T.call(j,"finallyLoc");if(z&&Y){if(this.prev<j.catchLoc)return F(j.catchLoc,!0);if(this.prev<j.finallyLoc)return F(j.finallyLoc)}else if(z){if(this.prev<j.catchLoc)return F(j.catchLoc,!0)}else if(Y){if(this.prev<j.finallyLoc)return F(j.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(M,H){for(var F=this.tryEntries.length-1;F>=0;--F){var K=this.tryEntries[F];if(K.tryLoc<=this.prev&&T.call(K,"finallyLoc")&&this.prev<K.finallyLoc){var j=K;break}}j&&(M==="break"||M==="continue")&&j.tryLoc<=H&&H<=j.finallyLoc&&(j=null);var V=j?j.completion:{};return V.type=M,V.arg=H,j?(this.method="next",this.next=j.finallyLoc,l):this.complete(V)},complete:function(M,H){if(M.type==="throw")throw M.arg;return M.type==="break"||M.type==="continue"?this.next=M.arg:M.type==="return"?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):M.type==="normal"&&H&&(this.next=H),l},finish:function(M){for(var H=this.tryEntries.length-1;H>=0;--H){var F=this.tryEntries[H];if(F.finallyLoc===M)return this.complete(F.completion,F.afterLoc),L(F),l}},catch:function(M){for(var H=this.tryEntries.length-1;H>=0;--H){var F=this.tryEntries[H];if(F.tryLoc===M){var K=F.completion;if(K.type==="throw"){var j=K.arg;L(F)}return j}}throw new Error("illegal catch attempt")},delegateYield:function(M,H,F){return this.delegate={iterator:N(M),resultName:H,nextLoc:F},this.method==="next"&&(this.arg=v),l}}}(function(){return this}()||Function("return this")())},{}],228:[function(U,P,d){var O=U("buffer"),x=O.Buffer;function T(S,m){for(var f in S)m[f]=S[f]}x.from&&x.alloc&&x.allocUnsafe&&x.allocUnsafeSlow?P.exports=O:(T(O,d),d.Buffer=v);function v(S,m,f){return x(S,m,f)}T(x,v),v.from=function(S,m,f){if(typeof S=="number")throw new TypeError("Argument must not be a number");return x(S,m,f)},v.alloc=function(S,m,f){if(typeof S!="number")throw new TypeError("Argument must be a number");var c=x(S);return m!==void 0?typeof f=="string"?c.fill(m,f):c.fill(m):c.fill(0),c},v.allocUnsafe=function(S){if(typeof S!="number")throw new TypeError("Argument must be a number");return x(S)},v.allocUnsafeSlow=function(S){if(typeof S!="number")throw new TypeError("Argument must be a number");return O.SlowBuffer(S)}},{buffer:73}],229:[function(U,P,d){(function(O){"use strict";var x=U("babel-runtime/core-js/string/from-code-point"),T=s(x),v=U("babel-runtime/core-js/json/stringify"),S=s(v),m=U("babel-runtime/helpers/typeof"),f=s(m),c=U("babel-runtime/core-js/object/define-property"),o=s(c),r=U("babel-runtime/core-js/object/keys"),a=s(r),n=U("babel-runtime/core-js/object/create"),e=s(n);function s(t){return t&&t.__esModule?t:{default:t}}(function(t){t.parser=function(X,J){return new l(X,J)},t.SAXParser=l,t.SAXStream=E,t.createStream=y,t.MAX_BUFFER_LENGTH=64*1024;var i=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function l(X,J){if(!(this instanceof l))return new l(X,J);var Ae=this;h(Ae),Ae.q=Ae.c="",Ae.bufferCheckPosition=t.MAX_BUFFER_LENGTH,Ae.opt=J||{},Ae.opt.lowercase=Ae.opt.lowercase||Ae.opt.lowercasetags,Ae.looseCase=Ae.opt.lowercase?"toLowerCase":"toUpperCase",Ae.tags=[],Ae.closed=Ae.closedRoot=Ae.sawRoot=!1,Ae.tag=Ae.error=null,Ae.strict=!!X,Ae.noscript=!!(X||Ae.opt.noscript),Ae.state=j.BEGIN,Ae.strictEntities=Ae.opt.strictEntities,Ae.ENTITIES=Ae.strictEntities?(0,e.default)(t.XML_ENTITIES):(0,e.default)(t.ENTITIES),Ae.attribList=[],Ae.opt.xmlns&&(Ae.ns=(0,e.default)(_)),Ae.trackPosition=Ae.opt.position!==!1,Ae.trackPosition&&(Ae.position=Ae.line=Ae.column=0),z(Ae,"onready")}e.default||(Object.create=function(X){function J(){}J.prototype=X;var Ae=new J;return Ae}),a.default||(Object.keys=function(X){var J=[];for(var Ae in X)X.hasOwnProperty(Ae)&&J.push(Ae);return J});function u(X){for(var J=Math.max(t.MAX_BUFFER_LENGTH,10),Ae=0,he=0,Me=i.length;he<Me;he++){var Ie=X[i[he]].length;if(Ie>J)switch(i[he]){case"textNode":ee(X);break;case"cdata":Y(X,"oncdata",X.cdata),X.cdata="";break;case"script":Y(X,"onscript",X.script),X.script="";break;default:ie(X,"Max buffer length exceeded: "+i[he])}Ae=Math.max(Ae,Ie)}var oe=t.MAX_BUFFER_LENGTH-Ae;X.bufferCheckPosition=oe+X.position}function h(X){for(var J=0,Ae=i.length;J<Ae;J++)X[i[J]]=""}function p(X){ee(X),X.cdata!==""&&(Y(X,"oncdata",X.cdata),X.cdata=""),X.script!==""&&(Y(X,"onscript",X.script),X.script="")}l.prototype={end:function(){we(this)},write:G,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){p(this)}};var g;try{g=U("stream").Stream}catch(X){g=function(){}}var A=t.EVENTS.filter(function(X){return X!=="error"&&X!=="end"});function y(X,J){return new E(X,J)}function E(X,J){if(!(this instanceof E))return new E(X,J);g.apply(this),this._parser=new l(X,J),this.writable=!0,this.readable=!0;var Ae=this;this._parser.onend=function(){Ae.emit("end")},this._parser.onerror=function(he){Ae.emit("error",he),Ae._parser.error=null},this._decoder=null,A.forEach(function(he){(0,o.default)(Ae,"on"+he,{get:function(){return Ae._parser["on"+he]},set:function(Ie){if(!Ie)return Ae.removeAllListeners(he),Ae._parser["on"+he]=Ie,Ie;Ae.on(he,Ie)},enumerable:!0,configurable:!1})})}E.prototype=(0,e.default)(g.prototype,{constructor:{value:E}}),E.prototype.write=function(X){if(typeof O=="function"&&typeof O.isBuffer=="function"&&O.isBuffer(X)){if(!this._decoder){var J=U("string_decoder").StringDecoder;this._decoder=new J("utf8")}X=this._decoder.write(X)}return this._parser.write(X.toString()),this.emit("data",X),!0},E.prototype.end=function(X){return X&&X.length&&this.write(X),this._parser.end(),!0},E.prototype.on=function(X,J){var Ae=this;return!Ae._parser["on"+X]&&A.indexOf(X)!==-1&&(Ae._parser["on"+X]=function(){var he=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);he.splice(0,0,X),Ae.emit.apply(Ae,he)}),g.prototype.on.call(Ae,X,J)};var C="[CDATA[",w="DOCTYPE",b="http://www.w3.org/XML/1998/namespace",I="http://www.w3.org/2000/xmlns/",_={xml:b,xmlns:I},L=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,D=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,N=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,R=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function B(X){return X===" "||X===`
|
|
|
`||X==="\r"||X===" "}function M(X){return X==='"'||X==="'"}function H(X){return X===">"||B(X)}function F(X,J){return X.test(J)}function K(X,J){return!F(X,J)}var j=0;t.STATE={BEGIN:j++,BEGIN_WHITESPACE:j++,TEXT:j++,TEXT_ENTITY:j++,OPEN_WAKA:j++,SGML_DECL:j++,SGML_DECL_QUOTED:j++,DOCTYPE:j++,DOCTYPE_QUOTED:j++,DOCTYPE_DTD:j++,DOCTYPE_DTD_QUOTED:j++,COMMENT_STARTING:j++,COMMENT:j++,COMMENT_ENDING:j++,COMMENT_ENDED:j++,CDATA:j++,CDATA_ENDING:j++,CDATA_ENDING_2:j++,PROC_INST:j++,PROC_INST_BODY:j++,PROC_INST_ENDING:j++,OPEN_TAG:j++,OPEN_TAG_SLASH:j++,ATTRIB:j++,ATTRIB_NAME:j++,ATTRIB_NAME_SAW_WHITE:j++,ATTRIB_VALUE:j++,ATTRIB_VALUE_QUOTED:j++,ATTRIB_VALUE_CLOSED:j++,ATTRIB_VALUE_UNQUOTED:j++,ATTRIB_VALUE_ENTITY_Q:j++,ATTRIB_VALUE_ENTITY_U:j++,CLOSE_TAG:j++,CLOSE_TAG_SAW_WHITE:j++,SCRIPT:j++,SCRIPT_ENDING:j++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,a.default)(t.ENTITIES).forEach(function(X){var J=t.ENTITIES[X],Ae=typeof J=="number"?String.fromCharCode(J):J;t.ENTITIES[X]=Ae});for(var V in t.STATE)t.STATE[t.STATE[V]]=V;j=t.STATE;function z(X,J,Ae){X[J]&&X[J](Ae)}function Y(X,J,Ae){X.textNode&&ee(X),z(X,J,Ae)}function ee(X){X.textNode=fe(X.opt,X.textNode),X.textNode&&z(X,"ontext",X.textNode),X.textNode=""}function fe(X,J){return X.trim&&(J=J.trim()),X.normalize&&(J=J.replace(/\s+/g," ")),J}function ie(X,J){return ee(X),X.trackPosition&&(J+=`
|
|
|
Line: `+X.line+`
|
|
|
Column: `+X.column+`
|
|
|
Char: `+X.c),J=new Error(J),X.error=J,z(X,"onerror",J),X}function we(X){return X.sawRoot&&!X.closedRoot&&Ce(X,"Unclosed root tag"),X.state!==j.BEGIN&&X.state!==j.BEGIN_WHITESPACE&&X.state!==j.TEXT&&ie(X,"Unexpected end"),ee(X),X.c="",X.closed=!0,z(X,"onend"),l.call(X,X.strict,X.opt),X}function Ce(X,J){if((typeof X=="undefined"?"undefined":(0,f.default)(X))!=="object"||!(X instanceof l))throw new Error("bad call to strictFail");X.strict&&ie(X,J)}function Le(X){X.strict||(X.tagName=X.tagName[X.looseCase]());var J=X.tags[X.tags.length-1]||X,Ae=X.tag={name:X.tagName,attributes:{}};X.opt.xmlns&&(Ae.ns=J.ns),X.attribList.length=0,Y(X,"onopentagstart",Ae)}function He(X,J){var Ae=X.indexOf(":"),he=Ae<0?["",X]:X.split(":"),Me=he[0],Ie=he[1];return J&&X==="xmlns"&&(Me="xmlns",Ie=""),{prefix:Me,local:Ie}}function ce(X){if(X.strict||(X.attribName=X.attribName[X.looseCase]()),X.attribList.indexOf(X.attribName)!==-1||X.tag.attributes.hasOwnProperty(X.attribName)){X.attribName=X.attribValue="";return}if(X.opt.xmlns){var J=He(X.attribName,!0),Ae=J.prefix,he=J.local;if(Ae==="xmlns")if(he==="xml"&&X.attribValue!==b)Ce(X,"xml: prefix must be bound to "+b+`
|
|
|
Actual: `+X.attribValue);else if(he==="xmlns"&&X.attribValue!==I)Ce(X,"xmlns: prefix must be bound to "+I+`
|
|
|
Actual: `+X.attribValue);else{var Me=X.tag,Ie=X.tags[X.tags.length-1]||X;Me.ns===Ie.ns&&(Me.ns=(0,e.default)(Ie.ns)),Me.ns[he]=X.attribValue}X.attribList.push([X.attribName,X.attribValue])}else X.tag.attributes[X.attribName]=X.attribValue,Y(X,"onattribute",{name:X.attribName,value:X.attribValue});X.attribName=X.attribValue=""}function Pe(X,J){if(X.opt.xmlns){var Ae=X.tag,he=He(X.tagName);Ae.prefix=he.prefix,Ae.local=he.local,Ae.uri=Ae.ns[he.prefix]||"",Ae.prefix&&!Ae.uri&&(Ce(X,"Unbound namespace prefix: "+(0,S.default)(X.tagName)),Ae.uri=he.prefix);var Me=X.tags[X.tags.length-1]||X;Ae.ns&&Me.ns!==Ae.ns&&(0,a.default)(Ae.ns).forEach(function(dt){Y(X,"onopennamespace",{prefix:dt,uri:Ae.ns[dt]})});for(var Ie=0,oe=X.attribList.length;Ie<oe;Ie++){var pe=X.attribList[Ie],Oe=pe[0],Ye=pe[1],it=He(Oe,!0),et=it.prefix,Te=it.local,tt=et===""?"":Ae.ns[et]||"",ze={name:Oe,value:Ye,prefix:et,local:Te,uri:tt};et&&et!=="xmlns"&&!tt&&(Ce(X,"Unbound namespace prefix: "+(0,S.default)(et)),ze.uri=et),X.tag.attributes[Oe]=ze,Y(X,"onattribute",ze)}X.attribList.length=0}X.tag.isSelfClosing=!!J,X.sawRoot=!0,X.tags.push(X.tag),Y(X,"onopentag",X.tag),J||(!X.noscript&&X.tagName.toLowerCase()==="script"?X.state=j.SCRIPT:X.state=j.TEXT,X.tag=null,X.tagName=""),X.attribName=X.attribValue="",X.attribList.length=0}function Q(X){if(!X.tagName){Ce(X,"Weird empty close tag."),X.textNode+="</>",X.state=j.TEXT;return}if(X.script){if(X.tagName!=="script"){X.script+="</"+X.tagName+">",X.tagName="",X.state=j.SCRIPT;return}Y(X,"onscript",X.script),X.script=""}var J=X.tags.length,Ae=X.tagName;X.strict||(Ae=Ae[X.looseCase]());for(var he=Ae;J--;){var Me=X.tags[J];if(Me.name!==he)Ce(X,"Unexpected close tag");else break}if(J<0){Ce(X,"Unmatched closing tag: "+X.tagName),X.textNode+="</"+X.tagName+">",X.state=j.TEXT;return}X.tagName=Ae;for(var Ie=X.tags.length;Ie-- >J;){var oe=X.tag=X.tags.pop();X.tagName=X.tag.name,Y(X,"onclosetag",X.tagName);var pe={};for(var Oe in oe.ns)pe[Oe]=oe.ns[Oe];var Ye=X.tags[X.tags.length-1]||X;X.opt.xmlns&&oe.ns!==Ye.ns&&(0,a.default)(oe.ns).forEach(function(it){var et=oe.ns[it];Y(X,"onclosenamespace",{prefix:it,uri:et})})}J===0&&(X.closedRoot=!0),X.tagName=X.attribValue=X.attribName="",X.attribList.length=0,X.state=j.TEXT}function me(X){var J=X.entity,Ae=J.toLowerCase(),he,Me="";return X.ENTITIES[J]?X.ENTITIES[J]:X.ENTITIES[Ae]?X.ENTITIES[Ae]:(J=Ae,J.charAt(0)==="#"&&(J.charAt(1)==="x"?(J=J.slice(2),he=parseInt(J,16),Me=he.toString(16)):(J=J.slice(1),he=parseInt(J,10),Me=he.toString(10))),J=J.replace(/^0+/,""),isNaN(he)||Me.toLowerCase()!==J?(Ce(X,"Invalid character entity"),"&"+X.entity+";"):(0,T.default)(he))}function Je(X,J){J==="<"?(X.state=j.OPEN_WAKA,X.startTagPosition=X.position):B(J)||(Ce(X,"Non-whitespace before first tag."),X.textNode=J,X.state=j.TEXT)}function re(X,J){var Ae="";return J<X.length&&(Ae=X.charAt(J)),Ae}function G(X){var J=this;if(this.error)throw this.error;if(J.closed)return ie(J,"Cannot write after close. Assign an onready handler.");if(X===null)return we(J);(typeof X=="undefined"?"undefined":(0,f.default)(X))==="object"&&(X=X.toString());for(var Ae=0,he="";!(he=re(X,Ae++),J.c=he,!he);){J.trackPosition&&(J.position++,he===`
|
|
|
`?(J.line++,J.column=0):J.column++);switch(J.state){case j.BEGIN:if(J.state=j.BEGIN_WHITESPACE,he==="\uFEFF")continue;Je(J,he);continue;case j.BEGIN_WHITESPACE:Je(J,he);continue;case j.TEXT:if(J.sawRoot&&!J.closedRoot){for(var Me=Ae-1;he&&he!=="<"&&he!=="&";)he=re(X,Ae++),he&&J.trackPosition&&(J.position++,he===`
|
|
|
`?(J.line++,J.column=0):J.column++);J.textNode+=X.substring(Me,Ae-1)}he==="<"&&!(J.sawRoot&&J.closedRoot&&!J.strict)?(J.state=j.OPEN_WAKA,J.startTagPosition=J.position):(!B(he)&&(!J.sawRoot||J.closedRoot)&&Ce(J,"Text data outside of root node."),he==="&"?J.state=j.TEXT_ENTITY:J.textNode+=he);continue;case j.SCRIPT:he==="<"?J.state=j.SCRIPT_ENDING:J.script+=he;continue;case j.SCRIPT_ENDING:he==="/"?J.state=j.CLOSE_TAG:(J.script+="<"+he,J.state=j.SCRIPT);continue;case j.OPEN_WAKA:if(he==="!")J.state=j.SGML_DECL,J.sgmlDecl="";else if(!B(he))if(F(L,he))J.state=j.OPEN_TAG,J.tagName=he;else if(he==="/")J.state=j.CLOSE_TAG,J.tagName="";else if(he==="?")J.state=j.PROC_INST,J.procInstName=J.procInstBody="";else{if(Ce(J,"Unencoded <"),J.startTagPosition+1<J.position){var Ie=J.position-J.startTagPosition;he=new Array(Ie).join(" ")+he}J.textNode+="<"+he,J.state=j.TEXT}continue;case j.SGML_DECL:(J.sgmlDecl+he).toUpperCase()===C?(Y(J,"onopencdata"),J.state=j.CDATA,J.sgmlDecl="",J.cdata=""):J.sgmlDecl+he==="--"?(J.state=j.COMMENT,J.comment="",J.sgmlDecl=""):(J.sgmlDecl+he).toUpperCase()===w?(J.state=j.DOCTYPE,(J.doctype||J.sawRoot)&&Ce(J,"Inappropriately located doctype declaration"),J.doctype="",J.sgmlDecl=""):he===">"?(Y(J,"onsgmldeclaration",J.sgmlDecl),J.sgmlDecl="",J.state=j.TEXT):(M(he)&&(J.state=j.SGML_DECL_QUOTED),J.sgmlDecl+=he);continue;case j.SGML_DECL_QUOTED:he===J.q&&(J.state=j.SGML_DECL,J.q=""),J.sgmlDecl+=he;continue;case j.DOCTYPE:he===">"?(J.state=j.TEXT,Y(J,"ondoctype",J.doctype),J.doctype=!0):(J.doctype+=he,he==="["?J.state=j.DOCTYPE_DTD:M(he)&&(J.state=j.DOCTYPE_QUOTED,J.q=he));continue;case j.DOCTYPE_QUOTED:J.doctype+=he,he===J.q&&(J.q="",J.state=j.DOCTYPE);continue;case j.DOCTYPE_DTD:J.doctype+=he,he==="]"?J.state=j.DOCTYPE:M(he)&&(J.state=j.DOCTYPE_DTD_QUOTED,J.q=he);continue;case j.DOCTYPE_DTD_QUOTED:J.doctype+=he,he===J.q&&(J.state=j.DOCTYPE_DTD,J.q="");continue;case j.COMMENT:he==="-"?J.state=j.COMMENT_ENDING:J.comment+=he;continue;case j.COMMENT_ENDING:he==="-"?(J.state=j.COMMENT_ENDED,J.comment=fe(J.opt,J.comment),J.comment&&Y(J,"oncomment",J.comment),J.comment=""):(J.comment+="-"+he,J.state=j.COMMENT);continue;case j.COMMENT_ENDED:he!==">"?(Ce(J,"Malformed comment"),J.comment+="--"+he,J.state=j.COMMENT):J.state=j.TEXT;continue;case j.CDATA:he==="]"?J.state=j.CDATA_ENDING:J.cdata+=he;continue;case j.CDATA_ENDING:he==="]"?J.state=j.CDATA_ENDING_2:(J.cdata+="]"+he,J.state=j.CDATA);continue;case j.CDATA_ENDING_2:he===">"?(J.cdata&&Y(J,"oncdata",J.cdata),Y(J,"onclosecdata"),J.cdata="",J.state=j.TEXT):he==="]"?J.cdata+="]":(J.cdata+="]]"+he,J.state=j.CDATA);continue;case j.PROC_INST:he==="?"?J.state=j.PROC_INST_ENDING:B(he)?J.state=j.PROC_INST_BODY:J.procInstName+=he;continue;case j.PROC_INST_BODY:if(!J.procInstBody&&B(he))continue;he==="?"?J.state=j.PROC_INST_ENDING:J.procInstBody+=he;continue;case j.PROC_INST_ENDING:he===">"?(Y(J,"onprocessinginstruction",{name:J.procInstName,body:J.procInstBody}),J.procInstName=J.procInstBody="",J.state=j.TEXT):(J.procInstBody+="?"+he,J.state=j.PROC_INST_BODY);continue;case j.OPEN_TAG:F(D,he)?J.tagName+=he:(Le(J),he===">"?Pe(J):he==="/"?J.state=j.OPEN_TAG_SLASH:(B(he)||Ce(J,"Invalid character in tag name"),J.state=j.ATTRIB));continue;case j.OPEN_TAG_SLASH:he===">"?(Pe(J,!0),Q(J)):(Ce(J,"Forward-slash in opening tag not followed by >"),J.state=j.ATTRIB);continue;case j.ATTRIB:if(B(he))continue;he===">"?Pe(J):he==="/"?J.state=j.OPEN_TAG_SLASH:F(L,he)?(J.attribName=he,J.attribValue="",J.state=j.ATTRIB_NAME):Ce(J,"Invalid attribute name");continue;case j.ATTRIB_NAME:he==="="?J.state=j.ATTRIB_VALUE:he===">"?(Ce(J,"Attribute without value"),J.attribValue=J.attribName,ce(J),Pe(J)):B(he)?J.state=j.ATTRIB_NAME_SAW_WHITE:F(D,he)?J.attribName+=he:Ce(J,"Invalid attribute name");continue;case j.ATTRIB_NAME_SAW_WHITE:if(he==="=")J.state=j.ATTRIB_VALUE;else{if(B(he))continue;Ce(J,"Attribute without value"),J.tag.attributes[J.attribName]="",J.attribValue="",Y(J,"onattribute",{name:J.attribName,value:""}),J.attribName="",he===">"?Pe(J):F(L,he)?(J.attribName=he,J.state=j.ATTRIB_NAME):(Ce(J,"Invalid attribute name"),J.state=j.ATTRIB)}continue;case j.ATTRIB_VALUE:if(B(he))continue;M(he)?(J.q=he,J.state=j.ATTRIB_VALUE_QUOTED):(Ce(J,"Unquoted attribute value"),J.state=j.ATTRIB_VALUE_UNQUOTED,J.attribValue=he);continue;case j.ATTRIB_VALUE_QUOTED:if(he!==J.q){he==="&"?J.state=j.ATTRIB_VALUE_ENTITY_Q:J.attribValue+=he;continue}ce(J),J.q="",J.state=j.ATTRIB_VALUE_CLOSED;continue;case j.ATTRIB_VALUE_CLOSED:B(he)?J.state=j.ATTRIB:he===">"?Pe(J):he==="/"?J.state=j.OPEN_TAG_SLASH:F(L,he)?(Ce(J,"No whitespace between attributes"),J.attribName=he,J.attribValue="",J.state=j.ATTRIB_NAME):Ce(J,"Invalid attribute name");continue;case j.ATTRIB_VALUE_UNQUOTED:if(!H(he)){he==="&"?J.state=j.ATTRIB_VALUE_ENTITY_U:J.attribValue+=he;continue}ce(J),he===">"?Pe(J):J.state=j.ATTRIB;continue;case j.CLOSE_TAG:if(J.tagName)he===">"?Q(J):F(D,he)?J.tagName+=he:J.script?(J.script+="</"+J.tagName,J.tagName="",J.state=j.SCRIPT):(B(he)||Ce(J,"Invalid tagname in closing tag"),J.state=j.CLOSE_TAG_SAW_WHITE);else{if(B(he))continue;K(L,he)?J.script?(J.script+="</"+he,J.state=j.SCRIPT):Ce(J,"Invalid tagname in closing tag."):J.tagName=he}continue;case j.CLOSE_TAG_SAW_WHITE:if(B(he))continue;he===">"?Q(J):Ce(J,"Invalid characters in closing tag");continue;case j.TEXT_ENTITY:case j.ATTRIB_VALUE_ENTITY_Q:case j.ATTRIB_VALUE_ENTITY_U:var oe,pe;switch(J.state){case j.TEXT_ENTITY:oe=j.TEXT,pe="textNode";break;case j.ATTRIB_VALUE_ENTITY_Q:oe=j.ATTRIB_VALUE_QUOTED,pe="attribValue";break;case j.ATTRIB_VALUE_ENTITY_U:oe=j.ATTRIB_VALUE_UNQUOTED,pe="attribValue";break}he===";"?(J[pe]+=me(J),J.entity="",J.state=oe):F(J.entity.length?R:N,he)?J.entity+=he:(Ce(J,"Invalid character in entity name"),J[pe]+="&"+J.entity+he,J.entity="",J.state=oe);continue;default:throw new Error(J,"Unknown state: "+J.state)}}return J.position>=J.bufferCheckPosition&&u(J),J}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */T.default||function(){var X=String.fromCharCode,J=Math.floor,Ae=function(){var Me=16384,Ie=[],oe,pe,Oe=-1,Ye=arguments.length;if(!Ye)return"";for(var it="";++Oe<Ye;){var et=Number(arguments[Oe]);if(!isFinite(et)||et<0||et>1114111||J(et)!==et)throw RangeError("Invalid code point: "+et);et<=65535?Ie.push(et):(et-=65536,oe=(et>>10)+55296,pe=et%1024+56320,Ie.push(oe,pe)),(Oe+1===Ye||Ie.length>Me)&&(it+=X.apply(null,Ie),Ie.length=0)}return it};o.default?Object.defineProperty(String,"fromCodePoint",{value:Ae,configurable:!0,writable:!0}):String.fromCodePoint=Ae}()})(typeof d=="undefined"?(void 0).sax={}:d)}).call(this,U("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(U,P,d){P.exports=T;var O=U("events").EventEmitter,x=U("inherits");x(T,O),T.Readable=U("readable-stream/readable.js"),T.Writable=U("readable-stream/writable.js"),T.Duplex=U("readable-stream/duplex.js"),T.Transform=U("readable-stream/transform.js"),T.PassThrough=U("readable-stream/passthrough.js"),T.Stream=T;function T(){O.call(this)}T.prototype.pipe=function(v,S){var m=this;function f(s){v.writable&&(v.write(s)===!1&&m.pause&&m.pause())}m.on("data",f);function c(){m.readable&&m.resume&&m.resume()}v.on("drain",c),!v._isStdio&&(!S||S.end!==!1)&&(m.on("end",r),m.on("close",a));var o=!1;function r(){if(o)return;o=!0,v.end()}function a(){if(o)return;o=!0,typeof v.destroy=="function"&&v.destroy()}function n(s){if(e(),O.listenerCount(this,"error")===0)throw s}m.on("error",n),v.on("error",n);function e(){m.removeListener("data",f),v.removeListener("drain",c),m.removeListener("end",r),m.removeListener("close",a),m.removeListener("error",n),v.removeListener("error",n),m.removeListener("end",e),m.removeListener("close",e),v.removeListener("close",e)}return m.on("end",e),m.on("close",e),v.on("close",e),v.emit("pipe",m),v}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(U,P,d){(function(O){var x=U("./lib/request"),T=U("./lib/response"),v=U("xtend"),S=U("builtin-status-codes"),m=U("url"),f=d;f.request=function(c,o){typeof c=="string"?c=m.parse(c):c=v(c);var r=O.location.protocol.search(/^https?:$/)===-1?"http:":"",a=c.protocol||r,n=c.hostname||c.host,e=c.port,s=c.path||"/";n&&n.indexOf(":")!==-1&&(n="["+n+"]"),c.url=(n?a+"//"+n:"")+(e?":"+e:"")+s,c.method=(c.method||"GET").toUpperCase(),c.headers=c.headers||{};var t=new x(c);return o&&t.on("response",o),t},f.get=function(o,r){var a=f.request(o,r);return a.end(),a},f.ClientRequest=x,f.IncomingMessage=T.IncomingMessage,f.Agent=function(){},f.Agent.defaultMaxSockets=4,f.globalAgent=new f.Agent,f.STATUS_CODES=S,f.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(U,P,d){(function(O){"use strict";d.fetch=f(O.fetch)&&f(O.ReadableStream),d.writableStream=f(O.WritableStream),d.abortController=f(O.AbortController),d.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),d.blobConstructor=!0}catch(c){}var x;function T(){if(x!==void 0)return x;if(O.XMLHttpRequest){x=new O.XMLHttpRequest;try{x.open("GET",O.XDomainRequest?"/":"https://example.com")}catch(c){x=null}}else x=null;return x}function v(c){var o=T();if(!o)return!1;try{return o.responseType=c,o.responseType===c}catch(r){}return!1}var S=typeof O.ArrayBuffer!="undefined",m=S&&f(O.ArrayBuffer.prototype.slice);d.arraybuffer=d.fetch||S&&v("arraybuffer"),d.msstream=!d.fetch&&m&&v("ms-stream"),d.mozchunkedarraybuffer=!d.fetch&&S&&v("moz-chunked-arraybuffer"),d.overrideMimeType=d.fetch||(T()?f(T().overrideMimeType):!1),d.vbArray=f(O.VBArray);function f(c){return typeof c=="function"}x=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(U,P,d){(function(O,x,T){"use strict";var v=U("babel-runtime/core-js/object/keys"),S=m(v);function m(u){return u&&u.__esModule?u:{default:u}}var f=U("./capability"),c=U("inherits"),o=U("./response"),r=U("readable-stream"),a=U("to-arraybuffer"),n=o.IncomingMessage,e=o.readyStates;function s(u,h){return f.fetch&&h?"fetch":f.mozchunkedarraybuffer?"moz-chunked-arraybuffer":f.msstream?"ms-stream":f.arraybuffer&&u?"arraybuffer":f.vbArray&&u?"text:vbarray":"text"}var t=P.exports=function(u){var h=this;r.Writable.call(h),h._opts=u,h._body=[],h._headers={},u.auth&&h.setHeader("Authorization","Basic "+new T(u.auth).toString("base64")),(0,S.default)(u.headers).forEach(function(A){h.setHeader(A,u.headers[A])});var p,g=!0;if(u.mode==="disable-fetch"||"requestTimeout"in u&&!f.abortController)g=!1,p=!0;else if(u.mode==="prefer-streaming")p=!1;else if(u.mode==="allow-wrong-content-type")p=!f.overrideMimeType;else if(!u.mode||u.mode==="default"||u.mode==="prefer-fast")p=!0;else throw new Error("Invalid value for opts.mode");h._mode=s(p,g),h._fetchTimer=null,h.on("finish",function(){h._onFinish()})};c(t,r.Writable),t.prototype.setHeader=function(u,h){var p=this,g=u.toLowerCase();if(l.indexOf(g)!==-1)return;p._headers[g]={name:u,value:h}},t.prototype.getHeader=function(u){var h=this._headers[u.toLowerCase()];return h?h.value:null},t.prototype.removeHeader=function(u){var h=this;delete h._headers[u.toLowerCase()]},t.prototype._onFinish=function(){var u=this;if(u._destroyed)return;var h=u._opts,p=u._headers,g=null;h.method!=="GET"&&h.method!=="HEAD"&&(f.arraybuffer?g=a(T.concat(u._body)):f.blobConstructor?g=new x.Blob(u._body.map(function(b){return a(b)}),{type:(p["content-type"]||{}).value||""}):g=T.concat(u._body).toString());var A=[];if((0,S.default)(p).forEach(function(b){var I=p[b].name,_=p[b].value;Array.isArray(_)?_.forEach(function(L){A.push([I,L])}):A.push([I,_])}),u._mode==="fetch"){var y=null,E=null;if(f.abortController){var C=new AbortController;y=C.signal,u._fetchAbortController=C,"requestTimeout"in h&&h.requestTimeout!==0&&(u._fetchTimer=x.setTimeout(function(){u.emit("requestTimeout"),u._fetchAbortController&&u._fetchAbortController.abort()},h.requestTimeout))}x.fetch(u._opts.url,{method:u._opts.method,headers:A,body:g||void 0,mode:"cors",credentials:h.withCredentials?"include":"same-origin",signal:y}).then(function(b){u._fetchResponse=b,u._connect()},function(b){x.clearTimeout(u._fetchTimer),u._destroyed||u.emit("error",b)})}else{var w=u._xhr=new x.XMLHttpRequest;try{w.open(u._opts.method,u._opts.url,!0)}catch(b){O.nextTick(function(){u.emit("error",b)});return}"responseType"in w&&(w.responseType=u._mode.split(":")[0]),"withCredentials"in w&&(w.withCredentials=!!h.withCredentials),u._mode==="text"&&"overrideMimeType"in w&&w.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in h&&(w.timeout=h.requestTimeout,w.ontimeout=function(){u.emit("requestTimeout")}),A.forEach(function(b){w.setRequestHeader(b[0],b[1])}),u._response=null,w.onreadystatechange=function(){switch(w.readyState){case e.LOADING:case e.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(w.onprogress=function(){u._onXHRProgress()}),w.onerror=function(){if(u._destroyed)return;u.emit("error",new Error("XHR error"))};try{w.send(g)}catch(b){O.nextTick(function(){u.emit("error",b)});return}}};function i(u){try{var h=u.status;return h!==null&&h!==0}catch(p){return!1}}t.prototype._onXHRProgress=function(){var u=this;if(!i(u._xhr)||u._destroyed)return;u._response||u._connect(),u._response._onXHRProgress()},t.prototype._connect=function(){var u=this;if(u._destroyed)return;u._response=new n(u._xhr,u._fetchResponse,u._mode,u._fetchTimer),u._response.on("error",function(h){u.emit("error",h)}),u.emit("response",u._response)},t.prototype._write=function(u,h,p){var g=this;g._body.push(u),p()},t.prototype.abort=t.prototype.destroy=function(){var u=this;u._destroyed=!0,x.clearTimeout(u._fetchTimer),u._response&&(u._response._destroyed=!0),u._xhr?u._xhr.abort():u._fetchAbortController&&u._fetchAbortController.abort()},t.prototype.end=function(u,h,p){var g=this;typeof u=="function"&&(p=u,u=void 0),r.Writable.prototype.end.call(g,u,h,p)},t.prototype.flushHeaders=function(){},t.prototype.setTimeout=function(){},t.prototype.setNoDelay=function(){},t.prototype.setSocketKeepAlive=function(){};var l=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,U("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},U("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(U,P,d){(function(O,x,T){"use strict";var v=U("babel-runtime/core-js/promise"),S=m(v);function m(n){return n&&n.__esModule?n:{default:n}}var f=U("./capability"),c=U("inherits"),o=U("readable-stream"),r=d.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},a=d.IncomingMessage=function(n,e,s,t){var i=this;if(o.Readable.call(i),i._mode=s,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",function(){O.nextTick(function(){i.emit("close")})}),s==="fetch"){var l=function y(){h.read().then(function(E){if(i._destroyed)return;if(E.done){x.clearTimeout(t),i.push(null);return}i.push(new T(E.value)),y()}).catch(function(E){x.clearTimeout(t),i._destroyed||i.emit("error",E)})};if(i._fetchResponse=e,i.url=e.url,i.statusCode=e.status,i.statusMessage=e.statusText,e.headers.forEach(function(y,E){i.headers[E.toLowerCase()]=y,i.rawHeaders.push(E,y)}),f.writableStream){var u=new WritableStream({write:function(E){return new S.default(function(C,w){i._destroyed?w():i.push(new T(E))?C():i._resumeFetch=C})},close:function(){x.clearTimeout(t),i._destroyed||i.push(null)},abort:function(E){i._destroyed||i.emit("error",E)}});try{e.body.pipeTo(u).catch(function(y){x.clearTimeout(t),i._destroyed||i.emit("error",y)});return}catch(y){}}var h=e.body.getReader();l()}else{i._xhr=n,i._pos=0,i.url=n.responseURL,i.statusCode=n.status,i.statusMessage=n.statusText;var p=n.getAllResponseHeaders().split(/\r?\n/);if(p.forEach(function(y){var E=y.match(/^([^:]+):\s*(.*)/);if(E){var C=E[1].toLowerCase();C==="set-cookie"?(i.headers[C]===void 0&&(i.headers[C]=[]),i.headers[C].push(E[2])):i.headers[C]!==void 0?i.headers[C]+=", "+E[2]:i.headers[C]=E[2],i.rawHeaders.push(E[1],E[2])}}),i._charset="x-user-defined",!f.overrideMimeType){var g=i.rawHeaders["mime-type"];if(g){var A=g.match(/;\s*charset=([^;])(;|$)/);A&&(i._charset=A[1].toLowerCase())}i._charset||(i._charset="utf-8")}}};c(a,o.Readable),a.prototype._read=function(){var n=this,e=n._resumeFetch;e&&(n._resumeFetch=null,e())},a.prototype._onXHRProgress=function(){var n=this,e=n._xhr,s=null;switch(n._mode){case"text:vbarray":if(e.readyState!==r.DONE)break;try{s=new x.VBArray(e.responseBody).toArray()}catch(h){}if(s!==null){n.push(new T(s));break}case"text":try{s=e.responseText}catch(h){n._mode="text:vbarray";break}if(s.length>n._pos){var t=s.substr(n._pos);if(n._charset==="x-user-defined"){for(var i=new T(t.length),l=0;l<t.length;l++)i[l]=t.charCodeAt(l)&255;n.push(i)}else n.push(t,n._charset);n._pos=s.length}break;case"arraybuffer":if(e.readyState!==r.DONE||!e.response)break;s=e.response,n.push(new T(new Uint8Array(s)));break;case"moz-chunked-arraybuffer":if(s=e.response,e.readyState!==r.LOADING||!s)break;n.push(new T(new Uint8Array(s)));break;case"ms-stream":if(s=e.response,e.readyState!==r.LOADING)break;var u=new x.MSStreamReader;u.onprogress=function(){u.result.byteLength>n._pos&&(n.push(new T(new Uint8Array(u.result.slice(n._pos)))),n._pos=u.result.byteLength)},u.onload=function(){n.push(null)},u.readAsArrayBuffer(s);break}n._xhr.readyState===r.DONE&&n._mode!=="ms-stream"&&n.push(null)}}).call(this,U("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},U("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(U,P,d){"use strict";var O=U("safe-buffer").Buffer,x=O.isEncoding||function(u){u=""+u;switch(u&&u.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function T(u){if(!u)return"utf8";for(var h;;)switch(u){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return u;default:if(h)return;u=(""+u).toLowerCase(),h=!0}}function v(u){var h=T(u);if(typeof h!="string"&&(O.isEncoding===x||!x(u)))throw new Error("Unknown encoding: "+u);return h||u}d.StringDecoder=S;function S(u){this.encoding=v(u);var h;switch(this.encoding){case"utf16le":this.text=n,this.end=e,h=4;break;case"utf8":this.fillLast=o,h=4;break;case"base64":this.text=s,this.end=t,h=3;break;default:this.write=i,this.end=l;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=O.allocUnsafe(h)}S.prototype.write=function(u){if(u.length===0)return"";var h,p;if(this.lastNeed){if(h=this.fillLast(u),h===void 0)return"";p=this.lastNeed,this.lastNeed=0}else p=0;return p<u.length?h?h+this.text(u,p):this.text(u,p):h||""},S.prototype.end=a,S.prototype.text=r,S.prototype.fillLast=function(u){if(this.lastNeed<=u.length)return u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,u.length),this.lastNeed-=u.length};function m(u){return u<=127?0:u>>5===6?2:u>>4===14?3:u>>3===30?4:u>>6===2?-1:-2}function f(u,h,p){var g=h.length-1;if(g<p)return 0;var A=m(h[g]);return A>=0?(A>0&&(u.lastNeed=A-1),A):--g<p||A===-2?0:(A=m(h[g]),A>=0?(A>0&&(u.lastNeed=A-2),A):--g<p||A===-2?0:(A=m(h[g]),A>=0?(A>0&&(A===2?A=0:u.lastNeed=A-3),A):0))}function c(u,h,p){if((h[0]&192)!==128)return u.lastNeed=0,"\uFFFD";if(u.lastNeed>1&&h.length>1){if((h[1]&192)!==128)return u.lastNeed=1,"\uFFFD";if(u.lastNeed>2&&h.length>2&&(h[2]&192)!==128)return u.lastNeed=2,"\uFFFD"}}function o(u){var h=this.lastTotal-this.lastNeed,p=c(this,u,h);if(p!==void 0)return p;if(this.lastNeed<=u.length)return u.copy(this.lastChar,h,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,h,0,u.length),this.lastNeed-=u.length}function r(u,h){var p=f(this,u,h);if(!this.lastNeed)return u.toString("utf8",h);this.lastTotal=p;var g=u.length-(p-this.lastNeed);return u.copy(this.lastChar,0,g),u.toString("utf8",h,g)}function a(u){var h=u&&u.length?this.write(u):"";return this.lastNeed?h+"\uFFFD":h}function n(u,h){if((u.length-h)%2===0){var p=u.toString("utf16le",h);if(p){var g=p.charCodeAt(p.length-1);if(g>=55296&&g<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1],p.slice(0,-1)}return p}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=u[u.length-1],u.toString("utf16le",h,u.length-1)}function e(u){var h=u&&u.length?this.write(u):"";if(this.lastNeed){var p=this.lastTotal-this.lastNeed;return h+this.lastChar.toString("utf16le",0,p)}return h}function s(u,h){var p=(u.length-h)%3;return p===0?u.toString("base64",h):(this.lastNeed=3-p,this.lastTotal=3,p===1?this.lastChar[0]=u[u.length-1]:(this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1]),u.toString("base64",h,u.length-p))}function t(u){var h=u&&u.length?this.write(u):"";return this.lastNeed?h+this.lastChar.toString("base64",0,3-this.lastNeed):h}function i(u){return u.toString(this.encoding)}function l(u){return u&&u.length?this.write(u):""}},{"safe-buffer":228}],236:[function(U,P,d){(function(O,x){var T=U("process/browser.js").nextTick,v=Function.prototype.apply,S=Array.prototype.slice,m={},f=0;d.setTimeout=function(){return new c(v.call(setTimeout,window,arguments),clearTimeout)},d.setInterval=function(){return new c(v.call(setInterval,window,arguments),clearInterval)},d.clearTimeout=d.clearInterval=function(o){o.close()};function c(o,r){this._id=o,this._clearFn=r}c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},d.enroll=function(o,r){clearTimeout(o._idleTimeoutId),o._idleTimeout=r},d.unenroll=function(o){clearTimeout(o._idleTimeoutId),o._idleTimeout=-1},d._unrefActive=d.active=function(o){clearTimeout(o._idleTimeoutId);var r=o._idleTimeout;r>=0&&(o._idleTimeoutId=setTimeout(function(){o._onTimeout&&o._onTimeout()},r))},d.setImmediate=typeof O=="function"?O:function(o){var r=f++,a=arguments.length<2?!1:S.call(arguments,1);return m[r]=!0,T(function(){m[r]&&(a?o.apply(null,a):o.call(null),d.clearImmediate(r))}),r},d.clearImmediate=typeof x=="function"?x:function(o){delete m[o]}}).call(this,U("timers").setImmediate,U("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(U,P,d){var O=U("buffer").Buffer;P.exports=function(x){if(x instanceof Uint8Array){if(x.byteOffset===0&&x.byteLength===x.buffer.byteLength)return x.buffer;if(typeof x.buffer.slice=="function")return x.buffer.slice(x.byteOffset,x.byteOffset+x.byteLength)}if(O.isBuffer(x)){for(var T=new Uint8Array(x.length),v=x.length,S=0;S<v;S++)T[S]=x[S];return T.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(U,P,d){"use strict";var O=U("punycode"),x=U("./util");d.parse=h,d.resolve=g,d.resolveObject=A,d.format=p,d.Url=T;function T(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var v=/^([a-z0-9.+-]+:)/i,S=/:[0-9]*$/,m=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],c=["{","}","|","\\","^","`"].concat(f),o=["'"].concat(c),r=["%","/","?",";","#"].concat(o),a=["/","?","#"],n=255,e=/^[+a-z0-9A-Z_-]{0,63}$/,s=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,t={javascript:!0,"javascript:":!0},i={javascript:!0,"javascript:":!0},l={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},u=U("querystring");function h(y,E,C){if(y&&x.isObject(y)&&y instanceof T)return y;var w=new T;return w.parse(y,E,C),w}T.prototype.parse=function(y,E,C){if(!x.isString(y))throw new TypeError("Parameter 'url' must be a string, not "+typeof y);var w=y.indexOf("?"),b=w!==-1&&w<y.indexOf("#")?"?":"#",I=y.split(b),_=/\\/g;I[0]=I[0].replace(_,"/"),y=I.join(b);var L=y;if(L=L.trim(),!C&&y.split("#").length===1){var D=m.exec(L);if(D)return this.path=L,this.href=L,this.pathname=D[1],D[2]?(this.search=D[2],E?this.query=u.parse(this.search.substr(1)):this.query=this.search.substr(1)):E&&(this.search="",this.query={}),this}var N=v.exec(L);if(N){N=N[0];var R=N.toLowerCase();this.protocol=R,L=L.substr(N.length)}if(C||N||L.match(/^\/\/[^@\/]+@[^@\/]+/)){var B=L.substr(0,2)==="//";B&&!(N&&i[N])&&(L=L.substr(2),this.slashes=!0)}if(!i[N]&&(B||N&&!l[N])){for(var M=-1,H=0;H<a.length;H++){var F=L.indexOf(a[H]);F!==-1&&(M===-1||F<M)&&(M=F)}var K,j;M===-1?j=L.lastIndexOf("@"):j=L.lastIndexOf("@",M),j!==-1&&(K=L.slice(0,j),L=L.slice(j+1),this.auth=decodeURIComponent(K)),M=-1;for(var H=0;H<r.length;H++){var F=L.indexOf(r[H]);F!==-1&&(M===-1||F<M)&&(M=F)}M===-1&&(M=L.length),this.host=L.slice(0,M),L=L.slice(M),this.parseHost(),this.hostname=this.hostname||"";var V=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!V)for(var z=this.hostname.split(/\./),H=0,Y=z.length;H<Y;H++){var ee=z[H];if(!ee)continue;if(!ee.match(e)){for(var fe="",ie=0,we=ee.length;ie<we;ie++)ee.charCodeAt(ie)>127?fe+="x":fe+=ee[ie];if(!fe.match(e)){var Ce=z.slice(0,H),Le=z.slice(H+1),He=ee.match(s);He&&(Ce.push(He[1]),Le.unshift(He[2])),Le.length&&(L="/"+Le.join(".")+L),this.hostname=Ce.join(".");break}}}this.hostname.length>n?this.hostname="":this.hostname=this.hostname.toLowerCase(),V||(this.hostname=O.toASCII(this.hostname));var ce=this.port?":"+this.port:"",Pe=this.hostname||"";this.host=Pe+ce,this.href+=this.host,V&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),L[0]!=="/"&&(L="/"+L))}if(!t[R])for(var H=0,Y=o.length;H<Y;H++){var Q=o[H];if(L.indexOf(Q)===-1)continue;var me=encodeURIComponent(Q);me===Q&&(me=escape(Q)),L=L.split(Q).join(me)}var Je=L.indexOf("#");Je!==-1&&(this.hash=L.substr(Je),L=L.slice(0,Je));var re=L.indexOf("?");if(re!==-1?(this.search=L.substr(re),this.query=L.substr(re+1),E&&(this.query=u.parse(this.query)),L=L.slice(0,re)):E&&(this.search="",this.query={}),L&&(this.pathname=L),l[R]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var ce=this.pathname||"",G=this.search||"";this.path=ce+G}return this.href=this.format(),this};function p(y){return x.isString(y)&&(y=h(y)),y instanceof T?y.format():T.prototype.format.call(y)}T.prototype.format=function(){var y=this.auth||"";y&&(y=encodeURIComponent(y),y=y.replace(/%3A/i,":"),y+="@");var E=this.protocol||"",C=this.pathname||"",w=this.hash||"",b=!1,I="";this.host?b=y+this.host:this.hostname&&(b=y+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(b+=":"+this.port)),this.query&&x.isObject(this.query)&&Object.keys(this.query).length&&(I=u.stringify(this.query));var _=this.search||I&&"?"+I||"";return E&&E.substr(-1)!==":"&&(E+=":"),this.slashes||(!E||l[E])&&b!==!1?(b="//"+(b||""),C&&C.charAt(0)!=="/"&&(C="/"+C)):b||(b=""),w&&w.charAt(0)!=="#"&&(w="#"+w),_&&_.charAt(0)!=="?"&&(_="?"+_),C=C.replace(/[?#]/g,function(L){return encodeURIComponent(L)}),_=_.replace("#","%23"),E+b+C+_+w};function g(y,E){return h(y,!1,!0).resolve(E)}T.prototype.resolve=function(y){return this.resolveObject(h(y,!1,!0)).format()};function A(y,E){return y?h(y,!1,!0).resolveObject(E):E}T.prototype.resolveObject=function(y){if(x.isString(y)){var E=new T;E.parse(y,!1,!0),y=E}for(var C=new T,w=Object.keys(this),b=0;b<w.length;b++){var I=w[b];C[I]=this[I]}if(C.hash=y.hash,y.href==="")return C.href=C.format(),C;if(y.slashes&&!y.protocol){for(var _=Object.keys(y),L=0;L<_.length;L++){var D=_[L];D!=="protocol"&&(C[D]=y[D])}return l[C.protocol]&&C.hostname&&!C.pathname&&(C.path=C.pathname="/"),C.href=C.format(),C}if(y.protocol&&y.protocol!==C.protocol){if(!l[y.protocol]){for(var N=Object.keys(y),R=0;R<N.length;R++){var B=N[R];C[B]=y[B]}return C.href=C.format(),C}if(C.protocol=y.protocol,!y.host&&!i[y.protocol]){for(var Y=(y.pathname||"").split("/");Y.length&&!(y.host=Y.shift()););y.host||(y.host=""),y.hostname||(y.hostname=""),Y[0]!==""&&Y.unshift(""),Y.length<2&&Y.unshift(""),C.pathname=Y.join("/")}else C.pathname=y.pathname;if(C.search=y.search,C.query=y.query,C.host=y.host||"",C.auth=y.auth,C.hostname=y.hostname||y.host,C.port=y.port,C.pathname||C.search){var M=C.pathname||"",H=C.search||"";C.path=M+H}return C.slashes=C.slashes||y.slashes,C.href=C.format(),C}var F=C.pathname&&C.pathname.charAt(0)==="/",K=y.host||y.pathname&&y.pathname.charAt(0)==="/",j=K||F||C.host&&y.pathname,V=j,z=C.pathname&&C.pathname.split("/")||[],Y=y.pathname&&y.pathname.split("/")||[],ee=C.protocol&&!l[C.protocol];if(ee&&(C.hostname="",C.port=null,C.host&&(z[0]===""?z[0]=C.host:z.unshift(C.host)),C.host="",y.protocol&&(y.hostname=null,y.port=null,y.host&&(Y[0]===""?Y[0]=y.host:Y.unshift(y.host)),y.host=null),j=j&&(Y[0]===""||z[0]==="")),K)C.host=y.host||y.host===""?y.host:C.host,C.hostname=y.hostname||y.hostname===""?y.hostname:C.hostname,C.search=y.search,C.query=y.query,z=Y;else if(Y.length)z||(z=[]),z.pop(),z=z.concat(Y),C.search=y.search,C.query=y.query;else if(!x.isNullOrUndefined(y.search)){if(ee){C.hostname=C.host=z.shift();var fe=C.host&&C.host.indexOf("@")>0?C.host.split("@"):!1;fe&&(C.auth=fe.shift(),C.host=C.hostname=fe.shift())}return C.search=y.search,C.query=y.query,(!x.isNull(C.pathname)||!x.isNull(C.search))&&(C.path=(C.pathname?C.pathname:"")+(C.search?C.search:"")),C.href=C.format(),C}if(!z.length)return C.pathname=null,C.search?C.path="/"+C.search:C.path=null,C.href=C.format(),C;for(var ie=z.slice(-1)[0],we=(C.host||y.host||z.length>1)&&(ie==="."||ie==="..")||ie==="",Ce=0,Le=z.length;Le>=0;Le--)ie=z[Le],ie==="."?z.splice(Le,1):ie===".."?(z.splice(Le,1),Ce++):Ce&&(z.splice(Le,1),Ce--);if(!j&&!V)for(;Ce--;Ce)z.unshift("..");j&&z[0]!==""&&(!z[0]||z[0].charAt(0)!=="/")&&z.unshift(""),we&&z.join("/").substr(-1)!=="/"&&z.push("");var He=z[0]===""||z[0]&&z[0].charAt(0)==="/";if(ee){C.hostname=C.host=He?"":z.length?z.shift():"";var fe=C.host&&C.host.indexOf("@")>0?C.host.split("@"):!1;fe&&(C.auth=fe.shift(),C.host=C.hostname=fe.shift())}return j=j||C.host&&z.length,j&&!He&&z.unshift(""),z.length?C.pathname=z.join("/"):(C.pathname=null,C.path=null),(!x.isNull(C.pathname)||!x.isNull(C.search))&&(C.path=(C.pathname?C.pathname:"")+(C.search?C.search:"")),C.auth=y.auth||C.auth,C.slashes=C.slashes||y.slashes,C.href=C.format(),C},T.prototype.parseHost=function(){var y=this.host,E=S.exec(y);E&&(E=E[0],E!==":"&&(this.port=E.substr(1)),y=y.substr(0,y.length-E.length)),y&&(this.hostname=y)}},{"./util":239,punycode:209,querystring:212}],239:[function(U,P,d){"use strict";P.exports={isString:function(x){return typeof x=="string"},isObject:function(x){return typeof x=="object"&&x!==null},isNull:function(x){return x===null},isNullOrUndefined:function(x){return x==null}}},{}],240:[function(U,P,d){(function(O){P.exports=x;function x(v,S){if(T("noDeprecation"))return v;var m=!1;function f(){if(!m){if(T("throwDeprecation"))throw new Error(S);T("traceDeprecation")?console.trace(S):console.warn(S),m=!0}return v.apply(this,arguments)}return f}function T(v){try{if(!O.localStorage)return!1}catch(m){return!1}var S=O.localStorage[v];return S==null?!1:String(S).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(U,P,d){typeof Object.create=="function"?P.exports=function(x,T){x.super_=T,x.prototype=Object.create(T.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}})}:P.exports=function(x,T){x.super_=T;var v=function(){};v.prototype=T.prototype,x.prototype=new v,x.prototype.constructor=x}},{}],242:[function(U,P,d){P.exports=function(x){return x&&typeof x=="object"&&typeof x.copy=="function"&&typeof x.fill=="function"&&typeof x.readUInt8=="function"}},{}],243:[function(U,P,d){(function(O,x){var T=/%[sdj%]/g;d.format=function(M){if(!g(M)){for(var H=[],F=0;F<arguments.length;F++)H.push(m(arguments[F]));return H.join(" ")}for(var F=1,K=arguments,j=K.length,V=String(M).replace(T,function(Y){if(Y==="%%")return"%";if(F>=j)return Y;switch(Y){case"%s":return String(K[F++]);case"%d":return Number(K[F++]);case"%j":try{return JSON.stringify(K[F++])}catch(ee){return"[Circular]"}default:return Y}}),z=K[F];F<j;z=K[++F])u(z)||!C(z)?V+=" "+z:V+=" "+m(z);return V},d.deprecate=function(M,H){if(y(x.process))return function(){return d.deprecate(M,H).apply(this,arguments)};if(O.noDeprecation===!0)return M;var F=!1;function K(){if(!F){if(O.throwDeprecation)throw new Error(H);O.traceDeprecation?console.trace(H):console.error(H),F=!0}return M.apply(this,arguments)}return K};var v={},S;d.debuglog=function(M){if(y(S)&&(S=O.env.NODE_DEBUG||""),M=M.toUpperCase(),!v[M])if(new RegExp("\\b"+M+"\\b","i").test(S)){var H=O.pid;v[M]=function(){var F=d.format.apply(d,arguments);console.error("%s %d: %s",M,H,F)}}else v[M]=function(){};return v[M]};function m(M,H){var F={seen:[],stylize:c};return arguments.length>=3&&(F.depth=arguments[2]),arguments.length>=4&&(F.colors=arguments[3]),l(H)?F.showHidden=H:H&&d._extend(F,H),y(F.showHidden)&&(F.showHidden=!1),y(F.depth)&&(F.depth=2),y(F.colors)&&(F.colors=!1),y(F.customInspect)&&(F.customInspect=!0),F.colors&&(F.stylize=f),r(F,M,F.depth)}d.inspect=m,m.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},m.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function f(M,H){var F=m.styles[H];return F?"["+m.colors[F][0]+"m"+M+"["+m.colors[F][1]+"m":M}function c(M,H){return M}function o(M){var H={};return M.forEach(function(F,K){H[F]=!0}),H}function r(M,H,F){if(M.customInspect&&H&&I(H.inspect)&&H.inspect!==d.inspect&&!(H.constructor&&H.constructor.prototype===H)){var K=H.inspect(F,M);return g(K)||(K=r(M,K,F)),K}var j=a(M,H);if(j)return j;var V=Object.keys(H),z=o(V);if(M.showHidden&&(V=Object.getOwnPropertyNames(H)),b(H)&&(V.indexOf("message")>=0||V.indexOf("description")>=0))return n(H);if(V.length===0){if(I(H)){var Y=H.name?": "+H.name:"";return M.stylize("[Function"+Y+"]","special")}if(E(H))return M.stylize(RegExp.prototype.toString.call(H),"regexp");if(w(H))return M.stylize(Date.prototype.toString.call(H),"date");if(b(H))return n(H)}var ee="",fe=!1,ie=["{","}"];if(i(H)&&(fe=!0,ie=["[","]"]),I(H)){var we=H.name?": "+H.name:"";ee=" [Function"+we+"]"}if(E(H)&&(ee=" "+RegExp.prototype.toString.call(H)),w(H)&&(ee=" "+Date.prototype.toUTCString.call(H)),b(H)&&(ee=" "+n(H)),V.length===0&&(!fe||H.length==0))return ie[0]+ee+ie[1];if(F<0)return E(H)?M.stylize(RegExp.prototype.toString.call(H),"regexp"):M.stylize("[Object]","special");M.seen.push(H);var Ce;return fe?Ce=e(M,H,F,z,V):Ce=V.map(function(Le){return s(M,H,F,z,Le,fe)}),M.seen.pop(),t(Ce,ee,ie)}function a(M,H){if(y(H))return M.stylize("undefined","undefined");if(g(H)){var F="'"+JSON.stringify(H).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return M.stylize(F,"string")}if(p(H))return M.stylize(""+H,"number");if(l(H))return M.stylize(""+H,"boolean");if(u(H))return M.stylize("null","null")}function n(M){return"["+Error.prototype.toString.call(M)+"]"}function e(M,H,F,K,j){for(var V=[],z=0,Y=H.length;z<Y;++z)B(H,String(z))?V.push(s(M,H,F,K,String(z),!0)):V.push("");return j.forEach(function(ee){ee.match(/^\d+$/)||V.push(s(M,H,F,K,ee,!0))}),V}function s(M,H,F,K,j,V){var z,Y,ee;if(ee=Object.getOwnPropertyDescriptor(H,j)||{value:H[j]},ee.get?ee.set?Y=M.stylize("[Getter/Setter]","special"):Y=M.stylize("[Getter]","special"):ee.set&&(Y=M.stylize("[Setter]","special")),B(K,j)||(z="["+j+"]"),Y||(M.seen.indexOf(ee.value)<0?(u(F)?Y=r(M,ee.value,null):Y=r(M,ee.value,F-1),Y.indexOf(`
|
|
|
`)>-1&&(V?Y=Y.split(`
|
|
|
`).map(function(fe){return" "+fe}).join(`
|
|
|
`).substr(2):Y=`
|
|
|
`+Y.split(`
|
|
|
`).map(function(fe){return" "+fe}).join(`
|
|
|
`))):Y=M.stylize("[Circular]","special")),y(z)){if(V&&j.match(/^\d+$/))return Y;z=JSON.stringify(""+j),z.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(z=z.substr(1,z.length-2),z=M.stylize(z,"name")):(z=z.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),z=M.stylize(z,"string"))}return z+": "+Y}function t(M,H,F){var K=0,j=M.reduce(function(V,z){return K++,z.indexOf(`
|
|
|
`)>=0&&K++,V+z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return j>60?F[0]+(H===""?"":H+`
|
|
|
`)+" "+M.join(`,
|
|
|
`)+" "+F[1]:F[0]+H+" "+M.join(", ")+" "+F[1]}function i(M){return Array.isArray(M)}d.isArray=i;function l(M){return typeof M=="boolean"}d.isBoolean=l;function u(M){return M===null}d.isNull=u;function h(M){return M==null}d.isNullOrUndefined=h;function p(M){return typeof M=="number"}d.isNumber=p;function g(M){return typeof M=="string"}d.isString=g;function A(M){return typeof M=="symbol"}d.isSymbol=A;function y(M){return M===void 0}d.isUndefined=y;function E(M){return C(M)&&L(M)==="[object RegExp]"}d.isRegExp=E;function C(M){return typeof M=="object"&&M!==null}d.isObject=C;function w(M){return C(M)&&L(M)==="[object Date]"}d.isDate=w;function b(M){return C(M)&&(L(M)==="[object Error]"||M instanceof Error)}d.isError=b;function I(M){return typeof M=="function"}d.isFunction=I;function _(M){return M===null||typeof M=="boolean"||typeof M=="number"||typeof M=="string"||typeof M=="symbol"||typeof M=="undefined"}d.isPrimitive=_,d.isBuffer=U("./support/isBuffer");function L(M){return Object.prototype.toString.call(M)}function D(M){return M<10?"0"+M.toString(10):M.toString(10)}var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(){var M=new Date,H=[D(M.getHours()),D(M.getMinutes()),D(M.getSeconds())].join(":");return[M.getDate(),N[M.getMonth()],H].join(" ")}d.log=function(){console.log("%s - %s",R(),d.format.apply(d,arguments))},d.inherits=U("inherits"),d._extend=function(M,H){if(!H||!C(H))return M;for(var F=Object.keys(H),K=F.length;K--;)M[F[K]]=H[F[K]];return M};function B(M,H){return Object.prototype.hasOwnProperty.call(M,H)}}).call(this,U("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(U,P,d){"use strict";(function(){"use strict";d.stripBOM=function(O){return O[0]==="\uFEFF"?O.substring(1):O}}).call(void 0)},{}],245:[function(U,P,d){"use strict";var O=U("babel-runtime/helpers/typeof"),x=S(O),T=U("babel-runtime/core-js/object/keys"),v=S(T);function S(m){return m&&m.__esModule?m:{default:m}}(function(){"use strict";var m,f,c,o,r,a={}.hasOwnProperty;m=U("xmlbuilder"),f=U("./defaults").defaults,o=function(e){return typeof e=="string"&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)},r=function(e){return"<![CDATA["+c(e)+"]]>"},c=function(e){return e.replace("]]>","]]]]><![CDATA[>")},d.Builder=function(){function n(e){var s,t,i;this.options={},t=f["0.2"];for(s in t){if(!a.call(t,s))continue;i=t[s],this.options[s]=i}for(s in e){if(!a.call(e,s))continue;i=e[s],this.options[s]=i}}return n.prototype.buildObject=function(e){var s,t,i,l,u;return s=this.options.attrkey,t=this.options.charkey,(0,v.default)(e).length===1&&this.options.rootName===f["0.2"].rootName?(u=(0,v.default)(e)[0],e=e[u]):u=this.options.rootName,i=function(h){return function(p,g){var A,y,E,C,w,b;if((typeof g=="undefined"?"undefined":(0,x.default)(g))!=="object")h.options.cdata&&o(g)?p.raw(r(g)):p.txt(g);else if(Array.isArray(g))for(C in g){if(!a.call(g,C))continue;y=g[C];for(w in y)E=y[w],p=i(p.ele(w),E).up()}else for(w in g){if(!a.call(g,w))continue;if(y=g[w],w===s){if((typeof y=="undefined"?"undefined":(0,x.default)(y))==="object")for(A in y)b=y[A],p=p.att(A,b)}else if(w===t)h.options.cdata&&o(y)?p=p.raw(r(y)):p=p.txt(y);else if(Array.isArray(y))for(C in y){if(!a.call(y,C))continue;E=y[C],typeof E=="string"?h.options.cdata&&o(E)?p=p.ele(w).raw(r(E)).up():p=p.ele(w,E).up():p=i(p.ele(w),E).up()}else(typeof y=="undefined"?"undefined":(0,x.default)(y))==="object"?p=i(p.ele(w),y).up():typeof y=="string"&&h.options.cdata&&o(y)?p=p.ele(w).raw(r(y)).up():(y==null&&(y=""),p=p.ele(w,y.toString()).up())}return p}}(this),l=m.create(u,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),i(l,e).end(this.options.renderOpts)},n}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(U,P,d){"use strict";(function(){d.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
|
|
|
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],247:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/promise"),x=o(O),T=U("babel-runtime/core-js/object/get-own-property-names"),v=o(T),S=U("babel-runtime/core-js/object/keys"),m=o(S),f=U("babel-runtime/helpers/typeof"),c=o(f);function o(r){return r&&r.__esModule?r:{default:r}}(function(){"use strict";var r,a,n,e,s,t,i,l,u=function(A,y){return function(){return A.apply(y,arguments)}},h=function(A,y){for(var E in y)p.call(y,E)&&(A[E]=y[E]);function C(){this.constructor=A}return C.prototype=y.prototype,A.prototype=new C,A.__super__=y.prototype,A},p={}.hasOwnProperty;i=U("sax"),n=U("events"),r=U("./bom"),t=U("./processors"),l=U("timers").setImmediate,a=U("./defaults").defaults,e=function(A){return(typeof A=="undefined"?"undefined":(0,c.default)(A))==="object"&&A!=null&&(0,m.default)(A).length===0},s=function(A,y,E){var C,w,b;for(C=0,w=A.length;C<w;C++)b=A[C],y=b(y,E);return y},d.Parser=function(g){h(A,g);function A(y){this.parseStringPromise=u(this.parseStringPromise,this),this.parseString=u(this.parseString,this),this.reset=u(this.reset,this),this.assignOrPush=u(this.assignOrPush,this),this.processAsync=u(this.processAsync,this);var E,C,w;if(!(this instanceof d.Parser))return new d.Parser(y);this.options={},C=a["0.2"];for(E in C){if(!p.call(C,E))continue;w=C[E],this.options[E]=w}for(E in y){if(!p.call(y,E))continue;w=y[E],this.options[E]=w}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(t.normalize)),this.reset()}return A.prototype.processAsync=function(){var y,E;try{return this.remaining.length<=this.options.chunkSize?(y=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(y),this.saxParser.close()):(y=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(y),l(this.processAsync))}catch(C){if(E=C,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(E)}},A.prototype.assignOrPush=function(y,E,C){return E in y?(y[E]instanceof Array||(y[E]=[y[E]]),y[E].push(C)):this.options.explicitArray?y[E]=[C]:y[E]=C},A.prototype.reset=function(){var y,E,C,w;return this.removeAllListeners(),this.saxParser=i.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(b){return function(I){if(b.saxParser.resume(),!b.saxParser.errThrown)return b.saxParser.errThrown=!0,b.emit("error",I)}}(this),this.saxParser.onend=function(b){return function(){if(!b.saxParser.ended)return b.saxParser.ended=!0,b.emit("end",b.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,w=[],y=this.options.attrkey,E=this.options.charkey,this.saxParser.onopentag=function(b){return function(I){var _,L,D,N,R;if(D={},D[E]="",!b.options.ignoreAttrs){R=I.attributes;for(_ in R){if(!p.call(R,_))continue;!(y in D)&&!b.options.mergeAttrs&&(D[y]={}),L=b.options.attrValueProcessors?s(b.options.attrValueProcessors,I.attributes[_],_):I.attributes[_],N=b.options.attrNameProcessors?s(b.options.attrNameProcessors,_):_,b.options.mergeAttrs?b.assignOrPush(D,N,L):D[y][N]=L}}return D["#name"]=b.options.tagNameProcessors?s(b.options.tagNameProcessors,I.name):I.name,b.options.xmlns&&(D[b.options.xmlnskey]={uri:I.uri,local:I.local}),w.push(D)}}(this),this.saxParser.onclosetag=function(b){return function(){var I,_,L,D,N,R,B,M,H,F;if(R=w.pop(),N=R["#name"],(!b.options.explicitChildren||!b.options.preserveChildrenOrder)&&delete R["#name"],R.cdata===!0&&(I=R.cdata,delete R.cdata),H=w[w.length-1],R[E].match(/^\s*$/)&&!I?(_=R[E],delete R[E]):(b.options.trim&&(R[E]=R[E].trim()),b.options.normalize&&(R[E]=R[E].replace(/\s{2,}/g," ").trim()),R[E]=b.options.valueProcessors?s(b.options.valueProcessors,R[E],N):R[E],(0,m.default)(R).length===1&&E in R&&!b.EXPLICIT_CHARKEY&&(R=R[E])),e(R)&&(R=b.options.emptyTag!==""?b.options.emptyTag:_),b.options.validator!=null&&(F="/"+function(){var K,j,V;for(V=[],K=0,j=w.length;K<j;K++)D=w[K],V.push(D["#name"]);return V}().concat(N).join("/"),function(){var K;try{return R=b.options.validator(F,H&&H[N],R)}catch(j){return K=j,b.emit("error",K)}}()),b.options.explicitChildren&&!b.options.mergeAttrs&&(typeof R=="undefined"?"undefined":(0,c.default)(R))==="object"){if(!b.options.preserveChildrenOrder)D={},b.options.attrkey in R&&(D[b.options.attrkey]=R[b.options.attrkey],delete R[b.options.attrkey]),!b.options.charsAsChildren&&b.options.charkey in R&&(D[b.options.charkey]=R[b.options.charkey],delete R[b.options.charkey]),(0,v.default)(R).length>0&&(D[b.options.childkey]=R),R=D;else if(H){H[b.options.childkey]=H[b.options.childkey]||[],B={};for(L in R){if(!p.call(R,L))continue;B[L]=R[L]}H[b.options.childkey].push(B),delete R["#name"],(0,m.default)(R).length===1&&E in R&&!b.EXPLICIT_CHARKEY&&(R=R[E])}}return w.length>0?b.assignOrPush(H,N,R):(b.options.explicitRoot&&(M=R,R={},R[N]=M),b.resultObject=R,b.saxParser.ended=!0,b.emit("end",b.resultObject))}}(this),C=function(b){return function(I){var _,L;if(L=w[w.length-1],L)return L[E]+=I,b.options.explicitChildren&&b.options.preserveChildrenOrder&&b.options.charsAsChildren&&(b.options.includeWhiteChars||I.replace(/\\n/g,"").trim()!=="")&&(L[b.options.childkey]=L[b.options.childkey]||[],_={"#name":"__text__"},_[E]=I,b.options.normalize&&(_[E]=_[E].replace(/\s{2,}/g," ").trim()),L[b.options.childkey].push(_)),L}}(this),this.saxParser.ontext=C,this.saxParser.oncdata=function(b){return function(I){var _;if(_=C(I),_)return _.cdata=!0}}(this)},A.prototype.parseString=function(y,E){var C;E!=null&&typeof E=="function"&&(this.on("end",function(w){return this.reset(),E(null,w)}),this.on("error",function(w){return this.reset(),E(w)}));try{return y=y.toString(),y.trim()===""?(this.emit("end",null),!0):(y=r.stripBOM(y),this.options.async?(this.remaining=y,l(this.processAsync),this.saxParser):this.saxParser.write(y).close())}catch(w){if(C=w,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw C}else return this.emit("error",C),this.saxParser.errThrown=!0}},A.prototype.parseStringPromise=function(y){return new x.default(function(E){return function(C,w){return E.parseString(y,function(b,I){return b?w(b):C(I)})}}(this))},A}(n),d.parseString=function(g,A,y){var E,C,w;return y!=null?(typeof y=="function"&&(E=y),(typeof A=="undefined"?"undefined":(0,c.default)(A))==="object"&&(C=A)):(typeof A=="function"&&(E=A),C={}),w=new d.Parser(C),w.parseString(g,E)},d.parseStringPromise=function(g,A){var y,E;return(typeof A=="undefined"?"undefined":(0,c.default)(A))==="object"&&(y=A),E=new d.Parser(y),E.parseStringPromise(g)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(U,P,d){"use strict";(function(){"use strict";var O;O=new RegExp(/(?!xmlns)^.*:/),d.normalize=function(x){return x.toLowerCase()},d.firstCharLowerCase=function(x){return x.charAt(0).toLowerCase()+x.slice(1)},d.stripPrefix=function(x){return x.replace(O,"")},d.parseNumbers=function(x){return isNaN(x)||(x=x%1===0?parseInt(x,10):parseFloat(x)),x},d.parseBooleans=function(x){return/^(?:true|false)$/i.test(x)&&(x=x.toLowerCase()==="true"),x}}).call(void 0)},{}],249:[function(U,P,d){"use strict";(function(){"use strict";var O,x,T,v,S=function(c,o){for(var r in o)m.call(o,r)&&(c[r]=o[r]);function a(){this.constructor=c}return a.prototype=o.prototype,c.prototype=new a,c.__super__=o.prototype,c},m={}.hasOwnProperty;x=U("./defaults"),O=U("./builder"),T=U("./parser"),v=U("./processors"),d.defaults=x.defaults,d.processors=v,d.ValidationError=function(f){S(c,f);function c(o){this.message=o}return c}(Error),d.Builder=O.Builder,d.Parser=T.Parser,d.parseString=T.parseString,d.parseStringPromise=T.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(U,P,d){"use strict";(function(){P.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(U,P,d){"use strict";(function(){P.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(void 0)},{}],252:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/object/get-prototype-of"),x=f(O),T=U("babel-runtime/helpers/typeof"),v=f(T),S=U("babel-runtime/core-js/object/assign"),m=f(S);function f(c){return c&&c.__esModule?c:{default:c}}(function(){var c,o,r,a,n,e,s,t=[].slice,i={}.hasOwnProperty;c=function(){var u,h,p,g,A,y;if(y=arguments[0],A=2<=arguments.length?t.call(arguments,1):[],n(m.default))m.default.apply(null,arguments);else for(u=0,p=A.length;u<p;u++)if(g=A[u],g!=null)for(h in g){if(!i.call(g,h))continue;y[h]=g[h]}return y},n=function(u){return!!u&&Object.prototype.toString.call(u)==="[object Function]"},e=function(u){var h;return!!u&&((h=typeof u=="undefined"?"undefined":(0,v.default)(u))==="function"||h==="object")},r=function(u){return n(Array.isArray)?Array.isArray(u):Object.prototype.toString.call(u)==="[object Array]"},a=function(u){var h;if(r(u))return!u.length;for(h in u){if(!i.call(u,h))continue;return!1}return!0},s=function(u){var h,p;return e(u)&&(p=(0,x.default)(u))&&(h=p.constructor)&&typeof h=="function"&&h instanceof h&&Function.prototype.toString.call(h)===Function.prototype.toString.call(Object)},o=function(u){return n(u.valueOf)?u.valueOf():u},P.exports.assign=c,P.exports.isFunction=n,P.exports.isObject=e,P.exports.isArray=r,P.exports.isEmpty=a,P.exports.isPlainObject=s,P.exports.getValue=o}).call(void 0)},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/get-prototype-of":59,"babel-runtime/helpers/typeof":67}],253:[function(U,P,d){"use strict";(function(){P.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/object/create"),x=T(O);function T(v){return v&&v.__esModule?v:{default:v}}(function(){var v,S,m;v=U("./NodeType"),m=U("./XMLNode"),P.exports=S=function(){function f(c,o,r){if(this.parent=c,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),o==null)throw new Error("Missing attribute name. "+this.debugInfo(o));this.name=this.stringify.name(o),this.value=this.stringify.attValue(r),this.type=v.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(f.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(f.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(f.prototype,"textContent",{get:function(){return this.value},set:function(o){return this.value=o||""}}),Object.defineProperty(f.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(f.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(f.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(f.prototype,"specified",{get:function(){return!0}}),f.prototype.clone=function(){return(0,x.default)(this)},f.prototype.toString=function(c){return this.options.writer.attribute(this,this.options.writer.filterOptions(c))},f.prototype.debugInfo=function(c){return c=c||this.name,c==null?"parent: <"+this.parent.name+">":"attribute: {"+c+"}, parent: <"+this.parent.name+">"},f.prototype.isEqualNode=function(c){return c.namespaceURI!==this.namespaceURI||(c.prefix!==this.prefix||c.localName!==this.localName)?!1:!(c.value!==this.value)},f}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/object/create"),x=T(O);function T(v){return v&&v.__esModule?v:{default:v}}(function(){var v,S,m,f=function(r,a){for(var n in a)c.call(a,n)&&(r[n]=a[n]);function e(){this.constructor=r}return e.prototype=a.prototype,r.prototype=new e,r.__super__=a.prototype,r},c={}.hasOwnProperty;v=U("./NodeType"),m=U("./XMLCharacterData"),P.exports=S=function(o){f(r,o);function r(a,n){if(r.__super__.constructor.call(this,a),n==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=v.CData,this.value=this.stringify.cdata(n)}return r.prototype.clone=function(){return(0,x.default)(this)},r.prototype.toString=function(a){return this.options.writer.cdata(this,this.options.writer.filterOptions(a))},r}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/object/create"),x=T(O);function T(v){return v&&v.__esModule?v:{default:v}}(function(){var v,S,m=function(o,r){for(var a in r)f.call(r,a)&&(o[a]=r[a]);function n(){this.constructor=o}return n.prototype=r.prototype,o.prototype=new n,o.__super__=r.prototype,o},f={}.hasOwnProperty;S=U("./XMLNode"),P.exports=v=function(c){m(o,c);function o(r){o.__super__.constructor.call(this,r),this.value=""}return Object.defineProperty(o.prototype,"data",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(o.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(o.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),o.prototype.clone=function(){return(0,x.default)(this)},o.prototype.substringData=function(r,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.appendData=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.insertData=function(r,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.deleteData=function(r,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.replaceData=function(r,a,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.isEqualNode=function(r){return o.__super__.isEqualNode.apply(this,arguments).isEqualNode(r)?!(r.data!==this.data):!1},o}(S)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/object/create"),x=T(O);function T(v){return v&&v.__esModule?v:{default:v}}(function(){var v,S,m,f=function(r,a){for(var n in a)c.call(a,n)&&(r[n]=a[n]);function e(){this.constructor=r}return e.prototype=a.prototype,r.prototype=new e,r.__super__=a.prototype,r},c={}.hasOwnProperty;v=U("./NodeType"),S=U("./XMLCharacterData"),P.exports=m=function(o){f(r,o);function r(a,n){if(r.__super__.constructor.call(this,a),n==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=v.Comment,this.value=this.stringify.comment(n)}return r.prototype.clone=function(){return(0,x.default)(this)},r.prototype.toString=function(a){return this.options.writer.comment(this,this.options.writer.filterOptions(a))},r}(S)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/object/keys"),x=S(O),T=U("babel-runtime/core-js/object/create"),v=S(T);function S(m){return m&&m.__esModule?m:{default:m}}(function(){var m,f,c;f=U("./XMLDOMErrorHandler"),c=U("./XMLDOMStringList"),P.exports=m=function(){function o(){var r;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new f,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=r=(0,v.default)(this.defaultParams)}return Object.defineProperty(o.prototype,"parameterNames",{get:function(){return new c((0,x.default)(this.defaultParams))}}),o.prototype.getParameter=function(r){return this.params.hasOwnProperty(r)?this.params[r]:null},o.prototype.canSetParameter=function(r,a){return!0},o.prototype.setParameter=function(r,a){return a!=null?this.params[r]=a:delete this.params[r]},o}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(U,P,d){"use strict";(function(){var O;P.exports=O=function(){function x(){}return x.prototype.handleError=function(T){throw new Error(T)},x}()}).call(void 0)},{}],260:[function(U,P,d){"use strict";(function(){var O;P.exports=O=function(){function x(){}return x.prototype.hasFeature=function(T,v){return!0},x.prototype.createDocumentType=function(T,v,S){throw new Error("This DOM method is not implemented.")},x.prototype.createDocument=function(T,v,S){throw new Error("This DOM method is not implemented.")},x.prototype.createHTMLDocument=function(T){throw new Error("This DOM method is not implemented.")},x.prototype.getFeature=function(T,v){throw new Error("This DOM method is not implemented.")},x}()}).call(void 0)},{}],261:[function(U,P,d){"use strict";(function(){var O;P.exports=O=function(){function x(T){this.arr=T||[]}return Object.defineProperty(x.prototype,"length",{get:function(){return this.arr.length}}),x.prototype.item=function(T){return this.arr[T]||null},x.prototype.contains=function(T){return this.arr.indexOf(T)!==-1},x}()}).call(void 0)},{}],262:[function(U,P,d){"use strict";(function(){var O,x,T,v=function(f,c){for(var o in c)S.call(c,o)&&(f[o]=c[o]);function r(){this.constructor=f}return r.prototype=c.prototype,f.prototype=new r,f.__super__=c.prototype,f},S={}.hasOwnProperty;T=U("./XMLNode"),O=U("./NodeType"),P.exports=x=function(m){v(f,m);function f(c,o,r,a,n,e){if(f.__super__.constructor.call(this,c),o==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(r==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(o));if(!a)throw new Error("Missing DTD attribute type. "+this.debugInfo(o));if(!n)throw new Error("Missing DTD attribute default. "+this.debugInfo(o));if(n.indexOf("#")!==0&&(n="#"+n),!n.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(o));if(e&&!n.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(o));this.elementName=this.stringify.name(o),this.type=O.AttributeDeclaration,this.attributeName=this.stringify.name(r),this.attributeType=this.stringify.dtdAttType(a),e&&(this.defaultValue=this.stringify.dtdAttDefault(e)),this.defaultValueType=n}return f.prototype.toString=function(c){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(c))},f}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(U,P,d){"use strict";(function(){var O,x,T,v=function(f,c){for(var o in c)S.call(c,o)&&(f[o]=c[o]);function r(){this.constructor=f}return r.prototype=c.prototype,f.prototype=new r,f.__super__=c.prototype,f},S={}.hasOwnProperty;T=U("./XMLNode"),O=U("./NodeType"),P.exports=x=function(m){v(f,m);function f(c,o,r){if(f.__super__.constructor.call(this,c),o==null)throw new Error("Missing DTD element name. "+this.debugInfo());r||(r="(#PCDATA)"),Array.isArray(r)&&(r="("+r.join(",")+")"),this.name=this.stringify.name(o),this.type=O.ElementDeclaration,this.value=this.stringify.dtdElementValue(r)}return f.prototype.toString=function(c){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(c))},f}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(U,P,d){"use strict";(function(){var O,x,T,v,S=function(c,o){for(var r in o)m.call(o,r)&&(c[r]=o[r]);function a(){this.constructor=c}return a.prototype=o.prototype,c.prototype=new a,c.__super__=o.prototype,c},m={}.hasOwnProperty;v=U("./Utility").isObject,T=U("./XMLNode"),O=U("./NodeType"),P.exports=x=function(f){S(c,f);function c(o,r,a,n){if(c.__super__.constructor.call(this,o),a==null)throw new Error("Missing DTD entity name. "+this.debugInfo(a));if(n==null)throw new Error("Missing DTD entity value. "+this.debugInfo(a));if(this.pe=!!r,this.name=this.stringify.name(a),this.type=O.EntityDeclaration,!v(n))this.value=this.stringify.dtdEntityValue(n),this.internal=!0;else{if(!n.pubID&&!n.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(a));if(n.pubID&&!n.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(a));if(this.internal=!1,n.pubID!=null&&(this.pubID=this.stringify.dtdPubID(n.pubID)),n.sysID!=null&&(this.sysID=this.stringify.dtdSysID(n.sysID)),n.nData!=null&&(this.nData=this.stringify.dtdNData(n.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(a))}}return Object.defineProperty(c.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(c.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(c.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return null}}),c.prototype.toString=function(o){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(o))},c}(T)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(U,P,d){"use strict";(function(){var O,x,T,v=function(f,c){for(var o in c)S.call(c,o)&&(f[o]=c[o]);function r(){this.constructor=f}return r.prototype=c.prototype,f.prototype=new r,f.__super__=c.prototype,f},S={}.hasOwnProperty;T=U("./XMLNode"),O=U("./NodeType"),P.exports=x=function(m){v(f,m);function f(c,o,r){if(f.__super__.constructor.call(this,c),o==null)throw new Error("Missing DTD notation name. "+this.debugInfo(o));if(!r.pubID&&!r.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(o));this.name=this.stringify.name(o),this.type=O.NotationDeclaration,r.pubID!=null&&(this.pubID=this.stringify.dtdPubID(r.pubID)),r.sysID!=null&&(this.sysID=this.stringify.dtdSysID(r.sysID))}return Object.defineProperty(f.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(f.prototype,"systemId",{get:function(){return this.sysID}}),f.prototype.toString=function(c){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(c))},f}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(U,P,d){"use strict";(function(){var O,x,T,v,S=function(c,o){for(var r in o)m.call(o,r)&&(c[r]=o[r]);function a(){this.constructor=c}return a.prototype=o.prototype,c.prototype=new a,c.__super__=o.prototype,c},m={}.hasOwnProperty;v=U("./Utility").isObject,T=U("./XMLNode"),O=U("./NodeType"),P.exports=x=function(f){S(c,f);function c(o,r,a,n){var e;c.__super__.constructor.call(this,o),v(r)&&(e=r,r=e.version,a=e.encoding,n=e.standalone),r||(r="1.0"),this.type=O.Declaration,this.version=this.stringify.xmlVersion(r),a!=null&&(this.encoding=this.stringify.xmlEncoding(a)),n!=null&&(this.standalone=this.stringify.xmlStandalone(n))}return c.prototype.toString=function(o){return this.options.writer.declaration(this,this.options.writer.filterOptions(o))},c}(T)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(U,P,d){"use strict";(function(){var O,x,T,v,S,m,f,c,o,r=function(e,s){for(var t in s)a.call(s,t)&&(e[t]=s[t]);function i(){this.constructor=e}return i.prototype=s.prototype,e.prototype=new i,e.__super__=s.prototype,e},a={}.hasOwnProperty;o=U("./Utility").isObject,c=U("./XMLNode"),O=U("./NodeType"),x=U("./XMLDTDAttList"),v=U("./XMLDTDEntity"),T=U("./XMLDTDElement"),S=U("./XMLDTDNotation"),f=U("./XMLNamedNodeMap"),P.exports=m=function(n){r(e,n);function e(s,t,i){var l,u,h,p,g,A;if(e.__super__.constructor.call(this,s),this.type=O.DocType,s.children){for(p=s.children,u=0,h=p.length;u<h;u++)if(l=p[u],l.type===O.Element){this.name=l.name;break}}this.documentObject=s,o(t)&&(g=t,t=g.pubID,i=g.sysID),i==null&&(A=[t,i],i=A[0],t=A[1]),t!=null&&(this.pubID=this.stringify.dtdPubID(t)),i!=null&&(this.sysID=this.stringify.dtdSysID(i))}return Object.defineProperty(e.prototype,"entities",{get:function(){var t,i,l,u,h;for(u={},h=this.children,i=0,l=h.length;i<l;i++)t=h[i],t.type===O.EntityDeclaration&&!t.pe&&(u[t.name]=t);return new f(u)}}),Object.defineProperty(e.prototype,"notations",{get:function(){var t,i,l,u,h;for(u={},h=this.children,i=0,l=h.length;i<l;i++)t=h[i],t.type===O.NotationDeclaration&&(u[t.name]=t);return new f(u)}}),Object.defineProperty(e.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(e.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(e.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),e.prototype.element=function(s,t){var i;return i=new T(this,s,t),this.children.push(i),this},e.prototype.attList=function(s,t,i,l,u){var h;return h=new x(this,s,t,i,l,u),this.children.push(h),this},e.prototype.entity=function(s,t){var i;return i=new v(this,!1,s,t),this.children.push(i),this},e.prototype.pEntity=function(s,t){var i;return i=new v(this,!0,s,t),this.children.push(i),this},e.prototype.notation=function(s,t){var i;return i=new S(this,s,t),this.children.push(i),this},e.prototype.toString=function(s){return this.options.writer.docType(this,this.options.writer.filterOptions(s))},e.prototype.ele=function(s,t){return this.element(s,t)},e.prototype.att=function(s,t,i,l,u){return this.attList(s,t,i,l,u)},e.prototype.ent=function(s,t){return this.entity(s,t)},e.prototype.pent=function(s,t){return this.pEntity(s,t)},e.prototype.not=function(s,t){return this.notation(s,t)},e.prototype.up=function(){return this.root()||this.documentObject},e.prototype.isEqualNode=function(s){return e.__super__.isEqualNode.apply(this,arguments).isEqualNode(s)?s.name!==this.name||s.publicId!==this.publicId?!1:!(s.systemId!==this.systemId):!1},e}(c)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(U,P,d){"use strict";(function(){var O,x,T,v,S,m,f,c,o=function(n,e){for(var s in e)r.call(e,s)&&(n[s]=e[s]);function t(){this.constructor=n}return t.prototype=e.prototype,n.prototype=new t,n.__super__=e.prototype,n},r={}.hasOwnProperty;c=U("./Utility").isPlainObject,T=U("./XMLDOMImplementation"),x=U("./XMLDOMConfiguration"),S=U("./XMLNode"),O=U("./NodeType"),f=U("./XMLStringifier"),m=U("./XMLStringWriter"),P.exports=v=function(a){o(n,a);function n(e){n.__super__.constructor.call(this,null),this.name="#document",this.type=O.Document,this.documentURI=null,this.domConfig=new x,e||(e={}),e.writer||(e.writer=new m),this.options=e,this.stringify=new f(e)}return Object.defineProperty(n.prototype,"implementation",{value:new T}),Object.defineProperty(n.prototype,"doctype",{get:function(){var s,t,i,l;for(l=this.children,t=0,i=l.length;t<i;t++)if(s=l[t],s.type===O.DocType)return s;return null}}),Object.defineProperty(n.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(n.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(n.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(n.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===O.Declaration?this.children[0].encoding:null}}),Object.defineProperty(n.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===O.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(n.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===O.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(n.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(n.prototype,"origin",{get:function(){return null}}),Object.defineProperty(n.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(n.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(n.prototype,"contentType",{get:function(){return null}}),n.prototype.end=function(e){var s;return s={},e?c(e)&&(s=e,e=this.options.writer):e=this.options.writer,e.document(this,e.filterOptions(s))},n.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))},n.prototype.createElement=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createTextNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createComment=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createCDATASection=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createProcessingInstruction=function(e,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createAttribute=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createEntityReference=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.importNode=function(e,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createElementNS=function(e,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createAttributeNS=function(e,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementsByTagNameNS=function(e,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementById=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.adoptNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.renameNode=function(e,s,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createEvent=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createNodeIterator=function(e,s,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createTreeWalker=function(e,s,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n}(S)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(U,P,d){"use strict";(function(){var O,x,T,v,S,m,f,c,o,r,a,n,e,s,t,i,l,u,h,p,g,A,y,E,C={}.hasOwnProperty;E=U("./Utility"),A=E.isObject,g=E.isFunction,y=E.isPlainObject,p=E.getValue,O=U("./NodeType"),n=U("./XMLDocument"),s=U("./XMLElement"),v=U("./XMLCData"),S=U("./XMLComment"),i=U("./XMLRaw"),h=U("./XMLText"),t=U("./XMLProcessingInstruction"),r=U("./XMLDeclaration"),a=U("./XMLDocType"),m=U("./XMLDTDAttList"),c=U("./XMLDTDEntity"),f=U("./XMLDTDElement"),o=U("./XMLDTDNotation"),T=U("./XMLAttribute"),u=U("./XMLStringifier"),l=U("./XMLStringWriter"),x=U("./WriterState"),P.exports=e=function(){function w(b,I,_){var L;this.name="?xml",this.type=O.Document,b||(b={}),L={},b.writer?y(b.writer)&&(L=b.writer,b.writer=new l):b.writer=new l,this.options=b,this.writer=b.writer,this.writerOptions=this.writer.filterOptions(L),this.stringify=new u(b),this.onDataCallback=I||function(){},this.onEndCallback=_||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return w.prototype.createChildNode=function(b){var I,_,L,D,N,R,B,M;switch(b.type){case O.CData:this.cdata(b.value);break;case O.Comment:this.comment(b.value);break;case O.Element:L={},B=b.attribs;for(_ in B){if(!C.call(B,_))continue;I=B[_],L[_]=I.value}this.node(b.name,L);break;case O.Dummy:this.dummy();break;case O.Raw:this.raw(b.value);break;case O.Text:this.text(b.value);break;case O.ProcessingInstruction:this.instruction(b.target,b.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+b.constructor.name)}for(M=b.children,N=0,R=M.length;N<R;N++)D=M[N],this.createChildNode(D),D.type===O.Element&&this.up();return this},w.prototype.dummy=function(){return this},w.prototype.node=function(b,I,_){var L;if(b==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(b));return this.openCurrent(),b=p(b),I==null&&(I={}),I=p(I),A(I)||(L=[I,_],_=L[0],I=L[1]),this.currentNode=new s(this,b,I),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,_!=null&&this.text(_),this},w.prototype.element=function(b,I,_){var L,D,N,R,B,M;if(this.currentNode&&this.currentNode.type===O.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(b)||A(b)||g(b))for(R=this.options.noValidation,this.options.noValidation=!0,M=new n(this.options).element("TEMP_ROOT"),M.element(b),this.options.noValidation=R,B=M.children,D=0,N=B.length;D<N;D++)L=B[D],this.createChildNode(L),L.type===O.Element&&this.up();else this.node(b,I,_);return this},w.prototype.attribute=function(b,I){var _,L;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(b));if(b!=null&&(b=p(b)),A(b))for(_ in b){if(!C.call(b,_))continue;L=b[_],this.attribute(_,L)}else g(I)&&(I=I.apply()),this.options.keepNullAttributes&&I==null?this.currentNode.attribs[b]=new T(this,b,""):I!=null&&(this.currentNode.attribs[b]=new T(this,b,I));return this},w.prototype.text=function(b){var I;return this.openCurrent(),I=new h(this,b),this.onData(this.writer.text(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.cdata=function(b){var I;return this.openCurrent(),I=new v(this,b),this.onData(this.writer.cdata(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.comment=function(b){var I;return this.openCurrent(),I=new S(this,b),this.onData(this.writer.comment(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.raw=function(b){var I;return this.openCurrent(),I=new i(this,b),this.onData(this.writer.raw(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.instruction=function(b,I){var _,L,D,N,R;if(this.openCurrent(),b!=null&&(b=p(b)),I!=null&&(I=p(I)),Array.isArray(b))for(_=0,N=b.length;_<N;_++)L=b[_],this.instruction(L);else if(A(b))for(L in b){if(!C.call(b,L))continue;D=b[L],this.instruction(L,D)}else g(I)&&(I=I.apply()),R=new t(this,b,I),this.onData(this.writer.processingInstruction(R,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},w.prototype.declaration=function(b,I,_){var L;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return L=new r(this,b,I,_),this.onData(this.writer.declaration(L,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.doctype=function(b,I,_){if(this.openCurrent(),b==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new a(this,I,_),this.currentNode.rootNodeName=b,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},w.prototype.dtdElement=function(b,I){var _;return this.openCurrent(),_=new f(this,b,I),this.onData(this.writer.dtdElement(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.attList=function(b,I,_,L,D){var N;return this.openCurrent(),N=new m(this,b,I,_,L,D),this.onData(this.writer.dtdAttList(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.entity=function(b,I){var _;return this.openCurrent(),_=new c(this,!1,b,I),this.onData(this.writer.dtdEntity(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.pEntity=function(b,I){var _;return this.openCurrent(),_=new c(this,!0,b,I),this.onData(this.writer.dtdEntity(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.notation=function(b,I){var _;return this.openCurrent(),_=new o(this,b,I),this.onData(this.writer.dtdNotation(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},w.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},w.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},w.prototype.openNode=function(b){var I,_,L,D;if(!b.isOpen){if(!this.root&&this.currentLevel===0&&b.type===O.Element&&(this.root=b),_="",b.type===O.Element){this.writerOptions.state=x.OpenTag,_=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<"+b.name,D=b.attribs;for(L in D){if(!C.call(D,L))continue;I=D[L],_+=this.writer.attribute(I,this.writerOptions,this.currentLevel)}_+=(b.children?">":"/>")+this.writer.endline(b,this.writerOptions,this.currentLevel),this.writerOptions.state=x.InsideTag}else this.writerOptions.state=x.OpenTag,_=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+b.rootNodeName,b.pubID&&b.sysID?_+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"':b.sysID&&(_+=' SYSTEM "'+b.sysID+'"'),b.children?(_+=" [",this.writerOptions.state=x.InsideTag):(this.writerOptions.state=x.CloseTag,_+=">"),_+=this.writer.endline(b,this.writerOptions,this.currentLevel);return this.onData(_,this.currentLevel),b.isOpen=!0}},w.prototype.closeNode=function(b){var I;if(!b.isClosed)return I="",this.writerOptions.state=x.CloseTag,b.type===O.Element?I=this.writer.indent(b,this.writerOptions,this.currentLevel)+"</"+b.name+">"+this.writer.endline(b,this.writerOptions,this.currentLevel):I=this.writer.indent(b,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(b,this.writerOptions,this.currentLevel),this.writerOptions.state=x.None,this.onData(I,this.currentLevel),b.isClosed=!0},w.prototype.onData=function(b,I){return this.documentStarted=!0,this.onDataCallback(b,I+1)},w.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},w.prototype.debugInfo=function(b){return b==null?"":"node: <"+b+">"},w.prototype.ele=function(){return this.element.apply(this,arguments)},w.prototype.nod=function(b,I,_){return this.node(b,I,_)},w.prototype.txt=function(b){return this.text(b)},w.prototype.dat=function(b){return this.cdata(b)},w.prototype.com=function(b){return this.comment(b)},w.prototype.ins=function(b,I){return this.instruction(b,I)},w.prototype.dec=function(b,I,_){return this.declaration(b,I,_)},w.prototype.dtd=function(b,I,_){return this.doctype(b,I,_)},w.prototype.e=function(b,I,_){return this.element(b,I,_)},w.prototype.n=function(b,I,_){return this.node(b,I,_)},w.prototype.t=function(b){return this.text(b)},w.prototype.d=function(b){return this.cdata(b)},w.prototype.c=function(b){return this.comment(b)},w.prototype.r=function(b){return this.raw(b)},w.prototype.i=function(b,I){return this.instruction(b,I)},w.prototype.att=function(){return this.currentNode&&this.currentNode.type===O.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},w.prototype.a=function(){return this.currentNode&&this.currentNode.type===O.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},w.prototype.ent=function(b,I){return this.entity(b,I)},w.prototype.pent=function(b,I){return this.pEntity(b,I)},w.prototype.not=function(b,I){return this.notation(b,I)},w}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/object/create"),x=T(O);function T(v){return v&&v.__esModule?v:{default:v}}(function(){var v,S,m,f=function(r,a){for(var n in a)c.call(a,n)&&(r[n]=a[n]);function e(){this.constructor=r}return e.prototype=a.prototype,r.prototype=new e,r.__super__=a.prototype,r},c={}.hasOwnProperty;m=U("./XMLNode"),v=U("./NodeType"),P.exports=S=function(o){f(r,o);function r(a){r.__super__.constructor.call(this,a),this.type=v.Dummy}return r.prototype.clone=function(){return(0,x.default)(this)},r.prototype.toString=function(a){return""},r}(m)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/object/create"),x=T(O);function T(v){return v&&v.__esModule?v:{default:v}}(function(){var v,S,m,f,c,o,r,a,n,e=function(i,l){for(var u in l)s.call(l,u)&&(i[u]=l[u]);function h(){this.constructor=i}return h.prototype=l.prototype,i.prototype=new h,i.__super__=l.prototype,i},s={}.hasOwnProperty;n=U("./Utility"),a=n.isObject,r=n.isFunction,o=n.getValue,c=U("./XMLNode"),v=U("./NodeType"),S=U("./XMLAttribute"),f=U("./XMLNamedNodeMap"),P.exports=m=function(t){e(i,t);function i(l,u,h){var p,g,A,y;if(i.__super__.constructor.call(this,l),u==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(u),this.type=v.Element,this.attribs={},this.schemaTypeInfo=null,h!=null&&this.attribute(h),l.type===v.Document&&(this.isRoot=!0,this.documentObject=l,l.rootObject=this,l.children)){for(y=l.children,g=0,A=y.length;g<A;g++)if(p=y[g],p.type===v.DocType){p.name=this.name;break}}}return Object.defineProperty(i.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(i.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(i.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new f(this.attribs)),this.attributeMap}}),i.prototype.clone=function(){var l,u,h,p;h=(0,x.default)(this),h.isRoot&&(h.documentObject=null),h.attribs={},p=this.attribs;for(u in p){if(!s.call(p,u))continue;l=p[u],h.attribs[u]=l.clone()}return h.children=[],this.children.forEach(function(g){var A;return A=g.clone(),A.parent=h,h.children.push(A)}),h},i.prototype.attribute=function(l,u){var h,p;if(l!=null&&(l=o(l)),a(l))for(h in l){if(!s.call(l,h))continue;p=l[h],this.attribute(h,p)}else r(u)&&(u=u.apply()),this.options.keepNullAttributes&&u==null?this.attribs[l]=new S(this,l,""):u!=null&&(this.attribs[l]=new S(this,l,u));return this},i.prototype.removeAttribute=function(l){var u,h,p;if(l==null)throw new Error("Missing attribute name. "+this.debugInfo());if(l=o(l),Array.isArray(l))for(h=0,p=l.length;h<p;h++)u=l[h],delete this.attribs[u];else delete this.attribs[l];return this},i.prototype.toString=function(l){return this.options.writer.element(this,this.options.writer.filterOptions(l))},i.prototype.att=function(l,u){return this.attribute(l,u)},i.prototype.a=function(l,u){return this.attribute(l,u)},i.prototype.getAttribute=function(l){return this.attribs.hasOwnProperty(l)?this.attribs[l].value:null},i.prototype.setAttribute=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getAttributeNode=function(l){return this.attribs.hasOwnProperty(l)?this.attribs[l]:null},i.prototype.setAttributeNode=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.removeAttributeNode=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByTagName=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getAttributeNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.setAttributeNS=function(l,u,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.removeAttributeNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getAttributeNodeNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.setAttributeNodeNS=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByTagNameNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.hasAttribute=function(l){return this.attribs.hasOwnProperty(l)},i.prototype.hasAttributeNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.setIdAttribute=function(l,u){return this.attribs.hasOwnProperty(l)?this.attribs[l].isId:u},i.prototype.setIdAttributeNS=function(l,u,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.setIdAttributeNode=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByTagName=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByTagNameNS=function(l,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByClassName=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.isEqualNode=function(l){var u,h,p;if(!i.__super__.isEqualNode.apply(this,arguments).isEqualNode(l))return!1;if(l.namespaceURI!==this.namespaceURI)return!1;if(l.prefix!==this.prefix)return!1;if(l.localName!==this.localName)return!1;if(l.attribs.length!==this.attribs.length)return!1;for(u=h=0,p=this.attribs.length-1;0<=p?h<=p:h>=p;u=0<=p?++h:--h)if(!this.attribs[u].isEqualNode(l.attribs[u]))return!1;return!0},i}(c)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/object/keys"),x=T(O);function T(v){return v&&v.__esModule?v:{default:v}}(function(){var v;P.exports=v=function(){function S(m){this.nodes=m}return Object.defineProperty(S.prototype,"length",{get:function(){return(0,x.default)(this.nodes).length||0}}),S.prototype.clone=function(){return this.nodes=null},S.prototype.getNamedItem=function(m){return this.nodes[m]},S.prototype.setNamedItem=function(m){var f;return f=this.nodes[m.nodeName],this.nodes[m.nodeName]=m,f||null},S.prototype.removeNamedItem=function(m){var f;return f=this.nodes[m],delete this.nodes[m],f||null},S.prototype.item=function(m){return this.nodes[(0,x.default)(this.nodes)[m]]||null},S.prototype.getNamedItemNS=function(m,f){throw new Error("This DOM method is not implemented.")},S.prototype.setNamedItemNS=function(m){throw new Error("This DOM method is not implemented.")},S.prototype.removeNamedItemNS=function(m,f){throw new Error("This DOM method is not implemented.")},S}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(U,P,d){"use strict";(function(){var O,x,T,v,S,m,f,c,o,r,a,n,e,s,t,i,l,u,h,p={}.hasOwnProperty;h=U("./Utility"),u=h.isObject,l=h.isFunction,i=h.isEmpty,t=h.getValue,c=null,T=null,v=null,S=null,m=null,e=null,s=null,n=null,f=null,x=null,a=null,o=null,O=null,P.exports=r=function(){function g(A){this.parent=A,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,c||(c=U("./XMLElement"),T=U("./XMLCData"),v=U("./XMLComment"),S=U("./XMLDeclaration"),m=U("./XMLDocType"),e=U("./XMLRaw"),s=U("./XMLText"),n=U("./XMLProcessingInstruction"),f=U("./XMLDummy"),x=U("./NodeType"),a=U("./XMLNodeList"),o=U("./XMLNamedNodeMap"),O=U("./DocumentPosition"))}return Object.defineProperty(g.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(g.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(g.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(g.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(g.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new a(this.children)),this.childNodeList}}),Object.defineProperty(g.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(g.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(g.prototype,"previousSibling",{get:function(){var y;return y=this.parent.children.indexOf(this),this.parent.children[y-1]||null}}),Object.defineProperty(g.prototype,"nextSibling",{get:function(){var y;return y=this.parent.children.indexOf(this),this.parent.children[y+1]||null}}),Object.defineProperty(g.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(g.prototype,"textContent",{get:function(){var y,E,C,w,b;if(this.nodeType===x.Element||this.nodeType===x.DocumentFragment){for(b="",w=this.children,E=0,C=w.length;E<C;E++)y=w[E],y.textContent&&(b+=y.textContent);return b}else return null},set:function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),g.prototype.setParent=function(A){var y,E,C,w,b;for(this.parent=A,A&&(this.options=A.options,this.stringify=A.stringify),w=this.children,b=[],E=0,C=w.length;E<C;E++)y=w[E],b.push(y.setParent(this));return b},g.prototype.element=function(A,y,E){var C,w,b,I,_,L,D,N,R,B,M;if(L=null,y===null&&E==null&&(R=[{},null],y=R[0],E=R[1]),y==null&&(y={}),y=t(y),u(y)||(B=[y,E],E=B[0],y=B[1]),A!=null&&(A=t(A)),Array.isArray(A))for(b=0,D=A.length;b<D;b++)w=A[b],L=this.element(w);else if(l(A))L=this.element(A.apply());else if(u(A))for(_ in A){if(!p.call(A,_))continue;if(M=A[_],l(M)&&(M=M.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&_.indexOf(this.stringify.convertAttKey)===0)L=this.attribute(_.substr(this.stringify.convertAttKey.length),M);else if(!this.options.separateArrayItems&&Array.isArray(M)&&i(M))L=this.dummy();else if(u(M)&&i(M))L=this.element(_);else if(!this.options.keepNullNodes&&M==null)L=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(M))for(I=0,N=M.length;I<N;I++)w=M[I],C={},C[_]=w,L=this.element(C);else u(M)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&_.indexOf(this.stringify.convertTextKey)===0?L=this.element(M):(L=this.element(_),L.element(M)):L=this.element(_,M)}else!this.options.keepNullNodes&&E===null?L=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&A.indexOf(this.stringify.convertTextKey)===0?L=this.text(E):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&A.indexOf(this.stringify.convertCDataKey)===0?L=this.cdata(E):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&A.indexOf(this.stringify.convertCommentKey)===0?L=this.comment(E):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&A.indexOf(this.stringify.convertRawKey)===0?L=this.raw(E):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&A.indexOf(this.stringify.convertPIKey)===0?L=this.instruction(A.substr(this.stringify.convertPIKey.length),E):L=this.node(A,y,E);if(L==null)throw new Error("Could not create any elements with: "+A+". "+this.debugInfo());return L},g.prototype.insertBefore=function(A,y,E){var C,w,b,I,_;if(A!=null?A.type:void 0)return b=A,I=y,b.setParent(this),I?(w=children.indexOf(I),_=children.splice(w),children.push(b),Array.prototype.push.apply(children,_)):children.push(b),b;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(A));return w=this.parent.children.indexOf(this),_=this.parent.children.splice(w),C=this.parent.element(A,y,E),Array.prototype.push.apply(this.parent.children,_),C},g.prototype.insertAfter=function(A,y,E){var C,w,b;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(A));return w=this.parent.children.indexOf(this),b=this.parent.children.splice(w+1),C=this.parent.element(A,y,E),Array.prototype.push.apply(this.parent.children,b),C},g.prototype.remove=function(){var A,y;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return A=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[A,A-A+1].concat(y=[])),this.parent},g.prototype.node=function(A,y,E){var C,w;return A!=null&&(A=t(A)),y||(y={}),y=t(y),u(y)||(w=[y,E],E=w[0],y=w[1]),C=new c(this,A,y),E!=null&&C.text(E),this.children.push(C),C},g.prototype.text=function(A){var y;return u(A)&&this.element(A),y=new s(this,A),this.children.push(y),this},g.prototype.cdata=function(A){var y;return y=new T(this,A),this.children.push(y),this},g.prototype.comment=function(A){var y;return y=new v(this,A),this.children.push(y),this},g.prototype.commentBefore=function(A){var y,E,C;return E=this.parent.children.indexOf(this),C=this.parent.children.splice(E),y=this.parent.comment(A),Array.prototype.push.apply(this.parent.children,C),this},g.prototype.commentAfter=function(A){var y,E,C;return E=this.parent.children.indexOf(this),C=this.parent.children.splice(E+1),y=this.parent.comment(A),Array.prototype.push.apply(this.parent.children,C),this},g.prototype.raw=function(A){var y;return y=new e(this,A),this.children.push(y),this},g.prototype.dummy=function(){var A;return A=new f(this),A},g.prototype.instruction=function(A,y){var E,C,w,b,I;if(A!=null&&(A=t(A)),y!=null&&(y=t(y)),Array.isArray(A))for(b=0,I=A.length;b<I;b++)E=A[b],this.instruction(E);else if(u(A))for(E in A){if(!p.call(A,E))continue;C=A[E],this.instruction(E,C)}else l(y)&&(y=y.apply()),w=new n(this,A,y),this.children.push(w);return this},g.prototype.instructionBefore=function(A,y){var E,C,w;return C=this.parent.children.indexOf(this),w=this.parent.children.splice(C),E=this.parent.instruction(A,y),Array.prototype.push.apply(this.parent.children,w),this},g.prototype.instructionAfter=function(A,y){var E,C,w;return C=this.parent.children.indexOf(this),w=this.parent.children.splice(C+1),E=this.parent.instruction(A,y),Array.prototype.push.apply(this.parent.children,w),this},g.prototype.declaration=function(A,y,E){var C,w;return C=this.document(),w=new S(C,A,y,E),C.children.length===0?C.children.unshift(w):C.children[0].type===x.Declaration?C.children[0]=w:C.children.unshift(w),C.root()||C},g.prototype.dtd=function(A,y){var E,C,w,b,I,_,L,D,N,R;for(C=this.document(),w=new m(C,A,y),N=C.children,b=I=0,L=N.length;I<L;b=++I)if(E=N[b],E.type===x.DocType)return C.children[b]=w,w;for(R=C.children,b=_=0,D=R.length;_<D;b=++_)if(E=R[b],E.isRoot)return C.children.splice(b,0,w),w;return C.children.push(w),w},g.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},g.prototype.root=function(){var A;for(A=this;A;){if(A.type===x.Document)return A.rootObject;if(A.isRoot)return A;A=A.parent}},g.prototype.document=function(){var A;for(A=this;A;){if(A.type===x.Document)return A;A=A.parent}},g.prototype.end=function(A){return this.document().end(A)},g.prototype.prev=function(){var A;if(A=this.parent.children.indexOf(this),A<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[A-1]},g.prototype.next=function(){var A;if(A=this.parent.children.indexOf(this),A===-1||A===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[A+1]},g.prototype.importDocument=function(A){var y;return y=A.root().clone(),y.parent=this,y.isRoot=!1,this.children.push(y),this},g.prototype.debugInfo=function(A){var y,E;return A=A||this.name,A==null&&!((y=this.parent)!=null?y.name:void 0)?"":A==null?"parent: <"+this.parent.name+">":((E=this.parent)!=null?E.name:void 0)?"node: <"+A+">, parent: <"+this.parent.name+">":"node: <"+A+">"},g.prototype.ele=function(A,y,E){return this.element(A,y,E)},g.prototype.nod=function(A,y,E){return this.node(A,y,E)},g.prototype.txt=function(A){return this.text(A)},g.prototype.dat=function(A){return this.cdata(A)},g.prototype.com=function(A){return this.comment(A)},g.prototype.ins=function(A,y){return this.instruction(A,y)},g.prototype.doc=function(){return this.document()},g.prototype.dec=function(A,y,E){return this.declaration(A,y,E)},g.prototype.e=function(A,y,E){return this.element(A,y,E)},g.prototype.n=function(A,y,E){return this.node(A,y,E)},g.prototype.t=function(A){return this.text(A)},g.prototype.d=function(A){return this.cdata(A)},g.prototype.c=function(A){return this.comment(A)},g.prototype.r=function(A){return this.raw(A)},g.prototype.i=function(A,y){return this.instruction(A,y)},g.prototype.u=function(){return this.up()},g.prototype.importXMLBuilder=function(A){return this.importDocument(A)},g.prototype.replaceChild=function(A,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.removeChild=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.appendChild=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.hasChildNodes=function(){return this.children.length!==0},g.prototype.cloneNode=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isSupported=function(A,y){return!0},g.prototype.hasAttributes=function(){return this.attribs.length!==0},g.prototype.compareDocumentPosition=function(A){var y,E;return y=this,y===A?0:this.document()!==A.document()?(E=O.Disconnected|O.ImplementationSpecific,Math.random()<.5?E|=O.Preceding:E|=O.Following,E):y.isAncestor(A)?O.Contains|O.Preceding:y.isDescendant(A)?O.Contains|O.Following:y.isPreceding(A)?O.Preceding:O.Following},g.prototype.isSameNode=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.lookupPrefix=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isDefaultNamespace=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.lookupNamespaceURI=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isEqualNode=function(A){var y,E,C;if(A.nodeType!==this.nodeType)return!1;if(A.children.length!==this.children.length)return!1;for(y=E=0,C=this.children.length-1;0<=C?E<=C:E>=C;y=0<=C?++E:--E)if(!this.children[y].isEqualNode(A.children[y]))return!1;return!0},g.prototype.getFeature=function(A,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.setUserData=function(A,y,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getUserData=function(A){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.contains=function(A){return A?A===this||this.isDescendant(A):!1},g.prototype.isDescendant=function(A){var y,E,C,w,b;for(b=this.children,C=0,w=b.length;C<w;C++){if(y=b[C],A===y)return!0;if(E=y.isDescendant(A),E)return!0}return!1},g.prototype.isAncestor=function(A){return A.isDescendant(this)},g.prototype.isPreceding=function(A){var y,E;return y=this.treePosition(A),E=this.treePosition(this),y===-1||E===-1?!1:y<E},g.prototype.isFollowing=function(A){var y,E;return y=this.treePosition(A),E=this.treePosition(this),y===-1||E===-1?!1:y>E},g.prototype.treePosition=function(A){var y,E;return E=0,y=!1,this.foreachTreeNode(this.document(),function(C){if(E++,!y&&C===A)return y=!0}),y?E:-1},g.prototype.foreachTreeNode=function(A,y){var E,C,w,b,I;for(A||(A=this.document()),b=A.children,C=0,w=b.length;C<w;C++){if(E=b[C],I=y(E))return I;if(I=this.foreachTreeNode(E,y),I)return I}},g}()}).call(void 0)},{"./DocumentPosition":250,"./NodeType":251,"./Utility":252,"./XMLCData":255,"./XMLComment":257,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLNamedNodeMap":272,"./XMLNodeList":274,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],274:[function(U,P,d){"use strict";(function(){var O;P.exports=O=function(){function x(T){this.nodes=T}return Object.defineProperty(x.prototype,"length",{get:function(){return this.nodes.length||0}}),x.prototype.clone=function(){return this.nodes=null},x.prototype.item=function(T){return this.nodes[T]||null},x}()}).call(void 0)},{}],275:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/object/create"),x=T(O);function T(v){return v&&v.__esModule?v:{default:v}}(function(){var v,S,m,f=function(r,a){for(var n in a)c.call(a,n)&&(r[n]=a[n]);function e(){this.constructor=r}return e.prototype=a.prototype,r.prototype=new e,r.__super__=a.prototype,r},c={}.hasOwnProperty;v=U("./NodeType"),S=U("./XMLCharacterData"),P.exports=m=function(o){f(r,o);function r(a,n,e){if(r.__super__.constructor.call(this,a),n==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=v.ProcessingInstruction,this.target=this.stringify.insTarget(n),this.name=this.target,e&&(this.value=this.stringify.insValue(e))}return r.prototype.clone=function(){return(0,x.default)(this)},r.prototype.toString=function(a){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(a))},r.prototype.isEqualNode=function(a){return r.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)?!(a.target!==this.target):!1},r}(S)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/object/create"),x=T(O);function T(v){return v&&v.__esModule?v:{default:v}}(function(){var v,S,m,f=function(r,a){for(var n in a)c.call(a,n)&&(r[n]=a[n]);function e(){this.constructor=r}return e.prototype=a.prototype,r.prototype=new e,r.__super__=a.prototype,r},c={}.hasOwnProperty;v=U("./NodeType"),S=U("./XMLNode"),P.exports=m=function(o){f(r,o);function r(a,n){if(r.__super__.constructor.call(this,a),n==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=v.Raw,this.value=this.stringify.raw(n)}return r.prototype.clone=function(){return(0,x.default)(this)},r.prototype.toString=function(a){return this.options.writer.raw(this,this.options.writer.filterOptions(a))},r}(S)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(U,P,d){"use strict";(function(){var O,x,T,v,S=function(c,o){for(var r in o)m.call(o,r)&&(c[r]=o[r]);function a(){this.constructor=c}return a.prototype=o.prototype,c.prototype=new a,c.__super__=o.prototype,c},m={}.hasOwnProperty;O=U("./NodeType"),v=U("./XMLWriterBase"),x=U("./WriterState"),P.exports=T=function(f){S(c,f);function c(o,r){this.stream=o,c.__super__.constructor.call(this,r)}return c.prototype.endline=function(o,r,a){return o.isLastRootNode&&r.state===x.CloseTag?"":c.__super__.endline.call(this,o,r,a)},c.prototype.document=function(o,r){var a,n,e,s,t,i,l,u,h;for(l=o.children,n=e=0,t=l.length;e<t;n=++e)a=l[n],a.isLastRootNode=n===o.children.length-1;for(r=this.filterOptions(r),u=o.children,h=[],s=0,i=u.length;s<i;s++)a=u[s],h.push(this.writeChildNode(a,r,0));return h},c.prototype.attribute=function(o,r,a){return this.stream.write(c.__super__.attribute.call(this,o,r,a))},c.prototype.cdata=function(o,r,a){return this.stream.write(c.__super__.cdata.call(this,o,r,a))},c.prototype.comment=function(o,r,a){return this.stream.write(c.__super__.comment.call(this,o,r,a))},c.prototype.declaration=function(o,r,a){return this.stream.write(c.__super__.declaration.call(this,o,r,a))},c.prototype.docType=function(o,r,a){var n,e,s,t;if(a||(a=0),this.openNode(o,r,a),r.state=x.OpenTag,this.stream.write(this.indent(o,r,a)),this.stream.write("<!DOCTYPE "+o.root().name),o.pubID&&o.sysID?this.stream.write(' PUBLIC "'+o.pubID+'" "'+o.sysID+'"'):o.sysID&&this.stream.write(' SYSTEM "'+o.sysID+'"'),o.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(o,r,a)),r.state=x.InsideTag,t=o.children,e=0,s=t.length;e<s;e++)n=t[e],this.writeChildNode(n,r,a+1);r.state=x.CloseTag,this.stream.write("]")}return r.state=x.CloseTag,this.stream.write(r.spaceBeforeSlash+">"),this.stream.write(this.endline(o,r,a)),r.state=x.None,this.closeNode(o,r,a)},c.prototype.element=function(o,r,a){var n,e,s,t,i,l,u,h,p,g;a||(a=0),this.openNode(o,r,a),r.state=x.OpenTag,this.stream.write(this.indent(o,r,a)+"<"+o.name),p=o.attribs;for(u in p){if(!m.call(p,u))continue;n=p[u],this.attribute(n,r,a)}if(s=o.children.length,t=s===0?null:o.children[0],s===0||o.children.every(function(A){return(A.type===O.Text||A.type===O.Raw)&&A.value===""}))r.allowEmpty?(this.stream.write(">"),r.state=x.CloseTag,this.stream.write("</"+o.name+">")):(r.state=x.CloseTag,this.stream.write(r.spaceBeforeSlash+"/>"));else if(r.pretty&&s===1&&(t.type===O.Text||t.type===O.Raw)&&t.value!=null)this.stream.write(">"),r.state=x.InsideTag,r.suppressPrettyCount++,h=!0,this.writeChildNode(t,r,a+1),r.suppressPrettyCount--,h=!1,r.state=x.CloseTag,this.stream.write("</"+o.name+">");else{for(this.stream.write(">"+this.endline(o,r,a)),r.state=x.InsideTag,g=o.children,i=0,l=g.length;i<l;i++)e=g[i],this.writeChildNode(e,r,a+1);r.state=x.CloseTag,this.stream.write(this.indent(o,r,a)+"</"+o.name+">")}return this.stream.write(this.endline(o,r,a)),r.state=x.None,this.closeNode(o,r,a)},c.prototype.processingInstruction=function(o,r,a){return this.stream.write(c.__super__.processingInstruction.call(this,o,r,a))},c.prototype.raw=function(o,r,a){return this.stream.write(c.__super__.raw.call(this,o,r,a))},c.prototype.text=function(o,r,a){return this.stream.write(c.__super__.text.call(this,o,r,a))},c.prototype.dtdAttList=function(o,r,a){return this.stream.write(c.__super__.dtdAttList.call(this,o,r,a))},c.prototype.dtdElement=function(o,r,a){return this.stream.write(c.__super__.dtdElement.call(this,o,r,a))},c.prototype.dtdEntity=function(o,r,a){return this.stream.write(c.__super__.dtdEntity.call(this,o,r,a))},c.prototype.dtdNotation=function(o,r,a){return this.stream.write(c.__super__.dtdNotation.call(this,o,r,a))},c}(v)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(U,P,d){"use strict";(function(){var O,x,T=function(m,f){for(var c in f)v.call(f,c)&&(m[c]=f[c]);function o(){this.constructor=m}return o.prototype=f.prototype,m.prototype=new o,m.__super__=f.prototype,m},v={}.hasOwnProperty;x=U("./XMLWriterBase"),P.exports=O=function(S){T(m,S);function m(f){m.__super__.constructor.call(this,f)}return m.prototype.document=function(f,c){var o,r,a,n,e;for(c=this.filterOptions(c),n="",e=f.children,r=0,a=e.length;r<a;r++)o=e[r],n+=this.writeChildNode(o,c,0);return c.pretty&&n.slice(-c.newline.length)===c.newline&&(n=n.slice(0,-c.newline.length)),n},m}(x)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(U,P,d){"use strict";(function(){var O,x=function(S,m){return function(){return S.apply(m,arguments)}},T={}.hasOwnProperty;P.exports=O=function(){function v(S){this.assertLegalName=x(this.assertLegalName,this),this.assertLegalChar=x(this.assertLegalChar,this);var m,f,c;S||(S={}),this.options=S,this.options.version||(this.options.version="1.0"),f=S.stringify||{};for(m in f){if(!T.call(f,m))continue;c=f[m],this[m]=c}}return v.prototype.name=function(S){return this.options.noValidation?S:this.assertLegalName(""+S||"")},v.prototype.text=function(S){return this.options.noValidation?S:this.assertLegalChar(this.textEscape(""+S||""))},v.prototype.cdata=function(S){return this.options.noValidation?S:(S=""+S||"",S=S.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(S))},v.prototype.comment=function(S){if(this.options.noValidation)return S;if(S=""+S||"",S.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+S);return this.assertLegalChar(S)},v.prototype.raw=function(S){return this.options.noValidation?S:""+S||""},v.prototype.attValue=function(S){return this.options.noValidation?S:this.assertLegalChar(this.attEscape(S=""+S||""))},v.prototype.insTarget=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},v.prototype.insValue=function(S){if(this.options.noValidation)return S;if(S=""+S||"",S.match(/\?>/))throw new Error("Invalid processing instruction value: "+S);return this.assertLegalChar(S)},v.prototype.xmlVersion=function(S){if(this.options.noValidation)return S;if(S=""+S||"",!S.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+S);return S},v.prototype.xmlEncoding=function(S){if(this.options.noValidation)return S;if(S=""+S||"",!S.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+S);return this.assertLegalChar(S)},v.prototype.xmlStandalone=function(S){return this.options.noValidation?S:S?"yes":"no"},v.prototype.dtdPubID=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},v.prototype.dtdSysID=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},v.prototype.dtdElementValue=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},v.prototype.dtdAttType=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},v.prototype.dtdAttDefault=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},v.prototype.dtdEntityValue=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},v.prototype.dtdNData=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},v.prototype.convertAttKey="@",v.prototype.convertPIKey="?",v.prototype.convertTextKey="#text",v.prototype.convertCDataKey="#cdata",v.prototype.convertCommentKey="#comment",v.prototype.convertRawKey="#raw",v.prototype.assertLegalChar=function(S){var m,f;if(this.options.noValidation)return S;if(m="",this.options.version==="1.0"){if(m=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=S.match(m))throw new Error("Invalid character in string: "+S+" at index "+f.index)}else if(this.options.version==="1.1"&&(m=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=S.match(m)))throw new Error("Invalid character in string: "+S+" at index "+f.index);return S},v.prototype.assertLegalName=function(S){var m;if(this.options.noValidation)return S;if(this.assertLegalChar(S),m=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!S.match(m))throw new Error("Invalid character in name");return S},v.prototype.textEscape=function(S){var m;return this.options.noValidation?S:(m=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,S.replace(m,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},v.prototype.attEscape=function(S){var m;return this.options.noValidation?S:(m=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,S.replace(m,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},v}()}).call(void 0)},{}],280:[function(U,P,d){"use strict";var O=U("babel-runtime/core-js/object/create"),x=T(O);function T(v){return v&&v.__esModule?v:{default:v}}(function(){var v,S,m,f=function(r,a){for(var n in a)c.call(a,n)&&(r[n]=a[n]);function e(){this.constructor=r}return e.prototype=a.prototype,r.prototype=new e,r.__super__=a.prototype,r},c={}.hasOwnProperty;v=U("./NodeType"),S=U("./XMLCharacterData"),P.exports=m=function(o){f(r,o);function r(a,n){if(r.__super__.constructor.call(this,a),n==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=v.Text,this.value=this.stringify.text(n)}return Object.defineProperty(r.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(r.prototype,"wholeText",{get:function(){var n,e,s;for(s="",e=this.previousSibling;e;)s=e.data+s,e=e.previousSibling;for(s+=this.data,n=this.nextSibling;n;)s=s+n.data,n=n.nextSibling;return s}}),r.prototype.clone=function(){return(0,x.default)(this)},r.prototype.toString=function(a){return this.options.writer.text(this,this.options.writer.filterOptions(a))},r.prototype.splitText=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.replaceWholeText=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},r}(S)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(U,P,d){"use strict";(function(){var O,x,T,v,S,m,f,c,o,r,a,n,e,s,t,i,l,u={}.hasOwnProperty;l=U("./Utility").assign,O=U("./NodeType"),o=U("./XMLDeclaration"),r=U("./XMLDocType"),T=U("./XMLCData"),v=U("./XMLComment"),n=U("./XMLElement"),s=U("./XMLRaw"),t=U("./XMLText"),e=U("./XMLProcessingInstruction"),a=U("./XMLDummy"),S=U("./XMLDTDAttList"),m=U("./XMLDTDElement"),f=U("./XMLDTDEntity"),c=U("./XMLDTDNotation"),x=U("./WriterState"),P.exports=i=function(){function h(p){var g,A,y;p||(p={}),this.options=p,A=p.writer||{};for(g in A){if(!u.call(A,g))continue;y=A[g],this["_"+g]=this[g],this[g]=y}}return h.prototype.filterOptions=function(p){var g,A,y,E,C,w,b,I;return p||(p={}),p=l({},this.options,p),g={writer:this},g.pretty=p.pretty||!1,g.allowEmpty=p.allowEmpty||!1,g.indent=(A=p.indent)!=null?A:" ",g.newline=(y=p.newline)!=null?y:`
|
|
|
`,g.offset=(E=p.offset)!=null?E:0,g.dontPrettyTextNodes=(C=(w=p.dontPrettyTextNodes)!=null?w:p.dontprettytextnodes)!=null?C:0,g.spaceBeforeSlash=(b=(I=p.spaceBeforeSlash)!=null?I:p.spacebeforeslash)!=null?b:"",g.spaceBeforeSlash===!0&&(g.spaceBeforeSlash=" "),g.suppressPrettyCount=0,g.user={},g.state=x.None,g},h.prototype.indent=function(p,g,A){var y;return!g.pretty||g.suppressPrettyCount?"":g.pretty&&(y=(A||0)+g.offset+1,y>0)?new Array(y).join(g.indent):""},h.prototype.endline=function(p,g,A){return!g.pretty||g.suppressPrettyCount?"":g.newline},h.prototype.attribute=function(p,g,A){var y;return this.openAttribute(p,g,A),y=" "+p.name+'="'+p.value+'"',this.closeAttribute(p,g,A),y},h.prototype.cdata=function(p,g,A){var y;return this.openNode(p,g,A),g.state=x.OpenTag,y=this.indent(p,g,A)+"<![CDATA[",g.state=x.InsideTag,y+=p.value,g.state=x.CloseTag,y+="]]>"+this.endline(p,g,A),g.state=x.None,this.closeNode(p,g,A),y},h.prototype.comment=function(p,g,A){var y;return this.openNode(p,g,A),g.state=x.OpenTag,y=this.indent(p,g,A)+"<!-- ",g.state=x.InsideTag,y+=p.value,g.state=x.CloseTag,y+=" -->"+this.endline(p,g,A),g.state=x.None,this.closeNode(p,g,A),y},h.prototype.declaration=function(p,g,A){var y;return this.openNode(p,g,A),g.state=x.OpenTag,y=this.indent(p,g,A)+"<?xml",g.state=x.InsideTag,y+=' version="'+p.version+'"',p.encoding!=null&&(y+=' encoding="'+p.encoding+'"'),p.standalone!=null&&(y+=' standalone="'+p.standalone+'"'),g.state=x.CloseTag,y+=g.spaceBeforeSlash+"?>",y+=this.endline(p,g,A),g.state=x.None,this.closeNode(p,g,A),y},h.prototype.docType=function(p,g,A){var y,E,C,w,b;if(A||(A=0),this.openNode(p,g,A),g.state=x.OpenTag,w=this.indent(p,g,A),w+="<!DOCTYPE "+p.root().name,p.pubID&&p.sysID?w+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(w+=' SYSTEM "'+p.sysID+'"'),p.children.length>0){for(w+=" [",w+=this.endline(p,g,A),g.state=x.InsideTag,b=p.children,E=0,C=b.length;E<C;E++)y=b[E],w+=this.writeChildNode(y,g,A+1);g.state=x.CloseTag,w+="]"}return g.state=x.CloseTag,w+=g.spaceBeforeSlash+">",w+=this.endline(p,g,A),g.state=x.None,this.closeNode(p,g,A),w},h.prototype.element=function(p,g,A){var y,E,C,w,b,I,_,L,D,N,R,B,M,H;A||(A=0),N=!1,R="",this.openNode(p,g,A),g.state=x.OpenTag,R+=this.indent(p,g,A)+"<"+p.name,B=p.attribs;for(D in B){if(!u.call(B,D))continue;y=B[D],R+=this.attribute(y,g,A)}if(C=p.children.length,w=C===0?null:p.children[0],C===0||p.children.every(function(F){return(F.type===O.Text||F.type===O.Raw)&&F.value===""}))g.allowEmpty?(R+=">",g.state=x.CloseTag,R+="</"+p.name+">"+this.endline(p,g,A)):(g.state=x.CloseTag,R+=g.spaceBeforeSlash+"/>"+this.endline(p,g,A));else if(g.pretty&&C===1&&(w.type===O.Text||w.type===O.Raw)&&w.value!=null)R+=">",g.state=x.InsideTag,g.suppressPrettyCount++,N=!0,R+=this.writeChildNode(w,g,A+1),g.suppressPrettyCount--,N=!1,g.state=x.CloseTag,R+="</"+p.name+">"+this.endline(p,g,A);else{if(g.dontPrettyTextNodes){for(M=p.children,b=0,_=M.length;b<_;b++)if(E=M[b],(E.type===O.Text||E.type===O.Raw)&&E.value!=null){g.suppressPrettyCount++,N=!0;break}}for(R+=">"+this.endline(p,g,A),g.state=x.InsideTag,H=p.children,I=0,L=H.length;I<L;I++)E=H[I],R+=this.writeChildNode(E,g,A+1);g.state=x.CloseTag,R+=this.indent(p,g,A)+"</"+p.name+">",N&&g.suppressPrettyCount--,R+=this.endline(p,g,A),g.state=x.None}return this.closeNode(p,g,A),R},h.prototype.writeChildNode=function(p,g,A){switch(p.type){case O.CData:return this.cdata(p,g,A);case O.Comment:return this.comment(p,g,A);case O.Element:return this.element(p,g,A);case O.Raw:return this.raw(p,g,A);case O.Text:return this.text(p,g,A);case O.ProcessingInstruction:return this.processingInstruction(p,g,A);case O.Dummy:return"";case O.Declaration:return this.declaration(p,g,A);case O.DocType:return this.docType(p,g,A);case O.AttributeDeclaration:return this.dtdAttList(p,g,A);case O.ElementDeclaration:return this.dtdElement(p,g,A);case O.EntityDeclaration:return this.dtdEntity(p,g,A);case O.NotationDeclaration:return this.dtdNotation(p,g,A);default:throw new Error("Unknown XML node type: "+p.constructor.name)}},h.prototype.processingInstruction=function(p,g,A){var y;return this.openNode(p,g,A),g.state=x.OpenTag,y=this.indent(p,g,A)+"<?",g.state=x.InsideTag,y+=p.target,p.value&&(y+=" "+p.value),g.state=x.CloseTag,y+=g.spaceBeforeSlash+"?>",y+=this.endline(p,g,A),g.state=x.None,this.closeNode(p,g,A),y},h.prototype.raw=function(p,g,A){var y;return this.openNode(p,g,A),g.state=x.OpenTag,y=this.indent(p,g,A),g.state=x.InsideTag,y+=p.value,g.state=x.CloseTag,y+=this.endline(p,g,A),g.state=x.None,this.closeNode(p,g,A),y},h.prototype.text=function(p,g,A){var y;return this.openNode(p,g,A),g.state=x.OpenTag,y=this.indent(p,g,A),g.state=x.InsideTag,y+=p.value,g.state=x.CloseTag,y+=this.endline(p,g,A),g.state=x.None,this.closeNode(p,g,A),y},h.prototype.dtdAttList=function(p,g,A){var y;return this.openNode(p,g,A),g.state=x.OpenTag,y=this.indent(p,g,A)+"<!ATTLIST",g.state=x.InsideTag,y+=" "+p.elementName+" "+p.attributeName+" "+p.attributeType,p.defaultValueType!=="#DEFAULT"&&(y+=" "+p.defaultValueType),p.defaultValue&&(y+=' "'+p.defaultValue+'"'),g.state=x.CloseTag,y+=g.spaceBeforeSlash+">"+this.endline(p,g,A),g.state=x.None,this.closeNode(p,g,A),y},h.prototype.dtdElement=function(p,g,A){var y;return this.openNode(p,g,A),g.state=x.OpenTag,y=this.indent(p,g,A)+"<!ELEMENT",g.state=x.InsideTag,y+=" "+p.name+" "+p.value,g.state=x.CloseTag,y+=g.spaceBeforeSlash+">"+this.endline(p,g,A),g.state=x.None,this.closeNode(p,g,A),y},h.prototype.dtdEntity=function(p,g,A){var y;return this.openNode(p,g,A),g.state=x.OpenTag,y=this.indent(p,g,A)+"<!ENTITY",g.state=x.InsideTag,p.pe&&(y+=" %"),y+=" "+p.name,p.value?y+=' "'+p.value+'"':(p.pubID&&p.sysID?y+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(y+=' SYSTEM "'+p.sysID+'"'),p.nData&&(y+=" NDATA "+p.nData)),g.state=x.CloseTag,y+=g.spaceBeforeSlash+">"+this.endline(p,g,A),g.state=x.None,this.closeNode(p,g,A),y},h.prototype.dtdNotation=function(p,g,A){var y;return this.openNode(p,g,A),g.state=x.OpenTag,y=this.indent(p,g,A)+"<!NOTATION",g.state=x.InsideTag,y+=" "+p.name,p.pubID&&p.sysID?y+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.pubID?y+=' PUBLIC "'+p.pubID+'"':p.sysID&&(y+=' SYSTEM "'+p.sysID+'"'),g.state=x.CloseTag,y+=g.spaceBeforeSlash+">"+this.endline(p,g,A),g.state=x.None,this.closeNode(p,g,A),y},h.prototype.openNode=function(p,g,A){},h.prototype.closeNode=function(p,g,A){},h.prototype.openAttribute=function(p,g,A){},h.prototype.closeAttribute=function(p,g,A){},h}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(U,P,d){"use strict";(function(){var O,x,T,v,S,m,f,c,o,r;r=U("./Utility"),c=r.assign,o=r.isFunction,T=U("./XMLDOMImplementation"),v=U("./XMLDocument"),S=U("./XMLDocumentCB"),f=U("./XMLStringWriter"),m=U("./XMLStreamWriter"),O=U("./NodeType"),x=U("./WriterState"),P.exports.create=function(a,n,e,s){var t,i;if(a==null)throw new Error("Root element needs a name.");return s=c({},n,e,s),t=new v(s),i=t.element(a),s.headless||(t.declaration(s),(s.pubID!=null||s.sysID!=null)&&t.dtd(s)),i},P.exports.begin=function(a,n,e){var s;return o(a)&&(s=[a,n],n=s[0],e=s[1],a={}),n?new S(a,n,e):new v(a)},P.exports.stringWriter=function(a){return new f(a)},P.exports.streamWriter=function(a,n){return new m(a,n)},P.exports.implementation=new T,P.exports.nodeType=O,P.exports.writerState=x}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(U,P,d){P.exports=x;var O=Object.prototype.hasOwnProperty;function x(){for(var T={},v=0;v<arguments.length;v++){var S=arguments[v];for(var m in S)O.call(S,m)&&(T[m]=S[m])}return T}},{}],284:[function(U,P,d){"use strict";var O=U("buffer").Buffer,x=U("./sha"),T=U("./md5"),v={sha1:x,md5:T},S=64,m=O.alloc(S);m.fill(0);function f(r,a,n){O.isBuffer(a)||(a=O.from(a)),O.isBuffer(n)||(n=O.from(n)),a.length>S?a=r(a):a.length<S&&(a=O.concat([a,m],S));for(var e=O.alloc(S),s=O.alloc(S),t=0;t<S;t++)e[t]=a[t]^54,s[t]=a[t]^92;var i=r(O.concat([e,n]));return r(O.concat([s,i]))}function c(r,a){r=r||"sha1";var n=v[r],e=[],s=0;return n||o("algorithm:",r,"is not yet supported"),{update:function(i){return O.isBuffer(i)||(i=O.from(i)),e.push(i),s+=i.length,this},digest:function(i){var l=O.concat(e),u=a?f(n,a,l):n(l);return e=null,i?u.toString(i):u}}}function o(){var r=[].slice.call(arguments).join(" ");throw new Error([r,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}d.createHash=function(r){return c(r)},d.createHmac=function(r,a){return c(r,a)},d.createCredentials=function(){o("sorry,createCredentials is not implemented yet")},d.createCipher=function(){o("sorry,createCipher is not implemented yet")},d.createCipheriv=function(){o("sorry,createCipheriv is not implemented yet")},d.createDecipher=function(){o("sorry,createDecipher is not implemented yet")},d.createDecipheriv=function(){o("sorry,createDecipheriv is not implemented yet")},d.createSign=function(){o("sorry,createSign is not implemented yet")},d.createVerify=function(){o("sorry,createVerify is not implemented yet")},d.createDiffieHellman=function(){o("sorry,createDiffieHellman is not implemented yet")},d.pbkdf2=function(){o("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(U,P,d){"use strict";var O=U("buffer").Buffer,x=4,T=O.alloc(x);T.fill(0);var v=8;function S(c,o){if(c.length%x!==0){var r=c.length+(x-c.length%x);c=O.concat([c,T],r)}for(var a=[],n=o?c.readInt32BE:c.readInt32LE,e=0;e<c.length;e+=x)a.push(n.call(c,e));return a}function m(c,o,r){for(var a=O.alloc(o),n=r?a.writeInt32BE:a.writeInt32LE,e=0;e<c.length;e++)n.call(a,c[e],e*4,!0);return a}function f(c,o,r,a){O.isBuffer(c)||(c=O.from(c));var n=o(S(c,a),c.length*v);return m(n,r,a)}P.exports={hash:f}},{buffer:73}],286:[function(U,P,d){"use strict";var O=U("./helpers");function x(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function T(a,n){a[n>>5]|=128<<n%32,a[(n+64>>>9<<4)+14]=n;for(var e=1732584193,s=-271733879,t=-1732584194,i=271733878,l=0;l<a.length;l+=16){var u=e,h=s,p=t,g=i;e=S(e,s,t,i,a[l+0],7,-680876936),i=S(i,e,s,t,a[l+1],12,-389564586),t=S(t,i,e,s,a[l+2],17,606105819),s=S(s,t,i,e,a[l+3],22,-1044525330),e=S(e,s,t,i,a[l+4],7,-176418897),i=S(i,e,s,t,a[l+5],12,1200080426),t=S(t,i,e,s,a[l+6],17,-1473231341),s=S(s,t,i,e,a[l+7],22,-45705983),e=S(e,s,t,i,a[l+8],7,1770035416),i=S(i,e,s,t,a[l+9],12,-1958414417),t=S(t,i,e,s,a[l+10],17,-42063),s=S(s,t,i,e,a[l+11],22,-1990404162),e=S(e,s,t,i,a[l+12],7,1804603682),i=S(i,e,s,t,a[l+13],12,-40341101),t=S(t,i,e,s,a[l+14],17,-1502002290),s=S(s,t,i,e,a[l+15],22,1236535329),e=m(e,s,t,i,a[l+1],5,-165796510),i=m(i,e,s,t,a[l+6],9,-1069501632),t=m(t,i,e,s,a[l+11],14,643717713),s=m(s,t,i,e,a[l+0],20,-373897302),e=m(e,s,t,i,a[l+5],5,-701558691),i=m(i,e,s,t,a[l+10],9,38016083),t=m(t,i,e,s,a[l+15],14,-660478335),s=m(s,t,i,e,a[l+4],20,-405537848),e=m(e,s,t,i,a[l+9],5,568446438),i=m(i,e,s,t,a[l+14],9,-1019803690),t=m(t,i,e,s,a[l+3],14,-187363961),s=m(s,t,i,e,a[l+8],20,1163531501),e=m(e,s,t,i,a[l+13],5,-1444681467),i=m(i,e,s,t,a[l+2],9,-51403784),t=m(t,i,e,s,a[l+7],14,1735328473),s=m(s,t,i,e,a[l+12],20,-1926607734),e=f(e,s,t,i,a[l+5],4,-378558),i=f(i,e,s,t,a[l+8],11,-2022574463),t=f(t,i,e,s,a[l+11],16,1839030562),s=f(s,t,i,e,a[l+14],23,-35309556),e=f(e,s,t,i,a[l+1],4,-1530992060),i=f(i,e,s,t,a[l+4],11,1272893353),t=f(t,i,e,s,a[l+7],16,-155497632),s=f(s,t,i,e,a[l+10],23,-1094730640),e=f(e,s,t,i,a[l+13],4,681279174),i=f(i,e,s,t,a[l+0],11,-358537222),t=f(t,i,e,s,a[l+3],16,-722521979),s=f(s,t,i,e,a[l+6],23,76029189),e=f(e,s,t,i,a[l+9],4,-640364487),i=f(i,e,s,t,a[l+12],11,-421815835),t=f(t,i,e,s,a[l+15],16,530742520),s=f(s,t,i,e,a[l+2],23,-995338651),e=c(e,s,t,i,a[l+0],6,-198630844),i=c(i,e,s,t,a[l+7],10,1126891415),t=c(t,i,e,s,a[l+14],15,-1416354905),s=c(s,t,i,e,a[l+5],21,-57434055),e=c(e,s,t,i,a[l+12],6,1700485571),i=c(i,e,s,t,a[l+3],10,-1894986606),t=c(t,i,e,s,a[l+10],15,-1051523),s=c(s,t,i,e,a[l+1],21,-2054922799),e=c(e,s,t,i,a[l+8],6,1873313359),i=c(i,e,s,t,a[l+15],10,-30611744),t=c(t,i,e,s,a[l+6],15,-1560198380),s=c(s,t,i,e,a[l+13],21,1309151649),e=c(e,s,t,i,a[l+4],6,-145523070),i=c(i,e,s,t,a[l+11],10,-1120210379),t=c(t,i,e,s,a[l+2],15,718787259),s=c(s,t,i,e,a[l+9],21,-343485551),e=o(e,u),s=o(s,h),t=o(t,p),i=o(i,g)}return Array(e,s,t,i)}function v(a,n,e,s,t,i){return o(r(o(o(n,a),o(s,i)),t),e)}function S(a,n,e,s,t,i,l){return v(n&e|~n&s,a,n,t,i,l)}function m(a,n,e,s,t,i,l){return v(n&s|e&~s,a,n,t,i,l)}function f(a,n,e,s,t,i,l){return v(n^e^s,a,n,t,i,l)}function c(a,n,e,s,t,i,l){return v(e^(n|~s),a,n,t,i,l)}function o(a,n){var e=(a&65535)+(n&65535),s=(a>>16)+(n>>16)+(e>>16);return s<<16|e&65535}function r(a,n){return a<<n|a>>>32-n}P.exports=function(n){return O.hash(n,T,16)}},{"./helpers":285}],287:[function(U,P,d){"use strict";var O=U("./helpers");function x(f,c){f[c>>5]|=128<<24-c%32,f[(c+64>>9<<4)+15]=c;for(var o=Array(80),r=1732584193,a=-271733879,n=-1732584194,e=271733878,s=-1009589776,t=0;t<f.length;t+=16){for(var i=r,l=a,u=n,h=e,p=s,g=0;g<80;g++){g<16?o[g]=f[t+g]:o[g]=m(o[g-3]^o[g-8]^o[g-14]^o[g-16],1);var A=S(S(m(r,5),T(g,a,n,e)),S(S(s,o[g]),v(g)));s=e,e=n,n=m(a,30),a=r,r=A}r=S(r,i),a=S(a,l),n=S(n,u),e=S(e,h),s=S(s,p)}return Array(r,a,n,e,s)}function T(f,c,o,r){return f<20?c&o|~c&r:f<40?c^o^r:f<60?c&o|c&r|o&r:c^o^r}function v(f){return f<20?1518500249:f<40?1859775393:f<60?-1894007588:-899497514}function S(f,c){var o=(f&65535)+(c&65535),r=(f>>16)+(c>>16)+(o>>16);return r<<16|o&65535}function m(f,c){return f<<c|f>>>32-c}P.exports=function(c){return O.hash(c,x,20,!0)}},{"./helpers":285}],288:[function(U,P,d){"use strict";P.exports=function(){return function(){}}},{}],289:[function(U,P,d){(function(O){"use strict";var x=U("babel-runtime/helpers/typeof"),T=v(x);function v(r){return r&&r.__esModule?r:{default:r}}var S=U("stream"),m=S.Stream,f=U("../lib/common/utils/isArray"),c=f.isArray;P.exports.string=function(a){return typeof a=="string"},P.exports.array=c,P.exports.buffer=O.isBuffer;function o(r){return r instanceof m}P.exports.writableStream=function(a){return o(a)&&typeof a._write=="function"&&(0,T.default)(a._writableState)==="object"}}).call(this,{isBuffer:U("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(U,P,d){"use strict";d.encodeURIComponent=function(O){try{return encodeURIComponent(O)}catch(x){return O}},d.escape=U("escape-html"),d.timestamp=function(x){if(x){var T=x;return typeof T=="string"&&(T=Number(T)),String(x).length===10&&(T*=1e3),new Date(T)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(U,P,d){(function(O,x){"use strict";var T=U("babel-runtime/core-js/json/stringify"),v=f(T),S=U("babel-runtime/helpers/typeof"),m=f(S);function f(g){return g&&g.__esModule?g:{default:g}}var c=U("util"),o=U("url"),r=U("http"),a=U("https"),n=U("debug")("urllib"),e=U("humanize-ms"),s,t=0,i=Math.pow(2,31)-10,l=/^https?:\/\//i;function u(g,A){return g===void 0?A:g}function h(g,A){return function(y,E,C){if(y)return A(y);g({data:E,status:C.statusCode,headers:C.headers,res:C})}}d.TIMEOUTS=[e("300s"),e("300s")];var p=["json","text"];d.request=function(A,y,E){return arguments.length===2&&typeof y=="function"&&(E=y,y=null),typeof E=="function"?d.requestWithCallback(A,y,E):(s||(s=U("any-promise")),new s(function(C,w){d.requestWithCallback(A,y,h(C,w))}))},d.requestWithCallback=function(A,y,E){if(!A||typeof A!="string"&&(typeof A=="undefined"?"undefined":(0,m.default)(A))!=="object"){var C=c.format("expect request url to be a string or a http request options, but got %j",A);throw new Error(C)}arguments.length===2&&typeof y=="function"&&(E=y,y=null),y=y||{},t>=i&&(t=0);var w=++t;y.requestUrls=y.requestUrls||[];var b={requestId:w,url:A,args:y,ctx:y.ctx};y.emitter&&y.emitter.emit("request",b),y.timeout=y.timeout||d.TIMEOUTS,y.maxRedirects=y.maxRedirects||10,y.streaming=y.streaming||y.customResponse;var I=Date.now(),_;typeof A=="string"?(l.test(A)||(A="http://"+A),_=o.parse(A)):_=A;var L=(y.type||y.method||_.method||"GET").toUpperCase(),D=_.port||80,N=r,R=u(y.agent,d.agent),B=y.fixJSONCtlChars;_.protocol==="https:"&&(N=a,R=u(y.httpsAgent,d.httpsAgent),_.port||(D=443));var M={host:_.hostname||_.host||"localhost",path:_.path||"/",method:L,port:D,agent:R,headers:y.headers||{},lookup:y.lookup};Array.isArray(y.timeout)?M.requestTimeout=y.timeout[y.timeout.length-1]:typeof y.timeout!="undefined"&&(M.requestTimeout=y.timeout);for(var H=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],F=0;F<H.length;F++){var K=H[F];y.hasOwnProperty(K)&&(M[K]=y[K])}M.rejectUnauthorized===!1&&!M.hasOwnProperty("secureOptions")&&(M.secureOptions=U("constants").SSL_OP_NO_TLSv1_2);var j=y.auth||_.auth;j&&(M.auth=j);var V=y.content||y.data,z=L==="GET"||L==="HEAD"||y.dataAsQueryString;if(!y.content&&(V&&!(typeof V=="string"||x.isBuffer(V))))if(z)V=y.nestedQuerystring?qs.stringify(V):querystring.stringify(V);else{var Y=M.headers["Content-Type"]||M.headers["content-type"];Y||(y.contentType==="json"?Y="application/json":Y="application/x-www-form-urlencoded",M.headers["Content-Type"]=Y),parseContentType(Y).type==="application/json"?V=(0,v.default)(V):V=y.nestedQuerystring?qs.stringify(V):querystring.stringify(V)}z&&V&&(M.path+=(_.query?"&":"?")+V,V=null);var ee=0;if(V){var fe=V.length;x.isBuffer(V)||(fe=x.byteLength(V)),ee=M.headers["Content-Length"]=fe}y.dataType==="json"&&(M.headers.Accept="application/json"),typeof y.beforeRequest=="function"&&y.beforeRequest(M);var ie=null,we=null,Ce=null,Le=!1,He=!1,ce=0,Pe=-1,Q=!1,me="",Je="",re=null;y.timing&&(re={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function G(){ie&&(clearTimeout(ie),ie=null)}function X(){we&&(clearTimeout(we),we=null)}function J(Te,tt,ze){if(X(),!E){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),w,O.pid,M.method,A),Te&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),w,O.pid,Te.name,Te.message,Te.stack);return}var dt=E;E=null;var Ot={};if(ze&&(Pe=ze.statusCode,Ot=ze.headers),Pe===401&&Ot["www-authenticate"]&&(!y.headers||!y.headers.Authorization)&&y.digestAuth){var Tt=Ot["www-authenticate"];if(Tt.indexOf("Digest ")>=0)return n("Request#%d %s: got digest auth header WWW-Authenticate: %s",w,A,Tt),y.headers=y.headers||{},y.headers.Authorization=digestAuthHeader(M.method,M.path,Tt,y.digestAuth),n("Request#%d %s: auth with digest header: %s",w,A,y.headers.Authorization),ze.headers["set-cookie"]&&(y.headers.Cookie=ze.headers["set-cookie"].join(";")),d.requestWithCallback(A,y,dt)}var Ct=Date.now()-I;re&&(re.contentDownload=Ct),n("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Ct,ce,Pe,M.method,M.host,M.path,He,re);var Nt={status:Pe,statusCode:Pe,headers:Ot,size:ce,aborted:Q,rt:Ct,keepAliveSocket:He,data:tt,requestUrls:y.requestUrls,timing:re,remoteAddress:me,remotePort:Je};if(Te){var Be="";R&&typeof R.getCurrentStatus=="function"&&(Be=", agent status: "+(0,v.default)(R.getCurrentStatus())),Te.message+=", "+M.method+" "+A+" "+Pe+" (connected: "+Le+", keepalive socket: "+He+Be+`)
|
|
|
headers: `+(0,v.default)(Ot),Te.data=tt,Te.path=M.path,Te.status=Pe,Te.headers=Ot,Te.res=Nt}dt(Te,tt,y.streaming?ze:Nt),y.emitter&&(b.url=A,b.socket=it&&it.connection,b.options=M,b.size=ee,y.emitter.emit("response",{requestId:w,error:Te,ctx:y.ctx,req:b,res:Nt}))}function Ae(Te){var tt=null;if(y.followRedirect&&statuses.redirect[Te.statusCode]){y._followRedirectCount=(y._followRedirectCount||0)+1;var ze=Te.headers.location;if(!ze)tt=new Error("Got statusCode "+Te.statusCode+" but cannot resolve next location from headers"),tt.name="FollowRedirectError";else if(y._followRedirectCount>y.maxRedirects)tt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+A),tt.name="MaxRedirectError";else{var dt=y.formatRedirectUrl?y.formatRedirectUrl(A,ze):o.resolve(A,ze);n("Request#%d %s: `redirected` from %s to %s",w,M.path,A,dt),X(),y.headers&&y.headers.Host&&l.test(ze)&&(y.headers.Host=null);var Ot=E;return E=null,d.requestWithCallback(dt,y,Ot),{redirect:!0,error:null}}}return{redirect:!1,error:tt}}!M.headers["User-Agent"]&&!M.headers["user-agent"]&&(M.headers["User-Agent"]=navigator.userAgent),y.gzip&&(!M.headers["Accept-Encoding"]&&!M.headers["accept-encoding"]&&(M.headers["Accept-Encoding"]="gzip"));function he(Te,tt,ze){var dt=Te.headers["content-encoding"];return ze(null,tt,dt)}var Me=y.writeStream;n("Request#%d %s %s with headers %j, options.path: %s",w,L,A,M.headers,M.path),y.requestUrls.push(A);function Ie(Te){if(re&&(re.waiting=Date.now()-I),n("Request#%d %s `req response` event emit: status %d, headers: %j",w,A,Te.statusCode,Te.headers),y.streaming){var tt=Ae(Te);if(tt.redirect){Te.resume();return}return tt.error?(Te.resume(),J(tt.error,null,Te)):J(null,null,Te)}if(Te.on("close",function(){n("Request#%d %s: `res close` event emit, total size %d",w,A,ce)}),Te.on("error",function(){n("Request#%d %s: `res error` event emit, total size %d",w,A,ce)}),Te.on("aborted",function(){Q=!0,n("Request#%d %s: `res aborted` event emit, total size %d",w,A,ce)}),Me){var tt=Ae(Te);if(tt.redirect){Te.resume();return}return tt.error?(Te.resume(),Me.end(),J(tt.error,null,Te)):(y.consumeWriteStream===!1?Te.on("end",J.bind(null,null,null,Te)):isNode010||isNode012?first([[Me,"close"],[Te,"aborted"]],function(Ot,Tt,Ct){n("Request#%d %s: writeStream or res %s event emitted",w,A,Ct),J(Ce||null,null,Te)}):Me.on("close",function(){n("Request#%d %s: writeStream close event emitted",w,A),J(Ce||null,null,Te)}),Te.pipe(Me))}var ze=[];Te.on("data",function(dt){n("Request#%d %s: `res data` event emit, size %d",w,A,dt.length),ce+=dt.length,ze.push(dt)}),Te.on("end",function(){var dt=x.concat(ze,ce);if(n("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",w,A,ce,Te._dumped),Ce)return J(Ce,dt,Te);var Ot=Ae(Te);if(Ot.error)return J(Ot.error,dt,Te);if(Ot.redirect)return;he(Te,dt,function(Tt,Ct,Nt){if(Tt)return J(Tt,dt,Te);if(!Nt&&p.indexOf(y.dataType)>=0){try{Ct=decodeBodyByCharset(Ct,Te)}catch($){return n("decodeBodyByCharset error: %s",$),J(null,Ct,Te)}if(y.dataType==="json")if(ce===0)Ct=null;else{var Be=parseJSON(Ct,B);Be.error?Tt=Be.error:Ct=Be.data}}Q&&n("Request#%d %s: Remote socket was terminated before `response.end()` was called",w,A),J(Tt,Ct,Te)})})}var oe,pe;Array.isArray(y.timeout)?(oe=e(y.timeout[0]),pe=e(y.timeout[1])):oe=pe=e(y.timeout),n("ConnectTimeout: %d, ResponseTimeout: %d",oe,pe);function Oe(){n("Connect timer ticking, timeout: %d",oe),ie=setTimeout(function(){ie=null,Pe===-1&&(Pe=-2);var Te="Connect timeout for "+oe+"ms",tt="ConnectionTimeoutError";it.socket||(tt="SocketAssignTimeoutError",Te+=", working sockets is full"),Ce=new Error(Te),Ce.name=tt,Ce.requestId=w,n("ConnectTimeout: Request#%d %s %s: %s, connected: %s",w,A,Ce.name,Te,Le),et()},oe)}function Ye(){n("Response timer ticking, timeout: %d",pe),we=setTimeout(function(){we=null;var Te="Response timeout for "+pe+"ms",tt="ResponseTimeoutError";Ce=new Error(Te),Ce.name=tt,Ce.requestId=w,n("ResponseTimeout: Request#%d %s %s: %s, connected: %s",w,A,Ce.name,Te,Le),et()},pe)}var it;M.mode=y.mode?y.mode:"";try{it=N.request(M,Ie)}catch(Te){return J(Te)}typeof window=="undefined"?Oe():it.on("requestTimeout",function(){Pe===-1&&(Pe=-2);var Te="Connect timeout for "+oe+"ms",tt="ConnectionTimeoutError";Ce=new Error(Te),Ce.name=tt,Ce.requestId=w,et()});function et(){n("Request#%d %s abort, connected: %s",w,A,Le),it.socket||(Ce.noSocket=!0,J(Ce)),it.abort()}return re&&it.on("finish",function(){re.requestSent=Date.now()-I}),it.once("socket",function(Te){re&&(re.queuing=Date.now()-I),isNode010&&Te.socket&&(Te=Te.socket);var tt=Te.readyState;if(tt==="opening"){Te.once("lookup",function(ze,dt,Ot){n("Request#%d %s lookup: %s, %s, %s",w,A,ze,dt,Ot),re&&(re.dnslookup=Date.now()-I),dt&&(me=dt)}),Te.once("connect",function(){re&&(re.connected=Date.now()-I),G(),Ye(),n("Request#%d %s new socket connected",w,A),Le=!0,me||(me=Te.remoteAddress),Je=Te.remotePort});return}n("Request#%d %s reuse socket connected, readyState: %s",w,A,tt),Le=!0,He=!0,me||(me=Te.remoteAddress),Je=Te.remotePort,G(),Ye()}),it.on("error",function(Te){(Te.name==="Error"||Te.name==="TypeError")&&(Te.name=Le?"ResponseError":"RequestError"),Te.message+=' (req "error")',n("Request#%d %s `req error` event emit, %s: %s",w,A,Te.name,Te.message),J(Ce||Te)}),Me&&Me.once("error",function(Te){Te.message+=' (writeStream "error")',Ce=Te,n("Request#%d %s `writeStream error` event emit, %s: %s",w,A,Te.name,Te.message),et()}),y.stream?(y.stream.pipe(it),y.stream.once("error",function(Te){Te.message+=' (stream "error")',Ce=Te,n("Request#%d %s `readStream error` event emit, %s: %s",w,A,Te.name,Te.message),et()})):it.end(V),it.requestId=w,it}}).call(this,U("_process"),U("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("yLpj"))},n1HI:function(U,P,d){var O=d("hX1E"),x=O.normalizeRadian,T=Math.PI*2;function v(S,m,f,c,o,r,a,n,e){if(a===0)return!1;var s=a;n-=S,e-=m;var t=Math.sqrt(n*n+e*e);if(t-s>f||t+s<f)return!1;if(Math.abs(c-o)%T<1e-4)return!0;if(r){var i=c;c=x(o),o=x(i)}else c=x(c),o=x(o);c>o&&(o+=T);var l=Math.atan2(e,n);return l<0&&(l+=T),l>=c&&l<=o||l+T>=c&&l+T<=o}P.containStroke=v},n4Lv:function(U,P,d){var O=d("7hqr"),x=O.isDimensionStacked,T=d("bYtY"),v=T.map;function S(c,o,r){var a=c.getBaseAxis(),n=c.getOtherAxis(a),e=m(n,r),s=a.dim,t=n.dim,i=o.mapDimension(t),l=o.mapDimension(s),u=t==="x"||t==="radius"?1:0,h=v(c.dimensions,function(A){return o.mapDimension(A)}),p,g=o.getCalculationInfo("stackResultDimension");return(p|=x(o,h[0]))&&(h[0]=g),(p|=x(o,h[1]))&&(h[1]=g),{dataDimsForPoint:h,valueStart:e,valueAxisDim:t,baseAxisDim:s,stacked:!!p,valueDim:i,baseDim:l,baseDataOffset:u,stackedOverDimension:o.getCalculationInfo("stackedOverDimension")}}function m(c,o){var r=0,a=c.scale.getExtent();return o==="start"?r=a[0]:o==="end"?r=a[1]:a[0]>0?r=a[0]:a[1]<0&&(r=a[1]),r}function f(c,o,r,a){var n=NaN;c.stacked&&(n=r.get(r.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=c.valueStart);var e=c.baseDataOffset,s=[];return s[e]=r.get(c.baseDim,a),s[1-e]=n,o.dataToPoint(s)}P.prepareDataCoordInfo=S,P.getStackedOnPoint=f},n6Mw:function(U,P,d){var O=d("SrGk"),x=d("bYtY"),T=d("Fofx");function v(m,f){O.call(this,m,f,"clipPath","__clippath_in_use__")}x.inherits(v,O),v.prototype.update=function(m){var f=this.getSvgElement(m);f&&this.updateDom(f,m.__clipPaths,!1);var c=this.getTextSvgElement(m);c&&this.updateDom(c,m.__clipPaths,!0),this.markUsed(m)},v.prototype.updateDom=function(m,f,c){if(f&&f.length>0){var o=this.getDefs(!0),r=f[0],a,n,e=c?"_textDom":"_dom";r[e]?(n=r[e].getAttribute("id"),a=r[e],o.contains(a)||o.appendChild(a)):(n="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,a=this.createElement("clipPath"),a.setAttribute("id",n),o.appendChild(a),r[e]=a);var s=this.getSvgProxy(r);if(r.transform&&r.parent.invTransform&&!c){var t=Array.prototype.slice.call(r.transform);T.mul(r.transform,r.parent.invTransform,r.transform),s.brush(r),r.transform=t}else s.brush(r);var i=this.getSvgElement(r);a.innerHTML="",a.appendChild(i.cloneNode()),m.setAttribute("clip-path","url(#"+n+")"),f.length>1&&this.updateDom(a,f.slice(1),c)}else m&&m.setAttribute("clip-path","none")},v.prototype.markUsed=function(m){var f=this;m.__clipPaths&&x.each(m.__clipPaths,function(c){c._dom&&O.prototype.markUsed.call(f,c._dom),c._textDom&&O.prototype.markUsed.call(f,c._textDom)})};var S=v;U.exports=S},nCxF:function(U,P,d){var O=d("QBsz"),x=O.min,T=O.max,v=O.scale,S=O.distance,m=O.add,f=O.clone,c=O.sub;function o(r,a,n,e){var s=[],t=[],i=[],l=[],u,h,p,g;if(e){p=[Infinity,Infinity],g=[-Infinity,-Infinity];for(var A=0,y=r.length;A<y;A++)x(p,p,r[A]),T(g,g,r[A]);x(p,p,e[0]),T(g,g,e[1])}for(var A=0,y=r.length;A<y;A++){var E=r[A];if(n)u=r[A?A-1:y-1],h=r[(A+1)%y];else if(A===0||A===y-1){s.push(f(r[A]));continue}else u=r[A-1],h=r[A+1];c(t,h,u),v(t,t,a);var C=S(E,u),w=S(E,h),b=C+w;b!==0&&(C/=b,w/=b),v(i,t,-C),v(l,t,w);var I=m([],E,i),_=m([],E,l);e&&(T(I,I,p),x(I,I,g),T(_,_,p),x(_,_,g)),s.push(I),s.push(_)}return n&&s.push(s.shift()),s}U.exports=o},nKiI:function(U,P,d){var O=d("bYtY"),x=d("mFDi"),T=d("OELB"),v=T.parsePercent,S=T.MAX_SAFE_INTEGER,m=d("+TT/"),f=d("VaxA"),c=Math.max,o=Math.min,r=O.retrieve,a=O.each,n=["itemStyle","borderWidth"],e=["itemStyle","gapWidth"],s=["upperLabel","show"],t=["upperLabel","height"],i={seriesType:"treemap",reset:function(I,_,L,D){var N=L.getWidth(),R=L.getHeight(),B=I.option,M=m.getLayoutRect(I.getBoxLayoutParams(),{width:L.getWidth(),height:L.getHeight()}),H=B.size||[],F=v(r(M.width,H[0]),N),K=v(r(M.height,H[1]),R),j=D&&D.type,V=["treemapZoomToNode","treemapRootToNode"],z=f.retrieveTargetInfo(D,V,I),Y=j==="treemapRender"||j==="treemapMove"?D.rootRect:null,ee=I.getViewRoot(),fe=f.getPathToRoot(ee);if(j!=="treemapMove"){var ie=j==="treemapZoomToNode"?E(I,z,ee,F,K):Y?[Y.width,Y.height]:[F,K],we=B.sort;we&&we!=="asc"&&we!=="desc"&&(we="desc");var Ce={squareRatio:B.squareRatio,sort:we,leafDepth:B.leafDepth};ee.hostTree.clearLayouts();var Le={x:0,y:0,width:ie[0],height:ie[1],area:ie[0]*ie[1]};ee.setLayout(Le),l(ee,Ce,!1,0);var Le=ee.getLayout();a(fe,function(ce,Pe){var Q=(fe[Pe+1]||ee).getValue();ce.setLayout(O.extend({dataExtent:[Q,Q],borderWidth:0,upperHeight:0},Le))})}var He=I.getData().tree.root;He.setLayout(C(M,Y,z),!0),I.setLayoutInfo(M),w(He,new x(-M.x,-M.y,N,R),fe,ee,0)}};function l(I,_,L,D){var N,R;if(I.isRemoved())return;var B=I.getLayout();N=B.width,R=B.height;var M=I.getModel(),H=M.get(n),F=M.get(e)/2,K=b(M),j=Math.max(H,K),V=H-F,z=j-F,M=I.getModel();I.setLayout({borderWidth:H,upperHeight:j,upperLabelHeight:K},!0),N=c(N-2*V,0),R=c(R-V-z,0);var Y=N*R,ee=u(I,M,Y,_,L,D);if(!ee.length)return;var fe={x:V,y:z,width:N,height:R},ie=o(N,R),we=Infinity,Ce=[];Ce.area=0;for(var Le=0,He=ee.length;Le<He;){var ce=ee[Le];Ce.push(ce),Ce.area+=ce.getLayout().area;var Pe=A(Ce,ie,_.squareRatio);Pe<=we?(Le++,we=Pe):(Ce.area-=Ce.pop().getLayout().area,y(Ce,ie,fe,F,!1),ie=o(fe.width,fe.height),Ce.length=Ce.area=0,we=Infinity)}if(Ce.length&&y(Ce,ie,fe,F,!0),!L){var Q=M.get("childrenVisibleMin");Q!=null&&Y<Q&&(L=!0)}for(var Le=0,He=ee.length;Le<He;Le++)l(ee[Le],_,L,D+1)}function u(I,_,L,D,N,R){var B=I.children||[],M=D.sort;M!=="asc"&&M!=="desc"&&(M=null);var H=D.leafDepth!=null&&D.leafDepth<=R;if(N&&!H)return I.viewChildren=[];B=O.filter(B,function(z){return!z.isRemoved()}),p(B,M);var F=g(_,B,M);if(F.sum===0)return I.viewChildren=[];if(F.sum=h(_,L,F.sum,M,B),F.sum===0)return I.viewChildren=[];for(var K=0,j=B.length;K<j;K++){var V=B[K].getValue()/F.sum*L;B[K].setLayout({area:V})}return H&&(B.length&&I.setLayout({isLeafRoot:!0},!0),B.length=0),I.viewChildren=B,I.setLayout({dataExtent:F.dataExtent},!0),B}function h(I,_,L,D,N){if(!D)return L;for(var R=I.get("visibleMin"),B=N.length,M=B,H=B-1;H>=0;H--){var F=N[D==="asc"?B-H-1:H].getValue();F/L*_<R&&(M=H,L-=F)}return D==="asc"?N.splice(0,B-M):N.splice(M,B-M),L}function p(I,_){return _&&I.sort(function(L,D){var N=_==="asc"?L.getValue()-D.getValue():D.getValue()-L.getValue();return N===0?_==="asc"?L.dataIndex-D.dataIndex:D.dataIndex-L.dataIndex:N}),I}function g(I,_,L){for(var D=0,N=0,R=_.length;N<R;N++)D+=_[N].getValue();var B=I.get("visualDimension"),M;if(!_||!_.length)M=[NaN,NaN];else if(B==="value"&&L)M=[_[_.length-1].getValue(),_[0].getValue()],L==="asc"&&M.reverse();else{var M=[Infinity,-Infinity];a(_,function(F){var K=F.getValue(B);K<M[0]&&(M[0]=K),K>M[1]&&(M[1]=K)})}return{sum:D,dataExtent:M}}function A(I,_,L){for(var D=0,N=Infinity,R=0,B,M=I.length;R<M;R++)B=I[R].getLayout().area,B&&(B<N&&(N=B),B>D&&(D=B));var H=I.area*I.area,F=_*_*L;return H?c(F*D/H,H/(F*N)):Infinity}function y(I,_,L,D,N){var R=_===L.width?0:1,B=1-R,M=["x","y"],H=["width","height"],F=L[M[R]],K=_?I.area/_:0;(N||K>L[H[B]])&&(K=L[H[B]]);for(var j=0,V=I.length;j<V;j++){var z=I[j],Y={},ee=K?z.getLayout().area/K:0,fe=Y[H[B]]=c(K-2*D,0),ie=L[M[R]]+L[H[R]]-F,we=j===V-1||ie<ee?ie:ee,Ce=Y[H[R]]=c(we-2*D,0);Y[M[B]]=L[M[B]]+o(D,fe/2),Y[M[R]]=F+o(D,Ce/2),F+=we,z.setLayout(Y,!0)}L[M[B]]+=K,L[H[B]]-=K}function E(I,_,L,D,N){var R=(_||{}).node,B=[D,N];if(!R||R===L)return B;for(var M,H=D*N,F=H*I.option.zoomToNodeRatio;M=R.parentNode;){for(var K=0,j=M.children,V=0,z=j.length;V<z;V++)K+=j[V].getValue();var Y=R.getValue();if(Y===0)return B;F*=K/Y;var ee=M.getModel(),fe=ee.get(n),ie=Math.max(fe,b(ee,fe));F+=4*fe*fe+(3*fe+ie)*Math.pow(F,.5),F>S&&(F=S),R=M}F<H&&(F=H);var we=Math.pow(F/H,.5);return[D*we,N*we]}function C(I,_,L){if(_)return{x:_.x,y:_.y};var D={x:0,y:0};if(!L)return D;var N=L.node,R=N.getLayout();if(!R)return D;for(var B=[R.width/2,R.height/2],M=N;M;){var H=M.getLayout();B[0]+=H.x,B[1]+=H.y,M=M.parentNode}return{x:I.width/2-B[0],y:I.height/2-B[1]}}function w(I,_,L,D,N){var R=I.getLayout(),B=L[N],M=B&&B===I;if(B&&!M||N===L.length&&I!==D)return;I.setLayout({isInView:!0,invisible:!M&&!_.intersect(R),isAboveViewRoot:M},!0);var H=new x(_.x-R.x,_.y-R.y,_.width,_.height);a(I.viewChildren||[],function(F){w(F,H,L,D,N+1)})}function b(I){return I.get(s)?I.get(t):0}U.exports=i},nPnh:function(U,P){var d=Math.round;function O(v,S,m){if(!S)return;var f=S.x1,c=S.x2,o=S.y1,r=S.y2;v.x1=f,v.x2=c,v.y1=o,v.y2=r;var a=m&&m.lineWidth;if(!a)return;d(f*2)===d(c*2)&&(v.x1=v.x2=T(f,a,!0)),d(o*2)===d(r*2)&&(v.y1=v.y2=T(o,a,!0))}function x(v,S,m){if(!S)return;var f=S.x,c=S.y,o=S.width,r=S.height;v.x=f,v.y=c,v.width=o,v.height=r;var a=m&&m.lineWidth;if(!a)return;v.x=T(f,a,!0),v.y=T(c,a,!0),v.width=Math.max(T(f+o,a,!1)-v.x,o===0?0:1),v.height=Math.max(T(c+r,a,!1)-v.y,r===0?0:1)}function T(v,S,m){if(!S)return v;var f=d(v*2);return(f+d(S))%2===0?f/2:(f+(m?1:-1))/2}P.subPixelOptimizeLine=O,P.subPixelOptimizeRect=x,P.subPixelOptimize=T},nRaC:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("0fbx"),v=d.n(T),S=d("OaEy"),m=d("R9oj")},nVfU:function(U,P,d){var O=d("bYtY"),x=d("OELB"),T=x.parsePercent,v=d("7hqr"),S=v.isDimensionStacked,m=d("zM3Q"),f="__ec_stack_",c=.5,o=typeof Float32Array!="undefined"?Float32Array:Array;function r(y){return y.get("stack")||f+y.seriesIndex}function a(y){return y.dim+y.index}function n(y){var E=[],C=y.axis,w="axis0";if(C.type!=="category")return;for(var b=C.getBandWidth(),I=0;I<y.count||0;I++)E.push(O.defaults({bandWidth:b,axisKey:w,stackId:f+I},y));for(var _=i(E),L=[],I=0;I<y.count;I++){var D=_[w][f+I];D.offsetCenter=D.offset+D.width/2,L.push(D)}return L}function e(y,E){var C=[];return E.eachSeriesByType(y,function(w){p(w)&&!g(w)&&C.push(w)}),C}function s(y){var E={};O.each(y,function(D){var N=D.coordinateSystem,R=N.getBaseAxis();if(R.type!=="time"&&R.type!=="value")return;for(var B=D.getData(),M=R.dim+"_"+R.index,H=B.mapDimension(R.dim),F=0,K=B.count();F<K;++F){var j=B.get(H,F);E[M]?E[M].push(j):E[M]=[j]}});var C=[];for(var w in E)if(E.hasOwnProperty(w)){var b=E[w];if(b){b.sort(function(D,N){return D-N});for(var I=null,_=1;_<b.length;++_){var L=b[_]-b[_-1];L>0&&(I=I===null?L:Math.min(I,L))}C[w]=I}}return C}function t(y){var E=s(y),C=[];return O.each(y,function(w){var b=w.coordinateSystem,I=b.getBaseAxis(),_=I.getExtent(),L;if(I.type==="category")L=I.getBandWidth();else if(I.type==="value"||I.type==="time"){var D=I.dim+"_"+I.index,N=E[D],R=Math.abs(_[1]-_[0]),B=I.scale.getExtent(),M=Math.abs(B[1]-B[0]);L=N?R/M*N:R}else{var H=w.getData();L=Math.abs(_[1]-_[0])/H.count()}var F=T(w.get("barWidth"),L),K=T(w.get("barMaxWidth"),L),j=T(w.get("barMinWidth")||1,L),V=w.get("barGap"),z=w.get("barCategoryGap");C.push({bandWidth:L,barWidth:F,barMaxWidth:K,barMinWidth:j,barGap:V,barCategoryGap:z,axisKey:a(I),stackId:r(w)})}),i(C)}function i(y){var E={};O.each(y,function(w,b){var I=w.axisKey,_=w.bandWidth,L=E[I]||{bandWidth:_,remainedWidth:_,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},D=L.stacks;E[I]=L;var N=w.stackId;D[N]||L.autoWidthCount++,D[N]=D[N]||{width:0,maxWidth:0};var R=w.barWidth;R&&!D[N].width&&(D[N].width=R,R=Math.min(L.remainedWidth,R),L.remainedWidth-=R);var B=w.barMaxWidth;B&&(D[N].maxWidth=B);var M=w.barMinWidth;M&&(D[N].minWidth=M);var H=w.barGap;H!=null&&(L.gap=H);var F=w.barCategoryGap;F!=null&&(L.categoryGap=F)});var C={};return O.each(E,function(w,b){C[b]={};var I=w.stacks,_=w.bandWidth,L=T(w.categoryGap,_),D=T(w.gap,1),N=w.remainedWidth,R=w.autoWidthCount,B=(N-L)/(R+(R-1)*D);B=Math.max(B,0),O.each(I,function(K){var j=K.maxWidth,V=K.minWidth;if(K.width){var z=K.width;j&&(z=Math.min(z,j)),V&&(z=Math.max(z,V)),K.width=z,N-=z+D*z,R--}else{var z=B;j&&j<z&&(z=Math.min(j,N)),V&&V>z&&(z=V),z!==B&&(K.width=z,N-=z+D*z,R--)}}),B=(N-L)/(R+(R-1)*D),B=Math.max(B,0);var M=0,H;O.each(I,function(K,j){K.width||(K.width=B),H=K,M+=K.width*(1+D)}),H&&(M-=H.width*D);var F=-M/2;O.each(I,function(K,j){C[b][j]=C[b][j]||{bandWidth:_,offset:F,width:K.width},F+=K.width*(1+D)})}),C}function l(y,E,C){if(y&&E){var w=y[a(E)];return w!=null&&C!=null&&(w=w[r(C)]),w}}function u(y,E){var C=e(y,E),w=t(C),b={},I={};O.each(C,function(_){var L=_.getData(),D=_.coordinateSystem,N=D.getBaseAxis(),R=r(_),B=w[a(N)][R],M=B.offset,H=B.width,F=D.getOtherAxis(N),K=_.get("barMinHeight")||0;b[R]=b[R]||[],I[R]=I[R]||[],L.setLayout({bandWidth:B.bandWidth,offset:M,size:H});for(var j=L.mapDimension(F.dim),V=L.mapDimension(N.dim),z=S(L,j),Y=F.isHorizontal(),ee=A(N,F,z),fe=0,ie=L.count();fe<ie;fe++){var we=L.get(j,fe),Ce=L.get(V,fe),Le=we>=0?"p":"n",He=ee;z&&(b[R][Ce]||(b[R][Ce]={p:ee,n:ee}),He=b[R][Ce][Le]);var ce,Pe,Q,me;if(Y){var Je=D.dataToPoint([we,Ce]);ce=He,Pe=Je[1]+M,Q=Je[0]-ee,me=H,Math.abs(Q)<K&&(Q=(Q<0?-1:1)*K),isNaN(Q)||z&&(b[R][Ce][Le]+=Q)}else{var Je=D.dataToPoint([Ce,we]);ce=Je[0]+M,Pe=He,Q=H,me=Je[1]-ee,Math.abs(me)<K&&(me=(me<=0?-1:1)*K),isNaN(me)||z&&(b[R][Ce][Le]+=me)}L.setItemLayout(fe,{x:ce,y:Pe,width:Q,height:me})}},this)}var h={seriesType:"bar",plan:m(),reset:function(y){if(!p(y)||!g(y))return;var E=y.getData(),C=y.coordinateSystem,w=C.grid.getRect(),b=C.getBaseAxis(),I=C.getOtherAxis(b),_=E.mapDimension(I.dim),L=E.mapDimension(b.dim),D=I.isHorizontal(),N=D?0:1,R=l(t([y]),b,y).width;return R>c||(R=c),{progress:B};function B(M,H){for(var F=M.count,K=new o(F*2),j=new o(F*2),V=new o(F),z,Y=[],ee=[],fe=0,ie=0;(z=M.next())!=null;)ee[N]=H.get(_,z),ee[1-N]=H.get(L,z),Y=C.dataToPoint(ee,null,Y),j[fe]=D?w.x+w.width:Y[0],K[fe++]=Y[0],j[fe]=D?Y[1]:w.y+w.height,K[fe++]=Y[1],V[ie++]=z;H.setLayout({largePoints:K,largeDataIndices:V,largeBackgroundPoints:j,barWidth:R,valueAxisStart:A(b,I,!1),backgroundStart:D?w.x:w.y,valueAxisHorizontal:D})}}};function p(y){return y.coordinateSystem&&y.coordinateSystem.type==="cartesian2d"}function g(y){return y.pipelineContext&&y.pipelineContext.large}function A(y,E,C){return E.toGlobalCoord(E.dataToCoord(E.type==="log"?1:0))}P.getLayoutOnAxis=n,P.prepareLayoutBarSeries=e,P.makeColumnLayout=t,P.retrieveColumnLayout=l,P.layout=u,P.largeLayout=h},ngQI:function(U,P,d){"use strict";d.d(P,"a",function(){return Su}),d.d(P,"b",function(){return Bu}),d.d(P,"c",function(){return Gr});var O=d("q1tI"),x=d.n(O),T=d("dI71"),v=d("wx14"),S=d("ANjH"),m=d("/MKj");function f(_e,te){if(_e.length!==te.length)return!1;for(var ye=0;ye<_e.length;ye++)if(_e[ye]!==te[ye])return!1;return!0}function c(_e,te){var ye=Object(O.useState)(function(){return{inputs:te,result:_e()}})[0],Ge=Object(O.useRef)(!0),lt=Object(O.useRef)(ye),Rt=Ge.current||Boolean(te&<.current.inputs&&f(te,lt.current.inputs)),Kt=Rt?lt.current:{inputs:te,result:_e()};return Object(O.useEffect)(function(){Ge.current=!1,lt.current=Kt},[Kt]),Kt.result}function o(_e,te){return c(function(){return _e},te)}var r=c,a=o,n=d("9R94"),e=function(te){var ye=te.top,Ge=te.right,lt=te.bottom,Rt=te.left,Kt=Ge-Rt,Vt=lt-ye,Lr={top:ye,right:Ge,bottom:lt,left:Rt,width:Kt,height:Vt,x:Rt,y:ye,center:{x:(Ge+Rt)/2,y:(lt+ye)/2}};return Lr},s=function(te,ye){return{top:te.top-ye.top,left:te.left-ye.left,bottom:te.bottom+ye.bottom,right:te.right+ye.right}},t=function(te,ye){return{top:te.top+ye.top,left:te.left+ye.left,bottom:te.bottom-ye.bottom,right:te.right-ye.right}},i=function(te,ye){return{top:te.top+ye.y,left:te.left+ye.x,bottom:te.bottom+ye.y,right:te.right+ye.x}},l={top:0,right:0,bottom:0,left:0},u=function(te){var ye=te.borderBox,Ge=te.margin,lt=Ge===void 0?l:Ge,Rt=te.border,Kt=Rt===void 0?l:Rt,Vt=te.padding,Lr=Vt===void 0?l:Vt,Jr=e(s(ye,lt)),Or=e(t(ye,Kt)),Sr=e(t(Or,Lr));return{marginBox:Jr,borderBox:e(ye),paddingBox:Or,contentBox:Sr,margin:lt,border:Kt,padding:Lr}},h=function(te){var ye=te.slice(0,-2),Ge=te.slice(-2);if(Ge!=="px")return 0;var lt=Number(ye);return isNaN(lt)&&Object(n.a)(!1),lt},p=function(){return{x:window.pageXOffset,y:window.pageYOffset}},g=function(te,ye){var Ge=te.borderBox,lt=te.border,Rt=te.margin,Kt=te.padding,Vt=i(Ge,ye);return u({borderBox:Vt,border:lt,margin:Rt,padding:Kt})},A=function(te,ye){return ye===void 0&&(ye=p()),g(te,ye)},y=function(te,ye){var Ge={top:h(ye.marginTop),right:h(ye.marginRight),bottom:h(ye.marginBottom),left:h(ye.marginLeft)},lt={top:h(ye.paddingTop),right:h(ye.paddingRight),bottom:h(ye.paddingBottom),left:h(ye.paddingLeft)},Rt={top:h(ye.borderTopWidth),right:h(ye.borderRightWidth),bottom:h(ye.borderBottomWidth),left:h(ye.borderLeftWidth)};return u({borderBox:te,margin:Ge,padding:lt,border:Rt})},E=function(te){var ye=te.getBoundingClientRect(),Ge=window.getComputedStyle(te);return y(ye,Ge)},C=Number.isNaN||function(te){return typeof te=="number"&&te!==te};function w(_e,te){return _e===te?!0:!!(C(_e)&&C(te))}function b(_e,te){if(_e.length!==te.length)return!1;for(var ye=0;ye<_e.length;ye++)if(!w(_e[ye],te[ye]))return!1;return!0}function I(_e,te){te===void 0&&(te=b);var ye,Ge=[],lt,Rt=!1;function Kt(){for(var Vt=[],Lr=0;Lr<arguments.length;Lr++)Vt[Lr]=arguments[Lr];return Rt&&ye===this&&te(Vt,Ge)||(lt=_e.apply(this,Vt),Rt=!0,ye=this,Ge=Vt),lt}return Kt}var _=I,L=function(te){var ye=[],Ge=null,lt=function(){for(var Kt=arguments.length,Vt=new Array(Kt),Lr=0;Lr<Kt;Lr++)Vt[Lr]=arguments[Lr];if(ye=Vt,Ge)return;Ge=requestAnimationFrame(function(){Ge=null,te.apply(void 0,ye)})};return lt.cancel=function(){if(!Ge)return;cancelAnimationFrame(Ge),Ge=null},lt},D=L,N=d("i8i4"),R=d.n(N),B=!0,M=/[ \t]{2,}/g,H=/^[ \t]*/gm,F=function(te){return te.replace(M," ").replace(H,"").trim()},K=function(te){return F(`
|
|
|
%creact-beautiful-dnd
|
|
|
|
|
|
%c`+F(te)+`
|
|
|
|
|
|
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
|
|
|
`)},j=function(te){return[K(te),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},V="__react-beautiful-dnd-disable-dev-warnings";function z(_e,te){var ye;if(B)return;if(typeof window!="undefined"&&window[V])return;(ye=console)[_e].apply(ye,j(te))}var Y=z.bind(null,"warn"),ee=z.bind(null,"error");function fe(){}function ie(_e,te){return Object(v.a)({},_e,{},te)}function we(_e,te,ye){var Ge=te.map(function(lt){var Rt=ie(ye,lt.options);return _e.addEventListener(lt.eventName,lt.fn,Rt),function(){_e.removeEventListener(lt.eventName,lt.fn,Rt)}});return function(){Ge.forEach(function(Rt){Rt()})}}var Ce=!0,Le="Invariant failed";function He(_e){this.message=_e}He.prototype.toString=function(){return this.message};function ce(_e,te){if(_e)return;throw Ce?new He(Le):new He(Le+": "+(te||""))}var Pe=function(_e){Object(T.a)(te,_e);function te(){for(var Ge,lt=arguments.length,Rt=new Array(lt),Kt=0;Kt<lt;Kt++)Rt[Kt]=arguments[Kt];return Ge=_e.call.apply(_e,[this].concat(Rt))||this,Ge.callbacks=null,Ge.unbind=fe,Ge.onWindowError=function(Vt){var Lr=Ge.getCallbacks();Lr.isDragging()&&Lr.tryAbort();var Jr=Vt.error;Jr instanceof He&&Vt.preventDefault()},Ge.getCallbacks=function(){if(!Ge.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return Ge.callbacks},Ge.setCallbacks=function(Vt){Ge.callbacks=Vt},Ge}var ye=te.prototype;return ye.componentDidMount=function(){this.unbind=we(window,[{eventName:"error",fn:this.onWindowError}])},ye.componentWillUnmount=function(){this.unbind()},ye.componentDidCatch=function(lt){if(lt instanceof He){this.setState({});return}throw lt},ye.render=function(){return this.props.children(this.setCallbacks)},te}(x.a.Component),Q=`
|
|
|
Press space bar to start a drag.
|
|
|
When dragging you can use the arrow keys to move the item around and escape to cancel.
|
|
|
Some screen readers may require you to be in focus mode or to use your pass through key
|
|
|
`,me=function(te){return te+1},Je=function(te){return`
|
|
|
You have lifted an item in position `+me(te.source.index)+`
|
|
|
`},re=function(te,ye){var Ge=te.droppableId===ye.droppableId,lt=me(te.index),Rt=me(ye.index);return Ge?`
|
|
|
You have moved the item from position `+lt+`
|
|
|
to position `+Rt+`
|
|
|
`:`
|
|
|
You have moved the item from position `+lt+`
|
|
|
in list `+te.droppableId+`
|
|
|
to list `+ye.droppableId+`
|
|
|
in position `+Rt+`
|
|
|
`},G=function(te,ye,Ge){var lt=ye.droppableId===Ge.droppableId;return lt?`
|
|
|
The item `+te+`
|
|
|
has been combined with `+Ge.draggableId:`
|
|
|
The item `+te+`
|
|
|
in list `+ye.droppableId+`
|
|
|
has been combined with `+Ge.draggableId+`
|
|
|
in list `+Ge.droppableId+`
|
|
|
`},X=function(te){var ye=te.destination;if(ye)return re(te.source,ye);var Ge=te.combine;return Ge?G(te.draggableId,te.source,Ge):"You are over an area that cannot be dropped on"},J=function(te){return`
|
|
|
The item has returned to its starting position
|
|
|
of `+me(te.index)+`
|
|
|
`},Ae=function(te){if(te.reason==="CANCEL")return`
|
|
|
Movement cancelled.
|
|
|
`+J(te.source)+`
|
|
|
`;var ye=te.destination,Ge=te.combine;return ye?`
|
|
|
You have dropped the item.
|
|
|
`+re(te.source,ye)+`
|
|
|
`:Ge?`
|
|
|
You have dropped the item.
|
|
|
`+G(te.draggableId,te.source,Ge)+`
|
|
|
`:`
|
|
|
The item has been dropped while not over a drop area.
|
|
|
`+J(te.source)+`
|
|
|
`},he={dragHandleUsageInstructions:Q,onDragStart:Je,onDragUpdate:X,onDragEnd:Ae},Me={x:0,y:0},Ie=function(te,ye){return{x:te.x+ye.x,y:te.y+ye.y}},oe=function(te,ye){return{x:te.x-ye.x,y:te.y-ye.y}},pe=function(te,ye){return te.x===ye.x&&te.y===ye.y},Oe=function(te){return{x:te.x!==0?-te.x:0,y:te.y!==0?-te.y:0}},Ye=function(te,ye,Ge){var lt;return Ge===void 0&&(Ge=0),lt={},lt[te]=ye,lt[te==="x"?"y":"x"]=Ge,lt},it=function(te,ye){return Math.sqrt(Math.pow(ye.x-te.x,2)+Math.pow(ye.y-te.y,2))},et=function(te,ye){return Math.min.apply(Math,ye.map(function(Ge){return it(te,Ge)}))},Te=function(te){return function(ye){return{x:te(ye.x),y:te(ye.y)}}},tt=function(te,ye){var Ge=e({top:Math.max(ye.top,te.top),right:Math.min(ye.right,te.right),bottom:Math.min(ye.bottom,te.bottom),left:Math.max(ye.left,te.left)});return Ge.width<=0||Ge.height<=0?null:Ge},ze=function(te,ye){return{top:te.top+ye.y,left:te.left+ye.x,bottom:te.bottom+ye.y,right:te.right+ye.x}},dt=function(te){return[{x:te.left,y:te.top},{x:te.right,y:te.top},{x:te.left,y:te.bottom},{x:te.right,y:te.bottom}]},Ot={top:0,right:0,bottom:0,left:0},Tt=function(te,ye){return ye?ze(te,ye.scroll.diff.displacement):te},Ct=function(te,ye,Ge){if(Ge&&Ge.increasedBy){var lt;return Object(v.a)({},te,(lt={},lt[ye.end]=te[ye.end]+Ge.increasedBy[ye.line],lt))}return te},Nt=function(te,ye){return ye&&ye.shouldClipSubject?tt(ye.pageMarginBox,te):e(te)},Be=function(te){var ye=te.page,Ge=te.withPlaceholder,lt=te.axis,Rt=te.frame,Kt=Tt(ye.marginBox,Rt),Vt=Ct(Kt,lt,Ge),Lr=Nt(Vt,Rt);return{page:ye,withPlaceholder:Ge,active:Lr}},$=function(te,ye){te.frame||ce(!1);var Ge=te.frame,lt=oe(ye,Ge.scroll.initial),Rt=Oe(lt),Kt=Object(v.a)({},Ge,{scroll:{initial:Ge.scroll.initial,current:ye,diff:{value:lt,displacement:Rt},max:Ge.scroll.max}}),Vt=Be({page:te.subject.page,withPlaceholder:te.subject.withPlaceholder,axis:te.axis,frame:Kt}),Lr=Object(v.a)({},te,{frame:Kt,subject:Vt});return Lr};function Z(_e){return Number.isInteger?Number.isInteger(_e):typeof _e=="number"&&isFinite(_e)&&Math.floor(_e)===_e}function Re(_e){return Object.values?Object.values(_e):Object.keys(_e).map(function(te){return _e[te]})}function De(_e,te){if(_e.findIndex)return _e.findIndex(te);for(var ye=0;ye<_e.length;ye++)if(te(_e[ye]))return ye;return-1}function ae(_e,te){if(_e.find)return _e.find(te);var ye=De(_e,te);return ye!==-1?_e[ye]:void 0}function gt(_e){return Array.prototype.slice.call(_e)}var jt=_(function(_e){return _e.reduce(function(te,ye){return te[ye.descriptor.id]=ye,te},{})}),ut=_(function(_e){return _e.reduce(function(te,ye){return te[ye.descriptor.id]=ye,te},{})}),rr=_(function(_e){return Re(_e)}),pr=_(function(_e){return Re(_e)}),nn=_(function(_e,te){var ye=pr(te).filter(function(Ge){return _e===Ge.descriptor.droppableId}).sort(function(Ge,lt){return Ge.descriptor.index-lt.descriptor.index});return ye});function mr(_e){return _e.at&&_e.at.type==="REORDER"?_e.at.destination:null}function vr(_e){return _e.at&&_e.at.type==="COMBINE"?_e.at.combine:null}var $t=_(function(_e,te){return te.filter(function(ye){return ye.descriptor.id!==_e.descriptor.id})}),Xt=function(te){var ye=te.isMovingForward,Ge=te.draggable,lt=te.destination,Rt=te.insideDestination,Kt=te.previousImpact;if(!lt.isCombineEnabled)return null;var Vt=mr(Kt);if(!Vt)return null;function Lr(Ai){var Vi={type:"COMBINE",combine:{draggableId:Ai,droppableId:lt.descriptor.id}};return Object(v.a)({},Kt,{at:Vi})}var Jr=Kt.displaced.all,Or=Jr.length?Jr[0]:null;if(ye)return Or?Lr(Or):null;var Sr=$t(Ge,Rt);if(!Or){if(!Sr.length)return null;var Vr=Sr[Sr.length-1];return Lr(Vr.descriptor.id)}var qr=De(Sr,function(Ai){return Ai.descriptor.id===Or});qr!==-1||ce(!1);var Tn=qr-1;if(Tn<0)return null;var ci=Sr[Tn];return Lr(ci.descriptor.id)},ft=function(te,ye){return te.descriptor.droppableId===ye.descriptor.id},Ur={point:Me,value:0},yn={invisible:{},visible:{},all:[]},Dn={displaced:yn,displacedBy:Ur,at:null},Un=function(te,ye){return function(Ge){return te<=Ge&&Ge<=ye}},wi=function(te){var ye=Un(te.top,te.bottom),Ge=Un(te.left,te.right);return function(lt){var Rt=ye(lt.top)&&ye(lt.bottom)&&Ge(lt.left)&&Ge(lt.right);if(Rt)return!0;var Kt=ye(lt.top)||ye(lt.bottom),Vt=Ge(lt.left)||Ge(lt.right),Lr=Kt&&Vt;if(Lr)return!0;var Jr=lt.top<te.top&<.bottom>te.bottom,Or=lt.left<te.left&<.right>te.right,Sr=Jr&⩔if(Sr)return!0;var Vr=Jr&&Vt||Or&&Kt;return Vr}},Rn=function(te){var ye=Un(te.top,te.bottom),Ge=Un(te.left,te.right);return function(lt){var Rt=ye(lt.top)&&ye(lt.bottom)&&Ge(lt.left)&&Ge(lt.right);return Rt}},kn={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Vn={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Gt=function(te){return function(ye){var Ge=Un(ye.top,ye.bottom),lt=Un(ye.left,ye.right);return function(Rt){return te===kn?Ge(Rt.top)&&Ge(Rt.bottom):lt(Rt.left)&<(Rt.right)}}},st=function(te,ye){var Ge=ye.frame?ye.frame.scroll.diff.displacement:Me;return ze(te,Ge)},ue=function(te,ye,Ge){return ye.subject.active?Ge(ye.subject.active)(te):!1},Ee=function(te,ye,Ge){return Ge(ye)(te)},je=function(te){var ye=te.target,Ge=te.destination,lt=te.viewport,Rt=te.withDroppableDisplacement,Kt=te.isVisibleThroughFrameFn,Vt=Rt?st(ye,Ge):ye;return ue(Vt,Ge,Kt)&&Ee(Vt,lt,Kt)},Ve=function(te){return je(Object(v.a)({},te,{isVisibleThroughFrameFn:wi}))},$e=function(te){return je(Object(v.a)({},te,{isVisibleThroughFrameFn:Rn}))},wt=function(te){return je(Object(v.a)({},te,{isVisibleThroughFrameFn:Gt(te.destination.axis)}))},qt=function(te,ye,Ge){if(typeof Ge=="boolean")return Ge;if(!ye)return!0;var lt=ye.invisible,Rt=ye.visible;if(lt[te])return!1;var Kt=Rt[te];return Kt?Kt.shouldAnimate:!0};function Mr(_e,te){var ye=_e.page.marginBox,Ge={top:te.point.y,right:0,bottom:0,left:te.point.x};return e(s(ye,Ge))}function an(_e){var te=_e.afterDragging,ye=_e.destination,Ge=_e.displacedBy,lt=_e.viewport,Rt=_e.forceShouldAnimate,Kt=_e.last;return te.reduce(function(Lr,Jr){var Or=Mr(Jr,Ge),Sr=Jr.descriptor.id;Lr.all.push(Sr);var Vr=Ve({target:Or,destination:ye,viewport:lt,withDroppableDisplacement:!0});if(!Vr)return Lr.invisible[Jr.descriptor.id]=!0,Lr;var qr=qt(Sr,Kt,Rt),Tn={draggableId:Sr,shouldAnimate:qr};return Lr.visible[Sr]=Tn,Lr},{all:[],visible:{},invisible:{}})}function _t(_e,te){if(!_e.length)return 0;var ye=_e[_e.length-1].descriptor.index;return te.inHomeList?ye:ye+1}function at(_e){var te=_e.insideDestination,ye=_e.inHomeList,Ge=_e.displacedBy,lt=_e.destination,Rt=_t(te,{inHomeList:ye});return{displaced:yn,displacedBy:Ge,at:{type:"REORDER",destination:{droppableId:lt.descriptor.id,index:Rt}}}}function bt(_e){var te=_e.draggable,ye=_e.insideDestination,Ge=_e.destination,lt=_e.viewport,Rt=_e.displacedBy,Kt=_e.last,Vt=_e.index,Lr=_e.forceShouldAnimate,Jr=ft(te,Ge);if(Vt==null)return at({insideDestination:ye,inHomeList:Jr,displacedBy:Rt,destination:Ge});var Or=ae(ye,function(ci){return ci.descriptor.index===Vt});if(!Or)return at({insideDestination:ye,inHomeList:Jr,displacedBy:Rt,destination:Ge});var Sr=$t(te,ye),Vr=ye.indexOf(Or),qr=Sr.slice(Vr),Tn=an({afterDragging:qr,destination:Ge,displacedBy:Rt,last:Kt,viewport:lt.frame,forceShouldAnimate:Lr});return{displaced:Tn,displacedBy:Rt,at:{type:"REORDER",destination:{droppableId:Ge.descriptor.id,index:Vt}}}}function kt(_e,te){return Boolean(te.effected[_e])}var Pt=function(te){var ye=te.isMovingForward,Ge=te.destination,lt=te.draggables,Rt=te.combine,Kt=te.afterCritical;if(!Ge.isCombineEnabled)return null;var Vt=Rt.draggableId,Lr=lt[Vt],Jr=Lr.descriptor.index,Or=kt(Vt,Kt);return Or?ye?Jr:Jr-1:ye?Jr+1:Jr},Et=function(te){var ye=te.isMovingForward,Ge=te.isInHomeList,lt=te.insideDestination,Rt=te.location;if(!lt.length)return null;var Kt=Rt.index,Vt=ye?Kt+1:Kt-1,Lr=lt[0].descriptor.index,Jr=lt[lt.length-1].descriptor.index,Or=Ge?Jr:Jr+1;return Vt<Lr||Vt>Or?null:Vt},Ht=function(te){var ye=te.isMovingForward,Ge=te.isInHomeList,lt=te.draggable,Rt=te.draggables,Kt=te.destination,Vt=te.insideDestination,Lr=te.previousImpact,Jr=te.viewport,Or=te.afterCritical,Sr=Lr.at;if(Sr||ce(!1),Sr.type==="REORDER"){var Vr=Et({isMovingForward:ye,isInHomeList:Ge,location:Sr.destination,insideDestination:Vt});return Vr==null?null:bt({draggable:lt,insideDestination:Vt,destination:Kt,viewport:Jr,last:Lr.displaced,displacedBy:Lr.displacedBy,index:Vr})}var qr=Pt({isMovingForward:ye,destination:Kt,displaced:Lr.displaced,draggables:Rt,combine:Sr.combine,afterCritical:Or});return qr==null?null:bt({draggable:lt,insideDestination:Vt,destination:Kt,viewport:Jr,last:Lr.displaced,displacedBy:Lr.displacedBy,index:qr})},ot=function(te){var ye=te.displaced,Ge=te.afterCritical,lt=te.combineWith,Rt=te.displacedBy,Kt=Boolean(ye.visible[lt]||ye.invisible[lt]);return kt(lt,Ge)?Kt?Me:Oe(Rt.point):Kt?Rt.point:Me},Mt=function(te){var ye=te.afterCritical,Ge=te.impact,lt=te.draggables,Rt=vr(Ge);Rt||ce(!1);var Kt=Rt.draggableId,Vt=lt[Kt].page.borderBox.center,Lr=ot({displaced:Ge.displaced,afterCritical:ye,combineWith:Kt,displacedBy:Ge.displacedBy});return Ie(Vt,Lr)},xr=function(te,ye){return ye.margin[te.start]+ye.borderBox[te.size]/2},ur=function(te,ye){return ye.margin[te.end]+ye.borderBox[te.size]/2},gr=function(te,ye,Ge){return ye[te.crossAxisStart]+Ge.margin[te.crossAxisStart]+Ge.borderBox[te.crossAxisSize]/2},Qr=function(te){var ye=te.axis,Ge=te.moveRelativeTo,lt=te.isMoving;return Ye(ye.line,Ge.marginBox[ye.end]+xr(ye,lt),gr(ye,Ge.marginBox,lt))},ln=function(te){var ye=te.axis,Ge=te.moveRelativeTo,lt=te.isMoving;return Ye(ye.line,Ge.marginBox[ye.start]-ur(ye,lt),gr(ye,Ge.marginBox,lt))},_n=function(te){var ye=te.axis,Ge=te.moveInto,lt=te.isMoving;return Ye(ye.line,Ge.contentBox[ye.start]+xr(ye,lt),gr(ye,Ge.contentBox,lt))},Mn=function(te){var ye=te.impact,Ge=te.draggable,lt=te.draggables,Rt=te.droppable,Kt=te.afterCritical,Vt=nn(Rt.descriptor.id,lt),Lr=Ge.page,Jr=Rt.axis;if(!Vt.length)return _n({axis:Jr,moveInto:Rt.page,isMoving:Lr});var Or=ye.displaced,Sr=ye.displacedBy,Vr=Or.all[0];if(Vr){var qr=lt[Vr];if(kt(Vr,Kt))return ln({axis:Jr,moveRelativeTo:qr.page,isMoving:Lr});var Tn=g(qr.page,Sr.point);return ln({axis:Jr,moveRelativeTo:Tn,isMoving:Lr})}var ci=Vt[Vt.length-1];if(ci.descriptor.id===Ge.descriptor.id)return Lr.borderBox.center;if(kt(ci.descriptor.id,Kt)){var Ai=g(ci.page,Oe(Kt.displacedBy.point));return Qr({axis:Jr,moveRelativeTo:Ai,isMoving:Lr})}return Qr({axis:Jr,moveRelativeTo:ci.page,isMoving:Lr})},li=function(te,ye){var Ge=te.frame;return Ge?Ie(ye,Ge.scroll.diff.displacement):ye},ai=function(te){var ye=te.impact,Ge=te.draggable,lt=te.droppable,Rt=te.draggables,Kt=te.afterCritical,Vt=Ge.page.borderBox.center,Lr=ye.at;return lt&&Lr?Lr.type==="REORDER"?Mn({impact:ye,draggable:Ge,draggables:Rt,droppable:lt,afterCritical:Kt}):Mt({impact:ye,draggables:Rt,afterCritical:Kt}):Vt},pi=function(te){var ye=ai(te),Ge=te.droppable,lt=Ge?li(Ge,ye):ye;return lt},Oi=function(te,ye){var Ge=oe(ye,te.scroll.initial),lt=Oe(Ge),Rt=e({top:ye.y,bottom:ye.y+te.frame.height,left:ye.x,right:ye.x+te.frame.width}),Kt={frame:Rt,scroll:{initial:te.scroll.initial,max:te.scroll.max,current:ye,diff:{value:Ge,displacement:lt}}};return Kt};function Ze(_e,te){return _e.map(function(ye){return te[ye]})}function be(_e,te){for(var ye=0;ye<te.length;ye++){var Ge=te[ye].visible[_e];if(Ge)return Ge}return null}var Ne=function(te){var ye=te.impact,Ge=te.viewport,lt=te.destination,Rt=te.draggables,Kt=te.maxScrollChange,Vt=Oi(Ge,Ie(Ge.scroll.current,Kt)),Lr=lt.frame?$(lt,Ie(lt.frame.scroll.current,Kt)):lt,Jr=ye.displaced,Or=an({afterDragging:Ze(Jr.all,Rt),destination:lt,displacedBy:ye.displacedBy,viewport:Vt.frame,last:Jr,forceShouldAnimate:!1}),Sr=an({afterDragging:Ze(Jr.all,Rt),destination:Lr,displacedBy:ye.displacedBy,viewport:Ge.frame,last:Jr,forceShouldAnimate:!1}),Vr={},qr={},Tn=[Jr,Or,Sr];Jr.all.forEach(function(Ai){var Vi=be(Ai,Tn);if(Vi){qr[Ai]=Vi;return}Vr[Ai]=!0});var ci=Object(v.a)({},ye,{displaced:{all:Jr.all,invisible:Vr,visible:qr}});return ci},Ue=function(te,ye){return Ie(te.scroll.diff.displacement,ye)},Qe=function(te){var ye=te.pageBorderBoxCenter,Ge=te.draggable,lt=te.viewport,Rt=Ue(lt,ye),Kt=oe(Rt,Ge.page.borderBox.center);return Ie(Ge.client.borderBox.center,Kt)},Xe=function(te){var ye=te.draggable,Ge=te.destination,lt=te.newPageBorderBoxCenter,Rt=te.viewport,Kt=te.withDroppableDisplacement,Vt=te.onlyOnMainAxis,Lr=Vt===void 0?!1:Vt,Jr=oe(lt,ye.page.borderBox.center),Or=ze(ye.page.borderBox,Jr),Sr={target:Or,destination:Ge,withDroppableDisplacement:Kt,viewport:Rt};return Lr?wt(Sr):$e(Sr)},qe=function(te){var ye=te.isMovingForward,Ge=te.draggable,lt=te.destination,Rt=te.draggables,Kt=te.previousImpact,Vt=te.viewport,Lr=te.previousPageBorderBoxCenter,Jr=te.previousClientSelection,Or=te.afterCritical;if(!lt.isEnabled)return null;var Sr=nn(lt.descriptor.id,Rt),Vr=ft(Ge,lt),qr=Xt({isMovingForward:ye,draggable:Ge,destination:lt,insideDestination:Sr,previousImpact:Kt})||Ht({isMovingForward:ye,isInHomeList:Vr,draggable:Ge,draggables:Rt,destination:lt,insideDestination:Sr,previousImpact:Kt,viewport:Vt,afterCritical:Or});if(!qr)return null;var Tn=pi({impact:qr,draggable:Ge,droppable:lt,draggables:Rt,afterCritical:Or}),ci=Xe({draggable:Ge,destination:lt,newPageBorderBoxCenter:Tn,viewport:Vt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(ci){var Ai=Qe({pageBorderBoxCenter:Tn,draggable:Ge,viewport:Vt});return{clientSelection:Ai,impact:qr,scrollJumpRequest:null}}var Vi=oe(Tn,Lr),Ni=Ne({impact:qr,viewport:Vt,destination:lt,draggables:Rt,maxScrollChange:Vi});return{clientSelection:Jr,impact:Ni,scrollJumpRequest:Vi}},yt=function(te){var ye=te.subject.active;return ye||ce(!1),ye},ht=function(te){var ye=te.isMovingForward,Ge=te.pageBorderBoxCenter,lt=te.source,Rt=te.droppables,Kt=te.viewport,Vt=lt.subject.active;if(!Vt)return null;var Lr=lt.axis,Jr=Un(Vt[Lr.start],Vt[Lr.end]),Or=rr(Rt).filter(function(Vr){return Vr!==lt}).filter(function(Vr){return Vr.isEnabled}).filter(function(Vr){return Boolean(Vr.subject.active)}).filter(function(Vr){return wi(Kt.frame)(yt(Vr))}).filter(function(Vr){var qr=yt(Vr);return ye?Vt[Lr.crossAxisEnd]<qr[Lr.crossAxisEnd]:qr[Lr.crossAxisStart]<Vt[Lr.crossAxisStart]}).filter(function(Vr){var qr=yt(Vr),Tn=Un(qr[Lr.start],qr[Lr.end]);return Jr(qr[Lr.start])||Jr(qr[Lr.end])||Tn(Vt[Lr.start])||Tn(Vt[Lr.end])}).sort(function(Vr,qr){var Tn=yt(Vr)[Lr.crossAxisStart],ci=yt(qr)[Lr.crossAxisStart];return ye?Tn-ci:ci-Tn}).filter(function(Vr,qr,Tn){return yt(Vr)[Lr.crossAxisStart]===yt(Tn[0])[Lr.crossAxisStart]});if(!Or.length)return null;if(Or.length===1)return Or[0];var Sr=Or.filter(function(Vr){var qr=Un(yt(Vr)[Lr.start],yt(Vr)[Lr.end]);return qr(Ge[Lr.line])});return Sr.length===1?Sr[0]:Sr.length>1?Sr.sort(function(Vr,qr){return yt(Vr)[Lr.start]-yt(qr)[Lr.start]})[0]:Or.sort(function(Vr,qr){var Tn=et(Ge,dt(yt(Vr))),ci=et(Ge,dt(yt(qr)));return Tn!==ci?Tn-ci:yt(Vr)[Lr.start]-yt(qr)[Lr.start]})[0]},Jt=function(te,ye){var Ge=te.page.borderBox.center;return kt(te.descriptor.id,ye)?oe(Ge,ye.displacedBy.point):Ge},kr=function(te,ye){var Ge=te.page.borderBox;return kt(te.descriptor.id,ye)?ze(Ge,Oe(ye.displacedBy.point)):Ge},_r=function(te){var ye=te.pageBorderBoxCenter,Ge=te.viewport,lt=te.destination,Rt=te.insideDestination,Kt=te.afterCritical,Vt=Rt.filter(function(Lr){return $e({target:kr(Lr,Kt),destination:lt,viewport:Ge.frame,withDroppableDisplacement:!0})}).sort(function(Lr,Jr){var Or=it(ye,li(lt,Jt(Lr,Kt))),Sr=it(ye,li(lt,Jt(Jr,Kt)));return Or<Sr?-1:Sr<Or?1:Lr.descriptor.index-Jr.descriptor.index});return Vt[0]||null},Xr=_(function(te,ye){var Ge=ye[te.line];return{value:Ge,point:Ye(te.line,Ge)}}),Bt=function(te,ye,Ge){var lt=te.axis;if(te.descriptor.mode==="virtual")return Ye(lt.line,ye[lt.line]);var Rt=te.subject.page.contentBox[lt.size],Kt=nn(te.descriptor.id,Ge),Vt=Kt.reduce(function(Or,Sr){return Or+Sr.client.marginBox[lt.size]},0),Lr=Vt+ye[lt.line],Jr=Lr-Rt;return Jr<=0?null:Ye(lt.line,Jr)},gn=function(te,ye){return Object(v.a)({},te,{scroll:Object(v.a)({},te.scroll,{max:ye})})},hr=function(te,ye,Ge){var lt=te.frame;ft(ye,te)&&ce(!1),te.subject.withPlaceholder&&ce(!1);var Rt=Xr(te.axis,ye.displaceBy).point,Kt=Bt(te,Rt,Ge),Vt={placeholderSize:Rt,increasedBy:Kt,oldFrameMaxScroll:te.frame?te.frame.scroll.max:null};if(!lt){var Lr=Be({page:te.subject.page,withPlaceholder:Vt,axis:te.axis,frame:te.frame});return Object(v.a)({},te,{subject:Lr})}var Jr=Kt?Ie(lt.scroll.max,Kt):lt.scroll.max,Or=gn(lt,Jr),Sr=Be({page:te.subject.page,withPlaceholder:Vt,axis:te.axis,frame:Or});return Object(v.a)({},te,{subject:Sr,frame:Or})},vn=function(te){var ye=te.subject.withPlaceholder;ye||ce(!1);var Ge=te.frame;if(!Ge){var lt=Be({page:te.subject.page,axis:te.axis,frame:null,withPlaceholder:null});return Object(v.a)({},te,{subject:lt})}var Rt=ye.oldFrameMaxScroll;Rt||ce(!1);var Kt=gn(Ge,Rt),Vt=Be({page:te.subject.page,axis:te.axis,frame:Kt,withPlaceholder:null});return Object(v.a)({},te,{subject:Vt,frame:Kt})},en=function(te){var ye=te.previousPageBorderBoxCenter,Ge=te.moveRelativeTo,lt=te.insideDestination,Rt=te.draggable,Kt=te.draggables,Vt=te.destination,Lr=te.viewport,Jr=te.afterCritical;if(!Ge){if(lt.length)return null;var Or={displaced:yn,displacedBy:Ur,at:{type:"REORDER",destination:{droppableId:Vt.descriptor.id,index:0}}},Sr=pi({impact:Or,draggable:Rt,droppable:Vt,draggables:Kt,afterCritical:Jr}),Vr=ft(Rt,Vt)?Vt:hr(Vt,Rt,Kt),qr=Xe({draggable:Rt,destination:Vr,newPageBorderBoxCenter:Sr,viewport:Lr.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return qr?Or:null}var Tn=Boolean(ye[Vt.axis.line]<=Ge.page.borderBox.center[Vt.axis.line]),ci=function(){var Vi=Ge.descriptor.index;return Ge.descriptor.id===Rt.descriptor.id||Tn?Vi:Vi+1}(),Ai=Xr(Vt.axis,Rt.displaceBy);return bt({draggable:Rt,insideDestination:lt,destination:Vt,viewport:Lr,displacedBy:Ai,last:yn,index:ci})},Dt=function(te){var ye=te.isMovingForward,Ge=te.previousPageBorderBoxCenter,lt=te.draggable,Rt=te.isOver,Kt=te.draggables,Vt=te.droppables,Lr=te.viewport,Jr=te.afterCritical,Or=ht({isMovingForward:ye,pageBorderBoxCenter:Ge,source:Rt,droppables:Vt,viewport:Lr});if(!Or)return null;var Sr=nn(Or.descriptor.id,Kt),Vr=_r({pageBorderBoxCenter:Ge,viewport:Lr,destination:Or,insideDestination:Sr,afterCritical:Jr}),qr=en({previousPageBorderBoxCenter:Ge,destination:Or,draggable:lt,draggables:Kt,moveRelativeTo:Vr,insideDestination:Sr,viewport:Lr,afterCritical:Jr});if(!qr)return null;var Tn=pi({impact:qr,draggable:lt,droppable:Or,draggables:Kt,afterCritical:Jr}),ci=Qe({pageBorderBoxCenter:Tn,draggable:lt,viewport:Lr});return{clientSelection:ci,impact:qr,scrollJumpRequest:null}},jr=function(te){var ye=te.at;return ye?ye.type==="REORDER"?ye.destination.droppableId:ye.combine.droppableId:null},un=function(te,ye){var Ge=jr(te);return Ge?ye[Ge]:null},Hr=function(te){var ye=te.state,Ge=te.type,lt=un(ye.impact,ye.dimensions.droppables),Rt=Boolean(lt),Kt=ye.dimensions.droppables[ye.critical.droppable.id],Vt=lt||Kt,Lr=Vt.axis.direction,Jr=Lr==="vertical"&&(Ge==="MOVE_UP"||Ge==="MOVE_DOWN")||Lr==="horizontal"&&(Ge==="MOVE_LEFT"||Ge==="MOVE_RIGHT");if(Jr&&!Rt)return null;var Or=Ge==="MOVE_DOWN"||Ge==="MOVE_RIGHT",Sr=ye.dimensions.draggables[ye.critical.draggable.id],Vr=ye.current.page.borderBoxCenter,qr=ye.dimensions,Tn=qr.draggables,ci=qr.droppables;return Jr?qe({isMovingForward:Or,previousPageBorderBoxCenter:Vr,draggable:Sr,destination:Vt,draggables:Tn,viewport:ye.viewport,previousClientSelection:ye.current.client.selection,previousImpact:ye.impact,afterCritical:ye.afterCritical}):Dt({isMovingForward:Or,previousPageBorderBoxCenter:Vr,draggable:Sr,isOver:Vt,draggables:Tn,droppables:ci,viewport:ye.viewport,afterCritical:ye.afterCritical})};function Wt(_e){return _e.phase==="DRAGGING"||_e.phase==="COLLECTING"}function wr(_e){var te=Un(_e.top,_e.bottom),ye=Un(_e.left,_e.right);return function(lt){return te(lt.y)&&ye(lt.x)}}function fn(_e,te){return _e.left<te.right&&_e.right>te.left&&_e.top<te.bottom&&_e.bottom>te.top}function zt(_e){var te=_e.pageBorderBox,ye=_e.draggable,Ge=_e.candidates,lt=ye.page.borderBox.center,Rt=Ge.map(function(Kt){var Vt=Kt.axis,Lr=Ye(Kt.axis.line,te.center[Vt.line],Kt.page.borderBox.center[Vt.crossAxisLine]);return{id:Kt.descriptor.id,distance:it(lt,Lr)}}).sort(function(Kt,Vt){return Vt.distance-Kt.distance});return Rt[0]?Rt[0].id:null}function Dr(_e){var te=_e.pageBorderBox,ye=_e.draggable,Ge=_e.droppables,lt=rr(Ge).filter(function(Rt){if(!Rt.isEnabled)return!1;var Kt=Rt.subject.active;if(!Kt)return!1;if(!fn(te,Kt))return!1;if(wr(Kt)(te.center))return!0;var Vt=Rt.axis,Lr=Kt.center[Vt.crossAxisLine],Jr=te[Vt.crossAxisStart],Or=te[Vt.crossAxisEnd],Sr=Un(Kt[Vt.crossAxisStart],Kt[Vt.crossAxisEnd]),Vr=Sr(Jr),qr=Sr(Or);return!Vr&&!qr?!0:Vr?Jr<Lr:Or>Lr});return lt.length?lt.length===1?lt[0].descriptor.id:zt({pageBorderBox:te,draggable:ye,candidates:lt}):null}var ir=function(te,ye){return e(ze(te,ye))},Lt=function(te,ye){var Ge=te.frame;return Ge?ir(ye,Ge.scroll.diff.value):ye};function Qt(_e){var te=_e.displaced,ye=_e.id;return Boolean(te.visible[ye]||te.invisible[ye])}function It(_e){var te=_e.draggable,ye=_e.closest,Ge=_e.inHomeList;return ye?Ge&&ye.descriptor.index>te.descriptor.index?ye.descriptor.index-1:ye.descriptor.index:null}var or=function(te){var ye=te.pageBorderBoxWithDroppableScroll,Ge=te.draggable,lt=te.destination,Rt=te.insideDestination,Kt=te.last,Vt=te.viewport,Lr=te.afterCritical,Jr=lt.axis,Or=Xr(lt.axis,Ge.displaceBy),Sr=Or.value,Vr=ye[Jr.start],qr=ye[Jr.end],Tn=$t(Ge,Rt),ci=ae(Tn,function(Vi){var Ni=Vi.descriptor.id,Oa=Vi.page.borderBox.center[Jr.line],Zi=kt(Ni,Lr),Wa=Qt({displaced:Kt,id:Ni});return Zi?Wa?qr<=Oa:Vr<Oa-Sr:Wa?qr<=Oa+Sr:Vr<Oa}),Ai=It({draggable:Ge,closest:ci,inHomeList:ft(Ge,lt)});return bt({draggable:Ge,insideDestination:Rt,destination:lt,viewport:Vt,last:Kt,displacedBy:Or,index:Ai})},Cr=4,Er=function(te){var ye=te.draggable,Ge=te.pageBorderBoxWithDroppableScroll,lt=te.previousImpact,Rt=te.destination,Kt=te.insideDestination,Vt=te.afterCritical;if(!Rt.isCombineEnabled)return null;var Lr=Rt.axis,Jr=Xr(Rt.axis,ye.displaceBy),Or=Jr.value,Sr=Ge[Lr.start],Vr=Ge[Lr.end],qr=$t(ye,Kt),Tn=ae(qr,function(Ai){var Vi=Ai.descriptor.id,Ni=Ai.page.borderBox,Oa=Ni[Lr.size],Zi=Oa/Cr,Wa=kt(Vi,Vt),Na=Qt({displaced:lt.displaced,id:Vi});return Wa?Na?Vr>Ni[Lr.start]+Zi&&Vr<Ni[Lr.end]-Zi:Sr>Ni[Lr.start]-Or+Zi&&Sr<Ni[Lr.end]-Or-Zi:Na?Vr>Ni[Lr.start]+Or+Zi&&Vr<Ni[Lr.end]+Or-Zi:Sr>Ni[Lr.start]+Zi&&Sr<Ni[Lr.end]-Zi});if(!Tn)return null;var ci={displacedBy:Jr,displaced:lt.displaced,at:{type:"COMBINE",combine:{draggableId:Tn.descriptor.id,droppableId:Rt.descriptor.id}}};return ci},Kr=function(te){var ye=te.pageOffset,Ge=te.draggable,lt=te.draggables,Rt=te.droppables,Kt=te.previousImpact,Vt=te.viewport,Lr=te.afterCritical,Jr=ir(Ge.page.borderBox,ye),Or=Dr({pageBorderBox:Jr,draggable:Ge,droppables:Rt});if(!Or)return Dn;var Sr=Rt[Or],Vr=nn(Sr.descriptor.id,lt),qr=Lt(Sr,Jr);return Er({pageBorderBoxWithDroppableScroll:qr,draggable:Ge,previousImpact:Kt,destination:Sr,insideDestination:Vr,afterCritical:Lr})||or({pageBorderBoxWithDroppableScroll:qr,draggable:Ge,destination:Sr,insideDestination:Vr,last:Kt.displaced,viewport:Vt,afterCritical:Lr})},jn=function(te,ye){var Ge;return Object(v.a)({},te,(Ge={},Ge[ye.descriptor.id]=ye,Ge))},Nn=function(te){var ye=te.previousImpact,Ge=te.impact,lt=te.droppables,Rt=jr(ye),Kt=jr(Ge);if(!Rt)return lt;if(Rt===Kt)return lt;var Vt=lt[Rt];if(!Vt.subject.withPlaceholder)return lt;var Lr=vn(Vt);return jn(lt,Lr)},ei=function(te){var ye=te.draggable,Ge=te.draggables,lt=te.droppables,Rt=te.previousImpact,Kt=te.impact,Vt=Nn({previousImpact:Rt,impact:Kt,droppables:lt}),Lr=jr(Kt);if(!Lr)return Vt;var Jr=lt[Lr];if(ft(ye,Jr))return Vt;if(Jr.subject.withPlaceholder)return Vt;var Or=hr(Jr,ye,Ge);return jn(Vt,Or)},Zr=function(te){var ye=te.state,Ge=te.clientSelection,lt=te.dimensions,Rt=te.viewport,Kt=te.impact,Vt=te.scrollJumpRequest,Lr=Rt||ye.viewport,Jr=lt||ye.dimensions,Or=Ge||ye.current.client.selection,Sr=oe(Or,ye.initial.client.selection),Vr={offset:Sr,selection:Or,borderBoxCenter:Ie(ye.initial.client.borderBoxCenter,Sr)},qr={selection:Ie(Vr.selection,Lr.scroll.current),borderBoxCenter:Ie(Vr.borderBoxCenter,Lr.scroll.current),offset:Ie(Vr.offset,Lr.scroll.diff.value)},Tn={client:Vr,page:qr};if(ye.phase==="COLLECTING")return Object(v.a)({phase:"COLLECTING"},ye,{dimensions:Jr,viewport:Lr,current:Tn});var ci=Jr.draggables[ye.critical.draggable.id],Ai=Kt||Kr({pageOffset:qr.offset,draggable:ci,draggables:Jr.draggables,droppables:Jr.droppables,previousImpact:ye.impact,viewport:Lr,afterCritical:ye.afterCritical}),Vi=ei({draggable:ci,impact:Ai,previousImpact:ye.impact,draggables:Jr.draggables,droppables:Jr.droppables}),Ni=Object(v.a)({},ye,{current:Tn,dimensions:{draggables:Jr.draggables,droppables:Vi},impact:Ai,viewport:Lr,scrollJumpRequest:Vt||null,forceShouldAnimate:Vt?!1:null});return Ni};function br(_e,te){return _e.map(function(ye){return te[ye]})}var dn=function(te){var ye=te.impact,Ge=te.viewport,lt=te.draggables,Rt=te.destination,Kt=te.forceShouldAnimate,Vt=ye.displaced,Lr=br(Vt.all,lt),Jr=an({afterDragging:Lr,destination:Rt,displacedBy:ye.displacedBy,viewport:Ge.frame,forceShouldAnimate:Kt,last:Vt});return Object(v.a)({},ye,{displaced:Jr})},Ln=function(te){var ye=te.impact,Ge=te.draggable,lt=te.droppable,Rt=te.draggables,Kt=te.viewport,Vt=te.afterCritical,Lr=pi({impact:ye,draggable:Ge,draggables:Rt,droppable:lt,afterCritical:Vt});return Qe({pageBorderBoxCenter:Lr,draggable:Ge,viewport:Kt})},Fn=function(te){var ye=te.state,Ge=te.dimensions,lt=te.viewport;ye.movementMode==="SNAP"||ce(!1);var Rt=ye.impact,Kt=lt||ye.viewport,Vt=Ge||ye.dimensions,Lr=Vt.draggables,Jr=Vt.droppables,Or=Lr[ye.critical.draggable.id],Sr=jr(Rt);Sr||ce(!1);var Vr=Jr[Sr],qr=dn({impact:Rt,viewport:Kt,destination:Vr,draggables:Lr}),Tn=Ln({impact:qr,draggable:Or,droppable:Vr,draggables:Lr,viewport:Kt,afterCritical:ye.afterCritical});return Zr({impact:qr,clientSelection:Tn,state:ye,dimensions:Vt,viewport:Kt})},zn=function(te){return{index:te.index,droppableId:te.droppableId}},ui=function(te){var ye=te.draggable,Ge=te.home,lt=te.draggables,Rt=te.viewport,Kt=Xr(Ge.axis,ye.displaceBy),Vt=nn(Ge.descriptor.id,lt),Lr=Vt.indexOf(ye);Lr!==-1||ce(!1);var Jr=Vt.slice(Lr+1),Or=Jr.reduce(function(Tn,ci){return Tn[ci.descriptor.id]=!0,Tn},{}),Sr={inVirtualList:Ge.descriptor.mode==="virtual",displacedBy:Kt,effected:Or},Vr=an({afterDragging:Jr,destination:Ge,displacedBy:Kt,last:null,viewport:Rt.frame,forceShouldAnimate:!1}),qr={displaced:Vr,displacedBy:Kt,at:{type:"REORDER",destination:zn(ye.descriptor)}};return{impact:qr,afterCritical:Sr}},ii=function(te,ye){return{draggables:te.draggables,droppables:jn(te.droppables,ye)}},qn=function(te){},Li=function(te){},zi=function(te){var ye=te.draggable,Ge=te.offset,lt=te.initialWindowScroll,Rt=g(ye.client,Ge),Kt=A(Rt,lt),Vt=Object(v.a)({},ye,{placeholder:Object(v.a)({},ye.placeholder,{client:Rt}),client:Rt,page:Kt});return Vt},Ri=function(te){var ye=te.frame;return ye||ce(!1),ye},ga=function(te){var ye=te.additions,Ge=te.updatedDroppables,lt=te.viewport,Rt=lt.scroll.diff.value;return ye.map(function(Kt){var Vt=Kt.descriptor.droppableId,Lr=Ge[Vt],Jr=Ri(Lr),Or=Jr.scroll.diff.value,Sr=Ie(Rt,Or),Vr=zi({draggable:Kt,offset:Sr,initialWindowScroll:lt.scroll.initial});return Vr})},oi=function(te){var ye=te.state,Ge=te.published;qn();var lt=Ge.modified.map(function(Zi){var Wa=ye.dimensions.droppables[Zi.droppableId],Na=$(Wa,Zi.scroll);return Na}),Rt=Object(v.a)({},ye.dimensions.droppables,{},jt(lt)),Kt=ut(ga({additions:Ge.additions,updatedDroppables:Rt,viewport:ye.viewport})),Vt=Object(v.a)({},ye.dimensions.draggables,{},Kt);Ge.removals.forEach(function(Zi){delete Vt[Zi]});var Lr={droppables:Rt,draggables:Vt},Jr=jr(ye.impact),Or=Jr?Lr.droppables[Jr]:null,Sr=Lr.draggables[ye.critical.draggable.id],Vr=Lr.droppables[ye.critical.droppable.id],qr=ui({draggable:Sr,home:Vr,draggables:Vt,viewport:ye.viewport}),Tn=qr.impact,ci=qr.afterCritical,Ai=Or&&Or.isCombineEnabled?ye.impact:Tn,Vi=Kr({pageOffset:ye.current.page.offset,draggable:Lr.draggables[ye.critical.draggable.id],draggables:Lr.draggables,droppables:Lr.droppables,previousImpact:Ai,viewport:ye.viewport,afterCritical:ci});Li();var Ni=Object(v.a)({phase:"DRAGGING"},ye,{phase:"DRAGGING",impact:Vi,onLiftImpact:Tn,dimensions:Lr,afterCritical:ci,forceShouldAnimate:!1});if(ye.phase==="COLLECTING")return Ni;var Oa=Object(v.a)({phase:"DROP_PENDING"},Ni,{phase:"DROP_PENDING",reason:ye.reason,isWaiting:!1});return Oa},hn=function(te){return te.movementMode==="SNAP"},Ei=function(te,ye,Ge){var lt=ii(te.dimensions,ye);return!hn(te)||Ge?Zr({state:te,dimensions:lt}):Fn({state:te,dimensions:lt})};function Hi(_e){return _e.isDragging&&_e.movementMode==="SNAP"?Object(v.a)({phase:"DRAGGING"},_e,{scrollJumpRequest:null}):_e}var ki={phase:"IDLE",completed:null,shouldFlush:!1},ji=function(te,ye){if(te===void 0&&(te=ki),ye.type==="FLUSH")return Object(v.a)({},ki,{shouldFlush:!0});if(ye.type==="INITIAL_PUBLISH"){te.phase==="IDLE"||ce(!1);var Ge=ye.payload,lt=Ge.critical,Rt=Ge.clientSelection,Kt=Ge.viewport,Vt=Ge.dimensions,Lr=Ge.movementMode,Jr=Vt.draggables[lt.draggable.id],Or=Vt.droppables[lt.droppable.id],Sr={selection:Rt,borderBoxCenter:Jr.client.borderBox.center,offset:Me},Vr={client:Sr,page:{selection:Ie(Sr.selection,Kt.scroll.initial),borderBoxCenter:Ie(Sr.selection,Kt.scroll.initial),offset:Ie(Sr.selection,Kt.scroll.diff.value)}},qr=rr(Vt.droppables).every(function(Yo){return!Yo.isFixedOnPage}),Tn=ui({draggable:Jr,home:Or,draggables:Vt.draggables,viewport:Kt}),ci=Tn.impact,Ai=Tn.afterCritical,Vi={phase:"DRAGGING",isDragging:!0,critical:lt,movementMode:Lr,dimensions:Vt,initial:Vr,current:Vr,isWindowScrollAllowed:qr,impact:ci,afterCritical:Ai,onLiftImpact:ci,viewport:Kt,scrollJumpRequest:null,forceShouldAnimate:null};return Vi}if(ye.type==="COLLECTION_STARTING"){if(te.phase==="COLLECTING"||te.phase==="DROP_PENDING")return te;te.phase==="DRAGGING"||ce(!1);var Ni=Object(v.a)({phase:"COLLECTING"},te,{phase:"COLLECTING"});return Ni}if(ye.type==="PUBLISH_WHILE_DRAGGING")return te.phase==="COLLECTING"||te.phase==="DROP_PENDING"||ce(!1),oi({state:te,published:ye.payload});if(ye.type==="MOVE"){if(te.phase==="DROP_PENDING")return te;Wt(te)||ce(!1);var Oa=ye.payload.client;return pe(Oa,te.current.client.selection)?te:Zr({state:te,clientSelection:Oa,impact:hn(te)?te.impact:null})}if(ye.type==="UPDATE_DROPPABLE_SCROLL"){if(te.phase==="DROP_PENDING")return Hi(te);if(te.phase==="COLLECTING")return Hi(te);Wt(te)||ce(!1);var Zi=ye.payload,Wa=Zi.id,Na=Zi.newScroll,Ba=te.dimensions.droppables[Wa];if(!Ba)return te;var Lo=$(Ba,Na);return Ei(te,Lo,!1)}if(ye.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(te.phase==="DROP_PENDING")return te;Wt(te)||ce(!1);var k=ye.payload,W=k.id,q=k.isEnabled,ne=te.dimensions.droppables[W];ne||ce(!1),ne.isEnabled!==q||ce(!1);var le=Object(v.a)({},ne,{isEnabled:q});return Ei(te,le,!0)}if(ye.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(te.phase==="DROP_PENDING")return te;Wt(te)||ce(!1);var Fe=ye.payload,mt=Fe.id,Ut=Fe.isCombineEnabled,nr=te.dimensions.droppables[mt];nr||ce(!1),nr.isCombineEnabled!==Ut||ce(!1);var lr=Object(v.a)({},nr,{isCombineEnabled:Ut});return Ei(te,lr,!0)}if(ye.type==="MOVE_BY_WINDOW_SCROLL"){if(te.phase==="DROP_PENDING"||te.phase==="DROP_ANIMATING")return te;Wt(te)||ce(!1),te.isWindowScrollAllowed||ce(!1);var Sn=ye.payload.newScroll;if(pe(te.viewport.scroll.current,Sn))return Hi(te);var Bn=Oi(te.viewport,Sn);return hn(te)?Fn({state:te,viewport:Bn}):Zr({state:te,viewport:Bn})}if(ye.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Wt(te))return te;var Zn=ye.payload.maxScroll;if(pe(Zn,te.viewport.scroll.max))return te;var ni=Object(v.a)({},te.viewport,{scroll:Object(v.a)({},te.viewport.scroll,{max:Zn})});return Object(v.a)({phase:"DRAGGING"},te,{viewport:ni})}if(ye.type==="MOVE_UP"||ye.type==="MOVE_DOWN"||ye.type==="MOVE_LEFT"||ye.type==="MOVE_RIGHT"){if(te.phase==="COLLECTING"||te.phase==="DROP_PENDING")return te;te.phase==="DRAGGING"||ce(!1);var Pi=Hr({state:te,type:ye.type});return Pi?Zr({state:te,impact:Pi.impact,clientSelection:Pi.clientSelection,scrollJumpRequest:Pi.scrollJumpRequest}):te}if(ye.type==="DROP_PENDING"){var Ji=ye.payload.reason;te.phase==="COLLECTING"||ce(!1);var ua=Object(v.a)({phase:"DROP_PENDING"},te,{phase:"DROP_PENDING",isWaiting:!0,reason:Ji});return ua}if(ye.type==="DROP_ANIMATE"){var la=ye.payload,oa=la.completed,xa=la.dropDuration,Ma=la.newHomeClientOffset;te.phase==="DRAGGING"||te.phase==="DROP_PENDING"||ce(!1);var To={phase:"DROP_ANIMATING",completed:oa,dropDuration:xa,newHomeClientOffset:Ma,dimensions:te.dimensions};return To}if(ye.type==="DROP_COMPLETE"){var so=ye.payload.completed;return{phase:"IDLE",completed:so,shouldFlush:!1}}return te},dr=function(te){return{type:"BEFORE_INITIAL_CAPTURE",payload:te}},sr=function(te){return{type:"LIFT",payload:te}},cn=function(te){return{type:"INITIAL_PUBLISH",payload:te}},Zt=function(te){return{type:"PUBLISH_WHILE_DRAGGING",payload:te}},Ar=function(){return{type:"COLLECTION_STARTING",payload:null}},Nr=function(te){return{type:"UPDATE_DROPPABLE_SCROLL",payload:te}},tn=function(te){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:te}},pn=function(te){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:te}},St=function(te){return{type:"MOVE",payload:te}},cr=function(te){return{type:"MOVE_BY_WINDOW_SCROLL",payload:te}},fr=function(te){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:te}},Br=function(){return{type:"MOVE_UP",payload:null}},$r=function(){return{type:"MOVE_DOWN",payload:null}},wn=function(){return{type:"MOVE_RIGHT",payload:null}},rn=function(){return{type:"MOVE_LEFT",payload:null}},On=function(){return{type:"FLUSH",payload:null}},In=function(te){return{type:"DROP_ANIMATE",payload:te}},Gn=function(te){return{type:"DROP_COMPLETE",payload:te}},fi=function(te){return{type:"DROP",payload:te}},Yn=function(te){return{type:"DROP_PENDING",payload:te}},gi=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function vi(_e){if(_e.length<=1)return;for(var te=_e.map(function(Vt){return Vt.descriptor.index}),ye={},Ge=1;Ge<te.length;Ge++){var lt=te[Ge],Rt=te[Ge-1];lt!==Rt+1&&(ye[lt]=!0)}if(!Object.keys(ye).length)return;var Kt=te.map(function(Vt){var Lr=Boolean(ye[Vt]);return Lr?"[\u{1F525}"+Vt+"]":""+Vt}).join(", ")}function Di(_e,te){if(!1)var ye}var Mi=function(te){return function(ye){var Ge=ye.getState,lt=ye.dispatch;return function(Rt){return function(Kt){if(Kt.type!=="LIFT"){Rt(Kt);return}var Vt=Kt.payload,Lr=Vt.id,Jr=Vt.clientSelection,Or=Vt.movementMode,Sr=Ge();Sr.phase==="DROP_ANIMATING"&<(Gn({completed:Sr.completed})),Ge().phase==="IDLE"||ce(!1),lt(On()),lt(dr({draggableId:Lr,movementMode:Or}));var Vr={shouldPublishImmediately:Or==="SNAP"},qr={draggableId:Lr,scrollOptions:Vr},Tn=te.startPublishing(qr),ci=Tn.critical,Ai=Tn.dimensions,Vi=Tn.viewport;Di(ci,Ai),lt(cn({critical:ci,dimensions:Ai,clientSelection:Jr,movementMode:Or,viewport:Vi}))}}}},xi=function(te){return function(){return function(ye){return function(Ge){Ge.type==="INITIAL_PUBLISH"&&te.dragging(),Ge.type==="DROP_ANIMATE"&&te.dropping(Ge.payload.completed.result.reason),(Ge.type==="FLUSH"||Ge.type==="DROP_COMPLETE")&&te.resting(),ye(Ge)}}}},bi={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Ci={opacity:{drop:0,combining:.7},scale:{drop:.75}},$i={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},qi=$i.outOfTheWay+"s "+bi.outOfTheWay,Ti={fluid:"opacity "+qi,snap:"transform "+qi+", opacity "+qi,drop:function(te){var ye=te+"s "+bi.drop;return"transform "+ye+", opacity "+ye},outOfTheWay:"transform "+qi,placeholder:"height "+qi+", width "+qi+", margin "+qi},ia=function(te){return pe(te,Me)?null:"translate("+te.x+"px, "+te.y+"px)"},na={moveTo:ia,drop:function(te,ye){var Ge=ia(te);return Ge?ye?Ge+" scale("+Ci.scale.drop+")":Ge:null}},Ui=$i.minDropTime,Ki=$i.maxDropTime,ra=Ki-Ui,ea=1500,va=.6,sa=function(te){var ye=te.current,Ge=te.destination,lt=te.reason,Rt=it(ye,Ge);if(Rt<=0)return Ui;if(Rt>=ea)return Ki;var Kt=Rt/ea,Vt=Ui+ra*Kt,Lr=lt==="CANCEL"?Vt*va:Vt;return Number(Lr.toFixed(2))},Pa=function(te){var ye=te.impact,Ge=te.draggable,lt=te.dimensions,Rt=te.viewport,Kt=te.afterCritical,Vt=lt.draggables,Lr=lt.droppables,Jr=jr(ye),Or=Jr?Lr[Jr]:null,Sr=Lr[Ge.descriptor.droppableId],Vr=Ln({impact:ye,draggable:Ge,draggables:Vt,afterCritical:Kt,droppable:Or||Sr,viewport:Rt}),qr=oe(Vr,Ge.client.borderBox.center);return qr},ka=function(te){var ye=te.draggables,Ge=te.reason,lt=te.lastImpact,Rt=te.home,Kt=te.viewport,Vt=te.onLiftImpact;if(!lt.at||Ge!=="DROP"){var Lr=dn({draggables:ye,impact:Vt,destination:Rt,viewport:Kt,forceShouldAnimate:!0});return{impact:Lr,didDropInsideDroppable:!1}}if(lt.at.type==="REORDER")return{impact:lt,didDropInsideDroppable:!0};var Jr=Object(v.a)({},lt,{displaced:yn});return{impact:Jr,didDropInsideDroppable:!0}},Ia=function(te){var ye=te.getState,Ge=te.dispatch;return function(lt){return function(Rt){if(Rt.type!=="DROP"){lt(Rt);return}var Kt=ye(),Vt=Rt.payload.reason;if(Kt.phase==="COLLECTING"){Ge(Yn({reason:Vt}));return}if(Kt.phase==="IDLE")return;var Lr=Kt.phase==="DROP_PENDING"&&Kt.isWaiting;Lr&&ce(!1),Kt.phase==="DRAGGING"||Kt.phase==="DROP_PENDING"||ce(!1);var Jr=Kt.critical,Or=Kt.dimensions,Sr=Or.draggables[Kt.critical.draggable.id],Vr=ka({reason:Vt,lastImpact:Kt.impact,afterCritical:Kt.afterCritical,onLiftImpact:Kt.onLiftImpact,home:Kt.dimensions.droppables[Kt.critical.droppable.id],viewport:Kt.viewport,draggables:Kt.dimensions.draggables}),qr=Vr.impact,Tn=Vr.didDropInsideDroppable,ci=Tn?mr(qr):null,Ai=Tn?vr(qr):null,Vi={index:Jr.draggable.index,droppableId:Jr.droppable.id},Ni={draggableId:Sr.descriptor.id,type:Sr.descriptor.type,source:Vi,reason:Vt,mode:Kt.movementMode,destination:ci,combine:Ai},Oa=Pa({impact:qr,draggable:Sr,dimensions:Or,viewport:Kt.viewport,afterCritical:Kt.afterCritical}),Zi={critical:Kt.critical,afterCritical:Kt.afterCritical,result:Ni,impact:qr},Wa=!pe(Kt.current.client.offset,Oa)||Boolean(Ni.combine);if(!Wa){Ge(Gn({completed:Zi}));return}var Na=sa({current:Kt.current.client.offset,destination:Oa,reason:Vt}),Ba={newHomeClientOffset:Oa,dropDuration:Na,completed:Zi};Ge(In(Ba))}}},Ea=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function So(_e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ye){if(ye.target!==window&&ye.target!==window.document)return;_e()}}}function Ga(_e){var te=_e.onWindowScroll;function ye(){te(Ea())}var Ge=D(ye),lt=So(Ge),Rt=fe;function Kt(){return Rt!==fe}function Vt(){Kt()&&ce(!1),Rt=we(window,[lt])}function Lr(){Kt()||ce(!1),Ge.cancel(),Rt(),Rt=fe}return{start:Vt,stop:Lr,isActive:Kt}}var Va=function(te){return te.type==="DROP_COMPLETE"||te.type==="DROP_ANIMATE"||te.type==="FLUSH"},Ra=function(te){var ye=Ga({onWindowScroll:function(lt){te.dispatch(cr({newScroll:lt}))}});return function(Ge){return function(lt){!ye.isActive()&<.type==="INITIAL_PUBLISH"&&ye.start(),ye.isActive()&&Va(lt)&&ye.stop(),Ge(lt)}}},po=function(te){var ye=!1,Ge=!1,lt=setTimeout(function(){Ge=!0}),Rt=function(Vt){if(ye)return;if(Ge)return;ye=!0,te(Vt),clearTimeout(lt)};return Rt.wasCalled=function(){return ye},Rt},mo=function(){var te=[],ye=function(Kt){var Vt=De(te,function(Or){return Or.timerId===Kt});Vt!==-1||ce(!1);var Lr=te.splice(Vt,1),Jr=Lr[0];Jr.callback()},Ge=function(Kt){var Vt=setTimeout(function(){return ye(Vt)}),Lr={timerId:Vt,callback:Kt};te.push(Lr)},lt=function(){if(!te.length)return;var Kt=[].concat(te);te.length=0,Kt.forEach(function(Vt){clearTimeout(Vt.timerId),Vt.callback()})};return{add:Ge,flush:lt}},Aa=function(te,ye){return te==null&&ye==null?!0:te==null||ye==null?!1:te.droppableId===ye.droppableId&&te.index===ye.index},Io=function(te,ye){return te==null&&ye==null?!0:te==null||ye==null?!1:te.draggableId===ye.draggableId&&te.droppableId===ye.droppableId},go=function(te,ye){if(te===ye)return!0;var Ge=te.draggable.id===ye.draggable.id&&te.draggable.droppableId===ye.draggable.droppableId&&te.draggable.type===ye.draggable.type&&te.draggable.index===ye.draggable.index,lt=te.droppable.id===ye.droppable.id&&te.droppable.type===ye.droppable.type;return Ge&<},Qa=function(te,ye){qn(),ye(),Li()},wo=function(te,ye){return{draggableId:te.draggable.id,type:te.droppable.type,source:{droppableId:te.droppable.id,index:te.draggable.index},mode:ye}},pa=function(te,ye,Ge,lt){if(!te){Ge(lt(ye));return}var Rt=po(Ge),Kt={announce:Rt};te(ye,Kt),Rt.wasCalled()||Ge(lt(ye))},to=function(te,ye){var Ge=mo(),lt=null,Rt=function(qr,Tn){lt&&ce(!1),Qa("onBeforeCapture",function(){var ci=te().onBeforeCapture;if(ci){var Ai={draggableId:qr,mode:Tn};ci(Ai)}})},Kt=function(qr,Tn){lt&&ce(!1),Qa("onBeforeDragStart",function(){var ci=te().onBeforeDragStart;ci&&ci(wo(qr,Tn))})},Vt=function(qr,Tn){lt&&ce(!1);var ci=wo(qr,Tn);lt={mode:Tn,lastCritical:qr,lastLocation:ci.source,lastCombine:null},Ge.add(function(){Qa("onDragStart",function(){return pa(te().onDragStart,ci,ye,he.onDragStart)})})},Lr=function(qr,Tn){var ci=mr(Tn),Ai=vr(Tn);lt||ce(!1);var Vi=!go(qr,lt.lastCritical);Vi&&(lt.lastCritical=qr);var Ni=!Aa(lt.lastLocation,ci);Ni&&(lt.lastLocation=ci);var Oa=!Io(lt.lastCombine,Ai);if(Oa&&(lt.lastCombine=Ai),!Vi&&!Ni&&!Oa)return;var Zi=Object(v.a)({},wo(qr,lt.mode),{combine:Ai,destination:ci});Ge.add(function(){Qa("onDragUpdate",function(){return pa(te().onDragUpdate,Zi,ye,he.onDragUpdate)})})},Jr=function(){lt||ce(!1),Ge.flush()},Or=function(qr){lt||ce(!1),lt=null,Qa("onDragEnd",function(){return pa(te().onDragEnd,qr,ye,he.onDragEnd)})},Sr=function(){if(!lt)return;var qr=Object(v.a)({},wo(lt.lastCritical,lt.mode),{combine:null,destination:null,reason:"CANCEL"});Or(qr)};return{beforeCapture:Rt,beforeStart:Kt,start:Vt,update:Lr,flush:Jr,drop:Or,abort:Sr}},ao=function(te,ye){var Ge=to(te,ye);return function(lt){return function(Rt){return function(Kt){if(Kt.type==="BEFORE_INITIAL_CAPTURE"){Ge.beforeCapture(Kt.payload.draggableId,Kt.payload.movementMode);return}if(Kt.type==="INITIAL_PUBLISH"){var Vt=Kt.payload.critical;Ge.beforeStart(Vt,Kt.payload.movementMode),Rt(Kt),Ge.start(Vt,Kt.payload.movementMode);return}if(Kt.type==="DROP_COMPLETE"){var Lr=Kt.payload.completed.result;Ge.flush(),Rt(Kt),Ge.drop(Lr);return}if(Rt(Kt),Kt.type==="FLUSH"){Ge.abort();return}var Jr=lt.getState();Jr.phase==="DRAGGING"&&Ge.update(Jr.critical,Jr.impact)}}}},Bo=function(te){return function(ye){return function(Ge){if(Ge.type!=="DROP_ANIMATION_FINISHED"){ye(Ge);return}var lt=te.getState();lt.phase==="DROP_ANIMATING"||ce(!1),te.dispatch(Gn({completed:lt.completed}))}}},Ja=function(te){var ye=null,Ge=null;function lt(){Ge&&(cancelAnimationFrame(Ge),Ge=null),ye&&(ye(),ye=null)}return function(Rt){return function(Kt){if((Kt.type==="FLUSH"||Kt.type==="DROP_COMPLETE"||Kt.type==="DROP_ANIMATION_FINISHED")&<(),Rt(Kt),Kt.type!=="DROP_ANIMATE")return;var Vt={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var Jr=te.getState();Jr.phase==="DROP_ANIMATING"&&te.dispatch(gi())}};Ge=requestAnimationFrame(function(){Ge=null,ye=we(window,[Vt])})}}},_o=function(te){return function(){return function(ye){return function(Ge){(Ge.type==="DROP_COMPLETE"||Ge.type==="FLUSH"||Ge.type==="DROP_ANIMATE")&&te.stopPublishing(),ye(Ge)}}}},Ao=function(te){var ye=!1;return function(){return function(Ge){return function(lt){if(lt.type==="INITIAL_PUBLISH"){ye=!0,te.tryRecordFocus(lt.payload.critical.draggable.id),Ge(lt),te.tryRestoreFocusRecorded();return}if(Ge(lt),!ye)return;if(lt.type==="FLUSH"){ye=!1,te.tryRestoreFocusRecorded();return}if(lt.type==="DROP_COMPLETE"){ye=!1;var Rt=lt.payload.completed.result;Rt.combine&&te.tryShiftRecord(Rt.draggableId,Rt.combine.draggableId),te.tryRestoreFocusRecorded()}}}}},za=function(te){return te.type==="DROP_COMPLETE"||te.type==="DROP_ANIMATE"||te.type==="FLUSH"},ja=function(te){return function(ye){return function(Ge){return function(lt){if(za(lt)){te.stop(),Ge(lt);return}if(lt.type==="INITIAL_PUBLISH"){Ge(lt);var Rt=ye.getState();Rt.phase==="DRAGGING"||ce(!1),te.start(Rt);return}Ge(lt),te.scroll(ye.getState())}}}},da=function(te){return function(ye){return function(Ge){if(ye(Ge),Ge.type!=="PUBLISH_WHILE_DRAGGING")return;var lt=te.getState();if(lt.phase!=="DROP_PENDING")return;if(lt.isWaiting)return;te.dispatch(fi({reason:lt.reason}))}}},rt=S.d,ar=function(te){var ye=te.dimensionMarshal,Ge=te.focusMarshal,lt=te.styleMarshal,Rt=te.getResponders,Kt=te.announce,Vt=te.autoScroller;return Object(S.e)(ji,rt(Object(S.a)(xi(lt),_o(ye),Mi(ye),Ia,Bo,Ja,da,ja(Vt),Ra,Ao(Ge),ao(Rt,Kt))))},Fr=function(){return{additions:{},removals:{},modified:{}}};function Ir(_e){var te=_e.registry,ye=_e.callbacks,Ge=Fr(),lt=null,Rt=function(){if(lt)return;ye.collectionStarting(),lt=requestAnimationFrame(function(){lt=null,qn();var Or=Ge,Sr=Or.additions,Vr=Or.removals,qr=Or.modified,Tn=Object.keys(Sr).map(function(Vi){return te.draggable.getById(Vi).getDimension(Me)}).sort(function(Vi,Ni){return Vi.descriptor.index-Ni.descriptor.index}),ci=Object.keys(qr).map(function(Vi){var Ni=te.droppable.getById(Vi),Oa=Ni.callbacks.getScrollWhileDragging();return{droppableId:Vi,scroll:Oa}}),Ai={additions:Tn,removals:Object.keys(Vr),modified:ci};Ge=Fr(),Li(),ye.publish(Ai)})},Kt=function(Or){var Sr=Or.descriptor.id;Ge.additions[Sr]=Or,Ge.modified[Or.descriptor.droppableId]=!0,Ge.removals[Sr]&&delete Ge.removals[Sr],Rt()},Vt=function(Or){var Sr=Or.descriptor;Ge.removals[Sr.id]=!0,Ge.modified[Sr.droppableId]=!0,Ge.additions[Sr.id]&&delete Ge.additions[Sr.id],Rt()},Lr=function(){if(!lt)return;cancelAnimationFrame(lt),lt=null,Ge=Fr()};return{add:Kt,remove:Vt,stop:Lr}}var En=function(te){var ye=te.scrollHeight,Ge=te.scrollWidth,lt=te.height,Rt=te.width,Kt=oe({x:Ge,y:ye},{x:Rt,y:lt}),Vt={x:Math.max(0,Kt.x),y:Math.max(0,Kt.y)};return Vt},zr=function(){var te=document.documentElement;return te||ce(!1),te},yr=function(){var te=zr(),ye=En({scrollHeight:te.scrollHeight,scrollWidth:te.scrollWidth,width:te.clientWidth,height:te.clientHeight});return ye},Cn=function(){var te=Ea(),ye=yr(),Ge=te.y,lt=te.x,Rt=zr(),Kt=Rt.clientWidth,Vt=Rt.clientHeight,Lr=lt+Kt,Jr=Ge+Vt,Or=e({top:Ge,left:lt,right:Lr,bottom:Jr}),Sr={frame:Or,scroll:{initial:te,current:te,max:ye,diff:{value:Me,displacement:Me}}};return Sr},Pr=function(te){var ye=te.critical,Ge=te.scrollOptions,lt=te.registry;qn();var Rt=Cn(),Kt=Rt.scroll.current,Vt=ye.droppable,Lr=lt.droppable.getAllByType(Vt.type).map(function(Vr){return Vr.callbacks.getDimensionAndWatchScroll(Kt,Ge)}),Jr=lt.draggable.getAllByType(ye.draggable.type).map(function(Vr){return Vr.getDimension(Kt)}),Or={draggables:ut(Jr),droppables:jt(Lr)};Li();var Sr={dimensions:Or,critical:ye,viewport:Rt};return Sr};function xn(_e,te,ye){if(ye.descriptor.id===te.id)return!1;if(ye.descriptor.type!==te.type)return!1;var Ge=_e.droppable.getById(ye.descriptor.droppableId);return!(Ge.descriptor.mode!=="virtual")}var Qn=function(te,ye){var Ge=null,lt=Ir({callbacks:{publish:ye.publishWhileDragging,collectionStarting:ye.collectionStarting},registry:te}),Rt=function(Tn,ci){if(te.droppable.exists(Tn)||ce(!1),!Ge)return;ye.updateDroppableIsEnabled({id:Tn,isEnabled:ci})},Kt=function(Tn,ci){if(!Ge)return;te.droppable.exists(Tn)||ce(!1),ye.updateDroppableIsCombineEnabled({id:Tn,isCombineEnabled:ci})},Vt=function(Tn,ci){if(!Ge)return;te.droppable.exists(Tn)||ce(!1),ye.updateDroppableScroll({id:Tn,newScroll:ci})},Lr=function(Tn,ci){if(!Ge)return;te.droppable.getById(Tn).callbacks.scroll(ci)},Jr=function(){if(!Ge)return;lt.stop();var Tn=Ge.critical.droppable;te.droppable.getAllByType(Tn.type).forEach(function(ci){return ci.callbacks.dragStopped()}),Ge.unsubscribe(),Ge=null},Or=function(Tn){Ge||ce(!1);var ci=Ge.critical.draggable;Tn.type==="ADDITION"&&(xn(te,ci,Tn.value)&<.add(Tn.value)),Tn.type==="REMOVAL"&&(xn(te,ci,Tn.value)&<.remove(Tn.value))},Sr=function(Tn){Ge&&ce(!1);var ci=te.draggable.getById(Tn.draggableId),Ai=te.droppable.getById(ci.descriptor.droppableId),Vi={draggable:ci.descriptor,droppable:Ai.descriptor},Ni=te.subscribe(Or);return Ge={critical:Vi,unsubscribe:Ni},Pr({critical:Vi,registry:te,scrollOptions:Tn.scrollOptions})},Vr={updateDroppableIsEnabled:Rt,updateDroppableIsCombineEnabled:Kt,scrollDroppable:Lr,updateDroppableScroll:Vt,startPublishing:Sr,stopPublishing:Jr};return Vr},$n=function(te,ye){return te.phase==="IDLE"?!0:te.phase!=="DROP_ANIMATING"||te.completed.result.draggableId===ye?!1:te.completed.result.reason==="DROP"},Kn=function(te){window.scrollBy(te.x,te.y)},si=_(function(_e){return rr(_e).filter(function(te){return te.isEnabled?!!te.frame:!1})}),Xn=function(te,ye){var Ge=ae(si(ye),function(lt){return lt.frame||ce(!1),wr(lt.frame.pageMarginBox)(te)});return Ge},ti=function(te){var ye=te.center,Ge=te.destination,lt=te.droppables;if(Ge){var Rt=lt[Ge];return Rt.frame?Rt:null}var Kt=Xn(ye,lt);return Kt},di={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(te){return Math.pow(te,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},Bi=function(te,ye){var Ge=te[ye.size]*di.startFromPercentage,lt=te[ye.size]*di.maxScrollAtPercentage,Rt={startScrollingFrom:Ge,maxScrollValueAt:lt};return Rt},yi=function(te){var ye=te.startOfRange,Ge=te.endOfRange,lt=te.current,Rt=Ge-ye;if(Rt===0)return 0;var Kt=lt-ye,Vt=Kt/Rt;return Vt},Xi=1,ba=function(te,ye){if(te>ye.startScrollingFrom)return 0;if(te<=ye.maxScrollValueAt)return di.maxPixelScroll;if(te===ye.startScrollingFrom)return Xi;var Ge=yi({startOfRange:ye.maxScrollValueAt,endOfRange:ye.startScrollingFrom,current:te}),lt=1-Ge,Rt=di.maxPixelScroll*di.ease(lt);return Math.ceil(Rt)},ta=di.durationDampening.accelerateAt,Qi=di.durationDampening.stopDampeningAt,aa=function(te,ye){var Ge=ye,lt=Qi,Rt=Date.now(),Kt=Rt-Ge;if(Kt>=Qi)return te;if(Kt<ta)return Xi;var Vt=yi({startOfRange:ta,endOfRange:lt,current:Kt}),Lr=te*di.ease(Vt);return Math.ceil(Lr)},fa=function(te){var ye=te.distanceToEdge,Ge=te.thresholds,lt=te.dragStartTime,Rt=te.shouldUseTimeDampening,Kt=ba(ye,Ge);return Kt===0?0:Rt?Math.max(aa(Kt,lt),Xi):Kt},xo=function(te){var ye=te.container,Ge=te.distanceToEdges,lt=te.dragStartTime,Rt=te.axis,Kt=te.shouldUseTimeDampening,Vt=Bi(ye,Rt),Lr=Ge[Rt.end]<Ge[Rt.start];return Lr?fa({distanceToEdge:Ge[Rt.end],thresholds:Vt,dragStartTime:lt,shouldUseTimeDampening:Kt}):-1*fa({distanceToEdge:Ge[Rt.start],thresholds:Vt,dragStartTime:lt,shouldUseTimeDampening:Kt})},Za=function(te){var ye=te.container,Ge=te.subject,lt=te.proposedScroll,Rt=Ge.height>ye.height,Kt=Ge.width>ye.width;return!Kt&&!Rt?lt:Kt&&Rt?null:{x:Kt?0:lt.x,y:Rt?0:lt.y}},Wi=Te(function(_e){return _e===0?0:_e}),Gi=function(te){var ye=te.dragStartTime,Ge=te.container,lt=te.subject,Rt=te.center,Kt=te.shouldUseTimeDampening,Vt={top:Rt.y-Ge.top,right:Ge.right-Rt.x,bottom:Ge.bottom-Rt.y,left:Rt.x-Ge.left},Lr=xo({container:Ge,distanceToEdges:Vt,dragStartTime:ye,axis:kn,shouldUseTimeDampening:Kt}),Jr=xo({container:Ge,distanceToEdges:Vt,dragStartTime:ye,axis:Vn,shouldUseTimeDampening:Kt}),Or=Wi({x:Jr,y:Lr});if(pe(Or,Me))return null;var Sr=Za({container:Ge,subject:lt,proposedScroll:Or});return Sr?pe(Sr,Me)?null:Sr:null},ca=Te(function(_e){return _e===0?0:_e>0?1:-1}),ya=function(){var _e=function(ye,Ge){return ye<0?ye:ye>Ge?ye-Ge:0};return function(te){var ye=te.current,Ge=te.max,lt=te.change,Rt=Ie(ye,lt),Kt={x:_e(Rt.x,Ge.x),y:_e(Rt.y,Ge.y)};return pe(Kt,Me)?null:Kt}}(),Xa=function(te){var ye=te.max,Ge=te.current,lt=te.change,Rt={x:Math.max(Ge.x,ye.x),y:Math.max(Ge.y,ye.y)},Kt=ca(lt),Vt=ya({max:Rt,current:Ge,change:Kt});return Vt?Kt.x!==0&&Vt.x===0?!0:Kt.y!==0&&Vt.y===0:!0},_a=function(te,ye){return Xa({current:te.scroll.current,max:te.scroll.max,change:ye})},qa=function(te,ye){if(!_a(te,ye))return null;var Ge=te.scroll.max,lt=te.scroll.current;return ya({current:lt,max:Ge,change:ye})},ro=function(te,ye){var Ge=te.frame;return Ge?Xa({current:Ge.scroll.current,max:Ge.scroll.max,change:ye}):!1},Uo=function(te,ye){var Ge=te.frame;return Ge&&ro(te,ye)?ya({current:Ge.scroll.current,max:Ge.scroll.max,change:ye}):null},zo=function(te){var ye=te.viewport,Ge=te.subject,lt=te.center,Rt=te.dragStartTime,Kt=te.shouldUseTimeDampening,Vt=Gi({dragStartTime:Rt,container:ye.frame,subject:Ge,center:lt,shouldUseTimeDampening:Kt});return Vt&&_a(ye,Vt)?Vt:null},hs=function(te){var ye=te.droppable,Ge=te.subject,lt=te.center,Rt=te.dragStartTime,Kt=te.shouldUseTimeDampening,Vt=ye.frame;if(!Vt)return null;var Lr=Gi({dragStartTime:Rt,container:Vt.pageMarginBox,subject:Ge,center:lt,shouldUseTimeDampening:Kt});return Lr&&ro(ye,Lr)?Lr:null},Po=function(te){var ye=te.state,Ge=te.dragStartTime,lt=te.shouldUseTimeDampening,Rt=te.scrollWindow,Kt=te.scrollDroppable,Vt=ye.current.page.borderBoxCenter,Lr=ye.dimensions.draggables[ye.critical.draggable.id],Jr=Lr.page.marginBox;if(ye.isWindowScrollAllowed){var Or=ye.viewport,Sr=zo({dragStartTime:Ge,viewport:Or,subject:Jr,center:Vt,shouldUseTimeDampening:lt});if(Sr){Rt(Sr);return}}var Vr=ti({center:Vt,destination:jr(ye.impact),droppables:ye.dimensions.droppables});if(!Vr)return;var qr=hs({dragStartTime:Ge,droppable:Vr,subject:Jr,center:Vt,shouldUseTimeDampening:lt});qr&&Kt(Vr.descriptor.id,qr)},Mo=function(te){var ye=te.scrollWindow,Ge=te.scrollDroppable,lt=D(ye),Rt=D(Ge),Kt=null,Vt=function(Sr){Kt||ce(!1);var Vr=Kt,qr=Vr.shouldUseTimeDampening,Tn=Vr.dragStartTime;Po({state:Sr,scrollWindow:lt,scrollDroppable:Rt,dragStartTime:Tn,shouldUseTimeDampening:qr})},Lr=function(Sr){qn(),Kt&&ce(!1);var Vr=Date.now(),qr=!1,Tn=function(){qr=!0};Po({state:Sr,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Tn,scrollDroppable:Tn}),Kt={dragStartTime:Vr,shouldUseTimeDampening:qr},Li(),qr&&Vt(Sr)},Jr=function(){if(!Kt)return;lt.cancel(),Rt.cancel(),Kt=null};return{start:Lr,stop:Jr,scroll:Vt}},Fa=function(te){var ye=te.move,Ge=te.scrollDroppable,lt=te.scrollWindow,Rt=function(Or,Sr){var Vr=Ie(Or.current.client.selection,Sr);ye({client:Vr})},Kt=function(Or,Sr){if(!ro(Or,Sr))return Sr;var Vr=Uo(Or,Sr);if(!Vr)return Ge(Or.descriptor.id,Sr),null;var qr=oe(Sr,Vr);Ge(Or.descriptor.id,qr);var Tn=oe(Sr,qr);return Tn},Vt=function(Or,Sr,Vr){if(!Or)return Vr;if(!_a(Sr,Vr))return Vr;var qr=qa(Sr,Vr);if(!qr)return lt(Vr),null;var Tn=oe(Vr,qr);lt(Tn);var ci=oe(Vr,Tn);return ci},Lr=function(Or){var Sr=Or.scrollJumpRequest;if(!Sr)return;var Vr=jr(Or.impact);Vr||ce(!1);var qr=Kt(Or.dimensions.droppables[Vr],Sr);if(!qr)return;var Tn=Or.viewport,ci=Vt(Or.isWindowScrollAllowed,Tn,qr);if(!ci)return;Rt(Or,ci)};return Lr},$a=function(te){var ye=te.scrollDroppable,Ge=te.scrollWindow,lt=te.move,Rt=Mo({scrollWindow:Ge,scrollDroppable:ye}),Kt=Fa({move:lt,scrollWindow:Ge,scrollDroppable:ye}),Vt=function(Or){if(Or.phase!=="DRAGGING")return;if(Or.movementMode==="FLUID"){Rt.scroll(Or);return}if(!Or.scrollJumpRequest)return;Kt(Or)},Lr={scroll:Vt,start:Rt.start,stop:Rt.stop};return Lr},Ca="data-rbd",Eo=function(){var _e=Ca+"-drag-handle";return{base:_e,draggableId:_e+"-draggable-id",contextId:_e+"-context-id"}}(),qo=function(){var _e=Ca+"-draggable";return{base:_e,contextId:_e+"-context-id",id:_e+"-id"}}(),vo=function(){var _e=Ca+"-droppable";return{base:_e,contextId:_e+"-context-id",id:_e+"-id"}}(),rs={contextId:Ca+"-scroll-container-context-id"},ho=function(te){return function(ye){return"["+ye+'="'+te+'"]'}},No=function(te,ye){return te.map(function(Ge){var lt=Ge.styles[ye];return lt?Ge.selector+" { "+lt+" }":""}).join(" ")},us="pointer-events: none;",jo=function(te){var ye=ho(te),Ge=function(){var Lr=`
|
|
|
cursor: -webkit-grab;
|
|
|
cursor: grab;
|
|
|
`;return{selector:ye(Eo.contextId),styles:{always:`
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
|
touch-action: manipulation;
|
|
|
`,resting:Lr,dragging:us,dropAnimating:Lr}}}(),lt=function(){var Lr=`
|
|
|
transition: `+Ti.outOfTheWay+`;
|
|
|
`;return{selector:ye(qo.contextId),styles:{dragging:Lr,dropAnimating:Lr,userCancel:Lr}}}(),Rt={selector:ye(vo.contextId),styles:{always:"overflow-anchor: none;"}},Kt={selector:"body",styles:{dragging:`
|
|
|
cursor: grabbing;
|
|
|
cursor: -webkit-grabbing;
|
|
|
user-select: none;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
overflow-anchor: none;
|
|
|
`}},Vt=[lt,Ge,Rt,Kt];return{always:No(Vt,"always"),resting:No(Vt,"resting"),dragging:No(Vt,"dragging"),dropAnimating:No(Vt,"dropAnimating"),userCancel:No(Vt,"userCancel")}},Qo=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?O.useLayoutEffect:O.useEffect,on=function(){var te=document.querySelector("head");return te||ce(!1),te},Fi=function(te){var ye=document.createElement("style");return te&&ye.setAttribute("nonce",te),ye.type="text/css",ye};function Bs(_e,te){var ye=r(function(){return jo(_e)},[_e]),Ge=Object(O.useRef)(null),lt=Object(O.useRef)(null),Rt=a(_(function(Sr){var Vr=lt.current;Vr||ce(!1),Vr.textContent=Sr}),[]),Kt=a(function(Sr){var Vr=Ge.current;Vr||ce(!1),Vr.textContent=Sr},[]);Qo(function(){!Ge.current&&!lt.current||ce(!1);var Sr=Fi(te),Vr=Fi(te);return Ge.current=Sr,lt.current=Vr,Sr.setAttribute(Ca+"-always",_e),Vr.setAttribute(Ca+"-dynamic",_e),on().appendChild(Sr),on().appendChild(Vr),Kt(ye.always),Rt(ye.resting),function(){var qr=function(ci){var Ai=ci.current;Ai||ce(!1),on().removeChild(Ai),ci.current=null};qr(Ge),qr(lt)}},[te,Kt,Rt,ye.always,ye.resting,_e]);var Vt=a(function(){return Rt(ye.dragging)},[Rt,ye.dragging]),Lr=a(function(Sr){if(Sr==="DROP"){Rt(ye.dropAnimating);return}Rt(ye.userCancel)},[Rt,ye.dropAnimating,ye.userCancel]),Jr=a(function(){if(!lt.current)return;Rt(ye.resting)},[Rt,ye.resting]),Or=r(function(){return{dragging:Vt,dropping:Lr,resting:Jr}},[Vt,Lr,Jr]);return Or}var ws=function(te){return te&&te.ownerDocument?te.ownerDocument.defaultView:window};function cs(_e){return _e instanceof ws(_e).HTMLElement}function Vo(_e,te){var ye="["+Eo.contextId+'="'+_e+'"]',Ge=gt(document.querySelectorAll(ye));if(!Ge.length)return null;var lt=ae(Ge,function(Rt){return Rt.getAttribute(Eo.draggableId)===te});return lt&&cs(lt)?lt:null}function vs(_e){var te=Object(O.useRef)({}),ye=Object(O.useRef)(null),Ge=Object(O.useRef)(null),lt=Object(O.useRef)(!1),Rt=a(function(Vr,qr){var Tn={id:Vr,focus:qr};return te.current[Vr]=Tn,function(){var Ai=te.current,Vi=Ai[Vr];Vi!==Tn&&delete Ai[Vr]}},[]),Kt=a(function(Vr){var qr=Vo(_e,Vr);qr&&qr!==document.activeElement&&qr.focus()},[_e]),Vt=a(function(Vr,qr){ye.current===Vr&&(ye.current=qr)},[]),Lr=a(function(){if(Ge.current)return;if(!lt.current)return;Ge.current=requestAnimationFrame(function(){Ge.current=null;var Vr=ye.current;Vr&&Kt(Vr)})},[Kt]),Jr=a(function(Vr){ye.current=null;var qr=document.activeElement;if(!qr)return;if(qr.getAttribute(Eo.draggableId)!==Vr)return;ye.current=Vr},[]);Qo(function(){return lt.current=!0,function(){lt.current=!1;var Vr=Ge.current;Vr&&cancelAnimationFrame(Vr)}},[]);var Or=r(function(){return{register:Rt,tryRecordFocus:Jr,tryRestoreFocusRecorded:Lr,tryShiftRecord:Vt}},[Rt,Jr,Lr,Vt]);return Or}function Ss(){var _e={draggables:{},droppables:{}},te=[];function ye(Sr){return te.push(Sr),function(){var qr=te.indexOf(Sr);if(qr===-1)return;te.splice(qr,1)}}function Ge(Sr){te.length&&te.forEach(function(Vr){return Vr(Sr)})}function lt(Sr){return _e.draggables[Sr]||null}function Rt(Sr){var Vr=lt(Sr);return Vr||ce(!1),Vr}var Kt={register:function(Vr){_e.draggables[Vr.descriptor.id]=Vr,Ge({type:"ADDITION",value:Vr})},update:function(Vr,qr){var Tn=_e.draggables[qr.descriptor.id];if(!Tn)return;if(Tn.uniqueId!==Vr.uniqueId)return;delete _e.draggables[qr.descriptor.id],_e.draggables[Vr.descriptor.id]=Vr},unregister:function(Vr){var qr=Vr.descriptor.id,Tn=lt(qr);if(!Tn)return;if(Vr.uniqueId!==Tn.uniqueId)return;delete _e.draggables[qr],Ge({type:"REMOVAL",value:Vr})},getById:Rt,findById:lt,exists:function(Vr){return Boolean(lt(Vr))},getAllByType:function(Vr){return Re(_e.draggables).filter(function(qr){return qr.descriptor.type===Vr})}};function Vt(Sr){return _e.droppables[Sr]||null}function Lr(Sr){var Vr=Vt(Sr);return Vr||ce(!1),Vr}var Jr={register:function(Vr){_e.droppables[Vr.descriptor.id]=Vr},unregister:function(Vr){var qr=Vt(Vr.descriptor.id);if(!qr)return;if(Vr.uniqueId!==qr.uniqueId)return;delete _e.droppables[Vr.descriptor.id]},getById:Lr,findById:Vt,exists:function(Vr){return Boolean(Vt(Vr))},getAllByType:function(Vr){return Re(_e.droppables).filter(function(qr){return qr.descriptor.type===Vr})}};function Or(){_e.draggables={},_e.droppables={},te.length=0}return{draggable:Kt,droppable:Jr,subscribe:ye,clean:Or}}function ns(){var _e=r(Ss,[]);return Object(O.useEffect)(function(){return function(){requestAnimationFrame(_e.clean)}},[_e]),_e}var es=x.a.createContext(null),fs=function(){var te=document.body;return te||ce(!1),te},ys={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},ds=function(te){return"rbd-announcement-"+te};function yo(_e){var te=r(function(){return ds(_e)},[_e]),ye=Object(O.useRef)(null);Object(O.useEffect)(function(){var Rt=document.createElement("div");return ye.current=Rt,Rt.id=te,Rt.setAttribute("aria-live","assertive"),Rt.setAttribute("aria-atomic","true"),Object(v.a)(Rt.style,ys),fs().appendChild(Rt),function(){setTimeout(function(){var Lr=fs();Lr.contains(Rt)&&Lr.removeChild(Rt),Rt===ye.current&&(ye.current=null)})}},[te]);var Ge=a(function(lt){var Rt=ye.current;if(Rt){Rt.textContent=lt;return}},[]);return Ge}var no=0,Jo={separator:"::"};function Go(){no=0}function xt(_e,te){return te===void 0&&(te=Jo),r(function(){return""+_e+te.separator+no++},[te.separator,_e])}function Ft(_e){var te=_e.contextId,ye=_e.uniqueId;return"rbd-hidden-text-"+te+"-"+ye}function An(_e){var te=_e.contextId,ye=_e.text,Ge=xt("hidden-text",{separator:"-"}),lt=r(function(){return Ft({contextId:te,uniqueId:Ge})},[Ge,te]);return Object(O.useEffect)(function(){var Kt=document.createElement("div");return Kt.id=lt,Kt.textContent=ye,Kt.style.display="none",fs().appendChild(Kt),function(){var Lr=fs();Lr.contains(Kt)&&Lr.removeChild(Kt)}},[lt,ye]),lt}var Hn=x.a.createContext(null),hi={react:"^16.8.5","react-dom":"^16.8.5"},At=/(\d+)\.(\d+)\.(\d+)/,se=function(te){var ye=At.exec(te);ye!=null||ce(!1);var Ge=Number(ye[1]),lt=Number(ye[2]),Rt=Number(ye[3]);return{major:Ge,minor:lt,patch:Rt,raw:te}},ge=function(te,ye){return ye.major>te.major?!0:ye.major<te.major?!1:ye.minor>te.minor?!0:ye.minor<te.minor?!1:ye.patch>=te.patch},Se=function(te,ye){var Ge=se(te),lt=se(ye);if(ge(Ge,lt))return},We=`
|
|
|
We expect a html5 doctype: <!doctype html>
|
|
|
This is to ensure consistent browser layout and measurement
|
|
|
|
|
|
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
|
|
|
`,vt=function(te){var ye=te.doctype;if(!ye)return;ye.name.toLowerCase()!=="html",ye.publicId!==""};function Yt(_e){}function Rr(_e,te){Yt(function(){Object(O.useEffect)(function(){try{_e()}catch(ye){ee(`
|
|
|
A setup problem was encountered.
|
|
|
|
|
|
> `+ye.message+`
|
|
|
`)}},te)})}function Yr(){Rr(function(){Se(hi.react,x.a.version),vt(document)},[])}function mn(_e){var te=Object(O.useRef)(_e);return Object(O.useEffect)(function(){te.current=_e}),te}function Wn(){var _e=null;function te(){return Boolean(_e)}function ye(Kt){return Kt===_e}function Ge(Kt){_e&&ce(!1);var Vt={abandon:Kt};return _e=Vt,Vt}function lt(){_e||ce(!1),_e=null}function Rt(){_e&&(_e.abandon(),lt())}return{isClaimed:te,isActive:ye,claim:Ge,release:lt,tryAbandon:Rt}}var Jn=9,ri=13,Ii=27,Yi=32,ma=33,Ta=34,uo=35,bo=36,co=37,Zo=38,Oo=39,Do=40,Ha,Ya=(Ha={},Ha[ri]=!0,Ha[Jn]=!0,Ha),ps=function(te){Ya[te.keyCode]&&te.preventDefault()},ts=function(){var _e="visibilitychange";if(typeof document=="undefined")return _e;var te=[_e,"ms"+_e,"webkit"+_e,"moz"+_e,"o"+_e],ye=ae(te,function(Ge){return"on"+Ge in document});return ye||_e}(),$o=0,Ds=5;function Hs(_e,te){return Math.abs(te.x-_e.x)>=Ds||Math.abs(te.y-_e.y)>=Ds}var xs={type:"IDLE"};function Xo(_e){var te=_e.cancel,ye=_e.completed,Ge=_e.getPhase,lt=_e.setPhase;return[{eventName:"mousemove",fn:function(Kt){var Vt=Kt.button,Lr=Kt.clientX,Jr=Kt.clientY;if(Vt!==$o)return;var Or={x:Lr,y:Jr},Sr=Ge();if(Sr.type==="DRAGGING"){Kt.preventDefault(),Sr.actions.move(Or);return}Sr.type==="PENDING"||ce(!1);var Vr=Sr.point;if(!Hs(Vr,Or))return;Kt.preventDefault();var qr=Sr.actions.fluidLift(Or);lt({type:"DRAGGING",actions:qr})}},{eventName:"mouseup",fn:function(Kt){var Vt=Ge();if(Vt.type!=="DRAGGING"){te();return}Kt.preventDefault(),Vt.actions.drop({shouldBlockNextClick:!0}),ye()}},{eventName:"mousedown",fn:function(Kt){Ge().type==="DRAGGING"&&Kt.preventDefault(),te()}},{eventName:"keydown",fn:function(Kt){var Vt=Ge();if(Vt.type==="PENDING"){te();return}if(Kt.keyCode===Ii){Kt.preventDefault(),te();return}ps(Kt)}},{eventName:"resize",fn:te},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){Ge().type==="PENDING"&&te()}},{eventName:"webkitmouseforcedown",fn:function(Kt){var Vt=Ge();if(Vt.type!=="IDLE"||ce(!1),Vt.actions.shouldRespectForcePress()){te();return}Kt.preventDefault()}},{eventName:ts,fn:te}]}function Js(_e){var te=Object(O.useRef)(xs),ye=Object(O.useRef)(fe),Ge=r(function(){return{eventName:"mousedown",fn:function(Sr){if(Sr.defaultPrevented)return;if(Sr.button!==$o)return;if(Sr.ctrlKey||Sr.metaKey||Sr.shiftKey||Sr.altKey)return;var Vr=_e.findClosestDraggableId(Sr);if(!Vr)return;var qr=_e.tryGetLock(Vr,Kt,{sourceEvent:Sr});if(!qr)return;Sr.preventDefault();var Tn={x:Sr.clientX,y:Sr.clientY};ye.current(),Jr(qr,Tn)}}},[_e]),lt=r(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Sr){if(Sr.defaultPrevented)return;var Vr=_e.findClosestDraggableId(Sr);if(!Vr)return;var qr=_e.findOptionsForDraggable(Vr);if(!qr)return;if(qr.shouldRespectForcePress)return;if(!_e.canGetLock(Vr))return;Sr.preventDefault()}}},[_e]),Rt=a(function(){var Sr={passive:!1,capture:!0};ye.current=we(window,[lt,Ge],Sr)},[lt,Ge]),Kt=a(function(){var Or=te.current;if(Or.type==="IDLE")return;te.current=xs,ye.current(),Rt()},[Rt]),Vt=a(function(){var Or=te.current;Kt(),Or.type==="DRAGGING"&&Or.actions.cancel({shouldBlockNextClick:!0}),Or.type==="PENDING"&&Or.actions.abort()},[Kt]),Lr=a(function(){var Sr={capture:!0,passive:!1},Vr=Xo({cancel:Vt,completed:Kt,getPhase:function(){return te.current},setPhase:function(Tn){te.current=Tn}});ye.current=we(window,Vr,Sr)},[Vt,Kt]),Jr=a(function(Sr,Vr){te.current.type==="IDLE"||ce(!1),te.current={type:"PENDING",point:Vr,actions:Sr},Lr()},[Lr]);Qo(function(){return Rt(),function(){ye.current()}},[Rt])}var Cs;function fl(){}var sl=(Cs={},Cs[Ta]=!0,Cs[ma]=!0,Cs[bo]=!0,Cs[uo]=!0,Cs);function Ks(_e,te){function ye(){te(),_e.cancel()}function Ge(){te(),_e.drop()}return[{eventName:"keydown",fn:function(Rt){if(Rt.keyCode===Ii){Rt.preventDefault(),ye();return}if(Rt.keyCode===Yi){Rt.preventDefault(),Ge();return}if(Rt.keyCode===Do){Rt.preventDefault(),_e.moveDown();return}if(Rt.keyCode===Zo){Rt.preventDefault(),_e.moveUp();return}if(Rt.keyCode===Oo){Rt.preventDefault(),_e.moveRight();return}if(Rt.keyCode===co){Rt.preventDefault(),_e.moveLeft();return}if(sl[Rt.keyCode]){Rt.preventDefault();return}ps(Rt)}},{eventName:"mousedown",fn:ye},{eventName:"mouseup",fn:ye},{eventName:"click",fn:ye},{eventName:"touchstart",fn:ye},{eventName:"resize",fn:ye},{eventName:"wheel",fn:ye,options:{passive:!0}},{eventName:ts,fn:ye}]}function as(_e){var te=Object(O.useRef)(fl),ye=r(function(){return{eventName:"keydown",fn:function(Rt){if(Rt.defaultPrevented)return;if(Rt.keyCode!==Yi)return;var Kt=_e.findClosestDraggableId(Rt);if(!Kt)return;var Vt=_e.tryGetLock(Kt,Or,{sourceEvent:Rt});if(!Vt)return;Rt.preventDefault();var Lr=!0,Jr=Vt.snapLift();te.current();function Or(){Lr||ce(!1),Lr=!1,te.current(),Ge()}te.current=we(window,Ks(Jr,Or),{capture:!0,passive:!1})}}},[_e]),Ge=a(function(){var Rt={passive:!1,capture:!0};te.current=we(window,[ye],Rt)},[ye]);Qo(function(){return Ge(),function(){te.current()}},[Ge])}var ha={type:"IDLE"},Zs=120,ll=.15;function lo(_e){var te=_e.cancel,ye=_e.getPhase;return[{eventName:"orientationchange",fn:te},{eventName:"resize",fn:te},{eventName:"contextmenu",fn:function(lt){lt.preventDefault()}},{eventName:"keydown",fn:function(lt){if(ye().type!=="DRAGGING"){te();return}lt.keyCode===Ii&<.preventDefault(),te()}},{eventName:ts,fn:te}]}function Ka(_e){var te=_e.cancel,ye=_e.completed,Ge=_e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Rt){var Kt=Ge();if(Kt.type!=="DRAGGING"){te();return}Kt.hasMoved=!0;var Vt=Rt.touches[0],Lr=Vt.clientX,Jr=Vt.clientY,Or={x:Lr,y:Jr};Rt.preventDefault(),Kt.actions.move(Or)}},{eventName:"touchend",fn:function(Rt){var Kt=Ge();if(Kt.type!=="DRAGGING"){te();return}Rt.preventDefault(),Kt.actions.drop({shouldBlockNextClick:!0}),ye()}},{eventName:"touchcancel",fn:function(Rt){if(Ge().type!=="DRAGGING"){te();return}Rt.preventDefault(),te()}},{eventName:"touchforcechange",fn:function(Rt){var Kt=Ge();Kt.type!=="IDLE"||ce(!1);var Vt=Rt.touches[0];if(!Vt)return;var Lr=Vt.force>=ll;if(!Lr)return;var Jr=Kt.actions.shouldRespectForcePress();if(Kt.type==="PENDING"){Jr&&te();return}if(Jr){if(Kt.hasMoved){Rt.preventDefault();return}te();return}Rt.preventDefault()}},{eventName:ts,fn:te}]}function Fo(_e){var te=Object(O.useRef)(ha),ye=Object(O.useRef)(fe),Ge=a(function(){return te.current},[]),lt=a(function(qr){te.current=qr},[]),Rt=r(function(){return{eventName:"touchstart",fn:function(qr){if(qr.defaultPrevented)return;var Tn=_e.findClosestDraggableId(qr);if(!Tn)return;var ci=_e.tryGetLock(Tn,Vt,{sourceEvent:qr});if(!ci)return;var Ai=qr.touches[0],Vi=Ai.clientX,Ni=Ai.clientY,Oa={x:Vi,y:Ni};ye.current(),Sr(ci,Oa)}}},[_e]),Kt=a(function(){var qr={capture:!0,passive:!1};ye.current=we(window,[Rt],qr)},[Rt]),Vt=a(function(){var Vr=te.current;if(Vr.type==="IDLE")return;Vr.type==="PENDING"&&clearTimeout(Vr.longPressTimerId),lt(ha),ye.current(),Kt()},[Kt,lt]),Lr=a(function(){var Vr=te.current;Vt(),Vr.type==="DRAGGING"&&Vr.actions.cancel({shouldBlockNextClick:!0}),Vr.type==="PENDING"&&Vr.actions.abort()},[Vt]),Jr=a(function(){var qr={capture:!0,passive:!1},Tn={cancel:Lr,completed:Vt,getPhase:Ge},ci=we(window,Ka(Tn),qr),Ai=we(window,lo(Tn),qr);ye.current=function(){ci(),Ai()}},[Lr,Ge,Vt]),Or=a(function(){var qr=Ge();qr.type==="PENDING"||ce(!1);var Tn=qr.actions.fluidLift(qr.point);lt({type:"DRAGGING",actions:Tn,hasMoved:!1})},[Ge,lt]),Sr=a(function(qr,Tn){Ge().type==="IDLE"||ce(!1);var ci=setTimeout(Or,Zs);lt({type:"PENDING",point:Tn,actions:qr,longPressTimerId:ci}),Jr()},[Jr,Ge,lt,Or]);Qo(function(){return Kt(),function(){ye.current();var Tn=Ge();Tn.type==="PENDING"&&(clearTimeout(Tn.longPressTimerId),lt(ha))}},[Ge,Kt,lt]),Qo(function(){var qr=we(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return qr},[])}function Ko(_e){Yt(function(){var te=mn(_e);Rr(function(){te.current.length===_e.length||ce(!1)})})}var Wo={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Co(_e,te){if(te==null)return!1;var ye=Boolean(Wo[te.tagName.toLowerCase()]);if(ye)return!0;var Ge=te.getAttribute("contenteditable");return Ge==="true"||Ge===""?!0:te===_e?!1:Co(_e,te.parentElement)}function is(_e,te){var ye=te.target;return cs(ye)?Co(_e,ye):!1}var ms=function(te){return e(te.getBoundingClientRect()).center};function Rs(_e){return _e instanceof ws(_e).Element}var Us=function(){var _e="matches";if(typeof document=="undefined")return _e;var te=[_e,"msMatchesSelector","webkitMatchesSelector"],ye=ae(te,function(Ge){return Ge in Element.prototype});return ye||_e}();function el(_e,te){return _e==null?null:_e[Us](te)?_e:el(_e.parentElement,te)}function Qs(_e,te){return _e.closest?_e.closest(te):el(_e,te)}function tl(_e){return"["+Eo.contextId+'="'+_e+'"]'}function _s(_e,te){var ye=te.target;if(!Rs(ye))return null;var Ge=tl(_e),lt=Qs(ye,Ge);return lt&&cs(lt)?lt:null}function Ts(_e,te){var ye=_s(_e,te);return ye?ye.getAttribute(Eo.draggableId):null}function Ws(_e,te){var ye="["+qo.contextId+'="'+_e+'"]',Ge=gt(document.querySelectorAll(ye)),lt=ae(Ge,function(Rt){return Rt.getAttribute(qo.id)===te});return lt&&cs(lt)?lt:null}function Os(_e){_e.preventDefault()}function zs(_e){var te=_e.expected,ye=_e.phase,Ge=_e.isLockActive,lt=_e.shouldWarn;return Ge()?!(te!==ye):!1}function Tl(_e){var te=_e.lockAPI,ye=_e.store,Ge=_e.registry,lt=_e.draggableId;if(te.isClaimed())return!1;var Rt=Ge.draggable.findById(lt);return Rt&&Rt.options.isEnabled?!!$n(ye.getState(),lt):!1}function Sl(_e){var te=_e.lockAPI,ye=_e.contextId,Ge=_e.store,lt=_e.registry,Rt=_e.draggableId,Kt=_e.forceSensorStop,Vt=_e.sourceEvent,Lr=Tl({lockAPI:te,store:Ge,registry:lt,draggableId:Rt});if(!Lr)return null;var Jr=lt.draggable.getById(Rt),Or=Ws(ye,Jr.descriptor.id);if(!Or)return null;if(Vt&&!Jr.options.canDragInteractiveElements&&is(Or,Vt))return null;var Sr=te.claim(Kt||fe),Vr="PRE_DRAG";function qr(){return Jr.options.shouldRespectForcePress}function Tn(){return te.isActive(Sr)}function ci(Na,Ba){zs({expected:Na,phase:Vr,isLockActive:Tn,shouldWarn:!0})&&Ge.dispatch(Ba())}var Ai=ci.bind(null,"DRAGGING");function Vi(Na){function Ba(){te.release(),Vr="COMPLETED"}Vr!=="PRE_DRAG"&&(Ba(),Vr==="PRE_DRAG"||ce(!1)),Ge.dispatch(sr(Na.liftActionArgs)),Vr="DRAGGING";function Lo(k,W){if(W===void 0&&(W={shouldBlockNextClick:!1}),Na.cleanup(),W.shouldBlockNextClick){var q=we(window,[{eventName:"click",fn:Os,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(q)}Ba(),Ge.dispatch(fi({reason:k}))}return Object(v.a)({isActive:function(){return zs({expected:"DRAGGING",phase:Vr,isLockActive:Tn,shouldWarn:!1})},shouldRespectForcePress:qr,drop:function(W){return Lo("DROP",W)},cancel:function(W){return Lo("CANCEL",W)}},Na.actions)}function Ni(Na){var Ba=D(function(k){Ai(function(){return St({client:k})})}),Lo=Vi({liftActionArgs:{id:Rt,clientSelection:Na,movementMode:"FLUID"},cleanup:function(){return Ba.cancel()},actions:{move:Ba}});return Object(v.a)({},Lo,{move:Ba})}function Oa(){var Na={moveUp:function(){return Ai(Br)},moveRight:function(){return Ai(wn)},moveDown:function(){return Ai($r)},moveLeft:function(){return Ai(rn)}};return Vi({liftActionArgs:{id:Rt,clientSelection:ms(Or),movementMode:"SNAP"},cleanup:fe,actions:Na})}function Zi(){var Na=zs({expected:"PRE_DRAG",phase:Vr,isLockActive:Tn,shouldWarn:!0});Na&&te.release()}var Wa={isActive:function(){return zs({expected:"PRE_DRAG",phase:Vr,isLockActive:Tn,shouldWarn:!1})},shouldRespectForcePress:qr,fluidLift:Ni,snapLift:Oa,abort:Zi};return Wa}var Ol=[Js,as,Fo];function Yl(_e){var te=_e.contextId,ye=_e.store,Ge=_e.registry,lt=_e.customSensors,Rt=_e.enableDefaultSensors,Kt=[].concat(Rt?Ol:[],lt||[]),Vt=Object(O.useState)(function(){return Wn()})[0],Lr=a(function(Ni,Oa){Ni.isDragging&&!Oa.isDragging&&Vt.tryAbandon()},[Vt]);Qo(function(){var Ni=ye.getState(),Oa=ye.subscribe(function(){var Zi=ye.getState();Lr(Ni,Zi),Ni=Zi});return Oa},[Vt,ye,Lr]),Qo(function(){return Vt.tryAbandon},[Vt.tryAbandon]);var Jr=a(function(Vi){return Tl({lockAPI:Vt,registry:Ge,store:ye,draggableId:Vi})},[Vt,Ge,ye]),Or=a(function(Vi,Ni,Oa){return Sl({lockAPI:Vt,registry:Ge,contextId:te,store:ye,draggableId:Vi,forceSensorStop:Ni,sourceEvent:Oa&&Oa.sourceEvent?Oa.sourceEvent:null})},[te,Vt,Ge,ye]),Sr=a(function(Vi){return Ts(te,Vi)},[te]),Vr=a(function(Vi){var Ni=Ge.draggable.findById(Vi);return Ni?Ni.options:null},[Ge.draggable]),qr=a(function(){if(!Vt.isClaimed())return;Vt.tryAbandon(),ye.getState().phase!=="IDLE"&&ye.dispatch(On())},[Vt,ye]),Tn=a(Vt.isClaimed,[Vt]),ci=r(function(){return{canGetLock:Jr,tryGetLock:Or,findClosestDraggableId:Sr,findOptionsForDraggable:Vr,tryReleaseLock:qr,isLockClaimed:Tn}},[Jr,Or,Sr,Vr,qr,Tn]);Ko(Kt);for(var Ai=0;Ai<Kt.length;Ai++)Kt[Ai](ci)}var yu=function(te){return{onBeforeCapture:te.onBeforeCapture,onBeforeDragStart:te.onBeforeDragStart,onDragStart:te.onDragStart,onDragEnd:te.onDragEnd,onDragUpdate:te.onDragUpdate}};function ul(_e){return _e.current||ce(!1),_e.current}function Rl(_e){var te=_e.contextId,ye=_e.setCallbacks,Ge=_e.sensors,lt=_e.nonce,Rt=_e.dragHandleUsageInstructions,Kt=Object(O.useRef)(null);Yr();var Vt=mn(_e),Lr=a(function(){return yu(Vt.current)},[Vt]),Jr=yo(te),Or=An({contextId:te,text:Rt}),Sr=Bs(te,lt),Vr=a(function(k){ul(Kt).dispatch(k)},[]),qr=r(function(){return Object(S.b)({publishWhileDragging:Zt,updateDroppableScroll:Nr,updateDroppableIsEnabled:tn,updateDroppableIsCombineEnabled:pn,collectionStarting:Ar},Vr)},[Vr]),Tn=ns(),ci=r(function(){return Qn(Tn,qr)},[Tn,qr]),Ai=r(function(){return $a(Object(v.a)({scrollWindow:Kn,scrollDroppable:ci.scrollDroppable},Object(S.b)({move:St},Vr)))},[ci.scrollDroppable,Vr]),Vi=vs(te),Ni=r(function(){return ar({announce:Jr,autoScroller:Ai,dimensionMarshal:ci,focusMarshal:Vi,getResponders:Lr,styleMarshal:Sr})},[Jr,Ai,ci,Vi,Lr,Sr]);Kt.current=Ni;var Oa=a(function(){var k=ul(Kt),W=k.getState();W.phase!=="IDLE"&&k.dispatch(On())},[]),Zi=a(function(){var k=ul(Kt).getState();return k.isDragging||k.phase==="DROP_ANIMATING"},[]),Wa=r(function(){return{isDragging:Zi,tryAbort:Oa}},[Zi,Oa]);ye(Wa);var Na=a(function(k){return $n(ul(Kt).getState(),k)},[]),Ba=a(function(){return Wt(ul(Kt).getState())},[]),Lo=r(function(){return{marshal:ci,focus:Vi,contextId:te,canLift:Na,isMovementAllowed:Ba,dragHandleUsageInstructionsId:Or,registry:Tn}},[te,ci,Or,Vi,Na,Ba,Tn]);return Yl({contextId:te,store:Ni,registry:Tn,customSensors:Ge,enableDefaultSensors:_e.enableDefaultSensors!==!1}),Object(O.useEffect)(function(){return Oa},[Oa]),x.a.createElement(Hn.Provider,{value:Lo},x.a.createElement(m.a,{context:es,store:Ni},_e.children))}var zl=0;function bu(){zl=0}function wu(){return r(function(){return""+zl++},[])}function cu(){bu(),Go()}function Su(_e){var te=wu(),ye=_e.dragHandleUsageInstructions||he.dragHandleUsageInstructions;return x.a.createElement(Pe,null,function(Ge){return x.a.createElement(Rl,{nonce:_e.nonce,contextId:te,setCallbacks:Ge,dragHandleUsageInstructions:ye,enableDefaultSensors:_e.enableDefaultSensors,sensors:_e.sensors,onBeforeCapture:_e.onBeforeCapture,onBeforeDragStart:_e.onBeforeDragStart,onDragStart:_e.onDragStart,onDragUpdate:_e.onDragUpdate,onDragEnd:_e.onDragEnd},_e.children)})}var Bl=function(te){return function(ye){return te===ye}},rl=Bl("scroll"),al=Bl("auto"),dl=Bl("visible"),Vl=function(te,ye){return ye(te.overflowX)||ye(te.overflowY)},tu=function(te,ye){return ye(te.overflowX)&&ye(te.overflowY)},ru=function(te){var ye=window.getComputedStyle(te),Ge={overflowX:ye.overflowX,overflowY:ye.overflowY};return Vl(Ge,rl)||Vl(Ge,al)},Ql=function(){return!1;var te,ye;if(!ru(te))return!1;var Ge,lt;if(tu(lt,dl))return!1},Ml=function _e(te){return te==null?null:te===document.body?Ql()?te:null:te===document.documentElement?null:ru(te)?te:_e(te.parentElement)},nu=function(te){if(!te)return;var ye=Ml(te.parentElement);if(!ye)return},Jl=function(te){return{x:te.scrollLeft,y:te.scrollTop}},du=function _e(te){if(!te)return!1;var ye=window.getComputedStyle(te);return ye.position==="fixed"?!0:_e(te.parentElement)},Al=function(te){var ye=Ml(te),Ge=du(te);return{closestScrollable:ye,isFixedOnPage:Ge}},kl=function(te){var ye=te.descriptor,Ge=te.isEnabled,lt=te.isCombineEnabled,Rt=te.isFixedOnPage,Kt=te.direction,Vt=te.client,Lr=te.page,Jr=te.closest,Or=function(){if(!Jr)return null;var Tn=Jr.scrollSize,ci=Jr.client,Ai=En({scrollHeight:Tn.scrollHeight,scrollWidth:Tn.scrollWidth,height:ci.paddingBox.height,width:ci.paddingBox.width});return{pageMarginBox:Jr.page.marginBox,frameClient:ci,scrollSize:Tn,shouldClipSubject:Jr.shouldClipSubject,scroll:{initial:Jr.scroll,current:Jr.scroll,max:Ai,diff:{value:Me,displacement:Me}}}}(),Sr=Kt==="vertical"?kn:Vn,Vr=Be({page:Lr,withPlaceholder:null,axis:Sr,frame:Or}),qr={descriptor:ye,isCombineEnabled:lt,isFixedOnPage:Rt,axis:Sr,isEnabled:Ge,client:Vt,page:Lr,frame:Or,subject:Vr};return qr},Pl=function(te,ye){var Ge=E(te);if(!ye)return Ge;if(te!==ye)return Ge;var lt=Ge.paddingBox.top-ye.scrollTop,Rt=Ge.paddingBox.left-ye.scrollLeft,Kt=lt+ye.scrollHeight,Vt=Rt+ye.scrollWidth,Lr={top:lt,right:Vt,bottom:Kt,left:Rt},Jr=s(Lr,Ge.border),Or=u({borderBox:Jr,margin:Ge.margin,border:Ge.border,padding:Ge.padding});return Or},Zl=function(te){var ye=te.ref,Ge=te.descriptor,lt=te.env,Rt=te.windowScroll,Kt=te.direction,Vt=te.isDropDisabled,Lr=te.isCombineEnabled,Jr=te.shouldClipSubject,Or=lt.closestScrollable,Sr=Pl(ye,Or),Vr=A(Sr,Rt),qr=function(){if(!Or)return null;var ci=E(Or),Ai={scrollHeight:Or.scrollHeight,scrollWidth:Or.scrollWidth};return{client:ci,page:A(ci,Rt),scroll:Jl(Or),scrollSize:Ai,shouldClipSubject:Jr}}(),Tn=kl({descriptor:Ge,isEnabled:!Vt,isCombineEnabled:Lr,isFixedOnPage:lt.isFixedOnPage,direction:Kt,client:Sr,page:Vr,closest:qr});return Tn},Il={passive:!1},Iu={passive:!0},pl=function(te){return te.shouldPublishImmediately?Il:Iu};function xl(_e){var te=Object(O.useContext)(_e);return te||ce(!1),te}var iu=function(te){return te&&te.env.closestScrollable||null};function _u(_e){var te=Object(O.useRef)(null),ye=xl(Hn),Ge=xt("droppable"),lt=ye.registry,Rt=ye.marshal,Kt=mn(_e),Vt=r(function(){return{id:_e.droppableId,type:_e.type,mode:_e.mode}},[_e.droppableId,_e.mode,_e.type]),Lr=Object(O.useRef)(Vt),Jr=r(function(){return _(function(Zi,Wa){te.current||ce(!1);var Na={x:Zi,y:Wa};Rt.updateDroppableScroll(Vt.id,Na)})},[Vt.id,Rt]),Or=a(function(){var Zi=te.current;return!Zi||!Zi.env.closestScrollable?Me:Jl(Zi.env.closestScrollable)},[]),Sr=a(function(){var Zi=Or();Jr(Zi.x,Zi.y)},[Or,Jr]),Vr=r(function(){return D(Sr)},[Sr]),qr=a(function(){var Zi=te.current,Wa=iu(Zi);Zi&&Wa||ce(!1);var Na=Zi.scrollOptions;if(Na.shouldPublishImmediately){Sr();return}Vr()},[Vr,Sr]),Tn=a(function(Zi,Wa){te.current&&ce(!1);var Na=Kt.current,Ba=Na.getDroppableRef();Ba||ce(!1);var Lo=Al(Ba),k={ref:Ba,descriptor:Vt,env:Lo,scrollOptions:Wa};te.current=k;var W=Zl({ref:Ba,descriptor:Vt,env:Lo,windowScroll:Zi,direction:Na.direction,isDropDisabled:Na.isDropDisabled,isCombineEnabled:Na.isCombineEnabled,shouldClipSubject:!Na.ignoreContainerClipping}),q=Lo.closestScrollable;return q&&(q.setAttribute(rs.contextId,ye.contextId),q.addEventListener("scroll",qr,pl(k.scrollOptions))),W},[ye.contextId,Vt,qr,Kt]),ci=a(function(){var Zi=te.current,Wa=iu(Zi);return Zi&&Wa||ce(!1),Jl(Wa)},[]),Ai=a(function(){var Zi=te.current;Zi||ce(!1);var Wa=iu(Zi);if(te.current=null,!Wa)return;Vr.cancel(),Wa.removeAttribute(rs.contextId),Wa.removeEventListener("scroll",qr,pl(Zi.scrollOptions))},[qr,Vr]),Vi=a(function(Zi){var Wa=te.current;Wa||ce(!1);var Na=iu(Wa);Na||ce(!1),Na.scrollTop+=Zi.y,Na.scrollLeft+=Zi.x},[]),Ni=r(function(){return{getDimensionAndWatchScroll:Tn,getScrollWhileDragging:ci,dragStopped:Ai,scroll:Vi}},[Ai,Tn,ci,Vi]),Oa=r(function(){return{uniqueId:Ge,descriptor:Vt,callbacks:Ni}},[Ni,Vt,Ge]);Qo(function(){return Lr.current=Oa.descriptor,lt.droppable.register(Oa),function(){te.current&&Ai(),lt.droppable.unregister(Oa)}},[Ni,Vt,Ai,Oa,Rt,lt.droppable]),Qo(function(){if(!te.current)return;Rt.updateDroppableIsEnabled(Lr.current.id,!_e.isDropDisabled)},[_e.isDropDisabled,Rt]),Qo(function(){if(!te.current)return;Rt.updateDroppableIsCombineEnabled(Lr.current.id,_e.isCombineEnabled)},[_e.isCombineEnabled,Rt])}function hu(){}var _l={width:0,height:0,margin:Ot},ml=function(te){var ye=te.isAnimatingOpenOnMount,Ge=te.placeholder,lt=te.animate;return ye||lt==="close"?_l:{height:Ge.client.borderBox.height,width:Ge.client.borderBox.width,margin:Ge.client.margin}},Ul=function(te){var ye=te.isAnimatingOpenOnMount,Ge=te.placeholder,lt=te.animate,Rt=ml({isAnimatingOpenOnMount:ye,placeholder:Ge,animate:lt});return{display:Ge.display,boxSizing:"border-box",width:Rt.width,height:Rt.height,marginTop:Rt.margin.top,marginRight:Rt.margin.right,marginBottom:Rt.margin.bottom,marginLeft:Rt.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:lt!=="none"?Ti.placeholder:null}};function xu(_e){var te=Object(O.useRef)(null),ye=a(function(){if(!te.current)return;clearTimeout(te.current),te.current=null},[]),Ge=_e.animate,lt=_e.onTransitionEnd,Rt=_e.onClose,Kt=_e.contextId,Vt=Object(O.useState)(_e.animate==="open"),Lr=Vt[0],Jr=Vt[1];Object(O.useEffect)(function(){return Lr?Ge!=="open"?(ye(),Jr(!1),hu):te.current?hu:(te.current=setTimeout(function(){te.current=null,Jr(!1)}),ye):hu},[Ge,Lr,ye]);var Or=a(function(Vr){if(Vr.propertyName!=="height")return;lt(),Ge==="close"&&Rt()},[Ge,Rt,lt]),Sr=Ul({isAnimatingOpenOnMount:Lr,animate:_e.animate,placeholder:_e.placeholder});return x.a.createElement(_e.placeholder.tagName,{style:Sr,"data-rbd-placeholder-context-id":Kt,onTransitionEnd:Or,ref:_e.innerRef})}var Eu=x.a.memo(xu),fu=x.a.createContext(null);function jl(_e){_e&&cs(_e)||ce(!1)}function au(_e){return typeof _e=="boolean"}function $l(_e,te){te.forEach(function(ye){return ye(_e)})}var ou=[function(te){var ye=te.props;ye.droppableId||ce(!1),typeof ye.droppableId=="string"||ce(!1)},function(te){var ye=te.props;au(ye.isDropDisabled)||ce(!1),au(ye.isCombineEnabled)||ce(!1),au(ye.ignoreContainerClipping)||ce(!1)},function(te){var ye=te.getDroppableRef;jl(ye())}],Is=[function(te){var ye=te.props,Ge=te.getPlaceholderRef;if(!ye.placeholder)return;var lt=Ge();if(lt)return}],cl=[function(te){var ye=te.props;ye.renderClone||ce(!1)},function(te){var ye=te.getPlaceholderRef;ye()&&ce(!1)}];function Fl(_e){Rr(function(){$l(_e,ou),_e.props.mode==="standard"&&$l(_e,Is),_e.props.mode==="virtual"&&$l(_e,cl)})}var Ho=function(_e){Object(T.a)(te,_e);function te(){for(var Ge,lt=arguments.length,Rt=new Array(lt),Kt=0;Kt<lt;Kt++)Rt[Kt]=arguments[Kt];return Ge=_e.call.apply(_e,[this].concat(Rt))||this,Ge.state={isVisible:Boolean(Ge.props.on),data:Ge.props.on,animate:Ge.props.shouldAnimate&&Ge.props.on?"open":"none"},Ge.onClose=function(){if(Ge.state.animate!=="close")return;Ge.setState({isVisible:!1})},Ge}te.getDerivedStateFromProps=function(lt,Rt){return lt.shouldAnimate?lt.on?{isVisible:!0,data:lt.on,animate:"open"}:Rt.isVisible?{isVisible:!0,data:Rt.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(lt.on),data:lt.on,animate:"none"}};var ye=te.prototype;return ye.render=function(){if(!this.state.isVisible)return null;var lt={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(lt)},te}(x.a.PureComponent),La={dragging:5e3,dropAnimating:4500},oo=function(te,ye){return ye?Ti.drop(ye.duration):te?Ti.snap:Ti.fluid},Ro=function(te,ye){return te?ye?Ci.opacity.drop:Ci.opacity.combining:null},Ps=function(te){return te.forceShouldAnimate!=null?te.forceShouldAnimate:te.mode==="SNAP"};function Hl(_e){var te=_e.dimension,ye=te.client,Ge=_e.offset,lt=_e.combineWith,Rt=_e.dropping,Kt=Boolean(lt),Vt=Ps(_e),Lr=Boolean(Rt),Jr=Lr?na.drop(Ge,Kt):na.moveTo(Ge),Or={position:"fixed",top:ye.marginBox.top,left:ye.marginBox.left,boxSizing:"border-box",width:ye.borderBox.width,height:ye.borderBox.height,transition:oo(Vt,Rt),transform:Jr,opacity:Ro(Kt,Lr),zIndex:Lr?La.dropAnimating:La.dragging,pointerEvents:"none"};return Or}function Ll(_e){return{transform:na.moveTo(_e.offset),transition:_e.shouldAnimateDisplacement?null:"none"}}function gl(_e){return _e.type==="DRAGGING"?Hl(_e):Ll(_e)}function yl(_e,te,ye){ye===void 0&&(ye=Me);var Ge=window.getComputedStyle(te),lt=te.getBoundingClientRect(),Rt=y(lt,Ge),Kt=A(Rt,ye),Vt={client:Rt,tagName:te.tagName.toLowerCase(),display:Ge.display},Lr={x:Rt.marginBox.width,y:Rt.marginBox.height},Jr={descriptor:_e,placeholder:Vt,displaceBy:Lr,client:Rt,page:Kt};return Jr}function Nl(_e){var te=xt("draggable"),ye=_e.descriptor,Ge=_e.registry,lt=_e.getDraggableRef,Rt=_e.canDragInteractiveElements,Kt=_e.shouldRespectForcePress,Vt=_e.isEnabled,Lr=r(function(){return{canDragInteractiveElements:Rt,shouldRespectForcePress:Kt,isEnabled:Vt}},[Rt,Vt,Kt]),Jr=a(function(qr){var Tn=lt();return Tn||ce(!1),yl(ye,Tn,qr)},[ye,lt]),Or=r(function(){return{uniqueId:te,descriptor:ye,options:Lr,getDimension:Jr}},[ye,Jr,Lr,te]),Sr=Object(O.useRef)(Or),Vr=Object(O.useRef)(!0);Qo(function(){return Ge.draggable.register(Sr.current),function(){return Ge.draggable.unregister(Sr.current)}},[Ge.draggable]),Qo(function(){if(Vr.current){Vr.current=!1;return}var qr=Sr.current;Sr.current=Or,Ge.draggable.update(Or,qr)},[Or,Ge.draggable])}function Kl(_e,te,ye){Rr(function(){function Ge(Rt){return"Draggable[id: "+Rt+"]: "}var lt=_e.draggableId;if(lt||ce(!1),typeof lt=="string"||ce(!1),Z(_e.index)||ce(!1),_e.mapped.type==="DRAGGING")return;jl(ye()),_e.isEnabled&&(Vo(te,lt)||ce(!1))})}function Vs(_e){Yt(function(){var te=Object(O.useRef)(_e);Rr(function(){_e===te.current||ce(!1)},[_e])})}function Gl(_e){_e.preventDefault()}function pu(_e){var te=Object(O.useRef)(null),ye=a(function(k){te.current=k},[]),Ge=a(function(){return te.current},[]),lt=xl(Hn),Rt=lt.contextId,Kt=lt.dragHandleUsageInstructionsId,Vt=lt.registry,Lr=xl(fu),Jr=Lr.type,Or=Lr.droppableId,Sr=r(function(){return{id:_e.draggableId,index:_e.index,type:Jr,droppableId:Or}},[_e.draggableId,_e.index,Jr,Or]),Vr=_e.children,qr=_e.draggableId,Tn=_e.isEnabled,ci=_e.shouldRespectForcePress,Ai=_e.canDragInteractiveElements,Vi=_e.isClone,Ni=_e.mapped,Oa=_e.dropAnimationFinished;if(Kl(_e,Rt,Ge),Vs(Vi),!Vi){var Zi=r(function(){return{descriptor:Sr,registry:Vt,getDraggableRef:Ge,canDragInteractiveElements:Ai,shouldRespectForcePress:ci,isEnabled:Tn}},[Sr,Vt,Ge,Ai,ci,Tn]);Nl(Zi)}var Wa=r(function(){return Tn?{tabIndex:0,role:"button","aria-describedby":Kt,"data-rbd-drag-handle-draggable-id":qr,"data-rbd-drag-handle-context-id":Rt,draggable:!1,onDragStart:Gl}:null},[Rt,Kt,qr,Tn]),Na=a(function(k){if(Ni.type!=="DRAGGING")return;if(!Ni.dropping)return;if(k.propertyName!=="transform")return;Oa()},[Oa,Ni]),Ba=r(function(){var k=gl(Ni),W=Ni.type==="DRAGGING"&&Ni.dropping?Na:null,q={innerRef:ye,draggableProps:{"data-rbd-draggable-context-id":Rt,"data-rbd-draggable-id":qr,style:k,onTransitionEnd:W},dragHandleProps:Wa};return q},[Rt,Wa,qr,Ni,Na,ye]),Lo=r(function(){return{draggableId:Sr.id,type:Sr.type,source:{index:Sr.index,droppableId:Sr.droppableId}}},[Sr.droppableId,Sr.id,Sr.index,Sr.type]);return Vr(Ba,Ni.snapshot,Lo)}var su=function(te,ye){return te===ye},Pu=function(te){var ye=te.combine,Ge=te.destination;return Ge?Ge.droppableId:ye?ye.droppableId:null},$u=function(te){return te.combine?te.combine.draggableId:null},zu=function(te){return te.at&&te.at.type==="COMBINE"?te.at.combine.draggableId:null};function qu(){var _e=_(function(lt,Rt){return{x:lt,y:Rt}}),te=_(function(lt,Rt,Kt,Vt,Lr){return{isDragging:!0,isClone:Rt,isDropAnimating:Boolean(Lr),dropAnimation:Lr,mode:lt,draggingOver:Kt,combineWith:Vt,combineTargetFor:null}}),ye=_(function(lt,Rt,Kt,Vt,Lr,Jr,Or){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:Lr,combineWith:Jr,mode:Rt,offset:lt,dimension:Kt,forceShouldAnimate:Or,snapshot:te(Rt,Vt,Lr,Jr,null)}}}),Ge=function(Rt,Kt){if(Rt.isDragging){if(Rt.critical.draggable.id!==Kt.draggableId)return null;var Vt=Rt.current.client.offset,Lr=Rt.dimensions.draggables[Kt.draggableId],Jr=jr(Rt.impact),Or=zu(Rt.impact),Sr=Rt.forceShouldAnimate;return ye(_e(Vt.x,Vt.y),Rt.movementMode,Lr,Kt.isClone,Jr,Or,Sr)}if(Rt.phase==="DROP_ANIMATING"){var Vr=Rt.completed;if(Vr.result.draggableId!==Kt.draggableId)return null;var qr=Kt.isClone,Tn=Rt.dimensions.draggables[Kt.draggableId],ci=Vr.result,Ai=ci.mode,Vi=Pu(ci),Ni=$u(ci),Oa=Rt.dropDuration,Zi={duration:Oa,curve:bi.drop,moveTo:Rt.newHomeClientOffset,opacity:Ni?Ci.opacity.drop:null,scale:Ni?Ci.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Rt.newHomeClientOffset,dimension:Tn,dropping:Zi,draggingOver:Vi,combineWith:Ni,mode:Ai,forceShouldAnimate:null,snapshot:te(Ai,qr,Vi,Ni,Zi)}}}return null};return Ge}function mu(_e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:_e,combineWith:null}}var Lu={mapped:{type:"SECONDARY",offset:Me,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:mu(null)}};function ec(){var _e=_(function(Kt,Vt){return{x:Kt,y:Vt}}),te=_(mu),ye=_(function(Kt,Vt,Lr){return Vt===void 0&&(Vt=null),{mapped:{type:"SECONDARY",offset:Kt,combineTargetFor:Vt,shouldAnimateDisplacement:Lr,snapshot:te(Vt)}}}),Ge=function(Vt){return Vt?ye(Me,Vt,!0):null},lt=function(Vt,Lr,Jr,Or){var Sr=Jr.displaced.visible[Vt],Vr=Boolean(Or.inVirtualList&&Or.effected[Vt]),qr=vr(Jr),Tn=qr&&qr.draggableId===Vt?Lr:null;if(!Sr){if(!Vr)return Ge(Tn);if(Jr.displaced.invisible[Vt])return null;var ci=Oe(Or.displacedBy.point),Ai=_e(ci.x,ci.y);return ye(Ai,Tn,!0)}if(Vr)return Ge(Tn);var Vi=Jr.displacedBy.point,Ni=_e(Vi.x,Vi.y);return ye(Ni,Tn,Sr.shouldAnimate)},Rt=function(Vt,Lr){if(Vt.isDragging)return Vt.critical.draggable.id===Lr.draggableId?null:lt(Lr.draggableId,Vt.critical.draggable.id,Vt.impact,Vt.afterCritical);if(Vt.phase==="DROP_ANIMATING"){var Jr=Vt.completed;return Jr.result.draggableId===Lr.draggableId?null:lt(Lr.draggableId,Jr.result.draggableId,Jr.impact,Jr.afterCritical)}return null};return Rt}var Fu=function(){var te=qu(),ye=ec(),Ge=function(Rt,Kt){return te(Rt,Kt)||ye(Rt,Kt)||Lu};return Ge},Cu={dropAnimationFinished:gi},Nu=Object(m.c)(Fu,Cu,null,{context:es,pure:!0,areStatePropsEqual:su})(pu);function gu(_e){var te=xl(fu),ye=te.isUsingCloneFor;return ye===_e.draggableId&&!_e.isClone?null:x.a.createElement(Nu,_e)}function Bu(_e){var te=typeof _e.isDragDisabled=="boolean"?!_e.isDragDisabled:!0,ye=Boolean(_e.disableInteractiveElementBlocking),Ge=Boolean(_e.shouldRespectForcePress);return x.a.createElement(gu,Object(v.a)({},_e,{isClone:!1,isEnabled:te,canDragInteractiveElements:ye,shouldRespectForcePress:Ge}))}function vu(_e){var te=Object(O.useContext)(Hn);te||ce(!1);var ye=te.contextId,Ge=te.isMovementAllowed,lt=Object(O.useRef)(null),Rt=Object(O.useRef)(null),Kt=_e.children,Vt=_e.droppableId,Lr=_e.type,Jr=_e.mode,Or=_e.direction,Sr=_e.ignoreContainerClipping,Vr=_e.isDropDisabled,qr=_e.isCombineEnabled,Tn=_e.snapshot,ci=_e.useClone,Ai=_e.updateViewportMaxScroll,Vi=_e.getContainerForClone,Ni=a(function(){return lt.current},[]),Oa=a(function(ne){lt.current=ne},[]),Zi=a(function(){return Rt.current},[]),Wa=a(function(ne){Rt.current=ne},[]);Fl({props:_e,getDroppableRef:Ni,getPlaceholderRef:Zi});var Na=a(function(){Ge()&&Ai({maxScroll:yr()})},[Ge,Ai]);_u({droppableId:Vt,type:Lr,mode:Jr,direction:Or,isDropDisabled:Vr,isCombineEnabled:qr,ignoreContainerClipping:Sr,getDroppableRef:Ni});var Ba=x.a.createElement(Ho,{on:_e.placeholder,shouldAnimate:_e.shouldAnimatePlaceholder},function(ne){var le=ne.onClose,Fe=ne.data,mt=ne.animate;return x.a.createElement(Eu,{placeholder:Fe,onClose:le,innerRef:Wa,animate:mt,contextId:ye,onTransitionEnd:Na})}),Lo=r(function(){return{innerRef:Oa,placeholder:Ba,droppableProps:{"data-rbd-droppable-id":Vt,"data-rbd-droppable-context-id":ye}}},[ye,Vt,Ba,Oa]),k=ci?ci.dragging.draggableId:null,W=r(function(){return{droppableId:Vt,type:Lr,isUsingCloneFor:k}},[Vt,k,Lr]);function q(){if(!ci)return null;var ne=ci.dragging,le=ci.render,Fe=x.a.createElement(gu,{draggableId:ne.draggableId,index:ne.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(mt,Ut){return le(mt,Ut,ne)});return R.a.createPortal(Fe,Vi())}return x.a.createElement(fu.Provider,{value:W},Kt(Lo,Tn),q())}var Tu=function(te,ye){return te===ye.droppable.type},ve=function(te,ye){return ye.draggables[te.draggable.id]},Ke=function(){var te={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},ye=Object(v.a)({},te,{shouldAnimatePlaceholder:!1}),Ge=_(function(Kt){return{draggableId:Kt.id,type:Kt.type,source:{index:Kt.index,droppableId:Kt.droppableId}}}),lt=_(function(Kt,Vt,Lr,Jr,Or,Sr){var Vr=Or.descriptor.id,qr=Or.descriptor.droppableId===Kt;if(qr){var Tn=Sr?{render:Sr,dragging:Ge(Or.descriptor)}:null,ci={isDraggingOver:Lr,draggingOverWith:Lr?Vr:null,draggingFromThisWith:Vr,isUsingPlaceholder:!0};return{placeholder:Or.placeholder,shouldAnimatePlaceholder:!1,snapshot:ci,useClone:Tn}}if(!Vt)return ye;if(!Jr)return te;var Ai={isDraggingOver:Lr,draggingOverWith:Vr,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Or.placeholder,shouldAnimatePlaceholder:!0,snapshot:Ai,useClone:null}}),Rt=function(Vt,Lr){var Jr=Lr.droppableId,Or=Lr.type,Sr=!Lr.isDropDisabled,Vr=Lr.renderClone;if(Vt.isDragging){var qr=Vt.critical;if(!Tu(Or,qr))return ye;var Tn=ve(qr,Vt.dimensions),ci=jr(Vt.impact)===Jr;return lt(Jr,Sr,ci,ci,Tn,Vr)}if(Vt.phase==="DROP_ANIMATING"){var Ai=Vt.completed;if(!Tu(Or,Ai.critical))return ye;var Vi=ve(Ai.critical,Vt.dimensions);return lt(Jr,Sr,Pu(Ai.result)===Jr,jr(Ai.impact)===Jr,Vi,Vr)}if(Vt.phase==="IDLE"&&Vt.completed&&!Vt.shouldFlush){var Ni=Vt.completed;if(!Tu(Or,Ni.critical))return ye;var Oa=jr(Ni.impact)===Jr,Zi=Boolean(Ni.impact.at&&Ni.impact.at.type==="COMBINE"),Wa=Ni.critical.droppable.id===Jr;return Oa?Zi?te:ye:Wa?te:ye}return ye};return Rt},pt={updateViewportMaxScroll:fr};function tr(){return document.body||ce(!1),document.body}var Tr={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:tr},Gr=Object(m.c)(Ke,pt,null,{context:es,pure:!0,areStatePropsEqual:su})(vu);Gr.defaultProps=Tr},ni6a:function(U,P,d){var O=d("pzxd"),x=d("mFDi"),T=d("gut8"),v=T.WILL_BE_RESTORED,S=new x,m=function(){};m.prototype={constructor:m,drawRectText:function(o,r){var a=this.style;r=a.textRect||r,this.__dirty&&O.normalizeTextStyle(a,!0);var n=a.text;if(n!=null&&(n+=""),!O.needDrawText(n,a))return;o.save();var e=this.transform;a.transformText?this.setTransform(o):e&&(S.copy(r),S.applyTransform(e),r=S),O.renderText(this,o,n,a,r,v),o.restore()}};var f=m;U.exports=f},nkfE:function(U,P,d){var O=d("bYtY"),x=d("ca2m"),T=d("bLfw"),v=d("+TT/"),S=v.getLayoutParams,m=v.mergeLayoutParam,f=d("jkPA"),c=["value","category","time","log"];function o(r,a,n,e){O.each(c,function(s){a.extend({type:r+"Axis."+s,mergeDefaultAndTheme:function(t,i){var l=this.layoutMode,u=l?S(t):{},h=i.getTheme();O.merge(t,h.get(s+"Axis")),O.merge(t,this.getDefaultOption()),t.type=n(r,t),l&&m(t,u,l)},optionUpdated:function(){var t=this.option;t.type==="category"&&(this.__ordinalMeta=f.createByAxisModel(this))},getCategories:function(t){var i=this.option;if(i.type==="category")return t?i.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:O.mergeAll([{},x[s+"Axis"],e],!0)})}),T.registerSubTypeDefaulter(r+"Axis",O.curry(n,r))}U.exports=o},noeP:function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("UOVi");O.registerAction("dataZoom",function(v,S){var m=T.createLinkedNodesFinder(x.bind(S.eachComponent,S,"dataZoom"),T.eachAxisDim,function(c,o){return c.get(o.axisIndex)}),f=[];S.eachComponent({mainType:"dataZoom",query:v},function(c,o){f.push.apply(f,m(c).nodes)}),x.each(f,function(c,o){c.setRawRange({start:v.start,end:v.end,startValue:v.startValue,endValue:v.endValue})})})},o40c:function(U,P,d){var O=d("IwbS"),x=d("OS9S"),T=d("loD1"),v=d("aKvl"),S=O.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(o,r){var a=r.segs,n=r.curveness;if(r.polyline)for(var e=0;e<a.length;){var s=a[e++];if(s>0){o.moveTo(a[e++],a[e++]);for(var t=1;t<s;t++)o.lineTo(a[e++],a[e++])}}else for(var e=0;e<a.length;){var i=a[e++],l=a[e++],u=a[e++],h=a[e++];if(o.moveTo(i,l),n>0){var p=(i+u)/2-(l-h)*n,g=(l+h)/2-(u-i)*n;o.quadraticCurveTo(p,g,u,h)}else o.lineTo(u,h)}},findDataIndex:function(o,r){var a=this.shape,n=a.segs,e=a.curveness;if(a.polyline)for(var s=0,t=0;t<n.length;){var i=n[t++];if(i>0)for(var l=n[t++],u=n[t++],h=1;h<i;h++){var p=n[t++],g=n[t++];if(T.containStroke(l,u,p,g))return s}s++}else for(var s=0,t=0;t<n.length;){var l=n[t++],u=n[t++],p=n[t++],g=n[t++];if(e>0){var A=(l+p)/2-(u-g)*e,y=(u+g)/2-(p-l)*e;if(v.containStroke(l,u,A,y,p,g))return s}else if(T.containStroke(l,u,p,g))return s;s++}return-1}});function m(){this.group=new O.Group}var f=m.prototype;f.isPersistent=function(){return!this._incremental},f.updateData=function(o){this.group.removeAll();var r=new S({rectHover:!0,cursor:"default"});r.setShape({segs:o.getLayout("linesPoints")}),this._setCommon(r,o),this.group.add(r),this._incremental=null},f.incrementalPrepareUpdate=function(o){this.group.removeAll(),this._clearIncremental(),o.count()>5e5?(this._incremental||(this._incremental=new x({silent:!0})),this.group.add(this._incremental)):this._incremental=null},f.incrementalUpdate=function(o,r){var a=new S;a.setShape({segs:r.getLayout("linesPoints")}),this._setCommon(a,r,!!this._incremental),this._incremental?this._incremental.addDisplayable(a,!0):(a.rectHover=!0,a.cursor="default",a.__startIndex=o.start,this.group.add(a))},f.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},f._setCommon=function(o,r,a){var n=r.hostModel;o.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),o.useStyle(n.getModel("lineStyle").getLineStyle()),o.style.strokeNoScale=!0;var e=r.getVisual("color");e&&o.setStyle("stroke",e),o.setStyle("fill"),a||(o.seriesIndex=n.seriesIndex,o.on("mousemove",function(s){o.dataIndex=null;var t=o.findDataIndex(s.offsetX,s.offsetY);t>0&&(o.dataIndex=t+o.__startIndex)}))},f._clearIncremental=function(){var o=this._incremental;o&&o.clearDisplaybles()};var c=m;U.exports=c},oBaM:function(U,P,d){var O=d("T4UG"),x=d("5GtS"),T=d("bYtY"),v=d("7aKB"),S=v.encodeHTML,m=d("xKMd"),f=O.extend({type:"series.radar",dependencies:["radar"],init:function(o){f.superApply(this,"init",arguments),this.legendVisualProvider=new m(T.bind(this.getData,this),T.bind(this.getRawData,this))},getInitialData:function(o,r){return x(this,{generateCoord:"indicator_",generateCoordCount:Infinity})},formatTooltip:function(o){var r=this.getData(),a=this.coordinateSystem,n=a.getIndicatorAxes(),e=this.getData().getName(o);return S(e===""?this.name:e)+"<br/>"+T.map(n,function(s,t){var i=r.get(r.mapDimension(s.dim),o);return S(s.name+" : "+i)}).join("<br />")},getTooltipPosition:function(o){if(o!=null){for(var r=this.getData(),a=this.coordinateSystem,n=r.getValues(T.map(a.dimensions,function(i){return r.mapDimension(i)}),o,!0),e=0,s=n.length;e<s;e++)if(!isNaN(n[e])){var t=a.getIndicatorAxes();return a.coordToPoint(t[e].dataToCoord(n[e]),e)}}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),c=f;U.exports=c},oE7X:function(U,P,d){var O=d("bLfw");O.registerSubTypeDefaulter("timeline",function(){return"slider"})},oIFs:function(U,P,d){},oRuE:function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.Iso10126={pad:function(T,v){var S=v*4,m=S-T.sigBytes%S;T.concat(O.lib.WordArray.random(m-1)).concat(O.lib.WordArray.create([m<<24],1))},unpad:function(T){var v=T.words[T.sigBytes-1>>>2]&255;T.sigBytes-=v}},O.pad.Iso10126})},oVpE:function(U,P,d){var O=d("bYtY"),x=d("IwbS"),T=d("mFDi"),v=d("6GrX"),S=v.calculateTextPosition,m=x.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(i,l){var u=l.cx,h=l.cy,p=l.width/2,g=l.height/2;i.moveTo(u,h-g),i.lineTo(u+p,h+g),i.lineTo(u-p,h+g),i.closePath()}}),f=x.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(i,l){var u=l.cx,h=l.cy,p=l.width/2,g=l.height/2;i.moveTo(u,h-g),i.lineTo(u+p,h),i.lineTo(u,h+g),i.lineTo(u-p,h),i.closePath()}}),c=x.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(i,l){var u=l.x,h=l.y,p=l.width/5*3,g=Math.max(p,l.height),A=p/2,y=A*A/(g-A),E=h-g+A+y,C=Math.asin(y/A),w=Math.cos(C)*A,b=Math.sin(C),I=Math.cos(C),_=A*.6,L=A*.7;i.moveTo(u-w,E+y),i.arc(u,E,A,Math.PI-C,Math.PI*2+C),i.bezierCurveTo(u+w-b*_,E+y+I*_,u,h-L,u,h),i.bezierCurveTo(u,h-L,u-w+b*_,E+y+I*_,u-w,E+y),i.closePath()}}),o=x.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(i,l){var u=l.height,h=l.width,p=l.x,g=l.y,A=h/3*2;i.moveTo(p,g),i.lineTo(p+A,g+u),i.lineTo(p,g+u/4*3),i.lineTo(p-A,g+u),i.lineTo(p,g),i.closePath()}}),r={line:x.Line,rect:x.Rect,roundRect:x.Rect,square:x.Rect,circle:x.Circle,diamond:f,pin:c,arrow:o,triangle:m},a={line:function(i,l,u,h,p){p.x1=i,p.y1=l+h/2,p.x2=i+u,p.y2=l+h/2},rect:function(i,l,u,h,p){p.x=i,p.y=l,p.width=u,p.height=h},roundRect:function(i,l,u,h,p){p.x=i,p.y=l,p.width=u,p.height=h,p.r=Math.min(u,h)/4},square:function(i,l,u,h,p){var g=Math.min(u,h);p.x=i,p.y=l,p.width=g,p.height=g},circle:function(i,l,u,h,p){p.cx=i+u/2,p.cy=l+h/2,p.r=Math.min(u,h)/2},diamond:function(i,l,u,h,p){p.cx=i+u/2,p.cy=l+h/2,p.width=u,p.height=h},pin:function(i,l,u,h,p){p.x=i+u/2,p.y=l+h/2,p.width=u,p.height=h},arrow:function(i,l,u,h,p){p.x=i+u/2,p.y=l+h/2,p.width=u,p.height=h},triangle:function(i,l,u,h,p){p.cx=i+u/2,p.cy=l+h/2,p.width=u,p.height=h}},n={};O.each(r,function(i,l){n[l]=new i});var e=x.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(i,l,u){var h=S(i,l,u),p=this.shape;return p&&p.symbolType==="pin"&&l.textPosition==="inside"&&(h.y=u.y+u.height*.4),h},buildPath:function(i,l,u){var h=l.symbolType;if(h!=="none"){var p=n[h];p||(h="rect",p=n[h]),a[h](l.x,l.y,l.width,l.height,p.shape),p.buildPath(i,p.shape,u)}}});function s(i,l){if(this.type!=="image"){var u=this.style,h=this.shape;h&&h.symbolType==="line"?u.stroke=i:this.__isEmptyBrush?(u.stroke=i,u.fill=l||"#fff"):(u.fill&&(u.fill=i),u.stroke&&(u.stroke=i)),this.dirty(!1)}}function t(i,l,u,h,p,g,A){var y=i.indexOf("empty")===0;y&&(i=i.substr(5,1).toLowerCase()+i.substr(6));var E;return i.indexOf("image://")===0?E=x.makeImage(i.slice(8),new T(l,u,h,p),A?"center":"cover"):i.indexOf("path://")===0?E=x.makePath(i.slice(7),{},new T(l,u,h,p),A?"center":"cover"):E=new e({shape:{symbolType:i,x:l,y:u,width:h,height:p}}),E.__isEmptyBrush=y,E.setColor=s,E.setColor(g),E}P.createSymbol=t},oY9F:function(U,P,d){var O=d("OlYY"),x=O.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});U.exports=x},osHv:function(U,P,d){(function(O){O(d("VrN/"))})(function(O){"use strict";var x=O.Pos;function T(l,u){return l.line-u.line||l.ch-u.ch}var v="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",S=v+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",m=new RegExp("<(/?)(["+v+"]["+S+"]*)","g");function f(l,u,h,p){this.line=u,this.ch=h,this.cm=l,this.text=l.getLine(u),this.min=p?Math.max(p.from,l.firstLine()):l.firstLine(),this.max=p?Math.min(p.to-1,l.lastLine()):l.lastLine()}function c(l,u){var h=l.cm.getTokenTypeAt(x(l.line,u));return h&&/\btag\b/.test(h)}function o(l){return l.line>=l.max?void 0:(l.ch=0,l.text=l.cm.getLine(++l.line),!0)}function r(l){return l.line<=l.min?void 0:(l.text=l.cm.getLine(--l.line),l.ch=l.text.length,!0)}function a(l){for(;;){var u=l.text.indexOf(">",l.ch);if(u==-1){if(o(l))continue;return}if(!c(l,u+1)){l.ch=u+1;continue}var h=l.text.lastIndexOf("/",u),p=h>-1&&!/\S/.test(l.text.slice(h+1,u));return l.ch=u+1,p?"selfClose":"regular"}}function n(l){for(;;){var u=l.ch?l.text.lastIndexOf("<",l.ch-1):-1;if(u==-1){if(r(l))continue;return}if(!c(l,u+1)){l.ch=u;continue}m.lastIndex=u,l.ch=u;var h=m.exec(l.text);if(h&&h.index==u)return h}}function e(l){for(;;){m.lastIndex=l.ch;var u=m.exec(l.text);if(!u){if(o(l))continue;return}if(!c(l,u.index+1)){l.ch=u.index+1;continue}return l.ch=u.index+u[0].length,u}}function s(l){for(;;){var u=l.ch?l.text.lastIndexOf(">",l.ch-1):-1;if(u==-1){if(r(l))continue;return}if(!c(l,u+1)){l.ch=u;continue}var h=l.text.lastIndexOf("/",u),p=h>-1&&!/\S/.test(l.text.slice(h+1,u));return l.ch=u+1,p?"selfClose":"regular"}}function t(l,u){for(var h=[];;){var p=e(l),g,A=l.line,y=l.ch-(p?p[0].length:0);if(!p||!(g=a(l)))return;if(g=="selfClose")continue;if(p[1]){for(var E=h.length-1;E>=0;--E)if(h[E]==p[2]){h.length=E;break}if(E<0&&(!u||u==p[2]))return{tag:p[2],from:x(A,y),to:x(l.line,l.ch)}}else h.push(p[2])}}function i(l,u){for(var h=[];;){var p=s(l);if(!p)return;if(p=="selfClose"){n(l);continue}var g=l.line,A=l.ch,y=n(l);if(!y)return;if(y[1])h.push(y[2]);else{for(var E=h.length-1;E>=0;--E)if(h[E]==y[2]){h.length=E;break}if(E<0&&(!u||u==y[2]))return{tag:y[2],from:x(l.line,l.ch),to:x(g,A)}}}}O.registerHelper("fold","xml",function(l,u){for(var h=new f(l,u.line,0);;){var p=e(h);if(!p||h.line!=u.line)return;var g=a(h);if(!g)return;if(!p[1]&&g!="selfClose"){var A=x(h.line,h.ch),y=t(h,p[2]);return y&&T(y.from,A)>0?{from:A,to:y.from}:null}}}),O.findMatchingTag=function(l,u,h){var p=new f(l,u.line,u.ch,h);if(p.text.indexOf(">")==-1&&p.text.indexOf("<")==-1)return;var g=a(p),A=g&&x(p.line,p.ch),y=g&&n(p);if(!g||!y||T(p,u)>0)return;var E={from:x(p.line,p.ch),to:A,tag:y[2]};return g=="selfClose"?{open:E,close:null,at:"open"}:y[1]?{open:i(p,y[2]),close:E,at:"close"}:(p=new f(l,A.line,A.ch,h),{open:E,close:t(p,y[2]),at:"open"})},O.findEnclosingTag=function(l,u,h,p){for(var g=new f(l,u.line,u.ch,h);;){var A=i(g,p);if(!A)break;var y=new f(l,u.line,u.ch,h),E=t(y,A.tag);if(E)return{open:A,close:E}}},O.scanForClosingTag=function(l,u,h,p){var g=new f(l,u.line,u.ch,p?{from:0,to:p}:null);return t(g,h)}})},ozfa:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("KxFI"),v=d.n(T)},"p+If":function(U,P,d){var O=d("ProS");d("cpOr"),d("rkZ5");var x=d("ZYIC"),T=d("7ph2");O.registerLayout(x),O.registerVisual(T)},"p/La":function(U,P){var d=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function O(x,T){x==="china"&&T.name==="\u53F0\u6E7E"&&T.geometries.push({type:"polygon",exterior:d[0]})}U.exports=O},p1MT:function(U,P,d){var O=d("Hw7h"),x=d("IwbS"),T=d("6Ic6"),v=d("OELB"),S=v.parsePercent,m=v.round,f=v.linearMap;function c(e,s){var t=e.get("center"),i=s.getWidth(),l=s.getHeight(),u=Math.min(i,l),h=S(t[0],s.getWidth()),p=S(t[1],s.getHeight()),g=S(e.get("radius"),u/2);return{cx:h,cy:p,r:g}}function o(e,s){return s&&(typeof s=="string"?e=s.replace("{value}",e!=null?e:""):typeof s=="function"&&(e=s(e))),e}var r=Math.PI*2,a=T.extend({type:"gauge",render:function(e,s,t){this.group.removeAll();var i=e.get("axisLine.lineStyle.color"),l=c(e,t);this._renderMain(e,s,t,i,l)},dispose:function(){},_renderMain:function(e,s,t,i,l){for(var u=this.group,h=e.getModel("axisLine"),p=h.getModel("lineStyle"),g=e.get("clockwise"),A=-e.get("startAngle")/180*Math.PI,y=-e.get("endAngle")/180*Math.PI,E=(y-A)%r,C=A,w=p.get("width"),b=h.get("show"),I=0;b&&I<i.length;I++){var _=Math.min(Math.max(i[I][0],0),1),y=A+E*_,L=new x.Sector({shape:{startAngle:C,endAngle:y,cx:l.cx,cy:l.cy,clockwise:g,r0:l.r-w,r:l.r},silent:!0});L.setStyle({fill:i[I][1]}),L.setStyle(p.getLineStyle(["color","borderWidth","borderColor"])),u.add(L),C=y}var D=function(R){if(R<=0)return i[0][1];for(var B=0;B<i.length;B++)if(i[B][0]>=R&&(B===0?0:i[B-1][0])<R)return i[B][1];return i[B-1][1]};if(!g){var N=A;A=y,y=N}this._renderTicks(e,s,t,D,l,A,y,g),this._renderPointer(e,s,t,D,l,A,y,g),this._renderTitle(e,s,t,D,l),this._renderDetail(e,s,t,D,l)},_renderTicks:function(e,s,t,i,l,u,h,p){for(var g=this.group,A=l.cx,y=l.cy,E=l.r,C=+e.get("min"),w=+e.get("max"),b=e.getModel("splitLine"),I=e.getModel("axisTick"),_=e.getModel("axisLabel"),L=e.get("splitNumber"),D=I.get("splitNumber"),N=S(b.get("length"),E),R=S(I.get("length"),E),B=u,M=(h-u)/L,H=M/D,F=b.getModel("lineStyle").getLineStyle(),K=I.getModel("lineStyle").getLineStyle(),j=0;j<=L;j++){var V=Math.cos(B),z=Math.sin(B);if(b.get("show")){var Y=new x.Line({shape:{x1:V*E+A,y1:z*E+y,x2:V*(E-N)+A,y2:z*(E-N)+y},style:F,silent:!0});F.stroke==="auto"&&Y.setStyle({stroke:i(j/L)}),g.add(Y)}if(_.get("show")){var ee=o(m(j/L*(w-C)+C),_.get("formatter")),fe=_.get("distance"),ie=i(j/L);g.add(new x.Text({style:x.setTextStyle({},_,{text:ee,x:V*(E-N-fe)+A,y:z*(E-N-fe)+y,textVerticalAlign:z<-.4?"top":z>.4?"bottom":"middle",textAlign:V<-.4?"left":V>.4?"right":"center"},{autoColor:ie}),silent:!0}))}if(I.get("show")&&j!==L){for(var we=0;we<=D;we++){var V=Math.cos(B),z=Math.sin(B),Ce=new x.Line({shape:{x1:V*E+A,y1:z*E+y,x2:V*(E-R)+A,y2:z*(E-R)+y},silent:!0,style:K});K.stroke==="auto"&&Ce.setStyle({stroke:i((j+we/D)/L)}),g.add(Ce),B+=H}B-=H}else B+=M}},_renderPointer:function(e,s,t,i,l,u,h,p){var g=this.group,A=this._data;if(!e.get("pointer.show")){A&&A.eachItemGraphicEl(function(b){g.remove(b)});return}var y=[+e.get("min"),+e.get("max")],E=[u,h],C=e.getData(),w=C.mapDimension("value");C.diff(A).add(function(b){var I=new O({shape:{angle:u}});x.initProps(I,{shape:{angle:f(C.get(w,b),y,E,!0)}},e),g.add(I),C.setItemGraphicEl(b,I)}).update(function(b,I){var _=A.getItemGraphicEl(I);x.updateProps(_,{shape:{angle:f(C.get(w,b),y,E,!0)}},e),g.add(_),C.setItemGraphicEl(b,_)}).remove(function(b){var I=A.getItemGraphicEl(b);g.remove(I)}).execute(),C.eachItemGraphicEl(function(b,I){var _=C.getItemModel(I),L=_.getModel("pointer");b.setShape({x:l.cx,y:l.cy,width:S(L.get("width"),l.r),r:S(L.get("length"),l.r)}),b.useStyle(_.getModel("itemStyle").getItemStyle()),b.style.fill==="auto"&&b.setStyle("fill",i(f(C.get(w,I),y,[0,1],!0))),x.setHoverStyle(b,_.getModel("emphasis.itemStyle").getItemStyle())}),this._data=C},_renderTitle:function(e,s,t,i,l){var u=e.getData(),h=u.mapDimension("value"),p=e.getModel("title");if(p.get("show")){var g=p.get("offsetCenter"),A=l.cx+S(g[0],l.r),y=l.cy+S(g[1],l.r),E=+e.get("min"),C=+e.get("max"),w=e.getData().get(h,0),b=i(f(w,[E,C],[0,1],!0));this.group.add(new x.Text({silent:!0,style:x.setTextStyle({},p,{x:A,y,text:u.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:b,forceRich:!0})}))}},_renderDetail:function(e,s,t,i,l){var u=e.getModel("detail"),h=+e.get("min"),p=+e.get("max");if(u.get("show")){var g=u.get("offsetCenter"),A=l.cx+S(g[0],l.r),y=l.cy+S(g[1],l.r),E=S(u.get("width"),l.r),C=S(u.get("height"),l.r),w=e.getData(),b=w.get(w.mapDimension("value"),0),I=i(f(b,[h,p],[0,1],!0));this.group.add(new x.Text({silent:!0,style:x.setTextStyle({},u,{x:A,y,text:o(b,u.get("formatter")),textWidth:isNaN(E)?null:E,textHeight:isNaN(C)?null:C,textAlign:"center",textVerticalAlign:"middle"},{autoColor:I,forceRich:!0})}))}}}),n=a;U.exports=n},"p77/":function(U,P,d){},pA7S:function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var x=O,T=x.lib,v=T.WordArray,S=T.BlockCipher,m=x.algo,f=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],o=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],r=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],a=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],n=m.DES=S.extend({_doReset:function(){for(var l=this._key,u=l.words,h=[],p=0;p<56;p++){var g=f[p]-1;h[p]=u[g>>>5]>>>31-g%32&1}for(var A=this._subKeys=[],y=0;y<16;y++){for(var E=A[y]=[],C=o[y],p=0;p<24;p++)E[p/6|0]|=h[(c[p]-1+C)%28]<<31-p%6,E[4+(p/6|0)]|=h[28+(c[p+24]-1+C)%28]<<31-p%6;E[0]=E[0]<<1|E[0]>>>31;for(var p=1;p<7;p++)E[p]=E[p]>>>(p-1)*4+3;E[7]=E[7]<<5|E[7]>>>27}for(var w=this._invSubKeys=[],p=0;p<16;p++)w[p]=A[15-p]},encryptBlock:function(l,u){this._doCryptBlock(l,u,this._subKeys)},decryptBlock:function(l,u){this._doCryptBlock(l,u,this._invSubKeys)},_doCryptBlock:function(l,u,h){this._lBlock=l[u],this._rBlock=l[u+1],e.call(this,4,252645135),e.call(this,16,65535),s.call(this,2,858993459),s.call(this,8,16711935),e.call(this,1,1431655765);for(var p=0;p<16;p++){for(var g=h[p],A=this._lBlock,y=this._rBlock,E=0,C=0;C<8;C++)E|=r[C][((y^g[C])&a[C])>>>0];this._lBlock=y,this._rBlock=A^E}var w=this._lBlock;this._lBlock=this._rBlock,this._rBlock=w,e.call(this,1,1431655765),s.call(this,8,16711935),s.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),l[u]=this._lBlock,l[u+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function e(i,l){var u=(this._lBlock>>>i^this._rBlock)&l;this._rBlock^=u,this._lBlock^=u<<i}function s(i,l){var u=(this._rBlock>>>i^this._lBlock)&l;this._lBlock^=u,this._rBlock^=u<<i}x.DES=S._createHelper(n);var t=m.TripleDES=S.extend({_doReset:function(){var l=this._key,u=l.words;if(u.length!==2&&u.length!==4&&u.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var h=u.slice(0,2),p=u.length<4?u.slice(0,2):u.slice(2,4),g=u.length<6?u.slice(0,2):u.slice(4,6);this._des1=n.createEncryptor(v.create(h)),this._des2=n.createEncryptor(v.create(p)),this._des3=n.createEncryptor(v.create(g))},encryptBlock:function(l,u){this._des1.encryptBlock(l,u),this._des2.decryptBlock(l,u),this._des3.encryptBlock(l,u)},decryptBlock:function(l,u){this._des3.decryptBlock(l,u),this._des2.encryptBlock(l,u),this._des1.decryptBlock(l,u)},keySize:192/32,ivSize:64/32,blockSize:64/32});x.TripleDES=S._createHelper(t)}(),O.TripleDES})},pC0b:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("xzDV"),v=d.n(T),S=d("5Dmo")},"pED+":function(U,P,d){},pG52:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("WXVj"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},pLH3:function(U,P,d){var O=d("ProS");d("ALo7"),d("TWL2");var x=d("mOdp"),T=d("JLnu"),v=d("0/Rx");O.registerVisual(x("funnel")),O.registerLayout(T),O.registerProcessor(v("funnel"))},pP6R:function(U,P,d){var O=d("ProS"),x="\0_ec_interaction_mutex";function T(f,c,o){var r=m(f);r[c]=o}function v(f,c,o){var r=m(f),a=r[c];a===o&&(r[c]=null)}function S(f,c){return!!m(f)[c]}function m(f){return f[x]||(f[x]={})}O.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),P.take=T,P.release=v,P.isTaken=S},pmaE:function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("IwbS"),v=d("DEFe"),S="__seriesMapHighDown",m="__seriesMapCallKey",f=O.extendChartView({type:"map",render:function(r,a,n,e){if(e&&e.type==="mapToggleSelect"&&e.from===this.uid)return;var s=this.group;if(s.removeAll(),r.getHostGeoModel())return;if(e&&e.type==="geoRoam"&&e.componentType==="series"&&e.seriesId===r.id){var t=this._mapDraw;t&&s.add(t.group)}else if(r.needsDrawMap){var t=this._mapDraw||new v(n,!0);s.add(t.group),t.draw(r,a,n,this,e),this._mapDraw=t}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;r.get("showLegendSymbol")&&a.getComponent("legend")&&this._renderSymbols(r,a,n)},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(r,a,n){var e=r.originalData,s=this.group;e.each(e.mapDimension("value"),function(t,i){if(isNaN(t))return;var l=e.getItemLayout(i);if(!l||!l.point)return;var u=l.point,h=l.offset,p=new T.Circle({style:{fill:r.getData().getVisual("color")},shape:{cx:u[0]+h*9,cy:u[1],r:3},silent:!0,z2:8+(h?0:T.Z2_EMPHASIS_LIFT+1)});if(!h){var g=r.mainSeries.getData(),A=e.getName(i),y=g.indexOfName(A),E=e.getItemModel(i),C=E.getModel("label"),w=E.getModel("emphasis.label"),b=g.getItemGraphicEl(y),I=x.retrieve2(r.getFormattedLabel(y,"normal"),A),_=x.retrieve2(r.getFormattedLabel(y,"emphasis"),I),L=b[S],D=Math.random();if(!L){L=b[S]={};var N=x.curry(c,!0),R=x.curry(c,!1);b.on("mouseover",N).on("mouseout",R).on("emphasis",N).on("normal",R)}b[m]=D,x.extend(L,{recordVersion:D,circle:p,labelModel:C,hoverLabelModel:w,emphasisText:_,normalText:I}),o(L,!1)}s.add(p)})}});function c(r){var a=this[S];a&&a.recordVersion===this[m]&&o(a,r)}function o(r,a){var n=r.circle,e=r.labelModel,s=r.hoverLabelModel,t=r.emphasisText,i=r.normalText;a?(n.style.extendFrom(T.setTextStyle({},s,{text:s.get("show")?t:null},{isRectText:!0,useInsideStyle:!1},!0)),n.__mapOriginalZ2=n.z2,n.z2+=T.Z2_EMPHASIS_LIFT):(T.setTextStyle(n.style,e,{text:e.get("show")?i:null,textPosition:e.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),n.dirty(!1),n.__mapOriginalZ2!=null&&(n.z2=n.__mapOriginalZ2,n.__mapOriginalZ2=null))}U.exports=f},pwpV:function(U,P,d){},pzxd:function(U,P,d){var O=d("bYtY"),x=O.retrieve2,T=O.retrieve3,v=O.each,S=O.normalizeCssArray,m=O.isString,f=O.isObject,c=d("6GrX"),o=d("VpOo"),r=d("Xnb7"),a=d("fW2E"),n=d("gut8"),e=n.ContextCachedBy,s=n.WILL_BE_RESTORED,t=c.DEFAULT_FONT,i={left:1,right:1,center:1},l={top:1,bottom:1,middle:1},u=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],h={},p={};function g(j){return A(j),v(j.rich,A),j}function A(j){if(j){j.font=c.makeFont(j);var V=j.textAlign;V==="middle"&&(V="center"),j.textAlign=V==null||i[V]?V:"left";var z=j.textVerticalAlign||j.textBaseline;z==="center"&&(z="middle"),j.textVerticalAlign=z==null||l[z]?z:"top";var Y=j.textPadding;Y&&(j.textPadding=S(j.textPadding))}}function y(j,V,z,Y,ee,fe){Y.rich?C(j,V,z,Y,ee,fe):E(j,V,z,Y,ee,fe)}function E(j,V,z,Y,ee,fe){"use strict";var ie=_(Y),we,Ce=!1,Le=V.__attrCachedBy===e.PLAIN_TEXT;fe!==s?(fe&&(we=fe.style,Ce=!ie&&Le&&we),V.__attrCachedBy=ie?e.NONE:e.PLAIN_TEXT):Le&&(V.__attrCachedBy=e.NONE);var He=Y.font||t;(!Ce||He!==(we.font||t))&&(V.font=He);var ce=j.__computedFont;j.__styleFont!==He&&(j.__styleFont=He,ce=j.__computedFont=V.font);var Pe=Y.textPadding,Q=Y.textLineHeight,me=j.__textCotentBlock;(!me||j.__dirtyText)&&(me=j.__textCotentBlock=c.parsePlainText(z,ce,Pe,Q,Y.truncate));var Je=me.outerHeight,re=me.lines,G=me.lineHeight,X=N(p,j,Y,ee),J=X.baseX,Ae=X.baseY,he=X.textAlign||"left",Me=X.textVerticalAlign;b(V,Y,ee,J,Ae);var Ie=c.adjustTextY(Ae,Je,Me),oe=J,pe=Ie;if(ie||Pe){var Oe=c.getWidth(z,ce),Ye=Oe;Pe&&(Ye+=Pe[1]+Pe[3]);var it=c.adjustTextX(J,Ye,he);ie&&L(j,V,Y,it,Ie,Ye,Je),Pe&&(oe=F(J,he,Pe),pe+=Pe[0])}V.textAlign=he,V.textBaseline="middle",V.globalAlpha=Y.opacity||1;for(var et=0;et<u.length;et++){var Te=u[et],tt=Te[0],ze=Te[1],dt=Y[tt];(!Ce||dt!==we[tt])&&(V[ze]=a(V,ze,dt||Te[2]))}pe+=G/2;var Ot=Y.textStrokeWidth,Tt=Ce?we.textStrokeWidth:null,Ct=!Ce||Ot!==Tt,Nt=!Ce||Ct||Y.textStroke!==we.textStroke,Be=B(Y.textStroke,Ot),$=M(Y.textFill);if(Be&&(Ct&&(V.lineWidth=Ot),Nt&&(V.strokeStyle=Be)),$&&((!Ce||Y.textFill!==we.textFill)&&(V.fillStyle=$)),re.length===1)Be&&V.strokeText(re[0],oe,pe),$&&V.fillText(re[0],oe,pe);else for(var et=0;et<re.length;et++)Be&&V.strokeText(re[et],oe,pe),$&&V.fillText(re[et],oe,pe),pe+=G}function C(j,V,z,Y,ee,fe){fe!==s&&(V.__attrCachedBy=e.NONE);var ie=j.__textCotentBlock;(!ie||j.__dirtyText)&&(ie=j.__textCotentBlock=c.parseRichText(z,Y)),w(j,V,ie,Y,ee)}function w(j,V,z,Y,ee){var fe=z.width,ie=z.outerWidth,we=z.outerHeight,Ce=Y.textPadding,Le=N(p,j,Y,ee),He=Le.baseX,ce=Le.baseY,Pe=Le.textAlign,Q=Le.textVerticalAlign;b(V,Y,ee,He,ce);var me=c.adjustTextX(He,ie,Pe),Je=c.adjustTextY(ce,we,Q),re=me,G=Je;Ce&&(re+=Ce[3],G+=Ce[0]);var X=re+fe;_(Y)&&L(j,V,Y,me,Je,ie,we);for(var J=0;J<z.lines.length;J++){for(var Ae=z.lines[J],he=Ae.tokens,Me=he.length,Ie=Ae.lineHeight,oe=Ae.width,pe=0,Oe=re,Ye=X,it=Me-1,et;pe<Me&&(et=he[pe],!et.textAlign||et.textAlign==="left");)I(j,V,et,Y,Ie,G,Oe,"left"),oe-=et.width,Oe+=et.width,pe++;for(;it>=0&&(et=he[it],et.textAlign==="right");)I(j,V,et,Y,Ie,G,Ye,"right"),oe-=et.width,Ye-=et.width,it--;for(Oe+=(fe-(Oe-re)-(X-Ye)-oe)/2;pe<=it;)et=he[pe],I(j,V,et,Y,Ie,G,Oe+et.width/2,"center"),Oe+=et.width,pe++;G+=Ie}}function b(j,V,z,Y,ee){if(z&&V.textRotation){var fe=V.textOrigin;fe==="center"?(Y=z.width/2+z.x,ee=z.height/2+z.y):fe&&(Y=fe[0]+z.x,ee=fe[1]+z.y),j.translate(Y,ee),j.rotate(-V.textRotation),j.translate(-Y,-ee)}}function I(j,V,z,Y,ee,fe,ie,we){var Ce=Y.rich[z.styleName]||{};Ce.text=z.text;var Le=z.textVerticalAlign,He=fe+ee/2;Le==="top"?He=fe+z.height/2:Le==="bottom"&&(He=fe+ee-z.height/2),!z.isLineHolder&&_(Ce)&&L(j,V,Ce,we==="right"?ie-z.width:we==="center"?ie-z.width/2:ie,He-z.height/2,z.width,z.height);var ce=z.textPadding;ce&&(ie=F(ie,we,ce),He-=z.height/2-ce[2]-z.textHeight/2),R(V,"shadowBlur",T(Ce.textShadowBlur,Y.textShadowBlur,0)),R(V,"shadowColor",Ce.textShadowColor||Y.textShadowColor||"transparent"),R(V,"shadowOffsetX",T(Ce.textShadowOffsetX,Y.textShadowOffsetX,0)),R(V,"shadowOffsetY",T(Ce.textShadowOffsetY,Y.textShadowOffsetY,0)),R(V,"textAlign",we),R(V,"textBaseline","middle"),R(V,"font",z.font||t);var Pe=B(Ce.textStroke||Y.textStroke,me),Q=M(Ce.textFill||Y.textFill),me=x(Ce.textStrokeWidth,Y.textStrokeWidth);Pe&&(R(V,"lineWidth",me),R(V,"strokeStyle",Pe),V.strokeText(z.text,ie,He)),Q&&(R(V,"fillStyle",Q),V.fillText(z.text,ie,He))}function _(j){return!!(j.textBackgroundColor||j.textBorderWidth&&j.textBorderColor)}function L(j,V,z,Y,ee,fe,ie){var we=z.textBackgroundColor,Ce=z.textBorderWidth,Le=z.textBorderColor,He=m(we);if(R(V,"shadowBlur",z.textBoxShadowBlur||0),R(V,"shadowColor",z.textBoxShadowColor||"transparent"),R(V,"shadowOffsetX",z.textBoxShadowOffsetX||0),R(V,"shadowOffsetY",z.textBoxShadowOffsetY||0),He||Ce&&Le){V.beginPath();var ce=z.textBorderRadius;ce?o.buildPath(V,{x:Y,y:ee,width:fe,height:ie,r:ce}):V.rect(Y,ee,fe,ie),V.closePath()}if(He)if(R(V,"fillStyle",we),z.fillOpacity!=null){var Pe=V.globalAlpha;V.globalAlpha=z.fillOpacity*z.opacity,V.fill(),V.globalAlpha=Pe}else V.fill();else if(f(we)){var Q=we.image;Q=r.createOrUpdateImage(Q,null,j,D,we),Q&&r.isImageReady(Q)&&V.drawImage(Q,Y,ee,fe,ie)}if(Ce&&Le)if(R(V,"lineWidth",Ce),R(V,"strokeStyle",Le),z.strokeOpacity!=null){var Pe=V.globalAlpha;V.globalAlpha=z.strokeOpacity*z.opacity,V.stroke(),V.globalAlpha=Pe}else V.stroke()}function D(j,V){V.image=j}function N(j,V,z,Y){var ee=z.x||0,fe=z.y||0,ie=z.textAlign,we=z.textVerticalAlign;if(Y){var Ce=z.textPosition;if(Ce instanceof Array)ee=Y.x+H(Ce[0],Y.width),fe=Y.y+H(Ce[1],Y.height);else{var Le=V&&V.calculateTextPosition?V.calculateTextPosition(h,z,Y):c.calculateTextPosition(h,z,Y);ee=Le.x,fe=Le.y,ie=ie||Le.textAlign,we=we||Le.textVerticalAlign}var He=z.textOffset;He&&(ee+=He[0],fe+=He[1])}return j=j||{},j.baseX=ee,j.baseY=fe,j.textAlign=ie,j.textVerticalAlign=we,j}function R(j,V,z){return j[V]=a(j,V,z),j[V]}function B(j,V){return j==null||V<=0||j==="transparent"||j==="none"?null:j.image||j.colorStops?"#000":j}function M(j){return j==null||j==="none"?null:j.image||j.colorStops?"#000":j}function H(j,V){return typeof j=="string"?j.lastIndexOf("%")>=0?parseFloat(j)/100*V:parseFloat(j):j}function F(j,V,z){return V==="right"?j-z[1]:V==="center"?j+z[3]/2-z[1]/2:j+z[3]}function K(j,V){return j!=null&&(j||V.textBackgroundColor||V.textBorderWidth&&V.textBorderColor||V.textPadding)}P.normalizeTextStyle=g,P.renderText=y,P.getBoxPosition=N,P.getStroke=B,P.getFill=M,P.parsePercent=H,P.needDrawText=K},"q/+u":function(U,P,d){var O=d("ProS"),x=d("9wZj"),T=d("yWXo"),v=d("h8O9");O.extendChartView({type:"scatter",render:function(S,m,f){var c=S.getData(),o=this._updateSymbolDraw(c,S);o.updateData(c,{clipShape:this._getClipShape(S)}),this._finished=!0},incrementalPrepareRender:function(S,m,f){var c=S.getData(),o=this._updateSymbolDraw(c,S);o.incrementalPrepareUpdate(c),this._finished=!1},incrementalRender:function(S,m,f){this._symbolDraw.incrementalUpdate(S,m.getData(),{clipShape:this._getClipShape(m)}),this._finished=S.end===m.getData().count()},updateTransform:function(S,m,f){var c=S.getData();if(this.group.dirty(),!this._finished||c.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var o=v().reset(S);o.progress&&o.progress({start:0,end:c.count()},c),this._symbolDraw.updateLayout(c)},_getClipShape:function(S){var m=S.coordinateSystem,f=m&&m.getArea&&m.getArea();return S.get("clip",!0)?f:null},_updateSymbolDraw:function(S,m){var f=this._symbolDraw,c=m.pipelineContext,o=c.large;return(!f||o!==this._isLargeDraw)&&(f&&f.remove(),f=this._symbolDraw=o?new T:new x,this._isLargeDraw=o,this.group.removeAll()),this.group.add(f.group),f},remove:function(S,m){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},q3GZ:function(U,P){var d=["lineStyle","normal","opacity"],O={seriesType:"parallel",reset:function(x,T,v){var S=x.getModel("itemStyle"),m=x.getModel("lineStyle"),f=T.get("color"),c=m.get("color")||S.get("color")||f[x.seriesIndex%f.length],o=x.get("inactiveOpacity"),r=x.get("activeOpacity"),a=x.getModel("lineStyle").getLineStyle(),n=x.coordinateSystem,e=x.getData(),s={normal:a.opacity,active:r,inactive:o};e.setVisual("color",c);function t(i,l){n.eachActiveState(l,function(u,h){var p=s[u];if(u==="normal"&&l.hasItemOption){var g=l.getItemModel(h).get(d,!0);g!=null&&(p=g)}l.setItemVisual(h,"opacity",p)},i.start,i.end)}return{progress:t}}};U.exports=O},q4HE:function(U,P){var d="\\ud800-\\udfff",O="\\u0300-\\u036f",x="\\ufe20-\\ufe2f",T="\\u20d0-\\u20ff",v=O+x+T,S="\\ufe0e\\ufe0f",m="["+d+"]",f="["+v+"]",c="\\ud83c[\\udffb-\\udfff]",o="(?:"+f+"|"+c+")",r="[^"+d+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",n="[\\ud800-\\udbff][\\udc00-\\udfff]",e="\\u200d",s=o+"?",t="["+S+"]?",i="(?:"+e+"(?:"+[r,a,n].join("|")+")"+t+s+")*",l=t+s+i,u="(?:"+[r+f+"?",f,a,n,m].join("|")+")",h=RegExp(c+"(?="+c+")|"+u+l,"g");function p(g){for(var A=h.lastIndex=0;h.test(g);)++A;return A}U.exports=p},q7KB:function(U,P,d){},qBft:function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.AnsiX923={pad:function(T,v){var S=T.sigBytes,m=v*4,f=m-S%m,c=S+f-1;T.clamp(),T.words[c>>>2]|=f<<24-c%4*8,T.sigBytes+=f},unpad:function(T){var v=T.words[T.sigBytes-1>>>2]&255;T.sigBytes-=v}},O.pad.Ansix923})},qH13:function(U,P,d){var O=d("ItGF"),x=d("QBsz"),T=x.applyTransform,v=d("mFDi"),S=d("Qe9p"),m=d("6GrX"),f=d("pzxd"),c=d("ni6a"),o=d("Gev7"),r=d("Dagg"),a=d("dqUG"),n=d("y+Vt"),e=d("IMiH"),s=d("QuXc"),t=d("06Qe"),i=e.CMD,l=Math.round,u=Math.sqrt,h=Math.abs,p=Math.cos,g=Math.sin,A=Math.max;if(!O.canvasSupported){var y=",",E="progid:DXImageTransform.Microsoft",C=21600,w=C/2,b=1e5,I=1e3,_=function(Ae){Ae.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",Ae.coordsize=C+","+C,Ae.coordorigin="0,0"},L=function(Ae){return String(Ae).replace(/&/g,"&").replace(/"/g,""")},D=function(Ae,he,Me){return"rgb("+[Ae,he,Me].join(",")+")"},N=function(Ae,he){he&&Ae&&he.parentNode!==Ae&&Ae.appendChild(he)},R=function(Ae,he){he&&Ae&&he.parentNode===Ae&&Ae.removeChild(he)},B=function(Ae,he,Me){return(parseFloat(Ae)||0)*b+(parseFloat(he)||0)*I+Me},M=f.parsePercent,H=function(Ae,he,Me){var Ie=S.parse(he);Me=+Me,isNaN(Me)&&(Me=1),Ie&&(Ae.color=D(Ie[0],Ie[1],Ie[2]),Ae.opacity=Me*Ie[3])},F=function(Ae){var he=S.parse(Ae);return[D(he[0],he[1],he[2]),he[3]]},K=function(Ae,he,Me){var Ie=he.fill;if(Ie!=null)if(Ie instanceof s){var oe,pe=0,Oe=[0,0],Ye=0,it=1,et=Me.getBoundingRect(),Te=et.width,tt=et.height;if(Ie.type==="linear"){oe="gradient";var ze=Me.transform,dt=[Ie.x*Te,Ie.y*tt],Ot=[Ie.x2*Te,Ie.y2*tt];ze&&(T(dt,dt,ze),T(Ot,Ot,ze));var Tt=Ot[0]-dt[0],Ct=Ot[1]-dt[1];pe=Math.atan2(Tt,Ct)*180/Math.PI,pe<0&&(pe+=360),pe<1e-6&&(pe=0)}else{oe="gradientradial";var dt=[Ie.x*Te,Ie.y*tt],ze=Me.transform,Nt=Me.scale,Be=Te,$=tt;Oe=[(dt[0]-et.x)/Be,(dt[1]-et.y)/$],ze&&T(dt,dt,ze),Be/=Nt[0]*C,$/=Nt[1]*C;var Z=A(Be,$);Ye=2*0/Z,it=2*Ie.r/Z-Ye}var Re=Ie.colorStops.slice();Re.sort(function($t,Xt){return $t.offset-Xt.offset});for(var De=Re.length,ae=[],gt=[],jt=0;jt<De;jt++){var ut=Re[jt],rr=F(ut.color);gt.push(ut.offset*it+Ye+" "+rr[0]),(jt===0||jt===De-1)&&ae.push(rr)}if(De>=2){var pr=ae[0][0],nn=ae[1][0],mr=ae[0][1]*he.opacity,vr=ae[1][1]*he.opacity;Ae.type=oe,Ae.method="none",Ae.focus="100%",Ae.angle=pe,Ae.color=pr,Ae.color2=nn,Ae.colors=gt.join(","),Ae.opacity=vr,Ae.opacity2=mr}oe==="radial"&&(Ae.focusposition=Oe.join(","))}else H(Ae,Ie,he.opacity)},j=function(Ae,he){he.lineDash&&(Ae.dashstyle=he.lineDash.join(" ")),he.stroke!=null&&!(he.stroke instanceof s)&&H(Ae,he.stroke,he.opacity)},V=function(Ae,he,Me,Ie){var oe=he==="fill",pe=Ae.getElementsByTagName(he)[0];Me[he]!=null&&Me[he]!=="none"&&(oe||!oe&&Me.lineWidth)?(Ae[oe?"filled":"stroked"]="true",Me[he]instanceof s&&R(Ae,pe),pe||(pe=t.createNode(he)),oe?K(pe,Me,Ie):j(pe,Me),N(Ae,pe)):(Ae[oe?"filled":"stroked"]="false",R(Ae,pe))},z=[[],[],[]],Y=function(Ae,he){var Me=i.M,Ie=i.C,oe=i.L,pe=i.A,Oe=i.Q,Ye=[],it,et,Te,tt,ze,dt,Ot=Ae.data,Tt=Ae.len();for(tt=0;tt<Tt;){Te=Ot[tt++],et="",it=0;switch(Te){case Me:et=" m ",it=1,ze=Ot[tt++],dt=Ot[tt++],z[0][0]=ze,z[0][1]=dt;break;case oe:et=" l ",it=1,ze=Ot[tt++],dt=Ot[tt++],z[0][0]=ze,z[0][1]=dt;break;case Oe:case Ie:et=" c ",it=3;var Ct=Ot[tt++],Nt=Ot[tt++],Be=Ot[tt++],$=Ot[tt++],Z,Re;Te===Oe?(Z=Be,Re=$,Be=(Be+2*Ct)/3,$=($+2*Nt)/3,Ct=(ze+2*Ct)/3,Nt=(dt+2*Nt)/3):(Z=Ot[tt++],Re=Ot[tt++]),z[0][0]=Ct,z[0][1]=Nt,z[1][0]=Be,z[1][1]=$,z[2][0]=Z,z[2][1]=Re,ze=Z,dt=Re;break;case pe:var De=0,ae=0,gt=1,jt=1,ut=0;he&&(De=he[4],ae=he[5],gt=u(he[0]*he[0]+he[1]*he[1]),jt=u(he[2]*he[2]+he[3]*he[3]),ut=Math.atan2(-he[1]/jt,he[0]/gt));var rr=Ot[tt++],pr=Ot[tt++],nn=Ot[tt++],mr=Ot[tt++],vr=Ot[tt++]+ut,$t=Ot[tt++]+vr+ut;tt++;var Xt=Ot[tt++],ft=rr+p(vr)*nn,Ur=pr+g(vr)*mr,Ct=rr+p($t)*nn,Nt=pr+g($t)*mr,yn=Xt?" wa ":" at ";Math.abs(ft-Ct)<1e-4&&(Math.abs($t-vr)>.01?Xt&&(ft+=270/C):Math.abs(Ur-pr)<1e-4?Xt&&ft<rr||!Xt&&ft>rr?Nt-=270/C:Nt+=270/C:Xt&&Ur<pr||!Xt&&Ur>pr?Ct+=270/C:Ct-=270/C),Ye.push(yn,l(((rr-nn)*gt+De)*C-w),y,l(((pr-mr)*jt+ae)*C-w),y,l(((rr+nn)*gt+De)*C-w),y,l(((pr+mr)*jt+ae)*C-w),y,l((ft*gt+De)*C-w),y,l((Ur*jt+ae)*C-w),y,l((Ct*gt+De)*C-w),y,l((Nt*jt+ae)*C-w)),ze=Ct,dt=Nt;break;case i.R:var Dn=z[0],Un=z[1];Dn[0]=Ot[tt++],Dn[1]=Ot[tt++],Un[0]=Dn[0]+Ot[tt++],Un[1]=Dn[1]+Ot[tt++],he&&(T(Dn,Dn,he),T(Un,Un,he)),Dn[0]=l(Dn[0]*C-w),Un[0]=l(Un[0]*C-w),Dn[1]=l(Dn[1]*C-w),Un[1]=l(Un[1]*C-w),Ye.push(" m ",Dn[0],y,Dn[1]," l ",Un[0],y,Dn[1]," l ",Un[0],y,Un[1]," l ",Dn[0],y,Un[1]);break;case i.Z:Ye.push(" x ")}if(it>0){Ye.push(et);for(var wi=0;wi<it;wi++){var Rn=z[wi];he&&T(Rn,Rn,he),Ye.push(l(Rn[0]*C-w),y,l(Rn[1]*C-w),wi<it-1?y:"")}}}return Ye.join("")};n.prototype.brushVML=function(J){var Ae=this.style,he=this._vmlEl;he||(he=t.createNode("shape"),_(he),this._vmlEl=he),V(he,"fill",Ae,this),V(he,"stroke",Ae,this);var Me=this.transform,Ie=Me!=null,oe=he.getElementsByTagName("stroke")[0];if(oe){var pe=Ae.lineWidth;if(Ie&&!Ae.strokeNoScale){var Oe=Me[0]*Me[3]-Me[1]*Me[2];pe*=u(h(Oe))}oe.weight=pe+"px"}var Ye=this.path||(this.path=new e);this.__dirtyPath&&(Ye.beginPath(),Ye.subPixelOptimize=!1,this.buildPath(Ye,this.shape),Ye.toStatic(),this.__dirtyPath=!1),he.path=Y(Ye,this.transform),he.style.zIndex=B(this.zlevel,this.z,this.z2),N(J,he),Ae.text!=null?this.drawRectText(J,this.getBoundingRect()):this.removeRectText(J)},n.prototype.onRemove=function(J){R(J,this._vmlEl),this.removeRectText(J)},n.prototype.onAdd=function(J){N(J,this._vmlEl),this.appendRectText(J)};var ee=function(Ae){return typeof Ae=="object"&&Ae.tagName&&Ae.tagName.toUpperCase()==="IMG"};r.prototype.brushVML=function(J){var Ae=this.style,he=Ae.image,Me,Ie;if(ee(he)){var oe=he.src;if(oe===this._imageSrc)Me=this._imageWidth,Ie=this._imageHeight;else{var pe=he.runtimeStyle,Oe=pe.width,Ye=pe.height;pe.width="auto",pe.height="auto",Me=he.width,Ie=he.height,pe.width=Oe,pe.height=Ye,this._imageSrc=oe,this._imageWidth=Me,this._imageHeight=Ie}he=oe}else he===this._imageSrc&&(Me=this._imageWidth,Ie=this._imageHeight);if(!he)return;var it=Ae.x||0,et=Ae.y||0,Te=Ae.width,tt=Ae.height,ze=Ae.sWidth,dt=Ae.sHeight,Ot=Ae.sx||0,Tt=Ae.sy||0,Ct=ze&&dt,Nt=this._vmlEl;Nt||(Nt=t.doc.createElement("div"),_(Nt),this._vmlEl=Nt);var Be=Nt.style,$=!1,Z,Re=1,De=1;if(this.transform&&(Z=this.transform,Re=u(Z[0]*Z[0]+Z[1]*Z[1]),De=u(Z[2]*Z[2]+Z[3]*Z[3]),$=Z[1]||Z[2]),$){var ae=[it,et],gt=[it+Te,et],jt=[it,et+tt],ut=[it+Te,et+tt];T(ae,ae,Z),T(gt,gt,Z),T(jt,jt,Z),T(ut,ut,Z);var rr=A(ae[0],gt[0],jt[0],ut[0]),pr=A(ae[1],gt[1],jt[1],ut[1]),nn=[];nn.push("M11=",Z[0]/Re,y,"M12=",Z[2]/De,y,"M21=",Z[1]/Re,y,"M22=",Z[3]/De,y,"Dx=",l(it*Re+Z[4]),y,"Dy=",l(et*De+Z[5])),Be.padding="0 "+l(rr)+"px "+l(pr)+"px 0",Be.filter=E+".Matrix("+nn.join("")+", SizingMethod=clip)"}else Z&&(it=it*Re+Z[4],et=et*De+Z[5]),Be.filter="",Be.left=l(it)+"px",Be.top=l(et)+"px";var mr=this._imageEl,vr=this._cropEl;mr||(mr=t.doc.createElement("div"),this._imageEl=mr);var $t=mr.style;if(Ct){if(Me&&Ie)$t.width=l(Re*Me*Te/ze)+"px",$t.height=l(De*Ie*tt/dt)+"px";else{var Xt=new Image,ft=this;Xt.onload=function(){Xt.onload=null,Me=Xt.width,Ie=Xt.height,$t.width=l(Re*Me*Te/ze)+"px",$t.height=l(De*Ie*tt/dt)+"px",ft._imageWidth=Me,ft._imageHeight=Ie,ft._imageSrc=he},Xt.src=he}vr||(vr=t.doc.createElement("div"),vr.style.overflow="hidden",this._cropEl=vr);var Ur=vr.style;Ur.width=l((Te+Ot*Te/ze)*Re),Ur.height=l((tt+Tt*tt/dt)*De),Ur.filter=E+".Matrix(Dx="+-Ot*Te/ze*Re+",Dy="+-Tt*tt/dt*De+")",vr.parentNode||Nt.appendChild(vr),mr.parentNode!==vr&&vr.appendChild(mr)}else $t.width=l(Re*Te)+"px",$t.height=l(De*tt)+"px",Nt.appendChild(mr),vr&&vr.parentNode&&(Nt.removeChild(vr),this._cropEl=null);var yn="",Dn=Ae.opacity;Dn<1&&(yn+=".Alpha(opacity="+l(Dn*100)+") "),yn+=E+".AlphaImageLoader(src="+he+", SizingMethod=scale)",$t.filter=yn,Nt.style.zIndex=B(this.zlevel,this.z,this.z2),N(J,Nt),Ae.text!=null&&this.drawRectText(J,this.getBoundingRect())},r.prototype.onRemove=function(J){R(J,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(J)},r.prototype.onAdd=function(J){N(J,this._vmlEl),this.appendRectText(J)};var fe="normal",ie={},we=0,Ce=100,Le=document.createElement("div"),He=function(Ae){var he=ie[Ae];if(!he){we>Ce&&(we=0,ie={});var Me=Le.style,Ie;try{Me.font=Ae,Ie=Me.fontFamily.split(",")[0]}catch(oe){}he={style:Me.fontStyle||fe,variant:Me.fontVariant||fe,weight:Me.fontWeight||fe,size:parseFloat(Me.fontSize||12)|0,family:Ie||"Microsoft YaHei"},ie[Ae]=he,we++}return he},ce;m.$override("measureText",function(J,Ae){var he=t.doc;ce||(ce=he.createElement("div"),ce.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",t.doc.body.appendChild(ce));try{ce.style.font=Ae}catch(Me){}return ce.innerHTML="",ce.appendChild(he.createTextNode(J)),{width:ce.offsetWidth}});for(var Pe=new v,Q=function(Ae,he,Me,Ie){var oe=this.style;this.__dirty&&f.normalizeTextStyle(oe,!0);var pe=oe.text;if(pe!=null&&(pe+=""),!pe)return;if(oe.rich){var Oe=m.parseRichText(pe,oe);pe=[];for(var Ye=0;Ye<Oe.lines.length;Ye++){for(var it=Oe.lines[Ye].tokens,et=[],Te=0;Te<it.length;Te++)et.push(it[Te].text);pe.push(et.join(""))}pe=pe.join(`
|
|
|
`)}var tt,ze,dt=oe.textAlign,Ot=oe.textVerticalAlign,Tt=He(oe.font),Ct=Tt.style+" "+Tt.variant+" "+Tt.weight+" "+Tt.size+'px "'+Tt.family+'"';Me=Me||m.getBoundingRect(pe,Ct,dt,Ot,oe.textPadding,oe.textLineHeight);var Nt=this.transform;if(Nt&&!Ie&&(Pe.copy(he),Pe.applyTransform(Nt),he=Pe),Ie)tt=he.x,ze=he.y;else{var Be=oe.textPosition;if(Be instanceof Array)tt=he.x+M(Be[0],he.width),ze=he.y+M(Be[1],he.height),dt=dt||"left";else{var $=this.calculateTextPosition?this.calculateTextPosition({},oe,he):m.calculateTextPosition({},oe,he);tt=$.x,ze=$.y,dt=dt||$.textAlign,Ot=Ot||$.textVerticalAlign}}tt=m.adjustTextX(tt,Me.width,dt),ze=m.adjustTextY(ze,Me.height,Ot),ze+=Me.height/2;var Z=t.createNode,Re=this._textVmlEl,De,ae,gt;Re?(gt=Re.firstChild,De=gt.nextSibling,ae=De.nextSibling):(Re=Z("line"),De=Z("path"),ae=Z("textpath"),gt=Z("skew"),ae.style["v-text-align"]="left",_(Re),De.textpathok=!0,ae.on=!0,Re.from="0 0",Re.to="1000 0.05",N(Re,gt),N(Re,De),N(Re,ae),this._textVmlEl=Re);var jt=[tt,ze],ut=Re.style;Nt&&Ie?(T(jt,jt,Nt),gt.on=!0,gt.matrix=Nt[0].toFixed(3)+y+Nt[2].toFixed(3)+y+Nt[1].toFixed(3)+y+Nt[3].toFixed(3)+",0,0",gt.offset=(l(jt[0])||0)+","+(l(jt[1])||0),gt.origin="0 0",ut.left="0px",ut.top="0px"):(gt.on=!1,ut.left=l(tt)+"px",ut.top=l(ze)+"px"),ae.string=L(pe);try{ae.style.font=Ct}catch(rr){}V(Re,"fill",{fill:oe.textFill,opacity:oe.opacity},this),V(Re,"stroke",{stroke:oe.textStroke,opacity:oe.opacity,lineDash:oe.lineDash||null},this),Re.style.zIndex=B(this.zlevel,this.z,this.z2),N(Ae,Re)},me=function(Ae){R(Ae,this._textVmlEl),this._textVmlEl=null},Je=function(Ae){N(Ae,this._textVmlEl)},re=[c,o,r,n,a],G=0;G<re.length;G++){var X=re[G].prototype;X.drawRectText=Q,X.removeRectText=me,X.appendRectText=Je}a.prototype.brushVML=function(J){var Ae=this.style;Ae.text!=null?this.drawRectText(J,{x:Ae.x||0,y:Ae.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(J)},a.prototype.onRemove=function(J){this.removeRectText(J)},a.prototype.onAdd=function(J){this.appendRectText(J)}}},qJCg:function(U,P,d){var O=d("BlVb"),x=d("mFDi"),T=d("IwbS"),v=T.linePolygonIntersect,S={lineX:m(0),lineY:m(1),rect:{point:function(o,r,a){return o&&a.boundingRect.contain(o[0],o[1])},rect:function(o,r,a){return o&&a.boundingRect.intersect(o)}},polygon:{point:function(o,r,a){return o&&a.boundingRect.contain(o[0],o[1])&&O.contain(a.range,o[0],o[1])},rect:function(o,r,a){var n=a.range;if(!o||n.length<=1)return!1;var e=o.x,s=o.y,t=o.width,i=o.height,l=n[0];if(O.contain(n,e,s)||O.contain(n,e+t,s)||O.contain(n,e,s+i)||O.contain(n,e+t,s+i)||x.create(o).contain(l[0],l[1])||v(e,s,e+t,s,n)||v(e,s,e,s+i,n)||v(e+t,s,e+t,s+i,n)||v(e,s+i,e+t,s+i,n))return!0}}};function m(o){var r=["x","y"],a=["width","height"];return{point:function(n,e,s){if(n){var t=s.range,i=n[o];return f(i,t)}},rect:function(n,e,s){if(n){var t=s.range,i=[n[r[o]],n[r[o]]+n[a[o]]];return i[1]<i[0]&&i.reverse(),f(i[0],t)||f(i[1],t)||f(t[0],i)||f(t[1],i)}}}}function f(o,r){return r[0]<=o&&o<=r[1]}var c=S;U.exports=c},qM6L:function(U,P,d){(function(O,x){U.exports=P=x(d("Ib8C"))})(this,function(O){return function(){var x=O,T=x.lib,v=T.WordArray,S=x.enc,m=S.Utf16=S.Utf16BE={stringify:function(o){for(var r=o.words,a=o.sigBytes,n=[],e=0;e<a;e+=2){var s=r[e>>>2]>>>16-e%4*8&65535;n.push(String.fromCharCode(s))}return n.join("")},parse:function(o){for(var r=o.length,a=[],n=0;n<r;n++)a[n>>>1]|=o.charCodeAt(n)<<16-n%2*16;return v.create(a,r*2)}};S.Utf16LE={stringify:function(o){for(var r=o.words,a=o.sigBytes,n=[],e=0;e<a;e+=2){var s=f(r[e>>>2]>>>16-e%4*8&65535);n.push(String.fromCharCode(s))}return n.join("")},parse:function(o){for(var r=o.length,a=[],n=0;n<r;n++)a[n>>>1]|=f(o.charCodeAt(n)<<16-n%2*16);return v.create(a,r*2)}};function f(c){return c<<8&4278255360|c>>>8&16711935}}(),O.enc.Utf16})},qMZE:function(U,P,d){var O=d("JEkh"),x=O.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});U.exports=x},qOx5:function(U,P,d){"use strict";d.d(P,"a",function(){return m});var O=d("Kwbf");function x(f,c){var o=new Set;return f.forEach(function(r){c.has(r)||o.add(r)}),o}function T(f){var c=f||{},o=c.disabled,r=c.disableCheckbox,a=c.checkable;return!!(o||r)||a===!1}function v(f,c,o,r){for(var a=new Set(f),n=new Set,e=0;e<=o;e+=1){var s=c.get(e)||new Set;s.forEach(function(u){var h=u.key,p=u.node,g=u.children,A=g===void 0?[]:g;a.has(h)&&!r(p)&&A.filter(function(y){return!r(y.node)}).forEach(function(y){a.add(y.key)})})}for(var t=new Set,i=o;i>=0;i-=1){var l=c.get(i)||new Set;l.forEach(function(u){var h=u.parent,p=u.node;if(r(p)||!u.parent||t.has(u.parent.key))return;if(r(u.parent.node)){t.add(h.key);return}var g=!0,A=!1;(h.children||[]).filter(function(y){return!r(y.node)}).forEach(function(y){var E=y.key,C=a.has(E);g&&!C&&(g=!1),!A&&(C||n.has(E))&&(A=!0)}),g&&a.add(h.key),A&&n.add(h.key),t.add(h.key)})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(x(n,a))}}function S(f,c,o,r,a){for(var n=new Set(f),e=new Set(c),s=0;s<=r;s+=1){var t=o.get(s)||new Set;t.forEach(function(h){var p=h.key,g=h.node,A=h.children,y=A===void 0?[]:A;!n.has(p)&&!e.has(p)&&!a(g)&&y.filter(function(E){return!a(E.node)}).forEach(function(E){n.delete(E.key)})})}e=new Set;for(var i=new Set,l=r;l>=0;l-=1){var u=o.get(l)||new Set;u.forEach(function(h){var p=h.parent,g=h.node;if(a(g)||!h.parent||i.has(h.parent.key))return;if(a(h.parent.node)){i.add(p.key);return}var A=!0,y=!1;(p.children||[]).filter(function(E){return!a(E.node)}).forEach(function(E){var C=E.key,w=n.has(C);A&&!w&&(A=!1),!y&&(w||e.has(C))&&(y=!0)}),A||n.delete(p.key),y&&e.add(p.key),i.add(p.key)})}return{checkedKeys:Array.from(n),halfCheckedKeys:Array.from(x(e,n))}}function m(f,c,o,r){var a=[],n;r?n=r:n=T;var e=new Set(f.filter(function(l){var u=!!o[l];return u||a.push(l),u})),s=new Map,t=0;Object.keys(o).forEach(function(l){var u=o[l],h=u.level,p=s.get(h);p||(p=new Set,s.set(h,p)),p.add(u),t=Math.max(t,h)}),Object(O.a)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(l){return"'".concat(l,"'")}).join(", ")));var i;return c===!0?i=v(e,s,t,n):i=S(e,c.halfCheckedKeys,s,t,n),i}},qPY4:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("u4NN"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},qWUW:function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("DL4k")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="CaretDownOutlined";var c=v.forwardRef(f);P.default=c},qWt2:function(U,P,d){var O=d("ProS"),x=O.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});U.exports=x},qZFw:function(U,P,d){var O=d("bYtY"),x=d("6GrX"),T=d("hM6l"),v=d("4NO4"),S=v.makeInner,m=S();function f(o,r){r=r||[0,360],T.call(this,"angle",o,r),this.type="category"}f.prototype={constructor:f,pointToData:function(o,r){return this.polar.pointToData(o,r)[this.dim==="radius"?0:1]},dataToAngle:T.prototype.dataToCoord,angleToData:T.prototype.coordToData,calculateCategoryInterval:function(){var o=this,r=o.getLabelModel(),a=o.scale,n=a.getExtent(),e=a.count();if(n[1]-n[0]<1)return 0;var s=n[0],t=o.dataToCoord(s+1)-o.dataToCoord(s),i=Math.abs(t),l=x.getBoundingRect(s,r.getFont(),"center","top"),u=Math.max(l.height,7),h=u/i;isNaN(h)&&(h=Infinity);var p=Math.max(0,Math.floor(h)),g=m(o.model),A=g.lastAutoInterval,y=g.lastTickCount;return A!=null&&y!=null&&Math.abs(A-p)<=1&&Math.abs(y-e)<=1&&A>p?p=A:(g.lastTickCount=e,g.lastAutoInterval=p),p}},O.inherits(f,T);var c=f;U.exports=c},qgGe:function(U,P,d){var O=d("bYtY"),x=d("T4UG"),T=d("Bsck"),v=d("VaxA"),S=v.wrapTreePathInfo,m=x.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(c,o){var r={name:c.name,children:c.data};f(r);var a=c.levels||[],n={};return n.levels=a,T.createTree(r,this,n).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(c){var o=x.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(c);return o.treePathInfo=S(r,this),o},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(c){c?this._viewRoot=c:c=this._viewRoot;var o=this.getRawData().tree.root;(!c||c!==o&&!o.contains(c))&&(this._viewRoot=o)}});function f(c){var o=0;O.each(c.children,function(a){f(a);var n=a.value;O.isArray(n)&&(n=n[0]),o+=n});var r=c.value;O.isArray(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=o),r<0&&(r=0),O.isArray(c.value)?c.value[0]=r:c.value=r}U.exports=m},qj72:function(U,P,d){var O=d("bYtY");function x(v,S){return S=S||[0,0],O.map(["x","y"],function(m,f){var c=this.getAxis(m),o=S[f],r=v[f]/2;return c.type==="category"?c.getBandWidth():Math.abs(c.dataToCoord(o-r)-c.dataToCoord(o+r))},this)}function T(v){var S=v.grid.getRect();return{coordSys:{type:"cartesian2d",x:S.x,y:S.y,width:S.width,height:S.height},api:{coord:function(m){return v.dataToPoint(m)},size:O.bind(x,v)}}}U.exports=T},"qt/9":function(U,P,d){var O=d("ProS"),x=d("bYtY");d("Wqna"),d("1tlw"),d("Mylv");var T=d("nVfU"),v=T.layout,S=d("f5Yq");d("Ae16"),O.registerLayout(x.curry(v,"pictorialBar")),O.registerVisual(S("pictorialBar","roundRect"))},qu8F:function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("OLod"))})(this,function(O){/** @preserve
|
|
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
|
* derived from CryptoJS.mode.CTR
|
|
|
* Jan Hruby jhruby.web@gmail.com
|
|
|
*/return O.mode.CTRGladman=function(){var x=O.lib.BlockCipherMode.extend();function T(m){if((m>>24&255)===255){var f=m>>16&255,c=m>>8&255,o=m&255;f===255?(f=0,c===255?(c=0,o===255?o=0:++o):++c):++f,m=0,m+=f<<16,m+=c<<8,m+=o}else m+=1<<24;return m}function v(m){return(m[0]=T(m[0]))===0&&(m[1]=T(m[1])),m}var S=x.Encryptor=x.extend({processBlock:function(f,c){var o=this._cipher,r=o.blockSize,a=this._iv,n=this._counter;a&&(n=this._counter=a.slice(0),this._iv=void 0),v(n);var e=n.slice(0);o.encryptBlock(e,0);for(var s=0;s<r;s++)f[c+s]^=e[s]}});return x.Decryptor=S,x}(),O.mode.CTRGladman})},quyA:function(U,P){var d="\\ud800-\\udfff",O="\\u0300-\\u036f",x="\\ufe20-\\ufe2f",T="\\u20d0-\\u20ff",v=O+x+T,S="\\ufe0e\\ufe0f",m="\\u200d",f=RegExp("["+m+d+v+S+"]");function c(o){return f.test(o)}U.exports=c},qwVE:function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("K4ya"),v=d("XxSj"),S=O.PRIORITY.VISUAL.COMPONENT;O.registerVisual(S,{createOnAllSeries:!0,reset:function(f,c){var o=[];return c.eachComponent("visualMap",function(r){var a=f.pipelineContext;if(!r.isTargetSeries(f)||a&&a.large)return;o.push(T.incrementalApplyVisual(r.stateList,r.targetVisuals,x.bind(r.getValueState,r),r.getDataDimension(f.getData())))}),o}}),O.registerVisual(S,{createOnAllSeries:!0,reset:function(f,c){var o=f.getData(),r=[];c.eachComponent("visualMap",function(a){if(a.isTargetSeries(f)){var n=a.getVisualMeta(x.bind(m,null,f,a))||{stops:[],outerColors:[]},e=a.getDataDimension(o),s=o.getDimensionInfo(e);s!=null&&(n.dimension=s.index,r.push(n))}}),f.getData().setVisual("visualMeta",r)}});function m(f,c,o,r){for(var a=c.targetVisuals[r],n=v.prepareVisualTypes(a),e={color:f.getData().getVisual("color")},s=0,t=n.length;s<t;s++){var i=n[s],l=a[i==="opacity"?"__alphaForOpacity":i];l&&l.applyVisual(o,u,h)}return e.color;function u(p){return e[p]}function h(p,g){e[p]=g}}},"r+aA":function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("s2MQ")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="EyeInvisibleOutlined";var c=v.forwardRef(f);P.default=c},"r/2G":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("+Zaj"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},r6Bn:function(U,P,d){var O=d("bYtY"),x=d("ItGF"),T=d("4fz+"),v=d("BPZU");function S(c,o){return c.zlevel===o.zlevel?c.z===o.z?c.z2-o.z2:c.z-o.z:c.zlevel-o.zlevel}var m=function(){this._roots=[],this._displayList=[],this._displayListLen=0};m.prototype={constructor:m,traverse:function(o,r){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(o,r)},getDisplayList:function(o,r){return r=r||!1,o&&this.updateDisplayList(r),this._displayList},updateDisplayList:function(o){this._displayListLen=0;for(var r=this._roots,a=this._displayList,n=0,e=r.length;n<e;n++)this._updateAndAddDisplayable(r[n],null,o);a.length=this._displayListLen,x.canvasSupported&&v(a,S)},_updateAndAddDisplayable:function(o,r,a){if(o.ignore&&!a)return;o.beforeUpdate(),o.__dirty&&o.update(),o.afterUpdate();var n=o.clipPath;if(n){r?r=r.slice():r=[];for(var e=n,s=o;e;)e.parent=s,e.updateTransform(),r.push(e),s=e,e=e.clipPath}if(o.isGroup){for(var t=o._children,i=0;i<t.length;i++){var l=t[i];o.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,r,a)}o.__dirty=!1}else o.__clipPaths=r,this._displayList[this._displayListLen++]=o},addRoot:function(o){if(o.__storage===this)return;o instanceof T&&o.addChildrenToStorage(this),this.addToStorage(o),this._roots.push(o)},delRoot:function(o){if(o==null){for(var r=0;r<this._roots.length;r++){var a=this._roots[r];a instanceof T&&a.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(o instanceof Array){for(var r=0,n=o.length;r<n;r++)this.delRoot(o[r]);return}var e=O.indexOf(this._roots,o);e>=0&&(this.delFromStorage(o),this._roots.splice(e,1),o instanceof T&&o.delChildrenFromStorage(this))},addToStorage:function(o){return o&&(o.__storage=this,o.dirty(!1)),this},delFromStorage:function(o){return o&&(o.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:S};var f=m;U.exports=f},rA99:function(U,P,d){var O=d("y+Vt"),x=d("QBsz"),T=d("Sj9i"),v=T.quadraticSubdivide,S=T.cubicSubdivide,m=T.quadraticAt,f=T.cubicAt,c=T.quadraticDerivativeAt,o=T.cubicDerivativeAt,r=[];function a(e,s,t){var i=e.cpx2,l=e.cpy2;return i===null||l===null?[(t?o:f)(e.x1,e.cpx1,e.cpx2,e.x2,s),(t?o:f)(e.y1,e.cpy1,e.cpy2,e.y2,s)]:[(t?c:m)(e.x1,e.cpx1,e.x2,s),(t?c:m)(e.y1,e.cpy1,e.y2,s)]}var n=O.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(s,t){var i=t.x1,l=t.y1,u=t.x2,h=t.y2,p=t.cpx1,g=t.cpy1,A=t.cpx2,y=t.cpy2,E=t.percent;if(E===0)return;s.moveTo(i,l),A==null||y==null?(E<1&&(v(i,p,u,E,r),p=r[1],u=r[2],v(l,g,h,E,r),g=r[1],h=r[2]),s.quadraticCurveTo(p,g,u,h)):(E<1&&(S(i,p,A,u,E,r),p=r[1],A=r[2],u=r[3],S(l,g,y,h,E,r),g=r[1],y=r[2],h=r[3]),s.bezierCurveTo(p,g,A,y,u,h))},pointAt:function(s){return a(this.shape,s,!1)},tangentAt:function(s){var t=a(this.shape,s,!0);return x.normalize(t,t)}});U.exports=n},"rAM+":function(U,P,d){"use strict";d.d(P,"a",function(){return x});var O=d("Qw5x");function x(T,v){var S;if(typeof Symbol=="undefined"||T[Symbol.iterator]==null){if(Array.isArray(T)||(S=Object(O.a)(T))||v&&T&&typeof T.length=="number"){S&&(T=S);var m=0,f=function(){};return{s:f,n:function(){return m>=T.length?{done:!0}:{done:!1,value:T[m++]}},e:function(n){throw n},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.`)}var c=!0,o=!1,r;return{s:function(){S=T[Symbol.iterator]()},n:function(){var n=S.next();return c=n.done,n},e:function(n){o=!0,r=n},f:function(){try{!c&&S.return!=null&&S.return()}finally{if(o)throw r}}}}},rHrb:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.CopyToClipboard=void 0;var O=T(d("q1tI")),x=T(d("+QRC"));function T(h){return h&&h.__esModule?h:{default:h}}function v(h){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(g){return typeof g}:v=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},v(h)}function S(h,p){var g=Object.keys(h);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(h);p&&(A=A.filter(function(y){return Object.getOwnPropertyDescriptor(h,y).enumerable})),g.push.apply(g,A)}return g}function m(h){for(var p=1;p<arguments.length;p++){var g=arguments[p]!=null?arguments[p]:{};p%2?S(g,!0).forEach(function(A){l(h,A,g[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(g)):S(g).forEach(function(A){Object.defineProperty(h,A,Object.getOwnPropertyDescriptor(g,A))})}return h}function f(h,p){if(h==null)return{};var g=c(h,p),A,y;if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(h);for(y=0;y<E.length;y++){if(A=E[y],p.indexOf(A)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(h,A))continue;g[A]=h[A]}}return g}function c(h,p){if(h==null)return{};var g={},A=Object.keys(h),y,E;for(E=0;E<A.length;E++){if(y=A[E],p.indexOf(y)>=0)continue;g[y]=h[y]}return g}function o(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function r(h,p){for(var g=0;g<p.length;g++){var A=p[g];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(h,A.key,A)}}function a(h,p,g){return p&&r(h.prototype,p),g&&r(h,g),h}function n(h,p){return p&&(v(p)==="object"||typeof p=="function")?p:s(h)}function e(h){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)},e(h)}function s(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function t(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),p&&i(h,p)}function i(h,p){return i=Object.setPrototypeOf||function(A,y){return A.__proto__=y,A},i(h,p)}function l(h,p,g){return p in h?Object.defineProperty(h,p,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[p]=g,h}var u=function(h){t(p,h);function p(){var g,A;o(this,p);for(var y=arguments.length,E=new Array(y),C=0;C<y;C++)E[C]=arguments[C];return A=n(this,(g=e(p)).call.apply(g,[this].concat(E))),l(s(A),"onClick",function(w){var b=A.props,I=b.text,_=b.onCopy,L=b.children,D=b.options,N=O.default.Children.only(L),R=(0,x.default)(I,D);_&&_(I,R),N&&N.props&&typeof N.props.onClick=="function"&&N.props.onClick(w)}),A}return a(p,[{key:"render",value:function(){var A=this.props,y=A.text,E=A.onCopy,C=A.options,w=A.children,b=f(A,["text","onCopy","options","children"]),I=O.default.Children.only(w);return O.default.cloneElement(I,m({},b,{onClick:this.onClick}))}}]),p}(O.default.PureComponent);P.CopyToClipboard=u,l(u,"defaultProps",{onCopy:void 0,options:void 0})},rLCj:function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="ReloadOutlined";var f=P.a=x.forwardRef(m)},rUJ1:function(U,P){var d=/[&<>"']/,O=/[&<>"']/g,x=/[<>"']|&(?!#?\w+;)/,T=/[<>"']|&(?!#?\w+;)/g,v={"&":"&","<":"<",">":">",'"':""","'":"'"},S=function(w){return v[w]};function m(C,w){if(w){if(d.test(C))return C.replace(O,S)}else if(x.test(C))return C.replace(T,S);return C}var f=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function c(C){return C.replace(f,function(w,b){return b=b.toLowerCase(),b==="colon"?":":b.charAt(0)==="#"?b.charAt(1)==="x"?String.fromCharCode(parseInt(b.substring(2),16)):String.fromCharCode(+b.substring(1)):""})}var o=/(^|[^\[])\^/g;function r(C,w){C=C.source||C,w=w||"";var b={replace:function(_,L){return L=L.source||L,L=L.replace(o,"$1"),C=C.replace(_,L),b},getRegex:function(){return new RegExp(C,w)}};return b}var a=/[^\w:]/g,n=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function e(C,w,b){if(C){var I;try{I=decodeURIComponent(c(b)).replace(a,"").toLowerCase()}catch(_){return null}if(I.indexOf("javascript:")===0||I.indexOf("vbscript:")===0||I.indexOf("data:")===0)return null}w&&!n.test(b)&&(b=u(w,b));try{b=encodeURI(b).replace(/%25/g,"%")}catch(_){return null}return b}var s={},t=/^[^:]+:\/*[^/]*$/,i=/^([^:]+:)[\s\S]*$/,l=/^([^:]+:\/*[^/]*)[\s\S]*$/;function u(C,w){s[" "+C]||(t.test(C)?s[" "+C]=C+"/":s[" "+C]=A(C,"/",!0)),C=s[" "+C];var b=C.indexOf(":")===-1;return w.substring(0,2)==="//"?b?w:C.replace(i,"$1")+w:w.charAt(0)==="/"?b?w:C.replace(l,"$1")+w:C+w}var h={exec:function(){}};function p(C){for(var w=1,b,I;w<arguments.length;w++){b=arguments[w];for(I in b)Object.prototype.hasOwnProperty.call(b,I)&&(C[I]=b[I])}return C}function g(C,w){var b=C.replace(/\|/g,function(L,D,N){for(var R=!1,B=D;--B>=0&&N[B]==="\\";)R=!R;return R?"|":" |"}),I=b.split(/ \|/),_=0;if(I.length>w)I.splice(w);else for(;I.length<w;)I.push("");for(;_<I.length;_++)I[_]=I[_].trim().replace(/\\\|/g,"|");return I}function A(C,w,b){var I=C.length;if(I===0)return"";for(var _=0;_<I;){var L=C.charAt(I-_-1);if(L===w&&!b)_++;else if(L!==w&&b)_++;else break}return C.substr(0,I-_)}function y(C,w){if(C.indexOf(w[1])===-1)return-1;for(var b=C.length,I=0,_=0;_<b;_++)if(C[_]==="\\")_++;else if(C[_]===w[0])I++;else if(C[_]===w[1]&&(I--,I<0))return _;return-1}function E(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")}U.exports={escape:m,unescape:c,edit:r,cleanUrl:e,resolveUrl:u,noopTest:h,merge:p,splitCells:g,rtrim:A,findClosingBracket:y,checkSanitizeDeprecation:E}},rdUC:function(U,P,d){var O=d("MFOe"),x=O.Global;U.exports={name:"localStorage",read:v,write:S,each:m,remove:f,clearAll:c};function T(){return x.localStorage}function v(o){return T().getItem(o)}function S(o,r){return T().setItem(o,r)}function m(o){for(var r=T().length-1;r>=0;r--){var a=T().key(r);o(v(a),a)}}function f(o){return T().removeItem(o)}function c(){return T().clear()}},rdor:function(U,P,d){var O=d("lOQZ"),x=O.circularLayout;function T(v){v.eachSeriesByType("graph",function(S){S.get("layout")==="circular"&&x(S,"symbolSize")})}U.exports=T},rfSb:function(U,P,d){var O=d("T4UG"),x=d("sdST"),T=d("L0Ub"),v=T.getDimensionTypeByAxis,S=d("YXkt"),m=d("bYtY"),f=d("4NO4"),c=f.groupData,o=d("7aKB"),r=o.encodeHTML,a=d("xKMd"),n=2,e=O.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){e.superApply(this,"init",arguments),this.legendVisualProvider=new a(m.bind(this.getData,this),m.bind(this.getRawData,this))},fixData:function(t){var i=t.length,l=c(t,function(N){return N[2]}),u=[];l.buckets.each(function(N,R){u.push({name:R,dataList:N})});for(var h=u.length,p=-1,g=-1,A=0;A<h;++A){var y=u[A].dataList.length;y>p&&(p=y,g=A)}for(var E=0;E<h;++E){if(E===g)continue;for(var C=u[E].name,w=0;w<p;++w){for(var b=u[g].dataList[w][0],I=u[E].dataList.length,_=-1,L=0;L<I;++L){var D=u[E].dataList[L][0];if(D===b){_=L;break}}_===-1&&(t[i]=[],t[i][0]=b,t[i][1]=0,t[i][2]=C,i++)}}return t},getInitialData:function(t,i){for(var l=i.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],u=l.get("type"),h=m.filter(t.data,function(b){return b[2]!==void 0}),p=this.fixData(h||[]),g=[],A=this.nameMap=m.createHashMap(),y=0,E=0;E<p.length;++E)g.push(p[E][n]),A.get(p[E][n])||(A.set(p[E][n],y),y++);var C=x(p,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:v(u)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),w=new S(C,this);return w.initData(p),w},getLayerSeries:function(){for(var t=this.getData(),i=t.count(),l=[],u=0;u<i;++u)l[u]=u;var h=t.mapDimension("single"),p=c(l,function(A){return t.get("name",A)}),g=[];return p.buckets.each(function(A,y){A.sort(function(E,C){return t.get(h,E)-t.get(h,C)}),g.push({name:y,indices:A})}),g},getAxisTooltipData:function(t,i,l){m.isArray(t)||(t=t?[t]:[]);for(var u=this.getData(),h=this.getLayerSeries(),p=[],g=h.length,A,y=0;y<g;++y){for(var E=Number.MAX_VALUE,C=-1,w=h[y].indices.length,b=0;b<w;++b){var I=u.get(t[0],h[y].indices[b]),_=Math.abs(I-i);_<=E&&(A=I,E=_,C=h[y].indices[b])}p.push(C)}return{dataIndices:p,nestestValue:A}},formatTooltip:function(t){var i=this.getData(),l=i.getName(t),u=i.get(i.mapDimension("value"),t);return(isNaN(u)||u==null)&&(u="-"),r(l+" : "+u)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}}),s=e;U.exports=s},rkZ5:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("ProS"),v=d("c8qY"),S=d("D9ME"),m=d("fls0"),f=d("RSch"),c=d("akwb"),o=d("o40c"),r=d("ZYIC"),a=d("sK/D"),n=a.createClipPath,e=T.extendChartView({type:"lines",init:function(){},render:function(s,t,i){var l=s.getData(),u=this._updateLineDraw(l,s),h=s.get("zlevel"),p=s.get("effect.trailLength"),g=i.getZr(),A=g.painter.getType()==="svg";A||g.painter.getLayer(h).clear(!0),this._lastZlevel!=null&&!A&&g.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(s)&&p&&(A||g.configLayer(h,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(p/10+.9,1),0)})),u.updateData(l);var y=s.get("clip",!0)&&n(s.coordinateSystem,!1,s);y?this.group.setClipPath(y):this.group.removeClipPath(),this._lastZlevel=h,this._finished=!0},incrementalPrepareRender:function(s,t,i){var l=s.getData(),u=this._updateLineDraw(l,s);u.incrementalPrepareUpdate(l),this._clearLayer(i),this._finished=!1},incrementalRender:function(s,t,i){this._lineDraw.incrementalUpdate(s,t.getData()),this._finished=s.end===t.getData().count()},updateTransform:function(s,t,i){var l=s.getData(),u=s.pipelineContext;if(!this._finished||u.large||u.progressiveRender)return{update:!0};var h=r.reset(s);h.progress&&h.progress({start:0,end:l.count()},l),this._lineDraw.updateLayout(),this._clearLayer(i)},_updateLineDraw:function(s,t){var i=this._lineDraw,l=this._showEffect(t),u=!!t.get("polyline"),h=t.pipelineContext,p=h.large;return(!i||l!==this._hasEffet||u!==this._isPolyline||p!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=p?new o:new v(u?l?c:f:l?S:m),this._hasEffet=l,this._isPolyline=u,this._isLargeDraw=p,this.group.removeAll()),this.group.add(i.group),i},_showEffect:function(s){return!!s.get("effect.show")},_clearLayer:function(s){var t=s.getZr(),i=t.painter.getType()==="svg";!i&&this._lastZlevel!=null&&t.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(s,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},dispose:function(){}});U.exports=e},rmlV:function(U,P,d){var O=d("y+Vt"),x=O.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(v,S){var m=.5522848,f=S.cx,c=S.cy,o=S.rx,r=S.ry,a=o*m,n=r*m;v.moveTo(f-o,c),v.bezierCurveTo(f-o,c-n,f-a,c-r,f,c-r),v.bezierCurveTo(f+a,c-r,f+o,c-n,f+o,c),v.bezierCurveTo(f+o,c+n,f+a,c+r,f,c+r),v.bezierCurveTo(f-a,c+r,f-o,c+n,f-o,c),v.closePath()}});U.exports=x},rnVJ:function(U,P,d){var O=d("bYtY"),x=["rect","polygon","keep","clear"];function T(S,m){var f=S&&S.brush;if(O.isArray(f)||(f=f?[f]:[]),!f.length)return;var c=[];O.each(f,function(e){var s=e.hasOwnProperty("toolbox")?e.toolbox:[];s instanceof Array&&(c=c.concat(s))});var o=S&&S.toolbox;O.isArray(o)&&(o=o[0]),o||(o={feature:{}},S.toolbox=[o]);var r=o.feature||(o.feature={}),a=r.brush||(r.brush={}),n=a.type||(a.type=[]);n.push.apply(n,c),v(n),m&&!n.length&&n.push.apply(n,x)}function v(S){var m={};O.each(S,function(f){m[f]=1}),S.length=0,O.each(m,function(f,c){S.push(c)})}U.exports=T},rwxt:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=d("GdRQ");function x(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function T(f,c){for(var o=0;o<c.length;o++){var r=c[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(f,r.key,r)}}function v(f,c,o){return c&&T(f.prototype,c),o&&T(f,o),f}var S=!O.supportsCursorURIs||O.isTouchDevice,m=function(){function f(){x(this,f),this._target=null,this._canvas=document.createElement("canvas"),S&&(this._canvas.style.position="fixed",this._canvas.style.zIndex="65535",this._canvas.style.pointerEvents="none",this._canvas.style.visibility="hidden"),this._position={x:0,y:0},this._hotSpot={x:0,y:0},this._eventHandlers={mouseover:this._handleMouseOver.bind(this),mouseleave:this._handleMouseLeave.bind(this),mousemove:this._handleMouseMove.bind(this),mouseup:this._handleMouseUp.bind(this)}}return v(f,[{key:"attach",value:function(o){if(this._target&&this.detach(),this._target=o,S){document.body.appendChild(this._canvas);var r={capture:!0,passive:!0};this._target.addEventListener("mouseover",this._eventHandlers.mouseover,r),this._target.addEventListener("mouseleave",this._eventHandlers.mouseleave,r),this._target.addEventListener("mousemove",this._eventHandlers.mousemove,r),this._target.addEventListener("mouseup",this._eventHandlers.mouseup,r)}this.clear()}},{key:"detach",value:function(){if(!this._target)return;if(S){var o={capture:!0,passive:!0};this._target.removeEventListener("mouseover",this._eventHandlers.mouseover,o),this._target.removeEventListener("mouseleave",this._eventHandlers.mouseleave,o),this._target.removeEventListener("mousemove",this._eventHandlers.mousemove,o),this._target.removeEventListener("mouseup",this._eventHandlers.mouseup,o),document.body.removeChild(this._canvas)}this._target=null}},{key:"change",value:function(o,r,a,n,e){if(n===0||e===0){this.clear();return}this._position.x=this._position.x+this._hotSpot.x-r,this._position.y=this._position.y+this._hotSpot.y-a,this._hotSpot.x=r,this._hotSpot.y=a;var s=this._canvas.getContext("2d");this._canvas.width=n,this._canvas.height=e;var t;try{t=new ImageData(new Uint8ClampedArray(o),n,e)}catch(l){t=s.createImageData(n,e),t.data.set(new Uint8ClampedArray(o))}if(s.clearRect(0,0,n,e),s.putImageData(t,0,0),S)this._updatePosition();else{var i=this._canvas.toDataURL();this._target.style.cursor="url("+i+")"+r+" "+a+", default"}}},{key:"clear",value:function(){this._target.style.cursor="none",this._canvas.width=0,this._canvas.height=0,this._position.x=this._position.x+this._hotSpot.x,this._position.y=this._position.y+this._hotSpot.y,this._hotSpot.x=0,this._hotSpot.y=0}},{key:"move",value:function(o,r){if(!S)return;window.visualViewport?(this._position.x=o+window.visualViewport.offsetLeft,this._position.y=r+window.visualViewport.offsetTop):(this._position.x=o,this._position.y=r),this._updatePosition();var a=document.elementFromPoint(o,r);this._updateVisibility(a)}},{key:"_handleMouseOver",value:function(o){this._handleMouseMove(o)}},{key:"_handleMouseLeave",value:function(o){this._updateVisibility(o.relatedTarget)}},{key:"_handleMouseMove",value:function(o){this._updateVisibility(o.target),this._position.x=o.clientX-this._hotSpot.x,this._position.y=o.clientY-this._hotSpot.y,this._updatePosition()}},{key:"_handleMouseUp",value:function(o){var r=this,a=document.elementFromPoint(o.clientX,o.clientY);this._updateVisibility(a),this._captureIsActive()&&window.setTimeout(function(){if(!r._target)return;a=document.elementFromPoint(o.clientX,o.clientY),r._updateVisibility(a)},0)}},{key:"_showCursor",value:function(){this._canvas.style.visibility==="hidden"&&(this._canvas.style.visibility="")}},{key:"_hideCursor",value:function(){this._canvas.style.visibility!=="hidden"&&(this._canvas.style.visibility="hidden")}},{key:"_shouldShowCursor",value:function(o){return o?o===this._target?!0:this._target.contains(o)?!(window.getComputedStyle(o).cursor!=="none"):!1:!1}},{key:"_updateVisibility",value:function(o){this._captureIsActive()&&(o=document.captureElement),this._shouldShowCursor(o)?this._showCursor():this._hideCursor()}},{key:"_updatePosition",value:function(){this._canvas.style.left=this._position.x+"px",this._canvas.style.top=this._position.y+"px"}},{key:"_captureIsActive",value:function(){return document.captureElement&&document.documentElement.contains(document.captureElement)}}]),f}();P.default=m},rySg:function(U,P,d){d("SMc4"),d("8nMs")},s2MQ:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};P.default=O},s2lz:function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("IwbS"),v=d("gPAo"),S=d("VaxA"),m=d("9hCq"),f=d("SgGq"),c=d("mFDi"),o=d("Fofx"),r=d("5s0K"),a=d("KCsZ"),n=d("7aKB"),e=n.windowOpen,s=x.bind,t=T.Group,i=T.Rect,l=x.each,u=3,h=["label"],p=["emphasis","label"],g=["upperLabel"],A=["emphasis","upperLabel"],y=10,E=1,C=2,w=a([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),b=function(N){var R=w(N);return R.stroke=R.fill=R.lineWidth=null,R},I=O.extendChartView({type:"treemap",init:function(N,R){this._containerGroup,this._storage=_(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(N,R,B,M){var H=R.findComponents({mainType:"series",subType:"treemap",query:M});if(x.indexOf(H,N)<0)return;this.seriesModel=N,this.api=B,this.ecModel=R;var F=["treemapZoomToNode","treemapRootToNode"],K=S.retrieveTargetInfo(M,F,N),j=M&&M.type,V=N.layoutInfo,z=!this._oldTree,Y=this._storage,ee=j==="treemapRootToNode"&&K&&Y?{rootNodeGroup:Y.nodeGroup[K.node.getRawIndex()],direction:M.direction}:null,fe=this._giveContainerGroup(V),ie=this._doRender(fe,N,ee);!z&&(!j||j==="treemapZoomToNode"||j==="treemapRootToNode")?this._doAnimation(fe,ie,N,ee):ie.renderFinally(),this._resetController(B),this._renderBreadcrumb(N,B,K)},_giveContainerGroup:function(N){var R=this._containerGroup;return R||(R=this._containerGroup=new t,this._initEvents(R),this.group.add(R)),R.attr("position",[N.x,N.y]),R},_doRender:function(N,R,B){var M=R.getData().tree,H=this._oldTree,F=_(),K=_(),j=this._storage,V=[],z=x.curry(L,R,K,j,B,F,V);ee(M.root?[M.root]:[],H&&H.root?[H.root]:[],N,M===H||!H,0);var Y=fe(j);return this._oldTree=M,this._storage=K,{lastsForAnimation:F,willDeleteEls:Y,renderFinally:ie};function ee(we,Ce,Le,He,ce){He?(Ce=we,l(we,function(me,Je){!me.isRemoved()&&Q(Je,Je)})):new v(Ce,we,Pe,Pe).add(Q).update(Q).remove(x.curry(Q,null)).execute();function Pe(me){return me.getId()}function Q(me,Je){var re=me!=null?we[me]:null,G=Je!=null?Ce[Je]:null,X=z(re,G,Le,ce);X&&ee(re&&re.viewChildren||[],G&&G.viewChildren||[],X,He,ce+1)}}function fe(we){var Ce=_();return we&&l(we,function(Le,He){var ce=Ce[He];l(Le,function(Pe){Pe&&(ce.push(Pe),Pe.__tmWillDelete=1)})}),Ce}function ie(){l(Y,function(we){l(we,function(Ce){Ce.parent&&Ce.parent.remove(Ce)})}),l(V,function(we){we.invisible=!0,we.dirty()})}},_doAnimation:function(N,R,B,M){if(!B.get("animation"))return;var H=B.get("animationDurationUpdate"),F=B.get("animationEasing"),K=r.createWrap();l(R.willDeleteEls,function(j,V){l(j,function(z,Y){if(z.invisible)return;var ee=z.parent,fe;if(M&&M.direction==="drillDown")fe=ee===M.rootNodeGroup?{shape:{x:0,y:0,width:ee.__tmNodeWidth,height:ee.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var ie=0,we=0;ee.__tmWillDelete||(ie=ee.__tmNodeWidth/2,we=ee.__tmNodeHeight/2),fe=V==="nodeGroup"?{position:[ie,we],style:{opacity:0}}:{shape:{x:ie,y:we,width:0,height:0},style:{opacity:0}}}fe&&K.add(z,fe,H,F)})}),l(this._storage,function(j,V){l(j,function(z,Y){var ee=R.lastsForAnimation[V][Y],fe={};if(!ee)return;V==="nodeGroup"?ee.old&&(fe.position=z.position.slice(),z.attr("position",ee.old)):(ee.old&&(fe.shape=x.extend({},z.shape),z.setShape(ee.old)),ee.fadein?(z.setStyle("opacity",0),fe.style={opacity:1}):z.style.opacity!==1&&(fe.style={opacity:1})),K.add(z,fe,H,F)})},this),this._state="animating",K.done(s(function(){this._state="ready",R.renderFinally()},this)).start()},_resetController:function(N){var R=this._controller;R||(R=this._controller=new f(N.getZr()),R.enable(this.seriesModel.get("roam")),R.on("pan",s(this._onPan,this)),R.on("zoom",s(this._onZoom,this)));var B=new c(0,0,N.getWidth(),N.getHeight());R.setPointerChecker(function(M,H,F){return B.contain(H,F)})},_clearController:function(){var N=this._controller;N&&(N.dispose(),N=null)},_onPan:function(N){if(this._state!=="animating"&&(Math.abs(N.dx)>u||Math.abs(N.dy)>u)){var R=this.seriesModel.getData().tree.root;if(!R)return;var B=R.getLayout();if(!B)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:B.x+N.dx,y:B.y+N.dy,width:B.width,height:B.height}})}},_onZoom:function(N){var R=N.originX,B=N.originY;if(this._state!=="animating"){var M=this.seriesModel.getData().tree.root;if(!M)return;var H=M.getLayout();if(!H)return;var F=new c(H.x,H.y,H.width,H.height),K=this.seriesModel.layoutInfo;R-=K.x,B-=K.y;var j=o.create();o.translate(j,j,[-R,-B]),o.scale(j,j,[N.scale,N.scale]),o.translate(j,j,[R,B]),F.applyTransform(j),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:F.x,y:F.y,width:F.width,height:F.height}})}},_initEvents:function(N){N.on("click",function(R){if(this._state!=="ready")return;var B=this.seriesModel.get("nodeClick",!0);if(!B)return;var M=this.findTarget(R.offsetX,R.offsetY);if(!M)return;var H=M.node;if(H.getLayout().isLeafRoot)this._rootToNode(M);else if(B==="zoomToNode")this._zoomToNode(M);else if(B==="link"){var F=H.hostTree.data.getItemModel(H.dataIndex),K=F.get("link",!0),j=F.get("target",!0)||"blank";K&&e(K,j)}},this)},_renderBreadcrumb:function(N,R,B){B||(B=N.get("leafDepth",!0)!=null?{node:N.getViewRoot()}:this.findTarget(R.getWidth()/2,R.getHeight()/2),B||(B={node:N.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new m(this.group))).render(N,R,B.node,s(M,this));function M(H){this._state!=="animating"&&(S.aboveViewRoot(N.getViewRoot(),H)?this._rootToNode({node:H}):this._zoomToNode({node:H}))}},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=_(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(N){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:N.node})},_rootToNode:function(N){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:N.node})},findTarget:function(N,R){var B,M=this.seriesModel.getViewRoot();return M.eachNode({attr:"viewChildren",order:"preorder"},function(H){var F=this._storage.background[H.getRawIndex()];if(F){var K=F.transformCoordToLocal(N,R),j=F.shape;if(j.x<=K[0]&&K[0]<=j.x+j.width&&j.y<=K[1]&&K[1]<=j.y+j.height)B={node:H,offsetX:K[0],offsetY:K[1]};else return!1}},this),B}});function _(){return{nodeGroup:[],background:[],content:[]}}function L(N,R,B,M,H,F,K,j,V,z){if(!K)return;var Y=K.getLayout(),ee=N.getData();if(ee.setItemGraphicEl(K.dataIndex,null),!Y||!Y.isInView)return;var fe=Y.width,ie=Y.height,we=Y.borderWidth,Ce=Y.invisible,Le=K.getRawIndex(),He=j&&j.getRawIndex(),ce=K.viewChildren,Pe=Y.upperHeight,Q=ce&&ce.length,me=K.getModel("itemStyle"),Je=K.getModel("emphasis.itemStyle"),re=pe("nodeGroup",t);if(!re)return;if(V.add(re),re.attr("position",[Y.x||0,Y.y||0]),re.__tmNodeWidth=fe,re.__tmNodeHeight=ie,Y.isAboveViewRoot)return re;var G=K.getModel(),X=pe("background",i,z,E);if(X&&Ae(re,X,Q&&Y.upperLabelHeight),Q)T.isHighDownDispatcher(re)&&T.setAsHighDownDispatcher(re,!1),X&&(T.setAsHighDownDispatcher(X,!0),ee.setItemGraphicEl(K.dataIndex,X));else{var J=pe("content",i,z,C);J&&he(re,J),X&&T.isHighDownDispatcher(X)&&T.setAsHighDownDispatcher(X,!1),T.setAsHighDownDispatcher(re,!0),ee.setItemGraphicEl(K.dataIndex,re)}return re;function Ae(it,et,Te){if(et.dataIndex=K.dataIndex,et.seriesIndex=N.seriesIndex,et.setShape({x:0,y:0,width:fe,height:ie}),Ce)Me(et);else{et.invisible=!1;var tt=K.getVisual("borderColor",!0),ze=Je.get("borderColor"),dt=b(me);dt.fill=tt;var Ot=w(Je);if(Ot.fill=ze,Te){var Tt=fe-2*we;Ie(dt,Ot,tt,Tt,Pe,{x:we,y:0,width:Tt,height:Pe})}else dt.text=Ot.text=null;et.setStyle(dt),T.setElementHoverStyle(et,Ot)}it.add(et)}function he(it,et){et.dataIndex=K.dataIndex,et.seriesIndex=N.seriesIndex;var Te=Math.max(fe-2*we,0),tt=Math.max(ie-2*we,0);if(et.culling=!0,et.setShape({x:we,y:we,width:Te,height:tt}),Ce)Me(et);else{et.invisible=!1;var ze=K.getVisual("color",!0),dt=b(me);dt.fill=ze;var Ot=w(Je);Ie(dt,Ot,ze,Te,tt),et.setStyle(dt),T.setElementHoverStyle(et,Ot)}it.add(et)}function Me(it){!it.invisible&&F.push(it)}function Ie(it,et,Te,tt,ze,dt){var Ot=G.get("name"),Tt=G.getModel(dt?g:h),Ct=G.getModel(dt?A:p),Nt=Tt.getShallow("show");T.setLabelStyle(it,et,Tt,Ct,{defaultText:Nt?Ot:null,autoColor:Te,isRectText:!0,labelFetcher:N,labelDataIndex:K.dataIndex,labelProp:dt?"upperLabel":"label"}),oe(it,dt,Y),oe(et,dt,Y),dt&&(it.textRect=x.clone(dt)),it.truncate=Nt&&Tt.get("ellipsis")?{outerWidth:tt,outerHeight:ze,minChar:2}:null}function oe(it,et,Te){var tt=it.text;if(!et&&Te.isLeafRoot&&tt!=null){var ze=N.get("drillDownIcon",!0);it.text=ze?ze+" "+tt:tt}}function pe(it,et,Te,tt){var ze=He!=null&&B[it][He],dt=H[it];return ze?(B[it][He]=null,Oe(dt,ze,it)):Ce||(ze=new et({z:D(Te,tt)}),ze.__tmDepth=Te,ze.__tmStorageName=it,Ye(dt,ze,it)),R[it][Le]=ze}function Oe(it,et,Te){var tt=it[Le]={};tt.old=Te==="nodeGroup"?et.position.slice():x.extend({},et.shape)}function Ye(it,et,Te){var tt=it[Le]={},ze=K.parentNode;if(ze&&(!M||M.direction==="drillDown")){var dt=0,Ot=0,Tt=H.background[ze.getRawIndex()];!M&&Tt&&Tt.old&&(dt=Tt.old.width,Ot=Tt.old.height),tt.old=Te==="nodeGroup"?[0,Ot]:{x:dt,y:Ot,width:0,height:0}}tt.fadein=Te!=="nodeGroup"}}function D(N,R){var B=N*y+R;return(B-1)/B}U.exports=I},sAZ8:function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("+rIm"),v=d("/IIm"),S=d("9KIM"),m=d("IwbS"),f=["axisLine","axisTickLabel","axisName"],c=O.extendComponentView({type:"parallelAxis",init:function(e,s){c.superApply(this,"init",arguments),(this._brushController=new v(s.getZr())).on("brush",x.bind(this._onBrush,this))},render:function(e,s,t,i){if(o(e,s,i))return;this.axisModel=e,this.api=t,this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new m.Group,this.group.add(this._axisGroup),!e.get("show"))return;var u=a(e,s),h=u.coordinateSystem,p=e.getAreaSelectStyle(),g=p.width,A=e.axis.dim,y=h.getAxisLayout(A),E=x.extend({strokeContainThreshold:g},y),C=new T(e,E);x.each(f,C.add,C),this._axisGroup.add(C.getGroup()),this._refreshBrushController(E,p,e,u,g,t);var w=i&&i.animation===!1?null:e;m.groupTransition(l,this._axisGroup,w)},_refreshBrushController:function(e,s,t,i,l,u){var h=t.axis.getExtent(),p=h[1]-h[0],g=Math.min(30,Math.abs(p)*.1),A=m.BoundingRect.create({x:h[0],y:-l/2,width:p,height:l});A.x-=g,A.width+=2*g,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:S.makeRectPanelClipPath(A),isTargetByCursor:S.makeRectIsTargetByCursor(A,u,i),getLinearBrushOtherExtent:S.makeLinearBrushOtherExtent(A,0)}]).enableBrush({brushType:"lineX",brushStyle:s,removeOnClick:!0}).updateCovers(r(t))},_onBrush:function(e,s){var t=this.axisModel,i=t.axis,l=x.map(e,function(u){return[i.coordToData(u.range[0],!0),i.coordToData(u.range[1],!0)]});(!t.option.realtime===s.isEnd||s.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:t.id,intervals:l})},dispose:function(){this._brushController.dispose()}});function o(e,s,t){return t&&t.type==="axisAreaSelect"&&s.findComponents({mainType:"parallelAxis",query:t})[0]===e}function r(e){var s=e.axis;return x.map(e.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[s.dataToCoord(t[0],!0),s.dataToCoord(t[1],!0)]}})}function a(e,s){return s.getComponent("parallel",e.get("parallelIndex"))}var n=c;U.exports=n},sE09:function(U,P,d){},sGsY:function(U,P,d){"use strict";var O=d("lSNA"),x=d.n(O),T=d("pVnL"),v=d.n(T),S=d("q1tI"),m=d("TSYQ"),f=d.n(m),c=d("H84U"),o=d("B6l+"),r=d.n(o),a=function(K){var j=K.value,V=K.formatter,z=K.precision,Y=K.decimalSeparator,ee=K.groupSeparator,fe=ee===void 0?"":ee,ie=K.prefixCls,we;if(typeof V=="function")we=V(j);else{var Ce=String(j),Le=Ce.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Le||Ce==="-")we=Ce;else{var He=Le[1],ce=Le[2]||"0",Pe=Le[4]||"";ce=ce.replace(/\B(?=(\d{3})+(?!\d))/g,fe),typeof z=="number"&&(Pe=r()(Pe,z,"0").slice(0,z)),Pe&&(Pe="".concat(Y).concat(Pe)),we=[S.createElement("span",{key:"int",className:"".concat(ie,"-content-value-int")},He,ce),Pe&&S.createElement("span",{key:"decimal",className:"".concat(ie,"-content-value-decimal")},Pe)]}}return S.createElement("span",{className:"".concat(ie,"-content-value")},we)},n=a,e=function(K){var j=K.prefixCls,V=K.className,z=K.style,Y=K.valueStyle,ee=K.value,fe=ee===void 0?0:ee,ie=K.title,we=K.valueRender,Ce=K.prefix,Le=K.suffix,He=K.direction,ce=K.onMouseEnter,Pe=K.onMouseLeave,Q=S.createElement(n,v()({},K,{value:fe})),me=f()(j,V,x()({},"".concat(j,"-rtl"),He==="rtl"));return S.createElement("div",{className:me,style:z,onMouseEnter:ce,onMouseLeave:Pe},ie&&S.createElement("div",{className:"".concat(j,"-title")},ie),S.createElement("div",{style:Y,className:"".concat(j,"-content")},Ce&&S.createElement("span",{className:"".concat(j,"-content-prefix")},Ce),we?we(Q):Q,Le&&S.createElement("span",{className:"".concat(j,"-content-suffix")},Le)))};e.defaultProps={decimalSeparator:".",groupSeparator:","};var s=Object(c.c)({prefixCls:"statistic"})(e),t=s,i=d("lwsE"),l=d.n(i),u=d("W8MJ"),h=d.n(u),p=d("7W2i"),g=d.n(p),A=d("LQ03"),y=d.n(A),E=d("J4zp"),C=d.n(E),w=d("QQZ/"),b=d.n(w),I=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function _(F,K){var j=F,V=/\[[^\]]*]/g,z=(K.match(V)||[]).map(function(ie){return ie.slice(1,-1)}),Y=K.replace(V,"[]"),ee=I.reduce(function(ie,we){var Ce=C()(we,2),Le=Ce[0],He=Ce[1];if(ie.indexOf(Le)!==-1){var ce=Math.floor(j/He);return j-=ce*He,ie.replace(new RegExp("".concat(Le,"+"),"g"),function(Pe){var Q=Pe.length;return b()(ce.toString(),Q,"0")})}return ie},Y),fe=0;return ee.replace(V,function(){var ie=z[fe];return fe+=1,ie})}function L(F,K){var j=K.format,V=j===void 0?"":j,z=new Date(F).getTime(),Y=Date.now(),ee=Math.max(z-Y,0);return _(ee,V)}var D=d("0n0R"),N=1e3/30;function R(F){return new Date(F).getTime()}var B=function(F){g()(j,F);var K=y()(j);function j(){var V;return l()(this,j),V=K.apply(this,arguments),V.syncTimer=function(){var z=V.props.value,Y=R(z);Y>=Date.now()?V.startTimer():V.stopTimer()},V.startTimer=function(){if(V.countdownId)return;V.countdownId=window.setInterval(function(){V.forceUpdate()},N)},V.stopTimer=function(){var z=V.props,Y=z.onFinish,ee=z.value;if(V.countdownId){clearInterval(V.countdownId),V.countdownId=void 0;var fe=R(ee);Y&&fe<Date.now()&&Y()}},V.formatCountdown=function(z,Y){var ee=V.props.format;return L(z,v()(v()({},Y),{format:ee}))},V.valueRender=function(z){return Object(D.a)(z,{title:void 0})},V}return h()(j,[{key:"componentDidMount",value:function(){this.syncTimer()}},{key:"componentDidUpdate",value:function(){this.syncTimer()}},{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){return S.createElement(t,v()({valueRender:this.valueRender},this.props,{formatter:this.formatCountdown}))}}]),j}(S.Component);B.defaultProps={format:"HH:mm:ss"};var M=B;t.Countdown=M;var H=P.a=t},"sK/D":function(U,P,d){var O=d("IwbS"),x=d("OELB"),T=x.round;function v(f,c,o){var r=f.getArea(),a=f.getBaseAxis().isHorizontal(),n=r.x,e=r.y,s=r.width,t=r.height,i=o.get("lineStyle.width")||2;n-=i/2,e-=i/2,s+=i,t+=i,n=Math.floor(n),s=Math.round(s);var l=new O.Rect({shape:{x:n,y:e,width:s,height:t}});return c&&(l.shape[a?"width":"height"]=0,O.initProps(l,{shape:{width:s,height:t}},o)),l}function S(f,c,o){var r=f.getArea(),a=new O.Sector({shape:{cx:T(f.cx,1),cy:T(f.cy,1),r0:T(r.r0,1),r:T(r.r,1),startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return c&&(a.shape.endAngle=r.startAngle,O.initProps(a,{shape:{endAngle:r.endAngle}},o)),a}function m(f,c,o){if(f){if(f.type==="polar")return S(f,c,o);if(f.type==="cartesian2d")return v(f,c,o)}else return null;return null}P.createGridClipPath=v,P.createPolarClipPath=S,P.createClipPath=m},sKgW:function(U,P){var d=9007199254740991,O=Math.floor;function x(T,v){var S="";if(!T||v<1||v>d)return S;do v%2&&(S+=T),v=O(v/2),v&&(T+=T);while(v);return S}U.exports=x},sPJy:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("AOa7"),v=d.n(T),S=d("lUTK"),m=d("qVdP")},sPtV:function(U,P,d){"use strict";d.d(P,"a",function(){return v});var O=d("q1tI"),x=d.n(O),T=d("hkKa");function v(S){var m=O.useRef(S),f=Object(T.a)();return[function(){return m.current},function(c){m.current=c,f()}]}},sRwP:function(U,P,d){d("jsU+"),d("2548"),d("Tp9H"),d("06DH"),d("dnwI"),d("fE02"),d("33Ds")},"sS/r":function(U,P,d){var O=d("4fz+"),x=d("iRjW"),T=d("Yl7c"),v=function(){this.group=new O,this.uid=x.getUID("viewComponent")};v.prototype={constructor:v,init:function(f,c){},render:function(f,c,o,r){},dispose:function(){},filterForExposedEvent:null};var S=v.prototype;S.updateView=S.updateLayout=S.updateVisual=function(f,c,o,r){},T.enableClassExtend(v),T.enableClassManagement(v,{registerWhenExtend:!0});var m=v;U.exports=m},"sW+o":function(U,P,d){var O=d("SrGk"),x=d("bYtY"),T=d("SUKs"),v=d("Qe9p");function S(f,c){O.call(this,f,c,["linearGradient","radialGradient"],"__gradient_in_use__")}x.inherits(S,O),S.prototype.addWithoutUpdate=function(f,c){if(c&&c.style){var o=this;x.each(["fill","stroke"],function(r){if(c.style[r]&&(c.style[r].type==="linear"||c.style[r].type==="radial")){var a=c.style[r],n=o.getDefs(!0),e;a._dom?(e=a._dom,n.contains(a._dom)||o.addDom(e)):e=o.add(a),o.markUsed(c);var s=e.getAttribute("id");f.setAttribute(r,"url(#"+s+")")}})}},S.prototype.add=function(f){var c;if(f.type==="linear")c=this.createElement("linearGradient");else if(f.type==="radial")c=this.createElement("radialGradient");else return T("Illegal gradient type."),null;return f.id=f.id||this.nextId++,c.setAttribute("id","zr"+this._zrId+"-gradient-"+f.id),this.updateDom(f,c),this.addDom(c),c},S.prototype.update=function(f){var c=this;O.prototype.update.call(this,f,function(){var o=f.type,r=f._dom.tagName;o==="linear"&&r==="linearGradient"||o==="radial"&&r==="radialGradient"?c.updateDom(f,f._dom):(c.removeDom(f),c.add(f))})},S.prototype.updateDom=function(f,c){if(f.type==="linear")c.setAttribute("x1",f.x),c.setAttribute("y1",f.y),c.setAttribute("x2",f.x2),c.setAttribute("y2",f.y2);else if(f.type==="radial")c.setAttribute("cx",f.x),c.setAttribute("cy",f.y),c.setAttribute("r",f.r);else{T("Illegal gradient type.");return}f.global?c.setAttribute("gradientUnits","userSpaceOnUse"):c.setAttribute("gradientUnits","objectBoundingBox"),c.innerHTML="";for(var o=f.colorStops,r=0,a=o.length;r<a;++r){var n=this.createElement("stop");n.setAttribute("offset",o[r].offset*100+"%");var e=o[r].color;if(e.indexOf("rgba">-1)){var s=v.parse(e)[3],t=v.toHex(e);n.setAttribute("stop-color","#"+t),n.setAttribute("stop-opacity",s)}else n.setAttribute("stop-color",o[r].color);c.appendChild(n)}f._dom=c},S.prototype.markUsed=function(f){if(f.style){var c=f.style.fill;c&&c._dom&&O.prototype.markUsed.call(this,c._dom),c=f.style.stroke,c&&c._dom&&O.prototype.markUsed.call(this,c._dom)}};var m=S;U.exports=m},sdST:function(U,P,d){var O=d("hi0g");function x(T,v){return v=v||{},O(v.coordDimensions||[],T,{dimsDef:v.dimensionsDefine||T.dimensionsDefine,encodeDef:v.encodeDefine||T.encodeDefine,dimCount:v.dimensionsCount,encodeDefaulter:v.encodeDefaulter,generateCoord:v.generateCoord,generateCoordCount:v.generateCoordCount})}U.exports=x},sjKO:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=T;var O=30,x=12;function T(v,S){var m,f,c,o,r,a,n,e,s,t,i,l,u,h,p,g,A,y,E,C,w,b,I,_,L;m=v.state,f=v.next_in,_=v.input,c=f+(v.avail_in-5),o=v.next_out,L=v.output,r=o-(S-v.avail_out),a=o+(v.avail_out-257),n=m.dmax,e=m.wsize,s=m.whave,t=m.wnext,i=m.window,l=m.hold,u=m.bits,h=m.lencode,p=m.distcode,g=(1<<m.lenbits)-1,A=(1<<m.distbits)-1;e:do{u<15&&(l+=_[f++]<<u,u+=8,l+=_[f++]<<u,u+=8),y=h[l&g];t:for(;;){if(E=y>>>24,l>>>=E,u-=E,E=y>>>16&255,E===0)L[o++]=y&65535;else if(E&16){C=y&65535,E&=15,E&&(u<E&&(l+=_[f++]<<u,u+=8),C+=l&(1<<E)-1,l>>>=E,u-=E),u<15&&(l+=_[f++]<<u,u+=8,l+=_[f++]<<u,u+=8),y=p[l&A];r:for(;;){if(E=y>>>24,l>>>=E,u-=E,E=y>>>16&255,E&16){if(w=y&65535,E&=15,u<E&&(l+=_[f++]<<u,u+=8,u<E&&(l+=_[f++]<<u,u+=8)),w+=l&(1<<E)-1,w>n){v.msg="invalid distance too far back",m.mode=O;break e}if(l>>>=E,u-=E,E=o-r,w>E){if(E=w-E,E>s&&m.sane){v.msg="invalid distance too far back",m.mode=O;break e}if(b=0,I=i,t===0){if(b+=e-E,E<C){C-=E;do L[o++]=i[b++];while(--E);b=o-w,I=L}}else if(t<E){if(b+=e+t-E,E-=t,E<C){C-=E;do L[o++]=i[b++];while(--E);if(b=0,t<C){E=t,C-=E;do L[o++]=i[b++];while(--E);b=o-w,I=L}}}else if(b+=t-E,E<C){C-=E;do L[o++]=i[b++];while(--E);b=o-w,I=L}for(;C>2;)L[o++]=I[b++],L[o++]=I[b++],L[o++]=I[b++],C-=3;C&&(L[o++]=I[b++],C>1&&(L[o++]=I[b++]))}else{b=o-w;do L[o++]=L[b++],L[o++]=L[b++],L[o++]=L[b++],C-=3;while(C>2);C&&(L[o++]=L[b++],C>1&&(L[o++]=L[b++]))}}else if((E&64)===0){y=p[(y&65535)+(l&(1<<E)-1)];continue r}else{v.msg="invalid distance code",m.mode=O;break e}break}}else if((E&64)===0){y=h[(y&65535)+(l&(1<<E)-1)];continue t}else if(E&32){m.mode=x;break e}else{v.msg="invalid literal/length code",m.mode=O;break e}break}}while(f<c&&o<a);C=u>>3,f-=C,u-=C<<3,l&=(1<<u)-1,v.next_in=f,v.next_out=o,v.avail_in=f<c?5+(c-f):5-(f-c),v.avail_out=o<a?257+(a-o):257-(o-a),m.hold=l,m.bits=u;return}},szbU:function(U,P,d){var O=d("bYtY"),x=O.each;function T(S){var m=S&&S.visualMap;O.isArray(m)||(m=m?[m]:[]),x(m,function(f){if(!f)return;v(f,"splitList")&&!v(f,"pieces")&&(f.pieces=f.splitList,delete f.splitList);var c=f.pieces;c&&O.isArray(c)&&x(c,function(o){O.isObject(o)&&(v(o,"start")&&!v(o,"min")&&(o.min=o.start),v(o,"end")&&!v(o,"max")&&(o.max=o.end))})})}function v(S,m){return S&&S.hasOwnProperty&&S.hasOwnProperty(m)}U.exports=T},t23M:function(U,P,d){"use strict";var O=d("VTBJ"),x=d("1OyB"),T=d("vuIU"),v=d("Ji7U"),S=d("LK+K"),m=d("q1tI"),f=d.n(m),c=d("m+aA"),o=d("Zm9Q"),r=d("Kwbf"),a=d("c+Xe"),n=d("bdgK"),e="rc-observer-key",s=function(t){Object(v.a)(l,t);var i=Object(S.a)(l);function l(){var u;Object(x.a)(this,l);for(var h=arguments.length,p=new Array(h),g=0;g<h;g++)p[g]=arguments[g];return u=i.call.apply(i,[this].concat(p)),u.resizeObserver=null,u.childNode=null,u.currentElement=null,u.state={width:0,height:0,offsetHeight:0,offsetWidth:0},u.onResize=function(A){var y=u.props.onResize,E=A[0].target,C=E.getBoundingClientRect(),w=C.width,b=C.height,I=E.offsetWidth,_=E.offsetHeight,L=Math.floor(w),D=Math.floor(b);if(u.state.width!==L||u.state.height!==D||u.state.offsetWidth!==I||u.state.offsetHeight!==_){var N={width:L,height:D,offsetWidth:I,offsetHeight:_};if(u.setState(N),y){var R=I===Math.round(w)?w:I,B=_===Math.round(b)?b:_;Promise.resolve().then(function(){y(Object(O.a)(Object(O.a)({},N),{},{offsetWidth:R,offsetHeight:B}),E)})}}},u.setChildNode=function(A){u.childNode=A},u}return Object(T.a)(l,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var h=this.props.disabled;if(h){this.destroyObserver();return}var p=Object(c.a)(this.childNode||this),g=p!==this.currentElement;g&&(this.destroyObserver(),this.currentElement=p),!this.resizeObserver&&p&&(this.resizeObserver=new n.default(this.onResize),this.resizeObserver.observe(p))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var h=this.props.children,p=Object(o.a)(h);if(p.length>1)Object(r.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(p.length===0)return Object(r.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var g=p[0];if(m.isValidElement(g)&&Object(a.c)(g)){var A=g.ref;p[0]=m.cloneElement(g,{ref:Object(a.a)(A,this.setChildNode)})}return p.length===1?p[0]:p.map(function(y,E){return!m.isValidElement(y)||"key"in y&&y.key!==null?y:m.cloneElement(y,{key:"".concat(e,"-").concat(E)})})}}]),l}(m.Component);s.displayName="ResizeObserver",P.a=s},t3Fx:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=Object.assign||function(i){for(var l=1;l<arguments.length;l++){var u=arguments[l];for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(i[h]=u[h])}return i},x=function(){function i(l,u){for(var h=0;h<u.length;h++){var p=u[h];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(l,p.key,p)}}return function(l,u,h){return u&&i(l.prototype,u),h&&i(l,h),l}}(),T=d("q1tI"),v=a(T),S=d("17x9"),m=a(S),f=d("tkwv"),c=a(f),o=d("u3os"),r=d("kzFp");function a(i){return i&&i.__esModule?i:{default:i}}function n(i,l){if(!(i instanceof l))throw new TypeError("Cannot call a class as a function")}function e(i,l){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:i}function s(i,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);i.prototype=Object.create(l&&l.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(i,l):i.__proto__=l)}var t=function(i){s(l,i);function l(u){n(this,l);var h=e(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,u));return h.getEchartsInstance=function(){return h.echartsLib.getInstanceByDom(h.echartsElement)||h.echartsLib.init(h.echartsElement,h.props.theme,h.props.opts)},h.dispose=function(){if(h.echartsElement){try{(0,o.clear)(h.echartsElement)}catch(p){console.warn(p)}h.echartsLib.dispose(h.echartsElement)}},h.rerender=function(){var p=h.props,g=p.onEvents,A=p.onChartReady,y=h.renderEchartDom();h.bindEvents(y,g||{}),typeof A=="function"&&h.props.onChartReady(y),h.echartsElement&&(0,o.bind)(h.echartsElement,function(){try{y.resize()}catch(E){console.warn(E)}})},h.bindEvents=function(p,g){var A=function(C,w){typeof C=="string"&&typeof w=="function"&&p.on(C,function(b){w(b,p)})};for(var y in g)Object.prototype.hasOwnProperty.call(g,y)&&A(y,g[y])},h.renderEchartDom=function(){var p=h.getEchartsInstance();return p.setOption(h.props.option,h.props.notMerge||!1,h.props.lazyUpdate||!1),h.props.showLoading?p.showLoading(h.props.loadingOption||null):p.hideLoading(),p},h.echartsLib=u.echarts,h.echartsElement=null,h}return x(l,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(h){if(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(h,this.props))return;if(!(0,c.default)(h.theme,this.props.theme)||!(0,c.default)(h.opts,this.props.opts)||!(0,c.default)(h.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var p=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if((0,c.default)((0,r.pick)(this.props,p),(0,r.pick)(h,p)))return;var g=this.renderEchartDom();if(!(0,c.default)(h.style,this.props.style)||!(0,c.default)(h.className,this.props.className))try{g.resize()}catch(A){console.warn(A)}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var h=this,p=this.props,g=p.style,A=p.className,y=O({height:300},g);return v.default.createElement("div",{ref:function(C){h.echartsElement=C},style:y,className:"echarts-for-react "+A})}}]),l}(T.Component);P.default=t,t.propTypes={option:m.default.object.isRequired,echarts:m.default.object,notMerge:m.default.bool,lazyUpdate:m.default.bool,style:m.default.object,className:m.default.string,theme:m.default.oneOfType([m.default.string,m.default.object]),onChartReady:m.default.func,showLoading:m.default.bool,loadingOption:m.default.object,onEvents:m.default.object,opts:m.default.shape({devicePixelRatio:m.default.number,renderer:m.default.oneOf(["canvas","svg"]),width:m.default.oneOfType([m.default.number,m.default.oneOf([null,void 0,"auto"])]),height:m.default.oneOfType([m.default.number,m.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:m.default.func},t.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},tBnm:function(U,P,d){var O=d("bYtY"),x=d("IwbS"),T=d("Qxkt"),v=d("Znkb"),S=d("+rIm"),m=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function f(a,n,e){n[1]>n[0]&&(n=n.slice().reverse());var s=a.coordToPoint([n[0],e]),t=a.coordToPoint([n[1],e]);return{x1:s[0],y1:s[1],x2:t[0],y2:t[1]}}function c(a){var n=a.getRadiusAxis();return n.inverse?0:1}function o(a){var n=a[0],e=a[a.length-1];n&&e&&Math.abs(Math.abs(n.coord-e.coord)-360)<1e-4&&a.pop()}var r=v.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(a,n){if(this.group.removeAll(),!a.get("show"))return;var e=a.axis,s=e.polar,t=s.getRadiusAxis().getExtent(),i=e.getTicksCoords(),l=e.getMinorTicksCoords(),u=O.map(e.getViewLabels(),function(h){var h=O.clone(h);return h.coord=e.dataToCoord(h.tickValue),h});o(u),o(i),O.each(m,function(h){a.get(h+".show")&&(!e.scale.isBlank()||h==="axisLine")&&this["_"+h](a,s,i,l,t,u)},this)},_axisLine:function(a,n,e,s,t){var i=a.getModel("axisLine.lineStyle"),l=c(n),u=l?0:1,h;t[u]===0?h=new x.Circle({shape:{cx:n.cx,cy:n.cy,r:t[l]},style:i.getLineStyle(),z2:1,silent:!0}):h=new x.Ring({shape:{cx:n.cx,cy:n.cy,r:t[l],r0:t[u]},style:i.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,this.group.add(h)},_axisTick:function(a,n,e,s,t){var i=a.getModel("axisTick"),l=(i.get("inside")?-1:1)*i.get("length"),u=t[c(n)],h=O.map(e,function(p){return new x.Line({shape:f(n,[u,u+l],p.coord)})});this.group.add(x.mergePath(h,{style:O.defaults(i.getModel("lineStyle").getLineStyle(),{stroke:a.get("axisLine.lineStyle.color")})}))},_minorTick:function(a,n,e,s,t){if(!s.length)return;for(var i=a.getModel("axisTick"),l=a.getModel("minorTick"),u=(i.get("inside")?-1:1)*l.get("length"),h=t[c(n)],p=[],g=0;g<s.length;g++)for(var A=0;A<s[g].length;A++)p.push(new x.Line({shape:f(n,[h,h+u],s[g][A].coord)}));this.group.add(x.mergePath(p,{style:O.defaults(l.getModel("lineStyle").getLineStyle(),O.defaults(i.getLineStyle(),{stroke:a.get("axisLine.lineStyle.color")}))}))},_axisLabel:function(a,n,e,s,t,i){var l=a.getCategories(!0),u=a.getModel("axisLabel"),h=u.get("margin"),p=a.get("triggerEvent");O.each(i,function(g,A){var y=u,E=g.tickValue,C=t[c(n)],w=n.coordToPoint([C+h,g.coord]),b=n.cx,I=n.cy,_=Math.abs(w[0]-b)/C<.3?"center":w[0]>b?"left":"right",L=Math.abs(w[1]-I)/C<.3?"middle":w[1]>I?"top":"bottom";l&&l[E]&&l[E].textStyle&&(y=new T(l[E].textStyle,u,u.ecModel));var D=new x.Text({silent:S.isLabelSilent(a)});this.group.add(D),x.setTextStyle(D.style,y,{x:w[0],y:w[1],textFill:y.getTextColor()||a.get("axisLine.lineStyle.color"),text:g.formattedLabel,textAlign:_,textVerticalAlign:L}),p&&(D.eventData=S.makeAxisEventDataBase(a),D.eventData.targetType="axisLabel",D.eventData.value=g.rawLabel)},this)},_splitLine:function(a,n,e,s,t){var i=a.getModel("splitLine"),l=i.getModel("lineStyle"),u=l.get("color"),h=0;u=u instanceof Array?u:[u];for(var p=[],g=0;g<e.length;g++){var A=h++%u.length;p[A]=p[A]||[],p[A].push(new x.Line({shape:f(n,t,e[g].coord)}))}for(var g=0;g<p.length;g++)this.group.add(x.mergePath(p[g],{style:O.defaults({stroke:u[g%u.length]},l.getLineStyle()),silent:!0,z:a.get("z")}))},_minorSplitLine:function(a,n,e,s,t){if(!s.length)return;for(var i=a.getModel("minorSplitLine"),l=i.getModel("lineStyle"),u=[],h=0;h<s.length;h++)for(var p=0;p<s[h].length;p++)u.push(new x.Line({shape:f(n,t,s[h][p].coord)}));this.group.add(x.mergePath(u,{style:l.getLineStyle(),silent:!0,z:a.get("z")}))},_splitArea:function(a,n,e,s,t){if(!e.length)return;var i=a.getModel("splitArea"),l=i.getModel("areaStyle"),u=l.get("color"),h=0;u=u instanceof Array?u:[u];for(var p=[],g=Math.PI/180,A=-e[0].coord*g,y=Math.min(t[0],t[1]),E=Math.max(t[0],t[1]),C=a.get("clockwise"),w=1;w<e.length;w++){var b=h++%u.length;p[b]=p[b]||[],p[b].push(new x.Sector({shape:{cx:n.cx,cy:n.cy,r0:y,r:E,startAngle:A,endAngle:-e[w].coord*g,clockwise:C},silent:!0})),A=-e[w].coord*g}for(var w=0;w<p.length;w++)this.group.add(x.mergePath(p[w],{style:O.defaults({fill:u[w%u.length]},l.getAreaStyle()),silent:!0}))}});U.exports=r},tSko:function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("SRve")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="PlusOutlined";var c=v.forwardRef(f);P.default=c},tceW:function(U,P,d){var O=d("KCsZ"),x=O([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),T={getBarItemStyle:function(v){var S=x(this,v);if(this.getBorderLineDash){var m=this.getBorderLineDash();m&&(S.lineDash=m)}return S}};U.exports=T},tkwv:function(U,P,d){"use strict";var O=Array.isArray,x=Object.keys,T=Object.prototype.hasOwnProperty;U.exports=function v(S,m){if(S===m)return!0;if(S&&m&&typeof S=="object"&&typeof m=="object"){var f=O(S),c=O(m),o,r,a;if(f&&c){if(r=S.length,r!=m.length)return!1;for(o=r;o--!==0;)if(!v(S[o],m[o]))return!1;return!0}if(f!=c)return!1;var n=S instanceof Date,e=m instanceof Date;if(n!=e)return!1;if(n&&e)return S.getTime()==m.getTime();var s=S instanceof RegExp,t=m instanceof RegExp;if(s!=t)return!1;if(s&&t)return S.toString()==m.toString();var i=x(S);if(r=i.length,r!==x(m).length)return!1;for(o=r;o--!==0;)if(!T.call(m,i[o]))return!1;for(o=r;o--!==0;)if(a=i[o],!v(S[a],m[a]))return!1;return!0}return S!==S&&m!==m}},txkQ:function(U,P,d){var O=d("aX58");P.zrender=O;var x=d("Fofx");P.matrix=x;var T=d("QBsz");P.vector=T;var v=d("bYtY"),S=d("Qe9p");P.color=S;var m=d("IwbS"),f=d("OELB");P.number=f;var c=d("7aKB");P.format=c;var o=d("iLNv"),r=o.throttle;P.throttle=o.throttle;var a=d("FUi9");P.helper=a;var n=d("vafp");P.parseGeoJSON=n;var e=d("YXkt");P.List=e;var s=d("Qxkt");P.Model=s;var t=d("hM6l");P.Axis=t;var i=d("ItGF");P.env=i;var l=n,u={};v.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(p){u[p]=v[p]});var h={};v.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(p){h[p]=m[p]}),P.parseGeoJson=l,P.util=u,P.graphic=h},u3DP:function(U,P,d){var O=d("6GrX"),x=d("OELB"),T=x.parsePercent,v=Math.PI/180;function S(o,r,a,n,e,s,t,i,l,u){o.sort(function(_,L){return _.y-L.y});function h(_,L,D,N){for(var R=_;R<L&&!(o[R].y+D>l+t);R++)if(o[R].y+=D,R>_&&R+1<L&&o[R+1].y>o[R].y+o[R].height){p(R,D/2);return}p(L-1,D/2)}function p(_,L){for(var D=_;D>=0&&!(o[D].y-L<l);D--)if(o[D].y-=L,D>0&&o[D].y>o[D-1].y+o[D-1].height)break}function g(_,L,D,N,R,B){for(var M=(B>0,L?Number.MAX_VALUE:0),H=0,F=_.length;H<F;H++){if(_[H].labelAlignTo!=="none")continue;var K=Math.abs(_[H].y-N),j=_[H].len,V=_[H].len2,z=K<R+j?Math.sqrt((R+j+V)*(R+j+V)-K*K):Math.abs(_[H].x-D);L&&z>=M&&(z=M-10),!L&&z<=M&&(z=M+10),_[H].x=D+z*B,M=z}}for(var A=0,y,E=o.length,C=[],w=[],b=0;b<E;b++){if(o[b].position==="outer"&&o[b].labelAlignTo==="labelLine"){var I=o[b].x-u;o[b].linePoints[1][0]+=I,o[b].x=u}y=o[b].y-A,y<0&&h(b,E,-y,e),A=o[b].y+o[b].height}t-A<0&&p(E-1,A-t);for(var b=0;b<E;b++)o[b].y>=a?w.push(o[b]):C.push(o[b]);g(C,!1,r,a,n,e),g(w,!0,r,a,n,e)}function m(o,r,a,n,e,s,t,i){for(var l=[],u=[],h=Number.MAX_VALUE,p=-Number.MAX_VALUE,g=0;g<o.length;g++){if(f(o[g]))continue;o[g].x<r?(h=Math.min(h,o[g].x),l.push(o[g])):(p=Math.max(p,o[g].x),u.push(o[g]))}S(u,r,a,n,1,e,s,t,i,p),S(l,r,a,n,-1,e,s,t,i,h);for(var g=0;g<o.length;g++){var A=o[g];if(f(A))continue;var y=A.linePoints;if(y){var E=A.labelAlignTo==="edge",C=A.textRect.width,w;E?A.x<r?w=y[2][0]-A.labelDistance-t-A.labelMargin:w=t+e-A.labelMargin-y[2][0]-A.labelDistance:A.x<r?w=A.x-t-A.bleedMargin:w=t+e-A.x-A.bleedMargin,w<A.textRect.width&&(A.text=O.truncateText(A.text,w,A.font),A.labelAlignTo==="edge"&&(C=O.getWidth(A.text,A.font)));var b=y[1][0]-y[2][0];E?A.x<r?y[2][0]=t+A.labelMargin+C+A.labelDistance:y[2][0]=t+e-A.labelMargin-C-A.labelDistance:(A.x<r?y[2][0]=A.x+A.labelDistance:y[2][0]=A.x-A.labelDistance,y[1][0]=y[2][0]+b),y[1][1]=y[2][1]=A.y}}}function f(o){return o.position==="center"}function c(o,r,a,n,e,s){var t=o.getData(),i=[],l,u,h=!1,p=(o.get("minShowLabelAngle")||0)*v;t.each(function(g){var A=t.getItemLayout(g),y=t.getItemModel(g),E=y.getModel("label"),C=E.get("position")||y.get("emphasis.label.position"),w=E.get("distanceToLabelLine"),b=E.get("alignTo"),I=T(E.get("margin"),a),_=E.get("bleedMargin"),L=E.getFont(),D=y.getModel("labelLine"),N=D.get("length");N=T(N,a);var R=D.get("length2");if(R=T(R,a),A.angle<p)return;var B=(A.startAngle+A.endAngle)/2,M=Math.cos(B),H=Math.sin(B),F,K,j,V;l=A.cx,u=A.cy;var z=o.getFormattedLabel(g,"normal")||t.getName(g),Y=O.getBoundingRect(z,L,V,"top"),ee=C==="inside"||C==="inner";if(C==="center")F=A.cx,K=A.cy,V="center";else{var fe=(ee?(A.r+A.r0)/2*M:A.r*M)+l,ie=(ee?(A.r+A.r0)/2*H:A.r*H)+u;if(F=fe+M*3,K=ie+H*3,!ee){var we=fe+M*(N+r-A.r),Ce=ie+H*(N+r-A.r),Le=we+(M<0?-1:1)*R,He=Ce;b==="edge"?F=M<0?e+I:e+a-I:F=Le+(M<0?-w:w),K=He,j=[[fe,ie],[we,Ce],[Le,He]]}V=ee?"center":b==="edge"?M>0?"right":"left":M>0?"left":"right"}var ce,Pe=E.get("rotate");typeof Pe=="number"?ce=Pe*(Math.PI/180):ce=Pe?M<0?-B+Math.PI:-B:0,h=!!ce,A.label={x:F,y:K,position:C,height:Y.height,len:N,len2:R,linePoints:j,textAlign:V,verticalAlign:"middle",rotation:ce,inside:ee,labelDistance:w,labelAlignTo:b,labelMargin:I,bleedMargin:_,textRect:Y,text:z,font:L},ee||i.push(A.label)}),!h&&o.get("avoidLabelOverlap")&&m(i,l,u,r,a,n,e,s)}U.exports=c},u3os:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.ver=P.clear=P.bind=void 0;var O=d("P4Qj"),x=function(m,f){var c=(0,O.getSensor)(m);return c.bind(f),function(){c.unbind(f)}};P.bind=x;var T=function(m){var f=(0,O.getSensor)(m);(0,O.removeSensor)(f)};P.clear=T;var v="1.0.1";P.ver=v},u4NN:function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("Uc92")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="EyeOutlined";var c=v.forwardRef(f);P.default=c},u9fO:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("b80e"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},uAnK:function(U,P,d){var O=d("bYtY"),x=d("Kagy"),T=d("KxfA"),v=T.retrieveRawValue;function S(m,f){var c=f.getModel("aria");if(c.get("show")){if(c.get("description")){m.setAttribute("aria-label",c.get("description"));return}}else return;var o=0;f.eachSeries(function(g,A){++o},this);var r=c.get("data.maxCount")||10,a=c.get("series.maxCount")||10,n=Math.min(o,a),e;if(o<1)return;var s=h();s?e=l(u("general.withTitle"),{title:s}):e=u("general.withoutTitle");var t=[],i=o>1?"series.multiple.prefix":"series.single.prefix";e+=l(u(i),{seriesCount:o}),f.eachSeries(function(g,A){if(A<n){var y,E=g.get("name"),C="series."+(o>1?"multiple":"single")+".";y=u(E?C+"withName":C+"withoutName"),y=l(y,{seriesId:g.seriesIndex,seriesName:g.get("name"),seriesType:p(g.subType)});var w=g.getData();window.data=w,w.count()>r?y+=l(u("data.partialData"),{displayCnt:r}):y+=u("data.allData");for(var b=[],I=0;I<w.count();I++)if(I<r){var _=w.getName(I),L=v(w,I);b.push(l(u(_?"data.withName":"data.withoutName"),{name:_,value:L}))}y+=b.join(u("data.separator.middle"))+u("data.separator.end"),t.push(y)}}),e+=t.join(u("series.multiple.separator.middle"))+u("series.multiple.separator.end"),m.setAttribute("aria-label",e);function l(g,A){if(typeof g!="string")return g;var y=g;return O.each(A,function(E,C){y=y.replace(new RegExp("\\{\\s*"+C+"\\s*\\}","g"),E)}),y}function u(g){var A=c.get(g);if(A==null){for(var y=g.split("."),E=x.aria,C=0;C<y.length;++C)E=E[y[C]];return E}else return A}function h(){var g=f.getModel("title").option;return g&&g.length&&(g=g[0]),g&&g.text}function p(g){return x.series.typeNames[g]||"\u81EA\u5B9A\u4E49\u56FE"}}U.exports=S},uGsb:function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("MlIO"),d("1uat"))})(this,function(O){return function(){var x=O,T=x.x64,v=T.Word,S=T.WordArray,m=x.algo,f=m.SHA512,c=m.SHA384=f.extend({_doReset:function(){this._hash=new S.init([new v.init(3418070365,3238371032),new v.init(1654270250,914150663),new v.init(2438529370,812702999),new v.init(355462360,4144912697),new v.init(1731405415,4290775857),new v.init(2394180231,1750603025),new v.init(3675008525,1694076839),new v.init(1203062813,3204075428)])},_doFinalize:function(){var r=f._doFinalize.call(this);return r.sigBytes-=16,r}});x.SHA384=f._createHelper(c),x.HmacSHA384=f._createHmacHelper(c)}(),O.SHA384})},uGxW:function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.NoPadding={pad:function(){},unpad:function(){}},O.pad.NoPadding})},uK0f:function(U,P,d){(function(O,x){U.exports=x()})(this,function(){"use strict";function O(x,T,v){v=v||{},v.childrenKeyName=v.childrenKeyName||"children";var S=x||[],m=[],f=0;do{var c=S.filter(function(o){return T(o,f)})[0];if(!c)break;m.push(c),S=c[v.childrenKeyName]||[],f+=1}while(S.length>0);return m}return O})},uOyE:function(U,P,d){var O=d("ProS");O.registerAction({type:"brush",event:"brush"},function(x,T){T.eachComponent({mainType:"brush",query:x},function(v){v.setAreas(x.areas)})}),O.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),O.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){})},uQRt:function(U,P,d){U.exports=O;function O(){return d("gaXo"),{}}},uciX:function(U,P,d){"use strict";var O=d("VTBJ"),x=d("wx14"),T=d("1OyB"),v=d("vuIU"),S=d("JX7q"),m=d("Ji7U"),f=d("LK+K"),c=d("q1tI"),o=d("i8i4"),r=d.n(o),a=d("wgJM"),n=d("l4aY"),e=d("m+aA"),s=d("c+Xe"),t=d("zT1h"),i=d("QC+M"),l=d("TSYQ"),u=d.n(l);function h(ce,Pe,Q){return Q?ce[0]===Pe[0]:ce[0]===Pe[0]&&ce[1]===Pe[1]}function p(ce,Pe,Q){var me=ce[Pe]||{};return Object(O.a)(Object(O.a)({},me),Q)}function g(ce,Pe,Q,me){for(var Je=Q.points,re=Object.keys(ce),G=0;G<re.length;G+=1){var X=re[G];if(h(ce[X].points,Je,me))return"".concat(Pe,"-placement-").concat(X)}return""}var A=d("ODXe"),y=d("Ff2n"),E=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var ce=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(ce)||/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(ce==null?void 0:ce.substr(0,4)))},C=d("8XRh");function w(ce){var Pe=ce.prefixCls,Q=ce.motion,me=ce.animation,Je=ce.transitionName;return Q||(me?{motionName:"".concat(Pe,"-").concat(me)}:Je?{motionName:Je}:null)}function b(ce){var Pe=ce.prefixCls,Q=ce.visible,me=ce.zIndex,Je=ce.mask,re=ce.maskMotion,G=ce.maskAnimation,X=ce.maskTransitionName;if(!Je)return null;var J={};return(re||X||G)&&(J=Object(O.a)({motionAppear:!0},w({motion:re,prefixCls:Pe,transitionName:X,animation:G}))),c.createElement(C.b,Object(x.a)({},J,{visible:Q,removeOnLeave:!0}),function(Ae){var he=Ae.className;return c.createElement("div",{style:{zIndex:me},className:u()("".concat(Pe,"-mask"),he)})})}var I=d("9mu1"),_=d("o0o1"),L=d.n(_),D=d("HaE+"),N=["measure","align",null,"motion"],R=function(ce,Pe){var Q=Object(c.useState)(null),me=Object(A.a)(Q,2),Je=me[0],re=me[1],G=Object(c.useRef)(),X=Object(c.useRef)(!1);function J(Me){X.current||re(Me)}function Ae(){a.a.cancel(G.current)}function he(Me){Ae(),G.current=Object(a.a)(function(){J(function(Ie){switch(Je){case"align":return"motion";case"motion":return"stable";default:}return Ie}),Me==null||Me()})}return Object(c.useEffect)(function(){J("measure")},[ce]),Object(c.useEffect)(function(){switch(Je){case"measure":Pe();break;default:}Je&&(G.current=Object(a.a)(Object(D.a)(L.a.mark(function Me(){var Ie,oe;return L.a.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:Ie=N.indexOf(Je),oe=N[Ie+1],oe&&Ie!==-1&&J(oe);case 3:case"end":return Oe.stop()}},Me)}))))},[Je]),Object(c.useEffect)(function(){return function(){X.current=!0,Ae()}},[]),[Je,he]},B=function(ce){var Pe=c.useState({width:0,height:0}),Q=Object(A.a)(Pe,2),me=Q[0],Je=Q[1];function re(X){Je({width:X.offsetWidth,height:X.offsetHeight})}var G=c.useMemo(function(){var X={};if(ce){var J=me.width,Ae=me.height;ce.indexOf("height")!==-1&&Ae?X.height=Ae:ce.indexOf("minHeight")!==-1&&Ae&&(X.minHeight=Ae),ce.indexOf("width")!==-1&&J?X.width=J:ce.indexOf("minWidth")!==-1&&J&&(X.minWidth=J)}return X},[ce,me]);return[G,re]},M=c.forwardRef(function(ce,Pe){var Q=ce.visible,me=ce.prefixCls,Je=ce.className,re=ce.style,G=ce.children,X=ce.zIndex,J=ce.stretch,Ae=ce.destroyPopupOnHide,he=ce.forceRender,Me=ce.align,Ie=ce.point,oe=ce.getRootDomNode,pe=ce.getClassNameFromAlign,Oe=ce.onAlign,Ye=ce.onMouseEnter,it=ce.onMouseLeave,et=ce.onMouseDown,Te=ce.onTouchStart,tt=Object(c.useRef)(),ze=Object(c.useRef)(),dt=Object(c.useState)(),Ot=Object(A.a)(dt,2),Tt=Ot[0],Ct=Ot[1],Nt=B(J),Be=Object(A.a)(Nt,2),$=Be[0],Z=Be[1];function Re(){J&&Z(oe())}var De=R(Q,Re),ae=Object(A.a)(De,2),gt=ae[0],jt=ae[1],ut=Object(c.useRef)();function rr(){return Ie||oe}function pr(){var Ur;(Ur=tt.current)===null||Ur===void 0||Ur.forceAlign()}function nn(Ur,yn){var Dn=pe(yn);Tt!==Dn&&Ct(Dn),gt==="align"&&(Tt!==Dn?Promise.resolve().then(function(){pr()}):jt(function(){var Un;(Un=ut.current)===null||Un===void 0||Un.call(ut)}),Oe==null||Oe(Ur,yn))}var mr=Object(O.a)({},w(ce));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Ur){var yn=mr[Ur];mr[Ur]=function(Dn,Un){return jt(),yn==null?void 0:yn(Dn,Un)}});function vr(){return new Promise(function(Ur){ut.current=Ur})}c.useEffect(function(){!mr.motionName&>==="motion"&&jt()},[mr.motionName,gt]),c.useImperativeHandle(Pe,function(){return{forceAlign:pr,getElement:function(){return ze.current}}});var $t=Object(O.a)(Object(O.a)({},$),{},{zIndex:X,opacity:gt==="motion"||gt==="stable"||!Q?void 0:0,pointerEvents:gt==="stable"?void 0:"none"},re),Xt=!0;(Me==null?void 0:Me.points)&&(gt==="align"||gt==="stable")&&(Xt=!1);var ft=G;return c.Children.count(G)>1&&(ft=c.createElement("div",{className:"".concat(me,"-content")},G)),c.createElement(C.b,Object(x.a)({visible:Q,ref:ze,leavedClassName:"".concat(me,"-hidden")},mr,{onAppearPrepare:vr,onEnterPrepare:vr,removeOnLeave:Ae,forceRender:he}),function(Ur,yn){var Dn=Ur.className,Un=Ur.style,wi=u()(me,Je,Tt,Dn);return c.createElement(I.a,{target:rr(),key:"popup",ref:tt,monitorWindowResize:!0,disabled:Xt,align:Me,onAlign:nn},c.createElement("div",{ref:yn,className:wi,onMouseEnter:Ye,onMouseLeave:it,onMouseDownCapture:et,onTouchStartCapture:Te,style:Object(O.a)(Object(O.a)({},Un),$t)},ft))})});M.displayName="PopupInner";var H=M,F=c.forwardRef(function(ce,Pe){var Q=ce.prefixCls,me=ce.visible,Je=ce.zIndex,re=ce.children,G=ce.mobile;G=G===void 0?{}:G;var X=G.popupClassName,J=G.popupStyle,Ae=G.popupMotion,he=Ae===void 0?{}:Ae,Me=G.popupRender,Ie=c.useRef();c.useImperativeHandle(Pe,function(){return{forceAlign:function(){},getElement:function(){return Ie.current}}});var oe=Object(O.a)({zIndex:Je},J),pe=re;return c.Children.count(re)>1&&(pe=c.createElement("div",{className:"".concat(Q,"-content")},re)),Me&&(pe=Me(pe)),c.createElement(C.b,Object(x.a)({visible:me,ref:Ie,removeOnLeave:!0},he),function(Oe,Ye){var it=Oe.className,et=Oe.style,Te=u()(Q,X,it);return c.createElement("div",{ref:Ye,className:Te,style:Object(O.a)(Object(O.a)({},et),oe)},pe)})});F.displayName="MobilePopupInner";var K=F,j=["visible","mobile"],V=c.forwardRef(function(ce,Pe){var Q=ce.visible,me=ce.mobile,Je=Object(y.a)(ce,j),re=Object(c.useState)(Q),G=Object(A.a)(re,2),X=G[0],J=G[1],Ae=Object(c.useState)(!1),he=Object(A.a)(Ae,2),Me=he[0],Ie=he[1],oe=Object(O.a)(Object(O.a)({},Je),{},{visible:X});Object(c.useEffect)(function(){J(Q),Q&&me&&Ie(E())},[Q,me]);var pe=Me?c.createElement(K,Object(x.a)({},oe,{mobile:me,ref:Pe})):c.createElement(H,Object(x.a)({},oe,{ref:Pe}));return c.createElement("div",null,c.createElement(b,oe),pe)});V.displayName="Popup";var z=V,Y=c.createContext(null),ee=Y;function fe(){}function ie(){return""}function we(ce){return ce?ce.ownerDocument:window.document}var Ce=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Le(ce){var Pe=function(Q){Object(m.a)(Je,Q);var me=Object(f.a)(Je);function Je(re){var G;Object(T.a)(this,Je),G=me.call(this,re),G.popupRef=c.createRef(),G.triggerRef=c.createRef(),G.attachId=void 0,G.clickOutsideHandler=void 0,G.touchOutsideHandler=void 0,G.contextMenuOutsideHandler1=void 0,G.contextMenuOutsideHandler2=void 0,G.mouseDownTimeout=void 0,G.focusTime=void 0,G.preClickTime=void 0,G.preTouchTime=void 0,G.delayTimer=void 0,G.hasPopupMouseDown=void 0,G.onMouseEnter=function(J){var Ae=G.props.mouseEnterDelay;G.fireEvents("onMouseEnter",J),G.delaySetPopupVisible(!0,Ae,Ae?null:J)},G.onMouseMove=function(J){G.fireEvents("onMouseMove",J),G.setPoint(J)},G.onMouseLeave=function(J){G.fireEvents("onMouseLeave",J),G.delaySetPopupVisible(!1,G.props.mouseLeaveDelay)},G.onPopupMouseEnter=function(){G.clearDelayTimer()},G.onPopupMouseLeave=function(J){var Ae;if(J.relatedTarget&&!J.relatedTarget.setTimeout&&Object(n.a)((Ae=G.popupRef.current)===null||Ae===void 0?void 0:Ae.getElement(),J.relatedTarget))return;G.delaySetPopupVisible(!1,G.props.mouseLeaveDelay)},G.onFocus=function(J){G.fireEvents("onFocus",J),G.clearDelayTimer(),G.isFocusToShow()&&(G.focusTime=Date.now(),G.delaySetPopupVisible(!0,G.props.focusDelay))},G.onMouseDown=function(J){G.fireEvents("onMouseDown",J),G.preClickTime=Date.now()},G.onTouchStart=function(J){G.fireEvents("onTouchStart",J),G.preTouchTime=Date.now()},G.onBlur=function(J){G.fireEvents("onBlur",J),G.clearDelayTimer(),G.isBlurToHide()&&G.delaySetPopupVisible(!1,G.props.blurDelay)},G.onContextMenu=function(J){J.preventDefault(),G.fireEvents("onContextMenu",J),G.setPopupVisible(!0,J)},G.onContextMenuClose=function(){G.isContextMenuToShow()&&G.close()},G.onClick=function(J){if(G.fireEvents("onClick",J),G.focusTime){var Ae;if(G.preClickTime&&G.preTouchTime?Ae=Math.min(G.preClickTime,G.preTouchTime):G.preClickTime?Ae=G.preClickTime:G.preTouchTime&&(Ae=G.preTouchTime),Math.abs(Ae-G.focusTime)<20)return;G.focusTime=0}G.preClickTime=0,G.preTouchTime=0,G.isClickToShow()&&(G.isClickToHide()||G.isBlurToHide())&&J&&J.preventDefault&&J.preventDefault();var he=!G.state.popupVisible;(G.isClickToHide()&&!he||he&&G.isClickToShow())&&G.setPopupVisible(!G.state.popupVisible,J)},G.onPopupMouseDown=function(){if(G.hasPopupMouseDown=!0,clearTimeout(G.mouseDownTimeout),G.mouseDownTimeout=window.setTimeout(function(){G.hasPopupMouseDown=!1},0),G.context){var J;(J=G.context).onPopupMouseDown.apply(J,arguments)}},G.onDocumentClick=function(J){if(G.props.mask&&!G.props.maskClosable)return;var Ae=J.target,he=G.getRootDomNode(),Me=G.getPopupDomNode();(!Object(n.a)(he,Ae)||G.isContextMenuOnly())&&!Object(n.a)(Me,Ae)&&!G.hasPopupMouseDown&&G.close()},G.getRootDomNode=function(){var J=G.props.getTriggerDOMNode;if(J)return J(G.triggerRef.current);try{var Ae=Object(e.a)(G.triggerRef.current);if(Ae)return Ae}catch(he){}return r.a.findDOMNode(Object(S.a)(G))},G.getPopupClassNameFromAlign=function(J){var Ae=[],he=G.props,Me=he.popupPlacement,Ie=he.builtinPlacements,oe=he.prefixCls,pe=he.alignPoint,Oe=he.getPopupClassNameFromAlign;return Me&&Ie&&Ae.push(g(Ie,oe,J,pe)),Oe&&Ae.push(Oe(J)),Ae.join(" ")},G.getComponent=function(){var J=G.props,Ae=J.prefixCls,he=J.destroyPopupOnHide,Me=J.popupClassName,Ie=J.onPopupAlign,oe=J.popupMotion,pe=J.popupAnimation,Oe=J.popupTransitionName,Ye=J.popupStyle,it=J.mask,et=J.maskAnimation,Te=J.maskTransitionName,tt=J.maskMotion,ze=J.zIndex,dt=J.popup,Ot=J.stretch,Tt=J.alignPoint,Ct=J.mobile,Nt=J.forceRender,Be=G.state,$=Be.popupVisible,Z=Be.point,Re=G.getPopupAlign(),De={};return G.isMouseEnterToShow()&&(De.onMouseEnter=G.onPopupMouseEnter),G.isMouseLeaveToHide()&&(De.onMouseLeave=G.onPopupMouseLeave),De.onMouseDown=G.onPopupMouseDown,De.onTouchStart=G.onPopupMouseDown,c.createElement(z,Object(x.a)({prefixCls:Ae,destroyPopupOnHide:he,visible:$,point:Tt&&Z,className:Me,align:Re,onAlign:Ie,animation:pe,getClassNameFromAlign:G.getPopupClassNameFromAlign},De,{stretch:Ot,getRootDomNode:G.getRootDomNode,style:Ye,mask:it,zIndex:ze,transitionName:Oe,maskAnimation:et,maskTransitionName:Te,maskMotion:tt,ref:G.popupRef,motion:oe,mobile:Ct,forceRender:Nt}),typeof dt=="function"?dt():dt)},G.attachParent=function(J){a.a.cancel(G.attachId);var Ae=G.props,he=Ae.getPopupContainer,Me=Ae.getDocument,Ie=G.getRootDomNode(),oe;he?(Ie||he.length===0)&&(oe=he(Ie)):oe=Me(G.getRootDomNode()).body,oe?oe.appendChild(J):G.attachId=Object(a.a)(function(){G.attachParent(J)})},G.getContainer=function(){var J=G.props.getDocument,Ae=J(G.getRootDomNode()).createElement("div");return Ae.style.position="absolute",Ae.style.top="0",Ae.style.left="0",Ae.style.width="100%",G.attachParent(Ae),Ae},G.setPoint=function(J){var Ae=G.props.alignPoint;if(!Ae||!J)return;G.setState({point:{pageX:J.pageX,pageY:J.pageY}})},G.handlePortalUpdate=function(){G.state.prevPopupVisible!==G.state.popupVisible&&G.props.afterPopupVisibleChange(G.state.popupVisible)},G.triggerContextValue={onPopupMouseDown:G.onPopupMouseDown};var X;return"popupVisible"in re?X=!!re.popupVisible:X=!!re.defaultPopupVisible,G.state={prevPopupVisible:X,popupVisible:X},Ce.forEach(function(J){G["fire".concat(J)]=function(Ae){G.fireEvents(J,Ae)}}),G}return Object(v.a)(Je,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var G=this.props,X=this.state;if(X.popupVisible){var J;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(J=G.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(t.a)(J,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(J=J||G.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(t.a)(J,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(J=J||G.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(t.a)(J,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(t.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),a.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var G;return((G=this.popupRef.current)===null||G===void 0?void 0:G.getElement())||null}},{key:"getPopupAlign",value:function(){var G=this.props,X=G.popupPlacement,J=G.popupAlign,Ae=G.builtinPlacements;return X&&Ae?p(Ae,X,J):J}},{key:"setPopupVisible",value:function(G,X){var J=this.props.alignPoint,Ae=this.state.popupVisible;this.clearDelayTimer(),Ae!==G&&("popupVisible"in this.props||this.setState({popupVisible:G,prevPopupVisible:Ae}),this.props.onPopupVisibleChange(G)),J&&X&&G&&this.setPoint(X)}},{key:"delaySetPopupVisible",value:function(G,X,J){var Ae=this,he=X*1e3;if(this.clearDelayTimer(),he){var Me=J?{pageX:J.pageX,pageY:J.pageY}:null;this.delayTimer=window.setTimeout(function(){Ae.setPopupVisible(G,Me),Ae.clearDelayTimer()},he)}else this.setPopupVisible(G,J)}},{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(G){var X=this.props.children.props,J=this.props;return X[G]&&J[G]?this["fire".concat(G)]:X[G]||J[G]}},{key:"isClickToShow",value:function(){var G=this.props,X=G.action,J=G.showAction;return X.indexOf("click")!==-1||J.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var G=this.props.action;return G==="contextMenu"||G.length===1&&G[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var G=this.props,X=G.action,J=G.showAction;return X.indexOf("contextMenu")!==-1||J.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var G=this.props,X=G.action,J=G.hideAction;return X.indexOf("click")!==-1||J.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var G=this.props,X=G.action,J=G.showAction;return X.indexOf("hover")!==-1||J.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var G=this.props,X=G.action,J=G.hideAction;return X.indexOf("hover")!==-1||J.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var G=this.props,X=G.action,J=G.showAction;return X.indexOf("focus")!==-1||J.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var G=this.props,X=G.action,J=G.hideAction;return X.indexOf("focus")!==-1||J.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var G;(G=this.popupRef.current)===null||G===void 0||G.forceAlign()}}},{key:"fireEvents",value:function(G,X){var J=this.props.children.props[G];J&&J(X);var Ae=this.props[G];Ae&&Ae(X)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var G=this.state.popupVisible,X=this.props,J=X.children,Ae=X.forceRender,he=X.alignPoint,Me=X.className,Ie=X.autoDestroy,oe=c.Children.only(J),pe={key:"trigger"};this.isContextMenuToShow()?pe.onContextMenu=this.onContextMenu:pe.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(pe.onClick=this.onClick,pe.onMouseDown=this.onMouseDown,pe.onTouchStart=this.onTouchStart):(pe.onClick=this.createTwoChains("onClick"),pe.onMouseDown=this.createTwoChains("onMouseDown"),pe.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(pe.onMouseEnter=this.onMouseEnter,he&&(pe.onMouseMove=this.onMouseMove)):pe.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?pe.onMouseLeave=this.onMouseLeave:pe.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(pe.onFocus=this.onFocus,pe.onBlur=this.onBlur):(pe.onFocus=this.createTwoChains("onFocus"),pe.onBlur=this.createTwoChains("onBlur"));var Oe=u()(oe&&oe.props&&oe.props.className,Me);Oe&&(pe.className=Oe);var Ye=Object(O.a)({},pe);Object(s.c)(oe)&&(Ye.ref=Object(s.a)(this.triggerRef,oe.ref));var it=c.cloneElement(oe,Ye),et;return(G||this.popupRef.current||Ae)&&(et=c.createElement(ce,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!G&&Ie&&(et=null),c.createElement(ee.Provider,{value:this.triggerContextValue},it,et)}}],[{key:"getDerivedStateFromProps",value:function(G,X){var J=G.popupVisible,Ae={};return J!==void 0&&X.popupVisible!==J&&(Ae.popupVisible=J,Ae.prevPopupVisible=X.popupVisible),Ae}}]),Je}(c.Component);return Pe.contextType=ee,Pe.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:ie,getDocument:we,onPopupVisibleChange:fe,afterPopupVisibleChange:fe,onPopupAlign:fe,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Pe}var He=P.a=Le(i.a)},ugBc:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};P.default=O},ulZh:function(U,P,d){typeof window!="undefined"&&function(x,T){U.exports=T()}(this,function(){return function(O){var x={};function T(v){if(x[v])return x[v].exports;var S=x[v]={i:v,l:!1,exports:{}};return O[v].call(S.exports,S,S.exports,T),S.l=!0,S.exports}return T.m=O,T.c=x,T.d=function(v,S,m){T.o(v,S)||Object.defineProperty(v,S,{enumerable:!0,get:m})},T.r=function(v){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},T.t=function(v,S){if(S&1&&(v=T(v)),S&8)return v;if(S&4&&typeof v=="object"&&v&&v.__esModule)return v;var m=Object.create(null);if(T.r(m),Object.defineProperty(m,"default",{enumerable:!0,value:v}),S&2&&typeof v!="string")for(var f in v)T.d(m,f,function(c){return v[c]}.bind(null,f));return m},T.n=function(v){var S=v&&v.__esModule?function(){return v.default}:function(){return v};return T.d(S,"a",S),S},T.o=function(v,S){return Object.prototype.hasOwnProperty.call(v,S)},T.p="/dist/",T(T.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(x,T,v){"use strict";var S=Object.prototype.hasOwnProperty,m="~";function f(){}Object.create&&(f.prototype=Object.create(null),new f().__proto__||(m=!1));function c(n,e,s){this.fn=n,this.context=e,this.once=s||!1}function o(n,e,s,t,i){if(typeof s!="function")throw new TypeError("The listener must be a function");var l=new c(s,t||n,i),u=m?m+e:e;return n._events[u]?n._events[u].fn?n._events[u]=[n._events[u],l]:n._events[u].push(l):(n._events[u]=l,n._eventsCount++),n}function r(n,e){--n._eventsCount===0?n._events=new f:delete n._events[e]}function a(){this._events=new f,this._eventsCount=0}a.prototype.eventNames=function(){var e=[],s,t;if(this._eventsCount===0)return e;for(t in s=this._events)S.call(s,t)&&e.push(m?t.slice(1):t);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(s)):e},a.prototype.listeners=function(e){var s=m?m+e:e,t=this._events[s];if(!t)return[];if(t.fn)return[t.fn];for(var i=0,l=t.length,u=new Array(l);i<l;i++)u[i]=t[i].fn;return u},a.prototype.listenerCount=function(e){var s=m?m+e:e,t=this._events[s];return t?t.fn?1:t.length:0},a.prototype.emit=function(e,s,t,i,l,u){var h=m?m+e:e;if(!this._events[h])return!1;var p=this._events[h],g=arguments.length,A,y;if(p.fn){p.once&&this.removeListener(e,p.fn,void 0,!0);switch(g){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,s),!0;case 3:return p.fn.call(p.context,s,t),!0;case 4:return p.fn.call(p.context,s,t,i),!0;case 5:return p.fn.call(p.context,s,t,i,l),!0;case 6:return p.fn.call(p.context,s,t,i,l,u),!0}for(y=1,A=new Array(g-1);y<g;y++)A[y-1]=arguments[y];p.fn.apply(p.context,A)}else{var E=p.length,C;for(y=0;y<E;y++){p[y].once&&this.removeListener(e,p[y].fn,void 0,!0);switch(g){case 1:p[y].fn.call(p[y].context);break;case 2:p[y].fn.call(p[y].context,s);break;case 3:p[y].fn.call(p[y].context,s,t);break;case 4:p[y].fn.call(p[y].context,s,t,i);break;default:if(!A)for(C=1,A=new Array(g-1);C<g;C++)A[C-1]=arguments[C];p[y].fn.apply(p[y].context,A)}}}return!0},a.prototype.on=function(e,s,t){return o(this,e,s,t,!1)},a.prototype.once=function(e,s,t){return o(this,e,s,t,!0)},a.prototype.removeListener=function(e,s,t,i){var l=m?m+e:e;if(!this._events[l])return this;if(!s)return r(this,l),this;var u=this._events[l];if(u.fn)u.fn===s&&(!i||u.once)&&(!t||u.context===t)&&r(this,l);else{for(var h=0,p=[],g=u.length;h<g;h++)(u[h].fn!==s||i&&!u[h].once||t&&u[h].context!==t)&&p.push(u[h]);p.length?this._events[l]=p.length===1?p[0]:p:r(this,l)}return this},a.prototype.removeAllListeners=function(e){var s;return e?(s=m?m+e:e,this._events[s]&&r(this,s)):(this._events=new f,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=m,a.EventEmitter=a,x.exports=a},"./node_modules/url-toolkit/src/url-toolkit.js":function(x,T,v){(function(S){var m=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,f=/^([^\/?#]*)([^]*)$/,c=/(?:\/|^)\.(?=\/)/g,o=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,r={buildAbsoluteURL:function(n,e,s){if(s=s||{},n=n.trim(),e=e.trim(),!e){if(!s.alwaysNormalize)return n;var t=r.parseURL(n);if(!t)throw new Error("Error trying to parse base URL.");return t.path=r.normalizePath(t.path),r.buildURLFromParts(t)}var i=r.parseURL(e);if(!i)throw new Error("Error trying to parse relative URL.");if(i.scheme)return s.alwaysNormalize?(i.path=r.normalizePath(i.path),r.buildURLFromParts(i)):e;var l=r.parseURL(n);if(!l)throw new Error("Error trying to parse base URL.");if(!l.netLoc&&l.path&&l.path[0]!=="/"){var u=f.exec(l.path);l.netLoc=u[1],l.path=u[2]}l.netLoc&&!l.path&&(l.path="/");var h={scheme:l.scheme,netLoc:i.netLoc,path:null,params:i.params,query:i.query,fragment:i.fragment};if(!i.netLoc&&(h.netLoc=l.netLoc,i.path[0]!=="/"))if(!i.path)h.path=l.path,i.params||(h.params=l.params,i.query||(h.query=l.query));else{var p=l.path,g=p.substring(0,p.lastIndexOf("/")+1)+i.path;h.path=r.normalizePath(g)}return h.path===null&&(h.path=s.alwaysNormalize?r.normalizePath(i.path):i.path),r.buildURLFromParts(h)},parseURL:function(n){var e=m.exec(n);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(n){for(n=n.split("").reverse().join("").replace(c,"");n.length!==(n=n.replace(o,"")).length;);return n.split("").reverse().join("")},buildURLFromParts:function(n){return n.scheme+n.netLoc+n.path+n.params+n.query+n.fragment}};x.exports=r})(this)},"./node_modules/webworkify-webpack/index.js":function(x,T,v){function S(e){var s={};function t(l){if(s[l])return s[l].exports;var u=s[l]={i:l,l:!1,exports:{}};return e[l].call(u.exports,u,u.exports,t),u.l=!0,u.exports}t.m=e,t.c=s,t.i=function(l){return l},t.d=function(l,u,h){t.o(l,u)||Object.defineProperty(l,u,{configurable:!1,enumerable:!0,get:h})},t.r=function(l){Object.defineProperty(l,"__esModule",{value:!0})},t.n=function(l){var u=l&&l.__esModule?function(){return l.default}:function(){return l};return t.d(u,"a",u),u},t.o=function(l,u){return Object.prototype.hasOwnProperty.call(l,u)},t.p="/",t.oe=function(l){throw console.error(l),l};var i=t(t.s=ENTRY_MODULE);return i.default||i}var m="[\\.|\\-|\\+|\\w|/|@]+",f="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+m+").*?\\)";function c(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function o(e){return!isNaN(1*e)}function r(e,s,t){var i={};i[t]=[];var l=s.toString(),u=l.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!u)return i;for(var h=u[1],p=new RegExp("(\\\\n|\\W)"+c(h)+f,"g"),g;g=p.exec(l);){if(g[3]==="dll-reference")continue;i[t].push(g[3])}for(p=new RegExp("\\("+c(h)+'\\("(dll-reference\\s('+m+'))"\\)\\)'+f,"g");g=p.exec(l);)e[g[2]]||(i[t].push(g[1]),e[g[2]]=v(g[1]).m),i[g[2]]=i[g[2]]||[],i[g[2]].push(g[4]);for(var A=Object.keys(i),y=0;y<A.length;y++)for(var E=0;E<i[A[y]].length;E++)o(i[A[y]][E])&&(i[A[y]][E]=1*i[A[y]][E]);return i}function a(e){var s=Object.keys(e);return s.reduce(function(t,i){return t||e[i].length>0},!1)}function n(e,s){for(var t={main:[s]},i={main:[]},l={main:{}};a(t);)for(var u=Object.keys(t),h=0;h<u.length;h++){var p=u[h],g=t[p],A=g.pop();if(l[p]=l[p]||{},l[p][A]||!e[p][A])continue;l[p][A]=!0,i[p]=i[p]||[],i[p].push(A);for(var y=r(e,e[p][A],p),E=Object.keys(y),C=0;C<E.length;C++)t[E[C]]=t[E[C]]||[],t[E[C]]=t[E[C]].concat(y[E[C]])}return i}x.exports=function(e,s){s=s||{};var t={main:v.m},i=s.all?{main:Object.keys(t.main)}:n(t,e),l="";Object.keys(i).filter(function(A){return A!=="main"}).forEach(function(A){for(var y=0;i[A][y];)y++;i[A].push(y),t[A][y]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",l=l+"var "+A+" = ("+S.toString().replace("ENTRY_MODULE",JSON.stringify(y))+")({"+i[A].map(function(E){return""+JSON.stringify(E)+": "+t[A][E].toString()}).join(",")+`});
|
|
|
`}),l=l+"new (("+S.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+i.main.map(function(A){return""+JSON.stringify(A)+": "+t.main[A].toString()}).join(",")+"}))(self);";var u=new window.Blob([l],{type:"text/javascript"});if(s.bare)return u;var h=window.URL||window.webkitURL||window.mozURL||window.msURL,p=h.createObjectURL(u),g=new window.Worker(p);return g.objectURL=p,g}},"./src/config.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"hlsDefaultConfig",function(){return C}),v.d(T,"mergeConfig",function(){return b}),v.d(T,"enableStreamingMode",function(){return I});var S=v("./src/controller/abr-controller.ts"),m=v("./src/controller/audio-stream-controller.ts"),f=v("./src/controller/audio-track-controller.ts"),c=v("./src/controller/subtitle-stream-controller.ts"),o=v("./src/controller/subtitle-track-controller.ts"),r=v("./src/controller/buffer-controller.ts"),a=v("./src/controller/timeline-controller.ts"),n=v("./src/controller/cap-level-controller.ts"),e=v("./src/controller/fps-controller.ts"),s=v("./src/controller/eme-controller.ts"),t=v("./src/controller/cmcd-controller.ts"),i=v("./src/utils/xhr-loader.ts"),l=v("./src/utils/fetch-loader.ts"),u=v("./src/utils/cues.ts"),h=v("./src/utils/mediakeys-helper.ts"),p=v("./src/utils/logger.ts");function g(){return g=Object.assign||function(_){for(var L=1;L<arguments.length;L++){var D=arguments[L];for(var N in D)Object.prototype.hasOwnProperty.call(D,N)&&(_[N]=D[N])}return _},g.apply(this,arguments)}function A(_,L){var D=Object.keys(_);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(_);L&&(N=N.filter(function(R){return Object.getOwnPropertyDescriptor(_,R).enumerable})),D.push.apply(D,N)}return D}function y(_){for(var L=1;L<arguments.length;L++){var D=arguments[L]!=null?arguments[L]:{};L%2?A(Object(D),!0).forEach(function(N){E(_,N,D[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(D)):A(Object(D)).forEach(function(N){Object.defineProperty(_,N,Object.getOwnPropertyDescriptor(D,N))})}return _}function E(_,L,D){return L in _?Object.defineProperty(_,L,{value:D,enumerable:!0,configurable:!0,writable:!0}):_[L]=D,_}var C=y(y({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:S.default,bufferController:r.default,capLevelController:n.default,fpsController:e.default,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystemOptions:{},requestMediaKeySystemAccessFunc:h.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},w()),{},{subtitleStreamController:c.SubtitleStreamController,subtitleTrackController:o.default,timelineController:a.TimelineController,audioStreamController:m.default,audioTrackController:f.default,emeController:s.default,cmcdController:t.default});function w(){return{cueHandler:u.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(_,L){if((L.liveSyncDurationCount||L.liveMaxLatencyDurationCount)&&(L.liveSyncDuration||L.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(L.liveMaxLatencyDurationCount!==void 0&&(L.liveSyncDurationCount===void 0||L.liveMaxLatencyDurationCount<=L.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(L.liveMaxLatencyDuration!==void 0&&(L.liveSyncDuration===void 0||L.liveMaxLatencyDuration<=L.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return g({},_,L)}function I(_){var L=_.loader;if(L!==l.default&&L!==i.default)p.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),_.progressive=!1;else{var D=Object(l.fetchSupported)();D&&(_.loader=l.default,_.progressive=!0,_.enableSoftwareAES=!0,p.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(x,T,v){"use strict";v.r(T);var S=v("./src/polyfills/number.ts"),m=v("./src/utils/ewma-bandwidth-estimator.ts"),f=v("./src/events.ts"),c=v("./src/utils/buffer-helper.ts"),o=v("./src/errors.ts"),r=v("./src/types/loader.ts"),a=v("./src/utils/logger.ts");function n(t,i){for(var l=0;l<i.length;l++){var u=i[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function e(t,i,l){return i&&n(t.prototype,i),l&&n(t,l),t}var s=function(){function t(l){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=l;var u=l.config;this.bwEstimator=new m.default(u.abrEwmaSlowVoD,u.abrEwmaFastVoD,u.abrEwmaDefaultEstimate),this.registerListeners()}var i=t.prototype;return i.registerListeners=function(){var u=this.hls;u.on(f.Events.FRAG_LOADING,this.onFragLoading,this),u.on(f.Events.FRAG_LOADED,this.onFragLoaded,this),u.on(f.Events.FRAG_BUFFERED,this.onFragBuffered,this),u.on(f.Events.LEVEL_LOADED,this.onLevelLoaded,this),u.on(f.Events.ERROR,this.onError,this)},i.unregisterListeners=function(){var u=this.hls;u.off(f.Events.FRAG_LOADING,this.onFragLoading,this),u.off(f.Events.FRAG_LOADED,this.onFragLoaded,this),u.off(f.Events.FRAG_BUFFERED,this.onFragBuffered,this),u.off(f.Events.LEVEL_LOADED,this.onLevelLoaded,this),u.off(f.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(u,h){var p=h.frag;if(p.type===r.PlaylistLevelType.MAIN&&!this.timer){var g;this.fragCurrent=p,this.partCurrent=(g=h.part)!=null?g:null,this.timer=self.setInterval(this.onCheck,100)}},i.onLevelLoaded=function(u,h){var p=this.hls.config;h.details.live?this.bwEstimator.update(p.abrEwmaSlowLive,p.abrEwmaFastLive):this.bwEstimator.update(p.abrEwmaSlowVoD,p.abrEwmaFastVoD)},i._abandonRulesCheck=function(){var u=this.fragCurrent,h=this.partCurrent,p=this.hls,g=p.autoLevelEnabled,A=p.config,y=p.media;if(!u||!y)return;var E=h?h.stats:u.stats,C=h?h.duration:u.duration;if(E.aborted){a.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!g||y.paused||!y.playbackRate||!y.readyState)return;var w=performance.now()-E.loading.start,b=Math.abs(y.playbackRate);if(w<=500*C/b)return;var I=p.levels,_=p.minAutoLevel,L=I[u.level],D=E.total||Math.max(E.loaded,Math.round(C*L.maxBitrate/8)),N=Math.max(1,E.bwEstimate?E.bwEstimate/8:E.loaded*1e3/w),R=(D-E.loaded)/N,B=y.currentTime,M=(c.BufferHelper.bufferInfo(y,B,A.maxBufferHole).end-B)/b;if(M>=2*C/b||R<=M)return;var H=Number.POSITIVE_INFINITY,F;for(F=u.level-1;F>_;F--){var K=I[F].maxBitrate;if(H=C*K/(8*.8*N),H<M)break}if(H>=R)return;var j=this.bwEstimator.getEstimate();a.logger.warn("Fragment "+u.sn+(h?" part "+h.index:"")+" of level "+u.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+F+`
|
|
|
Current BW estimate: `+(Object(S.isFiniteNumber)(j)?(j/1024).toFixed(3):"Unknown")+` Kb/s
|
|
|
Estimated load time for current fragment: `+R.toFixed(3)+` s
|
|
|
Estimated load time for the next fragment: `+H.toFixed(3)+` s
|
|
|
Time to underbuffer: `+M.toFixed(3)+" s"),p.nextLoadLevel=F,this.bwEstimator.sample(w,E.loaded),this.clearTimer(),u.loader&&(this.fragCurrent=this.partCurrent=null,u.loader.abort()),p.trigger(f.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:u,part:h,stats:E})},i.onFragLoaded=function(u,h){var p=h.frag,g=h.part;if(p.type===r.PlaylistLevelType.MAIN&&Object(S.isFiniteNumber)(p.sn)){var A=g?g.stats:p.stats,y=g?g.duration:p.duration;if(this.clearTimer(),this.lastLoadedFragLevel=p.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var E=this.hls.levels[p.level],C=(E.loaded?E.loaded.bytes:0)+A.loaded,w=(E.loaded?E.loaded.duration:0)+y;E.loaded={bytes:C,duration:w},E.realBitrate=Math.round(8*C/w)}if(p.bitrateTest){var b={stats:A,frag:p,part:g,id:p.type};this.onFragBuffered(f.Events.FRAG_BUFFERED,b),p.bitrateTest=!1}}},i.onFragBuffered=function(u,h){var p=h.frag,g=h.part,A=g?g.stats:p.stats;if(A.aborted)return;if(p.type!==r.PlaylistLevelType.MAIN||p.sn==="initSegment")return;var y=A.parsing.end-A.loading.start;this.bwEstimator.sample(y,A.loaded),A.bwEstimate=this.bwEstimator.getEstimate(),p.bitrateTest?this.bitrateTestDelay=y/1e3:this.bitrateTestDelay=0},i.onError=function(u,h){switch(h.details){case o.ErrorDetails.FRAG_LOAD_ERROR:case o.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},i.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},i.getNextABRAutoLevel=function(){var u=this.fragCurrent,h=this.partCurrent,p=this.hls,g=p.maxAutoLevel,A=p.config,y=p.minAutoLevel,E=p.media,C=h?h.duration:u?u.duration:0,w=E?E.currentTime:0,b=E&&E.playbackRate!==0?Math.abs(E.playbackRate):1,I=this.bwEstimator?this.bwEstimator.getEstimate():A.abrEwmaDefaultEstimate,_=(c.BufferHelper.bufferInfo(E,w,A.maxBufferHole).end-w)/b,L=this.findBestLevel(I,y,g,_,A.abrBandWidthFactor,A.abrBandWidthUpFactor);if(L>=0)return L;a.logger.trace((_?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var D=C?Math.min(C,A.maxStarvationDelay):A.maxStarvationDelay,N=A.abrBandWidthFactor,R=A.abrBandWidthUpFactor;if(!_){var B=this.bitrateTestDelay;if(B){var M=C?Math.min(C,A.maxLoadingDelay):A.maxLoadingDelay;D=M-B,a.logger.trace("bitrate test took "+Math.round(1e3*B)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*D)+" ms"),N=R=1}}return L=this.findBestLevel(I,y,g,_+D,N,R),Math.max(L,0)},i.findBestLevel=function(u,h,p,g,A,y){for(var E,C=this.fragCurrent,w=this.partCurrent,b=this.lastLoadedFragLevel,I=this.hls.levels,_=I[b],L=!!(_!=null&&(E=_.details)!==null&&E!==void 0&&E.live),D=_==null?void 0:_.codecSet,N=w?w.duration:C?C.duration:0,R=p;R>=h;R--){var B=I[R];if(!B||D&&B.codecSet!==D)continue;var M=B.details,H=(w?M==null?void 0:M.partTarget:M==null?void 0:M.averagetargetduration)||N,F=void 0;R<=b?F=A*u:F=y*u;var K=I[R].maxBitrate,j=K*H/F;if(a.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+R+"/"+Math.round(F)+"/"+K+"/"+H+"/"+g+"/"+j),F>K&&(!j||L&&!this.bitrateTestDelay||j<g))return R}return-1},e(t,[{key:"nextAutoLevel",get:function(){var u=this._nextAutoLevel,h=this.bwEstimator;if(u!==-1&&(!h||!h.canEstimate()))return u;var p=this.getNextABRAutoLevel();return u!==-1&&(p=Math.min(u,p)),p},set:function(u){this._nextAutoLevel=u}}]),t}();T.default=s},"./src/controller/audio-stream-controller.ts":function(x,T,v){"use strict";v.r(T);var S=v("./src/polyfills/number.ts"),m=v("./src/controller/base-stream-controller.ts"),f=v("./src/events.ts"),c=v("./src/utils/buffer-helper.ts"),o=v("./src/controller/fragment-tracker.ts"),r=v("./src/types/level.ts"),a=v("./src/types/loader.ts"),n=v("./src/loader/fragment.ts"),e=v("./src/demux/chunk-cache.ts"),s=v("./src/demux/transmuxer-interface.ts"),t=v("./src/types/transmuxer.ts"),i=v("./src/controller/fragment-finders.ts"),l=v("./src/utils/discontinuities.ts"),u=v("./src/errors.ts"),h=v("./src/utils/logger.ts");function p(){return p=Object.assign||function(C){for(var w=1;w<arguments.length;w++){var b=arguments[w];for(var I in b)Object.prototype.hasOwnProperty.call(b,I)&&(C[I]=b[I])}return C},p.apply(this,arguments)}function g(C,w){C.prototype=Object.create(w.prototype),C.prototype.constructor=C,A(C,w)}function A(C,w){return A=Object.setPrototypeOf||function(I,_){return I.__proto__=_,I},A(C,w)}var y=100,E=function(C){g(w,C);function w(I,_){var L;return L=C.call(this,I,_,"[audio-stream-controller]")||this,L.videoBuffer=null,L.videoTrackCC=-1,L.waitingVideoCC=-1,L.audioSwitch=!1,L.trackId=-1,L.waitingData=null,L.mainDetails=null,L.bufferFlushed=!1,L._registerListeners(),L}var b=w.prototype;return b.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},b._registerListeners=function(){var _=this.hls;_.on(f.Events.MEDIA_ATTACHED,this.onMediaAttached,this),_.on(f.Events.MEDIA_DETACHING,this.onMediaDetaching,this),_.on(f.Events.MANIFEST_LOADING,this.onManifestLoading,this),_.on(f.Events.LEVEL_LOADED,this.onLevelLoaded,this),_.on(f.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),_.on(f.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),_.on(f.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),_.on(f.Events.ERROR,this.onError,this),_.on(f.Events.BUFFER_RESET,this.onBufferReset,this),_.on(f.Events.BUFFER_CREATED,this.onBufferCreated,this),_.on(f.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),_.on(f.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),_.on(f.Events.FRAG_BUFFERED,this.onFragBuffered,this)},b._unregisterListeners=function(){var _=this.hls;_.off(f.Events.MEDIA_ATTACHED,this.onMediaAttached,this),_.off(f.Events.MEDIA_DETACHING,this.onMediaDetaching,this),_.off(f.Events.MANIFEST_LOADING,this.onManifestLoading,this),_.off(f.Events.LEVEL_LOADED,this.onLevelLoaded,this),_.off(f.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),_.off(f.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),_.off(f.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),_.off(f.Events.ERROR,this.onError,this),_.off(f.Events.BUFFER_RESET,this.onBufferReset,this),_.off(f.Events.BUFFER_CREATED,this.onBufferCreated,this),_.off(f.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),_.off(f.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),_.off(f.Events.FRAG_BUFFERED,this.onFragBuffered,this)},b.onInitPtsFound=function(_,L){var D=L.frag,N=L.id,R=L.initPTS;if(N==="main"){var B=D.cc;this.initPTS[D.cc]=R,this.log("InitPTS for cc: "+B+" found from main: "+R),this.videoTrackCC=B,this.state===m.State.WAITING_INIT_PTS&&this.tick()}},b.startLoad=function(_){if(!this.levels){this.startPosition=_,this.state=m.State.STOPPED;return}var L=this.lastCurrentTime;this.stopLoad(),this.setInterval(y),this.fragLoadError=0,L>0&&_===-1?(this.log("Override startPosition with lastCurrentTime @"+L.toFixed(3)),this.state=m.State.IDLE):(this.loadedmetadata=!1,this.state=m.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=_,this.tick()},b.doTick=function(){switch(this.state){case m.State.IDLE:this.doTickIdle();break;case m.State.WAITING_TRACK:{var _,L=this.levels,D=this.trackId,N=L==null||((_=L[D])===null||_===void 0)?void 0:_.details;if(N){if(this.waitForCdnTuneIn(N))break;this.state=m.State.WAITING_INIT_PTS}break}case m.State.FRAG_LOADING_WAITING_RETRY:{var R,B=performance.now(),M=this.retryDate;(!M||B>=M||(R=this.media)!==null&&R!==void 0&&R.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=m.State.IDLE);break}case m.State.WAITING_INIT_PTS:{var H=this.waitingData;if(H){var F=H.frag,K=H.part,j=H.cache,V=H.complete;if(this.initPTS[F.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=m.State.FRAG_LOADING;var z=j.flush(),Y={frag:F,part:K,payload:z,networkDetails:null};this._handleFragmentLoadProgress(Y),V&&C.prototype._handleFragmentLoadComplete.call(this,Y)}else if(this.videoTrackCC!==this.waitingVideoCC)h.logger.log("Waiting fragment cc ("+F.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var ee=this.getLoadPosition(),fe=c.BufferHelper.bufferInfo(this.mediaBuffer,ee,this.config.maxBufferHole),ie=Object(i.fragmentWithinToleranceTest)(fe.end,this.config.maxFragLookUpTolerance,F);ie<0&&(h.logger.log("Waiting fragment cc ("+F.cc+") @ "+F.start+" cancelled because another fragment at "+fe.end+" is needed"),this.clearWaitingFragment())}}else this.state=m.State.IDLE}}this.onTickEnd()},b.clearWaitingFragment=function(){var _=this.waitingData;_&&(this.fragmentTracker.removeFragment(_.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=m.State.IDLE)},b.onTickEnd=function(){var _=this.media;if(!_||!_.readyState)return;var L=this.mediaBuffer?this.mediaBuffer:_,D=L.buffered;!this.loadedmetadata&&D.length&&(this.loadedmetadata=!0),this.lastCurrentTime=_.currentTime},b.doTickIdle=function(){var _,L,D=this.hls,N=this.levels,R=this.media,B=this.trackId,M=D.config;if(!N||!N[B])return;if(!R&&(this.startFragRequested||!M.startFragPrefetch))return;var H=N[B],F=H.details;if(!F||F.live&&this.levelLastLoaded!==B||this.waitForCdnTuneIn(F)){this.state=m.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,n.ElementaryStreamTypes.AUDIO,a.PlaylistLevelType.AUDIO));var K=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,a.PlaylistLevelType.AUDIO);if(K===null)return;var j=K.len,V=this.getMaxBufferLength(),z=this.audioSwitch;if(j>=V&&!z)return;if(!z&&this._streamEnded(K,F)){D.trigger(f.Events.BUFFER_EOS,{type:"audio"}),this.state=m.State.ENDED;return}var Y=F.fragments,ee=Y[0].start,fe=K.end;if(z){var ie=this.getLoadPosition();fe=ie,F.PTSKnown&&ie<ee&&((K.end>ee||K.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),R.currentTime=ee+.05))}var we=this.getNextFragment(fe,F);if(!we){this.bufferFlushed=!0;return}((_=we.decryptdata)===null||_===void 0?void 0:_.keyFormat)==="identity"&&!((L=we.decryptdata)!==null&&L!==void 0&&L.key)?this.loadKey(we,F):this.loadFragment(we,F,fe)},b.getMaxBufferLength=function(){var _=C.prototype.getMaxBufferLength.call(this),L=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,a.PlaylistLevelType.MAIN);return L===null?_:Math.max(_,L.len)},b.onMediaDetaching=function(){this.videoBuffer=null,C.prototype.onMediaDetaching.call(this)},b.onAudioTracksUpdated=function(_,L){var D=L.audioTracks;this.resetTransmuxer(),this.levels=D.map(function(N){return new r.Level(N)})},b.onAudioTrackSwitching=function(_,L){var D=!!L.url;this.trackId=L.id;var N=this.fragCurrent;N!=null&&N.loader&&N.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),D?this.setInterval(y):this.resetTransmuxer(),D?(this.audioSwitch=!0,this.state=m.State.IDLE):this.state=m.State.STOPPED,this.tick()},b.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},b.onLevelLoaded=function(_,L){this.mainDetails=L.details},b.onAudioTrackLoaded=function(_,L){var D,N=this.levels,R=L.details,B=L.id;if(!N){this.warn("Audio tracks were reset while loading level "+B);return}this.log("Track "+B+" loaded ["+R.startSN+","+R.endSN+"],duration:"+R.totalduration);var M=N[B],H=0;if(R.live||(D=M.details)!==null&&D!==void 0&&D.live){var F=this.mainDetails;if(R.fragments[0]||(R.deltaUpdateFailed=!0),R.deltaUpdateFailed||!F)return;!M.details&&R.hasProgramDateTime&&F.hasProgramDateTime?(Object(l.alignMediaPlaylistByPDT)(R,F),H=R.fragments[0].start):H=this.alignPlaylists(R,M.details)}M.details=R,this.levelLastLoaded=B,!this.startFragRequested&&(this.mainDetails||!R.live)&&this.setStartPosition(M.details,H),this.state===m.State.WAITING_TRACK&&!this.waitForCdnTuneIn(R)&&(this.state=m.State.IDLE),this.tick()},b._handleFragmentLoadProgress=function(_){var L,D=_.frag,N=_.part,R=_.payload,B=this.config,M=this.trackId,H=this.levels;if(!H){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+D.sn+" of level "+D.level+" will not be buffered");return}var F=H[M];console.assert(F,"Audio track is defined on fragment load progress");var K=F.details;console.assert(K,"Audio track details are defined on fragment load progress");var j=B.defaultAudioCodec||F.audioCodec||"mp4a.40.2",V=this.transmuxer;V||(V=this.transmuxer=new s.default(this.hls,a.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var z=this.initPTS[D.cc],Y=(L=D.initSegment)===null||L===void 0?void 0:L.data;if(z!==void 0){var ee=!1,fe=N?N.index:-1,ie=fe!==-1,we=new t.ChunkMetadata(D.level,D.sn,D.stats.chunkCount,R.byteLength,fe,ie);V.push(R,Y,j,"",D,N,K.totalduration,ee,we,z)}else{h.logger.log("Unknown video PTS for cc "+D.cc+", waiting for video PTS before demuxing audio frag "+D.sn+" of ["+K.startSN+" ,"+K.endSN+"],track "+M);var Ce=this.waitingData=this.waitingData||{frag:D,part:N,cache:new e.default,complete:!1},Le=Ce.cache;Le.push(new Uint8Array(R)),this.waitingVideoCC=this.videoTrackCC,this.state=m.State.WAITING_INIT_PTS}},b._handleFragmentLoadComplete=function(_){if(this.waitingData){this.waitingData.complete=!0;return}C.prototype._handleFragmentLoadComplete.call(this,_)},b.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},b.onBufferCreated=function(_,L){var D=L.tracks.audio;D&&(this.mediaBuffer=D.buffer),L.tracks.video&&(this.videoBuffer=L.tracks.video.buffer)},b.onFragBuffered=function(_,L){var D=L.frag,N=L.part;if(D.type!==a.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(D)){this.warn("Fragment "+D.sn+(N?" p: "+N.index:"")+" of level "+D.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}D.sn!=="initSegment"&&(this.fragPrevious=D,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(f.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(D,N)},b.onError=function(_,L){switch(L.details){case u.ErrorDetails.FRAG_LOAD_ERROR:case u.ErrorDetails.FRAG_LOAD_TIMEOUT:case u.ErrorDetails.KEY_LOAD_ERROR:case u.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(a.PlaylistLevelType.AUDIO,L);break;case u.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case u.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==m.State.ERROR&&this.state!==m.State.STOPPED&&(this.state=L.fatal?m.State.ERROR:m.State.IDLE,this.warn(L.details+" while loading frag, switching to "+this.state+" state"));break;case u.ErrorDetails.BUFFER_FULL_ERROR:if(L.parent==="audio"&&(this.state===m.State.PARSING||this.state===m.State.PARSED)){var D=!0,N=this.getFwdBufferInfo(this.mediaBuffer,a.PlaylistLevelType.AUDIO);N&&N.len>.5&&(D=!this.reduceMaxBufferLength(N.len)),D&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,C.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},b.onBufferFlushed=function(_,L){var D=L.type;D===n.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},b._handleTransmuxComplete=function(_){var L,D="audio",N=this.hls,R=_.remuxResult,B=_.chunkMeta,M=this.getCurrentContext(B);if(!M){this.warn("The loading context changed while buffering fragment "+B.sn+" of level "+B.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(B.level);return}var H=M.frag,F=M.part,K=R.audio,j=R.text,V=R.id3,z=R.initSegment;if(this.fragContextChanged(H))return;if(this.state=m.State.PARSING,this.audioSwitch&&K&&this.completeAudioSwitch(),z!=null&&z.tracks&&(this._bufferInitSegment(z.tracks,H,B),N.trigger(f.Events.FRAG_PARSING_INIT_SEGMENT,{frag:H,id:D,tracks:z.tracks})),K){var Y=K.startPTS,ee=K.endPTS,fe=K.startDTS,ie=K.endDTS;F&&(F.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:Y,endPTS:ee,startDTS:fe,endDTS:ie}),H.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,Y,ee,fe,ie),this.bufferFragmentData(K,H,F,B)}if(V!=null&&(L=V.samples)!==null&&L!==void 0&&L.length){var we=p({frag:H,id:D},V);N.trigger(f.Events.FRAG_PARSING_METADATA,we)}if(j){var Ce=p({frag:H,id:D},j);N.trigger(f.Events.FRAG_PARSING_USERDATA,Ce)}},b._bufferInitSegment=function(_,L,D){if(this.state!==m.State.PARSING)return;_.video&&delete _.video;var N=_.audio;if(!N)return;N.levelCodec=N.codec,N.id="audio",this.log("Init audio buffer, container:"+N.container+", codecs[parsed]=["+N.codec+"]"),this.hls.trigger(f.Events.BUFFER_CODECS,_);var R=N.initSegment;if(R!=null&&R.byteLength){var B={type:"audio",frag:L,part:null,chunkMeta:D,parent:L.type,data:R};this.hls.trigger(f.Events.BUFFER_APPENDING,B)}this.tick()},b.loadFragment=function(_,L,D){var N=this.fragmentTracker.getState(_);this.fragCurrent=_,(this.audioSwitch||N===o.FragmentState.NOT_LOADED||N===o.FragmentState.PARTIAL)&&(_.sn==="initSegment"?this._loadInitSegment(_):L.live&&!Object(S.isFiniteNumber)(this.initPTS[_.cc])?(this.log("Waiting for video PTS in continuity counter "+_.cc+" of live stream before loading audio fragment "+_.sn+" of level "+this.trackId),this.state=m.State.WAITING_INIT_PTS):(this.startFragRequested=!0,C.prototype.loadFragment.call(this,_,L,D)))},b.completeAudioSwitch=function(){var _=this.hls,L=this.media,D=this.trackId;L&&(this.log("Switching audio track : flushing all audio"),C.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,_.trigger(f.Events.AUDIO_TRACK_SWITCHED,{id:D})},w}(m.default);T.default=E},"./src/controller/audio-track-controller.ts":function(x,T,v){"use strict";v.r(T);var S=v("./src/events.ts"),m=v("./src/errors.ts"),f=v("./src/controller/base-playlist-controller.ts"),c=v("./src/types/loader.ts");function o(s,t){for(var i=0;i<t.length;i++){var l=t[i];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(s,l.key,l)}}function r(s,t,i){return t&&o(s.prototype,t),i&&o(s,i),s}function a(s,t){s.prototype=Object.create(t.prototype),s.prototype.constructor=s,n(s,t)}function n(s,t){return n=Object.setPrototypeOf||function(l,u){return l.__proto__=u,l},n(s,t)}var e=function(s){a(t,s);function t(l){var u;return u=s.call(this,l,"[audio-track-controller]")||this,u.tracks=[],u.groupId=null,u.tracksInGroup=[],u.trackId=-1,u.trackName="",u.selectDefaultTrack=!0,u.registerListeners(),u}var i=t.prototype;return i.registerListeners=function(){var u=this.hls;u.on(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),u.on(S.Events.MANIFEST_PARSED,this.onManifestParsed,this),u.on(S.Events.LEVEL_LOADING,this.onLevelLoading,this),u.on(S.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),u.on(S.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),u.on(S.Events.ERROR,this.onError,this)},i.unregisterListeners=function(){var u=this.hls;u.off(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),u.off(S.Events.MANIFEST_PARSED,this.onManifestParsed,this),u.off(S.Events.LEVEL_LOADING,this.onLevelLoading,this),u.off(S.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),u.off(S.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),u.off(S.Events.ERROR,this.onError,this)},i.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,s.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(u,h){this.tracks=h.audioTracks||[]},i.onAudioTrackLoaded=function(u,h){var p=h.id,g=h.details,A=this.tracksInGroup[p];if(!A){this.warn("Invalid audio track id "+p);return}var y=A.details;A.details=h.details,this.log("audioTrack "+p+" loaded ["+g.startSN+"-"+g.endSN+"]"),p===this.trackId&&(this.retryCount=0,this.playlistLoaded(p,h,y))},i.onLevelLoading=function(u,h){this.switchLevel(h.level)},i.onLevelSwitching=function(u,h){this.switchLevel(h.level)},i.switchLevel=function(u){var h=this.hls.levels[u];if(!(h!=null&&h.audioGroupIds))return;var p=h.audioGroupIds[h.urlId];if(this.groupId!==p){this.groupId=p;var g=this.tracks.filter(function(y){return!p||y.groupId===p});this.selectDefaultTrack&&!g.some(function(y){return y.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=g;var A={audioTracks:g};this.log("Updating audio tracks, "+g.length+' track(s) found in "'+p+'" group-id'),this.hls.trigger(S.Events.AUDIO_TRACKS_UPDATED,A),this.selectInitialTrack()}},i.onError=function(u,h){if(s.prototype.onError.call(this,u,h),h.fatal||!h.context)return;h.context.type===c.PlaylistContextType.AUDIO_TRACK&&h.context.id===this.trackId&&h.context.groupId===this.groupId&&this.retryLoadingOrFail(h)},i.setAudioTrack=function(u){var h=this.tracksInGroup;if(u<0||u>=h.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var p=h[this.trackId];this.log("Now switching to audio-track index "+u);var g=h[u],A=g.id,y=g.groupId,E=y===void 0?"":y,C=g.name,w=g.type,b=g.url;if(this.trackId=u,this.trackName=C,this.selectDefaultTrack=!1,this.hls.trigger(S.Events.AUDIO_TRACK_SWITCHING,{id:A,groupId:E,name:C,type:w,url:b}),g.details&&!g.details.live)return;var I=this.switchParams(g.url,p==null?void 0:p.details);this.loadPlaylist(I)},i.selectInitialTrack=function(){var u=this.tracksInGroup;console.assert(u.length,"Initial audio track should be selected when tracks are known");var h=this.trackName,p=this.findTrackId(h)||this.findTrackId();p!==-1?this.setAudioTrack(p):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},i.findTrackId=function(u){for(var h=this.tracksInGroup,p=0;p<h.length;p++){var g=h[p];if((!this.selectDefaultTrack||g.default)&&(!u||u===g.name))return g.id}return-1},i.loadPlaylist=function(u){var h=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(h)){var p=h.id,g=h.groupId,A=h.url;if(u)try{A=u.addDirectives(A)}catch(y){this.warn("Could not construct new URL with HLS Delivery Directives: "+y)}this.log("loading audio-track playlist for id: "+p),this.clearTimer(),this.hls.trigger(S.Events.AUDIO_TRACK_LOADING,{url:A,id:p,groupId:g,deliveryDirectives:u||null})}},r(t,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(u){this.selectDefaultTrack=!1,this.setAudioTrack(u)}}]),t}(f.default);T.default=e},"./src/controller/base-playlist-controller.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"default",function(){return r});var S=v("./src/polyfills/number.ts"),m=v("./src/types/level.ts"),f=v("./src/controller/level-helper.ts"),c=v("./src/utils/logger.ts"),o=v("./src/errors.ts"),r=function(){function a(e,s){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=c.logger.log.bind(c.logger,s+":"),this.warn=c.logger.warn.bind(c.logger,s+":"),this.hls=e}var n=a.prototype;return n.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},n.onError=function(s,t){t.fatal&&t.type===o.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},n.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},n.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},n.stopLoad=function(){this.canLoad=!1,this.clearTimer()},n.switchParams=function(s,t){var i=t==null?void 0:t.renditionReports;if(i)for(var l=0;l<i.length;l++){var u=i[l],h=""+u.URI;if(h===s.substr(-h.length)){var p=parseInt(u["LAST-MSN"]),g=parseInt(u["LAST-PART"]);if(t&&this.hls.config.lowLatencyMode){var A=Math.min(t.age-t.partTarget,t.targetduration);g!==void 0&&A>t.partTarget&&(g+=1)}if(Object(S.isFiniteNumber)(p))return new m.HlsUrlParameters(p,Object(S.isFiniteNumber)(g)?g:void 0,m.HlsSkip.No)}}},n.loadPlaylist=function(s){},n.shouldLoadTrack=function(s){return this.canLoad&&s&&!!s.url&&(!s.details||s.details.live)},n.playlistLoaded=function(s,t,i){var l=this,u=t.details,h=t.stats,p=h.loading.end?Math.max(0,self.performance.now()-h.loading.end):0;if(u.advancedDateTime=Date.now()-p,u.live||i!=null&&i.live){if(u.reloaded(i),i&&this.log("live playlist "+s+" "+(u.advanced?"REFRESHED "+u.lastPartSn+"-"+u.lastPartIndex:"MISSED")),i&&u.fragments.length>0&&Object(f.mergeDetails)(i,u),!this.canLoad||!u.live)return;var g,A=void 0,y=void 0;if(u.canBlockReload&&u.endSN&&u.advanced){var E=this.hls.config.lowLatencyMode,C=u.lastPartSn,w=u.endSN,b=u.lastPartIndex,I=b!==-1,_=C===w,L=E?0:b;I?(A=_?w+1:C,y=_?L:b+1):A=w+1;var D=u.age,N=D+u.ageHeader,R=Math.min(N-u.partTarget,u.targetduration*1.5);if(R>0){if(i&&R>i.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+i.tuneInGoal+" to: "+R+" with playlist age: "+u.age),R=0;else{var B=Math.floor(R/u.targetduration);if(A+=B,y!==void 0){var M=Math.round(R%u.targetduration/u.partTarget);y+=M}this.log("CDN Tune-in age: "+u.ageHeader+"s last advanced "+D.toFixed(2)+"s goal: "+R+" skip sn "+B+" to part "+y)}u.tuneInGoal=R}if(g=this.getDeliveryDirectives(u,t.deliveryDirectives,A,y),E||!_){this.loadPlaylist(g);return}}else g=this.getDeliveryDirectives(u,t.deliveryDirectives,A,y);var H=Object(f.computeReloadInterval)(u,h);A!==void 0&&u.canBlockReload&&(H-=u.partTarget||1),this.log("reload live playlist "+s+" in "+Math.round(H)+" ms"),this.timer=self.setTimeout(function(){return l.loadPlaylist(g)},H)}else this.clearTimer()},n.getDeliveryDirectives=function(s,t,i,l){var u=Object(m.getSkipValue)(s,i);return t!=null&&t.skip&&s.deltaUpdateFailed&&(i=t.msn,l=t.part,u=m.HlsSkip.No),new m.HlsUrlParameters(i,l,u)},n.retryLoadingOrFail=function(s){var t=this,i=this.hls.config,l=this.retryCount<i.levelLoadingMaxRetry;if(l){var u;if(this.retryCount++,s.details.indexOf("LoadTimeOut")>-1&&(u=s.context)!==null&&u!==void 0&&u.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+s.details+'"'),this.loadPlaylist();else{var h=Math.min(Math.pow(2,this.retryCount)*i.levelLoadingRetryDelay,i.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return t.loadPlaylist()},h),this.warn("retry playlist loading #"+this.retryCount+" in "+h+' ms after "'+s.details+'"')}}else this.warn('cannot recover from error "'+s.details+'"'),this.clearTimer(),s.fatal=!0;return l},a}()},"./src/controller/base-stream-controller.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"State",function(){return w}),v.d(T,"default",function(){return b});var S=v("./src/polyfills/number.ts"),m=v("./src/task-loop.ts"),f=v("./src/controller/fragment-tracker.ts"),c=v("./src/utils/buffer-helper.ts"),o=v("./src/utils/logger.ts"),r=v("./src/events.ts"),a=v("./src/errors.ts"),n=v("./src/types/transmuxer.ts"),e=v("./src/utils/mp4-tools.ts"),s=v("./src/utils/discontinuities.ts"),t=v("./src/controller/fragment-finders.ts"),i=v("./src/controller/level-helper.ts"),l=v("./src/loader/fragment-loader.ts"),u=v("./src/crypt/decrypter.ts"),h=v("./src/utils/time-ranges.ts"),p=v("./src/types/loader.ts");function g(I,_){for(var L=0;L<_.length;L++){var D=_[L];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(I,D.key,D)}}function A(I,_,L){return _&&g(I.prototype,_),L&&g(I,L),I}function y(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function E(I,_){I.prototype=Object.create(_.prototype),I.prototype.constructor=I,C(I,_)}function C(I,_){return C=Object.setPrototypeOf||function(D,N){return D.__proto__=N,D},C(I,_)}var w={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",BACKTRACKING:"BACKTRACKING",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},b=function(I){E(_,I);function _(D,N,R){var B;return B=I.call(this)||this,B.hls=void 0,B.fragPrevious=null,B.fragCurrent=null,B.fragmentTracker=void 0,B.transmuxer=null,B._state=w.STOPPED,B.media=void 0,B.mediaBuffer=void 0,B.config=void 0,B.bitrateTest=!1,B.lastCurrentTime=0,B.nextLoadPosition=0,B.startPosition=0,B.loadedmetadata=!1,B.fragLoadError=0,B.retryDate=0,B.levels=null,B.fragmentLoader=void 0,B.levelLastLoaded=null,B.startFragRequested=!1,B.decrypter=void 0,B.initPTS=[],B.onvseeking=null,B.onvended=null,B.logPrefix="",B.log=void 0,B.warn=void 0,B.logPrefix=R,B.log=o.logger.log.bind(o.logger,R+":"),B.warn=o.logger.warn.bind(o.logger,R+":"),B.hls=D,B.fragmentLoader=new l.default(D.config),B.fragmentTracker=N,B.config=D.config,B.decrypter=new u.default(D,D.config),D.on(r.Events.KEY_LOADED,B.onKeyLoaded,y(B)),B}var L=_.prototype;return L.doTick=function(){this.onTickEnd()},L.onTickEnd=function(){},L.startLoad=function(N){},L.stopLoad=function(){this.fragmentLoader.abort();var N=this.fragCurrent;N&&this.fragmentTracker.removeFragment(N),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=w.STOPPED},L._streamEnded=function(N,R){var B=this.fragCurrent,M=this.fragmentTracker;if(!R.live&&B&&B.sn===R.endSN&&!N.nextStart){var H=M.getState(B);return H===f.FragmentState.PARTIAL||H===f.FragmentState.OK}return!1},L.onMediaAttached=function(N,R){var B=this.media=this.mediaBuffer=R.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),B.addEventListener("seeking",this.onvseeking),B.addEventListener("ended",this.onvended);var M=this.config;this.levels&&M.autoStartLoad&&this.state===w.STOPPED&&this.startLoad(M.startPosition)},L.onMediaDetaching=function(){var N=this.media;N!=null&&N.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),N&&(N.removeEventListener("seeking",this.onvseeking),N.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},L.onMediaSeeking=function(){var N=this.config,R=this.fragCurrent,B=this.media,M=this.mediaBuffer,H=this.state,F=B?B.currentTime:0,K=c.BufferHelper.bufferInfo(M||B,F,N.maxBufferHole);if(this.log("media seeking to "+(Object(S.isFiniteNumber)(F)?F.toFixed(3):F)+", state: "+H),H===w.ENDED)this.resetLoadingState();else if(R&&!K.len){var j=N.maxFragLookUpTolerance,V=R.start-j,z=R.start+R.duration+j,Y=F>z;(F<V||Y)&&(Y&&R.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),R.loader.abort()),this.resetLoadingState())}B&&(this.lastCurrentTime=F),!this.loadedmetadata&&!K.len&&(this.nextLoadPosition=this.startPosition=F),this.tickImmediate()},L.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},L.onKeyLoaded=function(N,R){if(this.state!==w.KEY_LOADING||R.frag!==this.fragCurrent||!this.levels)return;this.state=w.IDLE;var B=this.levels[R.frag.level].details;B&&this.loadFragment(R.frag,B,R.frag.start)},L.onHandlerDestroying=function(){this.stopLoad(),I.prototype.onHandlerDestroying.call(this)},L.onHandlerDestroyed=function(){this.state=w.STOPPED,this.hls.off(r.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,I.prototype.onHandlerDestroyed.call(this)},L.loadKey=function(N,R){this.log("Loading key for "+N.sn+" of ["+R.startSN+"-"+R.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+N.level),this.state=w.KEY_LOADING,this.fragCurrent=N,this.hls.trigger(r.Events.KEY_LOADING,{frag:N})},L.loadFragment=function(N,R,B){this._loadFragForPlayback(N,R,B)},L._loadFragForPlayback=function(N,R,B){var M=this,H=function(K){if(M.fragContextChanged(N)){M.warn("Fragment "+N.sn+(K.part?" p: "+K.part.index:"")+" of level "+N.level+" was dropped during download."),M.fragmentTracker.removeFragment(N);return}N.stats.chunkCount++,M._handleFragmentLoadProgress(K)};this._doFragLoad(N,R,B,H).then(function(F){if(!F)return;M.fragLoadError=0;var K=M.state;if(M.fragContextChanged(N)){(K===w.FRAG_LOADING||K===w.BACKTRACKING||!M.fragCurrent&&K===w.PARSING)&&(M.fragmentTracker.removeFragment(N),M.state=w.IDLE);return}if("payload"in F&&(M.log("Loaded fragment "+N.sn+" of level "+N.level),M.hls.trigger(r.Events.FRAG_LOADED,F),M.state===w.BACKTRACKING)){M.fragmentTracker.backtrack(N,F),M.resetFragmentLoading(N);return}M._handleFragmentLoadComplete(F)}).catch(function(F){M.warn(F),M.resetFragmentLoading(N)})},L.flushMainBuffer=function(N,R,B){if(B===void 0&&(B=null),!(N-R))return;var M={startOffset:N,endOffset:R,type:B};this.fragLoadError=0,this.hls.trigger(r.Events.BUFFER_FLUSHING,M)},L._loadInitSegment=function(N){var R=this;this._doFragLoad(N).then(function(B){if(!B||R.fragContextChanged(N)||!R.levels)throw new Error("init load aborted");return B}).then(function(B){var M=R.hls,H=B.payload,F=N.decryptdata;if(H&&H.byteLength>0&&F&&F.key&&F.iv&&F.method==="AES-128"){var K=self.performance.now();return R.decrypter.webCryptoDecrypt(new Uint8Array(H),F.key.buffer,F.iv.buffer).then(function(j){var V=self.performance.now();return M.trigger(r.Events.FRAG_DECRYPTED,{frag:N,payload:j,stats:{tstart:K,tdecrypt:V}}),B.payload=j,B})}return B}).then(function(B){var M=R.fragCurrent,H=R.hls,F=R.levels;if(!F)throw new Error("init load aborted, missing levels");var K=F[N.level].details;console.assert(K,"Level details are defined when init segment is loaded");var j=N.stats;R.state=w.IDLE,R.fragLoadError=0,N.data=new Uint8Array(B.payload),j.parsing.start=j.buffering.start=self.performance.now(),j.parsing.end=j.buffering.end=self.performance.now(),B.frag===M&&H.trigger(r.Events.FRAG_BUFFERED,{stats:j,frag:M,part:null,id:N.type}),R.tick()}).catch(function(B){R.warn(B),R.resetFragmentLoading(N)})},L.fragContextChanged=function(N){var R=this.fragCurrent;return!N||!R||N.level!==R.level||N.sn!==R.sn||N.urlId!==R.urlId},L.fragBufferedComplete=function(N,R){var B=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+N.type+" sn: "+N.sn+(R?" part: "+R.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+N.level+" "+h.default.toString(c.BufferHelper.getBuffered(B))),this.state=w.IDLE,this.tick()},L._handleFragmentLoadComplete=function(N){var R=this.transmuxer;if(!R)return;var B=N.frag,M=N.part,H=N.partsLoaded,F=!H||H.length===0||H.some(function(j){return!j}),K=new n.ChunkMetadata(B.level,B.sn,B.stats.chunkCount+1,0,M?M.index:-1,!F);R.flush(K)},L._handleFragmentLoadProgress=function(N){},L._doFragLoad=function(N,R,B,M){var H=this;if(B===void 0&&(B=null),!this.levels)throw new Error("frag load aborted, missing levels");if(B=Math.max(N.start,B||0),this.config.lowLatencyMode&&R){var F=R.partList;if(F&&M){B>N.end&&R.fragmentHint&&(N=R.fragmentHint);var K=this.getNextPart(F,N,B);if(K>-1){var j=F[K];return this.log("Loading part sn: "+N.sn+" p: "+j.index+" cc: "+N.cc+" of playlist ["+R.startSN+"-"+R.endSN+"] parts [0-"+K+"-"+(F.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+N.level+", target: "+parseFloat(B.toFixed(3))),this.nextLoadPosition=j.start+j.duration,this.state=w.FRAG_LOADING,this.hls.trigger(r.Events.FRAG_LOADING,{frag:N,part:F[K],targetBufferTime:B}),this.doFragPartsLoad(N,F,K,M).catch(function(V){return H.handleFragLoadError(V)})}else if(!N.url||this.loadedEndOfParts(F,B))return Promise.resolve(null)}}return this.log("Loading fragment "+N.sn+" cc: "+N.cc+" "+(R?"of ["+R.startSN+"-"+R.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+N.level+", target: "+parseFloat(B.toFixed(3))),Object(S.isFiniteNumber)(N.sn)&&!this.bitrateTest&&(this.nextLoadPosition=N.start+N.duration),this.state=w.FRAG_LOADING,this.hls.trigger(r.Events.FRAG_LOADING,{frag:N,targetBufferTime:B}),this.fragmentLoader.load(N,M).catch(function(V){return H.handleFragLoadError(V)})},L.doFragPartsLoad=function(N,R,B,M){var H=this;return new Promise(function(F,K){var j=[],V=function z(Y){var ee=R[Y];H.fragmentLoader.loadPart(N,ee,M).then(function(fe){j[ee.index]=fe;var ie=fe.part;H.hls.trigger(r.Events.FRAG_LOADED,fe);var we=R[Y+1];if(we&&we.fragment===N)z(Y+1);else return F({frag:N,part:ie,partsLoaded:j})}).catch(K)};V(B)})},L.handleFragLoadError=function(N){var R=N.data;return R&&R.details===a.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(R.frag,R.part):this.hls.trigger(r.Events.ERROR,R),null},L._handleTransmuxerFlush=function(N){var R=this.getCurrentContext(N);if(!R||this.state!==w.PARSING){this.fragCurrent||(this.state=w.IDLE);return}var B=R.frag,M=R.part,H=R.level,F=self.performance.now();B.stats.parsing.end=F,M&&(M.stats.parsing.end=F),this.updateLevelTiming(B,M,H,N.partial)},L.getCurrentContext=function(N){var R=this.levels,B=N.level,M=N.sn,H=N.part;if(!R||!R[B])return this.warn("Levels object was unset while buffering fragment "+M+" of level "+B+". The current chunk will not be buffered."),null;var F=R[B],K=H>-1?Object(i.getPartWith)(F,M,H):null,j=K?K.fragment:Object(i.getFragmentWithSN)(F,M,this.fragCurrent);return j?{frag:j,part:K,level:F}:null},L.bufferFragmentData=function(N,R,B,M){if(!N||this.state!==w.PARSING)return;var H=N.data1,F=N.data2,K=H;if(H&&F&&(K=Object(e.appendUint8Array)(H,F)),!K||!K.length)return;var j={type:N.type,frag:R,part:B,chunkMeta:M,parent:R.type,data:K};this.hls.trigger(r.Events.BUFFER_APPENDING,j),N.dropped&&N.independent&&!B&&this.flushBufferGap(R)},L.flushBufferGap=function(N){var R=this.media;if(!R)return;if(!c.BufferHelper.isBuffered(R,R.currentTime)){this.flushMainBuffer(0,N.start);return}var B=R.currentTime,M=c.BufferHelper.bufferInfo(R,B,0),H=N.duration,F=Math.min(this.config.maxFragLookUpTolerance*2,H*.25),K=Math.max(Math.min(N.start-F,M.end-F),B+F);N.start-K>F&&this.flushMainBuffer(K,N.start)},L.getFwdBufferInfo=function(N,R){var B=this.config,M=this.getLoadPosition();if(!Object(S.isFiniteNumber)(M))return null;var H=c.BufferHelper.bufferInfo(N,M,B.maxBufferHole);if(H.len===0&&H.nextStart!==void 0){var F=this.fragmentTracker.getBufferedFrag(M,R);if(F&&H.nextStart<F.end)return c.BufferHelper.bufferInfo(N,M,Math.max(H.nextStart,B.maxBufferHole))}return H},L.getMaxBufferLength=function(N){var R=this.config,B;return N?B=Math.max(8*R.maxBufferSize/N,R.maxBufferLength):B=R.maxBufferLength,Math.min(B,R.maxMaxBufferLength)},L.reduceMaxBufferLength=function(N){var R=this.config,B=N||R.maxBufferLength;return R.maxMaxBufferLength>=B?(R.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+R.maxMaxBufferLength+"s"),!0):!1},L.getNextFragment=function(N,R){var B,M,H=R.fragments,F=H.length;if(!F)return null;var K=this.config,j=H[0].start,V;if(R.live){var z=K.initialLiveManifestSize;if(F<z)return this.warn("Not enough fragments to start playback (have: "+F+", need: "+z+")"),null;!R.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(V=this.getInitialLiveFragment(R,H),this.startPosition=V?this.hls.liveSyncPosition||V.start:N)}else N<=j&&(V=H[0]);if(!V){var Y=K.lowLatencyMode?R.partEnd:R.fragmentEnd;V=this.getFragmentAtPosition(N,Y,R)}return(B=V)!==null&&B!==void 0&&B.initSegment&&!((M=V)!==null&&M!==void 0&&M.initSegment.data)&&!this.bitrateTest&&(V=V.initSegment),V},L.getNextPart=function(N,R,B){for(var M=-1,H=!1,F=!0,K=0,j=N.length;K<j;K++){var V=N[K];if(F=F&&!V.independent,M>-1&&B<V.start)break;var z=V.loaded;!z&&(H||V.independent||F)&&V.fragment===R&&(M=K),H=z}return M},L.loadedEndOfParts=function(N,R){var B=N[N.length-1];return B&&R>B.start&&B.loaded},L.getInitialLiveFragment=function(N,R){var B=this.fragPrevious,M=null;if(B){if(N.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+B.programDateTime),M=Object(t.findFragmentByPDT)(R,B.endProgramDateTime,this.config.maxFragLookUpTolerance)),!M){var H=B.sn+1;if(H>=N.startSN&&H<=N.endSN){var F=R[H-N.startSN];B.cc===F.cc&&(M=F,this.log("Live playlist, switching playlist, load frag with next SN: "+M.sn))}M||(M=Object(t.findFragWithCC)(R,B.cc),M&&this.log("Live playlist, switching playlist, load frag with same CC: "+M.sn))}}else{var K=this.hls.liveSyncPosition;K!==null&&(M=this.getFragmentAtPosition(K,this.bitrateTest?N.fragmentEnd:N.edge,N))}return M},L.getFragmentAtPosition=function(N,R,B){var M=this.config,H=this.fragPrevious,F=B.fragments,K=B.endSN,j=B.fragmentHint,V=M.maxFragLookUpTolerance,z=!!(M.lowLatencyMode&&B.partList&&j);z&&j&&!this.bitrateTest&&(F=F.concat(j),K=j.sn);var Y;if(N<R){var ee=N>R-V?0:V;Y=Object(t.findFragmentByPTS)(H,F,N,ee)}else Y=F[F.length-1];if(Y){var fe=Y.sn-B.startSN,ie=H&&Y.level===H.level,we=F[fe+1],Ce=this.fragmentTracker.getState(Y);if(Ce===f.FragmentState.BACKTRACKED){Y=null;for(var Le=fe;F[Le]&&this.fragmentTracker.getState(F[Le])===f.FragmentState.BACKTRACKED;)H?Y=F[Le--]:Y=F[--Le];Y||(Y=we)}else H&&Y.sn===H.sn&&!z&&(ie&&(Y.sn<K&&this.fragmentTracker.getState(we)!==f.FragmentState.OK?(this.log("SN "+Y.sn+" just loaded, load next one: "+we.sn),Y=we):Y=null))}return Y},L.synchronizeToLiveEdge=function(N){var R=this.config,B=this.media;if(!B)return;var M=this.hls.liveSyncPosition,H=B.currentTime,F=N.fragments[0].start,K=N.edge,j=H>=F-R.maxFragLookUpTolerance&&H<=K;if(M!==null&&B.duration>M&&(H<M||!j)){var V=R.liveMaxLatencyDuration!==void 0?R.liveMaxLatencyDuration:R.liveMaxLatencyDurationCount*N.targetduration;(!j&&B.readyState<4||H<K-V)&&(this.loadedmetadata||(this.nextLoadPosition=M),B.readyState&&(this.warn("Playback: "+H.toFixed(3)+" is located too far from the end of live sliding playlist: "+K+", reset currentTime to : "+M.toFixed(3)),B.currentTime=M))}},L.alignPlaylists=function(N,R){var B=this.levels,M=this.levelLastLoaded,H=this.fragPrevious,F=M!==null?B[M]:null,K=N.fragments.length;if(!K)return this.warn("No fragments in live playlist"),0;var j=N.fragments[0].start,V=!R,z=N.alignedSliding&&Object(S.isFiniteNumber)(j);if(V||!z&&!j){Object(s.alignStream)(H,F,N);var Y=N.fragments[0].start;return this.log("Live playlist sliding: "+Y.toFixed(2)+" start-sn: "+(R?R.startSN:"na")+"->"+N.startSN+" prev-sn: "+(H?H.sn:"na")+" fragments: "+K),Y}return j},L.waitForCdnTuneIn=function(N){var R=3;return N.live&&N.canBlockReload&&N.tuneInGoal>Math.max(N.partHoldBack,N.partTarget*R)},L.setStartPosition=function(N,R){var B=this.startPosition;if(B<R&&(B=-1),B===-1||this.lastCurrentTime===-1){var M=N.startTimeOffset;Object(S.isFiniteNumber)(M)?(B=R+M,M<0&&(B+=N.totalduration),B=Math.min(Math.max(R,B),R+N.totalduration),this.log("Start time offset "+M+" found in playlist, adjust startPosition to "+B),this.startPosition=B):N.live?B=this.hls.liveSyncPosition||R:this.startPosition=B=0,this.lastCurrentTime=B}this.nextLoadPosition=B},L.getLoadPosition=function(){var N=this.media,R=0;return this.loadedmetadata&&N?R=N.currentTime:this.nextLoadPosition&&(R=this.nextLoadPosition),R},L.handleFragLoadAborted=function(N,R){this.transmuxer&&N.sn!=="initSegment"&&N.stats.aborted&&(this.warn("Fragment "+N.sn+(R?" part"+R.index:"")+" of level "+N.level+" was aborted"),this.resetFragmentLoading(N))},L.resetFragmentLoading=function(N){(!this.fragCurrent||!this.fragContextChanged(N))&&(this.state=w.IDLE)},L.onFragmentOrKeyLoadError=function(N,R){if(R.fatal)return;var B=R.frag;if(!B||B.type!==N)return;var M=this.fragCurrent;console.assert(M&&B.sn===M.sn&&B.level===M.level&&B.urlId===M.urlId,"Frag load error must match current frag to retry");var H=this.config;if(this.fragLoadError+1<=H.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(B.level))return;var F=Math.min(Math.pow(2,this.fragLoadError)*H.fragLoadingRetryDelay,H.fragLoadingMaxRetryTimeout);this.warn("Fragment "+B.sn+" of "+N+" "+B.level+" failed to load, retrying in "+F+"ms"),this.retryDate=self.performance.now()+F,this.fragLoadError++,this.state=w.FRAG_LOADING_WAITING_RETRY}else R.levelRetry?(N===p.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=w.IDLE):(o.logger.error(R.details+" reaches max retry, redispatch as fatal ..."),R.fatal=!0,this.hls.stopLoad(),this.state=w.ERROR)},L.afterBufferFlushed=function(N,R,B){if(!N)return;var M=c.BufferHelper.getBuffered(N);this.fragmentTracker.detectEvictedFragments(R,M,B),this.state===w.ENDED&&this.resetLoadingState()},L.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=w.IDLE},L.resetLiveStartWhenNotLoaded=function(N){if(!this.loadedmetadata){this.startFragRequested=!1;var R=this.levels?this.levels[N].details:null;if(R!=null&&R.live)return this.startPosition=-1,this.setStartPosition(R,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},L.updateLevelTiming=function(N,R,B,M){var H=this,F=B.details;console.assert(!!F,"level.details must be defined");var K=Object.keys(N.elementaryStreams).reduce(function(j,V){var z=N.elementaryStreams[V];if(z){var Y=z.endPTS-z.startPTS;if(Y<=0)return H.warn("Could not parse fragment "+N.sn+" "+V+" duration reliably ("+Y+") resetting transmuxer to fallback to playlist timing"),H.resetTransmuxer(),j||!1;var ee=M?0:Object(i.updateFragPTSDTS)(F,N,z.startPTS,z.endPTS,z.startDTS,z.endDTS);return H.hls.trigger(r.Events.LEVEL_PTS_UPDATED,{details:F,level:B,drift:ee,type:V,frag:N,start:z.startPTS,end:z.endPTS}),!0}return j},!1);K?(this.state=w.PARSED,this.hls.trigger(r.Events.FRAG_PARSED,{frag:N,part:R})):this.resetLoadingState()},L.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},A(_,[{key:"state",get:function(){return this._state},set:function(N){var R=this._state;R!==N&&(this._state=N,this.log(R+"->"+N))}}]),_}(m.default)},"./src/controller/buffer-controller.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"default",function(){return t});var S=v("./src/polyfills/number.ts"),m=v("./src/events.ts"),f=v("./src/utils/logger.ts"),c=v("./src/errors.ts"),o=v("./src/utils/buffer-helper.ts"),r=v("./src/utils/mediasource-helper.ts"),a=v("./src/loader/fragment.ts"),n=v("./src/controller/buffer-operation-queue.ts"),e=Object(r.getMediaSource)(),s=/([ha]vc.)(?:\.[^.,]+)+/,t=function(){function i(u){var h=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 p=h.hls,g=h.media,A=h.mediaSource;f.logger.log("[buffer-controller]: Media source opened"),g&&(h.updateMediaElementDuration(),p.trigger(m.Events.MEDIA_ATTACHED,{media:g})),A&&A.removeEventListener("sourceopen",h._onMediaSourceOpen),h.checkPendingTracks()},this._onMediaSourceClose=function(){f.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){f.logger.log("[buffer-controller]: Media source ended")},this.hls=u,this._initSourceBuffer(),this.registerListeners()}var l=i.prototype;return l.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},l.destroy=function(){this.unregisterListeners(),this.details=null},l.registerListeners=function(){var h=this.hls;h.on(m.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),h.on(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.on(m.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.on(m.Events.BUFFER_RESET,this.onBufferReset,this),h.on(m.Events.BUFFER_APPENDING,this.onBufferAppending,this),h.on(m.Events.BUFFER_CODECS,this.onBufferCodecs,this),h.on(m.Events.BUFFER_EOS,this.onBufferEos,this),h.on(m.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),h.on(m.Events.LEVEL_UPDATED,this.onLevelUpdated,this),h.on(m.Events.FRAG_PARSED,this.onFragParsed,this),h.on(m.Events.FRAG_CHANGED,this.onFragChanged,this)},l.unregisterListeners=function(){var h=this.hls;h.off(m.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),h.off(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.off(m.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.off(m.Events.BUFFER_RESET,this.onBufferReset,this),h.off(m.Events.BUFFER_APPENDING,this.onBufferAppending,this),h.off(m.Events.BUFFER_CODECS,this.onBufferCodecs,this),h.off(m.Events.BUFFER_EOS,this.onBufferEos,this),h.off(m.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),h.off(m.Events.LEVEL_UPDATED,this.onLevelUpdated,this),h.off(m.Events.FRAG_PARSED,this.onFragParsed,this),h.off(m.Events.FRAG_CHANGED,this.onFragChanged,this)},l._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new n.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},l.onManifestParsed=function(h,p){var g=2;(p.audio&&!p.video||!p.altAudio)&&(g=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=g,this.details=null,f.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},l.onMediaAttaching=function(h,p){var g=this.media=p.media;if(g&&e){var A=this.mediaSource=new e;A.addEventListener("sourceopen",this._onMediaSourceOpen),A.addEventListener("sourceended",this._onMediaSourceEnded),A.addEventListener("sourceclose",this._onMediaSourceClose),g.src=self.URL.createObjectURL(A),this._objectUrl=g.src}},l.onMediaDetaching=function(){var h=this.media,p=this.mediaSource,g=this._objectUrl;if(p){if(f.logger.log("[buffer-controller]: media source detaching"),p.readyState==="open")try{p.endOfStream()}catch(A){f.logger.warn("[buffer-controller]: onMediaDetaching: "+A.message+" while calling endOfStream")}this.onBufferReset(),p.removeEventListener("sourceopen",this._onMediaSourceOpen),p.removeEventListener("sourceended",this._onMediaSourceEnded),p.removeEventListener("sourceclose",this._onMediaSourceClose),h&&(g&&self.URL.revokeObjectURL(g),h.src===g?(h.removeAttribute("src"),h.load()):f.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(m.Events.MEDIA_DETACHED,void 0)},l.onBufferReset=function(){var h=this;this.getSourceBufferTypes().forEach(function(p){var g=h.sourceBuffer[p];try{g&&(h.removeBufferListeners(p),h.mediaSource&&h.mediaSource.removeSourceBuffer(g),h.sourceBuffer[p]=void 0)}catch(A){f.logger.warn("[buffer-controller]: Failed to reset the "+p+" buffer",A)}}),this._initSourceBuffer()},l.onBufferCodecs=function(h,p){var g=this,A=this.getSourceBufferTypes().length;if(Object.keys(p).forEach(function(y){if(A){var E=g.tracks[y];if(E&&typeof E.buffer.changeType=="function"){var C=p[y],w=C.codec,b=C.levelCodec,I=C.container,_=(E.levelCodec||E.codec).replace(s,"$1"),L=(b||w).replace(s,"$1");if(_!==L){var D=I+";codecs="+(b||w);g.appendChangeType(y,D)}}}else g.pendingTracks[y]=p[y]}),A)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},l.appendChangeType=function(h,p){var g=this,A=this.operationQueue,y={execute:function(){var C=g.sourceBuffer[h];C&&(f.logger.log("[buffer-controller]: changing "+h+" sourceBuffer type to "+p),C.changeType(p)),A.shiftAndExecuteNext(h)},onStart:function(){},onComplete:function(){},onError:function(C){f.logger.warn("[buffer-controller]: Failed to change "+h+" SourceBuffer type",C)}};A.append(y,h)},l.onBufferAppending=function(h,p){var g=this,A=this.hls,y=this.operationQueue,E=this.tracks,C=p.data,w=p.type,b=p.frag,I=p.part,_=p.chunkMeta,L=_.buffering[w],D=self.performance.now();L.start=D;var N=b.stats.buffering,R=I?I.stats.buffering:null;N.start===0&&(N.start=D),R&&R.start===0&&(R.start=D);var B=E.audio,M=w==="audio"&&_.id===1&&(B==null?void 0:B.container)==="audio/mpeg",H={execute:function(){if(L.executeStart=self.performance.now(),M){var K=g.sourceBuffer[w];if(K){var j=b.start-K.timestampOffset;Math.abs(j)>=.1&&(f.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+b.start+" (delta: "+j+") sn: "+b.sn+")"),K.timestampOffset=b.start)}}g.appendExecutor(C,w)},onStart:function(){},onComplete:function(){var K=self.performance.now();L.executeEnd=L.end=K,N.first===0&&(N.first=K),R&&R.first===0&&(R.first=K);var j=g.sourceBuffer,V={};for(var z in j)V[z]=o.BufferHelper.getBuffered(j[z]);g.appendError=0,g.hls.trigger(m.Events.BUFFER_APPENDED,{type:w,frag:b,part:I,chunkMeta:_,parent:b.type,timeRanges:V})},onError:function(K){f.logger.error("[buffer-controller]: Error encountered while trying to append to the "+w+" SourceBuffer",K);var j={type:c.ErrorTypes.MEDIA_ERROR,parent:b.type,details:c.ErrorDetails.BUFFER_APPEND_ERROR,err:K,fatal:!1};K.code===DOMException.QUOTA_EXCEEDED_ERR?j.details=c.ErrorDetails.BUFFER_FULL_ERROR:(g.appendError++,j.details=c.ErrorDetails.BUFFER_APPEND_ERROR,g.appendError>A.config.appendErrorMaxRetry&&(f.logger.error("[buffer-controller]: Failed "+A.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),j.fatal=!0)),A.trigger(m.Events.ERROR,j)}};y.append(H,w)},l.onBufferFlushing=function(h,p){var g=this,A=this.operationQueue,y=function(C){return{execute:g.removeExecutor.bind(g,C,p.startOffset,p.endOffset),onStart:function(){},onComplete:function(){g.hls.trigger(m.Events.BUFFER_FLUSHED,{type:C})},onError:function(b){f.logger.warn("[buffer-controller]: Failed to remove from "+C+" SourceBuffer",b)}}};p.type?A.append(y(p.type),p.type):this.getSourceBufferTypes().forEach(function(E){A.append(y(E),E)})},l.onFragParsed=function(h,p){var g=this,A=p.frag,y=p.part,E=[],C=y?y.elementaryStreams:A.elementaryStreams;C[a.ElementaryStreamTypes.AUDIOVIDEO]?E.push("audiovideo"):(C[a.ElementaryStreamTypes.AUDIO]&&E.push("audio"),C[a.ElementaryStreamTypes.VIDEO]&&E.push("video"));var w=function(){var I=self.performance.now();A.stats.buffering.end=I,y&&(y.stats.buffering.end=I);var _=y?y.stats:A.stats;g.hls.trigger(m.Events.FRAG_BUFFERED,{frag:A,part:y,stats:_,id:A.type})};E.length===0&&f.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+A.type+" level: "+A.level+" sn: "+A.sn),this.blockBuffers(w,E)},l.onFragChanged=function(h,p){this.flushBackBuffer()},l.onBufferEos=function(h,p){var g=this,A=this.getSourceBufferTypes().reduce(function(y,E){var C=g.sourceBuffer[E];return(!p.type||p.type===E)&&(C&&!C.ended&&(C.ended=!0,f.logger.log("[buffer-controller]: "+E+" sourceBuffer now EOS"))),y&&!!(!C||C.ended)},!0);A&&this.blockBuffers(function(){var y=g.mediaSource;if(!y||y.readyState!=="open")return;y.endOfStream()})},l.onLevelUpdated=function(h,p){var g=p.details;if(!g.fragments.length)return;this.details=g,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},l.flushBackBuffer=function(){var h=this.hls,p=this.details,g=this.media,A=this.sourceBuffer;if(!g||p===null)return;var y=this.getSourceBufferTypes();if(!y.length)return;var E=p.live&&h.config.liveBackBufferLength!==null?h.config.liveBackBufferLength:h.config.backBufferLength;if(!Object(S.isFiniteNumber)(E)||E<0)return;var C=g.currentTime,w=p.levelTargetDuration,b=Math.max(E,w),I=Math.floor(C/w)*w-b;y.forEach(function(_){var L=A[_];if(L){var D=o.BufferHelper.getBuffered(L);D.length>0&&I>D.start(0)&&(h.trigger(m.Events.BACK_BUFFER_REACHED,{bufferEnd:I}),p.live&&h.trigger(m.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:I}),h.trigger(m.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:I,type:_}))}})},l.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var h=this.details,p=this.hls,g=this.media,A=this.mediaSource,y=h.fragments[0].start+h.totalduration,E=g.duration,C=Object(S.isFiniteNumber)(A.duration)?A.duration:0;h.live&&p.config.liveDurationInfinity?(f.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),A.duration=Infinity,this.updateSeekableRange(h)):(y>C&&y>E||!Object(S.isFiniteNumber)(E))&&(f.logger.log("[buffer-controller]: Updating Media Source duration to "+y.toFixed(3)),A.duration=y)},l.updateSeekableRange=function(h){var p=this.mediaSource,g=h.fragments,A=g.length;if(A&&h.live&&p!==null&&p!==void 0&&p.setLiveSeekableRange){var y=Math.max(0,g[0].start),E=Math.max(y,y+h.totalduration);p.setLiveSeekableRange(y,E)}},l.checkPendingTracks=function(){var h=this.bufferCodecEventsExpected,p=this.operationQueue,g=this.pendingTracks,A=Object.keys(g).length;if(A&&!h||A===2){this.createSourceBuffers(g),this.pendingTracks={};var y=this.getSourceBufferTypes();if(y.length===0){this.hls.trigger(m.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}y.forEach(function(E){p.executeNext(E)})}},l.createSourceBuffers=function(h){var p=this.sourceBuffer,g=this.mediaSource;if(!g)throw Error("createSourceBuffers called when mediaSource was null");var A=0;for(var y in h)if(!p[y]){var E=h[y];if(!E)throw Error("source buffer exists for track "+y+", however track does not");var C=E.levelCodec||E.codec,w=E.container+";codecs="+C;f.logger.log("[buffer-controller]: creating sourceBuffer("+w+")");try{var b=p[y]=g.addSourceBuffer(w),I=y;this.addBufferListener(I,"updatestart",this._onSBUpdateStart),this.addBufferListener(I,"updateend",this._onSBUpdateEnd),this.addBufferListener(I,"error",this._onSBUpdateError),this.tracks[y]={buffer:b,codec:C,container:E.container,levelCodec:E.levelCodec,id:E.id},A++}catch(_){f.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+_.message),this.hls.trigger(m.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:_,mimeType:w})}}A&&this.hls.trigger(m.Events.BUFFER_CREATED,{tracks:this.tracks})},l._onSBUpdateStart=function(h){var p=this.operationQueue,g=p.current(h);g.onStart()},l._onSBUpdateEnd=function(h){var p=this.operationQueue,g=p.current(h);g.onComplete(),p.shiftAndExecuteNext(h)},l._onSBUpdateError=function(h,p){f.logger.error("[buffer-controller]: "+h+" SourceBuffer error",p),this.hls.trigger(m.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var g=this.operationQueue.current(h);g&&g.onError(p)},l.removeExecutor=function(h,p,g){var A=this.media,y=this.mediaSource,E=this.operationQueue,C=this.sourceBuffer,w=C[h];if(!A||!y||!w){f.logger.warn("[buffer-controller]: Attempting to remove from the "+h+" SourceBuffer, but it does not exist"),E.shiftAndExecuteNext(h);return}var b=Object(S.isFiniteNumber)(A.duration)?A.duration:Infinity,I=Object(S.isFiniteNumber)(y.duration)?y.duration:Infinity,_=Math.max(0,p),L=Math.min(g,b,I);L>_?(f.logger.log("[buffer-controller]: Removing ["+_+","+L+"] from the "+h+" SourceBuffer"),console.assert(!w.updating,h+" sourceBuffer must not be updating"),w.remove(_,L)):E.shiftAndExecuteNext(h)},l.appendExecutor=function(h,p){var g=this.operationQueue,A=this.sourceBuffer,y=A[p];if(!y){f.logger.warn("[buffer-controller]: Attempting to append to the "+p+" SourceBuffer, but it does not exist"),g.shiftAndExecuteNext(p);return}y.ended=!1,console.assert(!y.updating,p+" sourceBuffer must not be updating"),y.appendBuffer(h)},l.blockBuffers=function(h,p){var g=this;if(p===void 0&&(p=this.getSourceBufferTypes()),!p.length){f.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(h);return}var A=this.operationQueue,y=p.map(function(E){return A.appendBlocker(E)});Promise.all(y).then(function(){h(),p.forEach(function(E){var C=g.sourceBuffer[E];(!C||!C.updating)&&A.shiftAndExecuteNext(E)})})},l.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},l.addBufferListener=function(h,p,g){var A=this.sourceBuffer[h];if(!A)return;var y=g.bind(this,h);this.listeners[h].push({event:p,listener:y}),A.addEventListener(p,y)},l.removeBufferListeners=function(h){var p=this.sourceBuffer[h];if(!p)return;this.listeners[h].forEach(function(g){p.removeEventListener(g.event,g.listener)})},i}()},"./src/controller/buffer-operation-queue.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"default",function(){return m});var S=v("./src/utils/logger.ts"),m=function(){function f(o){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=o}var c=f.prototype;return c.append=function(r,a){var n=this.queues[a];n.push(r),n.length===1&&this.buffers[a]&&this.executeNext(a)},c.insertAbort=function(r,a){var n=this.queues[a];n.unshift(r),this.executeNext(a)},c.appendBlocker=function(r){var a,n=new Promise(function(s){a=s}),e={execute:a,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(e,r),n},c.executeNext=function(r){var a=this.buffers,n=this.queues,e=a[r],s=n[r];if(s.length){var t=s[0];try{t.execute()}catch(i){S.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),t.onError(i),(!e||!e.updating)&&(s.shift(),this.executeNext(r))}}},c.shiftAndExecuteNext=function(r){this.queues[r].shift(),this.executeNext(r)},c.current=function(r){return this.queues[r][0]},f}()},"./src/controller/cap-level-controller.ts":function(x,T,v){"use strict";v.r(T);var S=v("./src/events.ts");function m(o,r){for(var a=0;a<r.length;a++){var n=r[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}function f(o,r,a){return r&&m(o.prototype,r),a&&m(o,a),o}var c=function(){function o(a){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=a,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var r=o.prototype;return r.setStreamController=function(n){this.streamController=n},r.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},r.registerListeners=function(){var n=this.hls;n.on(S.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),n.on(S.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.on(S.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.on(S.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.on(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},r.unregisterListener=function(){var n=this.hls;n.off(S.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),n.off(S.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.off(S.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.off(S.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.off(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},r.onFpsDropLevelCapping=function(n,e){o.isLevelAllowed(e.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(e.droppedLevel)},r.onMediaAttaching=function(n,e){this.media=e.media instanceof HTMLVideoElement?e.media:null},r.onManifestParsed=function(n,e){var s=this.hls;this.restrictedLevels=[],this.firstLevel=e.firstLevel,s.config.capLevelToPlayerSize&&e.video&&this.startCapping()},r.onBufferCodecs=function(n,e){var s=this.hls;s.config.capLevelToPlayerSize&&e.video&&this.startCapping()},r.onMediaDetaching=function(){this.stopCapping()},r.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var n=this.hls.levels;if(n.length){var e=this.hls;e.autoLevelCapping=this.getMaxLevel(n.length-1),e.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}},r.getMaxLevel=function(n){var e=this,s=this.hls.levels;if(!s.length)return-1;var t=s.filter(function(i,l){return o.isLevelAllowed(l,e.restrictedLevels)&&l<=n});return this.clientRect=null,o.getMaxLevelByMediaSize(t,this.mediaWidth,this.mediaHeight)},r.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()},r.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},r.getDimensions=function(){if(this.clientRect)return this.clientRect;var n=this.media,e={width:0,height:0};if(n){var s=n.getBoundingClientRect();e.width=s.width,e.height=s.height,!e.width&&!e.height&&(e.width=s.right-s.left||n.width||0,e.height=s.bottom-s.top||n.height||0)}return this.clientRect=e,e},o.isLevelAllowed=function(n,e){return e===void 0&&(e=[]),e.indexOf(n)===-1},o.getMaxLevelByMediaSize=function(n,e,s){if(!n||!n.length)return-1;for(var t=function(p,g){return g?p.width!==g.width||p.height!==g.height:!0},i=n.length-1,l=0;l<n.length;l+=1){var u=n[l];if((u.width>=e||u.height>=s)&&t(u,n[l+1])){i=l;break}}return i},f(o,[{key:"mediaWidth",get:function(){return this.getDimensions().width*o.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*o.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var n=1;try{n=self.devicePixelRatio}catch(e){}return n}}]),o}();T.default=c},"./src/controller/cmcd-controller.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"default",function(){return t});var S=v("./src/events.ts"),m=v("./src/types/cmcd.ts"),f=v("./src/utils/buffer-helper.ts"),c=v("./src/utils/logger.ts");function o(i,l){for(var u=0;u<l.length;u++){var h=l[u];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(i,h.key,h)}}function r(i,l,u){return l&&o(i.prototype,l),u&&o(i,u),i}function a(i,l){var u=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(u)return(u=u.call(i)).next.bind(u);if(Array.isArray(i)||(u=n(i))||l&&i&&typeof i.length=="number"){u&&(i=u);var h=0;return function(){return h>=i.length?{done:!0}:{done:!1,value:i[h++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n(i,l){if(!i)return;if(typeof i=="string")return e(i,l);var u=Object.prototype.toString.call(i).slice(8,-1);if(u==="Object"&&i.constructor&&(u=i.constructor.name),u==="Map"||u==="Set")return Array.from(i);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return e(i,l)}function e(i,l){(l==null||l>i.length)&&(l=i.length);for(var u=0,h=new Array(l);u<l;u++)h[u]=i[u];return h}function s(){return s=Object.assign||function(i){for(var l=1;l<arguments.length;l++){var u=arguments[l];for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(i[h]=u[h])}return i},s.apply(this,arguments)}var t=function(){function i(u){var h=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(){h.initialized&&(h.starved=!0),h.buffering=!0},this.onPlaying=function(){h.initialized||(h.initialized=!0),h.buffering=!1},this.applyPlaylistData=function(A){try{h.apply(A,{ot:m.CMCDObjectType.MANIFEST,su:!h.initialized})}catch(y){c.logger.warn("Could not generate manifest CMCD data.",y)}},this.applyFragmentData=function(A){try{var y=A.frag,E=h.hls.levels[y.level],C=h.getObjectType(y),w={d:y.duration*1e3,ot:C};(C===m.CMCDObjectType.VIDEO||C===m.CMCDObjectType.AUDIO||C==m.CMCDObjectType.MUXED)&&(w.br=E.bitrate/1e3,w.tb=h.getTopBandwidth(C),w.bl=h.getBufferLength(C)),h.apply(A,w)}catch(b){c.logger.warn("Could not generate segment CMCD data.",b)}},this.hls=u;var p=this.config=u.config,g=p.cmcd;g!=null&&(p.pLoader=this.createPlaylistLoader(),p.fLoader=this.createFragmentLoader(),this.sid=g.sessionId||i.uuid(),this.cid=g.contentId,this.useHeaders=g.useHeaders===!0,this.registerListeners())}var l=i.prototype;return l.registerListeners=function(){var h=this.hls;h.on(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.on(S.Events.MEDIA_DETACHED,this.onMediaDetached,this),h.on(S.Events.BUFFER_CREATED,this.onBufferCreated,this)},l.unregisterListeners=function(){var h=this.hls;h.off(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.off(S.Events.MEDIA_DETACHED,this.onMediaDetached,this),h.off(S.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},l.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},l.onMediaAttached=function(h,p){this.media=p.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},l.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},l.onBufferCreated=function(h,p){var g,A;this.audioBuffer=(g=p.tracks.audio)===null||g===void 0?void 0:g.buffer,this.videoBuffer=(A=p.tracks.video)===null||A===void 0?void 0:A.buffer},l.createData=function(){var h;return{v:m.CMCDVersion,sf:m.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(h=this.media)===null||h===void 0?void 0:h.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},l.apply=function(h,p){p===void 0&&(p={}),s(p,this.createData());var g=p.ot===m.CMCDObjectType.INIT||p.ot===m.CMCDObjectType.VIDEO||p.ot===m.CMCDObjectType.MUXED;if(this.starved&&g&&(p.bs=!0,p.su=!0,this.starved=!1),p.su==null&&(p.su=this.buffering),this.useHeaders){var A=i.toHeaders(p);if(!Object.keys(A).length)return;h.headers||(h.headers={}),s(h.headers,A)}else{var y=i.toQuery(p);if(!y)return;h.url=i.appendQueryToUri(h.url,y)}},l.getObjectType=function(h){var p=h.type;return p==="subtitle"?m.CMCDObjectType.TIMED_TEXT:h.sn==="initSegment"?m.CMCDObjectType.INIT:p==="audio"?m.CMCDObjectType.AUDIO:p==="main"?this.hls.audioTracks.length?m.CMCDObjectType.VIDEO:m.CMCDObjectType.MUXED:void 0},l.getTopBandwidth=function(h){for(var p=0,g=h===m.CMCDObjectType.AUDIO?this.hls.audioTracks:this.hls.levels,A=a(g),y;!(y=A()).done;){var E=y.value;E.bitrate>p&&(p=E.bitrate)}return p>0?p:NaN},l.getBufferLength=function(h){var p=this.hls.media,g=h===m.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!g||!p)return NaN;var A=f.BufferHelper.bufferInfo(g,p.currentTime,this.config.maxBufferHole);return A.len*1e3},l.createPlaylistLoader=function(){var h=this.config.pLoader,p=this.applyPlaylistData,g=h||this.config.loader;return function(){function A(E){this.loader=void 0,this.loader=new g(E)}var y=A.prototype;return y.destroy=function(){this.loader.destroy()},y.abort=function(){this.loader.abort()},y.load=function(C,w,b){p(C),this.loader.load(C,w,b)},r(A,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),A}()},l.createFragmentLoader=function(){var h=this.config.fLoader,p=this.applyFragmentData,g=h||this.config.loader;return function(){function A(E){this.loader=void 0,this.loader=new g(E)}var y=A.prototype;return y.destroy=function(){this.loader.destroy()},y.abort=function(){this.loader.abort()},y.load=function(C,w,b){p(C),this.loader.load(C,w,b)},r(A,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),A}()},i.uuid=function(){var h=URL.createObjectURL(new Blob),p=h.toString();return URL.revokeObjectURL(h),p.substr(p.lastIndexOf("/")+1)},i.serialize=function(h){for(var p=[],g=function(M){return!Number.isNaN(M)&&M!=null&&M!==""&&M!==!1},A=function(M){return Math.round(M)},y=function(M){return A(M/100)*100},E=function(M){return encodeURIComponent(M)},C={br:A,d:A,bl:y,dl:y,mtp:y,nor:E,rtp:y,tb:A},w=Object.keys(h||{}).sort(),b=a(w),I;!(I=b()).done;){var _=I.value,L=h[_];if(!g(L))continue;if(_==="v"&&L===1)continue;if(_=="pr"&&L===1)continue;var D=C[_];D&&(L=D(L));var N=typeof L,R=void 0;_==="ot"||_==="sf"||_==="st"?R=_+"="+L:N==="boolean"?R=_:N==="number"?R=_+"="+L:R=_+"="+JSON.stringify(L),p.push(R)}return p.join(",")},i.toHeaders=function(h){for(var p=Object.keys(h),g={},A=["Object","Request","Session","Status"],y=[{},{},{},{}],E={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},C=0,w=p;C<w.length;C++){var b=w[C],I=E[b]!=null?E[b]:1;y[I][b]=h[b]}for(var _=0;_<y.length;_++){var L=i.serialize(y[_]);L&&(g["CMCD-"+A[_]]=L)}return g},i.toQuery=function(h){return"CMCD="+encodeURIComponent(i.serialize(h))},i.appendQueryToUri=function(h,p){if(!p)return h;var g=h.includes("?")?"&":"?";return""+h+g+p},i}()},"./src/controller/eme-controller.ts":function(x,T,v){"use strict";v.r(T);var S=v("./src/events.ts"),m=v("./src/errors.ts"),f=v("./src/utils/logger.ts"),c=v("./src/utils/mediakeys-helper.ts");function o(t,i){for(var l=0;l<i.length;l++){var u=i[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function r(t,i,l){return i&&o(t.prototype,i),l&&o(t,l),t}var a=3,n=function(i,l,u){var h={audioCapabilities:[],videoCapabilities:[]};return i.forEach(function(p){h.audioCapabilities.push({contentType:'audio/mp4; codecs="'+p+'"',robustness:u.audioRobustness||""})}),l.forEach(function(p){h.videoCapabilities.push({contentType:'video/mp4; codecs="'+p+'"',robustness:u.videoRobustness||""})}),[h]},e=function(i,l,u,h){switch(i){case c.KeySystems.WIDEVINE:return n(l,u,h);default:throw new Error("Unknown key-system: "+i)}},s=function(){function t(l){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=l,this._config=l.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=t.prototype;return i.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},i._registerListeners=function(){this.hls.on(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(S.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(S.Events.MANIFEST_PARSED,this.onManifestParsed,this)},i._unregisterListeners=function(){this.hls.off(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(S.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(S.Events.MANIFEST_PARSED,this.onManifestParsed,this)},i.getLicenseServerUrl=function(u){switch(u){case c.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+u+'"')},i._attemptKeySystemAccess=function(u,h,p){var g=this,A=e(u,h,p,this._drmSystemOptions);f.logger.log("Requesting encrypted media key-system access");var y=this.requestMediaKeySystemAccess(u,A);this.mediaKeysPromise=y.then(function(E){return g._onMediaKeySystemAccessObtained(u,E)}),y.catch(function(E){f.logger.error('Failed to obtain key-system "'+u+'" access:',E)})},i._onMediaKeySystemAccessObtained=function(u,h){var p=this;f.logger.log('Access for key-system "'+u+'" obtained');var g={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:h,mediaKeySystemDomain:u};this._mediaKeysList.push(g);var A=Promise.resolve().then(function(){return h.createMediaKeys()}).then(function(y){return g.mediaKeys=y,f.logger.log('Media-keys created for key-system "'+u+'"'),p._onMediaKeysCreated(),y});return A.catch(function(y){f.logger.error("Failed to create media-keys:",y)}),A},i._onMediaKeysCreated=function(){var u=this;this._mediaKeysList.forEach(function(h){h.mediaKeysSession||(h.mediaKeysSession=h.mediaKeys.createSession(),u._onNewMediaKeySession(h.mediaKeysSession))})},i._onNewMediaKeySession=function(u){var h=this;f.logger.log("New key-system session "+u.sessionId),u.addEventListener("message",function(p){h._onKeySessionMessage(u,p.message)},!1)},i._onKeySessionMessage=function(u,h){f.logger.log("Got EME message event, creating license request"),this._requestLicense(h,function(p){f.logger.log("Received license data (length: "+(p&&p.byteLength)+"), updating key-session"),u.update(p)})},i.onMediaEncrypted=function(u){var h=this;if(f.logger.log('Media is encrypted using "'+u.initDataType+'" init data type'),!this.mediaKeysPromise){f.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),this.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}var p=function(A){if(!h._media)return;h._attemptSetMediaKeys(A),h._generateRequestWithPreferredKeySession(u.initDataType,u.initData)};this.mediaKeysPromise.then(p).catch(p)},i._attemptSetMediaKeys=function(u){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var h=this._mediaKeysList[0];if(!h||!h.mediaKeys){f.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),this.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}f.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(h.mediaKeys),this._hasSetMediaKeys=!0}},i._generateRequestWithPreferredKeySession=function(u,h){var p=this,g=this._mediaKeysList[0];if(!g){f.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(g.mediaKeysSessionInitialized){f.logger.warn("Key-Session already initialized but requested again");return}var A=g.mediaKeysSession;if(!A){f.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});return}if(!h){f.logger.warn("Fatal: initData required for generating a key session is null"),this.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});return}f.logger.log('Generating key-session request for "'+u+'" init data type'),g.mediaKeysSessionInitialized=!0,A.generateRequest(u,h).then(function(){f.logger.debug("Key-session generation succeeded")}).catch(function(y){f.logger.error("Error generating key-session request:",y),p.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},i._createLicenseXhr=function(u,h,p){var g=new XMLHttpRequest;g.responseType="arraybuffer",g.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,g,u,h,p);var A=this._licenseXhrSetup;if(A)try{A.call(this.hls,g,u),A=void 0}catch(y){f.logger.error(y)}try{g.readyState||g.open("POST",u,!0),A&&A.call(this.hls,g,u)}catch(y){throw new Error("issue setting up KeySystem license XHR "+y)}return g},i._onLicenseRequestReadyStageChange=function(u,h,p,g){switch(u.readyState){case 4:if(u.status===200){this._requestLicenseFailureCount=0,f.logger.log("License request succeeded");var A=u.response,y=this._licenseResponseCallback;if(y)try{A=y.call(this.hls,u,h)}catch(C){f.logger.error(C)}g(A)}else{if(f.logger.error("License Request XHR failed ("+h+"). Status: "+u.status+" ("+u.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>a){this.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var E=a-this._requestLicenseFailureCount+1;f.logger.warn("Retrying license request, "+E+" attempts left"),this._requestLicense(p,g)}break}},i._generateLicenseRequestChallenge=function(u,h){switch(u.mediaKeySystemDomain){case c.KeySystems.WIDEVINE:return h}throw new Error("unsupported key-system: "+u.mediaKeySystemDomain)},i._requestLicense=function(u,h){f.logger.log("Requesting content license for key-system");var p=this._mediaKeysList[0];if(!p){f.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var g=this.getLicenseServerUrl(p.mediaKeySystemDomain),A=this._createLicenseXhr(g,u,h);f.logger.log("Sending license request to URL: "+g);var y=this._generateLicenseRequestChallenge(p,u);A.send(y)}catch(E){f.logger.error("Failure requesting DRM license: "+E),this.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.KEY_SYSTEM_ERROR,details:m.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},i.onMediaAttached=function(u,h){if(!this._emeEnabled)return;var p=h.media;this._media=p,p.addEventListener("encrypted",this._onMediaEncrypted)},i.onMediaDetached=function(){var u=this._media,h=this._mediaKeysList;if(!u)return;u.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(h.map(function(p){if(p.mediaKeysSession)return p.mediaKeysSession.close().catch(function(){})})).then(function(){return u.setMediaKeys(null)}).catch(function(){})},i.onManifestParsed=function(u,h){if(!this._emeEnabled)return;var p=h.levels.map(function(A){return A.audioCodec}).filter(function(A){return!!A}),g=h.levels.map(function(A){return A.videoCodec}).filter(function(A){return!!A});this._attemptKeySystemAccess(c.KeySystems.WIDEVINE,p,g)},r(t,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),t}();T.default=s},"./src/controller/fps-controller.ts":function(x,T,v){"use strict";v.r(T);var S=v("./src/events.ts"),m=v("./src/utils/logger.ts"),f=function(){function c(r){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=r,this.registerListeners()}var o=c.prototype;return o.setStreamController=function(a){this.streamController=a},o.registerListeners=function(){this.hls.on(S.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},o.unregisterListeners=function(){this.hls.off(S.Events.MEDIA_ATTACHING,this.onMediaAttaching)},o.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},o.onMediaAttaching=function(a,n){var e=this.hls.config;if(e.capLevelOnFPSDrop){var s=n.media instanceof self.HTMLVideoElement?n.media:null;this.media=s,s&&typeof s.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),e.fpsDroppedMonitoringPeriod)}},o.checkFPS=function(a,n,e){var s=performance.now();if(n){if(this.lastTime){var t=s-this.lastTime,i=e-this.lastDroppedFrames,l=n-this.lastDecodedFrames,u=1e3*i/t,h=this.hls;if(h.trigger(S.Events.FPS_DROP,{currentDropped:i,currentDecoded:l,totalDroppedFrames:e}),u>0&&i>h.config.fpsDroppedMonitoringThreshold*l){var p=h.currentLevel;m.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+p),p>0&&(h.autoLevelCapping===-1||h.autoLevelCapping>=p)&&(p=p-1,h.trigger(S.Events.FPS_DROP_LEVEL_CAPPING,{level:p,droppedLevel:h.currentLevel}),h.autoLevelCapping=p,this.streamController.nextLevelSwitch())}}this.lastTime=s,this.lastDroppedFrames=e,this.lastDecodedFrames=n}},o.checkFPSInterval=function(){var a=this.media;if(a)if(this.isVideoPlaybackQualityAvailable){var n=a.getVideoPlaybackQuality();this.checkFPS(a,n.totalVideoFrames,n.droppedVideoFrames)}else this.checkFPS(a,a.webkitDecodedFrameCount,a.webkitDroppedFrameCount)},c}();T.default=f},"./src/controller/fragment-finders.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"findFragmentByPDT",function(){return f}),v.d(T,"findFragmentByPTS",function(){return c}),v.d(T,"fragmentWithinToleranceTest",function(){return o}),v.d(T,"pdtWithinToleranceTest",function(){return r}),v.d(T,"findFragWithCC",function(){return a});var S=v("./src/polyfills/number.ts"),m=v("./src/utils/binary-search.ts");function f(n,e,s){if(e===null||!Array.isArray(n)||!n.length||!Object(S.isFiniteNumber)(e))return null;var t=n[0].programDateTime;if(e<(t||0))return null;var i=n[n.length-1].endProgramDateTime;if(e>=(i||0))return null;s=s||0;for(var l=0;l<n.length;++l){var u=n[l];if(r(e,s,u))return u}return null}function c(n,e,s,t){s===void 0&&(s=0),t===void 0&&(t=0);var i=null;if(n?i=e[n.sn-e[0].sn+1]||null:s===0&&e[0].start===0&&(i=e[0]),i&&o(s,t,i)===0)return i;var l=m.default.search(e,o.bind(null,s,t));return l||i}function o(n,e,s){n===void 0&&(n=0),e===void 0&&(e=0);var t=Math.min(e,s.duration+(s.deltaPTS?s.deltaPTS:0));return s.start+s.duration-t<=n?1:s.start-t>n&&s.start?-1:0}function r(n,e,s){var t=Math.min(e,s.duration+(s.deltaPTS?s.deltaPTS:0))*1e3,i=s.endProgramDateTime||0;return i-t>n}function a(n,e){return m.default.search(n,function(s){return s.cc<e?1:s.cc>e?-1:0})}},"./src/controller/fragment-tracker.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"FragmentState",function(){return f}),v.d(T,"FragmentTracker",function(){return c});var S=v("./src/events.ts"),m=v("./src/types/loader.ts"),f;(function(a){a.NOT_LOADED="NOT_LOADED",a.BACKTRACKED="BACKTRACKED",a.APPENDING="APPENDING",a.PARTIAL="PARTIAL",a.OK="OK"})(f||(f={}));var c=function(){function a(e){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=e,this._registerListeners()}var n=a.prototype;return n._registerListeners=function(){var s=this.hls;s.on(S.Events.BUFFER_APPENDED,this.onBufferAppended,this),s.on(S.Events.FRAG_BUFFERED,this.onFragBuffered,this),s.on(S.Events.FRAG_LOADED,this.onFragLoaded,this)},n._unregisterListeners=function(){var s=this.hls;s.off(S.Events.BUFFER_APPENDED,this.onBufferAppended,this),s.off(S.Events.FRAG_BUFFERED,this.onFragBuffered,this),s.off(S.Events.FRAG_LOADED,this.onFragLoaded,this)},n.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},n.getAppendedFrag=function(s,t){if(t===m.PlaylistLevelType.MAIN){var i=this.activeFragment,l=this.activeParts;if(!i)return null;if(l)for(var u=l.length;u--;){var h=l[u],p=h?h.end:i.appendedPTS;if(h.start<=s&&p!==void 0&&s<=p)return u>9&&(this.activeParts=l.slice(u-9)),h}else if(i.start<=s&&i.appendedPTS!==void 0&&s<=i.appendedPTS)return i}return this.getBufferedFrag(s,t)},n.getBufferedFrag=function(s,t){for(var i=this.fragments,l=Object.keys(i),u=l.length;u--;){var h=i[l[u]];if((h==null?void 0:h.body.type)===t&&h.buffered){var p=h.body;if(p.start<=s&&s<=p.end)return p}}return null},n.detectEvictedFragments=function(s,t,i){var l=this;Object.keys(this.fragments).forEach(function(u){var h=l.fragments[u];if(!h)return;if(!h.buffered){h.body.type===i&&l.removeFragment(h.body);return}var p=h.range[s];if(!p)return;p.time.some(function(g){var A=!l.isTimeBuffered(g.startPTS,g.endPTS,t);return A&&l.removeFragment(h.body),A})})},n.detectPartialFragments=function(s){var t=this,i=this.timeRanges,l=s.frag,u=s.part;if(!i||l.sn==="initSegment")return;var h=r(l),p=this.fragments[h];if(!p)return;Object.keys(i).forEach(function(g){var A=l.elementaryStreams[g];if(!A)return;var y=i[g],E=u!==null||A.partial===!0;p.range[g]=t.getBufferedTimes(l,u,E,y)}),p.backtrack=p.loaded=null,Object.keys(p.range).length?p.buffered=!0:this.removeFragment(p.body)},n.fragBuffered=function(s){var t=r(s),i=this.fragments[t];i&&(i.backtrack=i.loaded=null,i.buffered=!0)},n.getBufferedTimes=function(s,t,i,l){for(var u={time:[],partial:i},h=t?t.start:s.start,p=t?t.end:s.end,g=s.minEndPTS||p,A=s.maxStartPTS||h,y=0;y<l.length;y++){var E=l.start(y)-this.bufferPadding,C=l.end(y)+this.bufferPadding;if(A>=E&&g<=C){u.time.push({startPTS:Math.max(h,l.start(y)),endPTS:Math.min(p,l.end(y))});break}else if(h<C&&p>E)u.partial=!0,u.time.push({startPTS:Math.max(h,l.start(y)),endPTS:Math.min(p,l.end(y))});else if(p<=E)break}return u},n.getPartialFragment=function(s){var t=null,i,l,u,h=0,p=this.bufferPadding,g=this.fragments;return Object.keys(g).forEach(function(A){var y=g[A];if(!y)return;o(y)&&(l=y.body.start-p,u=y.body.end+p,s>=l&&s<=u&&(i=Math.min(s-l,u-s),h<=i&&(t=y.body,h=i)))}),t},n.getState=function(s){var t=r(s),i=this.fragments[t];return i?i.buffered?o(i)?f.PARTIAL:f.OK:i.backtrack?f.BACKTRACKED:f.APPENDING:f.NOT_LOADED},n.backtrack=function(s,t){var i=r(s),l=this.fragments[i];if(!l||l.backtrack)return null;var u=l.backtrack=t||l.loaded;return l.loaded=null,u},n.getBacktrackData=function(s){var t=r(s),i=this.fragments[t];if(i){var l,u=i.backtrack;if(u!=null&&(l=u.payload)!==null&&l!==void 0&&l.byteLength)return u;this.removeFragment(s)}return null},n.isTimeBuffered=function(s,t,i){for(var l,u,h=0;h<i.length;h++){if(l=i.start(h)-this.bufferPadding,u=i.end(h)+this.bufferPadding,s>=l&&t<=u)return!0;if(t<=l)return!1}return!1},n.onFragLoaded=function(s,t){var i=t.frag,l=t.part;if(i.sn==="initSegment"||i.bitrateTest||l)return;var u=r(i);this.fragments[u]={body:i,loaded:t,backtrack:null,buffered:!1,range:Object.create(null)}},n.onBufferAppended=function(s,t){var i=this,l=t.frag,u=t.part,h=t.timeRanges;if(l.type===m.PlaylistLevelType.MAIN)if(this.activeFragment=l,u){var p=this.activeParts;p||(this.activeParts=p=[]),p.push(u)}else this.activeParts=null;this.timeRanges=h,Object.keys(h).forEach(function(g){var A=h[g];if(i.detectEvictedFragments(g,A),!u)for(var y=0;y<A.length;y++)l.appendedPTS=Math.max(A.end(y),l.appendedPTS||0)})},n.onFragBuffered=function(s,t){this.detectPartialFragments(t)},n.hasFragment=function(s){var t=r(s);return!!this.fragments[t]},n.removeFragmentsInRange=function(s,t,i){var l=this;Object.keys(this.fragments).forEach(function(u){var h=l.fragments[u];if(!h)return;if(h.buffered){var p=h.body;p.type===i&&p.start<t&&p.end>s&&l.removeFragment(p)}})},n.removeFragment=function(s){var t=r(s);s.stats.loaded=0,s.clearElementaryStreamInfo(),delete this.fragments[t]},n.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},a}();function o(a){var n,e;return a.buffered&&(((n=a.range.video)===null||n===void 0?void 0:n.partial)||((e=a.range.audio)===null||e===void 0?void 0:e.partial))}function r(a){return a.type+"_"+a.level+"_"+a.urlId+"_"+a.sn}},"./src/controller/gap-controller.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"STALL_MINIMUM_DURATION_MS",function(){return o}),v.d(T,"MAX_START_GAP_JUMP",function(){return r}),v.d(T,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return a}),v.d(T,"SKIP_BUFFER_RANGE_START",function(){return n}),v.d(T,"default",function(){return e});var S=v("./src/utils/buffer-helper.ts"),m=v("./src/errors.ts"),f=v("./src/events.ts"),c=v("./src/utils/logger.ts"),o=250,r=2,a=.1,n=.05,e=function(){function s(i,l,u,h){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=l,this.fragmentTracker=u,this.hls=h}var t=s.prototype;return t.destroy=function(){this.hls=this.fragmentTracker=this.media=null},t.poll=function(l){var u=this.config,h=this.media,p=this.stalled,g=h.currentTime,A=h.seeking,y=this.seeking&&!A,E=!this.seeking&&A;if(this.seeking=A,g!==l){if(this.moved=!0,p!==null){if(this.stallReported){var C=self.performance.now()-p;c.logger.warn("playback not stuck anymore @"+g+", after "+Math.round(C)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((E||y)&&(this.stalled=null),h.paused||h.ended||h.playbackRate===0||!S.BufferHelper.getBuffered(h).length)return;var w=S.BufferHelper.bufferInfo(h,g,0),b=w.len>0,I=w.nextStart||0;if(!b&&!I)return;if(A){var _=w.len>r,L=!I||I-g>r&&!this.fragmentTracker.getPartialFragment(g);if(_||L)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var D,N=Math.max(I,w.start||0)-g,R=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,B=R==null||((D=R.details)===null||D===void 0)?void 0:D.live,M=B?R.details.targetduration*2:r;if(N>0&&N<=M){this._trySkipBufferHole(null);return}}var H=self.performance.now();if(p===null){this.stalled=H;return}var F=H-p;!A&&F>=o&&this._reportStall(w.len);var K=S.BufferHelper.bufferInfo(h,g,u.maxBufferHole);this._tryFixBufferStall(K,F)},t._tryFixBufferStall=function(l,u){var h=this.config,p=this.fragmentTracker,g=this.media,A=g.currentTime,y=p.getPartialFragment(A);if(y){var E=this._trySkipBufferHole(y);if(E)return}l.len>h.maxBufferHole&&u>h.highBufferWatchdogPeriod*1e3&&(c.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},t._reportStall=function(l){var u=this.hls,h=this.media,p=this.stallReported;p||(this.stallReported=!0,c.logger.warn("Playback stalling at @"+h.currentTime+" due to low buffer (buffer="+l+")"),u.trigger(f.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:l}))},t._trySkipBufferHole=function(l){for(var u=this.config,h=this.hls,p=this.media,g=p.currentTime,A=0,y=S.BufferHelper.getBuffered(p),E=0;E<y.length;E++){var C=y.start(E);if(g+u.maxBufferHole>=A&&g<C){var w=Math.max(C+n,p.currentTime+a);return c.logger.warn("skipping hole, adjusting currentTime from "+g+" to "+w),this.moved=!0,this.stalled=null,p.currentTime=w,l&&h.trigger(f.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+g+" to "+w,frag:l}),w}A=y.end(E)}return 0},t._tryNudgeBuffer=function(){var l=this.config,u=this.hls,h=this.media,p=h.currentTime,g=(this.nudgeRetry||0)+1;if(this.nudgeRetry=g,g<l.nudgeMaxRetry){var A=p+g*l.nudgeOffset;c.logger.warn("Nudging 'currentTime' from "+p+" to "+A),h.currentTime=A,u.trigger(f.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else c.logger.error("Playhead still not moving while enough data buffered @"+p+" after "+l.nudgeMaxRetry+" nudges"),u.trigger(f.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},s}()},"./src/controller/id3-track-controller.ts":function(x,T,v){"use strict";v.r(T);var S=v("./src/events.ts"),m=v("./src/utils/texttrack-utils.ts"),f=v("./src/demux/id3.ts"),c=.25,o=function(){function r(n){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=n,this._registerListeners()}var a=r.prototype;return a.destroy=function(){this._unregisterListeners()},a._registerListeners=function(){var e=this.hls;e.on(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(S.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(S.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},a._unregisterListeners=function(){var e=this.hls;e.off(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(S.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(S.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},a.onMediaAttached=function(e,s){this.media=s.media},a.onMediaDetaching=function(){if(!this.id3Track)return;Object(m.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},a.getID3Track=function(e){if(!this.media)return;for(var s=0;s<e.length;s++){var t=e[s];if(t.kind==="metadata"&&t.label==="id3")return Object(m.sendAddTrackEvent)(t,this.media),t}return this.media.addTextTrack("metadata","id3")},a.onFragParsingMetadata=function(e,s){if(!this.media)return;var t=s.frag,i=s.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var l=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,u=0;u<i.length;u++){var h=f.getID3Frames(i[u].data);if(h){var p=i[u].pts,g=u<i.length-1?i[u+1].pts:t.end,A=g-p;A<=0&&(g=p+c);for(var y=0;y<h.length;y++){var E=h[y];if(!f.isTimeStampFrame(E)){var C=new l(p,g,"");C.value=E,this.id3Track.addCue(C)}}}}},a.onBufferFlushing=function(e,s){var t=s.startOffset,i=s.endOffset,l=s.type;if(!l||l==="audio"){var u=this.id3Track;u&&Object(m.removeCuesInRange)(u,t,i)}},r}();T.default=o},"./src/controller/latency-controller.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"default",function(){return r});var S=v("./src/errors.ts"),m=v("./src/events.ts"),f=v("./src/utils/logger.ts");function c(a,n){for(var e=0;e<n.length;e++){var s=n[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,s.key,s)}}function o(a,n,e){return n&&c(a.prototype,n),e&&c(a,e),a}var r=function(){function a(e){var s=this;this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return s.timeupdate()},this.hls=e,this.config=e.config,this.registerListeners()}var n=a.prototype;return n.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},n.registerListeners=function(){this.hls.on(m.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(m.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(m.Events.ERROR,this.onError,this)},n.unregisterListeners=function(){this.hls.off(m.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(m.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(m.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(m.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(m.Events.ERROR,this.onError)},n.onMediaAttached=function(s,t){this.media=t.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},n.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},n.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},n.onLevelUpdated=function(s,t){var i=t.details;this.levelDetails=i,i.advanced&&this.timeupdate(),!i.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},n.onError=function(s,t){if(t.details!==S.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,f.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},n.timeupdate=function(){var s=this.media,t=this.levelDetails;if(!s||!t)return;this.currentTime=s.currentTime;var i=this.computeLatency();if(i===null)return;this._latency=i;var l=this.config,u=l.lowLatencyMode,h=l.maxLiveSyncPlaybackRate;if(!u||h===1)return;var p=this.targetLatency;if(p===null)return;var g=i-p,A=Math.min(this.maxLatency,p+t.targetduration),y=g<A;if(t.live&&y&&g>.05&&this.forwardBufferLength>1){var E=Math.min(2,Math.max(1,h)),C=Math.round(2/(1+Math.exp(-.75*g-this.edgeStalled))*20)/20;s.playbackRate=Math.min(E,Math.max(1,C))}else s.playbackRate!==1&&s.playbackRate!==0&&(s.playbackRate=1)},n.estimateLiveEdge=function(){var s=this.levelDetails;return s===null?null:s.edge+s.age},n.computeLatency=function(){var s=this.estimateLiveEdge();return s===null?null:s-this.currentTime},o(a,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var s=this.config,t=this.levelDetails;return s.liveMaxLatencyDuration!==void 0?s.liveMaxLatencyDuration:t?s.liveMaxLatencyDurationCount*t.targetduration:0}},{key:"targetLatency",get:function(){var s=this.levelDetails;if(s===null)return null;var t=s.holdBack,i=s.partHoldBack,l=s.targetduration,u=this.config,h=u.liveSyncDuration,p=u.liveSyncDurationCount,g=u.lowLatencyMode,A=this.hls.userConfig,y=g&&i||t;(A.liveSyncDuration||A.liveSyncDurationCount||y===0)&&(y=h!==void 0?h:p*l);var E=l,C=1;return y+Math.min(this.stallCount*C,E)}},{key:"liveSyncPosition",get:function(){var s=this.estimateLiveEdge(),t=this.targetLatency,i=this.levelDetails;if(s===null||t===null||i===null)return null;var l=i.edge,u=s-t-this.edgeStalled,h=l-i.totalduration,p=l-(this.config.lowLatencyMode&&i.partTarget||i.targetduration);return Math.min(Math.max(h,u),p)}},{key:"drift",get:function(){var s=this.levelDetails;return s===null?1:s.drift}},{key:"edgeStalled",get:function(){var s=this.levelDetails;if(s===null)return 0;var t=(this.config.lowLatencyMode&&s.partTarget||s.targetduration)*3;return Math.max(s.age-t,0)}},{key:"forwardBufferLength",get:function(){var s=this.media,t=this.levelDetails;if(!s||!t)return 0;var i=s.buffered.length;return i?s.buffered.end(i-1):t.edge-this.currentTime}}]),a}()},"./src/controller/level-controller.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"default",function(){return u});var S=v("./src/types/level.ts"),m=v("./src/events.ts"),f=v("./src/errors.ts"),c=v("./src/utils/codecs.ts"),o=v("./src/controller/level-helper.ts"),r=v("./src/controller/base-playlist-controller.ts"),a=v("./src/types/loader.ts");function n(){return n=Object.assign||function(h){for(var p=1;p<arguments.length;p++){var g=arguments[p];for(var A in g)Object.prototype.hasOwnProperty.call(g,A)&&(h[A]=g[A])}return h},n.apply(this,arguments)}function e(h,p){for(var g=0;g<p.length;g++){var A=p[g];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(h,A.key,A)}}function s(h,p,g){return p&&e(h.prototype,p),g&&e(h,g),h}function t(h,p){h.prototype=Object.create(p.prototype),h.prototype.constructor=h,i(h,p)}function i(h,p){return i=Object.setPrototypeOf||function(A,y){return A.__proto__=y,A},i(h,p)}var l=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),u=function(h){t(p,h);function p(A){var y;return y=h.call(this,A,"[level-controller]")||this,y._levels=[],y._firstLevel=-1,y._startLevel=void 0,y.currentLevelIndex=-1,y.manualLevelIndex=-1,y.onParsedComplete=void 0,y._registerListeners(),y}var g=p.prototype;return g._registerListeners=function(){var y=this.hls;y.on(m.Events.MANIFEST_LOADED,this.onManifestLoaded,this),y.on(m.Events.LEVEL_LOADED,this.onLevelLoaded,this),y.on(m.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),y.on(m.Events.FRAG_LOADED,this.onFragLoaded,this),y.on(m.Events.ERROR,this.onError,this)},g._unregisterListeners=function(){var y=this.hls;y.off(m.Events.MANIFEST_LOADED,this.onManifestLoaded,this),y.off(m.Events.LEVEL_LOADED,this.onLevelLoaded,this),y.off(m.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),y.off(m.Events.FRAG_LOADED,this.onFragLoaded,this),y.off(m.Events.ERROR,this.onError,this)},g.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,h.prototype.destroy.call(this)},g.startLoad=function(){var y=this._levels;y.forEach(function(E){E.loadError=0}),h.prototype.startLoad.call(this)},g.onManifestLoaded=function(y,E){var C=[],w=[],b=[],I,_={},L,D=!1,N=!1,R=!1;if(E.levels.forEach(function(F){var K=F.attrs;D=D||!!(F.width&&F.height),N=N||!!F.videoCodec,R=R||!!F.audioCodec,l&&F.audioCodec&&F.audioCodec.indexOf("mp4a.40.34")!==-1&&(F.audioCodec=void 0);var j=F.bitrate+"-"+F.attrs.RESOLUTION+"-"+F.attrs.CODECS;L=_[j],L?L.url.push(F.url):(L=new S.Level(F),_[j]=L,C.push(L)),K&&(K.AUDIO&&Object(o.addGroupId)(L,"audio",K.AUDIO),K.SUBTITLES&&Object(o.addGroupId)(L,"text",K.SUBTITLES))}),(D||N)&&R&&(C=C.filter(function(F){var K=F.videoCodec,j=F.width,V=F.height;return!!K||!!(j&&V)})),C=C.filter(function(F){var K=F.audioCodec,j=F.videoCodec;return(!K||Object(c.isCodecSupportedInMp4)(K,"audio"))&&(!j||Object(c.isCodecSupportedInMp4)(j,"video"))}),E.audioTracks&&(w=E.audioTracks.filter(function(F){return!F.audioCodec||Object(c.isCodecSupportedInMp4)(F.audioCodec,"audio")}),Object(o.assignTrackIdsByGroup)(w)),E.subtitles&&(b=E.subtitles,Object(o.assignTrackIdsByGroup)(b)),C.length>0){I=C[0].bitrate,C.sort(function(F,K){return F.bitrate-K.bitrate}),this._levels=C;for(var B=0;B<C.length;B++)if(C[B].bitrate===I){this._firstLevel=B,this.log("manifest loaded, "+C.length+" level(s) found, first bitrate: "+I);break}var M=R&&!N,H={levels:C,audioTracks:w,subtitleTracks:b,firstLevel:this._firstLevel,stats:E.stats,audio:R,video:N,altAudio:!M&&w.some(function(F){return!!F.url})};this.hls.trigger(m.Events.MANIFEST_PARSED,H),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(m.Events.ERROR,{type:f.ErrorTypes.MEDIA_ERROR,details:f.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:E.url,reason:"no level with compatible codecs found in manifest"})},g.onError=function(y,E){if(h.prototype.onError.call(this,y,E),E.fatal)return;var C=E.context,w=this._levels[this.currentLevelIndex];if(C&&(C.type===a.PlaylistContextType.AUDIO_TRACK&&w.audioGroupIds&&C.groupId===w.audioGroupIds[w.urlId]||C.type===a.PlaylistContextType.SUBTITLE_TRACK&&w.textGroupIds&&C.groupId===w.textGroupIds[w.urlId])){this.redundantFailover(this.currentLevelIndex);return}var b=!1,I=!0,_;switch(E.details){case f.ErrorDetails.FRAG_LOAD_ERROR:case f.ErrorDetails.FRAG_LOAD_TIMEOUT:case f.ErrorDetails.KEY_LOAD_ERROR:case f.ErrorDetails.KEY_LOAD_TIMEOUT:if(E.frag){var L=this._levels[E.frag.level];L?(L.fragmentError++,L.fragmentError>this.hls.config.fragLoadingMaxRetry&&(_=E.frag.level)):_=E.frag.level}break;case f.ErrorDetails.LEVEL_LOAD_ERROR:case f.ErrorDetails.LEVEL_LOAD_TIMEOUT:C&&(C.deliveryDirectives&&(I=!1),_=C.level),b=!0;break;case f.ErrorDetails.REMUX_ALLOC_ERROR:_=E.level,b=!0;break}_!==void 0&&this.recoverLevel(E,_,b,I)},g.recoverLevel=function(y,E,C,w){var b=y.details,I=this._levels[E];if(I.loadError++,C){var _=this.retryLoadingOrFail(y);if(_)y.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(w){var L=I.url.length;if(L>1&&I.loadError<L)y.levelRetry=!0,this.redundantFailover(E);else if(this.manualLevelIndex===-1){var D=E===0?this._levels.length-1:E-1;this.currentLevelIndex!==D&&this._levels[D].loadError===0&&(this.warn(b+": switch to "+D),y.levelRetry=!0,this.hls.nextAutoLevel=D)}}},g.redundantFailover=function(y){var E=this._levels[y],C=E.url.length;if(C>1){var w=(E.urlId+1)%C;this.warn("Switching to redundant URL-id "+w),this._levels.forEach(function(b){b.urlId=w}),this.level=y}},g.onFragLoaded=function(y,E){var C=E.frag;if(C!==void 0&&C.type===a.PlaylistLevelType.MAIN){var w=this._levels[C.level];w!==void 0&&(w.fragmentError=0,w.loadError=0)}},g.onLevelLoaded=function(y,E){var C,w=E.level,b=E.details,I=this._levels[w];if(!I){var _;this.warn("Invalid level index "+w),(_=E.deliveryDirectives)!==null&&_!==void 0&&_.skip&&(b.deltaUpdateFailed=!0);return}w===this.currentLevelIndex?(I.fragmentError===0&&(I.loadError=0,this.retryCount=0),this.playlistLoaded(w,E,I.details)):(C=E.deliveryDirectives)!==null&&C!==void 0&&C.skip&&(b.deltaUpdateFailed=!0)},g.onAudioTrackSwitched=function(y,E){var C=this.hls.levels[this.currentLevelIndex];if(!C)return;if(C.audioGroupIds){for(var w=-1,b=this.hls.audioTracks[E.id].groupId,I=0;I<C.audioGroupIds.length;I++)if(C.audioGroupIds[I]===b){w=I;break}w!==C.urlId&&(C.urlId=w,this.startLoad())}},g.loadPlaylist=function(y){var E=this.currentLevelIndex,C=this._levels[E];if(this.canLoad&&C&&C.url.length>0){var w=C.urlId,b=C.url[w];if(y)try{b=y.addDirectives(b)}catch(I){this.warn("Could not construct new URL with HLS Delivery Directives: "+I)}this.log("Attempt loading level index "+E+(y?" at sn "+y.msn+" part "+y.part:"")+" with URL-id "+w+" "+b),this.clearTimer(),this.hls.trigger(m.Events.LEVEL_LOADING,{url:b,level:E,id:w,deliveryDirectives:y||null})}},g.removeLevel=function(y,E){var C=function(I,_){return _!==E},w=this._levels.filter(function(b,I){return I!==y?!0:b.url.length>1&&E!==void 0?(b.url=b.url.filter(C),b.audioGroupIds&&(b.audioGroupIds=b.audioGroupIds.filter(C)),b.textGroupIds&&(b.textGroupIds=b.textGroupIds.filter(C)),b.urlId=0,!0):!1}).map(function(b,I){var _=b.details;return _!=null&&_.fragments&&_.fragments.forEach(function(L){L.level=I}),b});this._levels=w,this.hls.trigger(m.Events.LEVELS_UPDATED,{levels:w})},s(p,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(y){var E,C=this._levels;if(C.length===0)return;if(this.currentLevelIndex===y&&(E=C[y])!==null&&E!==void 0&&E.details)return;if(y<0||y>=C.length){var w=y<0;if(this.hls.trigger(m.Events.ERROR,{type:f.ErrorTypes.OTHER_ERROR,details:f.ErrorDetails.LEVEL_SWITCH_ERROR,level:y,fatal:w,reason:"invalid level idx"}),w)return;y=Math.min(y,C.length-1)}this.clearTimer();var b=this.currentLevelIndex,I=C[b],_=C[y];this.log("switching to level "+y+" from "+b),this.currentLevelIndex=y;var L=n({},_,{level:y,maxBitrate:_.maxBitrate,uri:_.uri,urlId:_.urlId});delete L._urlId,this.hls.trigger(m.Events.LEVEL_SWITCHING,L);var D=_.details;if(!D||D.live){var N=this.switchParams(_.uri,I==null?void 0:I.details);this.loadPlaylist(N)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(y){this.manualLevelIndex=y,this._startLevel===void 0&&(this._startLevel=y),y!==-1&&(this.level=y)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(y){this._firstLevel=y}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var y=this.hls.config.startLevel;return y!==void 0?y:this._firstLevel}else return this._startLevel},set:function(y){this._startLevel=y}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(y){this.level=y,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=y)}}]),p}(r.default)},"./src/controller/level-helper.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"addGroupId",function(){return f}),v.d(T,"assignTrackIdsByGroup",function(){return c}),v.d(T,"updatePTS",function(){return o}),v.d(T,"updateFragPTSDTS",function(){return a}),v.d(T,"mergeDetails",function(){return n}),v.d(T,"mapPartIntersection",function(){return e}),v.d(T,"mapFragmentIntersection",function(){return s}),v.d(T,"adjustSliding",function(){return t}),v.d(T,"addSliding",function(){return i}),v.d(T,"computeReloadInterval",function(){return l}),v.d(T,"getFragmentWithSN",function(){return u}),v.d(T,"getPartWith",function(){return h});var S=v("./src/polyfills/number.ts"),m=v("./src/utils/logger.ts");function f(p,g,A){switch(g){case"audio":p.audioGroupIds||(p.audioGroupIds=[]),p.audioGroupIds.push(A);break;case"text":p.textGroupIds||(p.textGroupIds=[]),p.textGroupIds.push(A);break}}function c(p){var g={};p.forEach(function(A){var y=A.groupId||"";A.id=g[y]=g[y]||0,g[y]++})}function o(p,g,A){var y=p[g],E=p[A];r(y,E)}function r(p,g){var A=g.startPTS;if(Object(S.isFiniteNumber)(A)){var y=0,E;g.sn>p.sn?(y=A-p.start,E=p):(y=p.start-A,E=g),E.duration!==y&&(E.duration=y)}else if(g.sn>p.sn){var C=p.cc===g.cc;C&&p.minEndPTS?g.start=p.start+(p.minEndPTS-p.start):g.start=p.start+p.duration}else g.start=Math.max(p.start-g.duration,0)}function a(p,g,A,y,E,C){var w=y-A;w<=0&&(m.logger.warn("Fragment should have a positive duration",g),y=A+g.duration,C=E+g.duration);var b=A,I=y,_=g.startPTS,L=g.endPTS;if(Object(S.isFiniteNumber)(_)){var D=Math.abs(_-A);Object(S.isFiniteNumber)(g.deltaPTS)?g.deltaPTS=Math.max(D,g.deltaPTS):g.deltaPTS=D,b=Math.max(A,_),A=Math.min(A,_),E=Math.min(E,g.startDTS),I=Math.min(y,L),y=Math.max(y,L),C=Math.max(C,g.endDTS)}g.duration=y-A;var N=A-g.start;g.appendedPTS=y,g.start=g.startPTS=A,g.maxStartPTS=b,g.startDTS=E,g.endPTS=y,g.minEndPTS=I,g.endDTS=C;var R=g.sn;if(!p||R<p.startSN||R>p.endSN)return 0;var B,M=R-p.startSN,H=p.fragments;for(H[M]=g,B=M;B>0;B--)r(H[B],H[B-1]);for(B=M;B<H.length-1;B++)r(H[B],H[B+1]);return p.fragmentHint&&r(H[H.length-1],p.fragmentHint),p.PTSKnown=p.alignedSliding=!0,N}function n(p,g){for(var A=null,y=p.fragments,E=y.length-1;E>=0;E--){var C=y[E].initSegment;if(C){A=C;break}}p.fragmentHint&&delete p.fragmentHint.endPTS;var w=0,b;if(s(p,g,function(R,B){var M;R.relurl&&(w=R.cc-B.cc),Object(S.isFiniteNumber)(R.startPTS)&&Object(S.isFiniteNumber)(R.endPTS)&&(B.start=B.startPTS=R.startPTS,B.startDTS=R.startDTS,B.appendedPTS=R.appendedPTS,B.maxStartPTS=R.maxStartPTS,B.endPTS=R.endPTS,B.endDTS=R.endDTS,B.minEndPTS=R.minEndPTS,B.duration=R.endPTS-R.startPTS,B.duration&&(b=B),g.PTSKnown=g.alignedSliding=!0),B.elementaryStreams=R.elementaryStreams,B.loader=R.loader,B.stats=R.stats,B.urlId=R.urlId,R.initSegment?(B.initSegment=R.initSegment,A=R.initSegment):(!B.initSegment||B.initSegment.relurl==((M=A)===null||M===void 0?void 0:M.relurl))&&(B.initSegment=A)}),g.skippedSegments&&(g.deltaUpdateFailed=g.fragments.some(function(R){return!R}),g.deltaUpdateFailed)){m.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var I=g.skippedSegments;I--;)g.fragments.shift();g.startSN=g.fragments[0].sn,g.startCC=g.fragments[0].cc}var _=g.fragments;if(w){m.logger.warn("discontinuity sliding from playlist, take drift into account");for(var L=0;L<_.length;L++)_[L].cc+=w}g.skippedSegments&&(g.startCC=g.fragments[0].cc),e(p.partList,g.partList,function(R,B){B.elementaryStreams=R.elementaryStreams,B.stats=R.stats}),b?a(g,b,b.startPTS,b.endPTS,b.startDTS,b.endDTS):t(p,g),_.length&&(g.totalduration=g.edge-_[0].start),g.driftStartTime=p.driftStartTime,g.driftStart=p.driftStart;var D=g.advancedDateTime;if(g.advanced&&D){var N=g.edge;g.driftStart||(g.driftStartTime=D,g.driftStart=N),g.driftEndTime=D,g.driftEnd=N}else g.driftEndTime=p.driftEndTime,g.driftEnd=p.driftEnd,g.advancedDateTime=p.advancedDateTime}function e(p,g,A){if(p&&g)for(var y=0,E=0,C=p.length;E<=C;E++){var w=p[E],b=g[E+y];w&&b&&w.index===b.index&&w.fragment.sn===b.fragment.sn?A(w,b):y--}}function s(p,g,A){for(var y=g.skippedSegments,E=Math.max(p.startSN,g.startSN)-g.startSN,C=(p.fragmentHint?1:0)+(y?g.endSN:Math.min(p.endSN,g.endSN))-g.startSN,w=g.startSN-p.startSN,b=g.fragmentHint?g.fragments.concat(g.fragmentHint):g.fragments,I=p.fragmentHint?p.fragments.concat(p.fragmentHint):p.fragments,_=E;_<=C;_++){var L=I[w+_],D=b[_];y&&!D&&_<y&&(D=g.fragments[_]=L),L&&D&&A(L,D)}}function t(p,g){var A=g.startSN+g.skippedSegments-p.startSN,y=p.fragments;if(A<0||A>=y.length)return;i(g,y[A].start)}function i(p,g){if(g){for(var A=p.fragments,y=p.skippedSegments;y<A.length;y++)A[y].start+=g;p.fragmentHint&&(p.fragmentHint.start+=g)}}function l(p,g){var A=1e3*p.levelTargetDuration,y=A/2,E=p.age,C=E>0&&E<A*3,w=g.loading.end-g.loading.start,b,I=p.availabilityDelay;if(p.updated===!1)if(C){var _=333*p.misses;b=Math.max(Math.min(y,w*2),_),p.availabilityDelay=(p.availabilityDelay||0)+b}else b=y;else C?(I=Math.min(I||A/2,E),p.availabilityDelay=I,b=I+A-E):b=A-w;return Math.round(b)}function u(p,g,A){if(!p||!p.details)return null;var y=p.details,E=y.fragments[g-y.startSN];return E||(E=y.fragmentHint,E&&E.sn===g?E:g<y.startSN&&A&&A.sn===g?A:null)}function h(p,g,A){if(!p||!p.details)return null;var y=p.details.partList;if(y)for(var E=y.length;E--;){var C=y[E];if(C.index===A&&C.fragment.sn===g)return C}return null}},"./src/controller/stream-controller.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"default",function(){return y});var S=v("./src/polyfills/number.ts"),m=v("./src/controller/base-stream-controller.ts"),f=v("./src/is-supported.ts"),c=v("./src/events.ts"),o=v("./src/utils/buffer-helper.ts"),r=v("./src/controller/fragment-tracker.ts"),a=v("./src/types/loader.ts"),n=v("./src/loader/fragment.ts"),e=v("./src/demux/transmuxer-interface.ts"),s=v("./src/types/transmuxer.ts"),t=v("./src/controller/gap-controller.ts"),i=v("./src/errors.ts"),l=v("./src/utils/logger.ts");function u(E,C){for(var w=0;w<C.length;w++){var b=C[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(E,b.key,b)}}function h(E,C,w){return C&&u(E.prototype,C),w&&u(E,w),E}function p(E,C){E.prototype=Object.create(C.prototype),E.prototype.constructor=E,g(E,C)}function g(E,C){return g=Object.setPrototypeOf||function(b,I){return b.__proto__=I,b},g(E,C)}var A=100,y=function(E){p(C,E);function C(b,I){var _;return _=E.call(this,b,I,"[stream-controller]")||this,_.audioCodecSwap=!1,_.gapController=null,_.level=-1,_._forceStartLoad=!1,_.altAudio=!1,_.audioOnly=!1,_.fragPlaying=null,_.onvplaying=null,_.onvseeked=null,_.fragLastKbps=0,_.stalled=!1,_.couldBacktrack=!1,_.audioCodecSwitch=!1,_.videoBuffer=null,_._registerListeners(),_}var w=C.prototype;return w._registerListeners=function(){var I=this.hls;I.on(c.Events.MEDIA_ATTACHED,this.onMediaAttached,this),I.on(c.Events.MEDIA_DETACHING,this.onMediaDetaching,this),I.on(c.Events.MANIFEST_LOADING,this.onManifestLoading,this),I.on(c.Events.MANIFEST_PARSED,this.onManifestParsed,this),I.on(c.Events.LEVEL_LOADING,this.onLevelLoading,this),I.on(c.Events.LEVEL_LOADED,this.onLevelLoaded,this),I.on(c.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),I.on(c.Events.ERROR,this.onError,this),I.on(c.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),I.on(c.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),I.on(c.Events.BUFFER_CREATED,this.onBufferCreated,this),I.on(c.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),I.on(c.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),I.on(c.Events.FRAG_BUFFERED,this.onFragBuffered,this)},w._unregisterListeners=function(){var I=this.hls;I.off(c.Events.MEDIA_ATTACHED,this.onMediaAttached,this),I.off(c.Events.MEDIA_DETACHING,this.onMediaDetaching,this),I.off(c.Events.MANIFEST_LOADING,this.onManifestLoading,this),I.off(c.Events.MANIFEST_PARSED,this.onManifestParsed,this),I.off(c.Events.LEVEL_LOADED,this.onLevelLoaded,this),I.off(c.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),I.off(c.Events.ERROR,this.onError,this),I.off(c.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),I.off(c.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),I.off(c.Events.BUFFER_CREATED,this.onBufferCreated,this),I.off(c.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),I.off(c.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),I.off(c.Events.FRAG_BUFFERED,this.onFragBuffered,this)},w.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},w.startLoad=function(I){if(this.levels){var _=this.lastCurrentTime,L=this.hls;if(this.stopLoad(),this.setInterval(A),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var D=L.startLevel;D===-1&&(L.config.testBandwidth?(D=0,this.bitrateTest=!0):D=L.nextAutoLevel),this.level=L.nextLoadLevel=D,this.loadedmetadata=!1}_>0&&I===-1&&(this.log("Override startPosition with lastCurrentTime @"+_.toFixed(3)),I=_),this.state=m.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=I,this.tick()}else this._forceStartLoad=!0,this.state=m.State.STOPPED},w.stopLoad=function(){this._forceStartLoad=!1,E.prototype.stopLoad.call(this)},w.doTick=function(){switch(this.state){case m.State.IDLE:this.doTickIdle();break;case m.State.WAITING_LEVEL:{var I,_=this.levels,L=this.level,D=_==null||((I=_[L])===null||I===void 0)?void 0:I.details;if(D&&(!D.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(D))break;this.state=m.State.IDLE;break}break}case m.State.FRAG_LOADING_WAITING_RETRY:{var N,R=self.performance.now(),B=this.retryDate;(!B||R>=B||(N=this.media)!==null&&N!==void 0&&N.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=m.State.IDLE)}break;default:break}this.onTickEnd()},w.onTickEnd=function(){E.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},w.doTickIdle=function(){var I,_,L=this.hls,D=this.levelLastLoaded,N=this.levels,R=this.media,B=L.config,M=L.nextLoadLevel;if(D===null||!R&&(this.startFragRequested||!B.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!N||!N[M])return;var H=N[M];this.level=L.nextLoadLevel=M;var F=H.details;if(!F||this.state===m.State.WAITING_LEVEL||F.live&&this.levelLastLoaded!==M){this.state=m.State.WAITING_LEVEL;return}var K=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:R,a.PlaylistLevelType.MAIN);if(K===null)return;var j=K.len,V=this.getMaxBufferLength(H.maxBitrate);if(j>=V)return;if(this._streamEnded(K,F)){var z={};this.altAudio&&(z.type="video"),this.hls.trigger(c.Events.BUFFER_EOS,z),this.state=m.State.ENDED;return}var Y=K.end,ee=this.getNextFragment(Y,F);if(this.couldBacktrack&&!this.fragPrevious&&ee&&ee.sn!=="initSegment"){var fe=ee.sn-F.startSN;fe>1&&(ee=F.fragments[fe-1],this.fragmentTracker.removeFragment(ee))}if(ee&&this.fragmentTracker.getState(ee)===r.FragmentState.OK&&this.nextLoadPosition>Y){var ie=this.audioOnly&&!this.altAudio?n.ElementaryStreamTypes.AUDIO:n.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(R,ie,a.PlaylistLevelType.MAIN),ee=this.getNextFragment(this.nextLoadPosition,F)}if(!ee)return;ee.initSegment&&!ee.initSegment.data&&!this.bitrateTest&&(ee=ee.initSegment),((I=ee.decryptdata)===null||I===void 0?void 0:I.keyFormat)==="identity"&&!((_=ee.decryptdata)!==null&&_!==void 0&&_.key)?this.loadKey(ee,F):this.loadFragment(ee,F,Y)},w.loadFragment=function(I,_,L){var D,N=this.fragmentTracker.getState(I);if(this.fragCurrent=I,N===r.FragmentState.BACKTRACKED){var R=this.fragmentTracker.getBacktrackData(I);if(R){this._handleFragmentLoadProgress(R),this._handleFragmentLoadComplete(R);return}else N=r.FragmentState.NOT_LOADED}N===r.FragmentState.NOT_LOADED||N===r.FragmentState.PARTIAL?I.sn==="initSegment"?this._loadInitSegment(I):this.bitrateTest?(I.bitrateTest=!0,this.log("Fragment "+I.sn+" of level "+I.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(I)):(this.startFragRequested=!0,E.prototype.loadFragment.call(this,I,_,L)):N===r.FragmentState.APPENDING?this.reduceMaxBufferLength(I.duration)&&this.fragmentTracker.removeFragment(I):((D=this.media)===null||D===void 0?void 0:D.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},w.getAppendedFrag=function(I){var _=this.fragmentTracker.getAppendedFrag(I,a.PlaylistLevelType.MAIN);return _&&"fragment"in _?_.fragment:_},w.getBufferedFrag=function(I){return this.fragmentTracker.getBufferedFrag(I,a.PlaylistLevelType.MAIN)},w.followingBufferedFrag=function(I){return I?this.getBufferedFrag(I.end+.5):null},w.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},w.nextLevelSwitch=function(){var I=this.levels,_=this.media;if(_!=null&&_.readyState){var L,D=this.getAppendedFrag(_.currentTime);if(D&&D.start>1&&this.flushMainBuffer(0,D.start-1),!_.paused&&I){var N=this.hls.nextLoadLevel,R=I[N],B=this.fragLastKbps;B&&this.fragCurrent?L=this.fragCurrent.duration*R.maxBitrate/(1e3*B)+1:L=0}else L=0;var M=this.getBufferedFrag(_.currentTime+L);if(M){var H=this.followingBufferedFrag(M);if(H){this.abortCurrentFrag();var F=H.maxStartPTS?H.maxStartPTS:H.start,K=H.duration,j=Math.max(M.end,F+Math.min(Math.max(K-this.config.maxFragLookUpTolerance,K*.5),K*.75));this.flushMainBuffer(j,Number.POSITIVE_INFINITY)}}}},w.abortCurrentFrag=function(){var I=this.fragCurrent;this.fragCurrent=null,I!=null&&I.loader&&I.loader.abort(),this.state===m.State.KEY_LOADING&&(this.state=m.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},w.flushMainBuffer=function(I,_){E.prototype.flushMainBuffer.call(this,I,_,this.altAudio?"video":null)},w.onMediaAttached=function(I,_){E.prototype.onMediaAttached.call(this,I,_);var L=_.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),L.addEventListener("playing",this.onvplaying),L.addEventListener("seeked",this.onvseeked),this.gapController=new t.default(this.config,L,this.fragmentTracker,this.hls)},w.onMediaDetaching=function(){var I=this.media;I&&(I.removeEventListener("playing",this.onvplaying),I.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),E.prototype.onMediaDetaching.call(this)},w.onMediaPlaying=function(){this.tick()},w.onMediaSeeked=function(){var I=this.media,_=I?I.currentTime:null;Object(S.isFiniteNumber)(_)&&this.log("Media seeked to "+_.toFixed(3)),this.tick()},w.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(c.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},w.onManifestParsed=function(I,_){var L=!1,D=!1,N;_.levels.forEach(function(R){N=R.audioCodec,N&&(N.indexOf("mp4a.40.2")!==-1&&(L=!0),N.indexOf("mp4a.40.5")!==-1&&(D=!0))}),this.audioCodecSwitch=L&&D&&!Object(f.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=_.levels,this.startFragRequested=!1},w.onLevelLoading=function(I,_){var L=this.levels;if(!L||this.state!==m.State.IDLE)return;var D=L[_.level];(!D.details||D.details.live&&this.levelLastLoaded!==_.level||this.waitForCdnTuneIn(D.details))&&(this.state=m.State.WAITING_LEVEL)},w.onLevelLoaded=function(I,_){var L,D=this.levels,N=_.level,R=_.details,B=R.totalduration;if(!D){this.warn("Levels were reset while loading level "+N);return}this.log("Level "+N+" loaded ["+R.startSN+","+R.endSN+"], cc ["+R.startCC+", "+R.endCC+"] duration:"+B);var M=this.fragCurrent;M&&(this.state===m.State.FRAG_LOADING||this.state===m.State.FRAG_LOADING_WAITING_RETRY)&&(M.level!==_.level&&M.loader&&(this.state=m.State.IDLE,M.loader.abort()));var H=D[N],F=0;if(R.live||(L=H.details)!==null&&L!==void 0&&L.live){if(R.fragments[0]||(R.deltaUpdateFailed=!0),R.deltaUpdateFailed)return;F=this.alignPlaylists(R,H.details)}if(H.details=R,this.levelLastLoaded=N,this.hls.trigger(c.Events.LEVEL_UPDATED,{details:R,level:N}),this.state===m.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(R))return;this.state=m.State.IDLE}this.startFragRequested?R.live&&this.synchronizeToLiveEdge(R):this.setStartPosition(R,F),this.tick()},w._handleFragmentLoadProgress=function(I){var _,L=I.frag,D=I.part,N=I.payload,R=this.levels;if(!R){this.warn("Levels were reset while fragment load was in progress. Fragment "+L.sn+" of level "+L.level+" will not be buffered");return}var B=R[L.level],M=B.details;if(!M){this.warn("Dropping fragment "+L.sn+" of level "+L.level+" after level details were reset");return}var H=B.videoCodec,F=M.PTSKnown||!M.live,K=(_=L.initSegment)===null||_===void 0?void 0:_.data,j=this._getAudioCodec(B),V=this.transmuxer=this.transmuxer||new e.default(this.hls,a.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),z=D?D.index:-1,Y=z!==-1,ee=new s.ChunkMetadata(L.level,L.sn,L.stats.chunkCount,N.byteLength,z,Y),fe=this.initPTS[L.cc];V.push(N,K,j,H,L,D,M.totalduration,F,ee,fe)},w.onAudioTrackSwitching=function(I,_){var L=this.altAudio,D=!!_.url,N=_.id;if(!D){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var R=this.fragCurrent;R!=null&&R.loader&&(this.log("Switching to main audio track, cancel main fragment load"),R.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var B=this.hls;L&&B.trigger(c.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),B.trigger(c.Events.AUDIO_TRACK_SWITCHED,{id:N})}},w.onAudioTrackSwitched=function(I,_){var L=_.id,D=!!this.hls.audioTracks[L].url;if(D){var N=this.videoBuffer;N&&this.mediaBuffer!==N&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=N)}this.altAudio=D,this.tick()},w.onBufferCreated=function(I,_){var L=_.tracks,D,N,R=!1;for(var B in L){var M=L[B];if(M.id==="main"){if(N=B,D=M,B==="video"){var H=L[B];H&&(this.videoBuffer=H.buffer)}}else R=!0}R&&D?(this.log("Alternate track found, use "+N+".buffered to schedule main fragment loading"),this.mediaBuffer=D.buffer):this.mediaBuffer=this.media},w.onFragBuffered=function(I,_){var L=_.frag,D=_.part;if(L&&L.type!==a.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(L)){this.warn("Fragment "+L.sn+(D?" p: "+D.index:"")+" of level "+L.level+" finished buffering, but was aborted. state: "+this.state),this.state===m.State.PARSED&&(this.state=m.State.IDLE);return}var N=D?D.stats:L.stats;this.fragLastKbps=Math.round(8*N.total/(N.buffering.end-N.loading.first)),L.sn!=="initSegment"&&(this.fragPrevious=L),this.fragBufferedComplete(L,D)},w.onError=function(I,_){switch(_.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(a.PlaylistLevelType.MAIN,_);break;case i.ErrorDetails.LEVEL_LOAD_ERROR:case i.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==m.State.ERROR&&(_.fatal?(this.warn(""+_.details),this.state=m.State.ERROR):!_.levelRetry&&this.state===m.State.WAITING_LEVEL&&(this.state=m.State.IDLE));break;case i.ErrorDetails.BUFFER_FULL_ERROR:if(_.parent==="main"&&(this.state===m.State.PARSING||this.state===m.State.PARSED)){var L=!0,D=this.getFwdBufferInfo(this.media,a.PlaylistLevelType.MAIN);D&&D.len>.5&&(L=!this.reduceMaxBufferLength(D.len)),L&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},w.checkBuffer=function(){var I=this.media,_=this.gapController;if(!I||!_||!I.readyState)return;var L=o.BufferHelper.getBuffered(I);!this.loadedmetadata&&L.length?(this.loadedmetadata=!0,this.seekToStartPos()):_.poll(this.lastCurrentTime),this.lastCurrentTime=I.currentTime},w.onFragLoadEmergencyAborted=function(){this.state=m.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},w.onBufferFlushed=function(I,_){var L=_.type;if(L!==n.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var D=(L===n.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(D,L,a.PlaylistLevelType.MAIN)}},w.onLevelsUpdated=function(I,_){this.levels=_.levels},w.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},w.seekToStartPos=function(){var I=this.media,_=I.currentTime,L=this.startPosition;if(L>=0&&_<L){if(I.seeking){l.logger.log("could not seek to "+L+", already seeking at "+_);return}var D=o.BufferHelper.getBuffered(I),N=D.length?D.start(0):0,R=N-L;R>0&&(R<this.config.maxBufferHole||R<this.config.maxFragLookUpTolerance)&&(l.logger.log("adjusting start position by "+R+" to match buffer start"),L+=R,this.startPosition=L),this.log("seek to target start position "+L+" from current time "+_),I.currentTime=L}},w._getAudioCodec=function(I){var _=this.config.defaultAudioCodec||I.audioCodec;return this.audioCodecSwap&&_&&(this.log("Swapping audio codec"),_.indexOf("mp4a.40.5")!==-1?_="mp4a.40.2":_="mp4a.40.5"),_},w._loadBitrateTestFrag=function(I){var _=this;this._doFragLoad(I).then(function(L){var D=_.hls;if(!L||D.nextLoadLevel||_.fragContextChanged(I))return;_.fragLoadError=0,_.state=m.State.IDLE,_.startFragRequested=!1,_.bitrateTest=!1;var N=I.stats;N.parsing.start=N.parsing.end=N.buffering.start=N.buffering.end=self.performance.now(),D.trigger(c.Events.FRAG_LOADED,L)})},w._handleTransmuxComplete=function(I){var _,L="main",D=this.hls,N=I.remuxResult,R=I.chunkMeta,B=this.getCurrentContext(R);if(!B){this.warn("The loading context changed while buffering fragment "+R.sn+" of level "+R.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(R.level);return}var M=B.frag,H=B.part,F=B.level,K=N.video,j=N.text,V=N.id3,z=N.initSegment,Y=this.altAudio?void 0:N.audio;if(this.fragContextChanged(M))return;if(this.state=m.State.PARSING,z){z.tracks&&(this._bufferInitSegment(F,z.tracks,M,R),D.trigger(c.Events.FRAG_PARSING_INIT_SEGMENT,{frag:M,id:L,tracks:z.tracks}));var ee=z.initPTS,fe=z.timescale;Object(S.isFiniteNumber)(ee)&&(this.initPTS[M.cc]=ee,D.trigger(c.Events.INIT_PTS_FOUND,{frag:M,id:L,initPTS:ee,timescale:fe}))}if(K&&N.independent!==!1){if(F.details){var ie=K.startPTS,we=K.endPTS,Ce=K.startDTS,Le=K.endDTS;if(H)H.elementaryStreams[K.type]={startPTS:ie,endPTS:we,startDTS:Ce,endDTS:Le};else if(K.firstKeyFrame&&K.independent&&(this.couldBacktrack=!0),K.dropped&&K.independent){var He=this.getLoadPosition()+this.config.maxBufferHole;if(He<ie){this.backtrack(M);return}M.setElementaryStreamInfo(K.type,M.start,we,M.start,Le,!0)}M.setElementaryStreamInfo(K.type,ie,we,Ce,Le),this.bufferFragmentData(K,M,H,R)}}else if(N.independent===!1){this.backtrack(M);return}if(Y){var ce=Y.startPTS,Pe=Y.endPTS,Q=Y.startDTS,me=Y.endDTS;H&&(H.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:ce,endPTS:Pe,startDTS:Q,endDTS:me}),M.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,ce,Pe,Q,me),this.bufferFragmentData(Y,M,H,R)}if(V!=null&&(_=V.samples)!==null&&_!==void 0&&_.length){var Je={frag:M,id:L,samples:V.samples};D.trigger(c.Events.FRAG_PARSING_METADATA,Je)}if(j){var re={frag:M,id:L,samples:j.samples};D.trigger(c.Events.FRAG_PARSING_USERDATA,re)}},w._bufferInitSegment=function(I,_,L,D){var N=this;if(this.state!==m.State.PARSING)return;this.audioOnly=!!_.audio&&!_.video,this.altAudio&&!this.audioOnly&&delete _.audio;var R=_.audio,B=_.video,M=_.audiovideo;if(R){var H=I.audioCodec,F=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(H&&(H.indexOf("mp4a.40.5")!==-1?H="mp4a.40.2":H="mp4a.40.5"),R.metadata.channelCount!==1&&F.indexOf("firefox")===-1&&(H="mp4a.40.5")),F.indexOf("android")!==-1&&R.container!=="audio/mpeg"&&(H="mp4a.40.2",this.log("Android: force audio codec to "+H)),I.audioCodec&&I.audioCodec!==H&&this.log('Swapping manifest audio codec "'+I.audioCodec+'" for "'+H+'"'),R.levelCodec=H,R.id="main",this.log("Init audio buffer, container:"+R.container+", codecs[selected/level/parsed]=["+(H||"")+"/"+(I.audioCodec||"")+"/"+R.codec+"]")}B&&(B.levelCodec=I.videoCodec,B.id="main",this.log("Init video buffer, container:"+B.container+", codecs[level/parsed]=["+(I.videoCodec||"")+"/"+B.codec+"]")),M&&this.log("Init audiovideo buffer, container:"+M.container+", codecs[level/parsed]=["+(I.attrs.CODECS||"")+"/"+M.codec+"]"),this.hls.trigger(c.Events.BUFFER_CODECS,_),Object.keys(_).forEach(function(K){var j=_[K],V=j.initSegment;V!=null&&V.byteLength&&N.hls.trigger(c.Events.BUFFER_APPENDING,{type:K,data:V,frag:L,part:null,chunkMeta:D,parent:L.type})}),this.tick()},w.backtrack=function(I){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(I);var _=this.fragmentTracker.backtrack(I);this.fragPrevious=null,this.nextLoadPosition=I.start,_?this.resetFragmentLoading(I):this.state=m.State.BACKTRACKING},w.checkFragmentChanged=function(){var I=this.media,_=null;if(I&&I.readyState>1&&I.seeking===!1){var L=I.currentTime;if(o.BufferHelper.isBuffered(I,L)?_=this.getAppendedFrag(L):o.BufferHelper.isBuffered(I,L+.1)&&(_=this.getAppendedFrag(L+.1)),_){var D=this.fragPlaying,N=_.level;(!D||_.sn!==D.sn||D.level!==N||_.urlId!==D.urlId)&&(this.hls.trigger(c.Events.FRAG_CHANGED,{frag:_}),(!D||D.level!==N)&&this.hls.trigger(c.Events.LEVEL_SWITCHED,{level:N}),this.fragPlaying=_)}}},h(C,[{key:"nextLevel",get:function(){var I=this.nextBufferedFrag;return I?I.level:-1}},{key:"currentLevel",get:function(){var I=this.media;if(I){var _=this.getAppendedFrag(I.currentTime);if(_)return _.level}return-1}},{key:"nextBufferedFrag",get:function(){var I=this.media;if(I){var _=this.getAppendedFrag(I.currentTime);return this.followingBufferedFrag(_)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),C}(m.default)},"./src/controller/subtitle-stream-controller.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"SubtitleStreamController",function(){return p});var S=v("./src/events.ts"),m=v("./src/utils/logger.ts"),f=v("./src/utils/buffer-helper.ts"),c=v("./src/controller/fragment-finders.ts"),o=v("./src/utils/discontinuities.ts"),r=v("./src/controller/level-helper.ts"),a=v("./src/controller/fragment-tracker.ts"),n=v("./src/controller/base-stream-controller.ts"),e=v("./src/types/loader.ts"),s=v("./src/types/level.ts");function t(g,A){for(var y=0;y<A.length;y++){var E=A[y];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(g,E.key,E)}}function i(g,A,y){return A&&t(g.prototype,A),y&&t(g,y),g}function l(g,A){g.prototype=Object.create(A.prototype),g.prototype.constructor=g,u(g,A)}function u(g,A){return u=Object.setPrototypeOf||function(E,C){return E.__proto__=C,E},u(g,A)}var h=500,p=function(g){l(A,g);function A(E,C){var w;return w=g.call(this,E,C,"[subtitle-stream-controller]")||this,w.levels=[],w.currentTrackId=-1,w.tracksBuffered=[],w.mainDetails=null,w._registerListeners(),w}var y=A.prototype;return y.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},y._registerListeners=function(){var C=this.hls;C.on(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),C.on(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),C.on(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),C.on(S.Events.LEVEL_LOADED,this.onLevelLoaded,this),C.on(S.Events.ERROR,this.onError,this),C.on(S.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),C.on(S.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),C.on(S.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),C.on(S.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),C.on(S.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},y._unregisterListeners=function(){var C=this.hls;C.off(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),C.off(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),C.off(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),C.off(S.Events.LEVEL_LOADED,this.onLevelLoaded,this),C.off(S.Events.ERROR,this.onError,this),C.off(S.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),C.off(S.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),C.off(S.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),C.off(S.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),C.off(S.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},y.startLoad=function(){this.stopLoad(),this.state=n.State.IDLE,this.setInterval(h),this.tick()},y.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},y.onLevelLoaded=function(C,w){this.mainDetails=w.details},y.onSubtitleFragProcessed=function(C,w){var b=w.frag,I=w.success;if(this.fragPrevious=b,this.state=n.State.IDLE,!I)return;var _=this.tracksBuffered[this.currentTrackId];if(!_)return;for(var L,D=b.start,N=0;N<_.length;N++)if(D>=_[N].start&&D<=_[N].end){L=_[N];break}var R=b.start+b.duration;L?L.end=R:(L={start:D,end:R},_.push(L)),this.fragmentTracker.fragBuffered(b)},y.onBufferFlushing=function(C,w){var b=w.startOffset,I=w.endOffset;if(b===0&&I!==Number.POSITIVE_INFINITY){var _=this.currentTrackId,L=this.levels;if(!L.length||!L[_]||!L[_].details)return;var D=L[_].details,N=D.targetduration,R=I-N;if(R<=0)return;w.endOffsetSubtitles=Math.max(0,R),this.tracksBuffered.forEach(function(B){for(var M=0;M<B.length;){if(B[M].end<=R){B.shift();continue}else if(B[M].start<R)B[M].start=R;else break;M++}}),this.fragmentTracker.removeFragmentsInRange(b,R,e.PlaylistLevelType.SUBTITLE)}},y.onError=function(C,w){var b,I=w.frag;if(!I||I.type!==e.PlaylistLevelType.SUBTITLE)return;(b=this.fragCurrent)!==null&&b!==void 0&&b.loader&&this.fragCurrent.loader.abort(),this.state=n.State.IDLE},y.onSubtitleTracksUpdated=function(C,w){var b=this,I=w.subtitleTracks;this.tracksBuffered=[],this.levels=I.map(function(_){return new s.Level(_)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(_){b.tracksBuffered[_.id]=[]}),this.mediaBuffer=null},y.onSubtitleTrackSwitch=function(C,w){if(this.currentTrackId=w.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.setInterval(h)):this.mediaBuffer=null},y.onSubtitleTrackLoaded=function(C,w){var b,I=w.details,_=w.id,L=this.currentTrackId,D=this.levels;if(!D.length)return;var N=D[L];if(_>=D.length||_!==L||!N)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,I.live||(b=N.details)!==null&&b!==void 0&&b.live){var R=this.mainDetails;if(I.deltaUpdateFailed||!R)return;var B=R.fragments[0];if(!N.details)I.hasProgramDateTime&&R.hasProgramDateTime?Object(o.alignMediaPlaylistByPDT)(I,R):B&&Object(r.addSliding)(I,B.start);else{var M=this.alignPlaylists(I,N.details);M===0&&B&&Object(r.addSliding)(I,B.start)}}if(N.details=I,this.levelLastLoaded=_,this.tick(),I.live&&!this.fragCurrent&&this.media&&this.state===n.State.IDLE){var H=Object(c.findFragmentByPTS)(null,I.fragments,this.media.currentTime,0);H||(this.warn("Subtitle playlist not aligned with playback"),N.details=void 0)}},y._handleFragmentLoadComplete=function(C){var w=C.frag,b=C.payload,I=w.decryptdata,_=this.hls;if(this.fragContextChanged(w))return;if(b&&b.byteLength>0&&I&&I.key&&I.iv&&I.method==="AES-128"){var L=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(b),I.key.buffer,I.iv.buffer).then(function(D){var N=performance.now();_.trigger(S.Events.FRAG_DECRYPTED,{frag:w,payload:D,stats:{tstart:L,tdecrypt:N}})})}},y.doTick=function(){if(!this.media){this.state=n.State.IDLE;return}if(this.state===n.State.IDLE){var C,w=this.currentTrackId,b=this.levels;if(!b.length||!b[w]||!b[w].details)return;var I=b[w].details,_=I.targetduration,L=this.config,D=this.media,N=f.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,D.currentTime-_,L.maxBufferHole),R=N.end,B=N.len,M=this.getMaxBufferLength()+_;if(B>M)return;console.assert(I,"Subtitle track details are defined on idle subtitle stream controller tick");var H=I.fragments,F=H.length,K=I.edge,j,V=this.fragPrevious;if(R<K){var z=L.maxFragLookUpTolerance;V&&I.hasProgramDateTime&&(j=Object(c.findFragmentByPDT)(H,V.endProgramDateTime,z)),j||(j=Object(c.findFragmentByPTS)(V,H,R,z),!j&&V&&V.start<H[0].start&&(j=H[0]))}else j=H[F-1];(C=j)!==null&&C!==void 0&&C.encrypted?(m.logger.log("Loading key for "+j.sn),this.state=n.State.KEY_LOADING,this.hls.trigger(S.Events.KEY_LOADING,{frag:j})):j&&this.fragmentTracker.getState(j)===a.FragmentState.NOT_LOADED&&this.loadFragment(j,I,R)}},y.loadFragment=function(C,w,b){this.fragCurrent=C,g.prototype.loadFragment.call(this,C,w,b)},i(A,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),A}(n.default)},"./src/controller/subtitle-track-controller.ts":function(x,T,v){"use strict";v.r(T);var S=v("./src/events.ts"),m=v("./src/utils/texttrack-utils.ts"),f=v("./src/controller/base-playlist-controller.ts"),c=v("./src/types/loader.ts");function o(t,i){for(var l=0;l<i.length;l++){var u=i[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function r(t,i,l){return i&&o(t.prototype,i),l&&o(t,l),t}function a(t,i){t.prototype=Object.create(i.prototype),t.prototype.constructor=t,n(t,i)}function n(t,i){return n=Object.setPrototypeOf||function(u,h){return u.__proto__=h,u},n(t,i)}var e=function(t){a(i,t);function i(u){var h;return h=t.call(this,u,"[subtitle-track-controller]")||this,h.media=null,h.tracks=[],h.groupId=null,h.tracksInGroup=[],h.trackId=-1,h.selectDefaultTrack=!0,h.queuedDefaultTrack=-1,h.trackChangeListener=function(){return h.onTextTracksChanged()},h.asyncPollTrackChange=function(){return h.pollTrackChange(0)},h.useTextTrackPolling=!1,h.subtitlePollingInterval=-1,h.subtitleDisplay=!0,h.registerListeners(),h}var l=i.prototype;return l.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,t.prototype.destroy.call(this)},l.registerListeners=function(){var h=this.hls;h.on(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.on(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.on(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(S.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.on(S.Events.LEVEL_LOADING,this.onLevelLoading,this),h.on(S.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),h.on(S.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),h.on(S.Events.ERROR,this.onError,this)},l.unregisterListeners=function(){var h=this.hls;h.off(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.off(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.off(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(S.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.off(S.Events.LEVEL_LOADING,this.onLevelLoading,this),h.off(S.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),h.off(S.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),h.off(S.Events.ERROR,this.onError,this)},l.onMediaAttached=function(h,p){if(this.media=p.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)},l.pollTrackChange=function(h){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,h)},l.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 h=s(this.media.textTracks);h.forEach(function(p){Object(m.clearCurrentCues)(p)}),this.subtitleTrack=-1,this.media=null},l.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},l.onManifestParsed=function(h,p){this.tracks=p.subtitleTracks},l.onSubtitleTrackLoaded=function(h,p){var g=p.id,A=p.details,y=this.trackId,E=this.tracksInGroup[y];if(!E){this.warn("Invalid subtitle track id "+g);return}var C=E.details;E.details=p.details,this.log("subtitle track "+g+" loaded ["+A.startSN+"-"+A.endSN+"]"),g===this.trackId&&(this.retryCount=0,this.playlistLoaded(g,p,C))},l.onLevelLoading=function(h,p){this.switchLevel(p.level)},l.onLevelSwitching=function(h,p){this.switchLevel(p.level)},l.switchLevel=function(h){var p=this.hls.levels[h];if(!(p!=null&&p.textGroupIds))return;var g=p.textGroupIds[p.urlId];if(this.groupId!==g){var A=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,y=this.tracks.filter(function(w){return!g||w.groupId===g});this.tracksInGroup=y;var E=this.findTrackId(A==null?void 0:A.name)||this.findTrackId();this.groupId=g;var C={subtitleTracks:y};this.log("Updating subtitle tracks, "+y.length+' track(s) found in "'+g+'" group-id'),this.hls.trigger(S.Events.SUBTITLE_TRACKS_UPDATED,C),E!==-1&&this.setSubtitleTrack(E,A)}},l.findTrackId=function(h){for(var p=this.tracksInGroup,g=0;g<p.length;g++){var A=p[g];if((!this.selectDefaultTrack||A.default)&&(!h||h===A.name))return A.id}return-1},l.onError=function(h,p){if(t.prototype.onError.call(this,h,p),p.fatal||!p.context)return;p.context.type===c.PlaylistContextType.SUBTITLE_TRACK&&p.context.id===this.trackId&&p.context.groupId===this.groupId&&this.retryLoadingOrFail(p)},l.loadPlaylist=function(h){var p=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(p)){var g=p.id,A=p.groupId,y=p.url;if(h)try{y=h.addDirectives(y)}catch(E){this.warn("Could not construct new URL with HLS Delivery Directives: "+E)}this.log("Loading subtitle playlist for id "+g),this.hls.trigger(S.Events.SUBTITLE_TRACK_LOADING,{url:y,id:g,groupId:A,deliveryDirectives:h||null})}},l.toggleTrackModes=function(h){var p=this,g=this.media,A=this.subtitleDisplay,y=this.trackId;if(!g)return;var E=s(g.textTracks),C=E.filter(function(I){return I.groupId===p.groupId});if(h===-1)[].slice.call(E).forEach(function(I){I.mode="disabled"});else{var w=C[y];w&&(w.mode="disabled")}var b=C[h];b&&(b.mode=A?"showing":"hidden")},l.setSubtitleTrack=function(h,p){var g,A=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=h;return}if(this.trackId!==h&&this.toggleTrackModes(h),this.trackId===h&&(h===-1||(g=A[h])!==null&&g!==void 0&&g.details)||h<-1||h>=A.length)return;this.clearTimer();var y=A[h];if(this.log("Switching to subtitle track "+h),this.trackId=h,y){var E=y.id,C=y.groupId,w=C===void 0?"":C,b=y.name,I=y.type,_=y.url;this.hls.trigger(S.Events.SUBTITLE_TRACK_SWITCH,{id:E,groupId:w,name:b,type:I,url:_});var L=this.switchParams(y.url,p==null?void 0:p.details);this.loadPlaylist(L)}else this.hls.trigger(S.Events.SUBTITLE_TRACK_SWITCH,{id:h})},l.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var h=-1,p=s(this.media.textTracks),g=0;g<p.length;g++)if(p[g].mode==="hidden")h=g;else if(p[g].mode==="showing"){h=g;break}this.subtitleTrack!==h&&(this.subtitleTrack=h)},r(i,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(h){this.selectDefaultTrack=!1;var p=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(h,p)}}]),i}(f.default);function s(t){for(var i=[],l=0;l<t.length;l++){var u=t[l];u.kind==="subtitles"&&u.label&&i.push(t[l])}return i}T.default=e},"./src/controller/timeline-controller.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"TimelineController",function(){return s});var S=v("./src/polyfills/number.ts"),m=v("./src/events.ts"),f=v("./src/utils/cea-608-parser.ts"),c=v("./src/utils/output-filter.ts"),o=v("./src/utils/webvtt-parser.ts"),r=v("./src/utils/texttrack-utils.ts"),a=v("./src/utils/imsc1-ttml-parser.ts"),n=v("./src/types/loader.ts"),e=v("./src/utils/logger.ts"),s=function(){function u(p){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.prevCC=-1,this.vttCCs=l(),this.captionsProperties=void 0,this.hls=p,this.config=p.config,this.Cues=p.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},this.config.enableCEA708Captions){var g=new c.default(this,"textTrack1"),A=new c.default(this,"textTrack2"),y=new c.default(this,"textTrack3"),E=new c.default(this,"textTrack4");this.cea608Parser1=new f.default(1,g,A),this.cea608Parser2=new f.default(3,y,E)}p.on(m.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),p.on(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),p.on(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),p.on(m.Events.MANIFEST_LOADED,this.onManifestLoaded,this),p.on(m.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),p.on(m.Events.FRAG_LOADING,this.onFragLoading,this),p.on(m.Events.FRAG_LOADED,this.onFragLoaded,this),p.on(m.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),p.on(m.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),p.on(m.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),p.on(m.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),p.on(m.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var h=u.prototype;return h.destroy=function(){var g=this.hls;g.off(m.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),g.off(m.Events.MEDIA_DETACHING,this.onMediaDetaching,this),g.off(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),g.off(m.Events.MANIFEST_LOADED,this.onManifestLoaded,this),g.off(m.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),g.off(m.Events.FRAG_LOADING,this.onFragLoading,this),g.off(m.Events.FRAG_LOADED,this.onFragLoaded,this),g.off(m.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),g.off(m.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),g.off(m.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),g.off(m.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),g.off(m.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},h.addCues=function(g,A,y,E,C){for(var w=!1,b=C.length;b--;){var I=C[b],_=i(I[0],I[1],A,y);if(_>=0&&(I[0]=Math.min(I[0],A),I[1]=Math.max(I[1],y),w=!0,_/(y-A)>.5))return}if(w||C.push([A,y]),this.config.renderTextTracksNatively){var L=this.captionsTracks[g];this.Cues.newCue(L,A,y,E)}else{var D=this.Cues.newCue(null,A,y,E);this.hls.trigger(m.Events.CUES_PARSED,{type:"captions",cues:D,track:g})}},h.onInitPtsFound=function(g,A){var y=this,E=A.frag,C=A.id,w=A.initPTS,b=A.timescale,I=this.unparsedVttFrags;C==="main"&&(this.initPTS[E.cc]=w,this.timescale[E.cc]=b),I.length&&(this.unparsedVttFrags=[],I.forEach(function(_){y.onFragLoaded(m.Events.FRAG_LOADED,_)}))},h.getExistingTrack=function(g){var A=this.media;if(A)for(var y=0;y<A.textTracks.length;y++){var E=A.textTracks[y];if(E[g])return E}return null},h.createCaptionsTrack=function(g){this.config.renderTextTracksNatively?this.createNativeTrack(g):this.createNonNativeTrack(g)},h.createNativeTrack=function(g){if(this.captionsTracks[g])return;var A=this.captionsProperties,y=this.captionsTracks,E=this.media,C=A[g],w=C.label,b=C.languageCode,I=this.getExistingTrack(g);if(I)y[g]=I,Object(r.clearCurrentCues)(y[g]),Object(r.sendAddTrackEvent)(y[g],E);else{var _=this.createTextTrack("captions",w,b);_&&(_[g]=!0,y[g]=_)}},h.createNonNativeTrack=function(g){if(this.nonNativeCaptionsTracks[g])return;var A=this.captionsProperties[g];if(!A)return;var y=A.label,E={_id:g,label:y,kind:"captions",default:A.media?!!A.media.default:!1,closedCaptions:A.media};this.nonNativeCaptionsTracks[g]=E,this.hls.trigger(m.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[E]})},h.createTextTrack=function(g,A,y){var E=this.media;return E?E.addTextTrack(g,A,y):void 0},h.onMediaAttaching=function(g,A){this.media=A.media,this._cleanTracks()},h.onMediaDetaching=function(){var g=this.captionsTracks;Object.keys(g).forEach(function(A){Object(r.clearCurrentCues)(g[A]),delete g[A]}),this.nonNativeCaptionsTracks={}},h.onManifestLoading=function(){this.lastSn=-1,this.prevCC=-1,this.vttCCs=l(),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())},h._cleanTracks=function(){var g=this.media;if(!g)return;var A=g.textTracks;if(A)for(var y=0;y<A.length;y++)Object(r.clearCurrentCues)(A[y])},h.onSubtitleTracksUpdated=function(g,A){var y=this;this.textTracks=[];var E=A.subtitleTracks||[],C=E.some(function(_){return _.textCodec===a.IMSC1_CODEC});if(this.config.enableWebVTT||C&&this.config.enableIMSC1){var w=this.tracks&&E&&this.tracks.length===E.length;if(this.tracks=E||[],this.config.renderTextTracksNatively){var b=this.media?this.media.textTracks:[];this.tracks.forEach(function(_,L){var D;if(L<b.length){for(var N=null,R=0;R<b.length;R++)if(t(b[R],_)){N=b[R];break}N&&(D=N)}D?Object(r.clearCurrentCues)(D):(D=y.createTextTrack("subtitles",_.name,_.lang),D&&(D.mode="disabled")),D&&(D.groupId=_.groupId,y.textTracks.push(D))})}else if(!w&&this.tracks&&this.tracks.length){var I=this.tracks.map(function(_){return{label:_.name,kind:_.type.toLowerCase(),default:_.default,subtitleTrack:_}});this.hls.trigger(m.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:I})}}},h.onManifestLoaded=function(g,A){var y=this;this.config.enableCEA708Captions&&A.captions&&A.captions.forEach(function(E){var C=/(?:CC|SERVICE)([1-4])/.exec(E.instreamId);if(!C)return;var w="textTrack"+C[1],b=y.captionsProperties[w];if(!b)return;b.label=E.name,E.lang&&(b.languageCode=E.lang),b.media=E})},h.onFragLoading=function(g,A){var y=this.cea608Parser1,E=this.cea608Parser2,C=this.lastSn;if(!this.enabled||!(y&&E))return;if(A.frag.type===n.PlaylistLevelType.MAIN){var w=A.frag.sn;w!==C+1&&(y.reset(),E.reset()),this.lastSn=w}},h.onFragLoaded=function(g,A){var y=A.frag,E=A.payload,C=this.initPTS,w=this.unparsedVttFrags;if(y.type===n.PlaylistLevelType.SUBTITLE)if(E.byteLength){if(!Object(S.isFiniteNumber)(C[y.cc])){w.push(A),C.length&&this.hls.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:y,error:new Error("Missing initial subtitle PTS")});return}var b=y.decryptdata;if(b==null||b.key==null||b.method!=="AES-128"){var I=this.tracks[y.level],_=this.vttCCs;_[y.cc]||(_[y.cc]={start:y.start,prevCC:this.prevCC,new:!0},this.prevCC=y.cc),I&&I.textCodec===a.IMSC1_CODEC?this._parseIMSC1(y,E):this._parseVTTs(y,E,_)}}else this.hls.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:y,error:new Error("Empty subtitle payload")})},h._parseIMSC1=function(g,A){var y=this,E=this.hls;Object(a.parseIMSC1)(A,this.initPTS[g.cc],this.timescale[g.cc],function(C){y._appendCues(C,g.level),E.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:g})},function(C){e.logger.log("Failed to parse IMSC1: "+C),E.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:g,error:C})})},h._parseVTTs=function(g,A,y){var E=this,C=this.hls;Object(o.parseWebVTT)(A,this.initPTS[g.cc],this.timescale[g.cc],y,g.cc,g.start,function(w){E._appendCues(w,g.level),C.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:g})},function(w){E._fallbackToIMSC1(g,A),e.logger.log("Failed to parse VTT cue: "+w),C.trigger(m.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:g,error:w})})},h._fallbackToIMSC1=function(g,A){var y=this,E=this.tracks[g.level];E.textCodec||Object(a.parseIMSC1)(A,this.initPTS[g.cc],this.timescale[g.cc],function(){E.textCodec=a.IMSC1_CODEC,y._parseIMSC1(g,A)},function(){E.textCodec="wvtt"})},h._appendCues=function(g,A){var y=this.hls;if(this.config.renderTextTracksNatively){var E=this.textTracks[A];if(E.mode==="disabled")return;g.forEach(function(b){return Object(r.addCueToTrack)(E,b)})}else{var C=this.tracks[A],w=C.default?"default":"subtitles"+A;y.trigger(m.Events.CUES_PARSED,{type:"subtitles",cues:g,track:w})}},h.onFragDecrypted=function(g,A){var y=A.frag;if(y.type===n.PlaylistLevelType.SUBTITLE){if(!Object(S.isFiniteNumber)(this.initPTS[y.cc])){this.unparsedVttFrags.push(A);return}this.onFragLoaded(m.Events.FRAG_LOADED,A)}},h.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},h.onFragParsingUserdata=function(g,A){var y=this.cea608Parser1,E=this.cea608Parser2;if(!this.enabled||!(y&&E))return;for(var C=0;C<A.samples.length;C++){var w=A.samples[C].bytes;if(w){var b=this.extractCea608Data(w);y.addData(A.samples[C].pts,b[0]),E.addData(A.samples[C].pts,b[1])}}},h.onBufferFlushing=function(g,A){var y=A.startOffset,E=A.endOffset,C=A.endOffsetSubtitles,w=A.type,b=this.media;if(!b||b.currentTime<E)return;if(!w||w==="video"){var I=this.captionsTracks;Object.keys(I).forEach(function(L){return Object(r.removeCuesInRange)(I[L],y,E)})}if(this.config.renderTextTracksNatively&&(y===0&&C!==void 0)){var _=this.textTracks;Object.keys(_).forEach(function(L){return Object(r.removeCuesInRange)(_[L],y,C)})}},h.extractCea608Data=function(g){for(var A=g[0]&31,y=2,E=[[],[]],C=0;C<A;C++){var w=g[y++],b=127&g[y++],I=127&g[y++],_=(4&w)!==0,L=3&w;if(b===0&&I===0)continue;_&&((L===0||L===1)&&(E[L].push(b),E[L].push(I)))}return E},u}();function t(u,h){return u&&u.label===h.name&&!(u.textTrack1||u.textTrack2)}function i(u,h,p,g){return Math.min(h,g)-Math.max(u,p)}function l(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"default",function(){return S});var S=function(){function m(c,o){this.subtle=void 0,this.aesIV=void 0,this.subtle=c,this.aesIV=o}var f=m.prototype;return f.decrypt=function(o,r){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},r,o)},m}()},"./src/crypt/aes-decryptor.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"removePadding",function(){return m}),v.d(T,"default",function(){return f});var S=v("./src/utils/typed-array.ts");function m(c){var o=c.byteLength,r=o&&new DataView(c.buffer).getUint8(o-1);return r?Object(S.sliceUint8)(c,0,o-r):c}var f=function(){function c(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}var o=c.prototype;return o.uint8ArrayToUint32Array_=function(a){for(var n=new DataView(a),e=new Uint32Array(4),s=0;s<4;s++)e[s]=n.getUint32(s*4);return e},o.initTable=function(){var a=this.sBox,n=this.invSBox,e=this.subMix,s=e[0],t=e[1],i=e[2],l=e[3],u=this.invSubMix,h=u[0],p=u[1],g=u[2],A=u[3],y=new Uint32Array(256),E=0,C=0,w=0;for(w=0;w<256;w++)w<128?y[w]=w<<1:y[w]=w<<1^283;for(w=0;w<256;w++){var b=C^C<<1^C<<2^C<<3^C<<4;b=b>>>8^b&255^99,a[E]=b,n[b]=E;var I=y[E],_=y[I],L=y[_],D=y[b]*257^b*16843008;s[E]=D<<24|D>>>8,t[E]=D<<16|D>>>16,i[E]=D<<8|D>>>24,l[E]=D,D=L*16843009^_*65537^I*257^E*16843008,h[b]=D<<24|D>>>8,p[b]=D<<16|D>>>16,g[b]=D<<8|D>>>24,A[b]=D,E?(E=I^y[y[y[L^I]]],C^=y[y[C]]):E=C=1}},o.expandKey=function(a){for(var n=this.uint8ArrayToUint32Array_(a),e=!0,s=0;s<n.length&&e;)e=n[s]===this.key[s],s++;if(e)return;this.key=n;var t=this.keySize=n.length;if(t!==4&&t!==6&&t!==8)throw new Error("Invalid aes key size="+t);var i=this.ksRows=(t+6+1)*4,l,u,h=this.keySchedule=new Uint32Array(i),p=this.invKeySchedule=new Uint32Array(i),g=this.sBox,A=this.rcon,y=this.invSubMix,E=y[0],C=y[1],w=y[2],b=y[3],I,_;for(l=0;l<i;l++){if(l<t){I=h[l]=n[l];continue}_=I,l%t===0?(_=_<<8|_>>>24,_=g[_>>>24]<<24|g[_>>>16&255]<<16|g[_>>>8&255]<<8|g[_&255],_^=A[l/t|0]<<24):t>6&&l%t===4&&(_=g[_>>>24]<<24|g[_>>>16&255]<<16|g[_>>>8&255]<<8|g[_&255]),h[l]=I=(h[l-t]^_)>>>0}for(u=0;u<i;u++)l=i-u,u&3?_=h[l]:_=h[l-4],u<4||l<=4?p[u]=_:p[u]=E[g[_>>>24]]^C[g[_>>>16&255]]^w[g[_>>>8&255]]^b[g[_&255]],p[u]=p[u]>>>0},o.networkToHostOrderSwap=function(a){return a<<24|(a&65280)<<8|(a&16711680)>>8|a>>>24},o.decrypt=function(a,n,e){for(var s=this.keySize+6,t=this.invKeySchedule,i=this.invSBox,l=this.invSubMix,u=l[0],h=l[1],p=l[2],g=l[3],A=this.uint8ArrayToUint32Array_(e),y=A[0],E=A[1],C=A[2],w=A[3],b=new Int32Array(a),I=new Int32Array(b.length),_,L,D,N,R,B,M,H,F,K,j,V,z,Y,ee=this.networkToHostOrderSwap;n<b.length;){for(F=ee(b[n]),K=ee(b[n+1]),j=ee(b[n+2]),V=ee(b[n+3]),R=F^t[0],B=V^t[1],M=j^t[2],H=K^t[3],z=4,Y=1;Y<s;Y++)_=u[R>>>24]^h[B>>16&255]^p[M>>8&255]^g[H&255]^t[z],L=u[B>>>24]^h[M>>16&255]^p[H>>8&255]^g[R&255]^t[z+1],D=u[M>>>24]^h[H>>16&255]^p[R>>8&255]^g[B&255]^t[z+2],N=u[H>>>24]^h[R>>16&255]^p[B>>8&255]^g[M&255]^t[z+3],R=_,B=L,M=D,H=N,z=z+4;_=i[R>>>24]<<24^i[B>>16&255]<<16^i[M>>8&255]<<8^i[H&255]^t[z],L=i[B>>>24]<<24^i[M>>16&255]<<16^i[H>>8&255]<<8^i[R&255]^t[z+1],D=i[M>>>24]<<24^i[H>>16&255]<<16^i[R>>8&255]<<8^i[B&255]^t[z+2],N=i[H>>>24]<<24^i[R>>16&255]<<16^i[B>>8&255]<<8^i[M&255]^t[z+3],I[n]=ee(_^y),I[n+1]=ee(N^E),I[n+2]=ee(D^C),I[n+3]=ee(L^w),y=F,E=K,C=j,w=V,n=n+4}return I.buffer},c}()},"./src/crypt/decrypter.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"default",function(){return n});var S=v("./src/crypt/aes-crypto.ts"),m=v("./src/crypt/fast-aes-key.ts"),f=v("./src/crypt/aes-decryptor.ts"),c=v("./src/utils/logger.ts"),o=v("./src/utils/mp4-tools.ts"),r=v("./src/utils/typed-array.ts"),a=16,n=function(){function e(t,i,l){var u=l===void 0?{}:l,h=u.removePKCS7Padding,p=h===void 0?!0:h;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=t,this.config=i,this.removePKCS7Padding=p,p)try{var g=self.crypto;g&&(this.subtle=g.subtle||g.webkitSubtle)}catch(A){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var s=e.prototype;return s.destroy=function(){this.observer=null},s.isSync=function(){return this.config.enableSoftwareAES},s.flush=function(){var i=this.currentResult;if(!i){this.reset();return}var l=new Uint8Array(i);return this.reset(),this.removePKCS7Padding?Object(f.removePadding)(l):l},s.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},s.decrypt=function(i,l,u,h){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(i),l,u);var p=this.flush();p&&h(p.buffer)}else this.webCryptoDecrypt(new Uint8Array(i),l,u).then(h)},s.softwareDecrypt=function(i,l,u){var h=this.currentIV,p=this.currentResult,g=this.remainderData;this.logOnce("JS AES decrypt"),g&&(i=Object(o.appendUint8Array)(g,i),this.remainderData=null);var A=this.getValidChunk(i);if(!A.length)return null;h&&(u=h);var y=this.softwareDecrypter;y||(y=this.softwareDecrypter=new f.default),y.expandKey(l);var E=p;return this.currentResult=y.decrypt(A.buffer,0,u),this.currentIV=Object(r.sliceUint8)(A,-16).buffer,E||null},s.webCryptoDecrypt=function(i,l,u){var h=this,p=this.subtle;return(this.key!==l||!this.fastAesKey)&&(this.key=l,this.fastAesKey=new m.default(p,l)),this.fastAesKey.expandKey().then(function(g){if(!p)return Promise.reject(new Error("web crypto not initialized"));var A=new S.default(p,u);return A.decrypt(i.buffer,g)}).catch(function(g){return h.onWebCryptoError(g,i,l,u)})},s.onWebCryptoError=function(i,l,u,h){return c.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",i),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(l,u,h)},s.getValidChunk=function(i){var l=i,u=i.length-i.length%a;return u!==i.length&&(l=Object(r.sliceUint8)(i,0,u),this.remainderData=Object(r.sliceUint8)(i,u)),l},s.logOnce=function(i){if(!this.logEnabled)return;c.logger.log("[decrypter.ts]: "+i),this.logEnabled=!1},e}()},"./src/crypt/fast-aes-key.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"default",function(){return S});var S=function(){function m(c,o){this.subtle=void 0,this.key=void 0,this.subtle=c,this.key=o}var f=m.prototype;return f.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},m}()},"./src/demux/aacdemuxer.ts":function(x,T,v){"use strict";v.r(T);var S=v("./src/demux/base-audio-demuxer.ts"),m=v("./src/demux/adts.ts"),f=v("./src/utils/logger.ts"),c=v("./src/demux/id3.ts");function o(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,r(n,e)}function r(n,e){return r=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t},r(n,e)}var a=function(n){o(e,n);function e(t,i){var l;return l=n.call(this)||this,l.observer=void 0,l.config=void 0,l.observer=t,l.config=i,l}var s=e.prototype;return s.resetInitSegment=function(i,l,u){n.prototype.resetInitSegment.call(this,i,l,u),this._audioTrack={container:"audio/adts",type:"audio",id:0,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:i,duration:u,inputTimeScale:9e4,dropped:0}},e.probe=function(i){if(!i)return!1;for(var l=c.getID3Data(i,0)||[],u=l.length,h=i.length;u<h;u++)if(m.probe(i,u))return f.logger.log("ADTS sync word found !"),!0;return!1},s.canParse=function(i,l){return m.canParse(i,l)},s.appendFrame=function(i,l,u){m.initTrackConfig(i,this.observer,l,u,i.manifestCodec);var h=m.appendFrame(i,l,u,this.initPTS,this.frameIndex);if(h&&h.missing===0)return h},e}(S.default);a.minProbeByteLength=9,T.default=a},"./src/demux/adts.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"getAudioConfig",function(){return c}),v.d(T,"isHeaderPattern",function(){return o}),v.d(T,"getHeaderLength",function(){return r}),v.d(T,"getFullFrameLength",function(){return a}),v.d(T,"canGetFrameLength",function(){return n}),v.d(T,"isHeader",function(){return e}),v.d(T,"canParse",function(){return s}),v.d(T,"probe",function(){return t}),v.d(T,"initTrackConfig",function(){return i}),v.d(T,"getFrameDuration",function(){return l}),v.d(T,"parseFrameHeader",function(){return u}),v.d(T,"appendFrame",function(){return h});var S=v("./src/utils/logger.ts"),m=v("./src/errors.ts"),f=v("./src/events.ts");function c(p,g,A,y){var E,C,w,b,I=navigator.userAgent.toLowerCase(),_=y,L=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];E=((g[A+2]&192)>>>6)+1;var D=(g[A+2]&60)>>>2;if(D>L.length-1){p.trigger(f.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+D});return}return w=(g[A+2]&1)<<2,w|=(g[A+3]&192)>>>6,S.logger.log("manifest codec:"+y+", ADTS type:"+E+", samplingIndex:"+D),/firefox/i.test(I)?D>=6?(E=5,b=new Array(4),C=D-3):(E=2,b=new Array(2),C=D):I.indexOf("android")!==-1?(E=2,b=new Array(2),C=D):(E=5,b=new Array(4),y&&(y.indexOf("mp4a.40.29")!==-1||y.indexOf("mp4a.40.5")!==-1)||!y&&D>=6?C=D-3:((y&&y.indexOf("mp4a.40.2")!==-1&&(D>=6&&w===1||/vivaldi/i.test(I))||!y&&w===1)&&(E=2,b=new Array(2)),C=D)),b[0]=E<<3,b[0]|=(D&14)>>1,b[1]|=(D&1)<<7,b[1]|=w<<3,E===5&&(b[1]|=(C&14)>>1,b[2]=(C&1)<<7,b[2]|=2<<2,b[3]=0),{config:b,samplerate:L[D],channelCount:w,codec:"mp4a.40."+E,manifestCodec:_}}function o(p,g){return p[g]===255&&(p[g+1]&246)===240}function r(p,g){return p[g+1]&1?7:9}function a(p,g){return(p[g+3]&3)<<11|p[g+4]<<3|(p[g+5]&224)>>>5}function n(p,g){return g+5<p.length}function e(p,g){return g+1<p.length&&o(p,g)}function s(p,g){return n(p,g)&&o(p,g)&&a(p,g)<=p.length-g}function t(p,g){if(e(p,g)){var A=r(p,g);if(g+A>=p.length)return!1;var y=a(p,g);if(y<=A)return!1;var E=g+y;return E===p.length||e(p,E)}return!1}function i(p,g,A,y,E){if(!p.samplerate){var C=c(g,A,y,E);if(!C)return;p.config=C.config,p.samplerate=C.samplerate,p.channelCount=C.channelCount,p.codec=C.codec,p.manifestCodec=C.manifestCodec,S.logger.log("parsed codec:"+p.codec+", rate:"+C.samplerate+", channels:"+C.channelCount)}}function l(p){return 1024*9e4/p}function u(p,g,A,y,E){var C=r(p,g),w=a(p,g);if(w-=C,w>0){var b=A+y*E;return{headerLength:C,frameLength:w,stamp:b}}}function h(p,g,A,y,E){var C=l(p.samplerate),w=u(g,A,y,E,C);if(w){var b=w.frameLength,I=w.headerLength,_=w.stamp,L=I+b,D=Math.max(0,A+L-g.length),N;D?(N=new Uint8Array(L-I),N.set(g.subarray(A+I,g.length),0)):N=g.subarray(A+I,A+L);var R={unit:N,pts:_};return D||p.samples.push(R),{sample:R,length:L,missing:D}}}},"./src/demux/base-audio-demuxer.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"initPTSFn",function(){return a});var S=v("./src/polyfills/number.ts"),m=v("./src/demux/id3.ts"),f=v("./src/demux/dummy-demuxed-track.ts"),c=v("./src/utils/mp4-tools.ts"),o=v("./src/utils/typed-array.ts"),r=function(){function n(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var e=n.prototype;return e.resetInitSegment=function(t,i,l){this._id3Track={type:"id3",id:0,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},e.resetTimeStamp=function(){},e.resetContiguity=function(){},e.canParse=function(t,i){return!1},e.appendFrame=function(t,i,l){},e.demux=function(t,i){this.cachedData&&(t=Object(c.appendUint8Array)(this.cachedData,t),this.cachedData=null);var l=m.getID3Data(t,0),u=l?l.length:0,h,p,g=this._audioTrack,A=this._id3Track,y=l?m.getTimeStamp(l):void 0,E=t.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=a(y,i)),l&&l.length>0&&A.samples.push({pts:this.initPTS,dts:this.initPTS,data:l}),p=this.initPTS;u<E;){if(this.canParse(t,u)){var C=this.appendFrame(g,t,u);C?(this.frameIndex++,p=C.sample.pts,u+=C.length,h=u):u=E}else m.canParse(t,u)?(l=m.getID3Data(t,u),A.samples.push({pts:p,dts:p,data:l}),u+=l.length,h=u):u++;if(u===E&&h!==E){var w=Object(o.sliceUint8)(t,h);this.cachedData?this.cachedData=Object(c.appendUint8Array)(this.cachedData,w):this.cachedData=w}}return{audioTrack:g,avcTrack:Object(f.dummyTrack)(),id3Track:A,textTrack:Object(f.dummyTrack)()}},e.demuxSampleAes=function(t,i,l){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},e.flush=function(t){var i=this.cachedData;return i&&(this.cachedData=null,this.demux(i,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(f.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(f.dummyTrack)()}},e.destroy=function(){},n}(),a=function(e,s){return Object(S.isFiniteNumber)(e)?e*90:s*9e4};T.default=r},"./src/demux/chunk-cache.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"default",function(){return S});var S=function(){function f(){this.chunks=[],this.dataLength=0}var c=f.prototype;return c.push=function(r){this.chunks.push(r),this.dataLength+=r.length},c.flush=function(){var r=this.chunks,a=this.dataLength,n;if(r.length)r.length===1?n=r[0]:n=m(r,a);else return new Uint8Array(0);return this.reset(),n},c.reset=function(){this.chunks.length=0,this.dataLength=0},f}();function m(f,c){for(var o=new Uint8Array(c),r=0,a=0;a<f.length;a++){var n=f[a];o.set(n,r),r+=n.length}return o}},"./src/demux/dummy-demuxed-track.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"dummyTrack",function(){return S});function S(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(x,T,v){"use strict";v.r(T);var S=v("./src/utils/logger.ts"),m=function(){function f(o){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=o,this.bytesAvailable=o.byteLength,this.word=0,this.bitsAvailable=0}var c=f.prototype;return c.loadWord=function(){var r=this.data,a=this.bytesAvailable,n=r.byteLength-a,e=new Uint8Array(4),s=Math.min(4,a);if(s===0)throw new Error("no bytes available");e.set(r.subarray(n,n+s)),this.word=new DataView(e.buffer).getUint32(0),this.bitsAvailable=s*8,this.bytesAvailable-=s},c.skipBits=function(r){var a;this.bitsAvailable>r?(this.word<<=r,this.bitsAvailable-=r):(r-=this.bitsAvailable,a=r>>3,r-=a>>3,this.bytesAvailable-=a,this.loadWord(),this.word<<=r,this.bitsAvailable-=r)},c.readBits=function(r){var a=Math.min(this.bitsAvailable,r),n=this.word>>>32-a;return r>32&&S.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=a,this.bitsAvailable>0?this.word<<=a:this.bytesAvailable>0&&this.loadWord(),a=r-a,a>0&&this.bitsAvailable?n<<a|this.readBits(a):n},c.skipLZ=function(){var r;for(r=0;r<this.bitsAvailable;++r)if((this.word&2147483648>>>r)!==0)return this.word<<=r,this.bitsAvailable-=r,r;return this.loadWord(),r+this.skipLZ()},c.skipUEG=function(){this.skipBits(1+this.skipLZ())},c.skipEG=function(){this.skipBits(1+this.skipLZ())},c.readUEG=function(){var r=this.skipLZ();return this.readBits(r+1)-1},c.readEG=function(){var r=this.readUEG();return 1&r?1+r>>>1:-1*(r>>>1)},c.readBoolean=function(){return this.readBits(1)===1},c.readUByte=function(){return this.readBits(8)},c.readUShort=function(){return this.readBits(16)},c.readUInt=function(){return this.readBits(32)},c.skipScalingList=function(r){for(var a=8,n=8,e,s=0;s<r;s++)n!==0&&(e=this.readEG(),n=(a+e+256)%256),a=n===0?a:n},c.readSPS=function(){var r=0,a=0,n=0,e=0,s,t,i,l=this.readUByte.bind(this),u=this.readBits.bind(this),h=this.readUEG.bind(this),p=this.readBoolean.bind(this),g=this.skipBits.bind(this),A=this.skipEG.bind(this),y=this.skipUEG.bind(this),E=this.skipScalingList.bind(this);l();var C=l();if(u(5),g(3),l(),y(),C===100||C===110||C===122||C===244||C===44||C===83||C===86||C===118||C===128){var w=h();if(w===3&&g(1),y(),y(),g(1),p())for(t=w!==3?8:12,i=0;i<t;i++)p()&&(i<6?E(16):E(64))}y();var b=h();if(b===0)h();else if(b===1)for(g(1),A(),A(),s=h(),i=0;i<s;i++)A();y(),g(1);var I=h(),_=h(),L=u(1);L===0&&g(1),g(1),p()&&(r=h(),a=h(),n=h(),e=h());var D=[1,1];if(p()&&p()){var N=l();switch(N){case 1:D=[1,1];break;case 2:D=[12,11];break;case 3:D=[10,11];break;case 4:D=[16,11];break;case 5:D=[40,33];break;case 6:D=[24,11];break;case 7:D=[20,11];break;case 8:D=[32,11];break;case 9:D=[80,33];break;case 10:D=[18,11];break;case 11:D=[15,11];break;case 12:D=[64,33];break;case 13:D=[160,99];break;case 14:D=[4,3];break;case 15:D=[3,2];break;case 16:D=[2,1];break;case 255:{D=[l()<<8|l(),l()<<8|l()];break}}}return{width:Math.ceil((I+1)*16-r*2-a*2),height:(2-L)*(_+1)*16-(L?2:4)*(n+e),pixelRatio:D}},c.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},f}();T.default=m},"./src/demux/id3.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"isHeader",function(){return S}),v.d(T,"isFooter",function(){return m}),v.d(T,"getID3Data",function(){return f}),v.d(T,"canParse",function(){return o}),v.d(T,"getTimeStamp",function(){return r}),v.d(T,"isTimeStampFrame",function(){return a}),v.d(T,"getID3Frames",function(){return e}),v.d(T,"decodeFrame",function(){return s}),v.d(T,"utf8ArrayToStr",function(){return h}),v.d(T,"testables",function(){return p});var S=function(E,C){return C+10<=E.length&&(E[C]===73&&E[C+1]===68&&E[C+2]===51&&(E[C+3]<255&&E[C+4]<255&&(E[C+6]<128&&E[C+7]<128&&E[C+8]<128&&E[C+9]<128)))},m=function(E,C){return C+10<=E.length&&(E[C]===51&&E[C+1]===68&&E[C+2]===73&&(E[C+3]<255&&E[C+4]<255&&(E[C+6]<128&&E[C+7]<128&&E[C+8]<128&&E[C+9]<128)))},f=function(E,C){for(var w=C,b=0;S(E,C);){b+=10;var I=c(E,C+6);b+=I,m(E,C+10)&&(b+=10),C+=b}return b>0?E.subarray(w,w+b):void 0},c=function(E,C){var w=0;return w=(E[C]&127)<<21,w|=(E[C+1]&127)<<14,w|=(E[C+2]&127)<<7,w|=E[C+3]&127,w},o=function(E,C){return S(E,C)&&c(E,C+6)+10<=E.length-C},r=function(E){for(var C=e(E),w=0;w<C.length;w++){var b=C[w];if(a(b))return u(b)}return},a=function(E){return E&&E.key==="PRIV"&&E.info==="com.apple.streaming.transportStreamTimestamp"},n=function(E){var C=String.fromCharCode(E[0],E[1],E[2],E[3]),w=c(E,4),b=10;return{type:C,size:w,data:E.subarray(b,b+w)}},e=function(E){for(var C=0,w=[];S(E,C);){var b=c(E,C+6);C+=10;for(var I=C+b;C+8<I;){var _=n(E.subarray(C)),L=s(_);L&&w.push(L),C+=_.size+10}m(E,C)&&(C+=10)}return w},s=function(E){return E.type==="PRIV"?t(E):E.type[0]==="W"?l(E):i(E)},t=function(E){if(E.size<2)return;var C=h(E.data,!0),w=new Uint8Array(E.data.subarray(C.length+1));return{key:E.type,info:C,data:w.buffer}},i=function(E){if(E.size<2)return;if(E.type==="TXXX"){var C=1,w=h(E.data.subarray(C),!0);C+=w.length+1;var b=h(E.data.subarray(C));return{key:E.type,info:w,data:b}}var I=h(E.data.subarray(1));return{key:E.type,data:I}},l=function(E){if(E.type==="WXXX"){if(E.size<2)return;var C=1,w=h(E.data.subarray(C),!0);C+=w.length+1;var b=h(E.data.subarray(C));return{key:E.type,info:w,data:b}}var I=h(E.data);return{key:E.type,data:I}},u=function(E){if(E.data.byteLength===8){var C=new Uint8Array(E.data),w=C[3]&1,b=(C[4]<<23)+(C[5]<<15)+(C[6]<<7)+C[7];return b/=45,w&&(b+=4772185884e-2),Math.round(b)}return},h=function(E,C){C===void 0&&(C=!1);var w=A();if(w){var b=w.decode(E);if(C){var I=b.indexOf("\0");return I!==-1?b.substring(0,I):b}return b.replace(/\0/g,"")}for(var _=E.length,L,D,N,R="",B=0;B<_;){if(L=E[B++],L===0&&C)return R;if(L===0||L===3)continue;switch(L>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:R+=String.fromCharCode(L);break;case 12:case 13:D=E[B++],R+=String.fromCharCode((L&31)<<6|D&63);break;case 14:D=E[B++],N=E[B++],R+=String.fromCharCode((L&15)<<12|(D&63)<<6|(N&63)<<0);break;default:}}return R},p={decodeTextFrame:i},g;function A(){return!g&&typeof self.TextDecoder!="undefined"&&(g=new self.TextDecoder("utf-8")),g}},"./src/demux/mp3demuxer.ts":function(x,T,v){"use strict";v.r(T);var S=v("./src/demux/base-audio-demuxer.ts"),m=v("./src/demux/id3.ts"),f=v("./src/utils/logger.ts"),c=v("./src/demux/mpegaudio.ts");function o(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,r(n,e)}function r(n,e){return r=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t},r(n,e)}var a=function(n){o(e,n);function e(){return n.apply(this,arguments)||this}var s=e.prototype;return s.resetInitSegment=function(i,l,u){n.prototype.resetInitSegment.call(this,i,l,u),this._audioTrack={container:"audio/mpeg",type:"audio",id:0,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:i,duration:u,inputTimeScale:9e4,dropped:0}},e.probe=function(i){if(!i)return!1;for(var l=m.getID3Data(i,0)||[],u=l.length,h=i.length;u<h;u++)if(c.probe(i,u))return f.logger.log("MPEG Audio sync word found !"),!0;return!1},s.canParse=function(i,l){return c.canParse(i,l)},s.appendFrame=function(i,l,u){return this.initPTS===null?void 0:c.appendFrame(i,l,u,this.initPTS,this.frameIndex)},e}(S.default);a.minProbeByteLength=4,T.default=a},"./src/demux/mp4demuxer.ts":function(x,T,v){"use strict";v.r(T);var S=v("./src/utils/mp4-tools.ts"),m=v("./src/demux/dummy-demuxed-track.ts"),f=function(){function c(r,a){this.remainderData=null,this.config=void 0,this.config=a}var o=c.prototype;return o.resetTimeStamp=function(){},o.resetInitSegment=function(){},o.resetContiguity=function(){},c.probe=function(a){return Object(S.findBox)({data:a,start:0,end:Math.min(a.length,16384)},["moof"]).length>0},o.demux=function(a){var n=a,e=Object(m.dummyTrack)();if(this.config.progressive){this.remainderData&&(n=Object(S.appendUint8Array)(this.remainderData,a));var s=Object(S.segmentValidRange)(n);this.remainderData=s.remainder,e.samples=s.valid||new Uint8Array}else e.samples=n;return{audioTrack:Object(m.dummyTrack)(),avcTrack:e,id3Track:Object(m.dummyTrack)(),textTrack:Object(m.dummyTrack)()}},o.flush=function(){var a=Object(m.dummyTrack)();return a.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(m.dummyTrack)(),avcTrack:a,id3Track:Object(m.dummyTrack)(),textTrack:Object(m.dummyTrack)()}},o.demuxSampleAes=function(a,n,e){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},o.destroy=function(){},c}();f.minProbeByteLength=1024,T.default=f},"./src/demux/mpegaudio.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"appendFrame",function(){return r}),v.d(T,"parseHeader",function(){return a}),v.d(T,"isHeaderPattern",function(){return n}),v.d(T,"isHeader",function(){return e}),v.d(T,"canParse",function(){return s}),v.d(T,"probe",function(){return t});var S=null,m=[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],f=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],c=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],o=[0,1,1,4];function r(i,l,u,h,p){if(u+24>l.length)return;var g=a(l,u);if(g&&u+g.frameLength<=l.length){var A=g.samplesPerFrame*9e4/g.sampleRate,y=h+p*A,E={unit:l.subarray(u,u+g.frameLength),pts:y,dts:y};return i.config=[],i.channelCount=g.channelCount,i.samplerate=g.sampleRate,i.samples.push(E),{sample:E,length:g.frameLength,missing:0}}}function a(i,l){var u=i[l+1]>>3&3,h=i[l+1]>>1&3,p=i[l+2]>>4&15,g=i[l+2]>>2&3;if(u!==1&&p!==0&&p!==15&&g!==3){var A=i[l+2]>>1&1,y=i[l+3]>>6,E=u===3?3-h:h===3?3:4,C=m[E*14+p-1]*1e3,w=u===3?0:u===2?1:2,b=f[w*3+g],I=y===3?1:2,_=c[u][h],L=o[h],D=_*8*L,N=Math.floor(_*C/b+A)*L;if(S===null){var R=navigator.userAgent||"",B=R.match(/Chrome\/(\d+)/i);S=B?parseInt(B[1]):0}var M=!!S&&S<=87;return M&&h===2&&C>=224e3&&y===0&&(i[l+3]=i[l+3]|128),{sampleRate:b,channelCount:I,frameLength:N,samplesPerFrame:D}}}function n(i,l){return i[l]===255&&(i[l+1]&224)===224&&(i[l+1]&6)!==0}function e(i,l){return l+1<i.length&&n(i,l)}function s(i,l){var u=4;return n(i,l)&&u<=i.length-l}function t(i,l){if(l+1<i.length&&n(i,l)){var u=4,h=a(i,l),p=u;h!=null&&h.frameLength&&(p=h.frameLength);var g=l+p;return g===i.length||e(i,g)}return!1}},"./src/demux/sample-aes.ts":function(x,T,v){"use strict";v.r(T);var S=v("./src/crypt/decrypter.ts"),m=v("./src/demux/tsdemuxer.ts"),f=function(){function c(r,a,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new S.default(r,a,{removePKCS7Padding:!1})}var o=c.prototype;return o.decryptBuffer=function(a,n){this.decrypter.decrypt(a,this.keyData.key.buffer,this.keyData.iv.buffer,n)},o.decryptAacSample=function(a,n,e,s){var t=a[n].unit,i=t.subarray(16,t.length-t.length%16),l=i.buffer.slice(i.byteOffset,i.byteOffset+i.length),u=this;this.decryptBuffer(l,function(h){var p=new Uint8Array(h);t.set(p,16),s||u.decryptAacSamples(a,n+1,e)})},o.decryptAacSamples=function(a,n,e){for(;;n++){if(n>=a.length){e();return}if(a[n].unit.length<32)continue;var s=this.decrypter.isSync();if(this.decryptAacSample(a,n,e,s),!s)return}},o.getAvcEncryptedData=function(a){for(var n=Math.floor((a.length-48)/160)*16+16,e=new Int8Array(n),s=0,t=32;t<=a.length-16;t+=160,s+=16)e.set(a.subarray(t,t+16),s);return e},o.getAvcDecryptedUnit=function(a,n){for(var e=new Uint8Array(n),s=0,t=32;t<=a.length-16;t+=160,s+=16)a.set(e.subarray(s,s+16),t);return a},o.decryptAvcSample=function(a,n,e,s,t,i){var l=Object(m.discardEPB)(t.data),u=this.getAvcEncryptedData(l),h=this;this.decryptBuffer(u.buffer,function(p){t.data=h.getAvcDecryptedUnit(l,p),i||h.decryptAvcSamples(a,n,e+1,s)})},o.decryptAvcSamples=function(a,n,e,s){if(a instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;n++,e=0){if(n>=a.length){s();return}for(var t=a[n].units;!(e>=t.length);e++){var i=t[e];if(i.data.length<=48||i.type!==1&&i.type!==5)continue;var l=this.decrypter.isSync();if(this.decryptAvcSample(a,n,e,s,i,l),!l)return}}},c}();T.default=f},"./src/demux/transmuxer-interface.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"default",function(){return t});var S=v("./node_modules/webworkify-webpack/index.js"),m=v.n(S),f=v("./src/events.ts"),c=v("./src/demux/transmuxer.ts"),o=v("./src/utils/logger.ts"),r=v("./src/errors.ts"),a=v("./src/utils/mediasource-helper.ts"),n=v("./node_modules/eventemitter3/index.js"),e=v.n(n),s=Object(a.getMediaSource)()||{isTypeSupported:function(){return!1}},t=function(){function i(u,h,p,g){var A=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=u,this.id=h,this.onTransmuxComplete=p,this.onFlush=g;var y=u.config,E=function(_,L){L=L||{},L.frag=A.frag,L.id=A.id,u.trigger(_,L)};this.observer=new n.EventEmitter,this.observer.on(f.Events.FRAG_DECRYPTED,E),this.observer.on(f.Events.ERROR,E);var C={mp4:s.isTypeSupported("video/mp4"),mpeg:s.isTypeSupported("audio/mpeg"),mp3:s.isTypeSupported('audio/mp4; codecs="mp3"')},w=navigator.vendor;if(y.enableWorker&&typeof Worker!="undefined"){o.logger.log("demuxing in webworker");var b;try{b=this.worker=S("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),b.addEventListener("message",this.onwmsg),b.onerror=function(I){u.trigger(f.Events.ERROR,{type:r.ErrorTypes.OTHER_ERROR,details:r.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(I.message+" ("+I.filename+":"+I.lineno+")")})},b.postMessage({cmd:"init",typeSupported:C,vendor:w,id:h,config:JSON.stringify(y)})}catch(I){o.logger.warn("Error in worker:",I),o.logger.error("Error while initializing DemuxerWorker, fallback to inline"),b&&self.URL.revokeObjectURL(b.objectURL),this.transmuxer=new c.default(this.observer,C,y,w,h),this.worker=null}}else this.transmuxer=new c.default(this.observer,C,y,w,h)}var l=i.prototype;return l.destroy=function(){var h=this.worker;if(h)h.removeEventListener("message",this.onwmsg),h.terminate(),this.worker=null;else{var p=this.transmuxer;p&&(p.destroy(),this.transmuxer=null)}var g=this.observer;g&&g.removeAllListeners(),this.observer=null},l.push=function(h,p,g,A,y,E,C,w,b,I){var _=this;b.transmuxing.start=self.performance.now();var L=this.transmuxer,D=this.worker,N=E?E.start:y.start,R=y.decryptdata,B=this.frag,M=!(B&&y.cc===B.cc),H=!(B&&b.level===B.level),F=B?b.sn-B.sn:-1,K=this.part?b.part-this.part.index:1,j=!H&&(F===1||F===0&&K===1),V=self.performance.now();(H||F||y.stats.parsing.start===0)&&(y.stats.parsing.start=V),E&&(K||!j)&&(E.stats.parsing.start=V);var z=new c.TransmuxState(M,j,w,H,N);if(!j||M){o.logger.log("[transmuxer-interface, "+y.type+"]: Starting new transmux session for sn: "+b.sn+" p: "+b.part+" level: "+b.level+" id: "+b.id+`
|
|
|
discontinuity: `+M+`
|
|
|
trackSwitch: `+H+`
|
|
|
contiguous: `+j+`
|
|
|
accurateTimeOffset: `+w+`
|
|
|
timeOffset: `+N);var Y=new c.TransmuxConfig(g,A,p,C,I);this.configureTransmuxer(Y)}if(this.frag=y,this.part=E,D)D.postMessage({cmd:"demux",data:h,decryptdata:R,chunkMeta:b,state:z},h instanceof ArrayBuffer?[h]:[]);else if(L){var ee=L.push(h,R,b,z);Object(c.isPromise)(ee)?ee.then(function(fe){_.handleTransmuxComplete(fe)}):this.handleTransmuxComplete(ee)}},l.flush=function(h){var p=this;h.transmuxing.start=self.performance.now();var g=this.transmuxer,A=this.worker;if(A)A.postMessage({cmd:"flush",chunkMeta:h});else if(g){var y=g.flush(h);Object(c.isPromise)(y)?y.then(function(E){p.handleFlushResult(E,h)}):this.handleFlushResult(y,h)}},l.handleFlushResult=function(h,p){var g=this;h.forEach(function(A){g.handleTransmuxComplete(A)}),this.onFlush(p)},l.onWorkerMessage=function(h){var p=h.data,g=this.hls;switch(p.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(p.data);break}case"flush":{this.onFlush(p.data);break}default:{p.data=p.data||{},p.data.frag=this.frag,p.data.id=this.id,g.trigger(p.event,p.data);break}}},l.configureTransmuxer=function(h){var p=this.worker,g=this.transmuxer;p?p.postMessage({cmd:"configure",config:h}):g&&g.configure(h)},l.handleTransmuxComplete=function(h){h.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(h)},i}()},"./src/demux/transmuxer-worker.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"default",function(){return r});var S=v("./src/demux/transmuxer.ts"),m=v("./src/events.ts"),f=v("./src/utils/logger.ts"),c=v("./node_modules/eventemitter3/index.js"),o=v.n(c);function r(t){var i=new c.EventEmitter,l=function(h,p){t.postMessage({event:h,data:p})};i.on(m.Events.FRAG_DECRYPTED,l),i.on(m.Events.ERROR,l),t.addEventListener("message",function(u){var h=u.data;switch(h.cmd){case"init":{var p=JSON.parse(h.config);t.transmuxer=new S.default(i,h.typeSupported,p,h.vendor,h.id),Object(f.enableLogs)(p.debug),l("init",null);break}case"configure":{t.transmuxer.configure(h.config);break}case"demux":{var g=t.transmuxer.push(h.data,h.decryptdata,h.chunkMeta,h.state);Object(S.isPromise)(g)?g.then(function(E){a(t,E)}):a(t,g);break}case"flush":{var A=h.chunkMeta,y=t.transmuxer.flush(A);Object(S.isPromise)(y)?y.then(function(E){e(t,E,A)}):e(t,y,A);break}default:break}})}function a(t,i){if(s(i.remuxResult))return;var l=[],u=i.remuxResult,h=u.audio,p=u.video;h&&n(l,h),p&&n(l,p),t.postMessage({event:"transmuxComplete",data:i},l)}function n(t,i){i.data1&&t.push(i.data1.buffer),i.data2&&t.push(i.data2.buffer)}function e(t,i,l){i.forEach(function(u){a(t,u)}),t.postMessage({event:"flush",data:l})}function s(t){return!t.audio&&!t.video&&!t.text&&!t.id3&&!t.initSegment}},"./src/demux/transmuxer.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"default",function(){return p}),v.d(T,"isPromise",function(){return y}),v.d(T,"TransmuxConfig",function(){return E}),v.d(T,"TransmuxState",function(){return C});var S=v("./src/events.ts"),m=v("./src/errors.ts"),f=v("./src/crypt/decrypter.ts"),c=v("./src/demux/aacdemuxer.ts"),o=v("./src/demux/mp4demuxer.ts"),r=v("./src/demux/tsdemuxer.ts"),a=v("./src/demux/mp3demuxer.ts"),n=v("./src/remux/mp4-remuxer.ts"),e=v("./src/remux/passthrough-remuxer.ts"),s=v("./src/demux/chunk-cache.ts"),t=v("./src/utils/mp4-tools.ts"),i=v("./src/utils/logger.ts"),l;try{l=self.performance.now.bind(self.performance)}catch(w){i.logger.debug("Unable to use Performance API on this environment"),l=self.Date.now}var u=[{demux:r.default,remux:n.default},{demux:o.default,remux:e.default},{demux:c.default,remux:n.default},{demux:a.default,remux:n.default}],h=1024;u.forEach(function(w){var b=w.demux;h=Math.max(h,b.minProbeByteLength)});var p=function(){function w(I,_,L,D,N){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new s.default,this.observer=I,this.typeSupported=_,this.config=L,this.vendor=D,this.id=N}var b=w.prototype;return b.configure=function(_){this.transmuxConfig=_,this.decrypter&&this.decrypter.reset()},b.push=function(_,L,D,N){var R=this,B=D.transmuxing;B.executeStart=l();var M=new Uint8Array(_),H=this.cache,F=this.config,K=this.currentTransmuxState,j=this.transmuxConfig;N&&(this.currentTransmuxState=N);var V=g(M,L);if(V&&V.method==="AES-128"){var z=this.getDecrypter();if(F.enableSoftwareAES){var Y=z.softwareDecrypt(M,V.key.buffer,V.iv.buffer);if(!Y)return B.executeEnd=l(),A(D);M=new Uint8Array(Y)}else return this.decryptionPromise=z.webCryptoDecrypt(M,V.key.buffer,V.iv.buffer).then(function(X){var J=R.push(X,null,D);return R.decryptionPromise=null,J}),this.decryptionPromise}var ee=N||K,fe=ee.contiguous,ie=ee.discontinuity,we=ee.trackSwitch,Ce=ee.accurateTimeOffset,Le=ee.timeOffset,He=j.audioCodec,ce=j.videoCodec,Pe=j.defaultInitPts,Q=j.duration,me=j.initSegmentData;if((ie||we)&&this.resetInitSegment(me,He,ce,Q),ie&&this.resetInitialTimestamp(Pe),fe||this.resetContiguity(),this.needsProbing(M,ie,we)){if(H.dataLength){var Je=H.flush();M=Object(t.appendUint8Array)(Je,M)}this.configureTransmuxer(M,j)}var re=this.transmux(M,V,Le,Ce,D),G=this.currentTransmuxState;return G.contiguous=!0,G.discontinuity=!1,G.trackSwitch=!1,B.executeEnd=l(),re},b.flush=function(_){var L=this,D=_.transmuxing;D.executeStart=l();var N=this.decrypter,R=this.cache,B=this.currentTransmuxState,M=this.decryptionPromise;if(M)return M.then(function(){return L.flush(_)});var H=[],F=B.timeOffset;if(N){var K=N.flush();K&&H.push(this.push(K,null,_))}var j=R.dataLength;R.reset();var V=this.demuxer,z=this.remuxer;if(!V||!z)return j>=h&&this.observer.emit(S.Events.ERROR,S.Events.ERROR,{type:m.ErrorTypes.MEDIA_ERROR,details:m.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),D.executeEnd=l(),[A(_)];var Y=V.flush(F);return y(Y)?Y.then(function(ee){return L.flushRemux(H,ee,_),H}):(this.flushRemux(H,Y,_),H)},b.flushRemux=function(_,L,D){var N=L.audioTrack,R=L.avcTrack,B=L.id3Track,M=L.textTrack,H=this.currentTransmuxState,F=H.accurateTimeOffset,K=H.timeOffset;i.logger.log("[transmuxer.ts]: Flushed fragment "+D.sn+(D.part>-1?" p: "+D.part:"")+" of level "+D.level);var j=this.remuxer.remux(N,R,B,M,K,F,!0,this.id);_.push({remuxResult:j,chunkMeta:D}),D.transmuxing.executeEnd=l()},b.resetInitialTimestamp=function(_){var L=this.demuxer,D=this.remuxer;if(!L||!D)return;L.resetTimeStamp(_),D.resetTimeStamp(_)},b.resetContiguity=function(){var _=this.demuxer,L=this.remuxer;if(!_||!L)return;_.resetContiguity(),L.resetNextTimestamp()},b.resetInitSegment=function(_,L,D,N){var R=this.demuxer,B=this.remuxer;if(!R||!B)return;R.resetInitSegment(L,D,N),B.resetInitSegment(_,L,D)},b.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},b.transmux=function(_,L,D,N,R){var B;return L&&L.method==="SAMPLE-AES"?B=this.transmuxSampleAes(_,L,D,N,R):B=this.transmuxUnencrypted(_,D,N,R),B},b.transmuxUnencrypted=function(_,L,D,N){var R=this.demuxer.demux(_,L,!1,!this.config.progressive),B=R.audioTrack,M=R.avcTrack,H=R.id3Track,F=R.textTrack,K=this.remuxer.remux(B,M,H,F,L,D,!1,this.id);return{remuxResult:K,chunkMeta:N}},b.transmuxSampleAes=function(_,L,D,N,R){var B=this;return this.demuxer.demuxSampleAes(_,L,D).then(function(M){var H=B.remuxer.remux(M.audioTrack,M.avcTrack,M.id3Track,M.textTrack,D,N,!1,B.id);return{remuxResult:H,chunkMeta:R}})},b.configureTransmuxer=function(_,L){for(var D=this.config,N=this.observer,R=this.typeSupported,B=this.vendor,M=L.audioCodec,H=L.defaultInitPts,F=L.duration,K=L.initSegmentData,j=L.videoCodec,V,z=0,Y=u.length;z<Y;z++)if(u[z].demux.probe(_)){V=u[z];break}V||(i.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),V={demux:o.default,remux:e.default});var ee=this.demuxer,fe=this.remuxer,ie=V.remux,we=V.demux;(!fe||!(fe instanceof ie))&&(this.remuxer=new ie(N,D,R,B)),(!ee||!(ee instanceof we))&&(this.demuxer=new we(N,D,R),this.probe=we.probe),this.resetInitSegment(K,M,j,F),this.resetInitialTimestamp(H)},b.needsProbing=function(_,L,D){return!this.demuxer||!this.remuxer||L||D},b.getDecrypter=function(){var _=this.decrypter;return _||(_=this.decrypter=new f.default(this.observer,this.config)),_},w}();function g(w,b){var I=null;return w.byteLength>0&&b!=null&&b.key!=null&&b.iv!==null&&b.method!=null&&(I=b),I}var A=function(b){return{remuxResult:{},chunkMeta:b}};function y(w){return"then"in w&&w.then instanceof Function}var E=function(b,I,_,L,D){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=I,this.initSegmentData=_,this.duration=L,this.defaultInitPts=D},C=function(b,I,_,L,D){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=I,this.accurateTimeOffset=_,this.trackSwitch=L,this.timeOffset=D}},"./src/demux/tsdemuxer.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"discardEPB",function(){return A});var S=v("./src/demux/adts.ts"),m=v("./src/demux/mpegaudio.ts"),f=v("./src/demux/exp-golomb.ts"),c=v("./src/demux/id3.ts"),o=v("./src/demux/sample-aes.ts"),r=v("./src/events.ts"),a=v("./src/utils/mp4-tools.ts"),n=v("./src/utils/logger.ts"),e=v("./src/errors.ts"),s={video:1,audio:2,id3:3,text:4},t=function(){function y(C,w,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=C,this.config=w,this.typeSupported=b}y.probe=function(w){var b=y.syncOffset(w);return b<0?!1:(b&&n.logger.warn("MPEG2-TS detected but first sync word found @ offset "+b+", junk ahead ?"),!0)},y.syncOffset=function(w){for(var b=Math.min(1e3,w.length-3*188),I=0;I<b;){if(w[I]===71&&w[I+188]===71&&w[I+2*188]===71)return I;I++}return-1},y.createTrack=function(w,b){return{container:w==="video"||w==="audio"?"video/mp2t":void 0,type:w,id:s[w],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:w==="audio"?b:void 0}};var E=y.prototype;return E.resetInitSegment=function(w,b,I){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=y.createTrack("video",I),this._audioTrack=y.createTrack("audio",I),this._id3Track=y.createTrack("id3",I),this._txtTrack=y.createTrack("text",I),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=w,this.videoCodec=b,this._duration=I},E.resetTimeStamp=function(){},E.resetContiguity=function(){var w=this._audioTrack,b=this._avcTrack,I=this._id3Track;w&&(w.pesData=null),b&&(b.pesData=null),I&&(I.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},E.demux=function(w,b,I,_){I===void 0&&(I=!1),_===void 0&&(_=!1),I||(this.sampleAes=null);var L,D=this._avcTrack,N=this._audioTrack,R=this._id3Track,B=D.pid,M=D.pesData,H=N.pid,F=R.pid,K=N.pesData,j=R.pesData,V=!1,z=this.pmtParsed,Y=this._pmtId,ee=w.length;if(this.remainderData&&(w=Object(a.appendUint8Array)(this.remainderData,w),ee=w.length,this.remainderData=null),ee<188&&!_)return this.remainderData=w,{audioTrack:N,avcTrack:D,id3Track:R,textTrack:this._txtTrack};var fe=Math.max(0,y.syncOffset(w));ee-=(ee+fe)%188,ee<w.byteLength&&!_&&(this.remainderData=new Uint8Array(w.buffer,ee,w.buffer.byteLength-ee));for(var ie=fe;ie<ee;ie+=188)if(w[ie]===71){var we=!!(w[ie+1]&64),Ce=((w[ie+1]&31)<<8)+w[ie+2],Le=(w[ie+3]&48)>>4,He=void 0;if(Le>1){if(He=ie+5+w[ie+4],He===ie+188)continue}else He=ie+4;switch(Ce){case B:we&&(M&&(L=h(M))&&this.parseAVCPES(L,!1),M={data:[],size:0}),M&&(M.data.push(w.subarray(He,ie+188)),M.size+=ie+188-He);break;case H:we&&(K&&(L=h(K))&&(N.isAAC?this.parseAACPES(L):this.parseMPEGPES(L)),K={data:[],size:0}),K&&(K.data.push(w.subarray(He,ie+188)),K.size+=ie+188-He);break;case F:we&&(j&&(L=h(j))&&this.parseID3PES(L),j={data:[],size:0}),j&&(j.data.push(w.subarray(He,ie+188)),j.size+=ie+188-He);break;case 0:we&&(He+=w[He]+1),Y=this._pmtId=l(w,He);break;case Y:{we&&(He+=w[He]+1);var ce=u(w,He,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,I);B=ce.avc,B>0&&(D.pid=B),H=ce.audio,H>0&&(N.pid=H,N.isAAC=ce.isAAC),F=ce.id3,F>0&&(R.pid=F),V&&!z&&(n.logger.log("reparse from beginning"),V=!1,ie=fe-188),z=this.pmtParsed=!0;break}case 17:case 8191:break;default:V=!0;break}}else this.observer.emit(r.Events.ERROR,r.Events.ERROR,{type:e.ErrorTypes.MEDIA_ERROR,details:e.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});D.pesData=M,N.pesData=K,R.pesData=j;var Pe={audioTrack:N,avcTrack:D,id3Track:R,textTrack:this._txtTrack};return _&&this.extractRemainingSamples(Pe),Pe},E.flush=function(){var w=this.remainderData;this.remainderData=null;var b;return w?b=this.demux(w,-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},E.extractRemainingSamples=function(w){var b=w.audioTrack,I=w.avcTrack,_=w.id3Track,L=I.pesData,D=b.pesData,N=_.pesData,R;L&&(R=h(L))?(this.parseAVCPES(R,!0),I.pesData=null):I.pesData=L,D&&(R=h(D))?(b.isAAC?this.parseAACPES(R):this.parseMPEGPES(R),b.pesData=null):(D!=null&&D.size&&n.logger.log("last AAC PES packet truncated,might overlap between fragments"),b.pesData=D),N&&(R=h(N))?(this.parseID3PES(R),_.pesData=null):_.pesData=N},E.demuxSampleAes=function(w,b,I){var _=this.demux(w,I,!0,!this.config.progressive),L=this.sampleAes=new o.default(this.observer,this.config,b);return this.decrypt(_,L)},E.decrypt=function(w,b){return new Promise(function(I){var _=w.audioTrack,L=w.avcTrack;_.samples&&_.isAAC?b.decryptAacSamples(_.samples,0,function(){L.samples?b.decryptAvcSamples(L.samples,0,0,function(){I(w)}):I(w)}):L.samples&&b.decryptAvcSamples(L.samples,0,0,function(){I(w)})})},E.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},E.parseAVCPES=function(w,b){var I=this,_=this._avcTrack,L=this.parseAVCNALu(w.data),D=!1,N=this.avcSample,R,B=!1;w.data=null,N&&L.length&&!_.audFound&&(p(N,_),N=this.avcSample=i(!1,w.pts,w.dts,"")),L.forEach(function(M){switch(M.type){case 1:{R=!0,N||(N=I.avcSample=i(!0,w.pts,w.dts,"")),D&&(N.debug+="NDR "),N.frame=!0;var H=M.data;if(B&&H.length>4){var F=new f.default(H).readSliceType();(F===2||F===4||F===7||F===9)&&(N.key=!0)}break}case 5:R=!0,N||(N=I.avcSample=i(!0,w.pts,w.dts,"")),D&&(N.debug+="IDR "),N.key=!0,N.frame=!0;break;case 6:{R=!0,D&&N&&(N.debug+="SEI ");var K=new f.default(A(M.data));K.readUByte();for(var j=0,V=0,z=!1,Y=0;!z&&K.bytesAvailable>1;){j=0;do Y=K.readUByte(),j+=Y;while(Y===255);V=0;do Y=K.readUByte(),V+=Y;while(Y===255);if(j===4&&K.bytesAvailable!==0){z=!0;var ee=K.readUByte();if(ee===181){var fe=K.readUShort();if(fe===49){var ie=K.readUInt();if(ie===1195456820){var we=K.readUByte();if(we===3){for(var Ce=K.readUByte(),Le=K.readUByte(),He=31&Ce,ce=[Ce,Le],Pe=0;Pe<He;Pe++)ce.push(K.readUByte()),ce.push(K.readUByte()),ce.push(K.readUByte());g(I._txtTrack.samples,{type:3,pts:w.pts,bytes:ce})}}}}}else if(j===5&&K.bytesAvailable!==0){if(z=!0,V>16){for(var Q=[],me=0;me<16;me++)Q.push(K.readUByte().toString(16)),(me===3||me===5||me===7||me===9)&&Q.push("-");for(var Je=V-16,re=new Uint8Array(Je),G=0;G<Je;G++)re[G]=K.readUByte();g(I._txtTrack.samples,{pts:w.pts,payloadType:j,uuid:Q.join(""),userData:Object(c.utf8ArrayToStr)(re),userDataBytes:re})}}else if(V<K.bytesAvailable)for(var X=0;X<V;X++)K.readUByte()}break}case 7:if(R=!0,B=!0,D&&N&&(N.debug+="SPS "),!_.sps){var J=new f.default(M.data),Ae=J.readSPS();_.width=Ae.width,_.height=Ae.height,_.pixelRatio=Ae.pixelRatio,_.sps=[M.data],_.duration=I._duration;for(var he=M.data.subarray(1,4),Me="avc1.",Ie=0;Ie<3;Ie++){var oe=he[Ie].toString(16);oe.length<2&&(oe="0"+oe),Me+=oe}_.codec=Me}break;case 8:R=!0,D&&N&&(N.debug+="PPS "),_.pps||(_.pps=[M.data]);break;case 9:R=!1,_.audFound=!0,N&&p(N,_),N=I.avcSample=i(!1,w.pts,w.dts,D?"AUD ":"");break;case 12:R=!1;break;default:R=!1,N&&(N.debug+="unknown NAL "+M.type+" ");break}if(N&&R){var pe=N.units;pe.push(M)}}),b&&N&&(p(N,_),this.avcSample=null)},E.getLastNalUnit=function(){var w,b=this.avcSample,I;if(!b||b.units.length===0){var _=this._avcTrack.samples;b=_[_.length-1]}if((w=b)!==null&&w!==void 0&&w.units){var L=b.units;I=L[L.length-1]}return I},E.parseAVCNALu=function(w){var b=w.byteLength,I=this._avcTrack,_=I.naluState||0,L=_,D=[],N=0,R,B,M,H=-1,F=0;for(_===-1&&(H=0,F=w[0]&31,_=0,N=1);N<b;){if(R=w[N++],!_){_=R?0:1;continue}if(_===1){_=R?0:2;continue}if(!R)_=3;else if(R===1){if(H>=0){var K={data:w.subarray(H,N-_-1),type:F};D.push(K)}else{var j=this.getLastNalUnit();if(j&&(L&&N<=4-L&&(j.state&&(j.data=j.data.subarray(0,j.data.byteLength-L))),B=N-_-1,B>0)){var V=new Uint8Array(j.data.byteLength+B);V.set(j.data,0),V.set(w.subarray(0,B),j.data.byteLength),j.data=V}}N<b?(M=w[N]&31,H=N,F=M,_=0):_=-1}else _=0}if(H>=0&&_>=0){var z={data:w.subarray(H,b),type:F,state:_};D.push(z)}if(D.length===0){var Y=this.getLastNalUnit();if(Y){var ee=new Uint8Array(Y.data.byteLength+w.byteLength);ee.set(Y.data,0),ee.set(w,Y.data.byteLength),Y.data=ee}}return I.naluState=_,D},E.parseAACPES=function(w){var b=0,I=this._audioTrack,_=this.aacOverFlow,L=w.data;if(_){this.aacOverFlow=null;var D=_.sample.unit.byteLength,N=Math.min(_.missing,D),R=D-N;_.sample.unit.set(L.subarray(0,N),R),I.samples.push(_.sample),b=_.missing}var B,M;for(B=b,M=L.length;B<M-1&&!S.isHeader(L,B);B++);if(B!==b){var H,F;if(B<M-1?(H="AAC PES did not start with ADTS header,offset:"+B,F=!1):(H="no ADTS header found in AAC PES",F=!0),n.logger.warn("parsing error:"+H),this.observer.emit(r.Events.ERROR,r.Events.ERROR,{type:e.ErrorTypes.MEDIA_ERROR,details:e.ErrorDetails.FRAG_PARSING_ERROR,fatal:F,reason:H}),F)return}S.initTrackConfig(I,this.observer,L,B,this.audioCodec);var K;if(w.pts!==void 0)K=w.pts;else if(_){var j=S.getFrameDuration(I.samplerate);K=_.sample.pts+j}else{n.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var V=0;B<M;)if(S.isHeader(L,B)){if(B+5<M){var z=S.appendFrame(I,L,B,K,V);if(z)if(z.missing)this.aacOverFlow=z;else{B+=z.length,V++;continue}}break}else B++},E.parseMPEGPES=function(w){var b=w.data,I=b.length,_=0,L=0,D=w.pts;if(D===void 0){n.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;L<I;)if(m.isHeader(b,L)){var N=m.appendFrame(this._audioTrack,b,L,D,_);if(N)L+=N.length,_++;else break}else L++},E.parseID3PES=function(w){if(w.pts===void 0){n.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(w)},y}();t.minProbeByteLength=188;function i(y,E,C,w){return{key:y,frame:!1,pts:E,dts:C,units:[],debug:w,length:0}}function l(y,E){return(y[E+10]&31)<<8|y[E+11]}function u(y,E,C,w){var b={audio:-1,avc:-1,id3:-1,isAAC:!0},I=(y[E+1]&15)<<8|y[E+2],_=E+3+I-4,L=(y[E+10]&15)<<8|y[E+11];for(E+=12+L;E<_;){var D=(y[E+1]&31)<<8|y[E+2];switch(y[E]){case 207:if(!w){n.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:b.audio===-1&&(b.audio=D);break;case 21:b.id3===-1&&(b.id3=D);break;case 219:if(!w){n.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:b.avc===-1&&(b.avc=D);break;case 3:case 4:C?b.audio===-1&&(b.audio=D,b.isAAC=!1):n.logger.log("MPEG audio found, not supported in this browser");break;case 36:n.logger.warn("Unsupported HEVC stream type found");break;default:break}E+=((y[E+3]&15)<<8|y[E+4])+5}return b}function h(y){var E=0,C,w,b,I,_,L=y.data;if(!y||y.size===0)return null;for(;L[0].length<19&&L.length>1;){var D=new Uint8Array(L[0].length+L[1].length);D.set(L[0]),D.set(L[1],L[0].length),L[0]=D,L.splice(1,1)}C=L[0];var N=(C[0]<<16)+(C[1]<<8)+C[2];if(N===1){if(w=(C[4]<<8)+C[5],w&&w>y.size-6)return null;var R=C[7];R&192&&(I=(C[9]&14)*536870912+(C[10]&255)*4194304+(C[11]&254)*16384+(C[12]&255)*128+(C[13]&254)/2,R&64?(_=(C[14]&14)*536870912+(C[15]&255)*4194304+(C[16]&254)*16384+(C[17]&255)*128+(C[18]&254)/2,I-_>60*9e4&&(n.logger.warn(Math.round((I-_)/9e4)+"s delta between PTS and DTS, align them"),I=_)):_=I),b=C[8];var B=b+9;if(y.size<=B)return null;y.size-=B;for(var M=new Uint8Array(y.size),H=0,F=L.length;H<F;H++){C=L[H];var K=C.byteLength;if(B)if(B>K){B-=K;continue}else C=C.subarray(B),K-=B,B=0;M.set(C,E),E+=K}return w&&(w-=b+3),{data:M,pts:I,dts:_,len:w}}return null}function p(y,E){if(y.units.length&&y.frame){if(y.pts===void 0){var C=E.samples,w=C.length;if(w){var b=C[w-1];y.pts=b.pts,y.dts=b.dts}else{E.dropped++;return}}E.samples.push(y)}y.debug.length&&n.logger.log(y.pts+"/"+y.dts+":"+y.debug)}function g(y,E){var C=y.length;if(C>0){if(E.pts>=y[C-1].pts)y.push(E);else for(var w=C-1;w>=0;w--)if(E.pts<y[w].pts){y.splice(w,0,E);break}}else y.push(E)}function A(y){for(var E=y.byteLength,C=[],w=1;w<E-2;)y[w]===0&&y[w+1]===0&&y[w+2]===3?(C.push(w+2),w+=2):w++;if(C.length===0)return y;var b=E-C.length,I=new Uint8Array(b),_=0;for(w=0;w<b;_++,w++)_===C[0]&&(_++,C.shift()),I[w]=y[_];return I}T.default=t},"./src/errors.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"ErrorTypes",function(){return S}),v.d(T,"ErrorDetails",function(){return m});var S;(function(f){f.NETWORK_ERROR="networkError",f.MEDIA_ERROR="mediaError",f.KEY_SYSTEM_ERROR="keySystemError",f.MUX_ERROR="muxError",f.OTHER_ERROR="otherError"})(S||(S={}));var m;(function(f){f.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",f.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",f.KEY_SYSTEM_NO_SESSION="keySystemNoSession",f.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",f.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",f.MANIFEST_LOAD_ERROR="manifestLoadError",f.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",f.MANIFEST_PARSING_ERROR="manifestParsingError",f.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",f.LEVEL_EMPTY_ERROR="levelEmptyError",f.LEVEL_LOAD_ERROR="levelLoadError",f.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",f.LEVEL_SWITCH_ERROR="levelSwitchError",f.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",f.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",f.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",f.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",f.FRAG_LOAD_ERROR="fragLoadError",f.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",f.FRAG_DECRYPT_ERROR="fragDecryptError",f.FRAG_PARSING_ERROR="fragParsingError",f.REMUX_ALLOC_ERROR="remuxAllocError",f.KEY_LOAD_ERROR="keyLoadError",f.KEY_LOAD_TIMEOUT="keyLoadTimeOut",f.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",f.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",f.BUFFER_APPEND_ERROR="bufferAppendError",f.BUFFER_APPENDING_ERROR="bufferAppendingError",f.BUFFER_STALLED_ERROR="bufferStalledError",f.BUFFER_FULL_ERROR="bufferFullError",f.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",f.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",f.INTERNAL_EXCEPTION="internalException",f.INTERNAL_ABORTED="aborted",f.UNKNOWN="unknown"})(m||(m={}))},"./src/events.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"Events",function(){return S});var S;(function(m){m.MEDIA_ATTACHING="hlsMediaAttaching",m.MEDIA_ATTACHED="hlsMediaAttached",m.MEDIA_DETACHING="hlsMediaDetaching",m.MEDIA_DETACHED="hlsMediaDetached",m.BUFFER_RESET="hlsBufferReset",m.BUFFER_CODECS="hlsBufferCodecs",m.BUFFER_CREATED="hlsBufferCreated",m.BUFFER_APPENDING="hlsBufferAppending",m.BUFFER_APPENDED="hlsBufferAppended",m.BUFFER_EOS="hlsBufferEos",m.BUFFER_FLUSHING="hlsBufferFlushing",m.BUFFER_FLUSHED="hlsBufferFlushed",m.MANIFEST_LOADING="hlsManifestLoading",m.MANIFEST_LOADED="hlsManifestLoaded",m.MANIFEST_PARSED="hlsManifestParsed",m.LEVEL_SWITCHING="hlsLevelSwitching",m.LEVEL_SWITCHED="hlsLevelSwitched",m.LEVEL_LOADING="hlsLevelLoading",m.LEVEL_LOADED="hlsLevelLoaded",m.LEVEL_UPDATED="hlsLevelUpdated",m.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",m.LEVELS_UPDATED="hlsLevelsUpdated",m.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",m.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",m.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",m.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",m.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",m.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",m.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",m.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",m.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",m.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",m.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",m.CUES_PARSED="hlsCuesParsed",m.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",m.INIT_PTS_FOUND="hlsInitPtsFound",m.FRAG_LOADING="hlsFragLoading",m.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",m.FRAG_LOADED="hlsFragLoaded",m.FRAG_DECRYPTED="hlsFragDecrypted",m.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",m.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",m.FRAG_PARSING_METADATA="hlsFragParsingMetadata",m.FRAG_PARSED="hlsFragParsed",m.FRAG_BUFFERED="hlsFragBuffered",m.FRAG_CHANGED="hlsFragChanged",m.FPS_DROP="hlsFpsDrop",m.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",m.ERROR="hlsError",m.DESTROYING="hlsDestroying",m.KEY_LOADING="hlsKeyLoading",m.KEY_LOADED="hlsKeyLoaded",m.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",m.BACK_BUFFER_REACHED="hlsBackBufferReached"})(S||(S={}))},"./src/hls.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"default",function(){return y});var S=v("./node_modules/url-toolkit/src/url-toolkit.js"),m=v.n(S),f=v("./src/loader/playlist-loader.ts"),c=v("./src/loader/key-loader.ts"),o=v("./src/controller/id3-track-controller.ts"),r=v("./src/controller/latency-controller.ts"),a=v("./src/controller/level-controller.ts"),n=v("./src/controller/fragment-tracker.ts"),e=v("./src/controller/stream-controller.ts"),s=v("./src/is-supported.ts"),t=v("./src/utils/logger.ts"),i=v("./src/config.ts"),l=v("./node_modules/eventemitter3/index.js"),u=v.n(l),h=v("./src/events.ts"),p=v("./src/errors.ts");function g(E,C){for(var w=0;w<C.length;w++){var b=C[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(E,b.key,b)}}function A(E,C,w){return C&&g(E.prototype,C),w&&g(E,w),E}var y=function(){E.isSupported=function(){return Object(s.isSupported)()};function E(w){w===void 0&&(w={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new l.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)(E.DefaultConfig,w);this.userConfig=w,Object(t.enableLogs)(b.debug),this._autoLevelCapping=-1,b.progressive&&Object(i.enableStreamingMode)(b);var I=b.abrController,_=b.bufferController,L=b.capLevelController,D=b.fpsController,N=this.abrController=new I(this),R=this.bufferController=new _(this),B=this.capLevelController=new L(this),M=new D(this),H=new f.default(this),F=new c.default(this),K=new o.default(this),j=this.levelController=new a.default(this),V=new n.FragmentTracker(this),z=this.streamController=new e.default(this,V);B.setStreamController(z),M.setStreamController(z);var Y=[j,z];this.networkControllers=Y;var ee=[H,F,N,R,B,M,K,V];this.audioTrackController=this.createController(b.audioTrackController,null,Y),this.createController(b.audioStreamController,V,Y),this.subtitleTrackController=this.createController(b.subtitleTrackController,null,Y),this.createController(b.subtitleStreamController,V,Y),this.createController(b.timelineController,null,ee),this.emeController=this.createController(b.emeController,null,ee),this.cmcdController=this.createController(b.cmcdController,null,ee),this.latencyController=this.createController(r.default,null,ee),this.coreComponents=ee}var C=E.prototype;return C.createController=function(b,I,_){if(b){var L=I?new b(this,I):new b(this);return _&&_.push(L),L}return null},C.on=function(b,I,_){_===void 0&&(_=this),this._emitter.on(b,I,_)},C.once=function(b,I,_){_===void 0&&(_=this),this._emitter.once(b,I,_)},C.removeAllListeners=function(b){this._emitter.removeAllListeners(b)},C.off=function(b,I,_,L){_===void 0&&(_=this),this._emitter.off(b,I,_,L)},C.listeners=function(b){return this._emitter.listeners(b)},C.emit=function(b,I,_){return this._emitter.emit(b,I,_)},C.trigger=function(b,I){if(this.config.debug)return this.emit(b,b,I);try{return this.emit(b,b,I)}catch(_){t.logger.error("An internal error happened while handling event "+b+'. Error message: "'+_.message+'". Here is a stacktrace:',_),this.trigger(h.Events.ERROR,{type:p.ErrorTypes.OTHER_ERROR,details:p.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:b,error:_})}return!1},C.listenerCount=function(b){return this._emitter.listenerCount(b)},C.destroy=function(){t.logger.log("destroy"),this.trigger(h.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},C.attachMedia=function(b){t.logger.log("attachMedia"),this._media=b,this.trigger(h.Events.MEDIA_ATTACHING,{media:b})},C.detachMedia=function(){t.logger.log("detachMedia"),this.trigger(h.Events.MEDIA_DETACHING,void 0),this._media=null},C.loadSource=function(b){this.stopLoad();var I=this.media,_=this.url,L=this.url=S.buildAbsoluteURL(self.location.href,b,{alwaysNormalize:!0});t.logger.log("loadSource:"+L),I&&_&&_!==L&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(I)),this.trigger(h.Events.MANIFEST_LOADING,{url:b})},C.startLoad=function(b){b===void 0&&(b=-1),t.logger.log("startLoad("+b+")"),this.networkControllers.forEach(function(I){I.startLoad(b)})},C.stopLoad=function(){t.logger.log("stopLoad"),this.networkControllers.forEach(function(b){b.stopLoad()})},C.swapAudioCodec=function(){t.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},C.recoverMediaError=function(){t.logger.log("recoverMediaError");var b=this._media;this.detachMedia(),b&&this.attachMedia(b)},C.removeLevel=function(b,I){I===void 0&&(I=0),this.levelController.removeLevel(b,I)},A(E,[{key:"levels",get:function(){var b=this.levelController.levels;return b||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(b){t.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){t.logger.log("set nextLevel:"+b),this.levelController.manualLevel=b,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(b){t.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){t.logger.log("set firstLevel:"+b),this.levelController.firstLevel=b}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(b){t.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 I=!!b;I!==this.config.capLevelToPlayerSize&&(I?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=I)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(b){this._autoLevelCapping!==b&&(t.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,I=this.config.minAutoBitrate;if(!b)return 0;for(var _=b.length,L=0;L<_;L++)if(b[L].maxBitrate>I)return L;return 0}},{key:"maxAutoLevel",get:function(){var b=this.levels,I=this.autoLevelCapping,_;return I===-1&&b&&b.length?_=b.length-1:_=I,_}},{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 I=this.audioTrackController;I&&(I.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 I=this.subtitleTrackController;I&&(I.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 I=this.subtitleTrackController;I&&(I.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.1"}},{key:"Events",get:function(){return h.Events}},{key:"ErrorTypes",get:function(){return p.ErrorTypes}},{key:"ErrorDetails",get:function(){return p.ErrorDetails}},{key:"DefaultConfig",get:function(){return E.defaultConfig?E.defaultConfig:i.hlsDefaultConfig},set:function(b){E.defaultConfig=b}}]),E}();y.defaultConfig=void 0},"./src/is-supported.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"isSupported",function(){return f}),v.d(T,"changeTypeSupported",function(){return c});var S=v("./src/utils/mediasource-helper.ts");function m(){return self.SourceBuffer||self.WebKitSourceBuffer}function f(){var o=Object(S.getMediaSource)();if(!o)return!1;var r=m(),a=o&&typeof o.isTypeSupported=="function"&&o.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),n=!r||r.prototype&&typeof r.prototype.appendBuffer=="function"&&typeof r.prototype.remove=="function";return!!a&&!!n}function c(){var o,r=m();return typeof(r==null||((o=r.prototype)===null||o===void 0)?void 0:o.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"default",function(){return t}),v.d(T,"LoadError",function(){return l});var S=v("./src/polyfills/number.ts"),m=v("./src/errors.ts");function f(u,h){u.prototype=Object.create(h.prototype),u.prototype.constructor=u,n(u,h)}function c(u){var h=typeof Map=="function"?new Map:void 0;return c=function(g){if(g===null||!a(g))return g;if(typeof g!="function")throw new TypeError("Super expression must either be null or a function");if(typeof h!="undefined"){if(h.has(g))return h.get(g);h.set(g,A)}function A(){return o(g,arguments,e(this).constructor)}return A.prototype=Object.create(g.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),n(A,g)},c(u)}function o(u,h,p){return r()?o=Reflect.construct:o=function(A,y,E){var C=[null];C.push.apply(C,y);var w=Function.bind.apply(A,C),b=new w;return E&&n(b,E.prototype),b},o.apply(null,arguments)}function r(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(u){return!1}}function a(u){return Function.toString.call(u).indexOf("[native code]")!==-1}function n(u,h){return n=Object.setPrototypeOf||function(g,A){return g.__proto__=A,g},n(u,h)}function e(u){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(p){return p.__proto__||Object.getPrototypeOf(p)},e(u)}var s=Math.pow(2,17),t=function(){function u(p){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=p}var h=u.prototype;return h.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},h.abort=function(){this.loader&&this.loader.abort()},h.load=function(g,A){var y=this,E=g.url;if(!E)return Promise.reject(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:g,networkDetails:null},"Fragment does not have a "+(E?"part list":"url")));this.abort();var C=this.config,w=C.fLoader,b=C.loader;return new Promise(function(I,_){y.loader&&y.loader.destroy();var L=y.loader=g.loader=w?new w(C):new b(C),D=i(g),N={timeout:C.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:C.fragLoadingMaxRetryTimeout,highWaterMark:s};g.stats=L.stats,L.load(D,N,{onSuccess:function(B,M,H,F){y.resetLoader(g,L),I({frag:g,part:null,payload:B.data,networkDetails:F})},onError:function(B,M,H){y.resetLoader(g,L),_(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:g,response:B,networkDetails:H}))},onAbort:function(B,M,H){y.resetLoader(g,L),_(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:g,networkDetails:H}))},onTimeout:function(B,M,H){y.resetLoader(g,L),_(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:g,networkDetails:H}))},onProgress:function(B,M,H,F){A&&A({frag:g,part:null,payload:H,networkDetails:F})}})})},h.loadPart=function(g,A,y){var E=this;this.abort();var C=this.config,w=C.fLoader,b=C.loader;return new Promise(function(I,_){E.loader&&E.loader.destroy();var L=E.loader=g.loader=w?new w(C):new b(C),D=i(g,A),N={timeout:C.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:C.fragLoadingMaxRetryTimeout,highWaterMark:s};A.stats=L.stats,L.load(D,N,{onSuccess:function(B,M,H,F){E.resetLoader(g,L),E.updateStatsFromPart(g,A);var K={frag:g,part:A,payload:B.data,networkDetails:F};y(K),I(K)},onError:function(B,M,H){E.resetLoader(g,L),_(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:g,part:A,response:B,networkDetails:H}))},onAbort:function(B,M,H){g.stats.aborted=A.stats.aborted,E.resetLoader(g,L),_(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:g,part:A,networkDetails:H}))},onTimeout:function(B,M,H){E.resetLoader(g,L),_(new l({type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:g,part:A,networkDetails:H}))}})})},h.updateStatsFromPart=function(g,A){var y=g.stats,E=A.stats,C=E.total;if(y.loaded+=E.loaded,C){var w=Math.round(g.duration/A.duration),b=Math.min(Math.round(y.loaded/C),w),I=w-b,_=I*Math.round(y.loaded/b);y.total=y.loaded+_}else y.total=Math.max(y.loaded,y.total);var L=y.loading,D=E.loading;L.start?L.first+=D.first-D.start:(L.start=D.start,L.first=D.first),L.end=D.end},h.resetLoader=function(g,A){g.loader=null,this.loader===A&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),A.destroy()},u}();function i(u,h){h===void 0&&(h=null);var p=h||u,g={frag:u,part:h,responseType:"arraybuffer",url:p.url,headers:{},rangeStart:0,rangeEnd:0},A=p.byteRangeStartOffset,y=p.byteRangeEndOffset;return Object(S.isFiniteNumber)(A)&&Object(S.isFiniteNumber)(y)&&(g.rangeStart=A,g.rangeEnd=y),g}var l=function(u){f(h,u);function h(p){for(var g,A=arguments.length,y=new Array(A>1?A-1:0),E=1;E<A;E++)y[E-1]=arguments[E];return g=u.call.apply(u,[this].concat(y))||this,g.data=void 0,g.data=p,g}return h}(c(Error))},"./src/loader/fragment.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"ElementaryStreamTypes",function(){return t}),v.d(T,"BaseSegment",function(){return i}),v.d(T,"Fragment",function(){return l}),v.d(T,"Part",function(){return u});var S=v("./src/polyfills/number.ts"),m=v("./node_modules/url-toolkit/src/url-toolkit.js"),f=v.n(m),c=v("./src/utils/logger.ts"),o=v("./src/loader/level-key.ts"),r=v("./src/loader/load-stats.ts");function a(h,p){h.prototype=Object.create(p.prototype),h.prototype.constructor=h,n(h,p)}function n(h,p){return n=Object.setPrototypeOf||function(A,y){return A.__proto__=y,A},n(h,p)}function e(h,p){for(var g=0;g<p.length;g++){var A=p[g];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(h,A.key,A)}}function s(h,p,g){return p&&e(h.prototype,p),g&&e(h,g),h}var t;(function(h){h.AUDIO="audio",h.VIDEO="video",h.AUDIOVIDEO="audiovideo"})(t||(t={}));var i=function(){function h(g){var A;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(A={},A[t.AUDIO]=null,A[t.VIDEO]=null,A[t.AUDIOVIDEO]=null,A),this.baseurl=g}var p=h.prototype;return p.setByteRange=function(A,y){var E=A.split("@",2),C=[];E.length===1?C[0]=y?y.byteRangeEndOffset:0:C[0]=parseInt(E[1]),C[1]=parseInt(E[0])+C[0],this._byteRange=C},s(h,[{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(m.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(A){this._url=A}}]),h}(),l=function(h){a(p,h);function p(A,y){var E;return E=h.call(this,y)||this,E._decryptdata=null,E.rawProgramDateTime=null,E.programDateTime=null,E.tagList=[],E.duration=0,E.sn=0,E.levelkey=void 0,E.type=void 0,E.loader=null,E.level=-1,E.cc=0,E.startPTS=void 0,E.endPTS=void 0,E.appendedPTS=void 0,E.startDTS=void 0,E.endDTS=void 0,E.start=0,E.deltaPTS=void 0,E.maxStartPTS=void 0,E.minEndPTS=void 0,E.stats=new r.LoadStats,E.urlId=0,E.data=void 0,E.bitrateTest=!1,E.title=null,E.initSegment=null,E.type=A,E}var g=p.prototype;return g.createInitializationVector=function(y){for(var E=new Uint8Array(16),C=12;C<16;C++)E[C]=y>>8*(15-C)&255;return E},g.setDecryptDataFromLevelKey=function(y,E){var C=y;return(y==null?void 0:y.method)==="AES-128"&&y.uri&&!y.iv&&(C=o.LevelKey.fromURI(y.uri),C.method=y.method,C.iv=this.createInitializationVector(E),C.keyFormat="identity"),C},g.setElementaryStreamInfo=function(y,E,C,w,b,I){I===void 0&&(I=!1);var _=this.elementaryStreams,L=_[y];if(!L){_[y]={startPTS:E,endPTS:C,startDTS:w,endDTS:b,partial:I};return}L.startPTS=Math.min(L.startPTS,E),L.endPTS=Math.max(L.endPTS,C),L.startDTS=Math.min(L.startDTS,w),L.endDTS=Math.max(L.endDTS,b)},g.clearElementaryStreamInfo=function(){var y=this.elementaryStreams;y[t.AUDIO]=null,y[t.VIDEO]=null,y[t.AUDIOVIDEO]=null},s(p,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var y=this.sn;typeof y!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&c.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),y=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,y)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(S.isFiniteNumber)(this.programDateTime))return null;var y=Object(S.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+y*1e3}},{key:"encrypted",get:function(){var y;return!!((y=this.decryptdata)!==null&&y!==void 0&&y.keyFormat&&this.decryptdata.uri)}}]),p}(i),u=function(h){a(p,h);function p(g,A,y,E,C){var w;w=h.call(this,y)||this,w.fragOffset=0,w.duration=0,w.gap=!1,w.independent=!1,w.relurl=void 0,w.fragment=void 0,w.index=void 0,w.stats=new r.LoadStats,w.duration=g.decimalFloatingPoint("DURATION"),w.gap=g.bool("GAP"),w.independent=g.bool("INDEPENDENT"),w.relurl=g.enumeratedString("URI"),w.fragment=A,w.index=E;var b=g.enumeratedString("BYTERANGE");return b&&w.setByteRange(b,C),C&&(w.fragOffset=C.fragOffset+C.duration),w}return s(p,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var A=this.elementaryStreams;return!!(A.audio||A.video||A.audiovideo)}}]),p}(i)},"./src/loader/key-loader.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"default",function(){return c});var S=v("./src/events.ts"),m=v("./src/errors.ts"),f=v("./src/utils/logger.ts"),c=function(){function o(a){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=a,this._registerListeners()}var r=o.prototype;return r._registerListeners=function(){this.hls.on(S.Events.KEY_LOADING,this.onKeyLoading,this)},r._unregisterListeners=function(){this.hls.off(S.Events.KEY_LOADING,this.onKeyLoading)},r.destroy=function(){this._unregisterListeners();for(var n in this.loaders){var e=this.loaders[n];e&&e.destroy()}this.loaders={}},r.onKeyLoading=function(n,e){var s=e.frag,t=s.type,i=this.loaders[t];if(!s.decryptdata){f.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var l=s.decryptdata.uri;if(l!==this.decrypturl||this.decryptkey===null){var u=this.hls.config;if(i&&(f.logger.warn("abort previous key loader for type:"+t),i.abort()),!l){f.logger.warn("key uri is falsy");return}var h=u.loader,p=s.loader=this.loaders[t]=new h(u);this.decrypturl=l,this.decryptkey=null;var g={url:l,frag:s,responseType:"arraybuffer"},A={timeout:u.fragLoadingTimeOut,maxRetry:0,retryDelay:u.fragLoadingRetryDelay,maxRetryDelay:u.fragLoadingMaxRetryTimeout,highWaterMark:0},y={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};p.load(g,A,y)}else this.decryptkey&&(s.decryptdata.key=this.decryptkey,this.hls.trigger(S.Events.KEY_LOADED,{frag:s}))},r.loadsuccess=function(n,e,s){var t=s.frag;if(!t.decryptdata){f.logger.error("after key load, decryptdata unset");return}this.decryptkey=t.decryptdata.key=new Uint8Array(n.data),t.loader=null,delete this.loaders[t.type],this.hls.trigger(S.Events.KEY_LOADED,{frag:t})},r.loaderror=function(n,e){var s=e.frag,t=s.loader;t&&t.abort(),delete this.loaders[s.type],this.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:s,response:n})},r.loadtimeout=function(n,e){var s=e.frag,t=s.loader;t&&t.abort(),delete this.loaders[s.type],this.hls.trigger(S.Events.ERROR,{type:m.ErrorTypes.NETWORK_ERROR,details:m.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:s})},o}()},"./src/loader/level-details.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"LevelDetails",function(){return o});var S=v("./src/polyfills/number.ts");function m(r,a){for(var n=0;n<a.length;n++){var e=a[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(r,e.key,e)}}function f(r,a,n){return a&&m(r.prototype,a),n&&m(r,n),r}var c=10,o=function(){function r(n){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.fragments=[],this.url=n}var a=r.prototype;return a.reloaded=function(e){if(!e){this.advanced=!0,this.updated=!0;return}var s=this.lastPartSn-e.lastPartSn,t=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!t||!!s,this.advanced=this.endSN>e.endSN||s>0||s===0&&t>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1,this.availabilityDelay=e.availabilityDelay},f(r,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(S.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||c}},{key:"drift",get:function(){var e=this.driftEndTime-this.driftStartTime;if(e>0){var s=this.driftEnd-this.driftStart;return s*1e3/e}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var e;return(e=this.partList)!==null&&e!==void 0&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var e;return(e=this.fragments)!==null&&e!==void 0&&e.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var e;return(e=this.partList)!==null&&e!==void 0&&e.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var e;return(e=this.partList)!==null&&e!==void 0&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),r}()},"./src/loader/level-key.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"LevelKey",function(){return o});var S=v("./node_modules/url-toolkit/src/url-toolkit.js"),m=v.n(S);function f(r,a){for(var n=0;n<a.length;n++){var e=a[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(r,e.key,e)}}function c(r,a,n){return a&&f(r.prototype,a),n&&f(r,n),r}var o=function(){r.fromURL=function(n,e){return new r(n,e)},r.fromURI=function(n){return new r(n)};function r(a,n){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,n?this._uri=Object(S.buildAbsoluteURL)(a,n,{alwaysNormalize:!0}):this._uri=a}return c(r,[{key:"uri",get:function(){return this._uri}}]),r}()},"./src/loader/load-stats.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"LoadStats",function(){return S});var S=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(x,T,v){"use strict";v.r(T),v.d(T,"default",function(){return p});var S=v("./src/polyfills/number.ts"),m=v("./node_modules/url-toolkit/src/url-toolkit.js"),f=v.n(m),c=v("./src/loader/fragment.ts"),o=v("./src/loader/level-details.ts"),r=v("./src/loader/level-key.ts"),a=v("./src/utils/attr-list.ts"),n=v("./src/utils/logger.ts"),e=v("./src/utils/codecs.ts"),s=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,t=/#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"),l=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("|")),u=/\.(mp4|m4s|m4v|m4a)$/i;function h(C){var w,b;return u.test((w=(b=m.parseURL(C))===null||b===void 0?void 0:b.path)!=null?w:"")}var p=function(){function C(){}return C.findGroup=function(b,I){for(var _=0;_<b.length;_++){var L=b[_];if(L.id===I)return L}},C.convertAVC1ToAVCOTI=function(b){var I=b.split(".");if(I.length>2){var _=I.shift()+".";return _+=parseInt(I.shift()).toString(16),_+=("000"+parseInt(I.shift()).toString(16)).substr(-4),_}return b},C.resolve=function(b,I){return m.buildAbsoluteURL(I,b,{alwaysNormalize:!0})},C.parseMasterPlaylist=function(b,I){var _=[],L={},D=!1;s.lastIndex=0;for(var N;(N=s.exec(b))!=null;)if(N[1]){var R=new a.AttrList(N[1]),B={attrs:R,bitrate:R.decimalInteger("AVERAGE-BANDWIDTH")||R.decimalInteger("BANDWIDTH"),name:R.NAME,url:C.resolve(N[2],I)},M=R.decimalResolution("RESOLUTION");M&&(B.width=M.width,B.height=M.height),g((R.CODECS||"").split(/[ ,]+/).filter(function(F){return F}),B),B.videoCodec&&B.videoCodec.indexOf("avc1")!==-1&&(B.videoCodec=C.convertAVC1ToAVCOTI(B.videoCodec)),_.push(B)}else if(N[3]){var H=new a.AttrList(N[3]);H["DATA-ID"]&&(D=!0,L[H["DATA-ID"]]=H)}return{levels:_,sessionData:D?L:null}},C.parseMasterPlaylistMedia=function(b,I,_,L){L===void 0&&(L=[]);var D,N=[],R=0;for(t.lastIndex=0;(D=t.exec(b))!==null;){var B=new a.AttrList(D[1]);if(B.TYPE===_){var M={attrs:B,bitrate:0,id:R++,groupId:B["GROUP-ID"],instreamId:B["INSTREAM-ID"],name:B.NAME||B.LANGUAGE||"",type:_,default:B.bool("DEFAULT"),autoselect:B.bool("AUTOSELECT"),forced:B.bool("FORCED"),lang:B.LANGUAGE,url:B.URI?C.resolve(B.URI,I):""};if(L.length){var H=C.findGroup(L,M.groupId)||L[0];A(M,H,"audioCodec"),A(M,H,"textCodec")}N.push(M)}}return N},C.parseLevelPlaylist=function(b,I,_,L,D){var N=new o.LevelDetails(I),R=N.fragments,B=null,M=0,H=0,F=0,K=0,j=null,V=new c.Fragment(L,I),z,Y,ee,fe=-1,ie=!1;for(i.lastIndex=0,N.m3u8=b;(z=i.exec(b))!==null;){ie&&(ie=!1,V=new c.Fragment(L,I),V.start=F,V.sn=M,V.cc=K,V.level=_,B&&(V.initSegment=B,V.rawProgramDateTime=B.rawProgramDateTime));var we=z[1];if(we){V.duration=parseFloat(we);var Ce=(" "+z[2]).slice(1);V.title=Ce||null,V.tagList.push(Ce?["INF",we,Ce]:["INF",we])}else if(z[3])Object(S.isFiniteNumber)(V.duration)&&(V.start=F,ee&&(V.levelkey=ee),V.sn=M,V.level=_,V.cc=K,V.urlId=D,R.push(V),V.relurl=(" "+z[3]).slice(1),E(V,j),j=V,F+=V.duration,M++,H=0,ie=!0);else if(z[4]){var Le=(" "+z[4]).slice(1);j?V.setByteRange(Le,j):V.setByteRange(Le)}else if(z[5])V.rawProgramDateTime=(" "+z[5]).slice(1),V.tagList.push(["PROGRAM-DATE-TIME",V.rawProgramDateTime]),fe===-1&&(fe=R.length);else{if(z=z[0].match(l),!z){n.logger.warn("No matches on slow regex match for level playlist!");continue}for(Y=1;Y<z.length&&!(typeof z[Y]!="undefined");Y++);var He=(" "+z[Y]).slice(1),ce=(" "+z[Y+1]).slice(1),Pe=z[Y+2]?(" "+z[Y+2]).slice(1):"";switch(He){case"PLAYLIST-TYPE":N.type=ce.toUpperCase();break;case"MEDIA-SEQUENCE":M=N.startSN=parseInt(ce);break;case"SKIP":{var Q=new a.AttrList(ce),me=Q.decimalInteger("SKIPPED-SEGMENTS");if(Object(S.isFiniteNumber)(me)){N.skippedSegments=me;for(var Je=me;Je--;)R.unshift(null);M+=me}var re=Q.enumeratedString("RECENTLY-REMOVED-DATERANGES");re&&(N.recentlyRemovedDateranges=re.split(" "));break}case"TARGETDURATION":N.targetduration=parseFloat(ce);break;case"VERSION":N.version=parseInt(ce);break;case"EXTM3U":break;case"ENDLIST":N.live=!1;break;case"#":(ce||Pe)&&V.tagList.push(Pe?[ce,Pe]:[ce]);break;case"DIS":K++;case"GAP":V.tagList.push([He]);break;case"BITRATE":V.tagList.push([He,ce]);break;case"DISCONTINUITY-SEQ":K=parseInt(ce);break;case"KEY":{var G,X=new a.AttrList(ce),J=X.enumeratedString("METHOD"),Ae=X.URI,he=X.hexadecimalInteger("IV"),Me=X.enumeratedString("KEYFORMATVERSIONS"),Ie=X.enumeratedString("KEYID"),oe=(G=X.enumeratedString("KEYFORMAT"))!=null?G:"identity",pe=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(pe.indexOf(oe)>-1){n.logger.warn("Keyformat "+oe+" is not supported from the manifest");continue}else if(oe!=="identity")continue;J&&(ee=r.LevelKey.fromURL(I,Ae),Ae&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(J)>=0&&(ee.method=J,ee.keyFormat=oe,Ie&&(ee.keyID=Ie),Me&&(ee.keyFormatVersions=Me),ee.iv=he));break}case"START":{var Oe=new a.AttrList(ce),Ye=Oe.decimalFloatingPoint("TIME-OFFSET");Object(S.isFiniteNumber)(Ye)&&(N.startTimeOffset=Ye);break}case"MAP":{var it=new a.AttrList(ce);V.relurl=it.URI,it.BYTERANGE&&V.setByteRange(it.BYTERANGE),V.level=_,V.sn="initSegment",ee&&(V.levelkey=ee),V.initSegment=null,B=V,ie=!0;break}case"SERVER-CONTROL":{var et=new a.AttrList(ce);N.canBlockReload=et.bool("CAN-BLOCK-RELOAD"),N.canSkipUntil=et.optionalFloat("CAN-SKIP-UNTIL",0),N.canSkipDateRanges=N.canSkipUntil>0&&et.bool("CAN-SKIP-DATERANGES"),N.partHoldBack=et.optionalFloat("PART-HOLD-BACK",0),N.holdBack=et.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Te=new a.AttrList(ce);N.partTarget=Te.decimalFloatingPoint("PART-TARGET");break}case"PART":{var tt=N.partList;tt||(tt=N.partList=[]);var ze=H>0?tt[tt.length-1]:void 0,dt=H++,Ot=new c.Part(new a.AttrList(ce),V,I,dt,ze);tt.push(Ot),V.duration+=Ot.duration;break}case"PRELOAD-HINT":{var Tt=new a.AttrList(ce);N.preloadHint=Tt;break}case"RENDITION-REPORT":{var Ct=new a.AttrList(ce);N.renditionReports=N.renditionReports||[],N.renditionReports.push(Ct);break}default:n.logger.warn("line parsed but not handled: "+z);break}}}j&&!j.relurl?(R.pop(),F-=j.duration,N.partList&&(N.fragmentHint=j)):N.partList&&(E(V,j),V.cc=K,N.fragmentHint=V);var Nt=R.length,Be=R[0],$=R[Nt-1];if(F+=N.skippedSegments*N.targetduration,F>0&&Nt&&$){N.averagetargetduration=F/Nt;var Z=$.sn;N.endSN=Z!=="initSegment"?Z:0,Be&&(N.startCC=Be.cc,Be.initSegment||N.fragments.every(function(Re){return Re.relurl&&h(Re.relurl)})&&(n.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),V=new c.Fragment(L,I),V.relurl=$.relurl,V.level=_,V.sn="initSegment",Be.initSegment=V,N.needSidxRanges=!0))}else N.endSN=0,N.startCC=0;return N.fragmentHint&&(F+=N.fragmentHint.duration),N.totalduration=F,N.endCC=K,fe>0&&y(R,fe),N},C}();function g(C,w){["video","audio","text"].forEach(function(b){var I=C.filter(function(L){return Object(e.isCodecType)(L,b)});if(I.length){var _=I.filter(function(L){return L.lastIndexOf("avc1",0)===0||L.lastIndexOf("mp4a",0)===0});w[b+"Codec"]=_.length>0?_[0]:I[0],C=C.filter(function(L){return I.indexOf(L)===-1})}}),w.unknownCodecs=C}function A(C,w,b){var I=w[b];I&&(C[b]=I)}function y(C,w){for(var b=C[w],I=w;I--;){var _=C[I];if(!_)return;_.programDateTime=b.programDateTime-_.duration*1e3,b=_}}function E(C,w){C.rawProgramDateTime?C.programDateTime=Date.parse(C.rawProgramDateTime):w!=null&&w.programDateTime&&(C.programDateTime=w.endProgramDateTime),Object(S.isFiniteNumber)(C.programDateTime)||(C.programDateTime=null,C.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(x,T,v){"use strict";v.r(T);var S=v("./src/polyfills/number.ts"),m=v("./src/events.ts"),f=v("./src/errors.ts"),c=v("./src/utils/logger.ts"),o=v("./src/utils/mp4-tools.ts"),r=v("./src/loader/m3u8-parser.ts"),a=v("./src/types/loader.ts"),n=v("./src/utils/attr-list.ts");function e(i){var l=i.type;switch(l){case a.PlaylistContextType.AUDIO_TRACK:return a.PlaylistLevelType.AUDIO;case a.PlaylistContextType.SUBTITLE_TRACK:return a.PlaylistLevelType.SUBTITLE;default:return a.PlaylistLevelType.MAIN}}function s(i,l){var u=i.url;return(u===void 0||u.indexOf("data:")===0)&&(u=l.url),u}var t=function(){function i(u){this.hls=void 0,this.loaders=Object.create(null),this.hls=u,this.registerListeners()}var l=i.prototype;return l.registerListeners=function(){var h=this.hls;h.on(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(m.Events.LEVEL_LOADING,this.onLevelLoading,this),h.on(m.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),h.on(m.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},l.unregisterListeners=function(){var h=this.hls;h.off(m.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(m.Events.LEVEL_LOADING,this.onLevelLoading,this),h.off(m.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),h.off(m.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},l.createInternalLoader=function(h){var p=this.hls.config,g=p.pLoader,A=p.loader,y=g||A,E=new y(p);return h.loader=E,this.loaders[h.type]=E,E},l.getInternalLoader=function(h){return this.loaders[h.type]},l.resetInternalLoader=function(h){this.loaders[h]&&delete this.loaders[h]},l.destroyInternalLoaders=function(){for(var h in this.loaders){var p=this.loaders[h];p&&p.destroy(),this.resetInternalLoader(h)}},l.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},l.onManifestLoading=function(h,p){var g=p.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:a.PlaylistContextType.MANIFEST,url:g,deliveryDirectives:null})},l.onLevelLoading=function(h,p){var g=p.id,A=p.level,y=p.url,E=p.deliveryDirectives;this.load({id:g,groupId:null,level:A,responseType:"text",type:a.PlaylistContextType.LEVEL,url:y,deliveryDirectives:E})},l.onAudioTrackLoading=function(h,p){var g=p.id,A=p.groupId,y=p.url,E=p.deliveryDirectives;this.load({id:g,groupId:A,level:null,responseType:"text",type:a.PlaylistContextType.AUDIO_TRACK,url:y,deliveryDirectives:E})},l.onSubtitleTrackLoading=function(h,p){var g=p.id,A=p.groupId,y=p.url,E=p.deliveryDirectives;this.load({id:g,groupId:A,level:null,responseType:"text",type:a.PlaylistContextType.SUBTITLE_TRACK,url:y,deliveryDirectives:E})},l.load=function(h){var p,g=this.hls.config,A=this.getInternalLoader(h);if(A){var y=A.context;if(y&&y.url===h.url){c.logger.trace("[playlist-loader]: playlist request ongoing");return}c.logger.log("[playlist-loader]: aborting previous loader for type: "+h.type),A.abort()}var E,C,w,b;switch(h.type){case a.PlaylistContextType.MANIFEST:E=g.manifestLoadingMaxRetry,C=g.manifestLoadingTimeOut,w=g.manifestLoadingRetryDelay,b=g.manifestLoadingMaxRetryTimeout;break;case a.PlaylistContextType.LEVEL:case a.PlaylistContextType.AUDIO_TRACK:case a.PlaylistContextType.SUBTITLE_TRACK:E=0,C=g.levelLoadingTimeOut;break;default:E=g.levelLoadingMaxRetry,C=g.levelLoadingTimeOut,w=g.levelLoadingRetryDelay,b=g.levelLoadingMaxRetryTimeout;break}if(A=this.createInternalLoader(h),(p=h.deliveryDirectives)!==null&&p!==void 0&&p.part){var I;if(h.type===a.PlaylistContextType.LEVEL&&h.level!==null?I=this.hls.levels[h.level].details:h.type===a.PlaylistContextType.AUDIO_TRACK&&h.id!==null?I=this.hls.audioTracks[h.id].details:h.type===a.PlaylistContextType.SUBTITLE_TRACK&&h.id!==null&&(I=this.hls.subtitleTracks[h.id].details),I){var _=I.partTarget,L=I.targetduration;_&&L&&(C=Math.min(Math.max(_*3,L*.8)*1e3,C))}}var D={timeout:C,maxRetry:E,retryDelay:w,maxRetryDelay:b,highWaterMark:0},N={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};A.load(h,D,N)},l.loadsuccess=function(h,p,g,A){if(A===void 0&&(A=null),g.isSidxRequest){this.handleSidxRequest(h,g),this.handlePlaylistLoaded(h,p,g,A);return}this.resetInternalLoader(g.type);var y=h.data;if(y.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(h,g,"no EXTM3U delimiter",A);return}p.parsing.start=performance.now(),y.indexOf("#EXTINF:")>0||y.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(h,p,g,A):this.handleMasterPlaylist(h,p,g,A)},l.loaderror=function(h,p,g){g===void 0&&(g=null),this.handleNetworkError(p,g,!1,h)},l.loadtimeout=function(h,p,g){g===void 0&&(g=null),this.handleNetworkError(p,g,!0)},l.handleMasterPlaylist=function(h,p,g,A){var y=this.hls,E=h.data,C=s(h,g),w=r.default.parseMasterPlaylist(E,C),b=w.levels,I=w.sessionData;if(!b.length){this.handleManifestParsingError(h,g,"no level found in manifest",A);return}var _=b.map(function(M){return{id:M.attrs.AUDIO,audioCodec:M.audioCodec}}),L=b.map(function(M){return{id:M.attrs.SUBTITLES,textCodec:M.textCodec}}),D=r.default.parseMasterPlaylistMedia(E,C,"AUDIO",_),N=r.default.parseMasterPlaylistMedia(E,C,"SUBTITLES",L),R=r.default.parseMasterPlaylistMedia(E,C,"CLOSED-CAPTIONS");if(D.length){var B=D.some(function(M){return!M.url});!B&&b[0].audioCodec&&!b[0].attrs.AUDIO&&(c.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),D.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new n.AttrList({}),bitrate:0,url:""}))}y.trigger(m.Events.MANIFEST_LOADED,{levels:b,audioTracks:D,subtitles:N,captions:R,url:C,stats:p,networkDetails:A,sessionData:I})},l.handleTrackOrLevelPlaylist=function(h,p,g,A){var y=this.hls,E=g.id,C=g.level,w=g.type,b=s(h,g),I=Object(S.isFiniteNumber)(E)?E:0,_=Object(S.isFiniteNumber)(C)?C:I,L=e(g),D=r.default.parseLevelPlaylist(h.data,b,_,L,I);if(!D.fragments.length){y.trigger(m.Events.ERROR,{type:f.ErrorTypes.NETWORK_ERROR,details:f.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:b,reason:"no fragments found in level",level:typeof g.level=="number"?g.level:void 0});return}if(w===a.PlaylistContextType.MANIFEST){var N={attrs:new n.AttrList({}),bitrate:0,details:D,name:"",url:b};y.trigger(m.Events.MANIFEST_LOADED,{levels:[N],audioTracks:[],url:b,stats:p,networkDetails:A,sessionData:null})}if(p.parsing.end=performance.now(),D.needSidxRanges){var R,B=(R=D.fragments[0].initSegment)===null||R===void 0?void 0:R.url;this.load({url:B,isSidxRequest:!0,type:w,level:C,levelDetails:D,id:E,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}g.levelDetails=D,this.handlePlaylistLoaded(h,p,g,A)},l.handleSidxRequest=function(h,p){var g=Object(o.parseSegmentIndex)(new Uint8Array(h.data));if(!g)return;var A=g.references,y=p.levelDetails;A.forEach(function(E,C){var w=E.info,b=y.fragments[C];b.byteRange.length===0&&b.setByteRange(String(1+w.end-w.start)+"@"+String(w.start)),b.initSegment&&b.initSegment.setByteRange(String(g.moovEndOffset)+"@0")})},l.handleManifestParsingError=function(h,p,g,A){this.hls.trigger(m.Events.ERROR,{type:f.ErrorTypes.NETWORK_ERROR,details:f.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:p.type===a.PlaylistContextType.MANIFEST,url:h.url,reason:g,response:h,context:p,networkDetails:A})},l.handleNetworkError=function(h,p,g,A){g===void 0&&(g=!1),c.logger.warn("[playlist-loader]: A network "+(g?"timeout":"error")+" occurred while loading "+h.type+" level: "+h.level+" id: "+h.id+' group-id: "'+h.groupId+'"');var y=f.ErrorDetails.UNKNOWN,E=!1,C=this.getInternalLoader(h);switch(h.type){case a.PlaylistContextType.MANIFEST:y=g?f.ErrorDetails.MANIFEST_LOAD_TIMEOUT:f.ErrorDetails.MANIFEST_LOAD_ERROR,E=!0;break;case a.PlaylistContextType.LEVEL:y=g?f.ErrorDetails.LEVEL_LOAD_TIMEOUT:f.ErrorDetails.LEVEL_LOAD_ERROR,E=!1;break;case a.PlaylistContextType.AUDIO_TRACK:y=g?f.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:f.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,E=!1;break;case a.PlaylistContextType.SUBTITLE_TRACK:y=g?f.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:f.ErrorDetails.SUBTITLE_LOAD_ERROR,E=!1;break}C&&this.resetInternalLoader(h.type);var w={type:f.ErrorTypes.NETWORK_ERROR,details:y,fatal:E,url:h.url,loader:C,context:h,networkDetails:p};A&&(w.response=A),this.hls.trigger(m.Events.ERROR,w)},l.handlePlaylistLoaded=function(h,p,g,A){var y=g.type,E=g.level,C=g.id,w=g.groupId,b=g.loader,I=g.levelDetails,_=g.deliveryDirectives;if(!(I!=null&&I.targetduration)){this.handleManifestParsingError(h,g,"invalid target duration",A);return}if(!b)return;I.live&&(b.getCacheAge&&(I.ageHeader=b.getCacheAge()||0),(!b.getCacheAge||isNaN(I.ageHeader))&&(I.ageHeader=0));switch(y){case a.PlaylistContextType.MANIFEST:case a.PlaylistContextType.LEVEL:this.hls.trigger(m.Events.LEVEL_LOADED,{details:I,level:E||0,id:C||0,stats:p,networkDetails:A,deliveryDirectives:_});break;case a.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(m.Events.AUDIO_TRACK_LOADED,{details:I,id:C||0,groupId:w||"",stats:p,networkDetails:A,deliveryDirectives:_});break;case a.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(m.Events.SUBTITLE_TRACK_LOADED,{details:I,id:C||0,groupId:w||"",stats:p,networkDetails:A,deliveryDirectives:_});break}},i}();T.default=t},"./src/polyfills/number.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"isFiniteNumber",function(){return S}),v.d(T,"MAX_SAFE_INTEGER",function(){return m});var S=Number.isFinite||function(f){return typeof f=="number"&&isFinite(f)},m=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(x,T,v){"use strict";v.r(T);var S=function(){function m(){}return m.getSilentFrame=function(c,o){switch(c){case"mp4a.40.2":if(o===1)return new Uint8Array([0,200,0,128,35,128]);if(o===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(o===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(o===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(o===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(o===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(o===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(o===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(o===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},m}();T.default=S},"./src/remux/mp4-generator.ts":function(x,T,v){"use strict";v.r(T);var S=Math.pow(2,32)-1,m=function(){function f(){}return f.init=function(){f.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 o;for(o in f.types)f.types.hasOwnProperty(o)&&(f.types[o]=[o.charCodeAt(0),o.charCodeAt(1),o.charCodeAt(2),o.charCodeAt(3)]);var r=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]),a=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]);f.HDLR_TYPES={video:r,audio:a};var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),e=new Uint8Array([0,0,0,0,0,0,0,0]);f.STTS=f.STSC=f.STCO=e,f.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),f.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),f.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),f.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var s=new Uint8Array([105,115,111,109]),t=new Uint8Array([97,118,99,49]),i=new Uint8Array([0,0,0,1]);f.FTYP=f.box(f.types.ftyp,s,i,s,t),f.DINF=f.box(f.types.dinf,f.box(f.types.dref,n))},f.box=function(o){for(var r=8,a=arguments.length,n=new Array(a>1?a-1:0),e=1;e<a;e++)n[e-1]=arguments[e];for(var s=n.length,t=s;s--;)r+=n[s].byteLength;var i=new Uint8Array(r);for(i[0]=r>>24&255,i[1]=r>>16&255,i[2]=r>>8&255,i[3]=r&255,i.set(o,4),s=0,r=8;s<t;s++)i.set(n[s],r),r+=n[s].byteLength;return i},f.hdlr=function(o){return f.box(f.types.hdlr,f.HDLR_TYPES[o])},f.mdat=function(o){return f.box(f.types.mdat,o)},f.mdhd=function(o,r){r*=o;var a=Math.floor(r/(S+1)),n=Math.floor(r%(S+1));return f.box(f.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,o>>24&255,o>>16&255,o>>8&255,o&255,a>>24,a>>16&255,a>>8&255,a&255,n>>24,n>>16&255,n>>8&255,n&255,85,196,0,0]))},f.mdia=function(o){return f.box(f.types.mdia,f.mdhd(o.timescale,o.duration),f.hdlr(o.type),f.minf(o))},f.mfhd=function(o){return f.box(f.types.mfhd,new Uint8Array([0,0,0,0,o>>24,o>>16&255,o>>8&255,o&255]))},f.minf=function(o){return o.type==="audio"?f.box(f.types.minf,f.box(f.types.smhd,f.SMHD),f.DINF,f.stbl(o)):f.box(f.types.minf,f.box(f.types.vmhd,f.VMHD),f.DINF,f.stbl(o))},f.moof=function(o,r,a){return f.box(f.types.moof,f.mfhd(o),f.traf(a,r))},f.moov=function(o){for(var r=o.length,a=[];r--;)a[r]=f.trak(o[r]);return f.box.apply(null,[f.types.moov,f.mvhd(o[0].timescale,o[0].duration)].concat(a).concat(f.mvex(o)))},f.mvex=function(o){for(var r=o.length,a=[];r--;)a[r]=f.trex(o[r]);return f.box.apply(null,[f.types.mvex].concat(a))},f.mvhd=function(o,r){r*=o;var a=Math.floor(r/(S+1)),n=Math.floor(r%(S+1)),e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,o>>24&255,o>>16&255,o>>8&255,o&255,a>>24,a>>16&255,a>>8&255,a&255,n>>24,n>>16&255,n>>8&255,n&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return f.box(f.types.mvhd,e)},f.sdtp=function(o){var r=o.samples||[],a=new Uint8Array(4+r.length),n,e;for(n=0;n<r.length;n++)e=r[n].flags,a[n+4]=e.dependsOn<<4|e.isDependedOn<<2|e.hasRedundancy;return f.box(f.types.sdtp,a)},f.stbl=function(o){return f.box(f.types.stbl,f.stsd(o),f.box(f.types.stts,f.STTS),f.box(f.types.stsc,f.STSC),f.box(f.types.stsz,f.STSZ),f.box(f.types.stco,f.STCO))},f.avc1=function(o){var r=[],a=[],n,e,s;for(n=0;n<o.sps.length;n++)e=o.sps[n],s=e.byteLength,r.push(s>>>8&255),r.push(s&255),r=r.concat(Array.prototype.slice.call(e));for(n=0;n<o.pps.length;n++)e=o.pps[n],s=e.byteLength,a.push(s>>>8&255),a.push(s&255),a=a.concat(Array.prototype.slice.call(e));var t=f.box(f.types.avcC,new Uint8Array([1,r[3],r[4],r[5],252|3,224|o.sps.length].concat(r).concat([o.pps.length]).concat(a))),i=o.width,l=o.height,u=o.pixelRatio[0],h=o.pixelRatio[1];return f.box(f.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,l>>8&255,l&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]),t,f.box(f.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),f.box(f.types.pasp,new Uint8Array([u>>24,u>>16&255,u>>8&255,u&255,h>>24,h>>16&255,h>>8&255,h&255])))},f.esds=function(o){var r=o.config.length;return new Uint8Array([0,0,0,0,3,23+r,0,1,0,4,15+r,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([r]).concat(o.config).concat([6,1,2]))},f.mp4a=function(o){var r=o.samplerate;return f.box(f.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,o.channelCount,0,16,0,0,0,0,r>>8&255,r&255,0,0]),f.box(f.types.esds,f.esds(o)))},f.mp3=function(o){var r=o.samplerate;return f.box(f.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,o.channelCount,0,16,0,0,0,0,r>>8&255,r&255,0,0]))},f.stsd=function(o){return o.type==="audio"?!o.isAAC&&o.codec==="mp3"?f.box(f.types.stsd,f.STSD,f.mp3(o)):f.box(f.types.stsd,f.STSD,f.mp4a(o)):f.box(f.types.stsd,f.STSD,f.avc1(o))},f.tkhd=function(o){var r=o.id,a=o.duration*o.timescale,n=o.width,e=o.height,s=Math.floor(a/(S+1)),t=Math.floor(a%(S+1));return f.box(f.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,r>>24&255,r>>16&255,r>>8&255,r&255,0,0,0,0,s>>24,s>>16&255,s>>8&255,s&255,t>>24,t>>16&255,t>>8&255,t&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,n>>8&255,n&255,0,0,e>>8&255,e&255,0,0]))},f.traf=function(o,r){var a=f.sdtp(o),n=o.id,e=Math.floor(r/(S+1)),s=Math.floor(r%(S+1));return f.box(f.types.traf,f.box(f.types.tfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255])),f.box(f.types.tfdt,new Uint8Array([1,0,0,0,e>>24,e>>16&255,e>>8&255,e&255,s>>24,s>>16&255,s>>8&255,s&255])),f.trun(o,a.length+16+20+8+16+8+8),a)},f.trak=function(o){return o.duration=o.duration||4294967295,f.box(f.types.trak,f.tkhd(o),f.mdia(o))},f.trex=function(o){var r=o.id;return f.box(f.types.trex,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},f.trun=function(o,r){var a=o.samples||[],n=a.length,e=12+16*n,s=new Uint8Array(e),t,i,l,u,h,p;for(r+=8+e,s.set([0,0,15,1,n>>>24&255,n>>>16&255,n>>>8&255,n&255,r>>>24&255,r>>>16&255,r>>>8&255,r&255],0),t=0;t<n;t++)i=a[t],l=i.duration,u=i.size,h=i.flags,p=i.cts,s.set([l>>>24&255,l>>>16&255,l>>>8&255,l&255,u>>>24&255,u>>>16&255,u>>>8&255,u&255,h.isLeading<<2|h.dependsOn,h.isDependedOn<<6|h.hasRedundancy<<4|h.paddingValue<<1|h.isNonSync,h.degradPrio&240<<8,h.degradPrio&15,p>>>24&255,p>>>16&255,p>>>8&255,p&255],12+16*t);return f.box(f.types.trun,s)},f.initSegment=function(o){f.types||f.init();var r=f.moov(o),a=new Uint8Array(f.FTYP.byteLength+r.byteLength);return a.set(f.FTYP),a.set(r,f.FTYP.byteLength),a},f}();m.types=void 0,m.HDLR_TYPES=void 0,m.STTS=void 0,m.STSC=void 0,m.STCO=void 0,m.STSZ=void 0,m.VMHD=void 0,m.SMHD=void 0,m.STSD=void 0,m.FTYP=void 0,m.DINF=void 0,T.default=m},"./src/remux/mp4-remuxer.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"default",function(){return p}),v.d(T,"normalizePts",function(){return g});var S=v("./src/polyfills/number.ts"),m=v("./src/remux/aac-helper.ts"),f=v("./src/remux/mp4-generator.ts"),c=v("./src/events.ts"),o=v("./src/errors.ts"),r=v("./src/utils/logger.ts"),a=v("./src/types/loader.ts"),n=v("./src/utils/timescale-conversion.ts");function e(){return e=Object.assign||function(C){for(var w=1;w<arguments.length;w++){var b=arguments[w];for(var I in b)Object.prototype.hasOwnProperty.call(b,I)&&(C[I]=b[I])}return C},e.apply(this,arguments)}var s=10*1e3,t=1024,i=1152,l=null,u=null,h=!1,p=function(){function C(b,I,_,L){if(L===void 0&&(L=""),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=I,this.typeSupported=_,this.ISGenerated=!1,l===null){var D=navigator.userAgent||"",N=D.match(/Chrome\/(\d+)/i);l=N?parseInt(N[1]):0}if(u===null){var R=navigator.userAgent.match(/Safari\/(\d+)/i);u=R?parseInt(R[1]):0}h=!!l&&l<75||!!u&&u<600}var w=C.prototype;return w.destroy=function(){},w.resetTimeStamp=function(I){r.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=I},w.resetNextTimestamp=function(){r.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},w.resetInitSegment=function(){r.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},w.getVideoStartPts=function(I){var _=!1,L=I.reduce(function(D,N){var R=N.pts-D;return R<-4294967296?(_=!0,g(D,N.pts)):R>0?D:N.pts},I[0].pts);return _&&r.logger.debug("PTS rollover detected"),L},w.remux=function(I,_,L,D,N,R,B,M){var H,F,K,j,V,z,Y=N,ee=N,fe=I.pid>-1,ie=_.pid>-1,we=_.samples.length,Ce=I.samples.length>0,Le=we>1,He=(!fe||Ce)&&(!ie||Le)||this.ISGenerated||B;if(He){this.ISGenerated||(K=this.generateIS(I,_,N));var ce=this.isVideoContiguous,Pe=-1;if(Le&&(Pe=A(_.samples),!ce&&this.config.forceKeyFrameOnDiscontinuity))if(z=!0,Pe>0){r.logger.warn("[mp4-remuxer]: Dropped "+Pe+" out of "+we+" video samples due to a missing keyframe");var Q=this.getVideoStartPts(_.samples);_.samples=_.samples.slice(Pe),_.dropped+=Pe,ee+=(_.samples[0].pts-Q)/(_.timescale||9e4)}else Pe===-1&&(r.logger.warn("[mp4-remuxer]: No keyframe found out of "+we+" video samples"),z=!1);if(this.ISGenerated){if(Ce&&Le){var me=this.getVideoStartPts(_.samples),Je=g(I.samples[0].pts,me)-me,re=Je/_.inputTimeScale;Y+=Math.max(0,re),ee+=Math.max(0,-re)}if(Ce){if(I.samplerate||(r.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),K=this.generateIS(I,_,N)),F=this.remuxAudio(I,Y,this.isAudioContiguous,R,ie||Le||M===a.PlaylistLevelType.AUDIO?ee:void 0),Le){var G=F?F.endPTS-F.startPTS:0;_.inputTimeScale||(r.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),K=this.generateIS(I,_,N)),H=this.remuxVideo(_,ee,ce,G)}}else Le&&(H=this.remuxVideo(_,ee,ce,0));H&&(H.firstKeyFrame=Pe,H.independent=Pe!==-1)}}return this.ISGenerated&&(L.samples.length&&(V=this.remuxID3(L,N)),D.samples.length&&(j=this.remuxText(D,N))),{audio:F,video:H,initSegment:K,independent:z,text:j,id3:V}},w.generateIS=function(I,_,L){var D=I.samples,N=_.samples,R=this.typeSupported,B={},M=!Object(S.isFiniteNumber)(this._initPTS),H="audio/mp4",F,K,j;if(M&&(F=K=Infinity),I.config&&D.length&&(I.timescale=I.samplerate,I.isAAC||(R.mpeg?(H="audio/mpeg",I.codec=""):R.mp3&&(I.codec="mp3")),B.audio={id:"audio",container:H,codec:I.codec,initSegment:!I.isAAC&&R.mpeg?new Uint8Array(0):f.default.initSegment([I]),metadata:{channelCount:I.channelCount}},M&&(j=I.inputTimeScale,F=K=D[0].pts-Math.round(j*L))),_.sps&&_.pps&&N.length&&(_.timescale=_.inputTimeScale,B.video={id:"main",container:"video/mp4",codec:_.codec,initSegment:f.default.initSegment([_]),metadata:{width:_.width,height:_.height}},M)){j=_.inputTimeScale;var V=this.getVideoStartPts(N),z=Math.round(j*L);K=Math.min(K,g(N[0].dts,V)-z),F=Math.min(F,V-z)}if(Object.keys(B).length)return this.ISGenerated=!0,M&&(this._initPTS=F,this._initDTS=K),{tracks:B,initPTS:F,timescale:j}},w.remuxVideo=function(I,_,L,D){var N=I.inputTimeScale,R=I.samples,B=[],M=R.length,H=this._initPTS,F=this.nextAvcDts,K=8,j,V,z,Y=Number.POSITIVE_INFINITY,ee=Number.NEGATIVE_INFINITY,fe=0,ie=!1;if(!L||F===null){var we=_*N,Ce=R[0].pts-g(R[0].dts,R[0].pts);F=we-Ce}for(var Le=0;Le<M;Le++){var He=R[Le];if(He.pts=g(He.pts-H,F),He.dts=g(He.dts-H,F),He.dts>He.pts){var ce=9e4*.2;fe=Math.max(Math.min(fe,He.pts-He.dts),-1*ce)}He.dts<R[Le>0?Le-1:Le].dts&&(ie=!0)}ie&&R.sort(function(nn,mr){var vr=nn.dts-mr.dts,$t=nn.pts-mr.pts;return vr||$t}),V=R[0].dts,z=R[R.length-1].dts;var Pe=Math.round((z-V)/(M-1));if(fe<0){if(fe<Pe*-2){r.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(n.toMsFromMpegTsClock)(-Pe,!0)+" ms");for(var Q=fe,me=0;me<M;me++)R[me].dts=Q=Math.max(Q,R[me].pts-Pe),R[me].pts=Math.max(Q,R[me].pts)}else{r.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(n.toMsFromMpegTsClock)(fe,!0)+" ms to overcome this issue");for(var Je=0;Je<M;Je++)R[Je].dts=R[Je].dts+fe}V=R[0].dts}if(L){var re=V-F,G=re>Pe,X=re<-1;if(G||X){G?r.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(re,!0)+" ms ("+re+"dts) hole between fragments detected, filling it"):r.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(-re,!0)+" ms ("+re+"dts) overlapping between fragments detected"),V=F;var J=R[0].pts-re;R[0].dts=V,R[0].pts=J,r.logger.log("Video: First PTS/DTS adjusted: "+Object(n.toMsFromMpegTsClock)(J,!0)+"/"+Object(n.toMsFromMpegTsClock)(V,!0)+", delta: "+Object(n.toMsFromMpegTsClock)(re,!0)+" ms")}}h&&(V=Math.max(0,V));for(var Ae=0,he=0,Me=0;Me<M;Me++){for(var Ie=R[Me],oe=Ie.units,pe=oe.length,Oe=0,Ye=0;Ye<pe;Ye++)Oe+=oe[Ye].data.length;he+=Oe,Ae+=pe,Ie.length=Oe,Ie.dts=Math.max(Ie.dts,V),Ie.pts=Math.max(Ie.pts,Ie.dts,0),Y=Math.min(Ie.pts,Y),ee=Math.max(Ie.pts,ee)}z=R[M-1].dts;var it=he+4*Ae+8,et;try{et=new Uint8Array(it)}catch(nn){this.observer.emit(c.Events.ERROR,c.Events.ERROR,{type:o.ErrorTypes.MUX_ERROR,details:o.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:it,reason:"fail allocating video mdat "+it});return}var Te=new DataView(et.buffer);Te.setUint32(0,it),et.set(f.default.types.mdat,4);for(var tt=0;tt<M;tt++){for(var ze=R[tt],dt=ze.units,Ot=0,Tt=0,Ct=dt.length;Tt<Ct;Tt++){var Nt=dt[Tt],Be=Nt.data,$=Nt.data.byteLength;Te.setUint32(K,$),K+=4,et.set(Be,K),K+=$,Ot+=4+$}if(tt<M-1)j=R[tt+1].dts-ze.dts;else{var Z=this.config,Re=ze.dts-R[tt>0?tt-1:tt].dts;if(Z.stretchShortVideoTrack&&this.nextAudioPts!==null){var De=Math.floor(Z.maxBufferHole*N),ae=(D?Y+D*N:this.nextAudioPts)-ze.pts;ae>De?(j=ae-Re,j<0&&(j=Re),r.logger.log("[mp4-remuxer]: It is approximately "+ae/90+" ms to the next segment; using duration "+j/90+" ms for the last video frame.")):j=Re}else j=Re}var gt=Math.round(ze.pts-ze.dts);B.push(new y(ze.key,j,Ot,gt))}if(B.length&&l&&l<70){var jt=B[0].flags;jt.dependsOn=2,jt.isNonSync=0}console.assert(j!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=F=z+j,this.isVideoContiguous=!0;var ut=f.default.moof(I.sequenceNumber++,V,e({},I,{samples:B})),rr="video",pr={data1:ut,data2:et,startPTS:Y/N,endPTS:(ee+j)/N,startDTS:V/N,endDTS:F/N,type:rr,hasAudio:!1,hasVideo:!0,nb:B.length,dropped:I.dropped};return I.samples=[],I.dropped=0,console.assert(et.length,"MDAT length must not be zero"),pr},w.remuxAudio=function(I,_,L,D,N){var R=I.inputTimeScale,B=I.samplerate?I.samplerate:R,M=R/B,H=I.isAAC?t:i,F=H*M,K=this._initPTS,j=!I.isAAC&&this.typeSupported.mpeg,V=[],z=I.samples,Y=j?0:8,ee=this.nextAudioPts||-1,fe=_*R;if(this.isAudioContiguous=L=L||z.length&&ee>0&&(D&&Math.abs(fe-ee)<9e3||Math.abs(g(z[0].pts-K,fe)-ee)<20*F),z.forEach(function(Be){Be.pts=g(Be.pts-K,fe)}),!L||ee<0){if(z=z.filter(function(Be){return Be.pts>=0}),!z.length)return;N===0?ee=0:D?ee=Math.max(0,fe):ee=z[0].pts}if(I.isAAC)for(var ie=N!==void 0,we=this.config.maxAudioFramesDrift,Ce=0,Le=ee;Ce<z.length;Ce++){var He=z[Ce],ce=He.pts,Pe=ce-Le,Q=Math.abs(1e3*Pe/R);if(Pe<=-we*F&&ie)Ce===0&&(r.logger.warn("Audio frame @ "+(ce/R).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*Pe/R)+" ms."),this.nextAudioPts=ee=Le=ce);else if(Pe>=we*F&&Q<s&&ie){var me=Math.round(Pe/F);Le=ce-me*F,Le<0&&(me--,Le+=F),Ce===0&&(this.nextAudioPts=ee=Le),r.logger.warn("[mp4-remuxer]: Injecting "+me+" audio frame @ "+(Le/R).toFixed(3)+"s due to "+Math.round(1e3*Pe/R)+" ms gap.");for(var Je=0;Je<me;Je++){var re=Math.max(Le,0),G=m.default.getSilentFrame(I.manifestCodec||I.codec,I.channelCount);G||(r.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),G=He.unit.subarray()),z.splice(Ce,0,{unit:G,pts:re}),Le+=F,Ce++}}He.pts=Le,Le+=F}for(var X=null,J=null,Ae,he=0,Me=z.length;Me--;)he+=z[Me].unit.byteLength;for(var Ie=0,oe=z.length;Ie<oe;Ie++){var pe=z[Ie],Oe=pe.unit,Ye=pe.pts;if(J!==null){var it=V[Ie-1];it.duration=Math.round((Ye-J)/M)}else if(L&&I.isAAC&&(Ye=ee),X=Ye,he>0){he+=Y;try{Ae=new Uint8Array(he)}catch(Be){this.observer.emit(c.Events.ERROR,c.Events.ERROR,{type:o.ErrorTypes.MUX_ERROR,details:o.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:he,reason:"fail allocating audio mdat "+he});return}if(!j){var et=new DataView(Ae.buffer);et.setUint32(0,he),Ae.set(f.default.types.mdat,4)}}else return;Ae.set(Oe,Y);var Te=Oe.byteLength;Y+=Te,V.push(new y(!0,H,Te,0)),J=Ye}var tt=V.length;if(!tt)return;var ze=V[V.length-1];this.nextAudioPts=ee=J+M*ze.duration;var dt=j?new Uint8Array(0):f.default.moof(I.sequenceNumber++,X/M,e({},I,{samples:V}));I.samples=[];var Ot=X/R,Tt=ee/R,Ct="audio",Nt={data1:dt,data2:Ae,startPTS:Ot,endPTS:Tt,startDTS:Ot,endDTS:Tt,type:Ct,hasAudio:!0,hasVideo:!1,nb:tt};return this.isAudioContiguous=!0,console.assert(Ae.length,"MDAT length must not be zero"),Nt},w.remuxEmptyAudio=function(I,_,L,D){var N=I.inputTimeScale,R=I.samplerate?I.samplerate:N,B=N/R,M=this.nextAudioPts,H=(M!==null?M:D.startDTS*N)+this._initDTS,F=D.endDTS*N+this._initDTS,K=B*t,j=Math.ceil((F-H)/K),V=m.default.getSilentFrame(I.manifestCodec||I.codec,I.channelCount);if(r.logger.warn("[mp4-remuxer]: remux empty Audio"),!V){r.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var z=[],Y=0;Y<j;Y++){var ee=H+Y*K;z.push({unit:V,pts:ee,dts:ee})}return I.samples=z,this.remuxAudio(I,_,L,!1)},w.remuxID3=function(I,_){var L=I.samples.length;if(!L)return;for(var D=I.inputTimeScale,N=this._initPTS,R=this._initDTS,B=0;B<L;B++){var M=I.samples[B];M.pts=g(M.pts-N,_*D)/D,M.dts=g(M.dts-R,_*D)/D}var H=I.samples;return I.samples=[],{samples:H}},w.remuxText=function(I,_){var L=I.samples.length;if(!L)return;for(var D=I.inputTimeScale,N=this._initPTS,R=0;R<L;R++){var B=I.samples[R];B.pts=g(B.pts-N,_*D)/D}I.samples.sort(function(H,F){return H.pts-F.pts});var M=I.samples;return I.samples=[],{samples:M}},C}();function g(C,w){var b;if(w===null)return C;for(w<C?b=-8589934592:b=8589934592;Math.abs(C-w)>4294967296;)C+=b;return C}function A(C){for(var w=0;w<C.length;w++)if(C[w].key)return w;return-1}var y=function(w,b,I,_){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=b,this.size=I,this.cts=_,this.flags=new E(w)},E=function(w){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=w?2:1,this.isNonSync=w?0:1}},"./src/remux/passthrough-remuxer.ts":function(x,T,v){"use strict";v.r(T);var S=v("./src/polyfills/number.ts"),m=v("./src/utils/mp4-tools.ts"),f=v("./src/loader/fragment.ts"),c=v("./src/utils/logger.ts"),o=function(){function n(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=void 0,this.initTracks=void 0,this.lastEndDTS=null}var e=n.prototype;return e.destroy=function(){},e.resetTimeStamp=function(t){this.initPTS=t,this.lastEndDTS=null},e.resetNextTimestamp=function(){this.lastEndDTS=null},e.resetInitSegment=function(t,i,l){this.audioCodec=i,this.videoCodec=l,this.generateInitSegment(t),this.emitInitSegment=!0},e.generateInitSegment=function(t){var i=this.audioCodec,l=this.videoCodec;if(!t||!t.byteLength){this.initTracks=void 0,this.initData=void 0;return}var u=this.initData=Object(m.parseInitSegment)(t);i||(i=a(u.audio,f.ElementaryStreamTypes.AUDIO)),l||(l=a(u.video,f.ElementaryStreamTypes.VIDEO));var h={};u.audio&&u.video?h.audiovideo={container:"video/mp4",codec:i+","+l,initSegment:t,id:"main"}:u.audio?h.audio={container:"audio/mp4",codec:i,initSegment:t,id:"audio"}:u.video?h.video={container:"video/mp4",codec:l,initSegment:t,id:"main"}:c.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=h},e.remux=function(t,i,l,u,h){var p=this.initPTS,g=this.lastEndDTS,A={audio:void 0,video:void 0,text:u,id3:l,initSegment:void 0};Object(S.isFiniteNumber)(g)||(g=this.lastEndDTS=h||0);var y=i.samples;if(!y||!y.length)return A;var E={initPTS:void 0,timescale:1},C=this.initData;if((!C||!C.length)&&(this.generateInitSegment(y),C=this.initData),!C||!C.length)return c.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),A;this.emitInitSegment&&(E.tracks=this.initTracks,this.emitInitSegment=!1),Object(S.isFiniteNumber)(p)||(this.initPTS=E.initPTS=p=r(C,y,g));var w=Object(m.getDuration)(y,C),b=g,I=w+b;Object(m.offsetStartDTS)(C,y,p),w>0?this.lastEndDTS=I:(c.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var _=!!C.audio,L=!!C.video,D="";_&&(D+="audio"),L&&(D+="video");var N={data1:y,startPTS:b,startDTS:b,endPTS:I,endDTS:I,type:D,hasAudio:_,hasVideo:L,nb:1,dropped:0};return A.audio=N.type==="audio"?N:void 0,A.video=N.type!=="audio"?N:void 0,A.text=u,A.id3=l,A.initSegment=E,A},n}(),r=function(e,s,t){return Object(m.getStartDTS)(e,s)-t};function a(n,e){var s=n==null?void 0:n.codec;return s&&s.length>4?s:s==="hvc1"?"hvc1.1.c.L120.90":s==="av01"?"av01.0.04M.08":s==="avc1"||e===f.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}T.default=o},"./src/task-loop.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"default",function(){return S});var S=function(){function m(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var f=m.prototype;return f.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},f.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},f.onHandlerDestroyed=function(){},f.hasInterval=function(){return!!this._tickInterval},f.hasNextTick=function(){return!!this._tickTimer},f.setInterval=function(o){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,o),!0)},f.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},f.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},f.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},f.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},f.doTick=function(){},m}()},"./src/types/cmcd.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"CMCDVersion",function(){return S}),v.d(T,"CMCDObjectType",function(){return m}),v.d(T,"CMCDStreamingFormat",function(){return f}),v.d(T,"CMCDStreamType",function(){return c});var S=1,m;(function(o){o.MANIFEST="m",o.AUDIO="a",o.VIDEO="v",o.MUXED="av",o.INIT="i",o.CAPTION="c",o.TIMED_TEXT="tt",o.KEY="k",o.OTHER="o"})(m||(m={}));var f;(function(o){o.DASH="d",o.HLS="h",o.SMOOTH="s",o.OTHER="o"})(f||(f={}));var c;(function(o){o.VOD="v",o.LIVE="l"})(c||(c={}))},"./src/types/level.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"HlsSkip",function(){return f}),v.d(T,"getSkipValue",function(){return c}),v.d(T,"HlsUrlParameters",function(){return o}),v.d(T,"Level",function(){return r});function S(a,n){for(var e=0;e<n.length;e++){var s=n[e];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,s.key,s)}}function m(a,n,e){return n&&S(a.prototype,n),e&&S(a,e),a}var f;(function(a){a.No="",a.Yes="YES",a.v2="v2"})(f||(f={}));function c(a,n){var e=a.canSkipUntil,s=a.canSkipDateRanges,t=a.endSN,i=n!==void 0?n-t:0;return e&&i<e?s?f.v2:f.Yes:f.No}var o=function(){function a(e,s,t){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=s,this.skip=t}var n=a.prototype;return n.addDirectives=function(s){var t=new self.URL(s);return this.msn!==void 0&&t.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.toString()},a}(),r=function(){function a(n){this.attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[n.url],this.attrs=n.attrs,this.bitrate=n.bitrate,n.details&&(this.details=n.details),this.id=n.id||0,this.name=n.name,this.width=n.width||0,this.height=n.height||0,this.audioCodec=n.audioCodec,this.videoCodec=n.videoCodec,this.unknownCodecs=n.unknownCodecs,this.codecSet=[n.videoCodec,n.audioCodec].filter(function(e){return e}).join(",").replace(/\.[^.,]+/g,"")}return m(a,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(e){var s=e%this.url.length;this._urlId!==s&&(this.details=void 0,this._urlId=s)}}]),a}()},"./src/types/loader.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"PlaylistContextType",function(){return S}),v.d(T,"PlaylistLevelType",function(){return m});var S;(function(f){f.MANIFEST="manifest",f.LEVEL="level",f.AUDIO_TRACK="audioTrack",f.SUBTITLE_TRACK="subtitleTrack"})(S||(S={}));var m;(function(f){f.MAIN="main",f.AUDIO="audio",f.SUBTITLE="subtitle"})(m||(m={}))},"./src/types/transmuxer.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"ChunkMetadata",function(){return S});var S=function(c,o,r,a,n,e){a===void 0&&(a=0),n===void 0&&(n=-1),e===void 0&&(e=!1),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=m(),this.buffering={audio:m(),video:m(),audiovideo:m()},this.level=c,this.sn=o,this.id=r,this.size=a,this.part=n,this.partial=e};function m(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"AttrList",function(){return f});var S=/^(\d+)x(\d+)$/,m=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,f=function(){function c(r){typeof r=="string"&&(r=c.parseAttrList(r));for(var a in r)r.hasOwnProperty(a)&&(this[a]=r[a])}var o=c.prototype;return o.decimalInteger=function(a){var n=parseInt(this[a],10);return n>Number.MAX_SAFE_INTEGER?Infinity:n},o.hexadecimalInteger=function(a){if(this[a]){var n=(this[a]||"0x").slice(2);n=(n.length&1?"0":"")+n;for(var e=new Uint8Array(n.length/2),s=0;s<n.length/2;s++)e[s]=parseInt(n.slice(s*2,s*2+2),16);return e}else return null},o.hexadecimalIntegerAsNumber=function(a){var n=parseInt(this[a],16);return n>Number.MAX_SAFE_INTEGER?Infinity:n},o.decimalFloatingPoint=function(a){return parseFloat(this[a])},o.optionalFloat=function(a,n){var e=this[a];return e?parseFloat(e):n},o.enumeratedString=function(a){return this[a]},o.bool=function(a){return this[a]==="YES"},o.decimalResolution=function(a){var n=S.exec(this[a]);return n===null?void 0:{width:parseInt(n[1],10),height:parseInt(n[2],10)}},c.parseAttrList=function(a){var n,e={},s='"';for(m.lastIndex=0;(n=m.exec(a))!==null;){var t=n[2];t.indexOf(s)===0&&t.lastIndexOf(s)===t.length-1&&(t=t.slice(1,-1)),e[n[1]]=t}return e},c}()},"./src/utils/binary-search.ts":function(x,T,v){"use strict";v.r(T);var S={search:function(f,c){for(var o=0,r=f.length-1,a=null,n=null;o<=r;){a=(o+r)/2|0,n=f[a];var e=c(n);if(e>0)o=a+1;else if(e<0)r=a-1;else return n}return null}};T.default=S},"./src/utils/buffer-helper.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"BufferHelper",function(){return f});var S=v("./src/utils/logger.ts"),m={length:0,start:function(){return 0},end:function(){return 0}},f=function(){function c(){}return c.isBuffered=function(r,a){try{if(r){for(var n=c.getBuffered(r),e=0;e<n.length;e++)if(a>=n.start(e)&&a<=n.end(e))return!0}}catch(s){}return!1},c.bufferInfo=function(r,a,n){try{if(r){var e=c.getBuffered(r),s=[],t;for(t=0;t<e.length;t++)s.push({start:e.start(t),end:e.end(t)});return this.bufferedInfo(s,a,n)}}catch(i){}return{len:0,start:a,end:a,nextStart:void 0}},c.bufferedInfo=function(r,a,n){a=Math.max(0,a),r.sort(function(E,C){var w=E.start-C.start;return w||C.end-E.end});var e=[];if(n)for(var s=0;s<r.length;s++){var t=e.length;if(t){var i=e[t-1].end;r[s].start-i<n?r[s].end>i&&(e[t-1].end=r[s].end):e.push(r[s])}else e.push(r[s])}else e=r;for(var l=0,u,h=a,p=a,g=0;g<e.length;g++){var A=e[g].start,y=e[g].end;if(a+n>=A&&a<y)h=A,p=y,l=p-a;else if(a+n<A){u=A;break}}return{len:l,start:h||0,end:p||0,nextStart:u}},c.getBuffered=function(r){try{return r.buffered}catch(a){return S.logger.log("failed to get media.buffered",a),m}},c}()},"./src/utils/cea-608-parser.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"Row",function(){return p}),v.d(T,"CaptionScreen",function(){return g});var S=v("./src/utils/logger.ts"),m={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},f=function(I){var _=I;return m.hasOwnProperty(I)&&(_=m[I]),String.fromCharCode(_)},c=15,o=100,r={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},a={17:2,18:4,21:6,22:8,23:10,19:13,20:15},n={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},e={25:2,26:4,29:6,30:8,31:10,27:13,28:15},s=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],t;(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"})(t||(t={}));var i=function(){function b(){this.time=null,this.verboseLevel=t.ERROR}var I=b.prototype;return I.log=function(L,D){this.verboseLevel>=L&&S.logger.log(this.time+" ["+L+"] "+D)},b}(),l=function(I){for(var _=[],L=0;L<I.length;L++)_.push(I[L].toString(16));return _},u=function(){function b(_,L,D,N,R){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=_||"white",this.underline=L||!1,this.italics=D||!1,this.background=N||"black",this.flash=R||!1}var I=b.prototype;return I.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},I.setStyles=function(L){for(var D=["foreground","underline","italics","background","flash"],N=0;N<D.length;N++){var R=D[N];L.hasOwnProperty(R)&&(this[R]=L[R])}},I.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},I.equals=function(L){return this.foreground===L.foreground&&this.underline===L.underline&&this.italics===L.italics&&this.background===L.background&&this.flash===L.flash},I.copy=function(L){this.foreground=L.foreground,this.underline=L.underline,this.italics=L.italics,this.background=L.background,this.flash=L.flash},I.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},b}(),h=function(){function b(_,L,D,N,R,B){this.uchar=void 0,this.penState=void 0,this.uchar=_||" ",this.penState=new u(L,D,N,R,B)}var I=b.prototype;return I.reset=function(){this.uchar=" ",this.penState.reset()},I.setChar=function(L,D){this.uchar=L,this.penState.copy(D)},I.setPenState=function(L){this.penState.copy(L)},I.equals=function(L){return this.uchar===L.uchar&&this.penState.equals(L.penState)},I.copy=function(L){this.uchar=L.uchar,this.penState.copy(L.penState)},I.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},b}(),p=function(){function b(_){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var L=0;L<o;L++)this.chars.push(new h);this.logger=_,this.pos=0,this.currPenState=new u}var I=b.prototype;return I.equals=function(L){for(var D=!0,N=0;N<o;N++)if(!this.chars[N].equals(L.chars[N])){D=!1;break}return D},I.copy=function(L){for(var D=0;D<o;D++)this.chars[D].copy(L.chars[D])},I.isEmpty=function(){for(var L=!0,D=0;D<o;D++)if(!this.chars[D].isEmpty()){L=!1;break}return L},I.setCursor=function(L){this.pos!==L&&(this.pos=L),this.pos<0?(this.logger.log(t.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>o&&(this.logger.log(t.DEBUG,"Too large cursor position "+this.pos),this.pos=o)},I.moveCursor=function(L){var D=this.pos+L;if(L>1)for(var N=this.pos+1;N<D+1;N++)this.chars[N].setPenState(this.currPenState);this.setCursor(D)},I.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},I.insertChar=function(L){L>=144&&this.backSpace();var D=f(L);if(this.pos>=o){this.logger.log(t.ERROR,"Cannot insert "+L.toString(16)+" ("+D+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(D,this.currPenState),this.moveCursor(1)},I.clearFromPos=function(L){var D;for(D=L;D<o;D++)this.chars[D].reset()},I.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},I.clearToEndOfRow=function(){this.clearFromPos(this.pos)},I.getTextString=function(){for(var L=[],D=!0,N=0;N<o;N++){var R=this.chars[N].uchar;R!==" "&&(D=!1),L.push(R)}return D?"":L.join("")},I.setPenStyles=function(L){this.currPenState.setStyles(L);var D=this.chars[this.pos];D.setPenState(this.currPenState)},b}(),g=function(){function b(_){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var L=0;L<c;L++)this.rows.push(new p(_));this.logger=_,this.currRow=c-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var I=b.prototype;return I.reset=function(){for(var L=0;L<c;L++)this.rows[L].clear();this.currRow=c-1},I.equals=function(L){for(var D=!0,N=0;N<c;N++)if(!this.rows[N].equals(L.rows[N])){D=!1;break}return D},I.copy=function(L){for(var D=0;D<c;D++)this.rows[D].copy(L.rows[D])},I.isEmpty=function(){for(var L=!0,D=0;D<c;D++)if(!this.rows[D].isEmpty()){L=!1;break}return L},I.backSpace=function(){var L=this.rows[this.currRow];L.backSpace()},I.clearToEndOfRow=function(){var L=this.rows[this.currRow];L.clearToEndOfRow()},I.insertChar=function(L){var D=this.rows[this.currRow];D.insertChar(L)},I.setPen=function(L){var D=this.rows[this.currRow];D.setPenStyles(L)},I.moveCursor=function(L){var D=this.rows[this.currRow];D.moveCursor(L)},I.setCursor=function(L){this.logger.log(t.INFO,"setCursor: "+L);var D=this.rows[this.currRow];D.setCursor(L)},I.setPAC=function(L){this.logger.log(t.INFO,"pacData = "+JSON.stringify(L));var D=L.row-1;if(this.nrRollUpRows&&D<this.nrRollUpRows-1&&(D=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==D){for(var N=0;N<c;N++)this.rows[N].clear();var R=this.currRow+1-this.nrRollUpRows,B=this.lastOutputScreen;if(B){var M=B.rows[R].cueStartTime,H=this.logger.time;if(M&&H!==null&&M<H)for(var F=0;F<this.nrRollUpRows;F++)this.rows[D-this.nrRollUpRows+F+1].copy(B.rows[R+F])}}this.currRow=D;var K=this.rows[this.currRow];if(L.indent!==null){var j=L.indent,V=Math.max(j-1,0);K.setCursor(L.indent),L.color=K.chars[V].penState.foreground}var z={foreground:L.color,underline:L.underline,italics:L.italics,background:"black",flash:!1};this.setPen(z)},I.setBkgData=function(L){this.logger.log(t.INFO,"bkgData = "+JSON.stringify(L)),this.backSpace(),this.setPen(L),this.insertChar(32)},I.setRollUpRows=function(L){this.nrRollUpRows=L},I.rollUp=function(){if(this.nrRollUpRows===null){this.logger.log(t.DEBUG,"roll_up but nrRollUpRows not set yet");return}this.logger.log(t.TEXT,this.getDisplayText());var L=this.currRow+1-this.nrRollUpRows,D=this.rows.splice(L,1)[0];D.clear(),this.rows.splice(this.currRow,0,D),this.logger.log(t.INFO,"Rolling up")},I.getDisplayText=function(L){L=L||!1;for(var D=[],N="",R=-1,B=0;B<c;B++){var M=this.rows[B].getTextString();M&&(R=B+1,L?D.push("Row "+R+": '"+M+"'"):D.push(M.trim()))}return D.length>0&&(L?N="["+D.join(" | ")+"]":N=D.join(`
|
|
|
`)),N},I.getTextAndFormat=function(){return this.rows},b}(),A=function(){function b(_,L,D){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=_,this.outputFilter=L,this.mode=null,this.verbose=0,this.displayedMemory=new g(D),this.nonDisplayedMemory=new g(D),this.lastOutputScreen=new g(D),this.currRollUpRow=this.displayedMemory.rows[c-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=D}var I=b.prototype;return I.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[c-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},I.getHandler=function(){return this.outputFilter},I.setHandler=function(L){this.outputFilter=L},I.setPAC=function(L){this.writeScreen.setPAC(L)},I.setBkgData=function(L){this.writeScreen.setBkgData(L)},I.setMode=function(L){if(L===this.mode)return;this.mode=L,this.logger.log(t.INFO,"MODE="+L),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=L},I.insertChars=function(L){for(var D=0;D<L.length;D++)this.writeScreen.insertChar(L[D]);var N=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(t.INFO,N+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(t.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},I.ccRCL=function(){this.logger.log(t.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},I.ccBS=function(){if(this.logger.log(t.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},I.ccAOF=function(){},I.ccAON=function(){},I.ccDER=function(){this.logger.log(t.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},I.ccRU=function(L){this.logger.log(t.INFO,"RU("+L+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(L)},I.ccFON=function(){this.logger.log(t.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},I.ccRDC=function(){this.logger.log(t.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},I.ccTR=function(){this.logger.log(t.INFO,"TR"),this.setMode("MODE_TEXT")},I.ccRTD=function(){this.logger.log(t.INFO,"RTD"),this.setMode("MODE_TEXT")},I.ccEDM=function(){this.logger.log(t.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},I.ccCR=function(){this.logger.log(t.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},I.ccENM=function(){this.logger.log(t.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},I.ccEOC=function(){if(this.logger.log(t.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var L=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=L,this.writeScreen=this.nonDisplayedMemory,this.logger.log(t.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},I.ccTO=function(L){this.logger.log(t.INFO,"TO("+L+") - Tab Offset"),this.writeScreen.moveCursor(L)},I.ccMIDROW=function(L){var D={flash:!1};if(D.underline=L%2===1,D.italics=L>=46,D.italics)D.foreground="white";else{var N=Math.floor(L/2)-16,R=["white","green","blue","cyan","red","yellow","magenta"];D.foreground=R[N]}this.logger.log(t.INFO,"MIDROW: "+JSON.stringify(D)),this.writeScreen.setPen(D)},I.outputDataUpdate=function(L){L===void 0&&(L=!1);var D=this.logger.time;if(D===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=D:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,D,this.lastOutputScreen),L&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:D),this.lastOutputScreen.copy(this.displayedMemory))},I.cueSplitAtTime=function(L){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,L,this.displayedMemory),this.cueStartTime=L))},b}(),y=function(){function b(_,L,D){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var N=new i;this.channels=[null,new A(_,L,N),new A(_+1,D,N)],this.cmdHistory=w(),this.logger=N}var I=b.prototype;return I.getHandler=function(L){return this.channels[L].getHandler()},I.setHandler=function(L,D){this.channels[L].setHandler(D)},I.addData=function(L,D){var N,R,B,M=!1;this.logger.time=L;for(var H=0;H<D.length;H+=2){if(R=D[H]&127,B=D[H+1]&127,R===0&&B===0)continue;if(this.logger.log(t.DATA,"["+l([D[H],D[H+1]])+"] -> ("+l([R,B])+")"),N=this.parseCmd(R,B),N||(N=this.parseMidrow(R,B)),N||(N=this.parsePAC(R,B)),N||(N=this.parseBackgroundAttributes(R,B)),!N&&(M=this.parseChars(R,B),M)){var F=this.currentChannel;if(F&&F>0){var K=this.channels[F];K.insertChars(M)}else this.logger.log(t.WARNING,"No channel found yet. TEXT-MODE?")}!N&&!M&&this.logger.log(t.WARNING,"Couldn't parse cleaned data "+l([R,B])+" orig: "+l([D[H],D[H+1]]))}},I.parseCmd=function(L,D){var N=this.cmdHistory,R=(L===20||L===28||L===21||L===29)&&D>=32&&D<=47,B=(L===23||L===31)&&D>=33&&D<=35;if(!(R||B))return!1;if(C(L,D,N))return E(null,null,N),this.logger.log(t.DEBUG,"Repeated command ("+l([L,D])+") is dropped"),!0;var M=L===20||L===21||L===23?1:2,H=this.channels[M];return L===20||L===21||L===28||L===29?D===32?H.ccRCL():D===33?H.ccBS():D===34?H.ccAOF():D===35?H.ccAON():D===36?H.ccDER():D===37?H.ccRU(2):D===38?H.ccRU(3):D===39?H.ccRU(4):D===40?H.ccFON():D===41?H.ccRDC():D===42?H.ccTR():D===43?H.ccRTD():D===44?H.ccEDM():D===45?H.ccCR():D===46?H.ccENM():D===47&&H.ccEOC():H.ccTO(D-32),E(L,D,N),this.currentChannel=M,!0},I.parseMidrow=function(L,D){var N=0;if((L===17||L===25)&&D>=32&&D<=47){if(L===17?N=1:N=2,N!==this.currentChannel)return this.logger.log(t.ERROR,"Mismatch channel in midrow parsing"),!1;var R=this.channels[N];return R?(R.ccMIDROW(D),this.logger.log(t.DEBUG,"MIDROW ("+l([L,D])+")"),!0):!1}return!1},I.parsePAC=function(L,D){var N,R=this.cmdHistory,B=(L>=17&&L<=23||L>=25&&L<=31)&&D>=64&&D<=127,M=(L===16||L===24)&&D>=64&&D<=95;if(!(B||M))return!1;if(C(L,D,R))return E(null,null,R),!0;var H=L<=23?1:2;D>=64&&D<=95?N=H===1?r[L]:n[L]:N=H===1?a[L]:e[L];var F=this.channels[H];return F?(F.setPAC(this.interpretPAC(N,D)),E(L,D,R),this.currentChannel=H,!0):!1},I.interpretPAC=function(L,D){var N,R={color:null,italics:!1,indent:null,underline:!1,row:L};return D>95?N=D-96:N=D-64,R.underline=(N&1)===1,N<=13?R.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(N/2)]:N<=15?(R.italics=!0,R.color="white"):R.indent=Math.floor((N-16)/2)*4,R},I.parseChars=function(L,D){var N,R=null,B=null;if(L>=25?(N=2,B=L-8):(N=1,B=L),B>=17&&B<=19){var M;B===17?M=D+80:B===18?M=D+112:M=D+144,this.logger.log(t.INFO,"Special char '"+f(M)+"' in channel "+N),R=[M]}else L>=32&&L<=127&&(R=D===0?[L]:[L,D]);if(R){var H=l(R);this.logger.log(t.DEBUG,"Char codes = "+H.join(",")),E(L,D,this.cmdHistory)}return R},I.parseBackgroundAttributes=function(L,D){var N=(L===16||L===24)&&D>=32&&D<=47,R=(L===23||L===31)&&D>=45&&D<=47;if(!(N||R))return!1;var B,M={};L===16||L===24?(B=Math.floor((D-32)/2),M.background=s[B],D%2===1&&(M.background=M.background+"_semi")):D===45?M.background="transparent":(M.foreground="black",D===47&&(M.underline=!0));var H=L<=23?1:2,F=this.channels[H];return F.setBkgData(M),E(L,D,this.cmdHistory),!0},I.reset=function(){for(var L=0;L<Object.keys(this.channels).length;L++){var D=this.channels[L];D&&D.reset()}this.cmdHistory=w()},I.cueSplitAtTime=function(L){for(var D=0;D<this.channels.length;D++){var N=this.channels[D];N&&N.cueSplitAtTime(L)}},b}();function E(b,I,_){_.a=b,_.b=I}function C(b,I,_){return _.a===b&&_.b===I}function w(){return{a:null,b:null}}T.default=y},"./src/utils/codecs.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"isCodecType",function(){return m}),v.d(T,"isCodecSupportedInMp4",function(){return f});var S={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(c,o){var r=S[o];return!!r&&r[c.slice(0,4)]===!0}function f(c,o){return MediaSource.isTypeSupported((o||"video")+'/mp4;codecs="'+c+'"')}},"./src/utils/cues.ts":function(x,T,v){"use strict";v.r(T);var S=v("./src/utils/vttparser.ts"),m=v("./src/utils/webvtt-parser.ts"),f=v("./src/utils/texttrack-utils.ts"),c=/\s/,o={newCue:function(a,n,e,s){for(var t=[],i,l,u,h,p,g=self.VTTCue||self.TextTrackCue,A=0;A<s.rows.length;A++)if(i=s.rows[A],u=!0,h=0,p="",!i.isEmpty()){for(var y=0;y<i.chars.length;y++)c.test(i.chars[y].uchar)&&u?h++:(p+=i.chars[y].uchar,u=!1);i.cueStartTime=n,n===e&&(e+=1e-4),h>=16?h--:h++;var E=Object(S.fixLineBreaks)(p.trim()),C=Object(m.generateCueId)(n,e,E);(!a||!a.cues||!a.cues.getCueById(C))&&(l=new g(n,e,E),l.id=C,l.line=A+1,l.align="left",l.position=10+Math.min(80,Math.floor(h*8/32)*10),t.push(l))}return a&&t.length&&(t.sort(function(w,b){return w.line==="auto"||b.line==="auto"?0:w.line>8&&b.line>8?b.line-w.line:w.line-b.line}),t.forEach(function(w){return Object(f.addCueToTrack)(a,w)})),t}};T.default=o},"./src/utils/discontinuities.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"findFirstFragWithCC",function(){return c}),v.d(T,"shouldAlignOnDiscontinuities",function(){return o}),v.d(T,"findDiscontinuousReferenceFrag",function(){return r}),v.d(T,"adjustSlidingStart",function(){return n}),v.d(T,"alignStream",function(){return e}),v.d(T,"alignPDT",function(){return t}),v.d(T,"alignFragmentByPDTDelta",function(){return i}),v.d(T,"alignMediaPlaylistByPDT",function(){return l});var S=v("./src/polyfills/number.ts"),m=v("./src/utils/logger.ts"),f=v("./src/controller/level-helper.ts");function c(u,h){for(var p=null,g=0,A=u.length;g<A;g++){var y=u[g];if(y&&y.cc===h){p=y;break}}return p}function o(u,h,p){return!!(h.details&&(p.endCC>p.startCC||u&&u.cc<p.startCC))}function r(u,h){var p=u.fragments,g=h.fragments;if(!g.length||!p.length){m.logger.log("No fragments to align");return}var A=c(p,g[0].cc);if(!A||A&&!A.startPTS){m.logger.log("No frag in previous level to align on");return}return A}function a(u,h){if(u){var p=u.start+h;u.start=u.startPTS=p,u.endPTS=p+u.duration}}function n(u,h){for(var p=h.fragments,g=0,A=p.length;g<A;g++)a(p[g],u);h.fragmentHint&&a(h.fragmentHint,u),h.alignedSliding=!0}function e(u,h,p){if(!h)return;s(u,p,h),!p.alignedSliding&&h.details&&t(p,h.details),!p.alignedSliding&&h.details&&!p.skippedSegments&&Object(f.adjustSliding)(h.details,p)}function s(u,h,p){if(o(u,p,h)){var g=r(p.details,h);g&&Object(S.isFiniteNumber)(g.start)&&(m.logger.log("Adjusting PTS using last level due to CC increase within current level "+h.url),n(g.start,h))}}function t(u,h){if(!h.fragments.length||!u.hasProgramDateTime||!h.hasProgramDateTime)return;var p=h.fragments[0].programDateTime,g=u.fragments[0].programDateTime,A=(g-p)/1e3+h.fragments[0].start;A&&Object(S.isFiniteNumber)(A)&&(m.logger.log("Adjusting PTS using programDateTime delta "+(g-p)+"ms, sliding:"+A.toFixed(3)+" "+u.url+" "),n(A,u))}function i(u,h){var p=u.programDateTime;if(!p)return;var g=(p-h)/1e3;u.start=u.startPTS=g,u.endPTS=g+u.duration}function l(u,h){if(!h.fragments.length||!u.hasProgramDateTime||!h.hasProgramDateTime)return;var p=h.fragments[0].programDateTime,g=h.fragments[0].start,A=p-g*1e3;u.fragments.forEach(function(y){i(y,A)}),u.fragmentHint&&i(u.fragmentHint,A),u.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(x,T,v){"use strict";v.r(T);var S=v("./src/utils/ewma.ts"),m=function(){function f(o,r,a){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=a,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new S.default(o),this.fast_=new S.default(r)}var c=f.prototype;return c.update=function(r,a){var n=this.slow_,e=this.fast_;this.slow_.halfLife!==r&&(this.slow_=new S.default(r,n.getEstimate(),n.getTotalWeight())),this.fast_.halfLife!==a&&(this.fast_=new S.default(a,e.getEstimate(),e.getTotalWeight()))},c.sample=function(r,a){r=Math.max(r,this.minDelayMs_);var n=8*a,e=r/1e3,s=n/e;this.fast_.sample(e,s),this.slow_.sample(e,s)},c.canEstimate=function(){var r=this.fast_;return r&&r.getTotalWeight()>=this.minWeight_},c.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},c.destroy=function(){},f}();T.default=m},"./src/utils/ewma.ts":function(x,T,v){"use strict";v.r(T);var S=function(){function m(c,o,r){o===void 0&&(o=0),r===void 0&&(r=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=c,this.alpha_=c?Math.exp(Math.log(.5)/c):0,this.estimate_=o,this.totalWeight_=r}var f=m.prototype;return f.sample=function(o,r){var a=Math.pow(this.alpha_,o);this.estimate_=r*(1-a)+a*this.estimate_,this.totalWeight_+=o},f.getTotalWeight=function(){return this.totalWeight_},f.getEstimate=function(){if(this.alpha_){var o=1-Math.pow(this.alpha_,this.totalWeight_);if(o)return this.estimate_/o}return this.estimate_},m}();T.default=S},"./src/utils/fetch-loader.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"fetchSupported",function(){return i});var S=v("./src/polyfills/number.ts"),m=v("./src/loader/load-stats.ts"),f=v("./src/demux/chunk-cache.ts");function c(g,A){g.prototype=Object.create(A.prototype),g.prototype.constructor=g,e(g,A)}function o(g){var A=typeof Map=="function"?new Map:void 0;return o=function(E){if(E===null||!n(E))return E;if(typeof E!="function")throw new TypeError("Super expression must either be null or a function");if(typeof A!="undefined"){if(A.has(E))return A.get(E);A.set(E,C)}function C(){return r(E,arguments,s(this).constructor)}return C.prototype=Object.create(E.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),e(C,E)},o(g)}function r(g,A,y){return a()?r=Reflect.construct:r=function(C,w,b){var I=[null];I.push.apply(I,w);var _=Function.bind.apply(C,I),L=new _;return b&&e(L,b.prototype),L},r.apply(null,arguments)}function a(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(g){return!1}}function n(g){return Function.toString.call(g).indexOf("[native code]")!==-1}function e(g,A){return e=Object.setPrototypeOf||function(E,C){return E.__proto__=C,E},e(g,A)}function s(g){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)},s(g)}function t(){return t=Object.assign||function(g){for(var A=1;A<arguments.length;A++){var y=arguments[A];for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&(g[E]=y[E])}return g},t.apply(this,arguments)}function i(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(g){}return!1}var l=function(){function g(y){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=y.fetchSetup||h,this.controller=new self.AbortController,this.stats=new m.LoadStats}var A=g.prototype;return A.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},A.abortInternal=function(){var E=this.response;(!E||!E.ok)&&(this.stats.aborted=!0,this.controller.abort())},A.abort=function(){var E;this.abortInternal(),(E=this.callbacks)!==null&&E!==void 0&&E.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},A.load=function(E,C,w){var b=this,I=this.stats;if(I.loading.start)throw new Error("Loader can only be used once.");I.loading.start=self.performance.now();var _=u(E,this.controller.signal),L=w.onProgress,D=E.responseType==="arraybuffer",N=D?"byteLength":"length";this.context=E,this.config=C,this.callbacks=w,this.request=this.fetchSetup(E,_),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){b.abortInternal(),w.onTimeout(I,E,b.response)},C.timeout),self.fetch(this.request).then(function(R){if(b.response=b.loader=R,!R.ok){var B=R.status,M=R.statusText;throw new p(M||"fetch, bad network response",B,R)}return I.loading.first=Math.max(self.performance.now(),I.loading.start),I.total=parseInt(R.headers.get("Content-Length")||"0"),L&&Object(S.isFiniteNumber)(C.highWaterMark)?b.loadProgressively(R,I,E,C.highWaterMark,L):D?R.arrayBuffer():R.text()}).then(function(R){var B=b.response;self.clearTimeout(b.requestTimeout),I.loading.end=Math.max(self.performance.now(),I.loading.first),I.loaded=I.total=R[N];var M={url:B.url,data:R};L&&!Object(S.isFiniteNumber)(C.highWaterMark)&&L(I,E,R,B),w.onSuccess(M,I,E,B)}).catch(function(R){if(self.clearTimeout(b.requestTimeout),I.aborted)return;var B=R.code||0;w.onError({code:B,text:R.message},E,R.details)})},A.getCacheAge=function(){var E=null;if(this.response){var C=this.response.headers.get("age");E=C?parseFloat(C):null}return E},A.loadProgressively=function(E,C,w,b,I){b===void 0&&(b=0);var _=new f.default,L=E.body.getReader(),D=function N(){return L.read().then(function(R){if(R.done)return _.dataLength&&I(C,w,_.flush(),E),Promise.resolve(new ArrayBuffer(0));var B=R.value,M=B.length;return C.loaded+=M,M<b||_.dataLength?(_.push(B),_.dataLength>=b&&I(C,w,_.flush(),E)):I(C,w,B,E),N()}).catch(function(){return Promise.reject()})};return D()},g}();function u(g,A){var y={method:"GET",mode:"cors",credentials:"same-origin",signal:A,headers:new self.Headers(t({},g.headers))};return g.rangeEnd&&y.headers.set("Range","bytes="+g.rangeStart+"-"+String(g.rangeEnd-1)),y}function h(g,A){return new self.Request(g.url,A)}var p=function(g){c(A,g);function A(y,E,C){var w;return w=g.call(this,y)||this,w.code=void 0,w.details=void 0,w.code=E,w.details=C,w}return A}(o(Error));T.default=l},"./src/utils/imsc1-ttml-parser.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"IMSC1_CODEC",function(){return n}),v.d(T,"parseIMSC1",function(){return i});var S=v("./src/utils/mp4-tools.ts"),m=v("./src/utils/vttparser.ts"),f=v("./src/utils/vttcue.ts"),c=v("./src/demux/id3.ts"),o=v("./src/utils/timescale-conversion.ts"),r=v("./src/utils/webvtt-parser.ts");function a(){return a=Object.assign||function(b){for(var I=1;I<arguments.length;I++){var _=arguments[I];for(var L in _)Object.prototype.hasOwnProperty.call(_,L)&&(b[L]=_[L])}return b},a.apply(this,arguments)}var n="stpp.ttml.im1t",e=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,s=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,t={left:"start",center:"center",right:"end",start:"start",end:"end"};function i(b,I,_,L,D){var N=Object(S.findBox)(new Uint8Array(b),["mdat"]);if(N.length===0){D(new Error("Could not parse IMSC1 mdat"));return}var R=N[0],B=Object(c.utf8ArrayToStr)(new Uint8Array(b,R.start,R.end-R.start)),M=Object(o.toTimescaleFromScale)(I,1,_);try{L(l(B,M))}catch(H){D(H)}}function l(b,I){var _=new DOMParser,L=_.parseFromString(b,"text/xml"),D=L.getElementsByTagName("tt")[0];if(!D)throw new Error("Invalid ttml");var N={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},R=Object.keys(N).reduce(function(K,j){return K[j]=D.getAttribute("ttp:"+j)||N[j],K},{}),B=D.getAttribute("xml:space")!=="preserve",M=h(u(D,"styling","style")),H=h(u(D,"layout","region")),F=u(D,"body","[begin]");return[].map.call(F,function(K){var j=p(K,B);if(!j||!K.hasAttribute("begin"))return null;var V=E(K.getAttribute("begin"),R),z=E(K.getAttribute("dur"),R),Y=E(K.getAttribute("end"),R);if(V===null)throw y(K);if(Y===null){if(z===null)throw y(K);Y=V+z}var ee=new f.default(V-I,Y-I,j);ee.id=Object(r.generateCueId)(ee.startTime,ee.endTime,ee.text);var fe=H[K.getAttribute("region")],ie=M[K.getAttribute("style")];ee.position=10,ee.size=80;var we=g(fe,ie),Ce=we.textAlign;if(Ce){var Le=t[Ce];Le&&(ee.lineAlign=Le),ee.align=Ce}return a(ee,we),ee}).filter(function(K){return K!==null})}function u(b,I,_){var L=b.getElementsByTagName(I)[0];return L?[].slice.call(L.querySelectorAll(_)):[]}function h(b){return b.reduce(function(I,_){var L=_.getAttribute("xml:id");return L&&(I[L]=_),I},{})}function p(b,I){return[].slice.call(b.childNodes).reduce(function(_,L,D){var N;return L.nodeName==="br"&&D?_+`
|
|
|
`:(N=L.childNodes)!==null&&N!==void 0&&N.length?p(L,I):I?_+L.textContent.trim().replace(/\s+/g," "):_+L.textContent},"")}function g(b,I){var _="http://www.w3.org/ns/ttml#styling",L=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return L.reduce(function(D,N){var R=A(I,_,N)||A(b,_,N);return R&&(D[N]=R),D},{})}function A(b,I,_){return b.hasAttributeNS(I,_)?b.getAttributeNS(I,_):null}function y(b){return new Error("Could not parse ttml timestamp "+b)}function E(b,I){if(!b)return null;var _=Object(m.parseTimeStamp)(b);return _===null&&(e.test(b)?_=C(b,I):s.test(b)&&(_=w(b,I))),_}function C(b,I){var _=e.exec(b),L=(_[4]|0)+(_[5]|0)/I.subFrameRate;return(_[1]|0)*3600+(_[2]|0)*60+(_[3]|0)+L/I.frameRate}function w(b,I){var _=s.exec(b),L=Number(_[1]),D=_[2];switch(D){case"h":return L*3600;case"m":return L*60;case"ms":return L*1e3;case"f":return L/I.frameRate;case"t":return L/I.tickRate}return L}},"./src/utils/logger.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"enableLogs",function(){return r}),v.d(T,"logger",function(){return a});var S=function(){},m={trace:S,debug:S,log:S,warn:S,info:S,error:S},f=m;function c(n){var e=self.console[n];return e?e.bind(self.console,"["+n+"] >"):S}function o(n){for(var e=arguments.length,s=new Array(e>1?e-1:0),t=1;t<e;t++)s[t-1]=arguments[t];s.forEach(function(i){f[i]=n[i]?n[i].bind(n):c(i)})}function r(n){if(self.console&&n===!0||typeof n=="object"){o(n,"debug","log","info","warn","error");try{f.log()}catch(e){f=m}}else f=m}var a=f},"./src/utils/mediakeys-helper.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"KeySystems",function(){return S}),v.d(T,"requestMediaKeySystemAccess",function(){return m});var S;(function(f){f.WIDEVINE="com.widevine.alpha",f.PLAYREADY="com.microsoft.playready"})(S||(S={}));var m=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}()},"./src/utils/mediasource-helper.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"getMediaSource",function(){return S});function S(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"bin2str",function(){return o}),v.d(T,"readUint16",function(){return r}),v.d(T,"readUint32",function(){return a}),v.d(T,"writeUint32",function(){return n}),v.d(T,"findBox",function(){return e}),v.d(T,"parseSegmentIndex",function(){return s}),v.d(T,"parseInitSegment",function(){return t}),v.d(T,"getStartDTS",function(){return i}),v.d(T,"getDuration",function(){return l}),v.d(T,"computeRawDurationFromSamples",function(){return u}),v.d(T,"offsetStartDTS",function(){return h}),v.d(T,"segmentValidRange",function(){return p}),v.d(T,"appendUint8Array",function(){return g});var S=v("./src/utils/typed-array.ts"),m=v("./src/loader/fragment.ts"),f=Math.pow(2,32)-1,c=[].push;function o(A){return String.fromCharCode.apply(null,A)}function r(A,y){"data"in A&&(y+=A.start,A=A.data);var E=A[y]<<8|A[y+1];return E<0?65536+E:E}function a(A,y){"data"in A&&(y+=A.start,A=A.data);var E=A[y]<<24|A[y+1]<<16|A[y+2]<<8|A[y+3];return E<0?4294967296+E:E}function n(A,y,E){"data"in A&&(y+=A.start,A=A.data),A[y]=E>>24,A[y+1]=E>>16&255,A[y+2]=E>>8&255,A[y+3]=E&255}function e(A,y){var E=[];if(!y.length)return E;var C,w,b;"data"in A?(C=A.data,w=A.start,b=A.end):(C=A,w=0,b=C.byteLength);for(var I=w;I<b;){var _=a(C,I),L=o(C.subarray(I+4,I+8)),D=_>1?I+_:b;if(L===y[0])if(y.length===1)E.push({data:C,start:I+8,end:D});else{var N=e({data:C,start:I+8,end:D},y.slice(1));N.length&&c.apply(E,N)}I=D}return E}function s(A){var y=e(A,["moov"]),E=y[0],C=E?E.end:null,w=e(A,["sidx"]);if(!w||!w[0])return null;var b=[],I=w[0],_=I.data[0],L=_===0?8:16,D=a(I,L);L+=4;var N=0,R=0;_===0?L+=8:L+=16,L+=2;var B=I.end+R,M=r(I,L);L+=2;for(var H=0;H<M;H++){var F=L,K=a(I,F);F+=4;var j=K&2147483647,V=(K&2147483648)>>>31;if(V===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var z=a(I,F);F+=4,b.push({referenceSize:j,subsegmentDuration:z,info:{duration:z/D,start:B,end:B+j-1}}),B+=j,F+=4,L=F}return{earliestPresentationTime:N,timescale:D,version:_,referencesCount:M,references:b,moovEndOffset:C}}function t(A){for(var y=[],E=e(A,["moov","trak"]),C=0;C<E.length;C++){var w=E[C],b=e(w,["tkhd"])[0];if(b){var I=b.data[b.start],_=I===0?12:20,L=a(b,_),D=e(w,["mdia","mdhd"])[0];if(D){I=D.data[D.start],_=I===0?12:20;var N=a(D,_),R=e(w,["mdia","hdlr"])[0];if(R){var B=o(R.data.subarray(R.start+8,R.start+12)),M={soun:m.ElementaryStreamTypes.AUDIO,vide:m.ElementaryStreamTypes.VIDEO}[B];if(M){var H=e(w,["mdia","minf","stbl","stsd"])[0],F=void 0;H&&(F=o(H.data.subarray(H.start+12,H.start+16))),y[L]={timescale:N,type:M},y[M]={timescale:N,id:L,codec:F}}}}}}var K=e(A,["moov","mvex","trex"]);return K.forEach(function(j){var V=a(j,4),z=y[V];z&&(z.default={duration:a(j,12),flags:a(j,20)})}),y}function i(A,y){return e(y,["moof","traf"]).reduce(function(E,C){var w=e(C,["tfdt"])[0],b=w.data[w.start],I=e(C,["tfhd"]).reduce(function(_,L){var D=a(L,4),N=A[D];if(N){var R=a(w,4);b===1&&(R*=Math.pow(2,32),R+=a(w,8));var B=N.timescale||9e4,M=R/B;if(isFinite(M)&&(_===null||M<_))return M}return _},null);return I!==null&&isFinite(I)&&(E===null||I<E)?I:E},null)||0}function l(A,y){for(var E=0,C=0,w=0,b=e(A,["moof","traf"]),I=0;I<b.length;I++){var _=b[I],L=e(_,["tfhd"])[0],D=a(L,4),N=y[D];if(!N)continue;var R=N.default,B=a(L,0)|(R==null?void 0:R.flags),M=R==null?void 0:R.duration;B&8&&(B&2?M=a(L,12):M=a(L,8));for(var H=N.timescale||9e4,F=e(_,["trun"]),K=0;K<F.length;K++){if(M){var j=a(F[K],4);E=M*j}else E=u(F[K]);N.type===m.ElementaryStreamTypes.VIDEO?C+=E/H:N.type===m.ElementaryStreamTypes.AUDIO&&(w+=E/H)}}if(C===0&&w===0){var V=s(A);if(V!=null&&V.references)return V.references.reduce(function(z,Y){return z+Y.info.duration||0},0)}return C||w}function u(A){var y=a(A,0),E=8;y&1&&(E+=4),y&4&&(E+=4);for(var C=0,w=a(A,4),b=0;b<w;b++){if(y&256){var I=a(A,E);C+=I,E+=4}y&512&&(E+=4),y&1024&&(E+=4),y&2048&&(E+=4)}return C}function h(A,y,E){e(y,["moof","traf"]).forEach(function(C){e(C,["tfhd"]).forEach(function(w){var b=a(w,4),I=A[b];if(!I)return;var _=I.timescale||9e4;e(C,["tfdt"]).forEach(function(L){var D=L.data[L.start],N=a(L,4);if(D===0)n(L,4,N-E*_);else{N*=Math.pow(2,32),N+=a(L,8),N-=E*_,N=Math.max(N,0);var R=Math.floor(N/(f+1)),B=Math.floor(N%(f+1));n(L,4,R),n(L,8,B)}})})})}function p(A){var y={valid:null,remainder:null},E=e(A,["moof"]);if(E){if(E.length<2)return y.remainder=A,y}else return y;var C=E[E.length-1];return y.valid=Object(S.sliceUint8)(A,0,C.start-8),y.remainder=Object(S.sliceUint8)(A,C.start-8),y}function g(A,y){var E=new Uint8Array(A.length+y.length);return E.set(A),E.set(y,A.length),E}},"./src/utils/output-filter.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"default",function(){return S});var S=function(){function m(c,o){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=c,this.trackName=o}var f=m.prototype;return f.dispatchCue=function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null},f.newCue=function(o,r,a){(this.startTime===null||this.startTime>o)&&(this.startTime=o),this.endTime=r,this.screen=a,this.timelineController.createCaptionsTrack(this.trackName)},f.reset=function(){this.cueRanges=[]},m}()},"./src/utils/texttrack-utils.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"sendAddTrackEvent",function(){return m}),v.d(T,"addCueToTrack",function(){return f}),v.d(T,"clearCurrentCues",function(){return c}),v.d(T,"removeCuesInRange",function(){return o}),v.d(T,"getCuesInRange",function(){return a});var S=v("./src/utils/logger.ts");function m(n,e){var s;try{s=new Event("addtrack")}catch(t){s=document.createEvent("Event"),s.initEvent("addtrack",!1,!1)}s.track=n,e.dispatchEvent(s)}function f(n,e){var s=n.mode;if(s==="disabled"&&(n.mode="hidden"),n.cues&&!n.cues.getCueById(e.id))try{if(n.addCue(e),!n.cues.getCueById(e.id))throw new Error("addCue is failed for: "+e)}catch(i){S.logger.debug("[texttrack-utils]: "+i);var t=new self.TextTrackCue(e.startTime,e.endTime,e.text);t.id=e.id,n.addCue(t)}s==="disabled"&&(n.mode=s)}function c(n){var e=n.mode;if(e==="disabled"&&(n.mode="hidden"),n.cues)for(var s=n.cues.length;s--;)n.removeCue(n.cues[s]);e==="disabled"&&(n.mode=e)}function o(n,e,s){var t=n.mode;if(t==="disabled"&&(n.mode="hidden"),n.cues&&n.cues.length>0)for(var i=a(n.cues,e,s),l=0;l<i.length;l++)n.removeCue(i[l]);t==="disabled"&&(n.mode=t)}function r(n,e){if(e<n[0].startTime)return 0;var s=n.length-1;if(e>n[s].endTime)return-1;for(var t=0,i=s;t<=i;){var l=Math.floor((i+t)/2);if(e<n[l].startTime)i=l-1;else if(e>n[l].startTime&&t<s)t=l+1;else return l}return n[t].startTime-e<e-n[i].startTime?t:i}function a(n,e,s){var t=[],i=r(n,e);if(i>-1)for(var l=i,u=n.length;l<u;l++){var h=n[l];if(h.startTime>=e&&h.endTime<=s)t.push(h);else if(h.startTime>s)return t}return t}},"./src/utils/time-ranges.ts":function(x,T,v){"use strict";v.r(T);var S={toString:function(f){for(var c="",o=f.length,r=0;r<o;r++)c+="["+f.start(r).toFixed(3)+","+f.end(r).toFixed(3)+"]";return c}};T.default=S},"./src/utils/timescale-conversion.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"toTimescaleFromBase",function(){return m}),v.d(T,"toTimescaleFromScale",function(){return f}),v.d(T,"toMsFromMpegTsClock",function(){return c}),v.d(T,"toMpegTsClockFromTimescale",function(){return o});var S=9e4;function m(r,a,n,e){n===void 0&&(n=1),e===void 0&&(e=!1);var s=r*a*n;return e?Math.round(s):s}function f(r,a,n,e){return n===void 0&&(n=1),e===void 0&&(e=!1),m(r,a,1/n,e)}function c(r,a){return a===void 0&&(a=!1),m(r,1e3,1/S,a)}function o(r,a){return a===void 0&&(a=1),m(r,S,1/a)}},"./src/utils/typed-array.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"sliceUint8",function(){return S});function S(m,f,c){return Uint8Array.prototype.slice?m.slice(f,c):new Uint8Array(Array.prototype.slice.call(m,f,c))}},"./src/utils/vttcue.ts":function(x,T,v){"use strict";v.r(T),T.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var S=["","lr","rl"],m=["start","middle","end","left","right"];function f(n,e){if(typeof e!="string")return!1;if(!Array.isArray(n))return!1;var s=e.toLowerCase();return~n.indexOf(s)?s:!1}function c(n){return f(S,n)}function o(n){return f(m,n)}function r(n){for(var e=arguments.length,s=new Array(e>1?e-1:0),t=1;t<e;t++)s[t-1]=arguments[t];for(var i=1;i<arguments.length;i++){var l=arguments[i];for(var u in l)n[u]=l[u]}return n}function a(n,e,s){var t=this,i={enumerable:!0};t.hasBeenReset=!1;var l="",u=!1,h=n,p=e,g=s,A=null,y="",E=!0,C="auto",w="start",b=50,I="middle",_=50,L="middle";Object.defineProperty(t,"id",r({},i,{get:function(){return l},set:function(N){l=""+N}})),Object.defineProperty(t,"pauseOnExit",r({},i,{get:function(){return u},set:function(N){u=!!N}})),Object.defineProperty(t,"startTime",r({},i,{get:function(){return h},set:function(N){if(typeof N!="number")throw new TypeError("Start time must be set to a number.");h=N,this.hasBeenReset=!0}})),Object.defineProperty(t,"endTime",r({},i,{get:function(){return p},set:function(N){if(typeof N!="number")throw new TypeError("End time must be set to a number.");p=N,this.hasBeenReset=!0}})),Object.defineProperty(t,"text",r({},i,{get:function(){return g},set:function(N){g=""+N,this.hasBeenReset=!0}})),Object.defineProperty(t,"region",r({},i,{get:function(){return A},set:function(N){A=N,this.hasBeenReset=!0}})),Object.defineProperty(t,"vertical",r({},i,{get:function(){return y},set:function(N){var R=c(N);if(R===!1)throw new SyntaxError("An invalid or illegal string was specified.");y=R,this.hasBeenReset=!0}})),Object.defineProperty(t,"snapToLines",r({},i,{get:function(){return E},set:function(N){E=!!N,this.hasBeenReset=!0}})),Object.defineProperty(t,"line",r({},i,{get:function(){return C},set:function(N){if(typeof N!="number"&&N!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");C=N,this.hasBeenReset=!0}})),Object.defineProperty(t,"lineAlign",r({},i,{get:function(){return w},set:function(N){var R=o(N);if(!R)throw new SyntaxError("An invalid or illegal string was specified.");w=R,this.hasBeenReset=!0}})),Object.defineProperty(t,"position",r({},i,{get:function(){return b},set:function(N){if(N<0||N>100)throw new Error("Position must be between 0 and 100.");b=N,this.hasBeenReset=!0}})),Object.defineProperty(t,"positionAlign",r({},i,{get:function(){return I},set:function(N){var R=o(N);if(!R)throw new SyntaxError("An invalid or illegal string was specified.");I=R,this.hasBeenReset=!0}})),Object.defineProperty(t,"size",r({},i,{get:function(){return _},set:function(N){if(N<0||N>100)throw new Error("Size must be between 0 and 100.");_=N,this.hasBeenReset=!0}})),Object.defineProperty(t,"align",r({},i,{get:function(){return L},set:function(N){var R=o(N);if(!R)throw new SyntaxError("An invalid or illegal string was specified.");L=R,this.hasBeenReset=!0}})),t.displayState=void 0}return a.prototype.getCueAsHTML=function(){var n=self.WebVTT;return n.convertCueToDOMTree(self,this.text)},a}()},"./src/utils/vttparser.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"parseTimeStamp",function(){return f}),v.d(T,"fixLineBreaks",function(){return e}),v.d(T,"VTTParser",function(){return s});var S=v("./src/utils/vttcue.ts"),m=function(){function t(){}var i=t.prototype;return i.decode=function(u,h){if(!u)return"";if(typeof u!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(u))},t}();function f(t){function i(u,h,p,g){return(u|0)*3600+(h|0)*60+(p|0)+parseFloat(g||0)}var l=t.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return l?parseFloat(l[2])>59?i(l[2],l[3],0,l[4]):i(l[1],l[2],l[3],l[4]):null}var c=function(){function t(){this.values=Object.create(null)}var i=t.prototype;return i.set=function(u,h){!this.get(u)&&h!==""&&(this.values[u]=h)},i.get=function(u,h,p){return p?this.has(u)?this.values[u]:h[p]:this.has(u)?this.values[u]:h},i.has=function(u){return u in this.values},i.alt=function(u,h,p){for(var g=0;g<p.length;++g)if(h===p[g]){this.set(u,h);break}},i.integer=function(u,h){/^-?\d+$/.test(h)&&this.set(u,parseInt(h,10))},i.percent=function(u,h){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(h)){var p=parseFloat(h);if(p>=0&&p<=100)return this.set(u,p),!0}return!1},t}();function o(t,i,l,u){var h=u?t.split(u):[t];for(var p in h){if(typeof h[p]!="string")continue;var g=h[p].split(l);if(g.length!==2)continue;var A=g[0],y=g[1];i(A,y)}}var r=new S.default(0,0,""),a=r.align==="middle"?"middle":"center";function n(t,i,l){var u=t;function h(){var A=f(t);if(A===null)throw new Error("Malformed timestamp: "+u);return t=t.replace(/^[^\sa-zA-Z-]+/,""),A}function p(A,y){var E=new c;o(A,function(b,I){var _;switch(b){case"region":for(var L=l.length-1;L>=0;L--)if(l[L].id===I){E.set(b,l[L].region);break}break;case"vertical":E.alt(b,I,["rl","lr"]);break;case"line":_=I.split(","),E.integer(b,_[0]),E.percent(b,_[0])&&E.set("snapToLines",!1),E.alt(b,_[0],["auto"]),_.length===2&&E.alt("lineAlign",_[1],["start",a,"end"]);break;case"position":_=I.split(","),E.percent(b,_[0]),_.length===2&&E.alt("positionAlign",_[1],["start",a,"end","line-left","line-right","auto"]);break;case"size":E.percent(b,I);break;case"align":E.alt(b,I,["start",a,"end","left","right"]);break}},/:/,/\s/),y.region=E.get("region",null),y.vertical=E.get("vertical","");var C=E.get("line","auto");C==="auto"&&r.line===-1&&(C=-1),y.line=C,y.lineAlign=E.get("lineAlign","start"),y.snapToLines=E.get("snapToLines",!0),y.size=E.get("size",100),y.align=E.get("align",a);var w=E.get("position","auto");w==="auto"&&r.position===50&&(w=y.align==="start"||y.align==="left"?0:y.align==="end"||y.align==="right"?100:50),y.position=w}function g(){t=t.replace(/^\s+/,"")}if(g(),i.startTime=h(),g(),t.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+u);t=t.substr(3),g(),i.endTime=h(),g(),p(t,i)}function e(t){return t.replace(/<br(?: \/)?>/gi,`
|
|
|
`)}var s=function(){function t(){this.state="INITIAL",this.buffer="",this.decoder=new m,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var i=t.prototype;return i.parse=function(u){var h=this;u&&(h.buffer+=h.decoder.decode(u,{stream:!0}));function p(){var w=h.buffer,b=0;for(w=e(w);b<w.length&&w[b]!=="\r"&&w[b]!==`
|
|
|
`;)++b;var I=w.substr(0,b);return w[b]==="\r"&&++b,w[b]===`
|
|
|
`&&++b,h.buffer=w.substr(b),I}function g(w){o(w,function(b,I){},/:/)}try{var A="";if(h.state==="INITIAL"){if(!/\r\n|\n/.test(h.buffer))return this;A=p();var y=A.match(/^()?WEBVTT([ \t].*)?$/);if(!y||!y[0])throw new Error("Malformed WebVTT signature.");h.state="HEADER"}for(var E=!1;h.buffer;){if(!/\r\n|\n/.test(h.buffer))return this;E?E=!1:A=p();switch(h.state){case"HEADER":/:/.test(A)?g(A):A||(h.state="ID");continue;case"NOTE":A||(h.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(A)){h.state="NOTE";break}if(!A)continue;if(h.cue=new S.default(0,0,""),h.state="CUE",A.indexOf("-->")===-1){h.cue.id=A;continue}case"CUE":if(!h.cue){h.state="BADCUE";continue}try{n(A,h.cue,h.regionList)}catch(w){h.cue=null,h.state="BADCUE";continue}h.state="CUETEXT";continue;case"CUETEXT":{var C=A.indexOf("-->")!==-1;if(!A||C&&(E=!0)){h.oncue&&h.cue&&h.oncue(h.cue),h.cue=null,h.state="ID";continue}if(h.cue===null)continue;h.cue.text&&(h.cue.text+=`
|
|
|
`),h.cue.text+=A}continue;case"BADCUE":A||(h.state="ID")}}}catch(w){h.state==="CUETEXT"&&h.cue&&h.oncue&&h.oncue(h.cue),h.cue=null,h.state=h.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},i.flush=function(){var u=this;try{if((u.cue||u.state==="HEADER")&&(u.buffer+=`
|
|
|
|
|
|
`,u.parse()),u.state==="INITIAL"||u.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(h){u.onparsingerror&&u.onparsingerror(h)}return u.onflush&&u.onflush(),this},t}()},"./src/utils/webvtt-parser.ts":function(x,T,v){"use strict";v.r(T),v.d(T,"generateCueId",function(){return s}),v.d(T,"parseWebVTT",function(){return i});var S=v("./src/polyfills/number.ts"),m=v("./src/utils/vttparser.ts"),f=v("./src/demux/id3.ts"),c=v("./src/utils/timescale-conversion.ts"),o=v("./src/remux/mp4-remuxer.ts"),r=/\r\n|\n\r|\n|\r/g,a=function(u,h,p){return p===void 0&&(p=0),u.substr(p,h.length)===h},n=function(u){var h=parseInt(u.substr(-3)),p=parseInt(u.substr(-6,2)),g=parseInt(u.substr(-9,2)),A=u.length>9?parseInt(u.substr(0,u.indexOf(":"))):0;if(!Object(S.isFiniteNumber)(h)||!Object(S.isFiniteNumber)(p)||!Object(S.isFiniteNumber)(g)||!Object(S.isFiniteNumber)(A))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+u);return h+=1e3*p,h+=60*1e3*g,h+=60*60*1e3*A,h},e=function(u){for(var h=5381,p=u.length;p;)h=h*33^u.charCodeAt(--p);return(h>>>0).toString()};function s(l,u,h){return e(l.toString())+e(u.toString())+e(h)}var t=function(u,h,p){var g=u[h],A=u[g.prevCC];if(!A||!A.new&&g.new){u.ccOffset=u.presentationOffset=g.start,g.new=!1;return}for(;(y=A)!==null&&y!==void 0&&y.new;){var y;u.ccOffset+=g.start-A.start,g.new=!1,g=A,A=u[g.prevCC]}u.presentationOffset=p};function i(l,u,h,p,g,A,y,E){var C=new m.VTTParser,w=Object(f.utf8ArrayToStr)(new Uint8Array(l)).trim().replace(r,`
|
|
|
`).split(`
|
|
|
`),b=[],I=Object(c.toMpegTsClockFromTimescale)(u,h),_="00:00.000",L=0,D=0,N,R=!0,B=!1;C.oncue=function(M){var H=p[g],F=p.ccOffset,K=(L-I)/9e4;if(H!=null&&H.new&&(D!==void 0?F=p.ccOffset=H.start:t(p,g,K)),K&&(F=K-p.presentationOffset),B){var j=M.endTime-M.startTime,V=Object(o.normalizePts)((M.startTime+F-D)*9e4,A*9e4)/9e4;M.startTime=V,M.endTime=V+j}var z=M.text.trim();M.text=decodeURIComponent(encodeURIComponent(z)),M.id||(M.id=s(M.startTime,M.endTime,z)),M.endTime>0&&b.push(M)},C.onparsingerror=function(M){N=M},C.onflush=function(){if(N){E(N);return}y(b)},w.forEach(function(M){if(R)if(a(M,"X-TIMESTAMP-MAP=")){R=!1,B=!0,M.substr(16).split(",").forEach(function(H){a(H,"LOCAL:")?_=H.substr(6):a(H,"MPEGTS:")&&(L=parseInt(H.substr(7)))});try{D=n(_)/1e3}catch(H){B=!1,N=H}return}else M===""&&(R=!1);C.parse(M+`
|
|
|
`)}),C.flush()}},"./src/utils/xhr-loader.ts":function(x,T,v){"use strict";v.r(T);var S=v("./src/utils/logger.ts"),m=v("./src/loader/load-stats.ts"),f=/^age:\s*[\d.]+\s*$/m,c=function(){function o(a){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=a?a.xhrSetup:null,this.stats=new m.LoadStats,this.retryDelay=0}var r=o.prototype;return r.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},r.abortInternal=function(){var n=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),n&&(n.onreadystatechange=null,n.onprogress=null,n.readyState!==4&&(this.stats.aborted=!0,n.abort()))},r.abort=function(){var n;this.abortInternal(),(n=this.callbacks)!==null&&n!==void 0&&n.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},r.load=function(n,e,s){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=n,this.config=e,this.callbacks=s,this.retryDelay=e.retryDelay,this.loadInternal()},r.loadInternal=function(){var n=this.config,e=this.context;if(!n)return;var s=this.loader=new self.XMLHttpRequest,t=this.stats;t.loading.first=0,t.loaded=0;var i=this.xhrSetup;try{if(i)try{i(s,e.url)}catch(h){s.open("GET",e.url,!0),i(s,e.url)}s.readyState||s.open("GET",e.url,!0);var l=this.context.headers;if(l)for(var u in l)s.setRequestHeader(u,l[u])}catch(h){this.callbacks.onError({code:s.status,text:h.message},e,s);return}e.rangeEnd&&s.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),s.onreadystatechange=this.readystatechange.bind(this),s.onprogress=this.loadprogress.bind(this),s.responseType=e.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),s.send()},r.readystatechange=function(){var n=this.context,e=this.loader,s=this.stats;if(!n||!e)return;var t=e.readyState,i=this.config;if(s.aborted)return;if(t>=2)if(self.clearTimeout(this.requestTimeout),s.loading.first===0&&(s.loading.first=Math.max(self.performance.now(),s.loading.start)),t===4){e.onreadystatechange=null,e.onprogress=null;var l=e.status;if(l>=200&&l<300){s.loading.end=Math.max(self.performance.now(),s.loading.first);var u,h;if(n.responseType==="arraybuffer"?(u=e.response,h=u.byteLength):(u=e.responseText,h=u.length),s.loaded=s.total=h,!this.callbacks)return;var p=this.callbacks.onProgress;if(p&&p(s,n,u,e),!this.callbacks)return;var g={url:e.responseURL,data:u};this.callbacks.onSuccess(g,s,n,e)}else s.retry>=i.maxRetry||l>=400&&l<499?(S.logger.error(l+" while loading "+n.url),this.callbacks.onError({code:l,text:e.statusText},n,e)):(S.logger.warn(l+" while loading "+n.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,i.maxRetryDelay),s.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.timeout)},r.loadtimeout=function(){S.logger.warn("timeout while loading "+this.context.url);var n=this.callbacks;n&&(this.abortInternal(),n.onTimeout(this.stats,this.context,this.loader))},r.loadprogress=function(n){var e=this.stats;e.loaded=n.loaded,n.lengthComputable&&(e.total=n.total)},r.getCacheAge=function(){var n=null;if(this.loader&&f.test(this.loader.getAllResponseHeaders())){var e=this.loader.getResponseHeader("age");n=e?parseFloat(e):null}return n},o}();T.default=c}}).default})},v56E:function(U,P,d){},v5uJ:function(U,P,d){var O=d("ProS"),x=d("2B6p"),T=x.updateCenterAndZoom;O.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(v,S){S.eachComponent({mainType:"series",subType:"tree",query:v},function(m){var f=v.dataIndex,c=m.getData().tree,o=c.getNodeByDataIndex(f);o.isExpand=!o.isExpand})}),O.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(v,S){S.eachComponent({mainType:"series",subType:"tree",query:v},function(m){var f=m.coordinateSystem,c=T(f,v);m.setCenter&&m.setCenter(c.center),m.setZoom&&m.setZoom(c.zoom)})})},"vF/C":function(U,P,d){var O=d("bLfw");O.registerSubTypeDefaulter("visualMap",function(x){return!x.categories&&(!(x.pieces?x.pieces.length>0:x.splitNumber>0)||x.calculable)?"continuous":"piecewise"})},vKoX:function(U,P,d){var O=d("SrGk"),x=d("bYtY");function T(m,f){O.call(this,m,f,["filter"],"__filter_in_use__","_shadowDom")}x.inherits(T,O),T.prototype.addWithoutUpdate=function(m,f){if(f&&v(f.style)){var c;if(f._shadowDom){c=f._shadowDom;var o=this.getDefs(!0);o.contains(f._shadowDom)||this.addDom(c)}else c=this.add(f);this.markUsed(f);var r=c.getAttribute("id");m.style.filter="url(#"+r+")"}},T.prototype.add=function(m){var f=this.createElement("filter");return m._shadowDomId=m._shadowDomId||this.nextId++,f.setAttribute("id","zr"+this._zrId+"-shadow-"+m._shadowDomId),this.updateDom(m,f),this.addDom(f),f},T.prototype.update=function(m,f){var c=f.style;if(v(c)){var o=this;O.prototype.update.call(this,f,function(){o.updateDom(f,f._shadowDom)})}else this.remove(m,f)},T.prototype.remove=function(m,f){f._shadowDomId!=null&&(this.removeDom(m),m.style.filter="")},T.prototype.updateDom=function(m,f){var c=f.getElementsByTagName("feDropShadow");c.length===0?c=this.createElement("feDropShadow"):c=c[0];var o=m.style,r=m.scale&&m.scale[0]||1,a=m.scale&&m.scale[1]||1,n,e,s,t;if(o.shadowBlur||o.shadowOffsetX||o.shadowOffsetY)n=o.shadowOffsetX||0,e=o.shadowOffsetY||0,s=o.shadowBlur,t=o.shadowColor;else if(o.textShadowBlur)n=o.textShadowOffsetX||0,e=o.textShadowOffsetY||0,s=o.textShadowBlur,t=o.textShadowColor;else{this.removeDom(f,o);return}c.setAttribute("dx",n/r),c.setAttribute("dy",e/a),c.setAttribute("flood-color",t);var i=s/2/r,l=s/2/a,u=i+" "+l;c.setAttribute("stdDeviation",u),f.setAttribute("x","-100%"),f.setAttribute("y","-100%"),f.setAttribute("width",Math.ceil(s/2*200)+"%"),f.setAttribute("height",Math.ceil(s/2*200)+"%"),f.appendChild(c),m._shadowDom=f},T.prototype.markUsed=function(m){m._shadowDom&&O.prototype.markUsed.call(this,m._shadowDom)};function v(m){return m&&(m.shadowBlur||m.shadowOffsetX||m.shadowOffsetY||m.textShadowBlur||m.textShadowOffsetX||m.textShadowOffsetY)}var S=T;U.exports=S},vL6D:function(U,P,d){var O=d("bYtY"),x=d("+rIm"),T=d("IwbS"),v=d("7bkD"),S=d("Znkb"),m=d("WN+l"),f=m.rectCoordAxisBuildSplitArea,c=m.rectCoordAxisHandleRemove,o=["axisLine","axisTickLabel","axisName"],r=["splitArea","splitLine"],a=S.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,s,t,i){var l=this.group;l.removeAll();var u=this._axisGroup;this._axisGroup=new T.Group;var h=v.layout(e),p=new x(e,h);O.each(o,p.add,p),l.add(this._axisGroup),l.add(p.getGroup()),O.each(r,function(g){e.get(g+".show")&&this["_"+g](e)},this),T.groupTransition(u,this._axisGroup,e),a.superCall(this,"render",e,s,t,i)},remove:function(){c(this)},_splitLine:function(e){var s=e.axis;if(s.scale.isBlank())return;var t=e.getModel("splitLine"),i=t.getModel("lineStyle"),l=i.get("width"),u=i.get("color");u=u instanceof Array?u:[u];for(var h=e.coordinateSystem.getRect(),p=s.isHorizontal(),g=[],A=0,y=s.getTicksCoords({tickModel:t}),E=[],C=[],w=0;w<y.length;++w){var b=s.toGlobalCoord(y[w].coord);p?(E[0]=b,E[1]=h.y,C[0]=b,C[1]=h.y+h.height):(E[0]=h.x,E[1]=b,C[0]=h.x+h.width,C[1]=b);var I=A++%u.length;g[I]=g[I]||[],g[I].push(new T.Line({subPixelOptimize:!0,shape:{x1:E[0],y1:E[1],x2:C[0],y2:C[1]},style:{lineWidth:l},silent:!0}))}for(var w=0;w<g.length;++w)this.group.add(T.mergePath(g[w],{style:{stroke:u[w%u.length],lineDash:i.getLineDash(l),lineWidth:l},silent:!0}))},_splitArea:function(e){f(this,this._axisGroup,e,e)}}),n=a;U.exports=n},vWvF:function(U,P,d){var O=d("Bq2U"),x=d("SUKs"),T=d("bYtY"),v=T.isString,S=T.isFunction,m=T.isObject,f=T.isArrayLike,c=T.indexOf,o=function(){this.animators=[]};o.prototype={constructor:o,animate:function(t,i){var l,u=!1,h=this,p=this.__zr;if(t){var g=t.split("."),A=h;u=g[0]==="shape";for(var y=0,E=g.length;y<E;y++){if(!A)continue;A=A[g[y]]}A&&(l=A)}else l=h;if(!l){x('Property "'+t+'" is not existed in element '+h.id);return}var C=h.animators,w=new O(l,i);return w.during(function(b){h.dirty(u)}).done(function(){C.splice(c(C,w),1)}),C.push(w),p&&p.animation.addAnimator(w),w},stopAnimation:function(t){for(var i=this.animators,l=i.length,u=0;u<l;u++)i[u].stop(t);return i.length=0,this},animateTo:function(t,i,l,u,h,p){r(this,t,i,l,u,h,p)},animateFrom:function(t,i,l,u,h,p){r(this,t,i,l,u,h,p,!0)}};function r(s,t,i,l,u,h,p,g){v(l)?(h=u,u=l,l=0):S(u)?(h=u,u="linear",l=0):S(l)?(h=l,l=0):S(i)?(h=i,i=500):i||(i=500),s.stopAnimation(),a(s,"",s,t,i,l,g);var A=s.animators.slice(),y=A.length;function E(){y--,y||h&&h()}y||h&&h();for(var C=0;C<A.length;C++)A[C].done(E).start(u,p)}function a(s,t,i,l,u,h,p){var g={},A=0;for(var y in l){if(!l.hasOwnProperty(y))continue;i[y]!=null?m(l[y])&&!f(l[y])?a(s,t?t+"."+y:y,i[y],l[y],u,h,p):(p?(g[y]=i[y],n(s,t,y,l[y])):g[y]=l[y],A++):l[y]!=null&&!p&&n(s,t,y,l[y])}A>0&&s.animate(t,!1).when(u==null?500:u,g).delay(h||0)}function n(s,t,i,l){if(!t)s.attr(i,l);else{var u={};u[t]={},u[t][i]=l,s.attr(u)}}var e=o;U.exports=e},vZ6x:function(U,P,d){var O=d("Tghj"),x=O.__DEV__,T=d("bYtY"),v=d("IwbS"),S=d("4NO4"),m=d("9KIM"),f=T.each,c=T.indexOf,o=T.curry,r=["dataToPoint","pointToData"],a=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function n(w,b,I){var _=this._targetInfoList=[],L={},D=t(b,w);f(i,function(N,R){(!I||!I.include||c(I.include,R)>=0)&&N(D,_,L)})}var e=n.prototype;e.setOutputRanges=function(w,b){this.matchOutputRanges(w,b,function(I,_,L){if((I.coordRanges||(I.coordRanges=[])).push(_),!I.coordRange){I.coordRange=_;var D=h[I.brushType](0,L,_);I.__rangeOffset={offset:g[I.brushType](D.values,I.range,[1,1]),xyMinMax:D.xyMinMax}}})},e.matchOutputRanges=function(w,b,I){f(w,function(_){var L=this.findTargetInfo(_,b);L&&L!==!0&&T.each(L.coordSyses,function(D){var N=h[_.brushType](1,D,_.range);I(_,N.values,D,b)})},this)},e.setInputRanges=function(w,b){f(w,function(I){var _=this.findTargetInfo(I,b);if(I.range=I.range||[],_&&_!==!0){I.panelId=_.panelId;var L=h[I.brushType](0,_.coordSys,I.coordRange),D=I.__rangeOffset;I.range=D?g[I.brushType](L.values,D.offset,y(L.xyMinMax,D.xyMinMax)):L.values}},this)},e.makePanelOpts=function(w,b){return T.map(this._targetInfoList,function(I){var _=I.getPanelRect();return{panelId:I.panelId,defaultBrushType:b&&b(I),clipPath:m.makeRectPanelClipPath(_),isTargetByCursor:m.makeRectIsTargetByCursor(_,w,I.coordSysModel),getLinearBrushOtherExtent:m.makeLinearBrushOtherExtent(_)}})},e.controlSeries=function(w,b,I){var _=this.findTargetInfo(w,I);return _===!0||_&&c(_.coordSyses,b.coordinateSystem)>=0},e.findTargetInfo=function(w,b){for(var I=this._targetInfoList,_=t(b,w),L=0;L<I.length;L++){var D=I[L],N=w.panelId;if(N){if(D.panelId===N)return D}else for(var L=0;L<l.length;L++)if(l[L](_,D))return D}return!0};function s(w){return w[0]>w[1]&&w.reverse(),w}function t(w,b){return S.parseFinder(w,b,{includeMainTypes:a})}var i={grid:function(w,b){var I=w.xAxisModels,_=w.yAxisModels,L=w.gridModels,D=T.createHashMap(),N={},R={};if(!I&&!_&&!L)return;f(I,function(B){var M=B.axis.grid.model;D.set(M.id,M),N[M.id]=!0}),f(_,function(B){var M=B.axis.grid.model;D.set(M.id,M),R[M.id]=!0}),f(L,function(B){D.set(B.id,B),N[B.id]=!0,R[B.id]=!0}),D.each(function(B){var M=B.coordinateSystem,H=[];f(M.getCartesians(),function(F,K){(c(I,F.getAxis("x").model)>=0||c(_,F.getAxis("y").model)>=0)&&H.push(F)}),b.push({panelId:"grid--"+B.id,gridModel:B,coordSysModel:B,coordSys:H[0],coordSyses:H,getPanelRect:u.grid,xAxisDeclared:N[B.id],yAxisDeclared:R[B.id]})})},geo:function(w,b){f(w.geoModels,function(I){var _=I.coordinateSystem;b.push({panelId:"geo--"+I.id,geoModel:I,coordSysModel:I,coordSys:_,coordSyses:[_],getPanelRect:u.geo})})}},l=[function(w,b){var I=w.xAxisModel,_=w.yAxisModel,L=w.gridModel;return!L&&I&&(L=I.axis.grid.model),!L&&_&&(L=_.axis.grid.model),L&&L===b.gridModel},function(w,b){var I=w.geoModel;return I&&I===b.geoModel}],u={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var w=this.coordSys,b=w.getBoundingRect().clone();return b.applyTransform(v.getTransform(w)),b}},h={lineX:o(p,0),lineY:o(p,1),rect:function(w,b,I){var _=b[r[w]]([I[0][0],I[1][0]]),L=b[r[w]]([I[0][1],I[1][1]]),D=[s([_[0],L[0]]),s([_[1],L[1]])];return{values:D,xyMinMax:D}},polygon:function(w,b,I){var _=[[Infinity,-Infinity],[Infinity,-Infinity]],L=T.map(I,function(D){var N=b[r[w]](D);return _[0][0]=Math.min(_[0][0],N[0]),_[1][0]=Math.min(_[1][0],N[1]),_[0][1]=Math.max(_[0][1],N[0]),_[1][1]=Math.max(_[1][1],N[1]),N});return{values:L,xyMinMax:_}}};function p(w,b,I,_){var L=I.getAxis(["x","y"][w]),D=s(T.map([0,1],function(R){return b?L.coordToData(L.toLocalCoord(_[R])):L.toGlobalCoord(L.dataToCoord(_[R]))})),N=[];return N[w]=D,N[1-w]=[NaN,NaN],{values:D,xyMinMax:N}}var g={lineX:o(A,0),lineY:o(A,1),rect:function(w,b,I){return[[w[0][0]-I[0]*b[0][0],w[0][1]-I[0]*b[0][1]],[w[1][0]-I[1]*b[1][0],w[1][1]-I[1]*b[1][1]]]},polygon:function(w,b,I){return T.map(w,function(_,L){return[_[0]-I[0]*b[L][0],_[1]-I[1]*b[L][1]]})}};function A(w,b,I,_){return[b[0]-_[w]*I[0],b[1]-_[w]*I[1]]}function y(w,b){var I=E(w),_=E(b),L=[I[0]/_[0],I[1]/_[1]];return isNaN(L[0])&&(L[0]=1),isNaN(L[1])&&(L[1]=1),L}function E(w){return w?[w[0][1]-w[0][0],w[1][1]-w[1][0]]:[NaN,NaN]}var C=n;U.exports=C},vZI5:function(U,P,d){var O=d("bYtY"),x=d("T4UG"),T=d("5GhG"),v=T.seriesModelMixin,S=x.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,clip:!0,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(f,c,o){var r=c.getItemLayout(f);return r&&o.rect(r.brushRect)}});O.mixin(S,v,!0);var m=S;U.exports=m},vafp:function(U,P,d){var O=d("bYtY"),x=d("8nly");function T(m){if(!m.UTF8Encoding)return m;var f=m.UTF8Scale;f==null&&(f=1024);for(var c=m.features,o=0;o<c.length;o++)for(var r=c[o],a=r.geometry,n=a.coordinates,e=a.encodeOffsets,s=0;s<n.length;s++){var t=n[s];if(a.type==="Polygon")n[s]=v(t,e[s],f);else if(a.type==="MultiPolygon")for(var i=0;i<t.length;i++){var l=t[i];t[i]=v(l,e[s][i],f)}}return m.UTF8Encoding=!1,m}function v(m,f,c){for(var o=[],r=f[0],a=f[1],n=0;n<m.length;n+=2){var e=m.charCodeAt(n)-64,s=m.charCodeAt(n+1)-64;e=e>>1^-(e&1),s=s>>1^-(s&1),e+=r,s+=a,r=e,a=s,o.push([e/c,s/c])}return o}function S(m,f){return T(m),O.map(O.filter(m.features,function(c){return c.geometry&&c.properties&&c.geometry.coordinates.length>0}),function(c){var o=c.properties,r=c.geometry,a=r.coordinates,n=[];r.type==="Polygon"&&n.push({type:"polygon",exterior:a[0],interiors:a.slice(1)}),r.type==="MultiPolygon"&&O.each(a,function(s){s[0]&&n.push({type:"polygon",exterior:s[0],interiors:s.slice(1)})});var e=new x(o[f||"name"],n,o.cp);return e.properties=o,e})}U.exports=S},vcCh:function(U,P,d){var O=d("ProS");d("0qV/"),O.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(x,T){T.eachComponent({mainType:"series",subType:"sankey",query:x},function(v){v.setNodePosition(x.dataIndex,[x.localX,x.localY])})})},vewr:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.getPointerEvent=O,P.stopEvent=x,P.setCapture=c,P.releaseCapture=o;function O(r){return r.changedTouches?r.changedTouches[0]:r.touches?r.touches[0]:r}function x(r){r.stopPropagation(),r.preventDefault()}var T=!1,v=null;document.captureElement=null;function S(r){if(T)return;var a=new r.constructor(r.type,r);T=!0,document.captureElement?document.captureElement.dispatchEvent(a):v.dispatchEvent(a),T=!1,r.stopPropagation(),a.defaultPrevented&&r.preventDefault(),r.type==="mouseup"&&o()}function m(){var r=document.getElementById("noVNC_mouse_capture_elem");r.style.cursor=window.getComputedStyle(document.captureElement).cursor}var f=new MutationObserver(m);function c(r){if(r.setCapture)r.setCapture(),document.captureElement=r,r.addEventListener("mouseup",o);else{o();var a=document.getElementById("noVNC_mouse_capture_elem");a===null&&(a=document.createElement("div"),a.id="noVNC_mouse_capture_elem",a.style.position="fixed",a.style.top="0px",a.style.left="0px",a.style.width="100%",a.style.height="100%",a.style.zIndex=1e4,a.style.display="none",document.body.appendChild(a),a.addEventListener("contextmenu",S),a.addEventListener("mousemove",S),a.addEventListener("mouseup",S)),document.captureElement=r,f.observe(r,{attributes:!0}),m(),a.style.display="",window.addEventListener("mousemove",S),window.addEventListener("mouseup",S)}}function o(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;v=document.captureElement,document.captureElement=null,f.disconnect();var r=document.getElementById("noVNC_mouse_capture_elem");r.style.display="none",window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",S)}}},vg9a:function(U,P,d){},"vk+C":function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("RZPm"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},w5pM:function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="PlusCircleOutlined";var f=P.a=x.forwardRef(m)},w6Tc:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("apAg"));function x(v){return v&&v.__esModule?v:{default:v}}var T=O;P.default=T,U.exports=T},w7YG:function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var x=O,T=x.lib,v=T.StreamCipher,S=x.algo,m=S.RC4=v.extend({_doReset:function(){for(var r=this._key,a=r.words,n=r.sigBytes,e=this._S=[],s=0;s<256;s++)e[s]=s;for(var s=0,t=0;s<256;s++){var i=s%n,l=a[i>>>2]>>>24-i%4*8&255;t=(t+e[s]+l)%256;var u=e[s];e[s]=e[t],e[t]=u}this._i=this._j=0},_doProcessBlock:function(r,a){r[a]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var o=this._S,r=this._i,a=this._j,n=0,e=0;e<4;e++){r=(r+1)%256,a=(a+o[r])%256;var s=o[r];o[r]=o[a],o[a]=s,n|=o[(o[r]+o[a])%256]<<24-e*8}return this._i=r,this._j=a,n}x.RC4=v._createHelper(m);var c=S.RC4Drop=m.extend({cfg:m.cfg.extend({drop:192}),_doReset:function(){m._doReset.call(this);for(var r=this.cfg.drop;r>0;r--)f.call(this)}});x.RC4Drop=v._createHelper(c)}(),O.RC4})},wCAj:function(U,P,d){"use strict";var O=d("cDf5"),x=d.n(O),T=d("lSNA"),v=d.n(T),S=d("J4zp"),m=d.n(S),f=d("pVnL"),c=d.n(f),o=d("q1tI"),r=d("TSYQ"),a=d.n(r),n=d("BGR+"),e=d("rePB"),s=d("VTBJ"),t=d("KQm4"),i=d("U8pU"),l=d("ODXe"),u=d("Gytx"),h=d.n(u),p=d("Kwbf"),g=d("1OyB"),A=d("vuIU"),y=d("Ji7U"),E=d("LK+K"),C=d("m+aA"),w=d("Zm9Q"),b=d("c+Xe"),I=d("bdgK"),_="rc-observer-key",L=function(St){Object(y.a)(fr,St);var cr=Object(E.a)(fr);function fr(){var Br;return Object(g.a)(this,fr),Br=cr.apply(this,arguments),Br.resizeObserver=null,Br.childNode=null,Br.currentElement=null,Br.state={width:0,height:0,offsetHeight:0,offsetWidth:0},Br.onResize=function($r){var wn=Br.props.onResize,rn=$r[0].target,On=rn.getBoundingClientRect(),In=On.width,Gn=On.height,fi=rn.offsetWidth,Yn=rn.offsetHeight,gi=Math.floor(In),vi=Math.floor(Gn);if(Br.state.width!==gi||Br.state.height!==vi||Br.state.offsetWidth!==fi||Br.state.offsetHeight!==Yn){var Di={width:gi,height:vi,offsetWidth:fi,offsetHeight:Yn};Br.setState(Di),wn&&Promise.resolve().then(function(){wn(Object(s.a)(Object(s.a)({},Di),{},{offsetWidth:fi,offsetHeight:Yn}))})}},Br.setChildNode=function($r){Br.childNode=$r},Br}return Object(A.a)(fr,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var $r=this.props.disabled;if($r){this.destroyObserver();return}var wn=Object(C.a)(this.childNode||this),rn=wn!==this.currentElement;rn&&(this.destroyObserver(),this.currentElement=wn),!this.resizeObserver&&wn&&(this.resizeObserver=new I.default(this.onResize),this.resizeObserver.observe(wn))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var $r=this.props.children,wn=Object(w.a)($r);if(wn.length>1)Object(p.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(wn.length===0)return Object(p.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var rn=wn[0];if(o.isValidElement(rn)&&Object(b.c)(rn)){var On=rn.ref;wn[0]=o.cloneElement(rn,{ref:Object(b.a)(On,this.setChildNode)})}return wn.length===1?wn[0]:wn.map(function(In,Gn){return!o.isValidElement(In)||"key"in In&&In.key!==null?In:o.cloneElement(In,{key:"".concat(_,"-").concat(Gn)})})}}]),fr}(o.Component);L.displayName="ResizeObserver";var D=L,N=d("qx4F");function R(St){return null}var B=R;function M(St){return null}var H=M,F=d("Ff2n"),K="RC_TABLE_KEY";function j(St){return St==null?[]:Array.isArray(St)?St:[St]}function V(St,cr){if(!cr&&typeof cr!="number")return St;for(var fr=j(cr),Br=St,$r=0;$r<fr.length;$r+=1){if(!Br)return null;var wn=fr[$r];Br=Br[wn]}return Br}function z(St){var cr=[],fr={};return St.forEach(function(Br){for(var $r=Br||{},wn=$r.key,rn=$r.dataIndex,On=wn||j(rn).join("-")||K;fr[On];)On="".concat(On,"_next");fr[On]=!0,cr.push(On)}),cr}function Y(){var St={};function cr(wn,rn){rn&&Object.keys(rn).forEach(function(On){var In=rn[On];In&&Object(i.a)(In)==="object"?(wn[On]=wn[On]||{},cr(wn[On],In)):wn[On]=In})}for(var fr=arguments.length,Br=new Array(fr),$r=0;$r<fr;$r++)Br[$r]=arguments[$r];return Br.forEach(function(wn){cr(St,wn)}),St}function ee(St){return St!=null}function fe(St){return St&&Object(i.a)(St)==="object"&&!Array.isArray(St)&&!o.isValidElement(St)}function ie(St){return typeof St=="string"?!0:Object(b.c)(St)}function we(St,cr){var fr,Br=St.prefixCls,$r=St.className,wn=St.record,rn=St.index,On=St.dataIndex,In=St.render,Gn=St.children,fi=St.component,Yn=fi===void 0?"td":fi,gi=St.colSpan,vi=St.rowSpan,Di=St.fixLeft,Mi=St.fixRight,xi=St.firstFixLeft,bi=St.lastFixLeft,Ci=St.firstFixRight,$i=St.lastFixRight,qi=St.appendNode,Ti=St.additionalProps,ia=Ti===void 0?{}:Ti,na=St.ellipsis,Ui=St.align,Ki=St.rowType,ra=St.isSticky,ea="".concat(Br,"-cell"),va,sa;if(Gn)sa=Gn;else{var Pa=V(wn,On);if(sa=Pa,In){var ka=In(Pa,wn,rn);fe(ka)?(sa=ka.children,va=ka.props):sa=ka}}Object(i.a)(sa)==="object"&&!Array.isArray(sa)&&!o.isValidElement(sa)&&(sa=null),na&&(bi||Ci)&&(sa=o.createElement("span",{className:"".concat(ea,"-content")},sa));var Ia=va||{},Ea=Ia.colSpan,So=Ia.rowSpan,Ga=Ia.style,Va=Ia.className,Ra=Object(F.a)(Ia,["colSpan","rowSpan","style","className"]),po=Ea!==void 0?Ea:gi,mo=So!==void 0?So:vi;if(po===0||mo===0)return null;var Aa={},Io=typeof Di=="number",go=typeof Mi=="number";Io&&(Aa.position="sticky",Aa.left=Di),go&&(Aa.position="sticky",Aa.right=Mi);var Qa={};Ui&&(Qa.textAlign=Ui);var wo,pa=na===!0?{showTitle:!0}:na;pa&&(pa.showTitle||Ki==="header")&&(typeof sa=="string"||typeof sa=="number"?wo=sa.toString():o.isValidElement(sa)&&typeof sa.props.children=="string"&&(wo=sa.props.children));var to=Object(s.a)(Object(s.a)(Object(s.a)({title:wo},Ra),ia),{},{colSpan:po&&po!==1?po:null,rowSpan:mo&&mo!==1?mo:null,className:a()(ea,$r,(fr={},Object(e.a)(fr,"".concat(ea,"-fix-left"),Io),Object(e.a)(fr,"".concat(ea,"-fix-left-first"),xi),Object(e.a)(fr,"".concat(ea,"-fix-left-last"),bi),Object(e.a)(fr,"".concat(ea,"-fix-right"),go),Object(e.a)(fr,"".concat(ea,"-fix-right-first"),Ci),Object(e.a)(fr,"".concat(ea,"-fix-right-last"),$i),Object(e.a)(fr,"".concat(ea,"-ellipsis"),na),Object(e.a)(fr,"".concat(ea,"-with-append"),qi),Object(e.a)(fr,"".concat(ea,"-fix-sticky"),(Io||go)&&ra),fr),ia.className,Va),style:Object(s.a)(Object(s.a)(Object(s.a)(Object(s.a)({},ia.style),Qa),Aa),Ga),ref:ie(Yn)?cr:null});return o.createElement(Yn,Object.assign({},to),qi,sa)}var Ce=o.forwardRef(we);Ce.displayName="Cell";var Le=o.memo(Ce,function(St,cr){return cr.shouldCellUpdate?!cr.shouldCellUpdate(cr.record,St.record):!1}),He=Le,ce=o.createContext(null),Pe=ce;function Q(St,cr,fr,Br,$r){var wn=fr[St]||{},rn=fr[cr]||{},On,In;wn.fixed==="left"?On=Br.left[St]:rn.fixed==="right"&&(In=Br.right[cr]);var Gn=!1,fi=!1,Yn=!1,gi=!1,vi=fr[cr+1],Di=fr[St-1];if($r==="rtl"){if(On!==void 0){var Mi=Di&&Di.fixed==="left";gi=!Mi}else if(In!==void 0){var xi=vi&&vi.fixed==="right";Yn=!xi}}else if(On!==void 0){var bi=vi&&vi.fixed==="left";Gn=!bi}else if(In!==void 0){var Ci=Di&&Di.fixed==="right";fi=!Ci}return{fixLeft:On,fixRight:In,lastFixLeft:Gn,firstFixRight:fi,lastFixRight:Yn,firstFixLeft:gi,isSticky:Br.isSticky}}function me(St){var cr=St.cells,fr=St.stickyOffsets,Br=St.flattenColumns,$r=St.rowComponent,wn=St.cellComponent,rn=St.onHeaderRow,On=St.index,In=o.useContext(Pe),Gn=In.prefixCls,fi=In.direction,Yn;rn&&(Yn=rn(cr.map(function(vi){return vi.column}),On));var gi=z(cr.map(function(vi){return vi.column}));return o.createElement($r,Object.assign({},Yn),cr.map(function(vi,Di){var Mi=vi.column,xi=Q(vi.colStart,vi.colEnd,Br,fr,fi),bi;return Mi&&Mi.onHeaderCell&&(bi=vi.column.onHeaderCell(Mi)),o.createElement(He,Object.assign({},vi,{ellipsis:Mi.ellipsis,align:Mi.align,component:wn,prefixCls:Gn,key:gi[Di]},xi,{additionalProps:bi,rowType:"header"}))}))}me.displayName="HeaderRow";var Je=me;function re(St){var cr=[];function fr(rn,On){var In=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;cr[In]=cr[In]||[];var Gn=On,fi=rn.filter(Boolean).map(function(Yn){var gi={key:Yn.key,className:Yn.className||"",children:Yn.title,column:Yn,colStart:Gn},vi=1,Di=Yn.children;return Di&&Di.length>0&&(vi=fr(Di,Gn,In+1).reduce(function(Mi,xi){return Mi+xi},0),gi.hasSubColumns=!0),"colSpan"in Yn&&(vi=Yn.colSpan),"rowSpan"in Yn&&(gi.rowSpan=Yn.rowSpan),gi.colSpan=vi,gi.colEnd=gi.colStart+vi-1,cr[In].push(gi),Gn+=vi,vi});return fi}fr(St,0);for(var Br=cr.length,$r=function(On){cr[On].forEach(function(In){!("rowSpan"in In)&&!In.hasSubColumns&&(In.rowSpan=Br-On)})},wn=0;wn<Br;wn+=1)$r(wn);return cr}function G(St){var cr=St.stickyOffsets,fr=St.columns,Br=St.flattenColumns,$r=St.onHeaderRow,wn=o.useContext(Pe),rn=wn.prefixCls,On=wn.getComponent,In=o.useMemo(function(){return re(fr)},[fr]),Gn=On(["header","wrapper"],"thead"),fi=On(["header","row"],"tr"),Yn=On(["header","cell"],"th");return o.createElement(Gn,{className:"".concat(rn,"-thead")},In.map(function(gi,vi){var Di=o.createElement(Je,{key:vi,flattenColumns:Br,cells:gi,stickyOffsets:cr,rowComponent:fi,cellComponent:Yn,onHeaderRow:$r,index:vi});return Di}))}var X=G,J="RC_TABLE_INTERNAL_COL_DEFINE";function Ae(St){var cr=St.expandable,fr=Object(F.a)(St,["expandable"]);return"expandable"in St?Object(s.a)(Object(s.a)({},fr),cr):fr}function he(St){return Object.keys(St).reduce(function(cr,fr){return(fr.substr(0,5)==="data-"||fr.substr(0,5)==="aria-")&&(cr[fr]=St[fr]),cr},{})}function Me(St){for(var cr=St.colWidths,fr=St.columns,Br=St.columCount,$r=[],wn=Br||fr.length,rn=!1,On=wn-1;On>=0;On-=1){var In=cr[On],Gn=fr&&fr[On],fi=Gn&&Gn[J];(In||fi||rn)&&($r.unshift(o.createElement("col",Object.assign({key:On,style:{width:In,minWidth:In}},fi))),rn=!0)}return o.createElement("colgroup",null,$r)}var Ie=Me;function oe(St,cr){return Object(o.useMemo)(function(){for(var fr=[],Br=0;Br<cr;Br+=1){var $r=St[Br];if($r!==void 0)fr[Br]=$r;else return null}return fr},[St.join("_"),cr])}var pe=o.forwardRef(function(St,cr){var fr=St.noData,Br=St.columns,$r=St.flattenColumns,wn=St.colWidths,rn=St.columCount,On=St.stickyOffsets,In=St.direction,Gn=St.fixHeader,fi=St.offsetHeader,Yn=St.stickyClassName,gi=St.onScroll,vi=Object(F.a)(St,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),Di=o.useContext(Pe),Mi=Di.prefixCls,xi=Di.scrollbarSize,bi=Di.isSticky,Ci=bi&&!Gn?0:xi,$i=o.useRef(null),qi=o.useCallback(function(ea){Object(b.b)(cr,ea),Object(b.b)($i,ea)},[]);o.useEffect(function(){var ea;function va(sa){var Pa=sa.currentTarget,ka=sa.deltaX;ka&&(gi({currentTarget:Pa,scrollLeft:Pa.scrollLeft+ka}),sa.preventDefault())}return(ea=$i.current)===null||ea===void 0||ea.addEventListener("wheel",va),function(){var sa;(sa=$i.current)===null||sa===void 0||sa.removeEventListener("wheel",va)}},[]);var Ti=$r[$r.length-1],ia={fixed:Ti?Ti.fixed:null,onHeaderCell:function(){return{className:"".concat(Mi,"-cell-scrollbar")}}},na=Object(o.useMemo)(function(){return Ci?[].concat(Object(t.a)(Br),[ia]):Br},[Ci,Br]),Ui=Object(o.useMemo)(function(){return Ci?[].concat(Object(t.a)($r),[ia]):$r},[Ci,$r]),Ki=Object(o.useMemo)(function(){var ea=On.right,va=On.left;return Object(s.a)(Object(s.a)({},On),{},{left:In==="rtl"?[].concat(Object(t.a)(va.map(function(sa){return sa+Ci})),[0]):va,right:In==="rtl"?ea:[].concat(Object(t.a)(ea.map(function(sa){return sa+Ci})),[0]),isSticky:bi})},[Ci,On,bi]),ra=oe(wn,rn);return o.createElement("div",{style:Object(s.a)({overflow:"hidden"},bi?{top:fi}:{}),ref:qi,className:a()("".concat(Mi,"-header"),Object(e.a)({},Yn,!!Yn))},o.createElement("table",{style:{tableLayout:"fixed",visibility:fr||ra?null:"hidden"}},o.createElement(Ie,{colWidths:ra?[].concat(Object(t.a)(ra),[Ci]):[],columCount:rn+1,columns:Ui}),o.createElement(X,Object.assign({},vi,{stickyOffsets:Ki,columns:na,flattenColumns:Ui}))))});pe.displayName="FixedHeader";var Oe=pe,Ye=o.createContext(null),it=Ye;function et(St){var cr=St.prefixCls,fr=St.children,Br=St.component,$r=St.cellComponent,wn=St.fixHeader,rn=St.fixColumn,On=St.horizonScroll,In=St.className,Gn=St.expanded,fi=St.componentWidth,Yn=St.colSpan,gi=o.useContext(Pe),vi=gi.scrollbarSize;return o.useMemo(function(){var Di=fr;return rn&&(Di=o.createElement("div",{style:{width:fi-(wn?vi:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(cr,"-expanded-row-fixed")},Di)),o.createElement(Br,{className:In,style:{display:Gn?null:"none"}},o.createElement(He,{component:$r,prefixCls:cr,colSpan:Yn},Di))},[fr,Br,wn,On,In,Gn,fi,Yn,vi])}var Te=et;function tt(St){var cr=St.className,fr=St.style,Br=St.record,$r=St.index,wn=St.rowKey,rn=St.getRowKey,On=St.rowExpandable,In=St.expandedKeys,Gn=St.onRow,fi=St.indent,Yn=fi===void 0?0:fi,gi=St.rowComponent,vi=St.cellComponent,Di=St.childrenColumnName,Mi=o.useContext(Pe),xi=Mi.prefixCls,bi=Mi.fixedInfoList,Ci=o.useContext(it),$i=Ci.fixHeader,qi=Ci.fixColumn,Ti=Ci.horizonScroll,ia=Ci.componentWidth,na=Ci.flattenColumns,Ui=Ci.expandableType,Ki=Ci.expandRowByClick,ra=Ci.onTriggerExpand,ea=Ci.rowClassName,va=Ci.expandedRowClassName,sa=Ci.indentSize,Pa=Ci.expandIcon,ka=Ci.expandedRowRender,Ia=Ci.expandIconColumnIndex,Ea=o.useState(!1),So=Object(l.a)(Ea,2),Ga=So[0],Va=So[1],Ra=In&&In.has(St.recordKey);o.useEffect(function(){Ra&&Va(!0)},[Ra]);var po=Ui==="row"&&(!On||On(Br)),mo=Ui==="nest",Aa=Di&&Br&&Br[Di],Io=po||mo,go;Gn&&(go=Gn(Br,$r));var Qa=function(za){if(Ki&&Io&&ra(Br,za),go&&go.onClick){for(var ja,da=arguments.length,rt=new Array(da>1?da-1:0),ar=1;ar<da;ar++)rt[ar-1]=arguments[ar];(ja=go).onClick.apply(ja,[za].concat(rt))}},wo;typeof ea=="string"?wo=ea:typeof ea=="function"&&(wo=ea(Br,$r,Yn));var pa=z(na),to=o.createElement(gi,Object.assign({},go,{"data-row-key":wn,className:a()(cr,"".concat(xi,"-row"),"".concat(xi,"-row-level-").concat(Yn),wo,go&&go.className),style:Object(s.a)(Object(s.a)({},fr),go?go.style:null),onClick:Qa}),na.map(function(Ao,za){var ja=Ao.render,da=Ao.dataIndex,rt=Ao.className,ar=pa[za],Fr=bi[za],Ir;za===(Ia||0)&&mo&&(Ir=o.createElement(o.Fragment,null,o.createElement("span",{style:{paddingLeft:"".concat(sa*Yn,"px")},className:"".concat(xi,"-row-indent indent-level-").concat(Yn)}),Pa({prefixCls:xi,expanded:Ra,expandable:Aa,record:Br,onExpand:ra})));var En;return Ao.onCell&&(En=Ao.onCell(Br,$r)),o.createElement(He,Object.assign({className:rt,ellipsis:Ao.ellipsis,align:Ao.align,component:vi,prefixCls:xi,key:ar,record:Br,index:$r,dataIndex:da,render:ja,shouldCellUpdate:Ao.shouldCellUpdate},Fr,{appendNode:Ir,additionalProps:En}))})),ao;if(po&&(Ga||Ra)){var Bo=ka(Br,$r,Yn+1,Ra),Ja=va&&va(Br,$r,Yn);ao=o.createElement(Te,{expanded:Ra,className:a()("".concat(xi,"-expanded-row"),"".concat(xi,"-expanded-row-level-").concat(Yn+1),Ja),prefixCls:xi,fixHeader:$i,fixColumn:qi,horizonScroll:Ti,component:gi,componentWidth:ia,cellComponent:vi,colSpan:na.length},Bo)}var _o;return Aa&&Ra&&(_o=(Br[Di]||[]).map(function(Ao,za){var ja=rn(Ao,za);return o.createElement(tt,Object.assign({},St,{key:ja,rowKey:ja,record:Ao,recordKey:ja,index:za,indent:Yn+1}))})),o.createElement(o.Fragment,null,to,ao,_o)}tt.displayName="BodyRow";var ze=tt,dt=o.createContext(null),Ot=dt;function Tt(St){var cr=St.columnKey,fr=St.onColumnResize,Br=o.useRef();return o.useEffect(function(){Br.current&&fr(cr,Br.current.offsetWidth)},[]),o.createElement(D,{onResize:function(wn){var rn=wn.offsetWidth;fr(cr,rn)}},o.createElement("td",{ref:Br,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Ct(St){var cr=St.data,fr=St.getRowKey,Br=St.measureColumnWidth,$r=St.expandedKeys,wn=St.onRow,rn=St.rowExpandable,On=St.emptyNode,In=St.childrenColumnName,Gn=o.useContext(Ot),fi=Gn.onColumnResize,Yn=o.useContext(Pe),gi=Yn.prefixCls,vi=Yn.getComponent,Di=o.useContext(it),Mi=Di.fixHeader,xi=Di.horizonScroll,bi=Di.flattenColumns,Ci=Di.componentWidth;return o.useMemo(function(){var $i=vi(["body","wrapper"],"tbody"),qi=vi(["body","row"],"tr"),Ti=vi(["body","cell"],"td"),ia;cr.length?ia=cr.map(function(Ui,Ki){var ra=fr(Ui,Ki);return o.createElement(ze,{key:ra,rowKey:ra,record:Ui,recordKey:ra,index:Ki,rowComponent:qi,cellComponent:Ti,expandedKeys:$r,onRow:wn,getRowKey:fr,rowExpandable:rn,childrenColumnName:In})}):ia=o.createElement(Te,{expanded:!0,className:"".concat(gi,"-placeholder"),prefixCls:gi,fixHeader:Mi,fixColumn:xi,horizonScroll:xi,component:qi,componentWidth:Ci,cellComponent:Ti,colSpan:bi.length},On);var na=z(bi);return o.createElement($i,{className:"".concat(gi,"-tbody")},Br&&o.createElement("tr",{"aria-hidden":"true",className:"".concat(gi,"-measure-row"),style:{height:0}},na.map(function(Ui){return o.createElement(Tt,{key:Ui,columnKey:Ui,onColumnResize:fi})})),ia)},[cr,gi,wn,Br,$r,fr,vi,Ci,On,bi])}var Nt=o.memo(Ct);Nt.displayName="Body";var Be=Nt;function $(St){return Object(w.a)(St).filter(function(cr){return o.isValidElement(cr)}).map(function(cr){var fr=cr.key,Br=cr.props,$r=Br.children,wn=Object(F.a)(Br,["children"]),rn=Object(s.a)({key:fr},wn);return $r&&(rn.children=$($r)),rn})}function Z(St){return St.reduce(function(cr,fr){var Br=fr.fixed,$r=Br===!0?"left":Br,wn=fr.children;return wn&&wn.length>0?[].concat(Object(t.a)(cr),Object(t.a)(Z(wn).map(function(rn){return Object(s.a)({fixed:$r},rn)}))):[].concat(Object(t.a)(cr),[Object(s.a)(Object(s.a)({},fr),{},{fixed:$r})])},[])}function Re(St){for(var cr=!0,fr=0;fr<St.length;fr+=1){var Br=St[fr];if(cr&&Br.fixed!=="left")cr=!1;else if(!cr&&Br.fixed==="left"){Object(p.a)(!1,"Index ".concat(fr-1," of `columns` missing `fixed='left'` prop."));break}}for(var $r=!0,wn=St.length-1;wn>=0;wn-=1){var rn=St[wn];if($r&&rn.fixed!=="right")$r=!1;else if(!$r&&rn.fixed==="right"){Object(p.a)(!1,"Index ".concat(wn+1," of `columns` missing `fixed='right'` prop."));break}}}function De(St){return St.map(function(cr){var fr=cr.fixed,Br=Object(F.a)(cr,["fixed"]),$r=fr;return fr==="left"?$r="right":fr==="right"&&($r="left"),Object(s.a)({fixed:$r},Br)})}function ae(St,cr){var fr=St.prefixCls,Br=St.columns,$r=St.children,wn=St.expandable,rn=St.expandedKeys,On=St.getRowKey,In=St.onTriggerExpand,Gn=St.expandIcon,fi=St.rowExpandable,Yn=St.expandIconColumnIndex,gi=St.direction,vi=St.expandRowByClick,Di=o.useMemo(function(){return Br||$($r)},[Br,$r]),Mi=o.useMemo(function(){if(wn){var Ci,$i=Yn||0,qi=Di[$i],Ti=(Ci={},Object(e.a)(Ci,J,{className:"".concat(fr,"-expand-icon-col")}),Object(e.a)(Ci,"title",""),Object(e.a)(Ci,"fixed",qi?qi.fixed:null),Object(e.a)(Ci,"className","".concat(fr,"-row-expand-icon-cell")),Object(e.a)(Ci,"render",function(Ui,Ki,ra){var ea=On(Ki,ra),va=rn.has(ea),sa=fi?fi(Ki):!0,Pa=Gn({prefixCls:fr,expanded:va,expandable:sa,record:Ki,onExpand:In});return vi?o.createElement("span",{onClick:function(Ia){return Ia.stopPropagation()}},Pa):Pa}),Ci),ia=Di.slice();return $i>=0&&ia.splice($i,0,Ti),ia}return Di},[wn,Di,On,rn,Gn,gi]),xi=o.useMemo(function(){var Ci=Mi;return cr&&(Ci=cr(Ci)),Ci.length||(Ci=[{render:function(){return null}}]),Ci},[cr,Mi,gi]),bi=o.useMemo(function(){return gi==="rtl"?De(Z(xi)):Z(xi)},[xi,gi]);return[xi,bi]}var gt=ae,jt=d("xEkU"),ut=d.n(jt);function rr(St){var cr=Object(o.useRef)(St),fr=Object(o.useState)({}),Br=Object(l.a)(fr,2),$r=Br[1],wn=Object(o.useRef)(null),rn=Object(o.useRef)([]);function On(In){wn.current===null&&(rn.current=[],wn.current=ut()(function(){rn.current.forEach(function(Gn){cr.current=Gn(cr.current)}),wn.current=null,$r({})})),rn.current.push(In)}return Object(o.useEffect)(function(){return function(){ut.a.cancel(wn.current)}},[]),[cr.current,On]}function pr(St){var cr=Object(o.useRef)(St),fr=Object(o.useRef)(null);function Br(){window.clearTimeout(fr.current)}function $r(rn){cr.current=rn,Br(),fr.current=window.setTimeout(function(){cr.current=null,fr.current=null},100)}function wn(){return cr.current}return Object(o.useEffect)(function(){return Br},[]),[$r,wn]}function nn(St,cr,fr){var Br=Object(o.useMemo)(function(){for(var $r=[],wn=[],rn=0,On=0,In=0;In<cr;In+=1)if(fr==="rtl"){wn[In]=On,On+=St[In]||0;var Gn=cr-In-1;$r[Gn]=rn,rn+=St[Gn]||0}else{$r[In]=rn,rn+=St[In]||0;var fi=cr-In-1;wn[fi]=On,On+=St[fi]||0}return{left:$r,right:wn}},[St,cr,fr]);return Br}var mr=nn;function vr(St){var cr=St.className,fr=St.children;return o.createElement("div",{className:cr},fr)}var $t=vr;function Xt(St){var cr=St.className,fr=St.index,Br=St.children,$r=St.colSpan,wn=St.rowSpan,rn=o.useContext(Pe),On=rn.prefixCls,In=rn.fixedInfoList,Gn=In[fr];return o.createElement(He,Object.assign({className:cr,index:fr,component:"td",prefixCls:On,record:null,dataIndex:null,render:function(){return{children:Br,props:{colSpan:$r,rowSpan:wn}}}},Gn))}function ft(St){return o.createElement("tr",Object.assign({},St))}function Ur(St){var cr=St.children,fr=o.useContext(Pe),Br=fr.prefixCls;return o.createElement("tfoot",{className:"".concat(Br,"-summary")},cr)}var yn=Ur,Dn={Cell:Xt,Row:ft};function Un(St){var cr,fr=St.prefixCls,Br=St.record,$r=St.onExpand,wn=St.expanded,rn=St.expandable,On="".concat(fr,"-row-expand-icon");if(!rn)return o.createElement("span",{className:a()(On,"".concat(fr,"-row-spaced"))});var In=function(fi){$r(Br,fi),fi.stopPropagation()};return o.createElement("span",{className:a()(On,(cr={},Object(e.a)(cr,"".concat(fr,"-row-expanded"),wn),Object(e.a)(cr,"".concat(fr,"-row-collapsed"),!wn),cr)),onClick:In})}function wi(St,cr,fr){var Br=[];function $r(wn){(wn||[]).forEach(function(rn,On){Br.push(cr(rn,On)),$r(rn[fr])})}return $r(St),Br}var Rn=d("zT1h"),kn=d("y0+3"),Vn=function(cr,fr){var Br,$r,wn=cr.scrollBodyRef,rn=cr.onScroll,On=cr.offsetScroll,In=o.useContext(Pe),Gn=In.prefixCls,fi=((Br=wn.current)===null||Br===void 0?void 0:Br.scrollWidth)||0,Yn=(($r=wn.current)===null||$r===void 0?void 0:$r.clientWidth)||0,gi=fi&&Yn*(Yn/fi),vi=o.useRef(),Di=rr({scrollLeft:0,isHiddenScrollBar:!1}),Mi=Object(l.a)(Di,2),xi=Mi[0],bi=Mi[1],Ci=o.useRef({delta:0,x:0}),$i=o.useState(!1),qi=Object(l.a)($i,2),Ti=qi[0],ia=qi[1],na=function(){ia(!1)},Ui=function(sa){sa.persist(),Ci.current.delta=sa.pageX-xi.scrollLeft,Ci.current.x=0,ia(!0),sa.preventDefault()},Ki=function(sa){var Pa,ka=sa||((Pa=window)===null||Pa===void 0?void 0:Pa.event),Ia=ka.buttons;if(!Ti||Ia===0){Ti&&ia(!1);return}var Ea=Ci.current.x+sa.pageX-Ci.current.x-Ci.current.delta;Ea<=0&&(Ea=0),Ea+gi>=Yn&&(Ea=Yn-gi),rn({scrollLeft:Ea/Yn*(fi+2)}),Ci.current.x=sa.pageX},ra=function(){var sa=Object(kn.b)(wn.current).top,Pa=sa+wn.current.offsetHeight,ka=document.documentElement.scrollTop+window.innerHeight;Pa-Object(N.a)()<=ka||sa>=ka-On?bi(function(Ia){return Object(s.a)(Object(s.a)({},Ia),{},{isHiddenScrollBar:!0})}):bi(function(Ia){return Object(s.a)(Object(s.a)({},Ia),{},{isHiddenScrollBar:!1})})},ea=function(sa){bi(function(Pa){return Object(s.a)(Object(s.a)({},Pa),{},{scrollLeft:sa/fi*Yn||0})})};return o.useImperativeHandle(fr,function(){return{setScrollLeft:ea}}),o.useEffect(function(){var va=Object(Rn.a)(document.body,"mouseup",na,!1),sa=Object(Rn.a)(document.body,"mousemove",Ki,!1);return ra(),function(){va.remove(),sa.remove()}},[gi,Ti]),o.useEffect(function(){var va=Object(Rn.a)(window,"scroll",ra,!1),sa=Object(Rn.a)(window,"resize",ra,!1);return function(){va.remove(),sa.remove()}},[]),o.useEffect(function(){xi.isHiddenScrollBar||bi(function(va){var sa,Pa;return Object(s.a)(Object(s.a)({},va),{},{scrollLeft:wn.current.scrollLeft/((sa=wn.current)===null||sa===void 0?void 0:sa.scrollWidth)*((Pa=wn.current)===null||Pa===void 0?void 0:Pa.clientWidth)})})},[xi.isHiddenScrollBar]),fi<=Yn||!gi||xi.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(N.a)(),width:Yn,bottom:On},className:"".concat(Gn,"-sticky-scroll")},o.createElement("div",{onMouseDown:Ui,ref:vi,className:a()("".concat(Gn,"-sticky-scroll-bar"),Object(e.a)({},"".concat(Gn,"-sticky-scroll-bar-active"),Ti)),style:{width:"".concat(gi,"px"),transform:"translate3d(".concat(xi.scrollLeft,"px, 0, 0)")}}))},Gt=o.forwardRef(Vn);function st(St,cr){return o.useMemo(function(){var fr=!!St;return{isSticky:fr,stickyClassName:fr?"".concat(cr,"-sticky-header"):"",offsetHeader:Object(i.a)(St)==="object"&&St.offsetHeader||0,offsetScroll:Object(i.a)(St)==="object"&&St.offsetScroll||0}},[St,cr])}var ue=[],Ee={},je="rc-table-internal-hook",Ve=o.memo(function(St){var cr=St.children;return cr},function(St,cr){return h()(St.props,cr.props)?St.pingLeft!==cr.pingLeft||St.pingRight!==cr.pingRight:!1});function $e(St){var cr,fr=St.prefixCls,Br=St.className,$r=St.rowClassName,wn=St.style,rn=St.data,On=St.rowKey,In=St.scroll,Gn=St.tableLayout,fi=St.direction,Yn=St.title,gi=St.footer,vi=St.summary,Di=St.id,Mi=St.showHeader,xi=St.components,bi=St.emptyText,Ci=St.onRow,$i=St.onHeaderRow,qi=St.internalHooks,Ti=St.transformColumns,ia=St.internalRefs,na=St.sticky,Ui=rn||ue,Ki=!!Ui.length,ra=o.useState(0),ea=Object(l.a)(ra,2),va=ea[0],sa=ea[1];o.useEffect(function(){sa(Object(N.a)())});var Pa=o.useMemo(function(){return Y(xi,{})},[xi]),ka=o.useCallback(function(yo,no){return V(Pa,yo)||no},[Pa]),Ia=o.useMemo(function(){return typeof On=="function"?On:function(yo){var no=yo&&yo[On];return no}},[On]),Ea=Ae(St),So=Ea.expandIcon,Ga=Ea.expandedRowKeys,Va=Ea.defaultExpandedRowKeys,Ra=Ea.defaultExpandAllRows,po=Ea.expandedRowRender,mo=Ea.onExpand,Aa=Ea.onExpandedRowsChange,Io=Ea.expandRowByClick,go=Ea.rowExpandable,Qa=Ea.expandIconColumnIndex,wo=Ea.expandedRowClassName,pa=Ea.childrenColumnName,to=Ea.indentSize,ao=So||Un,Bo=pa||"children",Ja=o.useMemo(function(){return po?"row":St.expandable&&qi===je&&St.expandable.__PARENT_RENDER_ICON__||Ui.some(function(yo){return yo&&Object(i.a)(yo)==="object"&&yo[Bo]})?"nest":!1},[!!po,Ui]),_o=o.useState(function(){return Va||(Ra?wi(Ui,Ia,Bo):[])}),Ao=Object(l.a)(_o,2),za=Ao[0],ja=Ao[1],da=o.useMemo(function(){return new Set(Ga||za||[])},[Ga,za]),rt=o.useCallback(function(yo){var no=Ia(yo,Ui.indexOf(yo)),Jo,Go=da.has(no);Go?(da.delete(no),Jo=Object(t.a)(da)):Jo=[].concat(Object(t.a)(da),[no]),ja(Jo),mo&&mo(!Go,yo),Aa&&Aa(Jo)},[Ia,da,Ui,mo,Aa]),ar=o.useState(0),Fr=Object(l.a)(ar,2),Ir=Fr[0],En=Fr[1],zr=gt(Object(s.a)(Object(s.a)(Object(s.a)({},St),Ea),{},{expandable:!!po,expandedKeys:da,getRowKey:Ia,onTriggerExpand:rt,expandIcon:ao,expandIconColumnIndex:Qa,direction:fi}),qi===je?Ti:null),yr=Object(l.a)(zr,2),Cn=yr[0],Pr=yr[1],xn=o.useMemo(function(){return{columns:Cn,flattenColumns:Pr}},[Cn,Pr]),Qn=o.useRef(),$n=o.useRef(),Kn=o.useRef(),si=o.useState(!1),Xn=Object(l.a)(si,2),ti=Xn[0],di=Xn[1],Bi=o.useState(!1),yi=Object(l.a)(Bi,2),Xi=yi[0],ba=yi[1],ta=rr(new Map),Qi=Object(l.a)(ta,2),aa=Qi[0],fa=Qi[1],xo=z(Pr),Za=xo.map(function(yo){return aa.get(yo)}),Wi=o.useMemo(function(){return Za},[Za.join("_")]),Gi=mr(Wi,Pr.length,fi),ca=In&&ee(In.y),ya=In&&ee(In.x),Xa=ya&&Pr.some(function(yo){var no=yo.fixed;return no}),_a=o.useRef(),qa=st(na,fr),ro=qa.isSticky,Uo=qa.offsetHeader,zo=qa.offsetScroll,hs=qa.stickyClassName,Po,Mo,Fa;ca&&(Mo={overflowY:"scroll",maxHeight:In.y}),ya&&(Po={overflowX:"auto"},ca||(Mo={overflowY:"hidden"}),Fa={width:In.x===!0?"auto":In.x,minWidth:"100%"});var $a=o.useCallback(function(yo,no){fa(function(Jo){var Go=new Map(Jo);return Go.set(yo,no),Go})},[]),Ca=pr(null),Eo=Object(l.a)(Ca,2),qo=Eo[0],vo=Eo[1];function rs(yo,no){if(!no)return;typeof no=="function"?no(yo):no.scrollLeft!==yo&&(no.scrollLeft=yo)}var ho=function(no){var Jo=no.currentTarget,Go=no.scrollLeft,xt=typeof Go=="number"?Go:Jo.scrollLeft,Ft=Jo||Ee;if(!vo()||vo()===Ft){var An;qo(Ft),rs(xt,$n.current),rs(xt,Kn.current),rs(xt,(An=_a.current)===null||An===void 0?void 0:An.setScrollLeft)}if(Jo){var Hn=Jo.scrollWidth,hi=Jo.clientWidth;di(xt>0),ba(xt<Hn-hi)}},No=function(){Kn.current&&ho({currentTarget:Kn.current})},us=function(no){var Jo=no.width;No(),En(Qn.current?Qn.current.offsetWidth:Jo)};o.useEffect(function(){return No},[]),o.useEffect(function(){ya&&No()},[ya]),o.useEffect(function(){qi===je&&ia&&(ia.body.current=Kn.current)});var jo=ka(["table"],"table"),Qo=o.useMemo(function(){return Gn||(Xa?In.x==="max-content"?"auto":"fixed":ca||Pr.some(function(yo){var no=yo.ellipsis;return no})?"fixed":"auto")},[ca,Xa,Pr,Gn]),on,Fi={colWidths:Wi,columCount:Pr.length,stickyOffsets:Gi,onHeaderRow:$i,fixHeader:ca},Bs=o.useMemo(function(){return Ki?null:typeof bi=="function"?bi():bi},[Ki,bi]),ws=o.createElement(Be,{data:Ui,measureColumnWidth:ca||ya||ro,expandedKeys:da,rowExpandable:go,getRowKey:Ia,onRow:Ci,emptyNode:Bs,childrenColumnName:Bo}),cs=o.createElement(Ie,{colWidths:Pr.map(function(yo){var no=yo.width;return no}),columns:Pr}),Vo=vi&&o.createElement(yn,null,vi(Ui)),vs=ka(["body"]);if(ca||ro){var Ss;typeof vs=="function"?(Ss=vs(Ui,{scrollbarSize:va,ref:Kn,onScroll:ho}),Fi.colWidths=Pr.map(function(yo,no){var Jo=yo.width,Go=no===Cn.length-1?Jo-va:Jo;return typeof Go=="number"&&!Number.isNaN(Go)?Go:(Object(p.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Ss=o.createElement("div",{style:Object(s.a)(Object(s.a)({},Po),Mo),onScroll:ho,ref:Kn,className:a()("".concat(fr,"-body"))},o.createElement(jo,{style:Object(s.a)(Object(s.a)({},Fa),{},{tableLayout:Qo})},cs,ws,Vo),ro&&o.createElement(Gt,{ref:_a,offsetScroll:zo,scrollBodyRef:Kn,onScroll:ho})),on=o.createElement(o.Fragment,null,Mi!==!1&&o.createElement(Oe,Object.assign({noData:!Ui.length},Fi,xn,{direction:fi,offsetHeader:Uo,stickyClassName:hs,ref:$n,onScroll:ho})),Ss)}else on=o.createElement("div",{style:Object(s.a)(Object(s.a)({},Po),Mo),className:a()("".concat(fr,"-content")),onScroll:ho,ref:Kn},o.createElement(jo,{style:Object(s.a)(Object(s.a)({},Fa),{},{tableLayout:Qo})},cs,Mi!==!1&&o.createElement(X,Object.assign({},Fi,xn)),ws,Vo));var ns=he(St),es=o.createElement("div",Object.assign({className:a()(fr,Br,(cr={},Object(e.a)(cr,"".concat(fr,"-rtl"),fi==="rtl"),Object(e.a)(cr,"".concat(fr,"-ping-left"),ti),Object(e.a)(cr,"".concat(fr,"-ping-right"),Xi),Object(e.a)(cr,"".concat(fr,"-layout-fixed"),Gn==="fixed"),Object(e.a)(cr,"".concat(fr,"-fixed-header"),ca),Object(e.a)(cr,"".concat(fr,"-fixed-column"),Xa),Object(e.a)(cr,"".concat(fr,"-scroll-horizontal"),ya),Object(e.a)(cr,"".concat(fr,"-has-fix-left"),Pr[0]&&Pr[0].fixed),Object(e.a)(cr,"".concat(fr,"-has-fix-right"),Pr[Pr.length-1]&&Pr[Pr.length-1].fixed==="right"),cr)),style:wn,id:Di,ref:Qn},ns),o.createElement(Ve,{pingLeft:ti,pingRight:Xi,props:Object(s.a)(Object(s.a)({},St),{},{stickyOffsets:Gi,mergedExpandedKeys:da})},Yn&&o.createElement($t,{className:"".concat(fr,"-title")},Yn(Ui)),o.createElement("div",{className:"".concat(fr,"-container")},on),gi&&o.createElement($t,{className:"".concat(fr,"-footer")},gi(Ui))));ya&&(es=o.createElement(D,{onResize:us},es));var fs=o.useMemo(function(){return{prefixCls:fr,getComponent:ka,scrollbarSize:va,direction:fi,fixedInfoList:Pr.map(function(yo,no){return Q(no,no,Pr,Gi,fi)}),isSticky:ro}},[fr,ka,va,fi,Pr,Gi,fi,ro]),ys=o.useMemo(function(){return Object(s.a)(Object(s.a)({},xn),{},{tableLayout:Qo,rowClassName:$r,expandedRowClassName:wo,componentWidth:Ir,fixHeader:ca,fixColumn:Xa,horizonScroll:ya,expandIcon:ao,expandableType:Ja,expandRowByClick:Io,expandedRowRender:po,onTriggerExpand:rt,expandIconColumnIndex:Qa,indentSize:to})},[xn,Qo,$r,wo,Ir,ca,Xa,ya,ao,Ja,Io,po,rt,Qa,to]),ds=o.useMemo(function(){return{onColumnResize:$a}},[$a]);return o.createElement(Pe.Provider,{value:fs},o.createElement(it.Provider,{value:ys},o.createElement(Ot.Provider,{value:ds},es)))}$e.Column=H,$e.ColumnGroup=B,$e.Summary=Dn,$e.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var wt=$e,qt=wt,Mr=d("W9HT"),an=d("NUBc"),_t=d("H84U"),at=function(St,cr){var fr={};for(var Br in St)Object.prototype.hasOwnProperty.call(St,Br)&&cr.indexOf(Br)<0&&(fr[Br]=St[Br]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $r=0,Br=Object.getOwnPropertySymbols(St);$r<Br.length;$r++)cr.indexOf(Br[$r])<0&&Object.prototype.propertyIsEnumerable.call(St,Br[$r])&&(fr[Br[$r]]=St[Br[$r]]);return fr},bt=10;function kt(St,cr){var fr={current:cr.current,pageSize:cr.pageSize},Br=St&&x()(St)==="object"?St:{};return Object.keys(Br).forEach(function($r){var wn=cr[$r];typeof wn!="function"&&(fr[$r]=wn)}),fr}function Pt(){for(var St={},cr=arguments.length,fr=new Array(cr),Br=0;Br<cr;Br++)fr[Br]=arguments[Br];return fr.forEach(function($r){$r&&Object.keys($r).forEach(function(wn){var rn=$r[wn];rn!==void 0&&(St[wn]=rn)})}),St}function Et(St,cr,fr){var Br=cr&&x()(cr)==="object"?cr:{},$r=Br.total,wn=$r===void 0?0:$r,rn=at(Br,["total"]),On=Object(o.useState)(function(){return{current:"defaultCurrent"in rn?rn.defaultCurrent:1,pageSize:"defaultPageSize"in rn?rn.defaultPageSize:bt}}),In=m()(On,2),Gn=In[0],fi=In[1],Yn=Pt(Gn,rn,{total:wn>0?wn:St});if(!wn){var gi=Math.ceil(St/Yn.pageSize);gi<Yn.current&&(Yn.current=1)}var vi=function(){var xi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,bi=arguments.length>1?arguments[1]:void 0;fi(c()(c()({},Yn),{current:xi,pageSize:bi||Yn.pageSize}))},Di=function(xi,bi){var Ci=Yn==null?void 0:Yn.pageSize;bi&&bi!==Ci&&(xi=1,cr&&cr.onShowSizeChange&&cr.onShowSizeChange(xi,bi)),cr&&cr.onChange&&cr.onChange(xi,bi),vi(xi,bi),fr(xi,bi||Ci)};return cr===!1?[{},function(){}]:[c()(c()({},Yn),{onChange:Di}),vi]}function Ht(St,cr,fr){var Br=o.useRef({});function $r(wn){if(!Br.current||Br.current.data!==St||Br.current.childrenColumnName!==cr||Br.current.getRowKey!==fr){var rn=function In(Gn){Gn.forEach(function(fi,Yn){var gi=fr(fi,Yn);On.set(gi,fi),fi&&x()(fi)==="object"&&cr in fi&&In(fi[cr]||[])})},On=new Map;rn(St),Br.current={data:St,childrenColumnName:cr,kvMap:On,getRowKey:fr}}return Br.current.kvMap.get(wn)}return[$r]}var ot=d("SA+Z"),Mt=d.n(ot),xr=d("RIqP"),ur=d.n(xr),gr=d("HQEm"),Qr=d.n(gr),ln=d("c3jg"),_n=d("qOx5"),Mn=d("wPhX"),li=d("6cGi"),ai=d("kaz8"),pi=d("jsC+"),Oi=d("BvKs"),Ze=d("9yH6"),be=d("uaoM"),Ne="SELECT_ALL",Ue="SELECT_INVERT";function Qe(St){return St&&St.fixed}function Xe(St,cr){var fr=[];return(St||[]).forEach(function(Br){fr.push(Br),Br&&x()(Br)==="object"&&cr in Br&&(fr=[].concat(ur()(fr),ur()(Xe(Br[cr],cr))))}),fr}function qe(St,cr){var fr=St||{},Br=fr.preserveSelectedRowKeys,$r=fr.selectedRowKeys,wn=fr.getCheckboxProps,rn=fr.onChange,On=fr.onSelect,In=fr.onSelectAll,Gn=fr.onSelectInvert,fi=fr.onSelectMultiple,Yn=fr.columnWidth,gi=fr.type,vi=fr.selections,Di=fr.fixed,Mi=fr.renderCell,xi=fr.hideSelectAll,bi=fr.checkStrictly,Ci=bi===void 0?!0:bi,$i=cr.prefixCls,qi=cr.data,Ti=cr.pageData,ia=cr.getRecordByKey,na=cr.getRowKey,Ui=cr.expandType,Ki=cr.childrenColumnName,ra=cr.locale,ea=cr.expandIconColumnIndex,va=cr.getPopupContainer,sa=o.useRef(new Map),Pa=Object(li.a)($r||[],{value:$r}),ka=m()(Pa,2),Ia=ka[0],Ea=ka[1],So=Object(o.useMemo)(function(){return Ci?{keyEntities:null}:Object(ln.a)(qi,void 0,na)},[qi,na,Ci]),Ga=So.keyEntities,Va=Object(o.useMemo)(function(){return Xe(Ti,Ki)},[Ti,Ki]),Ra=Object(o.useMemo)(function(){var ja=new Map;return Va.forEach(function(da,rt){var ar=na(da,rt),Fr=(wn?wn(da):null)||{};ja.set(ar,Fr)}),ja},[Va,na,wn]),po=Object(o.useCallback)(function(ja){var da;return!!((da=Ra.get(na(ja)))===null||da===void 0?void 0:da.disabled)},[Ra,na]),mo=Object(o.useMemo)(function(){if(Ci)return[Ia,[]];var ja=Object(_n.a)(Ia,!0,Ga,po),da=ja.checkedKeys,rt=ja.halfCheckedKeys;return[da,rt]},[Ia,Ci,Ga,po]),Aa=m()(mo,2),Io=Aa[0],go=Aa[1],Qa=Object(o.useMemo)(function(){var ja=gi==="radio"?Io.slice(0,1):Io;return new Set(ja)},[Io,gi]),wo=Object(o.useMemo)(function(){return gi==="radio"?new Set:new Set(go)},[go,gi]),pa=Object(o.useState)(null),to=m()(pa,2),ao=to[0],Bo=to[1];o.useEffect(function(){St||Ea([])},[!!St]);var Ja=Object(o.useCallback)(function(ja){var da,rt;if(Br){var ar=new Map;da=ja,rt=ja.map(function(Fr){var Ir=ia(Fr);return!Ir&&sa.current.has(Fr)&&(Ir=sa.current.get(Fr)),ar.set(Fr,Ir),Ir}),sa.current=ar}else da=[],rt=[],ja.forEach(function(Fr){var Ir=ia(Fr);Ir!==void 0&&(da.push(Fr),rt.push(Ir))});Ea(da),rn&&rn(da,rt)},[Ea,ia,rn,Br]),_o=Object(o.useCallback)(function(ja,da,rt,ar){if(On){var Fr=rt.map(function(Ir){return ia(Ir)});On(ia(ja),da,Fr,ar)}Ja(rt)},[On,ia,Ja]),Ao=Object(o.useMemo)(function(){if(!vi||xi)return null;var ja=vi===!0?[Ne,Ue]:vi;return ja.map(function(da){return da===Ne?{key:"all",text:ra.selectionAll,onSelect:function(){Ja(qi.map(function(ar,Fr){return na(ar,Fr)}))}}:da===Ue?{key:"invert",text:ra.selectInvert,onSelect:function(){var ar=new Set(Qa);Ti.forEach(function(Ir,En){var zr=na(Ir,En);ar.has(zr)?ar.delete(zr):ar.add(zr)});var Fr=Array.from(ar);Ja(Fr),Gn&&(Object(be.a)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),Gn(Fr))}}:da})},[vi,Qa,Ti,na,Gn,Ja]),za=Object(o.useCallback)(function(ja){if(!St)return ja;var da=new Set(Qa),rt=Va.map(na).filter(function(ti){return!Ra.get(ti).disabled}),ar=rt.every(function(ti){return da.has(ti)}),Fr=rt.some(function(ti){return da.has(ti)}),Ir=function(){var di=[];ar?rt.forEach(function(yi){da.delete(yi),di.push(yi)}):rt.forEach(function(yi){da.has(yi)||(da.add(yi),di.push(yi))});var Bi=Array.from(da);Ja(Bi),In&&In(!ar,Bi.map(function(yi){return ia(yi)}),di.map(function(yi){return ia(yi)}))},En;if(gi!=="radio"){var zr;if(Ao){var yr=o.createElement(Oi.a,{getPopupContainer:va},Ao.map(function(ti,di){var Bi=ti.key,yi=ti.text,Xi=ti.onSelect;return o.createElement(Oi.a.Item,{key:Bi||di,onClick:function(){Xi&&Xi(rt)}},yi)}));zr=o.createElement("div",{className:"".concat($i,"-selection-extra")},o.createElement(pi.a,{overlay:yr,getPopupContainer:va},o.createElement("span",null,o.createElement(Qr.a,null))))}var Cn=Va.every(function(ti,di){var Bi=na(ti,di),yi=Ra.get(Bi)||{};return yi.disabled});En=!xi&&o.createElement("div",{className:"".concat($i,"-selection")},o.createElement(ai.a,{checked:!Cn&&!!Va.length&&ar,indeterminate:!ar&&Fr,onChange:Ir,disabled:Va.length===0||Cn}),zr)}var Pr;gi==="radio"?Pr=function(di,Bi,yi){var Xi=na(Bi,yi),ba=da.has(Xi);return{node:o.createElement(Ze.a,c()({},Ra.get(Xi),{checked:ba,onClick:function(Qi){return Qi.stopPropagation()},onChange:function(Qi){da.has(Xi)||_o(Xi,!0,[Xi],Qi.nativeEvent)}})),checked:ba}}:Pr=function(di,Bi,yi){var Xi,ba=na(Bi,yi),ta=da.has(ba),Qi=wo.has(ba),aa=Ra.get(ba),fa;return Ui==="nest"?(fa=Qi,Object(be.a)(!(typeof(aa==null?void 0:aa.indeterminate)=="boolean"),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):fa=(Xi=aa==null?void 0:aa.indeterminate)!==null&&Xi!==void 0?Xi:Qi,{node:o.createElement(ai.a,c()({},aa,{indeterminate:fa,checked:ta,onClick:function(Za){return Za.stopPropagation()},onChange:function(Za){var Wi=Za.nativeEvent,Gi=Wi.shiftKey,ca=-1,ya=-1;if(Gi&&Ci){var Xa=new Set([ao,ba]);rt.some(function(Ca,Eo){if(Xa.has(Ca))if(ca===-1)ca=Eo;else return ya=Eo,!0;return!1})}if(ya!==-1&&ca!==ya&&Ci){var _a=rt.slice(ca,ya+1),qa=[];ta?_a.forEach(function(Ca){da.has(Ca)&&(qa.push(Ca),da.delete(Ca))}):_a.forEach(function(Ca){da.has(Ca)||(qa.push(Ca),da.add(Ca))});var ro=Array.from(da);Ja(ro),fi&&fi(!ta,ro.map(function(Ca){return ia(Ca)}),qa.map(function(Ca){return ia(Ca)}))}else{var Uo=Io;if(Ci){var zo=ta?Object(Mn.b)(Uo,ba):Object(Mn.a)(Uo,ba);_o(ba,!ta,zo,Wi)}else{var hs=Object(_n.a)([].concat(ur()(Uo),[ba]),!0,Ga,po),Po=hs.checkedKeys,Mo=hs.halfCheckedKeys,Fa=Po;if(ta){var $a=new Set(Po);$a.delete(ba),Fa=Object(_n.a)(Array.from($a),{checked:!1,halfCheckedKeys:Mo},Ga,po).checkedKeys}_o(ba,!ta,Fa,Wi)}}Bo(ba)}})),checked:ta}};var xn=function(di,Bi,yi){var Xi=Pr(di,Bi,yi),ba=Xi.node,ta=Xi.checked;return Mi?Mi(ta,Bi,yi,ba):ba},Qn=v()({width:Yn,className:"".concat($i,"-selection-column"),title:St.columnTitle||En,render:xn},J,{className:"".concat($i,"-selection-col")});if(Ui==="row"&&ja.length&&!ea){var $n=Mt()(ja),Kn=$n[0],si=$n.slice(1),Xn=Di||Qe(si[0]);return Xn&&(Kn.fixed=Xn),[Kn,c()(c()({},Qn),{fixed:Xn})].concat(ur()(si))}return[c()(c()({},Qn),{fixed:Di||Qe(ja[0])})].concat(ur()(ja))},[na,Va,St,Io,Qa,wo,Yn,Ao,Ui,ao,Ra,fi,_o,po]);return[za,Qa]}var yt=d("6SEX"),ht=d.n(yt),Jt=d("i8CU"),kr=d.n(Jt),_r=d("3S7+");function Xr(St,cr){return"key"in St&&St.key!==void 0&&St.key!==null?St.key:St.dataIndex?Array.isArray(St.dataIndex)?St.dataIndex.join("."):St.dataIndex:cr}function Bt(St,cr){return cr?"".concat(cr,"-").concat(St):"".concat(St)}function gn(St,cr){return typeof St=="function"?St(cr):St}var hr="ascend",vn="descend";function en(St){return x()(St.sorter)==="object"&&typeof St.sorter.multiple=="number"?St.sorter.multiple:!1}function Dt(St){return typeof St=="function"?St:St&&x()(St)==="object"&&St.compare?St.compare:!1}function jr(St,cr){return cr?St[St.indexOf(cr)+1]:St[0]}function un(St,cr,fr){var Br=[];function $r(wn,rn){Br.push({column:wn,key:Xr(wn,rn),multiplePriority:en(wn),sortOrder:wn.sortOrder})}return(St||[]).forEach(function(wn,rn){var On=Bt(rn,fr);wn.children?("sortOrder"in wn&&$r(wn,On),Br=[].concat(ur()(Br),ur()(un(wn.children,cr,On)))):wn.sorter&&("sortOrder"in wn?$r(wn,On):cr&&wn.defaultSortOrder&&Br.push({column:wn,key:Xr(wn,On),multiplePriority:en(wn),sortOrder:wn.defaultSortOrder}))}),Br}function Hr(St,cr,fr,Br,$r,wn,rn,On){return(cr||[]).map(function(In,Gn){var fi=Bt(Gn,On),Yn=In;if(Yn.sorter){var gi=Yn.sortDirections||$r,vi=Yn.showSorterTooltip===void 0?rn:Yn.showSorterTooltip,Di=Xr(Yn,fi),Mi=fr.find(function(Ki){var ra=Ki.key;return ra===Di}),xi=Mi?Mi.sortOrder:null,bi=jr(gi,xi),Ci=gi.includes(hr)&&o.createElement(kr.a,{className:a()("".concat(St,"-column-sorter-up"),{active:xi===hr})}),$i=gi.includes(vn)&&o.createElement(ht.a,{className:a()("".concat(St,"-column-sorter-down"),{active:xi===vn})}),qi=wn||{},Ti=qi.cancelSort,ia=qi.triggerAsc,na=qi.triggerDesc,Ui=Ti;bi===vn?Ui=na:bi===hr&&(Ui=ia),Yn=c()(c()({},Yn),{className:a()(Yn.className,v()({},"".concat(St,"-column-sort"),xi)),title:function(ra){var ea=o.createElement("div",{className:"".concat(St,"-column-sorters")},o.createElement("span",null,gn(In.title,ra)),o.createElement("span",{className:a()("".concat(St,"-column-sorter"),v()({},"".concat(St,"-column-sorter-full"),Ci&&$i))},o.createElement("span",{className:"".concat(St,"-column-sorter-inner")},Ci,$i)));return vi?o.createElement(_r.a,{title:Ui},o.createElement("div",{className:"".concat(St,"-column-sorters-with-tooltip")},ea)):ea},onHeaderCell:function(ra){var ea=In.onHeaderCell&&In.onHeaderCell(ra)||{},va=ea.onClick;return ea.onClick=function(sa){Br({column:In,key:Di,sortOrder:bi,multiplePriority:en(In)}),va&&va(sa)},ea.className=a()(ea.className,"".concat(St,"-column-has-sorters")),ea}})}return"children"in Yn&&(Yn=c()(c()({},Yn),{children:Hr(St,Yn.children,fr,Br,$r,wn,rn,fi)})),Yn})}function Wt(St){var cr=St.column,fr=St.sortOrder;return{column:cr,order:fr,field:cr.dataIndex,columnKey:cr.key}}function wr(St){var cr=St.filter(function(fr){var Br=fr.sortOrder;return Br}).map(Wt);return cr.length===0&&St.length?c()(c()({},Wt(St[St.length-1])),{column:void 0}):cr.length<=1?cr[0]||{}:cr}function fn(St,cr,fr){var Br=cr.slice().sort(function(rn,On){return On.multiplePriority-rn.multiplePriority}),$r=St.slice(),wn=Br.filter(function(rn){var On=rn.column.sorter,In=rn.sortOrder;return Dt(On)&&In});return wn.length?$r.sort(function(rn,On){for(var In=0;In<wn.length;In+=1){var Gn=wn[In],fi=Gn.column.sorter,Yn=Gn.sortOrder,gi=Dt(fi);if(gi&&Yn){var vi=gi(rn,On,Yn);if(vi!==0)return Yn===hr?vi:-vi}}return 0}).map(function(rn){var On=rn[fr];return On?c()(c()({},rn),v()({},fr,fn(On,cr,fr))):rn}):$r}function zt(St){var cr=St.prefixCls,fr=St.mergedColumns,Br=St.onSorterChange,$r=St.sortDirections,wn=St.tableLocale,rn=St.showSorterTooltip,On=o.useState(un(fr,!0)),In=m()(On,2),Gn=In[0],fi=In[1],Yn=o.useMemo(function(){var xi=!0,bi=un(fr,!1);if(!bi.length)return Gn;var Ci=[];function $i(Ti){xi?Ci.push(Ti):Ci.push(c()(c()({},Ti),{sortOrder:null}))}var qi=null;return bi.forEach(function(Ti){qi===null?($i(Ti),Ti.sortOrder&&(Ti.multiplePriority===!1?xi=!1:qi=!0)):(qi&&Ti.multiplePriority!==!1||(xi=!1),$i(Ti))}),Ci},[fr,Gn]),gi=o.useMemo(function(){var xi=Yn.map(function(bi){var Ci=bi.column,$i=bi.sortOrder;return{column:Ci,order:$i}});return{sortColumns:xi,sortColumn:xi[0]&&xi[0].column,sortOrder:xi[0]&&xi[0].order}},[Yn]);function vi(xi){var bi;xi.multiplePriority===!1||!Yn.length||Yn[0].multiplePriority===!1?bi=[xi]:bi=[].concat(ur()(Yn.filter(function(Ci){var $i=Ci.key;return $i!==xi.key})),[xi]),fi(bi),Br(wr(bi),bi)}var Di=function(bi){return Hr(cr,bi,Yn,vi,$r,wn,rn)},Mi=function(){return wr(Yn)};return[Di,Yn,gi,Mi]}var Dr=d("Y+p1"),ir=d.n(Dr),Lt=d("5Uyt"),Qt=d.n(Lt),It=d("2/Rp"),or=d("ECub"),Cr=function(cr){return o.createElement("div",{className:cr.className,onClick:function(Br){return Br.stopPropagation()}},cr.children)},Er=Cr,Kr=d("sPtV"),jn=Oi.a.SubMenu,Nn=Oi.a.Item;function ei(St){return St.some(function(cr){var fr=cr.children;return fr})}function Zr(St){var cr=St.filters,fr=St.prefixCls,Br=St.filteredKeys,$r=St.filterMultiple,wn=St.locale;return cr.length===0?o.createElement(o.Fragment,null,o.createElement(or.a,{image:or.a.PRESENTED_IMAGE_SIMPLE,description:wn.filterEmptyText,style:{margin:"16px 0"},imageStyle:{height:24}})):cr.map(function(rn,On){var In=String(rn.value);if(rn.children)return o.createElement(jn,{key:In||On,title:rn.text,popupClassName:"".concat(fr,"-dropdown-submenu")},Zr({filters:rn.children,prefixCls:fr,filteredKeys:Br,filterMultiple:$r,locale:wn}));var Gn=$r?ai.a:Ze.a;return o.createElement(Nn,{key:rn.value!==void 0?In:On},o.createElement(Gn,{checked:Br.includes(In)}),o.createElement("span",null,rn.text))})}function br(St){var cr,fr=St.prefixCls,Br=St.column,$r=St.dropdownPrefixCls,wn=St.columnKey,rn=St.filterMultiple,On=St.filterState,In=St.triggerFilter,Gn=St.locale,fi=St.children,Yn=St.getPopupContainer,gi=Br.filterDropdownVisible,vi=Br.onFilterDropdownVisibleChange,Di=o.useState(!1),Mi=m()(Di,2),xi=Mi[0],bi=Mi[1],Ci=!!(On&&(((cr=On.filteredKeys)===null||cr===void 0?void 0:cr.length)||On.forceFiltered)),$i=function(to){bi(to),vi&&vi(to)},qi=typeof gi=="boolean"?gi:xi,Ti=On&&On.filteredKeys,ia=Object(Kr.a)(Ti||[]),na=m()(ia,2),Ui=na[0],Ki=na[1],ra=function(to){var ao=to.selectedKeys;Ki(ao)};o.useEffect(function(){ra({selectedKeys:Ti||[]})},[Ti]);var ea=o.useState([]),va=m()(ea,2),sa=va[0],Pa=va[1],ka=o.useRef(),Ia=function(to){ka.current=window.setTimeout(function(){Pa(to)})},Ea=function(){window.clearTimeout(ka.current)};o.useEffect(function(){return function(){window.clearTimeout(ka.current)}},[]);var So=function(to){$i(!1);var ao=to&&to.length?to:null;if(ao===null&&(!On||!On.filteredKeys))return null;if(ir()(ao,On==null?void 0:On.filteredKeys))return null;In({column:Br,key:wn,filteredKeys:ao})},Ga=function(){So(Ui())},Va=function(){Ki([]),So([])},Ra=function(to){to&&Ti!==void 0&&Ki(Ti||[]),$i(to),!to&&!Br.filterDropdown&&Ga()},po=a()(v()({},"".concat($r,"-menu-without-submenu"),!ei(Br.filters||[]))),mo;if(typeof Br.filterDropdown=="function")mo=Br.filterDropdown({prefixCls:"".concat($r,"-custom"),setSelectedKeys:function(to){return ra({selectedKeys:to})},selectedKeys:Ui(),confirm:Ga,clearFilters:Va,filters:Br.filters,visible:qi});else if(Br.filterDropdown)mo=Br.filterDropdown;else{var Aa=Ui()||[];mo=o.createElement(o.Fragment,null,o.createElement(Oi.a,{multiple:rn,prefixCls:"".concat($r,"-menu"),className:po,onClick:Ea,onSelect:ra,onDeselect:ra,selectedKeys:Aa,getPopupContainer:Yn,openKeys:sa,onOpenChange:Ia},Zr({filters:Br.filters||[],prefixCls:fr,filteredKeys:Ui(),filterMultiple:rn,locale:Gn})),o.createElement("div",{className:"".concat(fr,"-dropdown-btns")},o.createElement(It.a,{type:"link",size:"small",disabled:Aa.length===0,onClick:Va},Gn.filterReset),o.createElement(It.a,{type:"primary",size:"small",onClick:Ga},Gn.filterConfirm)))}var Io=o.createElement(Er,{className:"".concat(fr,"-dropdown")},mo),go;typeof Br.filterIcon=="function"?go=Br.filterIcon(Ci):Br.filterIcon?go=Br.filterIcon:go=o.createElement(Qt.a,null);var Qa=o.useContext(_t.b),wo=Qa.direction;return o.createElement("div",{className:a()("".concat(fr,"-column"))},o.createElement("span",{className:"".concat(fr,"-column-title")},fi),o.createElement("span",{className:a()("".concat(fr,"-trigger-container"),v()({},"".concat(fr,"-trigger-container-open"),qi)),onClick:function(to){to.stopPropagation()}},o.createElement(pi.a,{overlay:Io,trigger:["click"],visible:qi,onVisibleChange:Ra,getPopupContainer:Yn,placement:wo==="rtl"?"bottomLeft":"bottomRight"},o.createElement("span",{role:"button",tabIndex:-1,className:a()("".concat(fr,"-trigger"),{active:Ci})},go))))}var dn=br;function Ln(St,cr,fr){var Br=[];return(St||[]).forEach(function($r,wn){var rn=Bt(wn,fr);"children"in $r?Br=[].concat(ur()(Br),ur()(Ln($r.children,cr,rn))):($r.filters||"filterDropdown"in $r||"onFilter"in $r)&&("filteredValue"in $r?Br.push({column:$r,key:Xr($r,rn),filteredKeys:$r.filteredValue,forceFiltered:$r.filtered}):Br.push({column:$r,key:Xr($r,rn),filteredKeys:cr&&$r.defaultFilteredValue?$r.defaultFilteredValue:void 0,forceFiltered:$r.filtered}))}),Br}function Fn(St,cr,fr,Br,$r,wn,rn,On){return fr.map(function(In,Gn){var fi=Bt(Gn,On),Yn=In.filterMultiple,gi=Yn===void 0?!0:Yn;if(In.filters||"filterDropdown"in In){var vi=Xr(In,fi),Di=Br.find(function(Mi){var xi=Mi.key;return vi===xi});return c()(c()({},In),{title:function(xi){return o.createElement(dn,{prefixCls:"".concat(St,"-filter"),dropdownPrefixCls:cr,column:In,columnKey:vi,filterState:Di,filterMultiple:gi,triggerFilter:$r,locale:rn,getPopupContainer:wn},gn(In.title,xi))}})}return"children"in In?c()(c()({},In),{children:Fn(St,cr,In.children,Br,$r,wn,rn,fi)}):In})}function zn(St){var cr={};return St.forEach(function(fr){var Br=fr.key,$r=fr.filteredKeys;cr[Br]=$r||null}),cr}function ui(St){var cr=[];return(St||[]).forEach(function(fr){var Br=fr.value,$r=fr.children;cr.push(Br),$r&&(cr=[].concat(ur()(cr),ur()(ui($r))))}),cr}function ii(St,cr){return cr.reduce(function(fr,Br){var $r=Br.column,wn=$r.onFilter,rn=$r.filters,On=Br.filteredKeys;return wn&&On&&On.length?fr.filter(function(In){return On.some(function(Gn){var fi=ui(rn),Yn=fi.findIndex(function(vi){return String(vi)===String(Gn)}),gi=Yn!==-1?fi[Yn]:Gn;return wn(gi,In)})}):fr},St)}function qn(St){var cr=St.prefixCls,fr=St.dropdownPrefixCls,Br=St.mergedColumns,$r=St.onFilterChange,wn=St.getPopupContainer,rn=St.locale,On=o.useState(Ln(Br,!0)),In=m()(On,2),Gn=In[0],fi=In[1],Yn=o.useMemo(function(){var Mi=Ln(Br,!1);return Mi.every(function(xi){var bi=xi.filteredKeys;return bi===void 0})?Gn:Mi},[Br,Gn]),gi=o.useCallback(function(){return zn(Yn)},[Yn]),vi=function(xi){var bi=Yn.filter(function(Ci){var $i=Ci.key;return $i!==xi.key});bi.push(xi),fi(bi),$r(zn(bi),bi)},Di=function(xi){return Fn(cr,fr,xi,Yn,vi,wn,rn)};return[Di,Yn,gi]}var Li=qn;function zi(St,cr){return St.map(function(fr){var Br=c()({},fr);return Br.title=gn(fr.title,cr),"children"in Br&&(Br.children=zi(Br.children,cr)),Br})}function Ri(St){var cr=o.useCallback(function(fr){return zi(fr,St)},[St]);return[cr]}function ga(St){return function(fr){var Br,$r=fr.prefixCls,wn=fr.onExpand,rn=fr.record,On=fr.expanded,In=fr.expandable,Gn="".concat($r,"-row-expand-icon");return o.createElement("button",{type:"button",onClick:function(Yn){wn(rn,Yn),Yn.stopPropagation()},className:a()(Gn,(Br={},v()(Br,"".concat(Gn,"-spaced"),!In),v()(Br,"".concat(Gn,"-expanded"),In&&On),v()(Br,"".concat(Gn,"-collapsed"),In&&!On),Br)),"aria-label":On?St.collapse:St.expand})}}var oi=ga,hn=d("zAh6"),Ei=d("ZvpZ"),Hi=Ei.a,ki=d("3Nzz");function ji(St){return null}var dr=ji;function sr(St){return null}var cn=sr,Zt=d("5OYt"),Ar=[];function Nr(St){var cr,fr=St.prefixCls,Br=St.className,$r=St.style,wn=St.size,rn=St.bordered,On=St.dropdownPrefixCls,In=St.dataSource,Gn=St.pagination,fi=St.rowSelection,Yn=St.rowKey,gi=St.rowClassName,vi=St.columns,Di=St.children,Mi=St.childrenColumnName,xi=St.onChange,bi=St.getPopupContainer,Ci=St.loading,$i=St.expandIcon,qi=St.expandable,Ti=St.expandedRowRender,ia=St.expandIconColumnIndex,na=St.indentSize,Ui=St.scroll,Ki=St.sortDirections,ra=St.locale,ea=St.showSorterTooltip,va=ea===void 0?!0:ea;Object(be.a)(!(typeof Yn=="function"&&Yn.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var sa=Object(Zt.a)(),Pa=o.useMemo(function(){var $a=new Set(Object.keys(sa).filter(function(Ca){return sa[Ca]}));return(vi||$(Di)).filter(function(Ca){return!Ca.responsive||Ca.responsive.some(function(Eo){return $a.has(Eo)})})},[Di,vi,sa]),ka=Object(n.default)(St,["className","style","columns"]),Ia=o.useContext(ki.b),Ea=o.useContext(_t.b),So=Ea.locale,Ga=So===void 0?Hi:So,Va=Ea.renderEmpty,Ra=Ea.direction,po=wn||Ia,mo=c()(c()({},Ga.Table),ra),Aa=In||Ar,Io=o.useContext(_t.b),go=Io.getPrefixCls,Qa=go("table",fr),wo=go("dropdown",On),pa=c()({childrenColumnName:Mi,expandIconColumnIndex:ia},qi),to=pa.childrenColumnName,ao=to===void 0?"children":to,Bo=o.useMemo(function(){return Aa.some(function($a){var Ca;return(Ca=$a)===null||Ca===void 0?void 0:Ca[ao]})?"nest":Ti||qi&&qi.expandedRowRender?"row":null},[Aa]),Ja={body:o.useRef()},_o=o.useMemo(function(){return typeof Yn=="function"?Yn:function($a){var Ca;return(Ca=$a)===null||Ca===void 0?void 0:Ca[Yn]}},[Yn]),Ao=Ht(Aa,ao,_o),za=m()(Ao,1),ja=za[0],da={},rt=function(Ca,Eo){var qo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,vo=c()(c()({},da),Ca);qo&&(da.resetPagination(),vo.pagination.current&&(vo.pagination.current=1),Gn&&Gn.onChange&&Gn.onChange(1,vo.pagination.pageSize)),Ui&&Ui.scrollToFirstRowOnChange!==!1&&Ja.body.current&&Object(hn.a)(0,{getContainer:function(){return Ja.body.current}}),xi&&xi(vo.pagination,vo.filters,vo.sorter,{currentDataSource:ii(fn(Aa,vo.sorterStates,ao),vo.filterStates),action:Eo})},ar=function(Ca,Eo){rt({sorter:Ca,sorterStates:Eo},"sort",!1)},Fr=zt({prefixCls:Qa,mergedColumns:Pa,onSorterChange:ar,sortDirections:Ki||["ascend","descend"],tableLocale:mo,showSorterTooltip:va}),Ir=m()(Fr,4),En=Ir[0],zr=Ir[1],yr=Ir[2],Cn=Ir[3],Pr=o.useMemo(function(){return fn(Aa,zr,ao)},[Aa,zr]);da.sorter=Cn(),da.sorterStates=zr;var xn=function(Ca,Eo){rt({filters:Ca,filterStates:Eo},"filter",!0)},Qn=Li({prefixCls:Qa,locale:mo,dropdownPrefixCls:wo,mergedColumns:Pa,onFilterChange:xn,getPopupContainer:bi}),$n=m()(Qn,3),Kn=$n[0],si=$n[1],Xn=$n[2],ti=ii(Pr,si);da.filters=Xn(),da.filterStates=si;var di=o.useMemo(function(){return c()({},yr)},[yr]),Bi=Ri(di),yi=m()(Bi,1),Xi=yi[0],ba=function(Ca,Eo){rt({pagination:c()(c()({},da.pagination),{current:Ca,pageSize:Eo})},"paginate")},ta=Et(ti.length,Gn,ba),Qi=m()(ta,2),aa=Qi[0],fa=Qi[1];da.pagination=Gn===!1?{}:kt(Gn,aa),da.resetPagination=fa;var xo=o.useMemo(function(){if(Gn===!1||!aa.pageSize)return ti;var $a=aa.current,Ca=$a===void 0?1:$a,Eo=aa.total,qo=aa.pageSize,vo=qo===void 0?bt:qo;return ti.length<Eo?ti.length>vo?(Object(be.a)(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),ti.slice((Ca-1)*vo,Ca*vo)):ti:ti.slice((Ca-1)*vo,Ca*vo)},[!!Gn,ti,aa&&aa.current,aa&&aa.pageSize,aa&&aa.total]),Za=qe(fi,{prefixCls:Qa,data:ti,pageData:xo,getRowKey:_o,getRecordByKey:ja,expandType:Bo,childrenColumnName:ao,locale:mo,expandIconColumnIndex:pa.expandIconColumnIndex,getPopupContainer:bi}),Wi=m()(Za,2),Gi=Wi[0],ca=Wi[1],ya=function(Ca,Eo,qo){var vo;return typeof gi=="function"?vo=a()(gi(Ca,Eo,qo)):vo=a()(gi),a()(v()({},"".concat(Qa,"-row-selected"),ca.has(_o(Ca,Eo))),vo)};pa.__PARENT_RENDER_ICON__=pa.expandIcon,pa.expandIcon=pa.expandIcon||$i||oi(mo),Bo==="nest"&&pa.expandIconColumnIndex===void 0?pa.expandIconColumnIndex=fi?1:0:pa.expandIconColumnIndex>0&&fi&&(pa.expandIconColumnIndex-=1),typeof pa.indentSize!="number"&&(pa.indentSize=typeof na=="number"?na:15);var Xa=o.useCallback(function($a){return Xi(Gi(Kn(En($a))))},[En,Kn,Gi]),_a,qa;if(Gn!==!1){var ro;aa.size?ro=aa.size:ro=po==="small"||po==="middle"?"small":void 0;var Uo=function(Ca){return o.createElement(an.a,c()({className:"".concat(Qa,"-pagination ").concat(Qa,"-pagination-").concat(Ca)},aa,{size:ro}))},zo=Ra==="rtl"?"left":"right";if(aa.position!==null&&Array.isArray(aa.position)){var hs=aa.position.find(function($a){return $a.indexOf("top")!==-1}),Po=aa.position.find(function($a){return $a.indexOf("bottom")!==-1});!hs&&!Po?qa=Uo(zo):(hs&&(_a=Uo(hs.toLowerCase().replace("top",""))),Po&&(qa=Uo(Po.toLowerCase().replace("bottom",""))))}else qa=Uo(zo)}var Mo;typeof Ci=="boolean"?Mo={spinning:Ci}:x()(Ci)==="object"&&(Mo=c()({spinning:!0},Ci));var Fa=a()("".concat(Qa,"-wrapper"),Br,v()({},"".concat(Qa,"-wrapper-rtl"),Ra==="rtl"));return o.createElement("div",{className:Fa,style:$r},o.createElement(Mr.a,c()({spinning:!1},Mo),_a,o.createElement(qt,c()({},ka,{columns:Pa,direction:Ra,expandable:pa,prefixCls:Qa,className:a()((cr={},v()(cr,"".concat(Qa,"-middle"),po==="middle"),v()(cr,"".concat(Qa,"-small"),po==="small"),v()(cr,"".concat(Qa,"-bordered"),rn),v()(cr,"".concat(Qa,"-empty"),Aa.length===0),cr)),data:xo,rowKey:_o,rowClassName:ya,emptyText:ra&&ra.emptyText||Va("Table"),internalHooks:je,internalRefs:Ja,transformColumns:Xa})),ti&&ti.length>0&&qa))}Nr.defaultProps={rowKey:"key"},Nr.SELECTION_ALL=Ne,Nr.SELECTION_INVERT=Ue,Nr.Column=dr,Nr.ColumnGroup=cn,Nr.Summary=Dn;var tn=Nr,pn=P.a=tn},wDdD:function(U,P,d){var O=d("ProS"),x=d("bYtY");d("98bh"),d("GrNh");var T=d("d4KN"),v=d("mOdp"),S=d("KS52"),m=d("0/Rx");T("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),O.registerVisual(v("pie")),O.registerLayout(x.curry(S,"pie")),O.registerProcessor(m("pie"))},wOnQ:function(U,P,d){/*!
|
|
|
* html2canvas 1.3.2 <https://html2canvas.hertzen.com>
|
|
|
* Copyright (c) 2021 Niklas von Hertzen <https://hertzen.com>
|
|
|
* Released under MIT License
|
|
|
*/(function(O,x){U.exports=x()})(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 O=function(de,xe){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ke,nt){ke.__proto__=nt}||function(ke,nt){for(var er in nt)Object.prototype.hasOwnProperty.call(nt,er)&&(ke[er]=nt[er])},O(de,xe)};function x(ct,de){if(typeof de!="function"&&de!==null)throw new TypeError("Class extends value "+String(de)+" is not a constructor or null");O(ct,de);function xe(){this.constructor=ct}ct.prototype=de===null?Object.create(de):(xe.prototype=de.prototype,new xe)}var T=function(){return T=Object.assign||function(xe){for(var ke,nt=1,er=arguments.length;nt<er;nt++){ke=arguments[nt];for(var Wr in ke)Object.prototype.hasOwnProperty.call(ke,Wr)&&(xe[Wr]=ke[Wr])}return xe},T.apply(this,arguments)};function v(ct,de,xe,ke){function nt(er){return er instanceof xe?er:new xe(function(Wr){Wr(er)})}return new(xe||(xe=Promise))(function(er,Wr){function sn(Si){try{Pn(ke.next(Si))}catch(mi){Wr(mi)}}function bn(Si){try{Pn(ke.throw(Si))}catch(mi){Wr(mi)}}function Pn(Si){Si.done?er(Si.value):nt(Si.value).then(sn,bn)}Pn((ke=ke.apply(ct,de||[])).next())})}function S(ct,de){var xe={label:0,sent:function(){if(er[0]&1)throw er[1];return er[1]},trys:[],ops:[]},ke,nt,er,Wr;return Wr={next:sn(0),throw:sn(1),return:sn(2)},typeof Symbol=="function"&&(Wr[Symbol.iterator]=function(){return this}),Wr;function sn(Pn){return function(Si){return bn([Pn,Si])}}function bn(Pn){if(ke)throw new TypeError("Generator is already executing.");for(;xe;)try{if(ke=1,nt&&(er=Pn[0]&2?nt.return:Pn[0]?nt.throw||((er=nt.return)&&er.call(nt),0):nt.next)&&!(er=er.call(nt,Pn[1])).done)return er;(nt=0,er)&&(Pn=[Pn[0]&2,er.value]);switch(Pn[0]){case 0:case 1:er=Pn;break;case 4:return xe.label++,{value:Pn[1],done:!1};case 5:xe.label++,nt=Pn[1],Pn=[0];continue;case 7:Pn=xe.ops.pop(),xe.trys.pop();continue;default:if(!(er=xe.trys,er=er.length>0&&er[er.length-1])&&(Pn[0]===6||Pn[0]===2)){xe=0;continue}if(Pn[0]===3&&(!er||Pn[1]>er[0]&&Pn[1]<er[3])){xe.label=Pn[1];break}if(Pn[0]===6&&xe.label<er[1]){xe.label=er[1],er=Pn;break}if(er&&xe.label<er[2]){xe.label=er[2],xe.ops.push(Pn);break}er[2]&&xe.ops.pop(),xe.trys.pop();continue}Pn=de.call(ct,xe)}catch(Si){Pn=[6,Si],nt=0}finally{ke=er=0}if(Pn[0]&5)throw Pn[1];return{value:Pn[0]?Pn[1]:void 0,done:!0}}}function m(ct,de,xe){if(xe||arguments.length===2)for(var ke=0,nt=de.length,er;ke<nt;ke++)(er||!(ke in de))&&(er||(er=Array.prototype.slice.call(de,0,ke)),er[ke]=de[ke]);return ct.concat(er||de)}for(var f=function(){function ct(de,xe,ke,nt){this.left=de,this.top=xe,this.width=ke,this.height=nt}return ct.prototype.add=function(de,xe,ke,nt){return new ct(this.left+de,this.top+xe,this.width+ke,this.height+nt)},ct.fromClientRect=function(de,xe){return new ct(xe.left+de.windowBounds.left,xe.top+de.windowBounds.top,xe.width,xe.height)},ct.fromDOMRectList=function(de,xe){var ke=xe[0];return ke?new ct(ke.x+de.windowBounds.left,ke.y+de.windowBounds.top,ke.width,ke.height):ct.EMPTY},ct.EMPTY=new ct(0,0,0,0),ct}(),c=function(de,xe){return f.fromClientRect(de,xe.getBoundingClientRect())},o=function(de){var xe=de.body,ke=de.documentElement;if(!xe||!ke)throw new Error("Unable to get document size");var nt=Math.max(Math.max(xe.scrollWidth,ke.scrollWidth),Math.max(xe.offsetWidth,ke.offsetWidth),Math.max(xe.clientWidth,ke.clientWidth)),er=Math.max(Math.max(xe.scrollHeight,ke.scrollHeight),Math.max(xe.offsetHeight,ke.offsetHeight),Math.max(xe.clientHeight,ke.clientHeight));return new f(0,0,nt,er)},r=function(de){for(var xe=[],ke=0,nt=de.length;ke<nt;){var er=de.charCodeAt(ke++);if(er>=55296&&er<=56319&&ke<nt){var Wr=de.charCodeAt(ke++);(Wr&64512)===56320?xe.push(((er&1023)<<10)+(Wr&1023)+65536):(xe.push(er),ke--)}else xe.push(er)}return xe},a=function(){for(var de=[],xe=0;xe<arguments.length;xe++)de[xe]=arguments[xe];if(String.fromCodePoint)return String.fromCodePoint.apply(String,de);var ke=de.length;if(!ke)return"";for(var nt=[],er=-1,Wr="";++er<ke;){var sn=de[er];sn<=65535?nt.push(sn):(sn-=65536,nt.push((sn>>10)+55296,sn%1024+56320)),(er+1===ke||nt.length>16384)&&(Wr+=String.fromCharCode.apply(String,nt),nt.length=0)}return Wr},n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),s=0;s<n.length;s++)e[n.charCodeAt(s)]=s;var t=function(de){var xe=de.length*.75,ke=de.length,nt,er=0,Wr,sn,bn,Pn;de[de.length-1]==="="&&(xe--,de[de.length-2]==="="&&xe--);var Si=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(xe):new Array(xe),mi=Array.isArray(Si)?Si:new Uint8Array(Si);for(nt=0;nt<ke;nt+=4)Wr=e[de.charCodeAt(nt)],sn=e[de.charCodeAt(nt+1)],bn=e[de.charCodeAt(nt+2)],Pn=e[de.charCodeAt(nt+3)],mi[er++]=Wr<<2|sn>>4,mi[er++]=(sn&15)<<4|bn>>2,mi[er++]=(bn&3)<<6|Pn&63;return Si},i=function(de){for(var xe=de.length,ke=[],nt=0;nt<xe;nt+=2)ke.push(de[nt+1]<<8|de[nt]);return ke},l=function(de){for(var xe=de.length,ke=[],nt=0;nt<xe;nt+=4)ke.push(de[nt+3]<<24|de[nt+2]<<16|de[nt+1]<<8|de[nt]);return ke},u=5,h=6+5,p=2,g=h-u,A=65536>>u,y=1<<u,E=y-1,C=1024>>u,w=A+C,b=w,I=2048>>6,_=b+I,L=65536>>h,D=1<<g,N=D-1,R=function(de,xe,ke){return de.slice?de.slice(xe,ke):new Uint16Array(Array.prototype.slice.call(de,xe,ke))},B=function(de,xe,ke){return de.slice?de.slice(xe,ke):new Uint32Array(Array.prototype.slice.call(de,xe,ke))},M=function(de){var xe=t(de),ke=Array.isArray(xe)?l(xe):new Uint32Array(xe),nt=Array.isArray(xe)?i(xe):new Uint16Array(xe),er=24,Wr=R(nt,er/2,ke[4]/2),sn=ke[5]===2?R(nt,(er+ke[4])/2):B(ke,Math.ceil((er+ke[4])/4));return new H(ke[0],ke[1],ke[2],ke[3],Wr,sn)},H=function(){function ct(de,xe,ke,nt,er,Wr){this.initialValue=de,this.errorValue=xe,this.highStart=ke,this.highValueIndex=nt,this.index=er,this.data=Wr}return ct.prototype.get=function(de){var xe;if(de>=0){if(de<55296||de>56319&&de<=65535)return xe=this.index[de>>u],xe=(xe<<p)+(de&E),this.data[xe];if(de<=65535)return xe=this.index[A+(de-55296>>u)],xe=(xe<<p)+(de&E),this.data[xe];if(de<this.highStart)return xe=_-L+(de>>h),xe=this.index[xe],xe+=de>>u&N,xe=this.index[xe],xe=(xe<<p)+(de&E),this.data[xe];if(de<=1114111)return this.data[this.highValueIndex]}return this.errorValue},ct}(),F="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==",K=50,j=1,V=2,z=3,Y=4,ee=5,fe=7,ie=8,we=9,Ce=10,Le=11,He=12,ce=13,Pe=14,Q=15,me=16,Je=17,re=18,G=19,X=20,J=21,Ae=22,he=23,Me=24,Ie=25,oe=26,pe=27,Oe=28,Ye=29,it=30,et=31,Te=32,tt=33,ze=34,dt=35,Ot=36,Tt=37,Ct=38,Nt=39,Be=40,$=41,Z=42,Re=43,De=[9001,65288],ae="!",gt="\xD7",jt="\xF7",ut=M(F),rr=[it,Ot],pr=[j,V,z,ee],nn=[Ce,ie],mr=[pe,oe],vr=pr.concat(nn),$t=[Ct,Nt,Be,ze,dt],Xt=[Q,ce],ft=function(de,xe){xe===void 0&&(xe="strict");var ke=[],nt=[],er=[];return de.forEach(function(Wr,sn){var bn=ut.get(Wr);if(bn>K?(er.push(!0),bn-=K):er.push(!1),["normal","auto","loose"].indexOf(xe)!==-1&&[8208,8211,12316,12448].indexOf(Wr)!==-1)return nt.push(sn),ke.push(me);if(bn===Y||bn===Le){if(sn===0)return nt.push(sn),ke.push(it);var Pn=ke[sn-1];return vr.indexOf(Pn)===-1?(nt.push(nt[sn-1]),ke.push(Pn)):(nt.push(sn),ke.push(it))}if(nt.push(sn),bn===et)return ke.push(xe==="strict"?J:Tt);if(bn===Z)return ke.push(it);if(bn===Ye)return ke.push(it);if(bn===Re)return Wr>=131072&&Wr<=196605||Wr>=196608&&Wr<=262141?ke.push(Tt):ke.push(it);ke.push(bn)}),[nt,ke,er]},Ur=function(de,xe,ke,nt){var er=nt[ke];if(Array.isArray(de)?de.indexOf(er)!==-1:de===er)for(var Wr=ke;Wr<=nt.length;){Wr++;var sn=nt[Wr];if(sn===xe)return!0;if(sn!==Ce)break}if(er===Ce)for(var Wr=ke;Wr>0;){Wr--;var bn=nt[Wr];if(Array.isArray(de)?de.indexOf(bn)!==-1:de===bn)for(var Pn=ke;Pn<=nt.length;){Pn++;var sn=nt[Pn];if(sn===xe)return!0;if(sn!==Ce)break}if(bn!==Ce)break}return!1},yn=function(de,xe){for(var ke=de;ke>=0;){var nt=xe[ke];if(nt===Ce)ke--;else return nt}return 0},Dn=function(de,xe,ke,nt,er){if(ke[nt]===0)return gt;var Wr=nt-1;if(Array.isArray(er)&&er[Wr]===!0)return gt;var sn=Wr-1,bn=Wr+1,Pn=xe[Wr],Si=sn>=0?xe[sn]:0,mi=xe[bn];if(Pn===V&&mi===z)return gt;if(pr.indexOf(Pn)!==-1)return ae;if(pr.indexOf(mi)!==-1)return gt;if(nn.indexOf(mi)!==-1)return gt;if(yn(Wr,xe)===ie)return jt;if(ut.get(de[Wr])===Le)return gt;if((Pn===Te||Pn===tt)&&ut.get(de[bn])===Le)return gt;if(Pn===fe||mi===fe)return gt;if(Pn===we)return gt;if([Ce,ce,Q].indexOf(Pn)===-1&&mi===we)return gt;if([Je,re,G,Me,Oe].indexOf(mi)!==-1)return gt;if(yn(Wr,xe)===Ae)return gt;if(Ur(he,Ae,Wr,xe))return gt;if(Ur([Je,re],J,Wr,xe))return gt;if(Ur(He,He,Wr,xe))return gt;if(Pn===Ce)return jt;if(Pn===he||mi===he)return gt;if(mi===me||Pn===me)return jt;if([ce,Q,J].indexOf(mi)!==-1||Pn===Pe)return gt;if(Si===Ot&&Xt.indexOf(Pn)!==-1)return gt;if(Pn===Oe&&mi===Ot)return gt;if(mi===X)return gt;if(rr.indexOf(mi)!==-1&&Pn===Ie||rr.indexOf(Pn)!==-1&&mi===Ie)return gt;if(Pn===pe&&[Tt,Te,tt].indexOf(mi)!==-1||[Tt,Te,tt].indexOf(Pn)!==-1&&mi===oe)return gt;if(rr.indexOf(Pn)!==-1&&mr.indexOf(mi)!==-1||mr.indexOf(Pn)!==-1&&rr.indexOf(mi)!==-1)return gt;if([pe,oe].indexOf(Pn)!==-1&&(mi===Ie||[Ae,Q].indexOf(mi)!==-1&&xe[bn+1]===Ie)||[Ae,Q].indexOf(Pn)!==-1&&mi===Ie||Pn===Ie&&[Ie,Oe,Me].indexOf(mi)!==-1)return gt;if([Ie,Oe,Me,Je,re].indexOf(mi)!==-1)for(var _i=Wr;_i>=0;){var wa=xe[_i];if(wa===Ie)return gt;if([Oe,Me].indexOf(wa)!==-1)_i--;else break}if([pe,oe].indexOf(mi)!==-1)for(var _i=[Je,re].indexOf(Pn)!==-1?sn:Wr;_i>=0;){var wa=xe[_i];if(wa===Ie)return gt;if([Oe,Me].indexOf(wa)!==-1)_i--;else break}if(Ct===Pn&&[Ct,Nt,ze,dt].indexOf(mi)!==-1||[Nt,ze].indexOf(Pn)!==-1&&[Nt,Be].indexOf(mi)!==-1||[Be,dt].indexOf(Pn)!==-1&&mi===Be)return gt;if($t.indexOf(Pn)!==-1&&[X,oe].indexOf(mi)!==-1||$t.indexOf(mi)!==-1&&Pn===pe)return gt;if(rr.indexOf(Pn)!==-1&&rr.indexOf(mi)!==-1)return gt;if(Pn===Me&&rr.indexOf(mi)!==-1)return gt;if(rr.concat(Ie).indexOf(Pn)!==-1&&mi===Ae&&De.indexOf(de[bn])===-1||rr.concat(Ie).indexOf(mi)!==-1&&Pn===re)return gt;if(Pn===$&&mi===$){for(var Sa=ke[Wr],Ua=1;Sa>0&&(Sa--,xe[Sa]===$);)Ua++;if(Ua%2!==0)return gt}return Pn===Te&&mi===tt?gt:jt},Un=function(de,xe){xe||(xe={lineBreak:"normal",wordBreak:"normal"});var ke=ft(de,xe.lineBreak),nt=ke[0],er=ke[1],Wr=ke[2];(xe.wordBreak==="break-all"||xe.wordBreak==="break-word")&&(er=er.map(function(bn){return[Ie,it,Z].indexOf(bn)!==-1?Tt:bn}));var sn=xe.wordBreak==="keep-all"?Wr.map(function(bn,Pn){return bn&&de[Pn]>=19968&&de[Pn]<=40959}):void 0;return[nt,er,sn]},wi=function(){function ct(de,xe,ke,nt){this.codePoints=de,this.required=xe===ae,this.start=ke,this.end=nt}return ct.prototype.slice=function(){return a.apply(void 0,this.codePoints.slice(this.start,this.end))},ct}(),Rn=function(de,xe){var ke=r(de),nt=Un(ke,xe),er=nt[0],Wr=nt[1],sn=nt[2],bn=ke.length,Pn=0,Si=0;return{next:function(){if(Si>=bn)return{done:!0,value:null};for(var _i=gt;Si<bn&&(_i=Dn(ke,Wr,er,++Si,sn))===gt;);if(_i!==gt||Si===bn){var wa=new wi(ke,_i,Pn,Si);return Pn=Si,{value:wa,done:!1}}return{done:!0,value:null}}}},kn=1<<0,Vn=1<<1,Gt=1<<2,st=1<<3,ue=10,Ee=47,je=92,Ve=9,$e=32,wt=34,qt=61,Mr=35,an=36,_t=37,at=39,bt=40,kt=41,Pt=95,Et=45,Ht=33,ot=60,Mt=62,xr=64,ur=91,gr=93,Qr=61,ln=123,_n=63,Mn=125,li=124,ai=126,pi=128,Oi=65533,Ze=42,be=43,Ne=44,Ue=58,Qe=59,Xe=46,qe=0,yt=8,ht=11,Jt=14,kr=31,_r=127,Xr=-1,Bt=48,gn=97,hr=101,vn=102,en=117,Dt=122,jr=65,un=69,Hr=70,Wt=85,wr=90,fn=function(de){return de>=Bt&&de<=57},zt=function(de){return de>=55296&&de<=57343},Dr=function(de){return fn(de)||de>=jr&&de<=Hr||de>=gn&&de<=vn},ir=function(de){return de>=gn&&de<=Dt},Lt=function(de){return de>=jr&&de<=wr},Qt=function(de){return ir(de)||Lt(de)},It=function(de){return de>=pi},or=function(de){return de===ue||de===Ve||de===$e},Cr=function(de){return Qt(de)||It(de)||de===Pt},Er=function(de){return Cr(de)||fn(de)||de===Et},Kr=function(de){return de>=qe&&de<=yt||de===ht||de>=Jt&&de<=kr||de===_r},jn=function(de,xe){return de!==je?!1:xe!==ue},Nn=function(de,xe,ke){return de===Et?Cr(xe)||jn(xe,ke):Cr(de)?!0:!!(de===je&&jn(de,xe))},ei=function(de,xe,ke){return de===be||de===Et?fn(xe)?!0:xe===Xe&&fn(ke):de===Xe?fn(xe):fn(de)},Zr=function(de){var xe=0,ke=1;(de[xe]===be||de[xe]===Et)&&(de[xe]===Et&&(ke=-1),xe++);for(var nt=[];fn(de[xe]);)nt.push(de[xe++]);var er=nt.length?parseInt(a.apply(void 0,nt),10):0;de[xe]===Xe&&xe++;for(var Wr=[];fn(de[xe]);)Wr.push(de[xe++]);var sn=Wr.length,bn=sn?parseInt(a.apply(void 0,Wr),10):0;(de[xe]===un||de[xe]===hr)&&xe++;var Pn=1;(de[xe]===be||de[xe]===Et)&&(de[xe]===Et&&(Pn=-1),xe++);for(var Si=[];fn(de[xe]);)Si.push(de[xe++]);var mi=Si.length?parseInt(a.apply(void 0,Si),10):0;return ke*(er+bn*Math.pow(10,-sn))*Math.pow(10,Pn*mi)},br={type:2},dn={type:3},Ln={type:4},Fn={type:13},zn={type:8},ui={type:21},ii={type:9},qn={type:10},Li={type:11},zi={type:12},Ri={type:14},ga={type:23},oi={type:1},hn={type:25},Ei={type:24},Hi={type:26},ki={type:27},ji={type:28},dr={type:29},sr={type:31},cn={type:32},Zt=function(){function ct(){this._value=[]}return ct.prototype.write=function(de){this._value=this._value.concat(r(de))},ct.prototype.read=function(){for(var de=[],xe=this.consumeToken();xe!==cn;)de.push(xe),xe=this.consumeToken();return de},ct.prototype.consumeToken=function(){var de=this.consumeCodePoint();switch(de){case wt:return this.consumeStringToken(wt);case Mr:var xe=this.peekCodePoint(0),ke=this.peekCodePoint(1),nt=this.peekCodePoint(2);if(Er(xe)||jn(ke,nt)){var er=Nn(xe,ke,nt)?Vn:kn,Wr=this.consumeName();return{type:5,value:Wr,flags:er}}break;case an:if(this.peekCodePoint(0)===qt)return this.consumeCodePoint(),Fn;break;case at:return this.consumeStringToken(at);case bt:return br;case kt:return dn;case Ze:if(this.peekCodePoint(0)===qt)return this.consumeCodePoint(),Ri;break;case be:if(ei(de,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(de),this.consumeNumericToken();break;case Ne:return Ln;case Et:var sn=de,bn=this.peekCodePoint(0),Pn=this.peekCodePoint(1);if(ei(sn,bn,Pn))return this.reconsumeCodePoint(de),this.consumeNumericToken();if(Nn(sn,bn,Pn))return this.reconsumeCodePoint(de),this.consumeIdentLikeToken();if(bn===Et&&Pn===Mt)return this.consumeCodePoint(),this.consumeCodePoint(),Ei;break;case Xe:if(ei(de,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(de),this.consumeNumericToken();break;case Ee:if(this.peekCodePoint(0)===Ze)for(this.consumeCodePoint();;){var Si=this.consumeCodePoint();if(Si===Ze&&(Si=this.consumeCodePoint(),Si===Ee))return this.consumeToken();if(Si===Xr)return this.consumeToken()}break;case Ue:return Hi;case Qe:return ki;case ot:if(this.peekCodePoint(0)===Ht&&this.peekCodePoint(1)===Et&&this.peekCodePoint(2)===Et)return this.consumeCodePoint(),this.consumeCodePoint(),hn;break;case xr:var mi=this.peekCodePoint(0),_i=this.peekCodePoint(1),wa=this.peekCodePoint(2);if(Nn(mi,_i,wa)){var Wr=this.consumeName();return{type:7,value:Wr}}break;case ur:return ji;case je:if(jn(de,this.peekCodePoint(0)))return this.reconsumeCodePoint(de),this.consumeIdentLikeToken();break;case gr:return dr;case Qr:if(this.peekCodePoint(0)===qt)return this.consumeCodePoint(),zn;break;case ln:return Li;case Mn:return zi;case en:case Wt:var Sa=this.peekCodePoint(0),Ua=this.peekCodePoint(1);return Sa===be&&(Dr(Ua)||Ua===_n)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(de),this.consumeIdentLikeToken();case li:if(this.peekCodePoint(0)===qt)return this.consumeCodePoint(),ii;if(this.peekCodePoint(0)===li)return this.consumeCodePoint(),ui;break;case ai:if(this.peekCodePoint(0)===qt)return this.consumeCodePoint(),qn;break;case Xr:return cn}return or(de)?(this.consumeWhiteSpace(),sr):fn(de)?(this.reconsumeCodePoint(de),this.consumeNumericToken()):Cr(de)?(this.reconsumeCodePoint(de),this.consumeIdentLikeToken()):{type:6,value:a(de)}},ct.prototype.consumeCodePoint=function(){var de=this._value.shift();return typeof de=="undefined"?-1:de},ct.prototype.reconsumeCodePoint=function(de){this._value.unshift(de)},ct.prototype.peekCodePoint=function(de){return de>=this._value.length?-1:this._value[de]},ct.prototype.consumeUnicodeRangeToken=function(){for(var de=[],xe=this.consumeCodePoint();Dr(xe)&&de.length<6;)de.push(xe),xe=this.consumeCodePoint();for(var ke=!1;xe===_n&&de.length<6;)de.push(xe),xe=this.consumeCodePoint(),ke=!0;if(ke){var nt=parseInt(a.apply(void 0,de.map(function(bn){return bn===_n?Bt:bn})),16),er=parseInt(a.apply(void 0,de.map(function(bn){return bn===_n?Hr:bn})),16);return{type:30,start:nt,end:er}}var Wr=parseInt(a.apply(void 0,de),16);if(this.peekCodePoint(0)===Et&&Dr(this.peekCodePoint(1))){this.consumeCodePoint(),xe=this.consumeCodePoint();for(var sn=[];Dr(xe)&&sn.length<6;)sn.push(xe),xe=this.consumeCodePoint();var er=parseInt(a.apply(void 0,sn),16);return{type:30,start:Wr,end:er}}else return{type:30,start:Wr,end:Wr}},ct.prototype.consumeIdentLikeToken=function(){var de=this.consumeName();return de.toLowerCase()==="url"&&this.peekCodePoint(0)===bt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===bt?(this.consumeCodePoint(),{type:19,value:de}):{type:20,value:de}},ct.prototype.consumeUrlToken=function(){var de=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Xr)return{type:22,value:""};var xe=this.peekCodePoint(0);if(xe===at||xe===wt){var ke=this.consumeStringToken(this.consumeCodePoint());return ke.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Xr||this.peekCodePoint(0)===kt)?(this.consumeCodePoint(),{type:22,value:ke.value}):(this.consumeBadUrlRemnants(),ga)}for(;;){var nt=this.consumeCodePoint();if(nt===Xr||nt===kt)return{type:22,value:a.apply(void 0,de)};if(or(nt))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Xr||this.peekCodePoint(0)===kt?(this.consumeCodePoint(),{type:22,value:a.apply(void 0,de)}):(this.consumeBadUrlRemnants(),ga);if(nt===wt||nt===at||nt===bt||Kr(nt))return this.consumeBadUrlRemnants(),ga;if(nt===je)if(jn(nt,this.peekCodePoint(0)))de.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ga;else de.push(nt)}},ct.prototype.consumeWhiteSpace=function(){for(;or(this.peekCodePoint(0));)this.consumeCodePoint()},ct.prototype.consumeBadUrlRemnants=function(){for(;;){var de=this.consumeCodePoint();if(de===kt||de===Xr)return;jn(de,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},ct.prototype.consumeStringSlice=function(de){for(var xe=6e4,ke="";de>0;){var nt=Math.min(xe,de);ke+=a.apply(void 0,this._value.splice(0,nt)),de-=nt}return this._value.shift(),ke},ct.prototype.consumeStringToken=function(de){var xe="",ke=0;do{var nt=this._value[ke];if(nt===Xr||nt===void 0||nt===de)return xe+=this.consumeStringSlice(ke),{type:0,value:xe};if(nt===ue)return this._value.splice(0,ke),oi;if(nt===je){var er=this._value[ke+1];er!==Xr&&er!==void 0&&(er===ue?(xe+=this.consumeStringSlice(ke),ke=-1,this._value.shift()):jn(nt,er)&&(xe+=this.consumeStringSlice(ke),xe+=a(this.consumeEscapedCodePoint()),ke=-1))}ke++}while(!0)},ct.prototype.consumeNumber=function(){var de=[],xe=Gt,ke=this.peekCodePoint(0);for((ke===be||ke===Et)&&de.push(this.consumeCodePoint());fn(this.peekCodePoint(0));)de.push(this.consumeCodePoint());ke=this.peekCodePoint(0);var nt=this.peekCodePoint(1);if(ke===Xe&&fn(nt))for(de.push(this.consumeCodePoint(),this.consumeCodePoint()),xe=st;fn(this.peekCodePoint(0));)de.push(this.consumeCodePoint());ke=this.peekCodePoint(0),nt=this.peekCodePoint(1);var er=this.peekCodePoint(2);if((ke===un||ke===hr)&&((nt===be||nt===Et)&&fn(er)||fn(nt)))for(de.push(this.consumeCodePoint(),this.consumeCodePoint()),xe=st;fn(this.peekCodePoint(0));)de.push(this.consumeCodePoint());return[Zr(de),xe]},ct.prototype.consumeNumericToken=function(){var de=this.consumeNumber(),xe=de[0],ke=de[1],nt=this.peekCodePoint(0),er=this.peekCodePoint(1),Wr=this.peekCodePoint(2);if(Nn(nt,er,Wr)){var sn=this.consumeName();return{type:15,number:xe,flags:ke,unit:sn}}return nt===_t?(this.consumeCodePoint(),{type:16,number:xe,flags:ke}):{type:17,number:xe,flags:ke}},ct.prototype.consumeEscapedCodePoint=function(){var de=this.consumeCodePoint();if(Dr(de)){for(var xe=a(de);Dr(this.peekCodePoint(0))&&xe.length<6;)xe+=a(this.consumeCodePoint());or(this.peekCodePoint(0))&&this.consumeCodePoint();var ke=parseInt(xe,16);return ke===0||zt(ke)||ke>1114111?Oi:ke}return de===Xr?Oi:de},ct.prototype.consumeName=function(){for(var de="";;){var xe=this.consumeCodePoint();if(Er(xe))de+=a(xe);else if(jn(xe,this.peekCodePoint(0)))de+=a(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(xe),de}},ct}(),Ar=function(){function ct(de){this._tokens=de}return ct.create=function(de){var xe=new Zt;return xe.write(de),new ct(xe.read())},ct.parseValue=function(de){return ct.create(de).parseComponentValue()},ct.parseValues=function(de){return ct.create(de).parseComponentValues()},ct.prototype.parseComponentValue=function(){for(var de=this.consumeToken();de.type===31;)de=this.consumeToken();if(de.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(de);var xe=this.consumeComponentValue();do de=this.consumeToken();while(de.type===31);if(de.type===32)return xe;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},ct.prototype.parseComponentValues=function(){for(var de=[];;){var xe=this.consumeComponentValue();if(xe.type===32)return de;de.push(xe),de.push()}},ct.prototype.consumeComponentValue=function(){var de=this.consumeToken();switch(de.type){case 11:case 28:case 2:return this.consumeSimpleBlock(de.type);case 19:return this.consumeFunction(de)}return de},ct.prototype.consumeSimpleBlock=function(de){for(var xe={type:de,values:[]},ke=this.consumeToken();;){if(ke.type===32||wn(ke,de))return xe;this.reconsumeToken(ke),xe.values.push(this.consumeComponentValue()),ke=this.consumeToken()}},ct.prototype.consumeFunction=function(de){for(var xe={name:de.value,values:[],type:18};;){var ke=this.consumeToken();if(ke.type===32||ke.type===3)return xe;this.reconsumeToken(ke),xe.values.push(this.consumeComponentValue())}},ct.prototype.consumeToken=function(){var de=this._tokens.shift();return typeof de=="undefined"?cn:de},ct.prototype.reconsumeToken=function(de){this._tokens.unshift(de)},ct}(),Nr=function(de){return de.type===15},tn=function(de){return de.type===17},pn=function(de){return de.type===20},St=function(de){return de.type===0},cr=function(de,xe){return pn(de)&&de.value===xe},fr=function(de){return de.type!==31},Br=function(de){return de.type!==31&&de.type!==4},$r=function(de){var xe=[],ke=[];return de.forEach(function(nt){if(nt.type===4){if(ke.length===0)throw new Error("Error parsing function args, zero tokens for arg");xe.push(ke),ke=[];return}nt.type!==31&&ke.push(nt)}),ke.length&&xe.push(ke),xe},wn=function(de,xe){return xe===11&&de.type===12||xe===28&&de.type===29?!0:xe===2&&de.type===3},rn=function(de){return de.type===17||de.type===15},On=function(de){return de.type===16||rn(de)},In=function(de){return de.length>1?[de[0],de[1]]:[de[0]]},Gn={type:17,number:0,flags:Gt},fi={type:16,number:50,flags:Gt},Yn={type:16,number:100,flags:Gt},gi=function(de,xe,ke){var nt=de[0],er=de[1];return[vi(nt,xe),vi(typeof er!="undefined"?er:nt,ke)]},vi=function(de,xe){if(de.type===16)return de.number/100*xe;if(Nr(de))switch(de.unit){case"rem":case"em":return 16*de.number;case"px":default:return de.number}return de.number},Di="deg",Mi="grad",xi="rad",bi="turn",Ci={name:"angle",parse:function(de,xe){if(xe.type===15)switch(xe.unit){case Di:return Math.PI*xe.number/180;case Mi:return Math.PI/200*xe.number;case xi:return xe.number;case bi:return Math.PI*2*xe.number}throw new Error("Unsupported angle type")}},$i=function(de){return de.type===15&&(de.unit===Di||de.unit===Mi||de.unit===xi||de.unit===bi)},qi=function(de){var xe=de.filter(pn).map(function(ke){return ke.value}).join(" ");switch(xe){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Gn,Gn];case"to top":case"bottom":return Ti(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Gn,Yn];case"to right":case"left":return Ti(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Yn,Yn];case"to bottom":case"top":return Ti(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Yn,Gn];case"to left":case"right":return Ti(270)}return 0},Ti=function(de){return Math.PI*de/180},ia={name:"color",parse:function(de,xe){if(xe.type===18){var ke=Pa[xe.name];if(typeof ke=="undefined")throw new Error('Attempting to parse an unsupported color function "'+xe.name+'"');return ke(de,xe.values)}if(xe.type===5){if(xe.value.length===3){var nt=xe.value.substring(0,1),er=xe.value.substring(1,2),Wr=xe.value.substring(2,3);return Ki(parseInt(nt+nt,16),parseInt(er+er,16),parseInt(Wr+Wr,16),1)}if(xe.value.length===4){var nt=xe.value.substring(0,1),er=xe.value.substring(1,2),Wr=xe.value.substring(2,3),sn=xe.value.substring(3,4);return Ki(parseInt(nt+nt,16),parseInt(er+er,16),parseInt(Wr+Wr,16),parseInt(sn+sn,16)/255)}if(xe.value.length===6){var nt=xe.value.substring(0,2),er=xe.value.substring(2,4),Wr=xe.value.substring(4,6);return Ki(parseInt(nt,16),parseInt(er,16),parseInt(Wr,16),1)}if(xe.value.length===8){var nt=xe.value.substring(0,2),er=xe.value.substring(2,4),Wr=xe.value.substring(4,6),sn=xe.value.substring(6,8);return Ki(parseInt(nt,16),parseInt(er,16),parseInt(Wr,16),parseInt(sn,16)/255)}}if(xe.type===20){var bn=Ia[xe.value.toUpperCase()];if(typeof bn!="undefined")return bn}return Ia.TRANSPARENT}},na=function(de){return(255&de)===0},Ui=function(de){var xe=255&de,ke=255&de>>8,nt=255&de>>16,er=255&de>>24;return xe<255?"rgba("+er+","+nt+","+ke+","+xe/255+")":"rgb("+er+","+nt+","+ke+")"},Ki=function(de,xe,ke,nt){return(de<<24|xe<<16|ke<<8|Math.round(nt*255)<<0)>>>0},ra=function(de,xe){if(de.type===17)return de.number;if(de.type===16){var ke=xe===3?1:255;return xe===3?de.number/100*ke:Math.round(de.number/100*ke)}return 0},ea=function(de,xe){var ke=xe.filter(Br);if(ke.length===3){var nt=ke.map(ra),er=nt[0],Wr=nt[1],sn=nt[2];return Ki(er,Wr,sn,1)}if(ke.length===4){var bn=ke.map(ra),er=bn[0],Wr=bn[1],sn=bn[2],Pn=bn[3];return Ki(er,Wr,sn,Pn)}return 0};function va(ct,de,xe){return xe<0&&(xe+=1),xe>=1&&(xe-=1),xe<1/6?(de-ct)*xe*6+ct:xe<1/2?de:xe<2/3?(de-ct)*6*(2/3-xe)+ct:ct}var sa=function(de,xe){var ke=xe.filter(Br),nt=ke[0],er=ke[1],Wr=ke[2],sn=ke[3],bn=(nt.type===17?Ti(nt.number):Ci.parse(de,nt))/(Math.PI*2),Pn=On(er)?er.number/100:0,Si=On(Wr)?Wr.number/100:0,mi=typeof sn!="undefined"&&On(sn)?vi(sn,1):1;if(Pn===0)return Ki(Si*255,Si*255,Si*255,1);var _i=Si<=.5?Si*(Pn+1):Si+Pn-Si*Pn,wa=Si*2-_i,Sa=va(wa,_i,bn+1/3),Ua=va(wa,_i,bn),ko=va(wa,_i,bn-1/3);return Ki(Sa*255,Ua*255,ko*255,mi)},Pa={hsl:sa,hsla:sa,rgb:ea,rgba:ea},ka=function(de,xe){return ia.parse(de,Ar.create(xe).parseComponentValue())},Ia={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},Ea;(function(ct){ct[ct.BORDER_BOX=0]="BORDER_BOX",ct[ct.PADDING_BOX=1]="PADDING_BOX",ct[ct.CONTENT_BOX=2]="CONTENT_BOX"})(Ea||(Ea={}));var So={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(de,xe){return xe.map(function(ke){if(pn(ke))switch(ke.value){case"padding-box":return Ea.PADDING_BOX;case"content-box":return Ea.CONTENT_BOX}return Ea.BORDER_BOX})}},Ga={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Va=function(de,xe){var ke=ia.parse(de,xe[0]),nt=xe[1];return nt&&On(nt)?{color:ke,stop:nt}:{color:ke,stop:null}},Ra=function(de,xe){var ke=de[0],nt=de[de.length-1];ke.stop===null&&(ke.stop=Gn),nt.stop===null&&(nt.stop=Yn);for(var er=[],Wr=0,sn=0;sn<de.length;sn++){var bn=de[sn].stop;if(bn!==null){var Pn=vi(bn,xe);Pn>Wr?er.push(Pn):er.push(Wr),Wr=Pn}else er.push(null)}for(var Si=null,sn=0;sn<er.length;sn++){var mi=er[sn];if(mi===null)Si===null&&(Si=sn);else if(Si!==null){for(var _i=sn-Si,wa=er[Si-1],Sa=(mi-wa)/(_i+1),Ua=1;Ua<=_i;Ua++)er[Si+Ua-1]=Sa*Ua;Si=null}}return de.map(function(ko,fo){var io=ko.color;return{color:io,stop:Math.max(Math.min(1,er[fo]/xe),0)}})},po=function(de,xe,ke){var nt=xe/2,er=ke/2,Wr=vi(de[0],xe)-nt,sn=er-vi(de[1],ke);return(Math.atan2(sn,Wr)+Math.PI*2)%(Math.PI*2)},mo=function(de,xe,ke){var nt=typeof de=="number"?de:po(de,xe,ke),er=Math.abs(xe*Math.sin(nt))+Math.abs(ke*Math.cos(nt)),Wr=xe/2,sn=ke/2,bn=er/2,Pn=Math.sin(nt-Math.PI/2)*bn,Si=Math.cos(nt-Math.PI/2)*bn;return[er,Wr-Si,Wr+Si,sn-Pn,sn+Pn]},Aa=function(de,xe){return Math.sqrt(de*de+xe*xe)},Io=function(de,xe,ke,nt,er){var Wr=[[0,0],[0,xe],[de,0],[de,xe]];return Wr.reduce(function(sn,bn){var Pn=bn[0],Si=bn[1],mi=Aa(ke-Pn,nt-Si);return(er?mi<sn.optimumDistance:mi>sn.optimumDistance)?{optimumCorner:bn,optimumDistance:mi}:sn},{optimumDistance:er?Infinity:-Infinity,optimumCorner:null}).optimumCorner},go=function(de,xe,ke,nt,er){var Wr=0,sn=0;switch(de.size){case zr.CLOSEST_SIDE:de.shape===En.CIRCLE?Wr=sn=Math.min(Math.abs(xe),Math.abs(xe-nt),Math.abs(ke),Math.abs(ke-er)):de.shape===En.ELLIPSE&&(Wr=Math.min(Math.abs(xe),Math.abs(xe-nt)),sn=Math.min(Math.abs(ke),Math.abs(ke-er)));break;case zr.CLOSEST_CORNER:if(de.shape===En.CIRCLE)Wr=sn=Math.min(Aa(xe,ke),Aa(xe,ke-er),Aa(xe-nt,ke),Aa(xe-nt,ke-er));else if(de.shape===En.ELLIPSE){var bn=Math.min(Math.abs(ke),Math.abs(ke-er))/Math.min(Math.abs(xe),Math.abs(xe-nt)),Pn=Io(nt,er,xe,ke,!0),Si=Pn[0],mi=Pn[1];Wr=Aa(Si-xe,(mi-ke)/bn),sn=bn*Wr}break;case zr.FARTHEST_SIDE:de.shape===En.CIRCLE?Wr=sn=Math.max(Math.abs(xe),Math.abs(xe-nt),Math.abs(ke),Math.abs(ke-er)):de.shape===En.ELLIPSE&&(Wr=Math.max(Math.abs(xe),Math.abs(xe-nt)),sn=Math.max(Math.abs(ke),Math.abs(ke-er)));break;case zr.FARTHEST_CORNER:if(de.shape===En.CIRCLE)Wr=sn=Math.max(Aa(xe,ke),Aa(xe,ke-er),Aa(xe-nt,ke),Aa(xe-nt,ke-er));else if(de.shape===En.ELLIPSE){var bn=Math.max(Math.abs(ke),Math.abs(ke-er))/Math.max(Math.abs(xe),Math.abs(xe-nt)),_i=Io(nt,er,xe,ke,!1),Si=_i[0],mi=_i[1];Wr=Aa(Si-xe,(mi-ke)/bn),sn=bn*Wr}break}return Array.isArray(de.size)&&(Wr=vi(de.size[0],nt),sn=de.size.length===2?vi(de.size[1],er):Wr),[Wr,sn]},Qa=function(de,xe){var ke=Ti(180),nt=[];return $r(xe).forEach(function(er,Wr){if(Wr===0){var sn=er[0];if(sn.type===20&&sn.value==="to"){ke=qi(er);return}else if($i(sn)){ke=Ci.parse(de,sn);return}}var bn=Va(de,er);nt.push(bn)}),{angle:ke,stops:nt,type:ar.LINEAR_GRADIENT}},wo=function(de,xe){var ke=Ti(180),nt=[];return $r(xe).forEach(function(er,Wr){if(Wr===0){var sn=er[0];if(sn.type===20&&["top","left","right","bottom"].indexOf(sn.value)!==-1){ke=qi(er);return}else if($i(sn)){ke=(Ci.parse(de,sn)+Ti(270))%Ti(360);return}}var bn=Va(de,er);nt.push(bn)}),{angle:ke,stops:nt,type:ar.LINEAR_GRADIENT}},pa=function(de,xe){var ke=Ti(180),nt=[],er=ar.LINEAR_GRADIENT,Wr=En.CIRCLE,sn=zr.FARTHEST_CORNER,bn=[];return $r(xe).forEach(function(Pn,Si){var mi=Pn[0];if(Si===0){if(pn(mi)&&mi.value==="linear"){er=ar.LINEAR_GRADIENT;return}else if(pn(mi)&&mi.value==="radial"){er=ar.RADIAL_GRADIENT;return}}if(mi.type===18){if(mi.name==="from"){var _i=ia.parse(de,mi.values[0]);nt.push({stop:Gn,color:_i})}else if(mi.name==="to"){var _i=ia.parse(de,mi.values[0]);nt.push({stop:Yn,color:_i})}else if(mi.name==="color-stop"){var wa=mi.values.filter(Br);if(wa.length===2){var _i=ia.parse(de,wa[1]),Sa=wa[0];tn(Sa)&&nt.push({stop:{type:16,number:Sa.number*100,flags:Sa.flags},color:_i})}}}}),er===ar.LINEAR_GRADIENT?{angle:(ke+Ti(180))%Ti(360),stops:nt,type:er}:{size:sn,shape:Wr,stops:nt,position:bn,type:er}},to="closest-side",ao="farthest-side",Bo="closest-corner",Ja="farthest-corner",_o="circle",Ao="ellipse",za="cover",ja="contain",da=function(de,xe){var ke=En.CIRCLE,nt=zr.FARTHEST_CORNER,er=[],Wr=[];return $r(xe).forEach(function(sn,bn){var Pn=!0;if(bn===0){var Si=!1;Pn=sn.reduce(function(_i,wa){if(Si)if(pn(wa))switch(wa.value){case"center":return Wr.push(fi),_i;case"top":case"left":return Wr.push(Gn),_i;case"right":case"bottom":return Wr.push(Yn),_i}else(On(wa)||rn(wa))&&Wr.push(wa);else if(pn(wa))switch(wa.value){case _o:return ke=En.CIRCLE,!1;case Ao:return ke=En.ELLIPSE,!1;case"at":return Si=!0,!1;case to:return nt=zr.CLOSEST_SIDE,!1;case za:case ao:return nt=zr.FARTHEST_SIDE,!1;case ja:case Bo:return nt=zr.CLOSEST_CORNER,!1;case Ja:return nt=zr.FARTHEST_CORNER,!1}else if(rn(wa)||On(wa))return Array.isArray(nt)||(nt=[]),nt.push(wa),!1;return _i},Pn)}if(Pn){var mi=Va(de,sn);er.push(mi)}}),{size:nt,shape:ke,stops:er,position:Wr,type:ar.RADIAL_GRADIENT}},rt=function(de,xe){var ke=En.CIRCLE,nt=zr.FARTHEST_CORNER,er=[],Wr=[];return $r(xe).forEach(function(sn,bn){var Pn=!0;if(bn===0?Pn=sn.reduce(function(mi,_i){if(pn(_i))switch(_i.value){case"center":return Wr.push(fi),!1;case"top":case"left":return Wr.push(Gn),!1;case"right":case"bottom":return Wr.push(Yn),!1}else if(On(_i)||rn(_i))return Wr.push(_i),!1;return mi},Pn):bn===1&&(Pn=sn.reduce(function(mi,_i){if(pn(_i))switch(_i.value){case _o:return ke=En.CIRCLE,!1;case Ao:return ke=En.ELLIPSE,!1;case ja:case to:return nt=zr.CLOSEST_SIDE,!1;case ao:return nt=zr.FARTHEST_SIDE,!1;case Bo:return nt=zr.CLOSEST_CORNER,!1;case za:case Ja:return nt=zr.FARTHEST_CORNER,!1}else if(rn(_i)||On(_i))return Array.isArray(nt)||(nt=[]),nt.push(_i),!1;return mi},Pn)),Pn){var Si=Va(de,sn);er.push(Si)}}),{size:nt,shape:ke,stops:er,position:Wr,type:ar.RADIAL_GRADIENT}},ar;(function(ct){ct[ct.URL=0]="URL",ct[ct.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",ct[ct.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"})(ar||(ar={}));var Fr=function(de){return de.type===ar.LINEAR_GRADIENT},Ir=function(de){return de.type===ar.RADIAL_GRADIENT},En;(function(ct){ct[ct.CIRCLE=0]="CIRCLE",ct[ct.ELLIPSE=1]="ELLIPSE"})(En||(En={}));var zr;(function(ct){ct[ct.CLOSEST_SIDE=0]="CLOSEST_SIDE",ct[ct.FARTHEST_SIDE=1]="FARTHEST_SIDE",ct[ct.CLOSEST_CORNER=2]="CLOSEST_CORNER",ct[ct.FARTHEST_CORNER=3]="FARTHEST_CORNER"})(zr||(zr={}));var yr={name:"image",parse:function(de,xe){if(xe.type===22){var ke={url:xe.value,type:ar.URL};return de.cache.addImage(xe.value),ke}if(xe.type===18){var nt=Pr[xe.name];if(typeof nt=="undefined")throw new Error('Attempting to parse an unsupported image function "'+xe.name+'"');return nt(de,xe.values)}throw new Error("Unsupported image type "+xe.type)}};function Cn(ct){return!(ct.type===20&&ct.value==="none")&&(ct.type!==18||!!Pr[ct.name])}var Pr={"linear-gradient":Qa,"-moz-linear-gradient":wo,"-ms-linear-gradient":wo,"-o-linear-gradient":wo,"-webkit-linear-gradient":wo,"radial-gradient":da,"-moz-radial-gradient":rt,"-ms-radial-gradient":rt,"-o-radial-gradient":rt,"-webkit-radial-gradient":rt,"-webkit-gradient":pa},xn={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(de,xe){if(xe.length===0)return[];var ke=xe[0];return ke.type===20&&ke.value==="none"?[]:xe.filter(function(nt){return Br(nt)&&Cn(nt)}).map(function(nt){return yr.parse(de,nt)})}},Qn={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(de,xe){return xe.map(function(ke){if(pn(ke))switch(ke.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},$n={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(de,xe){return $r(xe).map(function(ke){return ke.filter(On)}).map(In)}},Kn;(function(ct){ct[ct.REPEAT=0]="REPEAT",ct[ct.NO_REPEAT=1]="NO_REPEAT",ct[ct.REPEAT_X=2]="REPEAT_X",ct[ct.REPEAT_Y=3]="REPEAT_Y"})(Kn||(Kn={}));var si={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(de,xe){return $r(xe).map(function(ke){return ke.filter(pn).map(function(nt){return nt.value}).join(" ")}).map(Xn)}},Xn=function(de){switch(de){case"no-repeat":return Kn.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return Kn.REPEAT_X;case"repeat-y":case"no-repeat repeat":return Kn.REPEAT_Y;case"repeat":default:return Kn.REPEAT}},ti;(function(ct){ct.AUTO="auto",ct.CONTAIN="contain",ct.COVER="cover"})(ti||(ti={}));var di={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(de,xe){return $r(xe).map(function(ke){return ke.filter(Bi)})}},Bi=function(de){return pn(de)||On(de)},yi=function(de){return{name:"border-"+de+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Xi=yi("top"),ba=yi("right"),ta=yi("bottom"),Qi=yi("left"),aa=function(de){return{name:"border-radius-"+de,initialValue:"0 0",prefix:!1,type:1,parse:function(ke,nt){return In(nt.filter(On))}}},fa=aa("top-left"),xo=aa("top-right"),Za=aa("bottom-right"),Wi=aa("bottom-left"),Gi;(function(ct){ct[ct.NONE=0]="NONE",ct[ct.SOLID=1]="SOLID",ct[ct.DASHED=2]="DASHED",ct[ct.DOTTED=3]="DOTTED",ct[ct.DOUBLE=4]="DOUBLE"})(Gi||(Gi={}));var ca=function(de){return{name:"border-"+de+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(ke,nt){switch(nt){case"none":return Gi.NONE;case"dashed":return Gi.DASHED;case"dotted":return Gi.DOTTED;case"double":return Gi.DOUBLE}return Gi.SOLID}}},ya=ca("top"),Xa=ca("right"),_a=ca("bottom"),qa=ca("left"),ro=function(de){return{name:"border-"+de+"-width",initialValue:"0",type:0,prefix:!1,parse:function(ke,nt){return Nr(nt)?nt.number:0}}},Uo=ro("top"),zo=ro("right"),hs=ro("bottom"),Po=ro("left"),Mo={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Fa={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(de,xe){switch(xe){case"rtl":return 1;case"ltr":default:return 0}}},$a={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(de,xe){return xe.filter(pn).reduce(function(ke,nt){return ke|Ca(nt.value)},0)}},Ca=function(de){switch(de){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},Eo;(function(ct){ct[ct.NONE=0]="NONE",ct[ct.LEFT=1]="LEFT",ct[ct.RIGHT=2]="RIGHT",ct[ct.INLINE_START=3]="INLINE_START",ct[ct.INLINE_END=4]="INLINE_END"})(Eo||(Eo={}));var qo={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(de,xe){switch(xe){case"left":return Eo.LEFT;case"right":return Eo.RIGHT;case"inline-start":return Eo.INLINE_START;case"inline-end":return Eo.INLINE_END}return Eo.NONE}},vo={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(de,xe){return xe.type===20&&xe.value==="normal"?0:xe.type===17||xe.type===15?xe.number:0}},rs;(function(ct){ct.NORMAL="normal",ct.STRICT="strict"})(rs||(rs={}));var ho={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(de,xe){switch(xe){case"strict":return rs.STRICT;case"normal":default:return rs.NORMAL}}},No={name:"line-height",initialValue:"normal",prefix:!1,type:4},us=function(de,xe){return pn(de)&&de.value==="normal"?1.2*xe:de.type===17?xe*de.number:On(de)?vi(de,xe):xe},jo={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(de,xe){return xe.type===20&&xe.value==="none"?null:yr.parse(de,xe)}},Qo;(function(ct){ct[ct.INSIDE=0]="INSIDE",ct[ct.OUTSIDE=1]="OUTSIDE"})(Qo||(Qo={}));var on={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(de,xe){switch(xe){case"inside":return Qo.INSIDE;case"outside":default:return Qo.OUTSIDE}}},Fi;(function(ct){ct[ct.NONE=-1]="NONE",ct[ct.DISC=0]="DISC",ct[ct.CIRCLE=1]="CIRCLE",ct[ct.SQUARE=2]="SQUARE",ct[ct.DECIMAL=3]="DECIMAL",ct[ct.CJK_DECIMAL=4]="CJK_DECIMAL",ct[ct.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",ct[ct.LOWER_ROMAN=6]="LOWER_ROMAN",ct[ct.UPPER_ROMAN=7]="UPPER_ROMAN",ct[ct.LOWER_GREEK=8]="LOWER_GREEK",ct[ct.LOWER_ALPHA=9]="LOWER_ALPHA",ct[ct.UPPER_ALPHA=10]="UPPER_ALPHA",ct[ct.ARABIC_INDIC=11]="ARABIC_INDIC",ct[ct.ARMENIAN=12]="ARMENIAN",ct[ct.BENGALI=13]="BENGALI",ct[ct.CAMBODIAN=14]="CAMBODIAN",ct[ct.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",ct[ct.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",ct[ct.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",ct[ct.DEVANAGARI=18]="DEVANAGARI",ct[ct.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",ct[ct.GEORGIAN=20]="GEORGIAN",ct[ct.GUJARATI=21]="GUJARATI",ct[ct.GURMUKHI=22]="GURMUKHI",ct[ct.HEBREW=22]="HEBREW",ct[ct.HIRAGANA=23]="HIRAGANA",ct[ct.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",ct[ct.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",ct[ct.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",ct[ct.KANNADA=27]="KANNADA",ct[ct.KATAKANA=28]="KATAKANA",ct[ct.KATAKANA_IROHA=29]="KATAKANA_IROHA",ct[ct.KHMER=30]="KHMER",ct[ct.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",ct[ct.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",ct[ct.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",ct[ct.LAO=34]="LAO",ct[ct.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",ct[ct.MALAYALAM=36]="MALAYALAM",ct[ct.MONGOLIAN=37]="MONGOLIAN",ct[ct.MYANMAR=38]="MYANMAR",ct[ct.ORIYA=39]="ORIYA",ct[ct.PERSIAN=40]="PERSIAN",ct[ct.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",ct[ct.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",ct[ct.TAMIL=43]="TAMIL",ct[ct.TELUGU=44]="TELUGU",ct[ct.THAI=45]="THAI",ct[ct.TIBETAN=46]="TIBETAN",ct[ct.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",ct[ct.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",ct[ct.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",ct[ct.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",ct[ct.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"})(Fi||(Fi={}));var Bs={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(de,xe){switch(xe){case"disc":return Fi.DISC;case"circle":return Fi.CIRCLE;case"square":return Fi.SQUARE;case"decimal":return Fi.DECIMAL;case"cjk-decimal":return Fi.CJK_DECIMAL;case"decimal-leading-zero":return Fi.DECIMAL_LEADING_ZERO;case"lower-roman":return Fi.LOWER_ROMAN;case"upper-roman":return Fi.UPPER_ROMAN;case"lower-greek":return Fi.LOWER_GREEK;case"lower-alpha":return Fi.LOWER_ALPHA;case"upper-alpha":return Fi.UPPER_ALPHA;case"arabic-indic":return Fi.ARABIC_INDIC;case"armenian":return Fi.ARMENIAN;case"bengali":return Fi.BENGALI;case"cambodian":return Fi.CAMBODIAN;case"cjk-earthly-branch":return Fi.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return Fi.CJK_HEAVENLY_STEM;case"cjk-ideographic":return Fi.CJK_IDEOGRAPHIC;case"devanagari":return Fi.DEVANAGARI;case"ethiopic-numeric":return Fi.ETHIOPIC_NUMERIC;case"georgian":return Fi.GEORGIAN;case"gujarati":return Fi.GUJARATI;case"gurmukhi":return Fi.GURMUKHI;case"hebrew":return Fi.HEBREW;case"hiragana":return Fi.HIRAGANA;case"hiragana-iroha":return Fi.HIRAGANA_IROHA;case"japanese-formal":return Fi.JAPANESE_FORMAL;case"japanese-informal":return Fi.JAPANESE_INFORMAL;case"kannada":return Fi.KANNADA;case"katakana":return Fi.KATAKANA;case"katakana-iroha":return Fi.KATAKANA_IROHA;case"khmer":return Fi.KHMER;case"korean-hangul-formal":return Fi.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return Fi.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return Fi.KOREAN_HANJA_INFORMAL;case"lao":return Fi.LAO;case"lower-armenian":return Fi.LOWER_ARMENIAN;case"malayalam":return Fi.MALAYALAM;case"mongolian":return Fi.MONGOLIAN;case"myanmar":return Fi.MYANMAR;case"oriya":return Fi.ORIYA;case"persian":return Fi.PERSIAN;case"simp-chinese-formal":return Fi.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return Fi.SIMP_CHINESE_INFORMAL;case"tamil":return Fi.TAMIL;case"telugu":return Fi.TELUGU;case"thai":return Fi.THAI;case"tibetan":return Fi.TIBETAN;case"trad-chinese-formal":return Fi.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return Fi.TRAD_CHINESE_INFORMAL;case"upper-armenian":return Fi.UPPER_ARMENIAN;case"disclosure-open":return Fi.DISCLOSURE_OPEN;case"disclosure-closed":return Fi.DISCLOSURE_CLOSED;case"none":default:return Fi.NONE}}},ws=function(de){return{name:"margin-"+de,initialValue:"0",prefix:!1,type:4}},cs=ws("top"),Vo=ws("right"),vs=ws("bottom"),Ss=ws("left"),ns;(function(ct){ct[ct.VISIBLE=0]="VISIBLE",ct[ct.HIDDEN=1]="HIDDEN",ct[ct.SCROLL=2]="SCROLL",ct[ct.CLIP=3]="CLIP",ct[ct.AUTO=4]="AUTO"})(ns||(ns={}));var es={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(de,xe){return xe.filter(pn).map(function(ke){switch(ke.value){case"hidden":return ns.HIDDEN;case"scroll":return ns.SCROLL;case"clip":return ns.CLIP;case"auto":return ns.AUTO;case"visible":default:return ns.VISIBLE}})}},fs={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(de,xe){switch(xe){case"break-word":return"break-word";case"normal":default:return"normal"}}},ys=function(de){return{name:"padding-"+de,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},ds=ys("top"),yo=ys("right"),no=ys("bottom"),Jo=ys("left"),Go;(function(ct){ct[ct.LEFT=0]="LEFT",ct[ct.CENTER=1]="CENTER",ct[ct.RIGHT=2]="RIGHT"})(Go||(Go={}));var xt={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(de,xe){switch(xe){case"right":return Go.RIGHT;case"center":case"justify":return Go.CENTER;case"left":default:return Go.LEFT}}},Ft;(function(ct){ct[ct.STATIC=0]="STATIC",ct[ct.RELATIVE=1]="RELATIVE",ct[ct.ABSOLUTE=2]="ABSOLUTE",ct[ct.FIXED=3]="FIXED",ct[ct.STICKY=4]="STICKY"})(Ft||(Ft={}));var An={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(de,xe){switch(xe){case"relative":return Ft.RELATIVE;case"absolute":return Ft.ABSOLUTE;case"fixed":return Ft.FIXED;case"sticky":return Ft.STICKY}return Ft.STATIC}},Hn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(de,xe){return xe.length===1&&cr(xe[0],"none")?[]:$r(xe).map(function(ke){for(var nt={color:Ia.TRANSPARENT,offsetX:Gn,offsetY:Gn,blur:Gn},er=0,Wr=0;Wr<ke.length;Wr++){var sn=ke[Wr];rn(sn)?(er===0?nt.offsetX=sn:er===1?nt.offsetY=sn:nt.blur=sn,er++):nt.color=ia.parse(de,sn)}return nt})}},hi;(function(ct){ct[ct.NONE=0]="NONE",ct[ct.LOWERCASE=1]="LOWERCASE",ct[ct.UPPERCASE=2]="UPPERCASE",ct[ct.CAPITALIZE=3]="CAPITALIZE"})(hi||(hi={}));var At={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(de,xe){switch(xe){case"uppercase":return hi.UPPERCASE;case"lowercase":return hi.LOWERCASE;case"capitalize":return hi.CAPITALIZE}return hi.NONE}},se={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(de,xe){if(xe.type===20&&xe.value==="none")return null;if(xe.type===18){var ke=We[xe.name];if(typeof ke=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+xe.name+'"');return ke(xe.values)}return null}},ge=function(de){var xe=de.filter(function(ke){return ke.type===17}).map(function(ke){return ke.number});return xe.length===6?xe:null},Se=function(de){var xe=de.filter(function(Pn){return Pn.type===17}).map(function(Pn){return Pn.number}),ke=xe[0],nt=xe[1];xe[2],xe[3];var er=xe[4],Wr=xe[5];xe[6],xe[7],xe[8],xe[9],xe[10],xe[11];var sn=xe[12],bn=xe[13];return xe[14],xe[15],xe.length===16?[ke,nt,er,Wr,sn,bn]:null},We={matrix:ge,matrix3d:Se},vt={type:16,number:50,flags:Gt},Yt=[vt,vt],Rr={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(de,xe){var ke=xe.filter(On);return ke.length!==2?Yt:[ke[0],ke[1]]}},Yr;(function(ct){ct[ct.VISIBLE=0]="VISIBLE",ct[ct.HIDDEN=1]="HIDDEN",ct[ct.COLLAPSE=2]="COLLAPSE"})(Yr||(Yr={}));var mn={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(de,xe){switch(xe){case"hidden":return Yr.HIDDEN;case"collapse":return Yr.COLLAPSE;case"visible":default:return Yr.VISIBLE}}},Wn;(function(ct){ct.NORMAL="normal",ct.BREAK_ALL="break-all",ct.KEEP_ALL="keep-all"})(Wn||(Wn={}));var Jn={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(de,xe){switch(xe){case"break-all":return Wn.BREAK_ALL;case"keep-all":return Wn.KEEP_ALL;case"normal":default:return Wn.NORMAL}}},ri={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(de,xe){if(xe.type===20)return{auto:!0,order:0};if(tn(xe))return{auto:!1,order:xe.number};throw new Error("Invalid z-index number parsed")}},Ii={name:"time",parse:function(de,xe){if(xe.type===15)switch(xe.unit.toLowerCase()){case"s":return 1e3*xe.number;case"ms":return xe.number}throw new Error("Unsupported time type")}},Yi={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(de,xe){return tn(xe)?xe.number:1}},ma={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ta={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(de,xe){return xe.filter(pn).map(function(ke){switch(ke.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(ke){return ke!==0})}},uo={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(de,xe){var ke=[],nt=[];return xe.forEach(function(er){switch(er.type){case 20:case 0:ke.push(er.value);break;case 17:ke.push(er.number.toString());break;case 4:nt.push(ke.join(" ")),ke.length=0;break}}),ke.length&&nt.push(ke.join(" ")),nt.map(function(er){return er.indexOf(" ")===-1?er:"'"+er+"'"})}},bo={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},co={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(de,xe){if(tn(xe))return xe.number;if(pn(xe))switch(xe.value){case"bold":return 700;case"normal":default:return 400}return 400}},Zo={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(de,xe){return xe.filter(pn).map(function(ke){return ke.value})}},Oo;(function(ct){ct.NORMAL="normal",ct.ITALIC="italic",ct.OBLIQUE="oblique"})(Oo||(Oo={}));var Do={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(de,xe){switch(xe){case"oblique":return Oo.OBLIQUE;case"italic":return Oo.ITALIC;case"normal":default:return Oo.NORMAL}}},Ha=function(de,xe){return(de&xe)!==0},Ya={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(de,xe){if(xe.length===0)return[];var ke=xe[0];return ke.type===20&&ke.value==="none"?[]:xe}},ps={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(de,xe){if(xe.length===0)return null;var ke=xe[0];if(ke.type===20&&ke.value==="none")return null;for(var nt=[],er=xe.filter(fr),Wr=0;Wr<er.length;Wr++){var sn=er[Wr],bn=er[Wr+1];if(sn.type===20){var Pn=bn&&tn(bn)?bn.number:1;nt.push({counter:sn.value,increment:Pn})}}return nt}},ts={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(de,xe){if(xe.length===0)return[];for(var ke=[],nt=xe.filter(fr),er=0;er<nt.length;er++){var Wr=nt[er],sn=nt[er+1];if(pn(Wr)&&Wr.value!=="none"){var bn=sn&&tn(sn)?sn.number:0;ke.push({counter:Wr.value,reset:bn})}}return ke}},$o={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(de,xe){return xe.filter(Nr).map(function(ke){return Ii.parse(de,ke)})}},Ds={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(de,xe){if(xe.length===0)return null;var ke=xe[0];if(ke.type===20&&ke.value==="none")return null;var nt=[],er=xe.filter(St);if(er.length%2!==0)return null;for(var Wr=0;Wr<er.length;Wr+=2){var sn=er[Wr].value,bn=er[Wr+1].value;nt.push({open:sn,close:bn})}return nt}},Hs=function(de,xe,ke){if(!de)return"";var nt=de[Math.min(xe,de.length-1)];return nt?ke?nt.open:nt.close:""},xs={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(de,xe){return xe.length===1&&cr(xe[0],"none")?[]:$r(xe).map(function(ke){for(var nt={color:255,offsetX:Gn,offsetY:Gn,blur:Gn,spread:Gn,inset:!1},er=0,Wr=0;Wr<ke.length;Wr++){var sn=ke[Wr];cr(sn,"inset")?nt.inset=!0:rn(sn)?(er===0?nt.offsetX=sn:er===1?nt.offsetY=sn:er===2?nt.blur=sn:nt.spread=sn,er++):nt.color=ia.parse(de,sn)}return nt})}},Xo;(function(ct){ct[ct.FILL=0]="FILL",ct[ct.STROKE=1]="STROKE",ct[ct.MARKERS=2]="MARKERS"})(Xo||(Xo={}));for(var Js={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(de,xe){var ke=[Xo.FILL,Xo.STROKE,Xo.MARKERS],nt=[];return xe.filter(pn).forEach(function(er){switch(er.value){case"stroke":nt.push(Xo.STROKE);break;case"fill":nt.push(Xo.FILL);break;case"markers":nt.push(Xo.MARKERS);break}}),ke.forEach(function(er){nt.indexOf(er)===-1&&nt.push(er)}),nt}},Cs={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},fl={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(de,xe){return Nr(xe)?xe.number:0}},sl=function(){function ct(de,xe){var ke,nt;this.animationDuration=ha(de,$o,xe.animationDuration),this.backgroundClip=ha(de,So,xe.backgroundClip),this.backgroundColor=ha(de,Ga,xe.backgroundColor),this.backgroundImage=ha(de,xn,xe.backgroundImage),this.backgroundOrigin=ha(de,Qn,xe.backgroundOrigin),this.backgroundPosition=ha(de,$n,xe.backgroundPosition),this.backgroundRepeat=ha(de,si,xe.backgroundRepeat),this.backgroundSize=ha(de,di,xe.backgroundSize),this.borderTopColor=ha(de,Xi,xe.borderTopColor),this.borderRightColor=ha(de,ba,xe.borderRightColor),this.borderBottomColor=ha(de,ta,xe.borderBottomColor),this.borderLeftColor=ha(de,Qi,xe.borderLeftColor),this.borderTopLeftRadius=ha(de,fa,xe.borderTopLeftRadius),this.borderTopRightRadius=ha(de,xo,xe.borderTopRightRadius),this.borderBottomRightRadius=ha(de,Za,xe.borderBottomRightRadius),this.borderBottomLeftRadius=ha(de,Wi,xe.borderBottomLeftRadius),this.borderTopStyle=ha(de,ya,xe.borderTopStyle),this.borderRightStyle=ha(de,Xa,xe.borderRightStyle),this.borderBottomStyle=ha(de,_a,xe.borderBottomStyle),this.borderLeftStyle=ha(de,qa,xe.borderLeftStyle),this.borderTopWidth=ha(de,Uo,xe.borderTopWidth),this.borderRightWidth=ha(de,zo,xe.borderRightWidth),this.borderBottomWidth=ha(de,hs,xe.borderBottomWidth),this.borderLeftWidth=ha(de,Po,xe.borderLeftWidth),this.boxShadow=ha(de,xs,xe.boxShadow),this.color=ha(de,Mo,xe.color),this.direction=ha(de,Fa,xe.direction),this.display=ha(de,$a,xe.display),this.float=ha(de,qo,xe.cssFloat),this.fontFamily=ha(de,uo,xe.fontFamily),this.fontSize=ha(de,bo,xe.fontSize),this.fontStyle=ha(de,Do,xe.fontStyle),this.fontVariant=ha(de,Zo,xe.fontVariant),this.fontWeight=ha(de,co,xe.fontWeight),this.letterSpacing=ha(de,vo,xe.letterSpacing),this.lineBreak=ha(de,ho,xe.lineBreak),this.lineHeight=ha(de,No,xe.lineHeight),this.listStyleImage=ha(de,jo,xe.listStyleImage),this.listStylePosition=ha(de,on,xe.listStylePosition),this.listStyleType=ha(de,Bs,xe.listStyleType),this.marginTop=ha(de,cs,xe.marginTop),this.marginRight=ha(de,Vo,xe.marginRight),this.marginBottom=ha(de,vs,xe.marginBottom),this.marginLeft=ha(de,Ss,xe.marginLeft),this.opacity=ha(de,Yi,xe.opacity);var er=ha(de,es,xe.overflow);this.overflowX=er[0],this.overflowY=er[er.length>1?1:0],this.overflowWrap=ha(de,fs,xe.overflowWrap),this.paddingTop=ha(de,ds,xe.paddingTop),this.paddingRight=ha(de,yo,xe.paddingRight),this.paddingBottom=ha(de,no,xe.paddingBottom),this.paddingLeft=ha(de,Jo,xe.paddingLeft),this.paintOrder=ha(de,Js,xe.paintOrder),this.position=ha(de,An,xe.position),this.textAlign=ha(de,xt,xe.textAlign),this.textDecorationColor=ha(de,ma,(ke=xe.textDecorationColor)!==null&&ke!==void 0?ke:xe.color),this.textDecorationLine=ha(de,Ta,(nt=xe.textDecorationLine)!==null&&nt!==void 0?nt:xe.textDecoration),this.textShadow=ha(de,Hn,xe.textShadow),this.textTransform=ha(de,At,xe.textTransform),this.transform=ha(de,se,xe.transform),this.transformOrigin=ha(de,Rr,xe.transformOrigin),this.visibility=ha(de,mn,xe.visibility),this.webkitTextStrokeColor=ha(de,Cs,xe.webkitTextStrokeColor),this.webkitTextStrokeWidth=ha(de,fl,xe.webkitTextStrokeWidth),this.wordBreak=ha(de,Jn,xe.wordBreak),this.zIndex=ha(de,ri,xe.zIndex)}return ct.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===Yr.VISIBLE},ct.prototype.isTransparent=function(){return na(this.backgroundColor)},ct.prototype.isTransformed=function(){return this.transform!==null},ct.prototype.isPositioned=function(){return this.position!==Ft.STATIC},ct.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},ct.prototype.isFloating=function(){return this.float!==Eo.NONE},ct.prototype.isInlineLevel=function(){return Ha(this.display,4)||Ha(this.display,33554432)||Ha(this.display,268435456)||Ha(this.display,536870912)||Ha(this.display,67108864)||Ha(this.display,134217728)},ct}(),Ks=function(){function ct(de,xe){this.content=ha(de,Ya,xe.content),this.quotes=ha(de,Ds,xe.quotes)}return ct}(),as=function(){function ct(de,xe){this.counterIncrement=ha(de,ps,xe.counterIncrement),this.counterReset=ha(de,ts,xe.counterReset)}return ct}(),ha=function(de,xe,ke){var nt=new Zt,er=ke!==null&&typeof ke!="undefined"?ke.toString():xe.initialValue;nt.write(er);var Wr=new Ar(nt.read());switch(xe.type){case 2:var sn=Wr.parseComponentValue();return xe.parse(de,pn(sn)?sn.value:xe.initialValue);case 0:return xe.parse(de,Wr.parseComponentValue());case 1:return xe.parse(de,Wr.parseComponentValues());case 4:return Wr.parseComponentValue();case 3:switch(xe.format){case"angle":return Ci.parse(de,Wr.parseComponentValue());case"color":return ia.parse(de,Wr.parseComponentValue());case"image":return yr.parse(de,Wr.parseComponentValue());case"length":var bn=Wr.parseComponentValue();return rn(bn)?bn:Gn;case"length-percentage":var Pn=Wr.parseComponentValue();return On(Pn)?Pn:Gn;case"time":return Ii.parse(de,Wr.parseComponentValue())}break}},Zs="data-html2canvas-debug",ll=function(de){var xe=de.getAttribute(Zs);switch(xe){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},lo=function(de,xe){var ke=ll(de);return ke===1||xe===ke},Ka=function(){function ct(de,xe){if(this.context=de,this.textNodes=[],this.elements=[],this.flags=0,lo(xe,3))debugger;this.styles=new sl(de,window.getComputedStyle(xe,null)),_e(xe)&&(this.styles.animationDuration.some(function(ke){return ke>0})&&(xe.style.animationDuration="0s"),this.styles.transform!==null&&(xe.style.transform="none")),this.bounds=c(this.context,xe),lo(xe,4)&&(this.flags|=16)}return ct}(),Fo="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ko="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wo=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Co=0;Co<Ko.length;Co++)Wo[Ko.charCodeAt(Co)]=Co;for(var is=function(de){var xe=de.length*.75,ke=de.length,nt,er=0,Wr,sn,bn,Pn;de[de.length-1]==="="&&(xe--,de[de.length-2]==="="&&xe--);var Si=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(xe):new Array(xe),mi=Array.isArray(Si)?Si:new Uint8Array(Si);for(nt=0;nt<ke;nt+=4)Wr=Wo[de.charCodeAt(nt)],sn=Wo[de.charCodeAt(nt+1)],bn=Wo[de.charCodeAt(nt+2)],Pn=Wo[de.charCodeAt(nt+3)],mi[er++]=Wr<<2|sn>>4,mi[er++]=(sn&15)<<4|bn>>2,mi[er++]=(bn&3)<<6|Pn&63;return Si},ms=function(de){for(var xe=de.length,ke=[],nt=0;nt<xe;nt+=2)ke.push(de[nt+1]<<8|de[nt]);return ke},Rs=function(de){for(var xe=de.length,ke=[],nt=0;nt<xe;nt+=4)ke.push(de[nt+3]<<24|de[nt+2]<<16|de[nt+1]<<8|de[nt]);return ke},Us=5,el=6+5,Qs=2,tl=el-Us,_s=65536>>Us,Ts=1<<Us,Ws=Ts-1,Os=1024>>Us,zs=_s+Os,Tl=zs,Sl=2048>>6,Ol=Tl+Sl,Yl=65536>>el,yu=1<<tl,ul=yu-1,Rl=function(de,xe,ke){return de.slice?de.slice(xe,ke):new Uint16Array(Array.prototype.slice.call(de,xe,ke))},zl=function(de,xe,ke){return de.slice?de.slice(xe,ke):new Uint32Array(Array.prototype.slice.call(de,xe,ke))},bu=function(de,xe){var ke=is(de),nt=Array.isArray(ke)?Rs(ke):new Uint32Array(ke),er=Array.isArray(ke)?ms(ke):new Uint16Array(ke),Wr=24,sn=Rl(er,Wr/2,nt[4]/2),bn=nt[5]===2?Rl(er,(Wr+nt[4])/2):zl(nt,Math.ceil((Wr+nt[4])/4));return new wu(nt[0],nt[1],nt[2],nt[3],sn,bn)},wu=function(){function ct(de,xe,ke,nt,er,Wr){this.initialValue=de,this.errorValue=xe,this.highStart=ke,this.highValueIndex=nt,this.index=er,this.data=Wr}return ct.prototype.get=function(de){var xe;if(de>=0){if(de<55296||de>56319&&de<=65535)return xe=this.index[de>>Us],xe=(xe<<Qs)+(de&Ws),this.data[xe];if(de<=65535)return xe=this.index[_s+(de-55296>>Us)],xe=(xe<<Qs)+(de&Ws),this.data[xe];if(de<this.highStart)return xe=Ol-Yl+(de>>el),xe=this.index[xe],xe+=de>>Us&ul,xe=this.index[xe],xe=(xe<<Qs)+(de&Ws),this.data[xe];if(de<=1114111)return this.data[this.highValueIndex]}return this.errorValue},ct}(),cu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Su=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Bl=0;Bl<cu.length;Bl++)Su[cu.charCodeAt(Bl)]=Bl;var rl=1,al=2,dl=3,Vl=4,tu=5,ru=7,Ql=8,Ml=9,nu=10,Jl=11,du=12,Al=13,kl=14,Pl=15,Zl=function(de){for(var xe=[],ke=0,nt=de.length;ke<nt;){var er=de.charCodeAt(ke++);if(er>=55296&&er<=56319&&ke<nt){var Wr=de.charCodeAt(ke++);(Wr&64512)===56320?xe.push(((er&1023)<<10)+(Wr&1023)+65536):(xe.push(er),ke--)}else xe.push(er)}return xe},Il=function(){for(var de=[],xe=0;xe<arguments.length;xe++)de[xe]=arguments[xe];if(String.fromCodePoint)return String.fromCodePoint.apply(String,de);var ke=de.length;if(!ke)return"";for(var nt=[],er=-1,Wr="";++er<ke;){var sn=de[er];sn<=65535?nt.push(sn):(sn-=65536,nt.push((sn>>10)+55296,sn%1024+56320)),(er+1===ke||nt.length>16384)&&(Wr+=String.fromCharCode.apply(String,nt),nt.length=0)}return Wr},Iu=bu(Fo),pl="\xD7",xl="\xF7",iu=function(de){return Iu.get(de)},_u=function(de,xe,ke){var nt=ke-2,er=xe[nt],Wr=xe[ke-1],sn=xe[ke];if(Wr===al&&sn===dl)return pl;if(Wr===al||Wr===dl||Wr===Vl)return xl;if(sn===al||sn===dl||sn===Vl)return xl;if(Wr===Ql&&[Ql,Ml,Jl,du].indexOf(sn)!==-1)return pl;if((Wr===Jl||Wr===Ml)&&(sn===Ml||sn===nu))return pl;if((Wr===du||Wr===nu)&&sn===nu)return pl;if(sn===Al||sn===tu)return pl;if(sn===ru)return pl;if(Wr===rl)return pl;if(Wr===Al&&sn===kl){for(;er===tu;)er=xe[--nt];if(er===kl)return pl}if(Wr===Pl&&sn===Pl){for(var bn=0;er===Pl;)bn++,er=xe[--nt];if(bn%2===0)return pl}return xl},hu=function(de){var xe=Zl(de),ke=xe.length,nt=0,er=0,Wr=xe.map(iu);return{next:function(){if(nt>=ke)return{done:!0,value:null};for(var bn=pl;nt<ke&&(bn=_u(xe,Wr,++nt))===pl;);if(bn!==pl||nt===ke){var Pn=Il.apply(null,xe.slice(er,nt));return er=nt,{value:Pn,done:!1}}return{done:!0,value:null}}}},_l=function(de){for(var xe=hu(de),ke=[],nt;!(nt=xe.next()).done;)nt.value&&ke.push(nt.value.slice());return ke},ml=function(de){var xe=123;if(de.createRange){var ke=de.createRange();if(ke.getBoundingClientRect){var nt=de.createElement("boundtest");nt.style.height=xe+"px",nt.style.display="block",de.body.appendChild(nt),ke.selectNode(nt);var er=ke.getBoundingClientRect(),Wr=Math.round(er.height);if(de.body.removeChild(nt),Wr===xe)return!0}}return!1},Ul=function(de){var xe=de.createElement("boundtest");xe.style.width="50px",xe.style.display="block",xe.style.fontSize="12px",xe.style.letterSpacing="0px",xe.style.wordSpacing="0px",de.body.appendChild(xe);var ke=de.createRange();xe.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var nt=xe.firstChild,er=r(nt.data).map(function(Pn){return a(Pn)}),Wr=0,sn={},bn=er.every(function(Pn,Si){ke.setStart(nt,Wr),ke.setEnd(nt,Wr+Pn.length);var mi=ke.getBoundingClientRect();Wr+=Pn.length;var _i=mi.x>sn.x||mi.y>sn.y;return sn=mi,Si===0?!0:_i});return de.body.removeChild(xe),bn},xu=function(){return typeof new Image().crossOrigin!="undefined"},Eu=function(){return typeof new XMLHttpRequest().responseType=="string"},fu=function(de){var xe=new Image,ke=de.createElement("canvas"),nt=ke.getContext("2d");if(!nt)return!1;xe.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{nt.drawImage(xe,0,0),ke.toDataURL()}catch(er){return!1}return!0},jl=function(de){return de[0]===0&&de[1]===255&&de[2]===0&&de[3]===255},au=function(de){var xe=de.createElement("canvas"),ke=100;xe.width=ke,xe.height=ke;var nt=xe.getContext("2d");if(!nt)return Promise.reject(!1);nt.fillStyle="rgb(0, 255, 0)",nt.fillRect(0,0,ke,ke);var er=new Image,Wr=xe.toDataURL();er.src=Wr;var sn=$l(ke,ke,0,0,er);return nt.fillStyle="red",nt.fillRect(0,0,ke,ke),ou(sn).then(function(bn){nt.drawImage(bn,0,0);var Pn=nt.getImageData(0,0,ke,ke).data;nt.fillStyle="red",nt.fillRect(0,0,ke,ke);var Si=de.createElement("div");return Si.style.backgroundImage="url("+Wr+")",Si.style.height=ke+"px",jl(Pn)?ou($l(ke,ke,0,0,Si)):Promise.reject(!1)}).then(function(bn){return nt.drawImage(bn,0,0),jl(nt.getImageData(0,0,ke,ke).data)}).catch(function(){return!1})},$l=function(de,xe,ke,nt,er){var Wr="http://www.w3.org/2000/svg",sn=document.createElementNS(Wr,"svg"),bn=document.createElementNS(Wr,"foreignObject");return sn.setAttributeNS(null,"width",de.toString()),sn.setAttributeNS(null,"height",xe.toString()),bn.setAttributeNS(null,"width","100%"),bn.setAttributeNS(null,"height","100%"),bn.setAttributeNS(null,"x",ke.toString()),bn.setAttributeNS(null,"y",nt.toString()),bn.setAttributeNS(null,"externalResourcesRequired","true"),sn.appendChild(bn),bn.appendChild(er),sn},ou=function(de){return new Promise(function(xe,ke){var nt=new Image;nt.onload=function(){return xe(nt)},nt.onerror=ke,nt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(de))})},Is={get SUPPORT_RANGE_BOUNDS(){var ct=ml(document);return Object.defineProperty(Is,"SUPPORT_RANGE_BOUNDS",{value:ct}),ct},get SUPPORT_WORD_BREAKING(){var ct=Is.SUPPORT_RANGE_BOUNDS&&Ul(document);return Object.defineProperty(Is,"SUPPORT_WORD_BREAKING",{value:ct}),ct},get SUPPORT_SVG_DRAWING(){var ct=fu(document);return Object.defineProperty(Is,"SUPPORT_SVG_DRAWING",{value:ct}),ct},get SUPPORT_FOREIGNOBJECT_DRAWING(){var ct=typeof Array.from=="function"&&typeof window.fetch=="function"?au(document):Promise.resolve(!1);return Object.defineProperty(Is,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:ct}),ct},get SUPPORT_CORS_IMAGES(){var ct=xu();return Object.defineProperty(Is,"SUPPORT_CORS_IMAGES",{value:ct}),ct},get SUPPORT_RESPONSE_TYPE(){var ct=Eu();return Object.defineProperty(Is,"SUPPORT_RESPONSE_TYPE",{value:ct}),ct},get SUPPORT_CORS_XHR(){var ct="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Is,"SUPPORT_CORS_XHR",{value:ct}),ct}},cl=function(){function ct(de,xe){this.text=de,this.bounds=xe}return ct}(),Fl=function(de,xe,ke,nt){var er=Ro(xe,ke),Wr=[],sn=0;return er.forEach(function(bn){if(ke.textDecorationLine.length||bn.trim().length>0)if(Is.SUPPORT_RANGE_BOUNDS)Is.SUPPORT_WORD_BREAKING?Wr.push(new cl(bn,oo(de,nt,sn,bn.length))):Wr.push(new cl(bn,f.fromDOMRectList(de,La(nt,sn,bn.length).getClientRects())));else{var Pn=nt.splitText(bn.length);Wr.push(new cl(bn,Ho(de,nt))),nt=Pn}else Is.SUPPORT_RANGE_BOUNDS||(nt=nt.splitText(bn.length));sn+=bn.length}),Wr},Ho=function(de,xe){var ke=xe.ownerDocument;if(ke){var nt=ke.createElement("html2canvaswrapper");nt.appendChild(xe.cloneNode(!0));var er=xe.parentNode;if(er){er.replaceChild(nt,xe);var Wr=c(de,nt);return nt.firstChild&&er.replaceChild(nt.firstChild,nt),Wr}}return f.EMPTY},La=function(de,xe,ke){var nt=de.ownerDocument;if(!nt)throw new Error("Node has no owner document");var er=nt.createRange();return er.setStart(de,xe),er.setEnd(de,xe+ke),er},oo=function(de,xe,ke,nt){return f.fromClientRect(de,La(xe,ke,nt).getBoundingClientRect())},Ro=function(de,xe){return xe.letterSpacing!==0?_l(de):Hl(de,xe)},Ps=[32,160,4961,65792,65793,4153,4241],Hl=function(de,xe){for(var ke=Rn(de,{lineBreak:xe.lineBreak,wordBreak:xe.overflowWrap==="break-word"?"break-word":xe.wordBreak}),nt=[],er,Wr=function(){if(er.value){var bn=er.value.slice(),Pn=r(bn),Si="";Pn.forEach(function(mi){Ps.indexOf(mi)===-1?Si+=a(mi):(Si.length&&nt.push(Si),nt.push(a(mi)),Si="")}),Si.length&&nt.push(Si)}};!(er=ke.next()).done;)Wr();return nt},Ll=function(){function ct(de,xe,ke){this.text=gl(xe.data,ke.textTransform),this.textBounds=Fl(de,this.text,ke,xe)}return ct}(),gl=function(de,xe){switch(xe){case hi.LOWERCASE:return de.toLowerCase();case hi.CAPITALIZE:return de.replace(yl,Nl);case hi.UPPERCASE:return de.toUpperCase();default:return de}},yl=/(^|\s|:|-|\(|\))([a-z])/g,Nl=function(de,xe,ke){return de.length>0?xe+ke.toUpperCase():de},Kl=function(ct){x(de,ct);function de(xe,ke){var nt=ct.call(this,xe,ke)||this;return nt.src=ke.currentSrc||ke.src,nt.intrinsicWidth=ke.naturalWidth,nt.intrinsicHeight=ke.naturalHeight,nt.context.cache.addImage(nt.src),nt}return de}(Ka),Vs=function(ct){x(de,ct);function de(xe,ke){var nt=ct.call(this,xe,ke)||this;return nt.canvas=ke,nt.intrinsicWidth=ke.width,nt.intrinsicHeight=ke.height,nt}return de}(Ka),Gl=function(ct){x(de,ct);function de(xe,ke){var nt=ct.call(this,xe,ke)||this,er=new XMLSerializer,Wr=c(xe,ke);return ke.setAttribute("width",Wr.width+"px"),ke.setAttribute("height",Wr.height+"px"),nt.svg="data:image/svg+xml,"+encodeURIComponent(er.serializeToString(ke)),nt.intrinsicWidth=ke.width.baseVal.value,nt.intrinsicHeight=ke.height.baseVal.value,nt.context.cache.addImage(nt.svg),nt}return de}(Ka),pu=function(ct){x(de,ct);function de(xe,ke){var nt=ct.call(this,xe,ke)||this;return nt.value=ke.value,nt}return de}(Ka),su=function(ct){x(de,ct);function de(xe,ke){var nt=ct.call(this,xe,ke)||this;return nt.start=ke.start,nt.reversed=typeof ke.reversed=="boolean"&&ke.reversed===!0,nt}return de}(Ka),Pu=[{type:15,flags:0,unit:"px",number:3}],$u=[{type:16,flags:0,number:50}],zu=function(de){return de.width>de.height?new f(de.left+(de.width-de.height)/2,de.top,de.height,de.height):de.width<de.height?new f(de.left,de.top+(de.height-de.width)/2,de.width,de.width):de},qu=function(de){var xe=de.type===ec?new Array(de.value.length+1).join("\u2022"):de.value;return xe.length===0?de.placeholder||"":xe},mu="checkbox",Lu="radio",ec="password",Fu=707406591,Cu=function(ct){x(de,ct);function de(xe,ke){var nt=ct.call(this,xe,ke)||this;nt.type=ke.type.toLowerCase(),nt.checked=ke.checked,nt.value=qu(ke),(nt.type===mu||nt.type===Lu)&&(nt.styles.backgroundColor=3739148031,nt.styles.borderTopColor=nt.styles.borderRightColor=nt.styles.borderBottomColor=nt.styles.borderLeftColor=2779096575,nt.styles.borderTopWidth=nt.styles.borderRightWidth=nt.styles.borderBottomWidth=nt.styles.borderLeftWidth=1,nt.styles.borderTopStyle=nt.styles.borderRightStyle=nt.styles.borderBottomStyle=nt.styles.borderLeftStyle=Gi.SOLID,nt.styles.backgroundClip=[Ea.BORDER_BOX],nt.styles.backgroundOrigin=[0],nt.bounds=zu(nt.bounds));switch(nt.type){case mu:nt.styles.borderTopRightRadius=nt.styles.borderTopLeftRadius=nt.styles.borderBottomRightRadius=nt.styles.borderBottomLeftRadius=Pu;break;case Lu:nt.styles.borderTopRightRadius=nt.styles.borderTopLeftRadius=nt.styles.borderBottomRightRadius=nt.styles.borderBottomLeftRadius=$u;break}return nt}return de}(Ka),Nu=function(ct){x(de,ct);function de(xe,ke){var nt=ct.call(this,xe,ke)||this,er=ke.options[ke.selectedIndex||0];return nt.value=er&&er.text||"",nt}return de}(Ka),gu=function(ct){x(de,ct);function de(xe,ke){var nt=ct.call(this,xe,ke)||this;return nt.value=ke.value,nt}return de}(Ka),Bu=function(ct){x(de,ct);function de(xe,ke){var nt=ct.call(this,xe,ke)||this;nt.src=ke.src,nt.width=parseInt(ke.width,10)||0,nt.height=parseInt(ke.height,10)||0,nt.backgroundColor=nt.styles.backgroundColor;try{if(ke.contentWindow&&ke.contentWindow.document&&ke.contentWindow.document.documentElement){nt.tree=Ke(xe,ke.contentWindow.document.documentElement);var er=ke.contentWindow.document.documentElement?ka(xe,getComputedStyle(ke.contentWindow.document.documentElement).backgroundColor):Ia.TRANSPARENT,Wr=ke.contentWindow.document.body?ka(xe,getComputedStyle(ke.contentWindow.document.body).backgroundColor):Ia.TRANSPARENT;nt.backgroundColor=na(er)?na(Wr)?nt.styles.backgroundColor:Wr:er}}catch(sn){}return nt}return de}(Ka),vu=["OL","UL","MENU"],Tu=function ct(de,xe,ke,nt){for(var er=xe.firstChild,Wr=void 0;er;er=Wr)if(Wr=er.nextSibling,Tr(er)&&er.data.trim().length>0)ke.textNodes.push(new Ll(de,er,ke.styles));else if(Gr(er))if(ci(er)&&er.assignedNodes)er.assignedNodes().forEach(function(bn){return ct(de,bn,ke,nt)});else{var sn=ve(de,er);sn.styles.isVisible()&&(pt(er,sn,nt)?sn.flags|=4:tr(sn.styles)&&(sn.flags|=2),vu.indexOf(er.tagName)!==-1&&(sn.flags|=8),ke.elements.push(sn),er.slot,er.shadowRoot?ct(de,er.shadowRoot,sn,nt):!qr(er)&&!Kt(er)&&!Tn(er)&&ct(de,er,sn,nt))}},ve=function(de,xe){return Jr(xe)?new Kl(de,xe):Lr(xe)?new Vs(de,xe):Kt(xe)?new Gl(de,xe):ye(xe)?new pu(de,xe):Ge(xe)?new su(de,xe):lt(xe)?new Cu(de,xe):Tn(xe)?new Nu(de,xe):qr(xe)?new gu(de,xe):Or(xe)?new Bu(de,xe):new Ka(de,xe)},Ke=function(de,xe){var ke=ve(de,xe);return ke.flags|=4,Tu(de,xe,ke,ke),ke},pt=function(de,xe,ke){return xe.styles.isPositionedWithZIndex()||xe.styles.opacity<1||xe.styles.isTransformed()||Vt(de)&&ke.styles.isTransparent()},tr=function(de){return de.isPositioned()||de.isFloating()},Tr=function(de){return de.nodeType===Node.TEXT_NODE},Gr=function(de){return de.nodeType===Node.ELEMENT_NODE},_e=function(de){return Gr(de)&&typeof de.style!="undefined"&&!te(de)},te=function(de){return typeof de.className=="object"},ye=function(de){return de.tagName==="LI"},Ge=function(de){return de.tagName==="OL"},lt=function(de){return de.tagName==="INPUT"},Rt=function(de){return de.tagName==="HTML"},Kt=function(de){return de.tagName==="svg"},Vt=function(de){return de.tagName==="BODY"},Lr=function(de){return de.tagName==="CANVAS"},Jr=function(de){return de.tagName==="IMG"},Or=function(de){return de.tagName==="IFRAME"},Sr=function(de){return de.tagName==="STYLE"},Vr=function(de){return de.tagName==="SCRIPT"},qr=function(de){return de.tagName==="TEXTAREA"},Tn=function(de){return de.tagName==="SELECT"},ci=function(de){return de.tagName==="SLOT"},Ai=function(){function ct(){this.counters={}}return ct.prototype.getCounterValue=function(de){var xe=this.counters[de];return xe&&xe.length?xe[xe.length-1]:1},ct.prototype.getCounterValues=function(de){var xe=this.counters[de];return xe||[]},ct.prototype.pop=function(de){var xe=this;de.forEach(function(ke){return xe.counters[ke].pop()})},ct.prototype.parse=function(de){var xe=this,ke=de.counterIncrement,nt=de.counterReset,er=!0;ke!==null&&ke.forEach(function(sn){var bn=xe.counters[sn.counter];bn&&sn.increment!==0&&(er=!1,bn.length||bn.push(1),bn[Math.max(0,bn.length-1)]+=sn.increment)});var Wr=[];return er&&nt.forEach(function(sn){var bn=xe.counters[sn.counter];Wr.push(sn.counter),bn||(bn=xe.counters[sn.counter]=[]),bn.push(sn.reset)}),Wr},ct}(),Vi={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"]},Ni={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"]},Oa={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"]},Zi={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"]},Wa=function(de,xe,ke,nt,er,Wr){return de<xe||de>ke?lr(de,er,Wr.length>0):nt.integers.reduce(function(sn,bn,Pn){for(;de>=bn;)de-=bn,sn+=nt.values[Pn];return sn},"")+Wr},Na=function(de,xe,ke,nt){var er="";do ke||de--,er=nt(de)+er,de/=xe;while(de*xe>=xe);return er},Ba=function(de,xe,ke,nt,er){var Wr=ke-xe+1;return(de<0?"-":"")+(Na(Math.abs(de),Wr,nt,function(sn){return a(Math.floor(sn%Wr)+xe)})+er)},Lo=function(de,xe,ke){ke===void 0&&(ke=". ");var nt=xe.length;return Na(Math.abs(de),nt,!1,function(er){return xe[Math.floor(er%nt)]})+ke},k=1<<0,W=1<<1,q=1<<2,ne=1<<3,le=function(de,xe,ke,nt,er,Wr){if(de<-9999||de>9999)return lr(de,Fi.CJK_DECIMAL,er.length>0);var sn=Math.abs(de),bn=er;if(sn===0)return xe[0]+bn;for(var Pn=0;sn>0&&Pn<=4;Pn++){var Si=sn%10;Si===0&&Ha(Wr,k)&&bn!==""?bn=xe[Si]+bn:Si>1||Si===1&&Pn===0||Si===1&&Pn===1&&Ha(Wr,W)||Si===1&&Pn===1&&Ha(Wr,q)&&de>100||Si===1&&Pn>1&&Ha(Wr,ne)?bn=xe[Si]+(Pn>0?ke[Pn-1]:"")+bn:Si===1&&Pn>0&&(bn=ke[Pn-1]+bn),sn=Math.floor(sn/10)}return(de<0?nt:"")+bn},Fe="\u5341\u767E\u5343\u842C",mt="\u62FE\u4F70\u4EDF\u842C",Ut="\u30DE\u30A4\u30CA\u30B9",nr="\uB9C8\uC774\uB108\uC2A4",lr=function(de,xe,ke){var nt=ke?". ":"",er=ke?"\u3001":"",Wr=ke?", ":"",sn=ke?" ":"";switch(xe){case Fi.DISC:return"\u2022"+sn;case Fi.CIRCLE:return"\u25E6"+sn;case Fi.SQUARE:return"\u25FE"+sn;case Fi.DECIMAL_LEADING_ZERO:var bn=Ba(de,48,57,!0,nt);return bn.length<4?"0"+bn:bn;case Fi.CJK_DECIMAL:return Lo(de,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",er);case Fi.LOWER_ROMAN:return Wa(de,1,3999,Vi,Fi.DECIMAL,nt).toLowerCase();case Fi.UPPER_ROMAN:return Wa(de,1,3999,Vi,Fi.DECIMAL,nt);case Fi.LOWER_GREEK:return Ba(de,945,969,!1,nt);case Fi.LOWER_ALPHA:return Ba(de,97,122,!1,nt);case Fi.UPPER_ALPHA:return Ba(de,65,90,!1,nt);case Fi.ARABIC_INDIC:return Ba(de,1632,1641,!0,nt);case Fi.ARMENIAN:case Fi.UPPER_ARMENIAN:return Wa(de,1,9999,Ni,Fi.DECIMAL,nt);case Fi.LOWER_ARMENIAN:return Wa(de,1,9999,Ni,Fi.DECIMAL,nt).toLowerCase();case Fi.BENGALI:return Ba(de,2534,2543,!0,nt);case Fi.CAMBODIAN:case Fi.KHMER:return Ba(de,6112,6121,!0,nt);case Fi.CJK_EARTHLY_BRANCH:return Lo(de,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",er);case Fi.CJK_HEAVENLY_STEM:return Lo(de,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",er);case Fi.CJK_IDEOGRAPHIC:case Fi.TRAD_CHINESE_INFORMAL:return le(de,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Fe,"\u8CA0",er,W|q|ne);case Fi.TRAD_CHINESE_FORMAL:return le(de,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",mt,"\u8CA0",er,k|W|q|ne);case Fi.SIMP_CHINESE_INFORMAL:return le(de,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Fe,"\u8D1F",er,W|q|ne);case Fi.SIMP_CHINESE_FORMAL:return le(de,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",mt,"\u8D1F",er,k|W|q|ne);case Fi.JAPANESE_INFORMAL:return le(de,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",Ut,er,0);case Fi.JAPANESE_FORMAL:return le(de,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",Ut,er,k|W|q);case Fi.KOREAN_HANGUL_FORMAL:return le(de,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",nr,Wr,k|W|q);case Fi.KOREAN_HANJA_INFORMAL:return le(de,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",nr,Wr,0);case Fi.KOREAN_HANJA_FORMAL:return le(de,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",nr,Wr,k|W|q);case Fi.DEVANAGARI:return Ba(de,2406,2415,!0,nt);case Fi.GEORGIAN:return Wa(de,1,19999,Zi,Fi.DECIMAL,nt);case Fi.GUJARATI:return Ba(de,2790,2799,!0,nt);case Fi.GURMUKHI:return Ba(de,2662,2671,!0,nt);case Fi.HEBREW:return Wa(de,1,10999,Oa,Fi.DECIMAL,nt);case Fi.HIRAGANA:return Lo(de,"\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 Fi.HIRAGANA_IROHA:return Lo(de,"\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 Fi.KANNADA:return Ba(de,3302,3311,!0,nt);case Fi.KATAKANA:return Lo(de,"\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",er);case Fi.KATAKANA_IROHA:return Lo(de,"\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",er);case Fi.LAO:return Ba(de,3792,3801,!0,nt);case Fi.MONGOLIAN:return Ba(de,6160,6169,!0,nt);case Fi.MYANMAR:return Ba(de,4160,4169,!0,nt);case Fi.ORIYA:return Ba(de,2918,2927,!0,nt);case Fi.PERSIAN:return Ba(de,1776,1785,!0,nt);case Fi.TAMIL:return Ba(de,3046,3055,!0,nt);case Fi.TELUGU:return Ba(de,3174,3183,!0,nt);case Fi.THAI:return Ba(de,3664,3673,!0,nt);case Fi.TIBETAN:return Ba(de,3872,3881,!0,nt);case Fi.DECIMAL:default:return Ba(de,48,57,!0,nt)}},Sn="data-html2canvas-ignore",Bn=function(){function ct(de,xe,ke){if(this.context=de,this.options=ke,this.scrolledElements=[],this.referenceElement=xe,this.counters=new Ai,this.quoteDepth=0,!xe.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(xe.ownerDocument.documentElement)}return ct.prototype.toIFrame=function(de,xe){var ke=this,nt=ni(de,xe);if(!nt.contentWindow)return Promise.reject("Unable to find iframe window");var er=de.defaultView.pageXOffset,Wr=de.defaultView.pageYOffset,sn=nt.contentWindow,bn=sn.document,Pn=ua(nt).then(function(){return v(ke,void 0,void 0,function(){var Si,mi;return S(this,function(_i){switch(_i.label){case 0:return this.scrolledElements.forEach(To),sn&&(sn.scrollTo(xe.left,xe.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(sn.scrollY!==xe.top||sn.scrollX!==xe.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(sn.scrollX-xe.left,sn.scrollY-xe.top,0,0))),Si=this.options.onclone,mi=this.clonedReferenceElement,typeof mi=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:bn.fonts&&bn.fonts.ready?[4,bn.fonts.ready]:[3,2];case 1:_i.sent(),_i.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Ji(bn)]:[3,4];case 3:_i.sent(),_i.label=4;case 4:return typeof Si=="function"?[2,Promise.resolve().then(function(){return Si(bn,mi)}).then(function(){return nt})]:[2,nt]}})})});return bn.open(),bn.write(xa(document.doctype)+"<html></html>"),Ma(this.referenceElement.ownerDocument,er,Wr),bn.replaceChild(bn.adoptNode(this.documentElement),bn.documentElement),bn.close(),Pn},ct.prototype.createElementClone=function(de){if(lo(de,2))debugger;if(Lr(de))return this.createCanvasClone(de);if(Sr(de))return this.createStyleClone(de);var xe=de.cloneNode(!1);return Jr(xe)&&(Jr(de)&&de.currentSrc&&de.currentSrc!==de.src&&(xe.src=de.currentSrc,xe.srcset=""),xe.loading==="lazy"&&(xe.loading="eager")),xe},ct.prototype.createStyleClone=function(de){try{var xe=de.sheet;if(xe&&xe.cssRules){var ke=[].slice.call(xe.cssRules,0).reduce(function(er,Wr){return Wr&&typeof Wr.cssText=="string"?er+Wr.cssText:er},""),nt=de.cloneNode(!1);return nt.textContent=ke,nt}}catch(er){if(this.context.logger.error("Unable to access cssRules property",er),er.name!=="SecurityError")throw er}return de.cloneNode(!1)},ct.prototype.createCanvasClone=function(de){var xe;if(this.options.inlineImages&&de.ownerDocument){var ke=de.ownerDocument.createElement("img");try{return ke.src=de.toDataURL(),ke}catch(Pn){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",de)}}var nt=de.cloneNode(!1);try{nt.width=de.width,nt.height=de.height;var er=de.getContext("2d"),Wr=nt.getContext("2d");if(Wr)if(!this.options.allowTaint&&er)Wr.putImageData(er.getImageData(0,0,de.width,de.height),0,0);else{var sn=(xe=de.getContext("webgl2"))!==null&&xe!==void 0?xe:de.getContext("webgl");if(sn){var bn=sn.getContextAttributes();(bn==null?void 0:bn.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",de)}Wr.drawImage(de,0,0)}return nt}catch(Pn){this.context.logger.info("Unable to clone canvas as it is tainted",de)}return nt},ct.prototype.cloneNode=function(de){if(Tr(de))return document.createTextNode(de.data);if(!de.ownerDocument)return de.cloneNode(!1);var xe=de.ownerDocument.defaultView;if(xe&&Gr(de)&&(_e(de)||te(de))){var ke=this.createElementClone(de);ke.style.transitionProperty="none";var nt=xe.getComputedStyle(de),er=xe.getComputedStyle(de,":before"),Wr=xe.getComputedStyle(de,":after");this.referenceElement===de&&_e(ke)&&(this.clonedReferenceElement=ke),Vt(ke)&&nl(ke);for(var sn=this.counters.parse(new as(this.context,nt)),bn=this.resolvePseudoContent(de,ke,er,Zn.BEFORE),Pn=de.firstChild;Pn;Pn=Pn.nextSibling)(!Gr(Pn)||!Vr(Pn)&&!Pn.hasAttribute(Sn)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(Pn)))&&((!this.options.copyStyles||!Gr(Pn)||!Sr(Pn))&&ke.appendChild(this.cloneNode(Pn)));bn&&ke.insertBefore(bn,ke.firstChild);var Si=this.resolvePseudoContent(de,ke,Wr,Zn.AFTER);return Si&&ke.appendChild(Si),this.counters.pop(sn),nt&&(this.options.copyStyles||te(de))&&!Or(de)&&oa(nt,ke),(de.scrollTop!==0||de.scrollLeft!==0)&&this.scrolledElements.push([ke,de.scrollLeft,de.scrollTop]),(qr(de)||Tn(de))&&(qr(ke)||Tn(ke))&&(ke.value=de.value),ke}return de.cloneNode(!1)},ct.prototype.resolvePseudoContent=function(de,xe,ke,nt){var er=this;if(!ke)return;var Wr=ke.content,sn=xe.ownerDocument;if(!sn||!Wr||Wr==="none"||Wr==="-moz-alt-content"||ke.display==="none")return;this.counters.parse(new as(this.context,ke));var bn=new Ks(this.context,ke),Pn=sn.createElement("html2canvaspseudoelement");oa(ke,Pn),bn.content.forEach(function(mi){if(mi.type===0)Pn.appendChild(sn.createTextNode(mi.value));else if(mi.type===22){var _i=sn.createElement("img");_i.src=mi.value,_i.style.opacity="1",Pn.appendChild(_i)}else if(mi.type===18){if(mi.name==="attr"){var wa=mi.values.filter(pn);wa.length&&Pn.appendChild(sn.createTextNode(de.getAttribute(wa[0].value)||""))}else if(mi.name==="counter"){var Sa=mi.values.filter(Br),Ua=Sa[0],ko=Sa[1];if(Ua&&pn(Ua)){var fo=er.counters.getCounterValue(Ua.value),io=ko&&pn(ko)?Bs.parse(er.context,ko.value):Fi.DECIMAL;Pn.appendChild(sn.createTextNode(lr(fo,io,!1)))}}else if(mi.name==="counters"){var gs=mi.values.filter(Br),Ua=gs[0],Es=gs[1],ko=gs[2];if(Ua&&pn(Ua)){var ss=er.counters.getCounterValues(Ua.value),eo=ko&&pn(ko)?Bs.parse(er.context,ko.value):Fi.DECIMAL,Ns=Es&&Es.type===0?Es.value:"",ks=ss.map(function(Au){return lr(Au,eo,!1)}).join(Ns);Pn.appendChild(sn.createTextNode(ks))}}}else if(mi.type===20)switch(mi.value){case"open-quote":Pn.appendChild(sn.createTextNode(Hs(bn.quotes,er.quoteDepth++,!0)));break;case"close-quote":Pn.appendChild(sn.createTextNode(Hs(bn.quotes,--er.quoteDepth,!1)));break;default:Pn.appendChild(sn.createTextNode(mi.value))}}),Pn.className=os+" "+Ls;var Si=nt===Zn.BEFORE?" "+os:" "+Ls;return te(xe)?xe.className.baseValue+=Si:xe.className+=Si,Pn},ct.destroy=function(de){return de.parentNode?(de.parentNode.removeChild(de),!0):!1},ct}(),Zn;(function(ct){ct[ct.BEFORE=0]="BEFORE",ct[ct.AFTER=1]="AFTER"})(Zn||(Zn={}));var ni=function(de,xe){var ke=de.createElement("iframe");return ke.className="html2canvas-container",ke.style.visibility="hidden",ke.style.position="fixed",ke.style.left="-10000px",ke.style.top="0px",ke.style.border="0",ke.width=xe.width.toString(),ke.height=xe.height.toString(),ke.scrolling="no",ke.setAttribute(Sn,"true"),de.body.appendChild(ke),ke},Pi=function(de){return new Promise(function(xe){if(de.complete){xe();return}if(!de.src){xe();return}de.onload=xe,de.onerror=xe})},Ji=function(de){return Promise.all([].slice.call(de.images,0).map(Pi))},ua=function(de){return new Promise(function(xe,ke){var nt=de.contentWindow;if(!nt)return ke("No window assigned for iframe");var er=nt.document;nt.onload=de.onload=function(){nt.onload=de.onload=null;var Wr=setInterval(function(){er.body.childNodes.length>0&&er.readyState==="complete"&&(clearInterval(Wr),xe(de))},50)}})},la=["all","d","content"],oa=function(de,xe){for(var ke=de.length-1;ke>=0;ke--){var nt=de.item(ke);la.indexOf(nt)===-1&&xe.style.setProperty(nt,de.getPropertyValue(nt))}return xe},xa=function(de){var xe="";return de&&(xe+="<!DOCTYPE ",de.name&&(xe+=de.name),de.internalSubset&&(xe+=de.internalSubset),de.publicId&&(xe+='"'+de.publicId+'"'),de.systemId&&(xe+='"'+de.systemId+'"'),xe+=">"),xe},Ma=function(de,xe,ke){de&&de.defaultView&&(xe!==de.defaultView.pageXOffset||ke!==de.defaultView.pageYOffset)&&de.defaultView.scrollTo(xe,ke)},To=function(de){var xe=de[0],ke=de[1],nt=de[2];xe.scrollLeft=ke,xe.scrollTop=nt},so=":before",Yo=":after",os="___html2canvas___pseudoelement_before",Ls="___html2canvas___pseudoelement_after",bs=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,nl=function(de){bl(de,"."+os+so+bs+`
|
|
|
.`+Ls+Yo+bs)},bl=function(de,xe){var ke=de.ownerDocument;if(ke){var nt=ke.createElement("style");nt.textContent=xe,de.appendChild(nt)}},Gs=function(){function ct(){}return ct.getOrigin=function(de){var xe=ct._link;return xe?(xe.href=de,xe.href=xe.href,xe.protocol+xe.hostname+xe.port):"about:blank"},ct.isSameOrigin=function(de){return ct.getOrigin(de)===ct._origin},ct.setContext=function(de){ct._link=de.document.createElement("a"),ct._origin=ct.getOrigin(de.location.href)},ct._origin="about:blank",ct}(),wl=function(){function ct(de,xe){this.context=de,this._options=xe,this._cache={}}return ct.prototype.addImage=function(de){var xe=Promise.resolve();return this.has(de)||(Wl(de)||Fs(de))&&(this._cache[de]=this.loadImage(de)).catch(function(){}),xe},ct.prototype.match=function(de){return this._cache[de]},ct.prototype.loadImage=function(de){return v(this,void 0,void 0,function(){var xe,ke,nt,er,Wr=this;return S(this,function(sn){switch(sn.label){case 0:return xe=Gs.isSameOrigin(de),ke=!vl(de)&&this._options.useCORS===!0&&Is.SUPPORT_CORS_IMAGES&&!xe,nt=!vl(de)&&!xe&&!Wl(de)&&typeof this._options.proxy=="string"&&Is.SUPPORT_CORS_XHR&&!ke,!xe&&this._options.allowTaint===!1&&!vl(de)&&!Wl(de)&&!nt&&!ke?[2]:(er=de,nt?[4,this.proxy(er)]:[3,2]);case 1:er=sn.sent(),sn.label=2;case 2:return this.context.logger.debug("Added image "+de.substring(0,256)),[4,new Promise(function(bn,Pn){var Si=new Image;Si.onload=function(){return bn(Si)},Si.onerror=Pn,(Du(er)||ke)&&(Si.crossOrigin="anonymous"),Si.src=er,Si.complete===!0&&setTimeout(function(){return bn(Si)},500),Wr._options.imageTimeout>0&&setTimeout(function(){return Pn("Timed out ("+Wr._options.imageTimeout+"ms) loading image")},Wr._options.imageTimeout)})];case 3:return[2,sn.sent()]}})})},ct.prototype.has=function(de){return typeof this._cache[de]!="undefined"},ct.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},ct.prototype.proxy=function(de){var xe=this,ke=this._options.proxy;if(!ke)throw new Error("No proxy defined");var nt=de.substring(0,256);return new Promise(function(er,Wr){var sn=Is.SUPPORT_RESPONSE_TYPE?"blob":"text",bn=new XMLHttpRequest;bn.onload=function(){if(bn.status===200)if(sn==="text")er(bn.response);else{var mi=new FileReader;mi.addEventListener("load",function(){return er(mi.result)},!1),mi.addEventListener("error",function(_i){return Wr(_i)},!1),mi.readAsDataURL(bn.response)}else Wr("Failed to proxy resource "+nt+" with status code "+bn.status)},bn.onerror=Wr;var Pn=ke.indexOf("?")>-1?"&":"?";if(bn.open("GET",""+ke+Pn+"url="+encodeURIComponent(de)+"&responseType="+sn),sn!=="text"&&bn instanceof XMLHttpRequest&&(bn.responseType=sn),xe._options.imageTimeout){var Si=xe._options.imageTimeout;bn.timeout=Si,bn.ontimeout=function(){return Wr("Timed out ("+Si+"ms) proxying "+nt)}}bn.send()})},ct}(),il=/^data:image\/svg\+xml/i,$s=/^data:image\/.*;base64,/i,Xs=/^data:image\/.*/i,Fs=function(de){return Is.SUPPORT_SVG_DRAWING||!Ys(de)},vl=function(de){return Xs.test(de)},Du=function(de){return $s.test(de)},Wl=function(de){return de.substr(0,4)==="blob"},Ys=function(de){return de.substr(-3).toLowerCase()==="svg"||il.test(de)},Dl;(function(ct){ct[ct.VECTOR=0]="VECTOR",ct[ct.BEZIER_CURVE=1]="BEZIER_CURVE"})(Dl||(Dl={}));var ol=function(de,xe){return de.length===xe.length?de.some(function(ke,nt){return ke===xe[nt]}):!1},tc=function(de,xe,ke,nt,er){return de.map(function(Wr,sn){switch(sn){case 0:return Wr.add(xe,ke);case 1:return Wr.add(xe+nt,ke);case 2:return Wr.add(xe+nt,ke+er);case 3:return Wr.add(xe,ke+er)}return Wr})},Da=function(){function ct(de,xe){this.type=Dl.VECTOR,this.x=de,this.y=xe}return ct.prototype.add=function(de,xe){return new ct(this.x+de,this.y+xe)},ct}(),El=function(de,xe,ke){return new Da(de.x+(xe.x-de.x)*ke,de.y+(xe.y-de.y)*ke)},Xl=function(){function ct(de,xe,ke,nt){this.type=Dl.BEZIER_CURVE,this.start=de,this.startControl=xe,this.endControl=ke,this.end=nt}return ct.prototype.subdivide=function(de,xe){var ke=El(this.start,this.startControl,de),nt=El(this.startControl,this.endControl,de),er=El(this.endControl,this.end,de),Wr=El(ke,nt,de),sn=El(nt,er,de),bn=El(Wr,sn,de);return xe?new ct(this.start,ke,Wr,bn):new ct(bn,sn,er,this.end)},ct.prototype.add=function(de,xe){return new ct(this.start.add(de,xe),this.startControl.add(de,xe),this.endControl.add(de,xe),this.end.add(de,xe))},ct.prototype.reverse=function(){return new ct(this.end,this.endControl,this.startControl,this.start)},ct}(),Ms=function(de){return de.type===Dl.BEZIER_CURVE},lu=function(){function ct(de){var xe=de.styles,ke=de.bounds,nt=gi(xe.borderTopLeftRadius,ke.width,ke.height),er=nt[0],Wr=nt[1],sn=gi(xe.borderTopRightRadius,ke.width,ke.height),bn=sn[0],Pn=sn[1],Si=gi(xe.borderBottomRightRadius,ke.width,ke.height),mi=Si[0],_i=Si[1],wa=gi(xe.borderBottomLeftRadius,ke.width,ke.height),Sa=wa[0],Ua=wa[1],ko=[];ko.push((er+bn)/ke.width),ko.push((Sa+mi)/ke.width),ko.push((Wr+Ua)/ke.height),ko.push((Pn+_i)/ke.height);var fo=Math.max.apply(Math,ko);fo>1&&(er/=fo,Wr/=fo,bn/=fo,Pn/=fo,mi/=fo,_i/=fo,Sa/=fo,Ua/=fo);var io=ke.width-bn,gs=ke.height-_i,Es=ke.width-mi,ss=ke.height-Ua,eo=xe.borderTopWidth,Ns=xe.borderRightWidth,ks=xe.borderBottomWidth,ls=xe.borderLeftWidth,ql=vi(xe.paddingTop,de.bounds.width),Au=vi(xe.paddingRight,de.bounds.width),eu=vi(xe.paddingBottom,de.bounds.width),Cl=vi(xe.paddingLeft,de.bounds.width);this.topLeftBorderDoubleOuterBox=er>0||Wr>0?js(ke.left+ls/3,ke.top+eo/3,er-ls/3,Wr-eo/3,As.TOP_LEFT):new Da(ke.left+ls/3,ke.top+eo/3),this.topRightBorderDoubleOuterBox=er>0||Wr>0?js(ke.left+io,ke.top+eo/3,bn-Ns/3,Pn-eo/3,As.TOP_RIGHT):new Da(ke.left+ke.width-Ns/3,ke.top+eo/3),this.bottomRightBorderDoubleOuterBox=mi>0||_i>0?js(ke.left+Es,ke.top+gs,mi-Ns/3,_i-ks/3,As.BOTTOM_RIGHT):new Da(ke.left+ke.width-Ns/3,ke.top+ke.height-ks/3),this.bottomLeftBorderDoubleOuterBox=Sa>0||Ua>0?js(ke.left+ls/3,ke.top+ss,Sa-ls/3,Ua-ks/3,As.BOTTOM_LEFT):new Da(ke.left+ls/3,ke.top+ke.height-ks/3),this.topLeftBorderDoubleInnerBox=er>0||Wr>0?js(ke.left+ls*2/3,ke.top+eo*2/3,er-ls*2/3,Wr-eo*2/3,As.TOP_LEFT):new Da(ke.left+ls*2/3,ke.top+eo*2/3),this.topRightBorderDoubleInnerBox=er>0||Wr>0?js(ke.left+io,ke.top+eo*2/3,bn-Ns*2/3,Pn-eo*2/3,As.TOP_RIGHT):new Da(ke.left+ke.width-Ns*2/3,ke.top+eo*2/3),this.bottomRightBorderDoubleInnerBox=mi>0||_i>0?js(ke.left+Es,ke.top+gs,mi-Ns*2/3,_i-ks*2/3,As.BOTTOM_RIGHT):new Da(ke.left+ke.width-Ns*2/3,ke.top+ke.height-ks*2/3),this.bottomLeftBorderDoubleInnerBox=Sa>0||Ua>0?js(ke.left+ls*2/3,ke.top+ss,Sa-ls*2/3,Ua-ks*2/3,As.BOTTOM_LEFT):new Da(ke.left+ls*2/3,ke.top+ke.height-ks*2/3),this.topLeftBorderStroke=er>0||Wr>0?js(ke.left+ls/2,ke.top+eo/2,er-ls/2,Wr-eo/2,As.TOP_LEFT):new Da(ke.left+ls/2,ke.top+eo/2),this.topRightBorderStroke=er>0||Wr>0?js(ke.left+io,ke.top+eo/2,bn-Ns/2,Pn-eo/2,As.TOP_RIGHT):new Da(ke.left+ke.width-Ns/2,ke.top+eo/2),this.bottomRightBorderStroke=mi>0||_i>0?js(ke.left+Es,ke.top+gs,mi-Ns/2,_i-ks/2,As.BOTTOM_RIGHT):new Da(ke.left+ke.width-Ns/2,ke.top+ke.height-ks/2),this.bottomLeftBorderStroke=Sa>0||Ua>0?js(ke.left+ls/2,ke.top+ss,Sa-ls/2,Ua-ks/2,As.BOTTOM_LEFT):new Da(ke.left+ls/2,ke.top+ke.height-ks/2),this.topLeftBorderBox=er>0||Wr>0?js(ke.left,ke.top,er,Wr,As.TOP_LEFT):new Da(ke.left,ke.top),this.topRightBorderBox=bn>0||Pn>0?js(ke.left+io,ke.top,bn,Pn,As.TOP_RIGHT):new Da(ke.left+ke.width,ke.top),this.bottomRightBorderBox=mi>0||_i>0?js(ke.left+Es,ke.top+gs,mi,_i,As.BOTTOM_RIGHT):new Da(ke.left+ke.width,ke.top+ke.height),this.bottomLeftBorderBox=Sa>0||Ua>0?js(ke.left,ke.top+ss,Sa,Ua,As.BOTTOM_LEFT):new Da(ke.left,ke.top+ke.height),this.topLeftPaddingBox=er>0||Wr>0?js(ke.left+ls,ke.top+eo,Math.max(0,er-ls),Math.max(0,Wr-eo),As.TOP_LEFT):new Da(ke.left+ls,ke.top+eo),this.topRightPaddingBox=bn>0||Pn>0?js(ke.left+Math.min(io,ke.width-Ns),ke.top+eo,io>ke.width+Ns?0:Math.max(0,bn-Ns),Math.max(0,Pn-eo),As.TOP_RIGHT):new Da(ke.left+ke.width-Ns,ke.top+eo),this.bottomRightPaddingBox=mi>0||_i>0?js(ke.left+Math.min(Es,ke.width-ls),ke.top+Math.min(gs,ke.height-ks),Math.max(0,mi-Ns),Math.max(0,_i-ks),As.BOTTOM_RIGHT):new Da(ke.left+ke.width-Ns,ke.top+ke.height-ks),this.bottomLeftPaddingBox=Sa>0||Ua>0?js(ke.left+ls,ke.top+Math.min(ss,ke.height-ks),Math.max(0,Sa-ls),Math.max(0,Ua-ks),As.BOTTOM_LEFT):new Da(ke.left+ls,ke.top+ke.height-ks),this.topLeftContentBox=er>0||Wr>0?js(ke.left+ls+Cl,ke.top+eo+ql,Math.max(0,er-(ls+Cl)),Math.max(0,Wr-(eo+ql)),As.TOP_LEFT):new Da(ke.left+ls+Cl,ke.top+eo+ql),this.topRightContentBox=bn>0||Pn>0?js(ke.left+Math.min(io,ke.width+ls+Cl),ke.top+eo+ql,io>ke.width+ls+Cl?0:bn-ls+Cl,Pn-(eo+ql),As.TOP_RIGHT):new Da(ke.left+ke.width-(Ns+Au),ke.top+eo+ql),this.bottomRightContentBox=mi>0||_i>0?js(ke.left+Math.min(Es,ke.width-(ls+Cl)),ke.top+Math.min(gs,ke.height+eo+ql),Math.max(0,mi-(Ns+Au)),_i-(ks+eu),As.BOTTOM_RIGHT):new Da(ke.left+ke.width-(Ns+Au),ke.top+ke.height-(ks+eu)),this.bottomLeftContentBox=Sa>0||Ua>0?js(ke.left+ls+Cl,ke.top+ss,Math.max(0,Sa-(ls+Cl)),Ua-(ks+eu),As.BOTTOM_LEFT):new Da(ke.left+ls+Cl,ke.top+ke.height-(ks+eu))}return ct}(),As;(function(ct){ct[ct.TOP_LEFT=0]="TOP_LEFT",ct[ct.TOP_RIGHT=1]="TOP_RIGHT",ct[ct.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",ct[ct.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(As||(As={}));var js=function(de,xe,ke,nt,er){var Wr=4*((Math.sqrt(2)-1)/3),sn=ke*Wr,bn=nt*Wr,Pn=de+ke,Si=xe+nt;switch(er){case As.TOP_LEFT:return new Xl(new Da(de,Si),new Da(de,Si-bn),new Da(Pn-sn,xe),new Da(Pn,xe));case As.TOP_RIGHT:return new Xl(new Da(de,xe),new Da(de+sn,xe),new Da(Pn,Si-bn),new Da(Pn,Si));case As.BOTTOM_RIGHT:return new Xl(new Da(Pn,xe),new Da(Pn,xe+bn),new Da(de+sn,Si),new Da(de,Si));case As.BOTTOM_LEFT:default:return new Xl(new Da(Pn,Si),new Da(Pn-sn,Si),new Da(de,xe+bn),new Da(de,xe))}},rc=function(de){return[de.topLeftBorderBox,de.topRightBorderBox,de.bottomRightBorderBox,de.bottomLeftBorderBox]},xc=function(de){return[de.topLeftContentBox,de.topRightContentBox,de.bottomRightContentBox,de.bottomLeftContentBox]},Uu=function(de){return[de.topLeftPaddingBox,de.topRightPaddingBox,de.bottomRightPaddingBox,de.bottomLeftPaddingBox]},wc=function(){function ct(de,xe,ke){this.offsetX=de,this.offsetY=xe,this.matrix=ke,this.type=0,this.target=2|4}return ct}(),Vu=function(){function ct(de,xe){this.path=de,this.target=xe,this.type=1}return ct}(),Ru=function(){function ct(de){this.opacity=de,this.type=2,this.target=2|4}return ct}(),Sc=function(de){return de.type===0},fc=function(de){return de.type===1},Ec=function(de){return de.type===2},pc=function(){function ct(de){this.element=de,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return ct}(),ju=function(){function ct(de,xe){if(this.container=de,this.parent=xe,this.effects=[],this.curves=new lu(this.container),this.container.styles.opacity<1&&this.effects.push(new Ru(this.container.styles.opacity)),this.container.styles.transform!==null){var ke=this.container.bounds.left+this.container.styles.transformOrigin[0].number,nt=this.container.bounds.top+this.container.styles.transformOrigin[1].number,er=this.container.styles.transform;this.effects.push(new wc(ke,nt,er))}if(this.container.styles.overflowX!==ns.VISIBLE){var Wr=rc(this.curves),sn=Uu(this.curves);ol(Wr,sn)?this.effects.push(new Vu(Wr,2|4)):(this.effects.push(new Vu(Wr,2)),this.effects.push(new Vu(sn,4)))}}return ct.prototype.getEffects=function(de){for(var xe=[Ft.ABSOLUTE,Ft.FIXED].indexOf(this.container.styles.position)===-1,ke=this.parent,nt=this.effects.slice(0);ke;){var er=ke.effects.filter(function(bn){return!fc(bn)});if(xe||ke.container.styles.position!==Ft.STATIC||!ke.parent){if(nt.unshift.apply(nt,er),xe=[Ft.ABSOLUTE,Ft.FIXED].indexOf(ke.container.styles.position)===-1,ke.container.styles.overflowX!==ns.VISIBLE){var Wr=rc(ke.curves),sn=Uu(ke.curves);ol(Wr,sn)||nt.unshift(new Vu(sn,2|4))}}else nt.unshift.apply(nt,er);ke=ke.parent}return nt.filter(function(bn){return Ha(bn.target,de)})},ct}(),Cc=function ct(de,xe,ke,nt){de.container.elements.forEach(function(er){var Wr=Ha(er.flags,4),sn=Ha(er.flags,2),bn=new ju(er,de);Ha(er.styles.display,2048)&&nt.push(bn);var Pn=Ha(er.flags,8)?[]:nt;if(Wr||sn){var Si=Wr||er.styles.isPositioned()?ke:xe,mi=new pc(bn);if(er.styles.isPositioned()||er.styles.opacity<1||er.styles.isTransformed()){var _i=er.styles.zIndex.order;if(_i<0){var wa=0;Si.negativeZIndex.some(function(Ua,ko){return _i>Ua.element.container.styles.zIndex.order?(wa=ko,!1):wa>0}),Si.negativeZIndex.splice(wa,0,mi)}else if(_i>0){var Sa=0;Si.positiveZIndex.some(function(Ua,ko){return _i>=Ua.element.container.styles.zIndex.order?(Sa=ko+1,!1):Sa>0}),Si.positiveZIndex.splice(Sa,0,mi)}else Si.zeroOrAutoZIndexOrTransformedOrOpacity.push(mi)}else er.styles.isFloating()?Si.nonPositionedFloats.push(mi):Si.nonPositionedInlineLevel.push(mi);ct(bn,mi,Wr?mi:ke,Pn)}else er.styles.isInlineLevel()?xe.inlineLevel.push(bn):xe.nonInlineLevel.push(bn),ct(bn,xe,ke,Pn);Ha(er.flags,8)&&mc(er,Pn)})},mc=function(de,xe){for(var ke=de instanceof su?de.start:1,nt=de instanceof su?de.reversed:!1,er=0;er<xe.length;er++){var Wr=xe[er];Wr.container instanceof pu&&typeof Wr.container.value=="number"&&Wr.container.value!==0&&(ke=Wr.container.value),Wr.listValue=lr(ke,Wr.container.styles.listStyleType,!0),ke+=nt?-1:1}},Tc=function(de){var xe=new ju(de,null),ke=new pc(xe),nt=[];return Cc(xe,ke,ke,nt),mc(xe.container,nt),ke},gc=function(de,xe){switch(xe){case 0:return hl(de.topLeftBorderBox,de.topLeftPaddingBox,de.topRightBorderBox,de.topRightPaddingBox);case 1:return hl(de.topRightBorderBox,de.topRightPaddingBox,de.bottomRightBorderBox,de.bottomRightPaddingBox);case 2:return hl(de.bottomRightBorderBox,de.bottomRightPaddingBox,de.bottomLeftBorderBox,de.bottomLeftPaddingBox);case 3:default:return hl(de.bottomLeftBorderBox,de.bottomLeftPaddingBox,de.topLeftBorderBox,de.topLeftPaddingBox)}},Oc=function(de,xe){switch(xe){case 0:return hl(de.topLeftBorderBox,de.topLeftBorderDoubleOuterBox,de.topRightBorderBox,de.topRightBorderDoubleOuterBox);case 1:return hl(de.topRightBorderBox,de.topRightBorderDoubleOuterBox,de.bottomRightBorderBox,de.bottomRightBorderDoubleOuterBox);case 2:return hl(de.bottomRightBorderBox,de.bottomRightBorderDoubleOuterBox,de.bottomLeftBorderBox,de.bottomLeftBorderDoubleOuterBox);case 3:default:return hl(de.bottomLeftBorderBox,de.bottomLeftBorderDoubleOuterBox,de.topLeftBorderBox,de.topLeftBorderDoubleOuterBox)}},nc=function(de,xe){switch(xe){case 0:return hl(de.topLeftBorderDoubleInnerBox,de.topLeftPaddingBox,de.topRightBorderDoubleInnerBox,de.topRightPaddingBox);case 1:return hl(de.topRightBorderDoubleInnerBox,de.topRightPaddingBox,de.bottomRightBorderDoubleInnerBox,de.bottomRightPaddingBox);case 2:return hl(de.bottomRightBorderDoubleInnerBox,de.bottomRightPaddingBox,de.bottomLeftBorderDoubleInnerBox,de.bottomLeftPaddingBox);case 3:default:return hl(de.bottomLeftBorderDoubleInnerBox,de.bottomLeftPaddingBox,de.topLeftBorderDoubleInnerBox,de.topLeftPaddingBox)}},vc=function(de,xe){switch(xe){case 0:return Hu(de.topLeftBorderStroke,de.topRightBorderStroke);case 1:return Hu(de.topRightBorderStroke,de.bottomRightBorderStroke);case 2:return Hu(de.bottomRightBorderStroke,de.bottomLeftBorderStroke);case 3:default:return Hu(de.bottomLeftBorderStroke,de.topLeftBorderStroke)}},Hu=function(de,xe){var ke=[];return Ms(de)?ke.push(de.subdivide(.5,!1)):ke.push(de),Ms(xe)?ke.push(xe.subdivide(.5,!0)):ke.push(xe),ke},hl=function(de,xe,ke,nt){var er=[];return Ms(de)?er.push(de.subdivide(.5,!1)):er.push(de),Ms(ke)?er.push(ke.subdivide(.5,!0)):er.push(ke),Ms(nt)?er.push(nt.subdivide(.5,!0).reverse()):er.push(nt),Ms(xe)?er.push(xe.subdivide(.5,!1).reverse()):er.push(xe),er},Ou=function(de){var xe=de.bounds,ke=de.styles;return xe.add(ke.borderLeftWidth,ke.borderTopWidth,-(ke.borderRightWidth+ke.borderLeftWidth),-(ke.borderTopWidth+ke.borderBottomWidth))},uu=function(de){var xe=de.styles,ke=de.bounds,nt=vi(xe.paddingLeft,ke.width),er=vi(xe.paddingRight,ke.width),Wr=vi(xe.paddingTop,ke.width),sn=vi(xe.paddingBottom,ke.width);return ke.add(nt+xe.borderLeftWidth,Wr+xe.borderTopWidth,-(xe.borderRightWidth+xe.borderLeftWidth+nt+er),-(xe.borderTopWidth+xe.borderBottomWidth+Wr+sn))},uc=function(de,xe){return de===0?xe.bounds:de===2?uu(xe):Ou(xe)},Ac=function(de,xe){return de===Ea.BORDER_BOX?xe.bounds:de===Ea.CONTENT_BOX?uu(xe):Ou(xe)},cc=function(de,xe,ke){var nt=uc(dc(de.styles.backgroundOrigin,xe),de),er=Ac(dc(de.styles.backgroundClip,xe),de),Wr=yc(dc(de.styles.backgroundSize,xe),ke,nt),sn=Wr[0],bn=Wr[1],Pn=gi(dc(de.styles.backgroundPosition,xe),nt.width-sn,nt.height-bn),Si=Lc(dc(de.styles.backgroundRepeat,xe),Pn,Wr,nt,er),mi=Math.round(nt.left+Pn[0]),_i=Math.round(nt.top+Pn[1]);return[Si,mi,_i,sn,bn]},Gu=function(de){return pn(de)&&de.value===ti.AUTO},Xu=function(de){return typeof de=="number"},yc=function(de,xe,ke){var nt=xe[0],er=xe[1],Wr=xe[2],sn=de[0],bn=de[1];if(!sn)return[0,0];if(On(sn)&&bn&&On(bn))return[vi(sn,ke.width),vi(bn,ke.height)];var Pn=Xu(Wr);if(pn(sn)&&(sn.value===ti.CONTAIN||sn.value===ti.COVER)){if(Xu(Wr)){var Si=ke.width/ke.height;return Si<Wr!==(sn.value===ti.COVER)?[ke.width,ke.width/Wr]:[ke.height*Wr,ke.height]}return[ke.width,ke.height]}var mi=Xu(nt),_i=Xu(er),wa=mi||_i;if(Gu(sn)&&(!bn||Gu(bn))){if(mi&&_i)return[nt,er];if(!Pn&&!wa)return[ke.width,ke.height];if(wa&&Pn){var Sa=mi?nt:er*Wr,Ua=_i?er:nt/Wr;return[Sa,Ua]}var ko=mi?nt:ke.width,fo=_i?er:ke.height;return[ko,fo]}if(Pn){var io=0,gs=0;return On(sn)?io=vi(sn,ke.width):On(bn)&&(gs=vi(bn,ke.height)),Gu(sn)?io=gs*Wr:(!bn||Gu(bn))&&(gs=io/Wr),[io,gs]}var Es=null,ss=null;if(On(sn)?Es=vi(sn,ke.width):bn&&On(bn)&&(ss=vi(bn,ke.height)),Es!==null&&(!bn||Gu(bn))&&(ss=mi&&_i?Es/nt*er:ke.height),ss!==null&&Gu(sn)&&(Es=mi&&_i?ss/er*nt:ke.width),Es!==null&&ss!==null)return[Es,ss];throw new Error("Unable to calculate background-size for element")},dc=function(de,xe){var ke=de[xe];return typeof ke=="undefined"?de[0]:ke},Lc=function(de,xe,ke,nt,er){var Wr=xe[0],sn=xe[1],bn=ke[0],Pn=ke[1];switch(de){case Kn.REPEAT_X:return[new Da(Math.round(nt.left),Math.round(nt.top+sn)),new Da(Math.round(nt.left+nt.width),Math.round(nt.top+sn)),new Da(Math.round(nt.left+nt.width),Math.round(Pn+nt.top+sn)),new Da(Math.round(nt.left),Math.round(Pn+nt.top+sn))];case Kn.REPEAT_Y:return[new Da(Math.round(nt.left+Wr),Math.round(nt.top)),new Da(Math.round(nt.left+Wr+bn),Math.round(nt.top)),new Da(Math.round(nt.left+Wr+bn),Math.round(nt.height+nt.top)),new Da(Math.round(nt.left+Wr),Math.round(nt.height+nt.top))];case Kn.NO_REPEAT:return[new Da(Math.round(nt.left+Wr),Math.round(nt.top+sn)),new Da(Math.round(nt.left+Wr+bn),Math.round(nt.top+sn)),new Da(Math.round(nt.left+Wr+bn),Math.round(nt.top+sn+Pn)),new Da(Math.round(nt.left+Wr),Math.round(nt.top+sn+Pn))];default:return[new Da(Math.round(er.left),Math.round(er.top)),new Da(Math.round(er.left+er.width),Math.round(er.top)),new Da(Math.round(er.left+er.width),Math.round(er.height+er.top)),new Da(Math.round(er.left),Math.round(er.height+er.top))]}},Nc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Ic="Hidden Text",Dc=function(){function ct(de){this._data={},this._document=de}return ct.prototype.parseMetrics=function(de,xe){var ke=this._document.createElement("div"),nt=this._document.createElement("img"),er=this._document.createElement("span"),Wr=this._document.body;ke.style.visibility="hidden",ke.style.fontFamily=de,ke.style.fontSize=xe,ke.style.margin="0",ke.style.padding="0",Wr.appendChild(ke),nt.src=Nc,nt.width=1,nt.height=1,nt.style.margin="0",nt.style.padding="0",nt.style.verticalAlign="baseline",er.style.fontFamily=de,er.style.fontSize=xe,er.style.margin="0",er.style.padding="0",er.appendChild(this._document.createTextNode(Ic)),ke.appendChild(er),ke.appendChild(nt);var sn=nt.offsetTop-er.offsetTop+2;ke.removeChild(er),ke.appendChild(this._document.createTextNode(Ic)),ke.style.lineHeight="normal",nt.style.verticalAlign="super";var bn=nt.offsetTop-ke.offsetTop+2;return Wr.removeChild(ke),{baseline:sn,middle:bn}},ct.prototype.getMetrics=function(de,xe){var ke=de+" "+xe;return typeof this._data[ke]=="undefined"&&(this._data[ke]=this.parseMetrics(de,xe)),this._data[ke]},ct}(),_c=function(){function ct(de,xe){this.context=de,this.options=xe}return ct}(),Rc=1e4,Mc=function(ct){x(de,ct);function de(xe,ke){var nt=ct.call(this,xe,ke)||this;return nt._activeEffects=[],nt.canvas=ke.canvas?ke.canvas:document.createElement("canvas"),nt.ctx=nt.canvas.getContext("2d"),ke.canvas||(nt.canvas.width=Math.floor(ke.width*ke.scale),nt.canvas.height=Math.floor(ke.height*ke.scale),nt.canvas.style.width=ke.width+"px",nt.canvas.style.height=ke.height+"px"),nt.fontMetrics=new Dc(document),nt.ctx.scale(nt.options.scale,nt.options.scale),nt.ctx.translate(-ke.x,-ke.y),nt.ctx.textBaseline="bottom",nt._activeEffects=[],nt.context.logger.debug("Canvas renderer initialized ("+ke.width+"x"+ke.height+") with scale "+ke.scale),nt}return de.prototype.applyEffects=function(xe){for(var ke=this;this._activeEffects.length;)this.popEffect();xe.forEach(function(nt){return ke.applyEffect(nt)})},de.prototype.applyEffect=function(xe){this.ctx.save(),Ec(xe)&&(this.ctx.globalAlpha=xe.opacity),Sc(xe)&&(this.ctx.translate(xe.offsetX,xe.offsetY),this.ctx.transform(xe.matrix[0],xe.matrix[1],xe.matrix[2],xe.matrix[3],xe.matrix[4],xe.matrix[5]),this.ctx.translate(-xe.offsetX,-xe.offsetY)),fc(xe)&&(this.path(xe.path),this.ctx.clip()),this._activeEffects.push(xe)},de.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},de.prototype.renderStack=function(xe){return v(this,void 0,void 0,function(){var ke;return S(this,function(nt){switch(nt.label){case 0:return ke=xe.element.container.styles,ke.isVisible()?[4,this.renderStackContent(xe)]:[3,2];case 1:nt.sent(),nt.label=2;case 2:return[2]}})})},de.prototype.renderNode=function(xe){return v(this,void 0,void 0,function(){return S(this,function(ke){switch(ke.label){case 0:if(Ha(xe.container.flags,16))debugger;return xe.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(xe)]:[3,3];case 1:return ke.sent(),[4,this.renderNodeContent(xe)];case 2:ke.sent(),ke.label=3;case 3:return[2]}})})},de.prototype.renderTextWithLetterSpacing=function(xe,ke,nt){var er=this;if(ke===0)this.ctx.fillText(xe.text,xe.bounds.left,xe.bounds.top+nt);else{var Wr=_l(xe.text);Wr.reduce(function(sn,bn){return er.ctx.fillText(bn,sn,xe.bounds.top+nt),sn+er.ctx.measureText(bn).width},xe.bounds.left)}},de.prototype.createFontStyle=function(xe){var ke=xe.fontVariant.filter(function(Wr){return Wr==="normal"||Wr==="small-caps"}).join(""),nt=xe.fontFamily.join(", "),er=Nr(xe.fontSize)?""+xe.fontSize.number+xe.fontSize.unit:xe.fontSize.number+"px";return[[xe.fontStyle,ke,xe.fontWeight,er,nt].join(" "),nt,er]},de.prototype.renderTextNode=function(xe,ke){return v(this,void 0,void 0,function(){var nt,er,Wr,sn,bn,Pn,Si,mi,_i=this;return S(this,function(wa){return nt=this.createFontStyle(ke),er=nt[0],Wr=nt[1],sn=nt[2],this.ctx.font=er,this.ctx.direction=ke.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",bn=this.fontMetrics.getMetrics(Wr,sn),Pn=bn.baseline,Si=bn.middle,mi=ke.paintOrder,xe.textBounds.forEach(function(Sa){mi.forEach(function(Ua){switch(Ua){case Xo.FILL:_i.ctx.fillStyle=Ui(ke.color),_i.renderTextWithLetterSpacing(Sa,ke.letterSpacing,Pn);var ko=ke.textShadow;ko.length&&Sa.text.trim().length&&(ko.slice(0).reverse().forEach(function(fo){_i.ctx.shadowColor=Ui(fo.color),_i.ctx.shadowOffsetX=fo.offsetX.number*_i.options.scale,_i.ctx.shadowOffsetY=fo.offsetY.number*_i.options.scale,_i.ctx.shadowBlur=fo.blur.number,_i.renderTextWithLetterSpacing(Sa,ke.letterSpacing,Pn)}),_i.ctx.shadowColor="",_i.ctx.shadowOffsetX=0,_i.ctx.shadowOffsetY=0,_i.ctx.shadowBlur=0),ke.textDecorationLine.length&&(_i.ctx.fillStyle=Ui(ke.textDecorationColor||ke.color),ke.textDecorationLine.forEach(function(fo){switch(fo){case 1:_i.ctx.fillRect(Sa.bounds.left,Math.round(Sa.bounds.top+Pn),Sa.bounds.width,1);break;case 2:_i.ctx.fillRect(Sa.bounds.left,Math.round(Sa.bounds.top),Sa.bounds.width,1);break;case 3:_i.ctx.fillRect(Sa.bounds.left,Math.ceil(Sa.bounds.top+Si),Sa.bounds.width,1);break}}));break;case Xo.STROKE:ke.webkitTextStrokeWidth&&Sa.text.trim().length&&(_i.ctx.strokeStyle=Ui(ke.webkitTextStrokeColor),_i.ctx.lineWidth=ke.webkitTextStrokeWidth,_i.ctx.lineJoin=window.chrome?"miter":"round",_i.ctx.strokeText(Sa.text,Sa.bounds.left,Sa.bounds.top+Pn)),_i.ctx.strokeStyle="",_i.ctx.lineWidth=0,_i.ctx.lineJoin="miter";break}})}),[2]})})},de.prototype.renderReplacedElement=function(xe,ke,nt){if(nt&&xe.intrinsicWidth>0&&xe.intrinsicHeight>0){var er=uu(xe),Wr=Uu(ke);this.path(Wr),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(nt,0,0,xe.intrinsicWidth,xe.intrinsicHeight,er.left,er.top,er.width,er.height),this.ctx.restore()}},de.prototype.renderNodeContent=function(xe){return v(this,void 0,void 0,function(){var ke,nt,er,Wr,sn,bn,Pn,Pn,Si,mi,_i,wa,Sa,Ua,ko,fo,io,gs,Es,Pn,ss,Sa,fo;return S(this,function(eo){switch(eo.label){case 0:this.applyEffects(xe.getEffects(4)),ke=xe.container,nt=xe.curves,er=ke.styles,Wr=0,sn=ke.textNodes,eo.label=1;case 1:return Wr<sn.length?(bn=sn[Wr],[4,this.renderTextNode(bn,er)]):[3,4];case 2:eo.sent(),eo.label=3;case 3:return Wr++,[3,1];case 4:if(!(ke instanceof Kl))return[3,8];eo.label=5;case 5:return eo.trys.push([5,7,,8]),[4,this.context.cache.match(ke.src)];case 6:return Pn=eo.sent(),this.renderReplacedElement(ke,nt,Pn),[3,8];case 7:return eo.sent(),this.context.logger.error("Error loading image "+ke.src),[3,8];case 8:if(ke instanceof Vs&&this.renderReplacedElement(ke,nt,ke.canvas),!(ke instanceof Gl))return[3,12];eo.label=9;case 9:return eo.trys.push([9,11,,12]),[4,this.context.cache.match(ke.svg)];case 10:return Pn=eo.sent(),this.renderReplacedElement(ke,nt,Pn),[3,12];case 11:return eo.sent(),this.context.logger.error("Error loading svg "+ke.svg.substring(0,255)),[3,12];case 12:return ke instanceof Bu&&ke.tree?(Si=new de(this.context,{scale:this.options.scale,backgroundColor:ke.backgroundColor,x:0,y:0,width:ke.width,height:ke.height}),[4,Si.render(ke.tree)]):[3,14];case 13:mi=eo.sent(),ke.width&&ke.height&&this.ctx.drawImage(mi,0,0,ke.width,ke.height,ke.bounds.left,ke.bounds.top,ke.bounds.width,ke.bounds.height),eo.label=14;case 14:if(ke instanceof Cu&&(_i=Math.min(ke.bounds.width,ke.bounds.height),ke.type===mu?ke.checked&&(this.ctx.save(),this.path([new Da(ke.bounds.left+_i*.39363,ke.bounds.top+_i*.79),new Da(ke.bounds.left+_i*.16,ke.bounds.top+_i*.5549),new Da(ke.bounds.left+_i*.27347,ke.bounds.top+_i*.44071),new Da(ke.bounds.left+_i*.39694,ke.bounds.top+_i*.5649),new Da(ke.bounds.left+_i*.72983,ke.bounds.top+_i*.23),new Da(ke.bounds.left+_i*.84,ke.bounds.top+_i*.34085),new Da(ke.bounds.left+_i*.39363,ke.bounds.top+_i*.79)]),this.ctx.fillStyle=Ui(Fu),this.ctx.fill(),this.ctx.restore()):ke.type===Lu&&(ke.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(ke.bounds.left+_i/2,ke.bounds.top+_i/2,_i/4,0,Math.PI*2,!0),this.ctx.fillStyle=Ui(Fu),this.ctx.fill(),this.ctx.restore()))),kc(ke)&&ke.value.length){wa=this.createFontStyle(er),Sa=wa[0],Ua=wa[1],ko=this.fontMetrics.getMetrics(Sa,Ua).baseline,this.ctx.font=Sa,this.ctx.fillStyle=Ui(er.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Fc(ke.styles.textAlign),fo=uu(ke),io=0;switch(ke.styles.textAlign){case Go.CENTER:io+=fo.width/2;break;case Go.RIGHT:io+=fo.width;break}gs=fo.add(io,0,0,-fo.height/2+1),this.ctx.save(),this.path([new Da(fo.left,fo.top),new Da(fo.left+fo.width,fo.top),new Da(fo.left+fo.width,fo.top+fo.height),new Da(fo.left,fo.top+fo.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new cl(ke.value,gs),er.letterSpacing,ko),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Ha(ke.styles.display,2048))return[3,20];if(!(ke.styles.listStyleImage!==null))return[3,19];if(Es=ke.styles.listStyleImage,!(Es.type===ar.URL))return[3,18];Pn=void 0,ss=Es.url,eo.label=15;case 15:return eo.trys.push([15,17,,18]),[4,this.context.cache.match(ss)];case 16:return Pn=eo.sent(),this.ctx.drawImage(Pn,ke.bounds.left-(Pn.width+10),ke.bounds.top),[3,18];case 17:return eo.sent(),this.context.logger.error("Error loading list-style-image "+ss),[3,18];case 18:return[3,20];case 19:xe.listValue&&ke.styles.listStyleType!==Fi.NONE&&(Sa=this.createFontStyle(er)[0],this.ctx.font=Sa,this.ctx.fillStyle=Ui(er.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",fo=new f(ke.bounds.left,ke.bounds.top+vi(ke.styles.paddingTop,ke.bounds.width),ke.bounds.width,us(er.lineHeight,er.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new cl(xe.listValue,fo),er.letterSpacing,us(er.lineHeight,er.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),eo.label=20;case 20:return[2]}})})},de.prototype.renderStackContent=function(xe){return v(this,void 0,void 0,function(){var ke,nt,er,Wr,sn,er,bn,Pn,er,Si,mi,er,_i,wa,er,Sa,Ua,er,ko,fo,er;return S(this,function(io){switch(io.label){case 0:if(Ha(xe.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(xe.element)];case 1:io.sent(),ke=0,nt=xe.negativeZIndex,io.label=2;case 2:return ke<nt.length?(er=nt[ke],[4,this.renderStack(er)]):[3,5];case 3:io.sent(),io.label=4;case 4:return ke++,[3,2];case 5:return[4,this.renderNodeContent(xe.element)];case 6:io.sent(),Wr=0,sn=xe.nonInlineLevel,io.label=7;case 7:return Wr<sn.length?(er=sn[Wr],[4,this.renderNode(er)]):[3,10];case 8:io.sent(),io.label=9;case 9:return Wr++,[3,7];case 10:bn=0,Pn=xe.nonPositionedFloats,io.label=11;case 11:return bn<Pn.length?(er=Pn[bn],[4,this.renderStack(er)]):[3,14];case 12:io.sent(),io.label=13;case 13:return bn++,[3,11];case 14:Si=0,mi=xe.nonPositionedInlineLevel,io.label=15;case 15:return Si<mi.length?(er=mi[Si],[4,this.renderStack(er)]):[3,18];case 16:io.sent(),io.label=17;case 17:return Si++,[3,15];case 18:_i=0,wa=xe.inlineLevel,io.label=19;case 19:return _i<wa.length?(er=wa[_i],[4,this.renderNode(er)]):[3,22];case 20:io.sent(),io.label=21;case 21:return _i++,[3,19];case 22:Sa=0,Ua=xe.zeroOrAutoZIndexOrTransformedOrOpacity,io.label=23;case 23:return Sa<Ua.length?(er=Ua[Sa],[4,this.renderStack(er)]):[3,26];case 24:io.sent(),io.label=25;case 25:return Sa++,[3,23];case 26:ko=0,fo=xe.positiveZIndex,io.label=27;case 27:return ko<fo.length?(er=fo[ko],[4,this.renderStack(er)]):[3,30];case 28:io.sent(),io.label=29;case 29:return ko++,[3,27];case 30:return[2]}})})},de.prototype.mask=function(xe){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(xe.slice(0).reverse()),this.ctx.closePath()},de.prototype.path=function(xe){this.ctx.beginPath(),this.formatPath(xe),this.ctx.closePath()},de.prototype.formatPath=function(xe){var ke=this;xe.forEach(function(nt,er){var Wr=Ms(nt)?nt.start:nt;er===0?ke.ctx.moveTo(Wr.x,Wr.y):ke.ctx.lineTo(Wr.x,Wr.y),Ms(nt)&&ke.ctx.bezierCurveTo(nt.startControl.x,nt.startControl.y,nt.endControl.x,nt.endControl.y,nt.end.x,nt.end.y)})},de.prototype.renderRepeat=function(xe,ke,nt,er){this.path(xe),this.ctx.fillStyle=ke,this.ctx.translate(nt,er),this.ctx.fill(),this.ctx.translate(-nt,-er)},de.prototype.resizeImage=function(xe,ke,nt){var er;if(xe.width===ke&&xe.height===nt)return xe;var Wr=(er=this.canvas.ownerDocument)!==null&&er!==void 0?er:document,sn=Wr.createElement("canvas");sn.width=Math.max(1,ke),sn.height=Math.max(1,nt);var bn=sn.getContext("2d");return bn.drawImage(xe,0,0,xe.width,xe.height,0,0,ke,nt),sn},de.prototype.renderBackgroundImage=function(xe){return v(this,void 0,void 0,function(){var ke,nt,er,Wr,sn,bn;return S(this,function(Pn){switch(Pn.label){case 0:ke=xe.styles.backgroundImage.length-1,nt=function(mi){var _i,wa,Sa,Ua,ko,fo,io,gs,Es,ss,Ua,ko,fo,io,gs,eo,Ns,ks,ls,ql,Au,eu,Cl,ic,Es,Mu,Ua,Yu,Qu,io,gs,Ju,ko,fo,ac,ku,Zu,oc,sc,Ku,lc,Wu;return S(this,function(hc){switch(hc.label){case 0:if(!(mi.type===ar.URL))return[3,5];_i=void 0,wa=mi.url,hc.label=1;case 1:return hc.trys.push([1,3,,4]),[4,er.context.cache.match(wa)];case 2:return _i=hc.sent(),[3,4];case 3:return hc.sent(),er.context.logger.error("Error loading background-image "+wa),[3,4];case 4:return _i&&(Sa=cc(xe,ke,[_i.width,_i.height,_i.width/_i.height]),Ua=Sa[0],ko=Sa[1],fo=Sa[2],io=Sa[3],gs=Sa[4],Es=er.ctx.createPattern(er.resizeImage(_i,io,gs),"repeat"),er.renderRepeat(Ua,Es,ko,fo)),[3,6];case 5:Fr(mi)?(ss=cc(xe,ke,[null,null,null]),Ua=ss[0],ko=ss[1],fo=ss[2],io=ss[3],gs=ss[4],eo=mo(mi.angle,io,gs),Ns=eo[0],ks=eo[1],ls=eo[2],ql=eo[3],Au=eo[4],eu=document.createElement("canvas"),eu.width=io,eu.height=gs,Cl=eu.getContext("2d"),ic=Cl.createLinearGradient(ks,ql,ls,Au),Ra(mi.stops,Ns).forEach(function(bc){return ic.addColorStop(bc.stop,Ui(bc.color))}),Cl.fillStyle=ic,Cl.fillRect(0,0,io,gs),io>0&&gs>0&&(Es=er.ctx.createPattern(eu,"repeat"),er.renderRepeat(Ua,Es,ko,fo))):Ir(mi)&&(Mu=cc(xe,ke,[null,null,null]),Ua=Mu[0],Yu=Mu[1],Qu=Mu[2],io=Mu[3],gs=Mu[4],Ju=mi.position.length===0?[fi]:mi.position,ko=vi(Ju[0],io),fo=vi(Ju[Ju.length-1],gs),ac=go(mi,ko,fo,io,gs),ku=ac[0],Zu=ac[1],ku>0&&Zu>0&&(oc=er.ctx.createRadialGradient(Yu+ko,Qu+fo,0,Yu+ko,Qu+fo,ku),Ra(mi.stops,ku*2).forEach(function(bc){return oc.addColorStop(bc.stop,Ui(bc.color))}),er.path(Ua),er.ctx.fillStyle=oc,ku!==Zu?(sc=xe.bounds.left+.5*xe.bounds.width,Ku=xe.bounds.top+.5*xe.bounds.height,lc=Zu/ku,Wu=1/lc,er.ctx.save(),er.ctx.translate(sc,Ku),er.ctx.transform(1,0,0,lc,0,0),er.ctx.translate(-sc,-Ku),er.ctx.fillRect(Yu,Wu*(Qu-Ku)+Ku,io,gs*Wu),er.ctx.restore()):er.ctx.fill())),hc.label=6;case 6:return ke--,[2]}})},er=this,Wr=0,sn=xe.styles.backgroundImage.slice(0).reverse(),Pn.label=1;case 1:return Wr<sn.length?(bn=sn[Wr],[5,nt(bn)]):[3,4];case 2:Pn.sent(),Pn.label=3;case 3:return Wr++,[3,1];case 4:return[2]}})})},de.prototype.renderSolidBorder=function(xe,ke,nt){return v(this,void 0,void 0,function(){return S(this,function(er){return this.path(gc(nt,ke)),this.ctx.fillStyle=Ui(xe),this.ctx.fill(),[2]})})},de.prototype.renderDoubleBorder=function(xe,ke,nt,er){return v(this,void 0,void 0,function(){var Wr,sn;return S(this,function(bn){switch(bn.label){case 0:return ke<3?[4,this.renderSolidBorder(xe,nt,er)]:[3,2];case 1:return bn.sent(),[2];case 2:return Wr=Oc(er,nt),this.path(Wr),this.ctx.fillStyle=Ui(xe),this.ctx.fill(),sn=nc(er,nt),this.path(sn),this.ctx.fill(),[2]}})})},de.prototype.renderNodeBackgroundAndBorders=function(xe){return v(this,void 0,void 0,function(){var ke,nt,er,Wr,sn,bn,Pn,Si,mi=this;return S(this,function(_i){switch(_i.label){case 0:return this.applyEffects(xe.getEffects(2)),ke=xe.container.styles,nt=!na(ke.backgroundColor)||ke.backgroundImage.length,er=[{style:ke.borderTopStyle,color:ke.borderTopColor,width:ke.borderTopWidth},{style:ke.borderRightStyle,color:ke.borderRightColor,width:ke.borderRightWidth},{style:ke.borderBottomStyle,color:ke.borderBottomColor,width:ke.borderBottomWidth},{style:ke.borderLeftStyle,color:ke.borderLeftColor,width:ke.borderLeftWidth}],Wr=Pc(dc(ke.backgroundClip,0),xe.curves),nt||ke.boxShadow.length?(this.ctx.save(),this.path(Wr),this.ctx.clip(),na(ke.backgroundColor)||(this.ctx.fillStyle=Ui(ke.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(xe.container)]):[3,2];case 1:_i.sent(),this.ctx.restore(),ke.boxShadow.slice(0).reverse().forEach(function(wa){mi.ctx.save();var Sa=rc(xe.curves),Ua=wa.inset?0:Rc,ko=tc(Sa,-Ua+(wa.inset?1:-1)*wa.spread.number,(wa.inset?1:-1)*wa.spread.number,wa.spread.number*(wa.inset?-2:2),wa.spread.number*(wa.inset?-2:2));wa.inset?(mi.path(Sa),mi.ctx.clip(),mi.mask(ko)):(mi.mask(Sa),mi.ctx.clip(),mi.path(ko)),mi.ctx.shadowOffsetX=wa.offsetX.number+Ua,mi.ctx.shadowOffsetY=wa.offsetY.number,mi.ctx.shadowColor=Ui(wa.color),mi.ctx.shadowBlur=wa.blur.number,mi.ctx.fillStyle=wa.inset?Ui(wa.color):"rgba(0,0,0,1)",mi.ctx.fill(),mi.ctx.restore()}),_i.label=2;case 2:sn=0,bn=0,Pn=er,_i.label=3;case 3:return bn<Pn.length?(Si=Pn[bn],Si.style!==Gi.NONE&&!na(Si.color)&&Si.width>0?Si.style===Gi.DASHED?[4,this.renderDashedDottedBorder(Si.color,Si.width,sn,xe.curves,Gi.DASHED)]:[3,5]:[3,11]):[3,13];case 4:return _i.sent(),[3,11];case 5:return Si.style===Gi.DOTTED?[4,this.renderDashedDottedBorder(Si.color,Si.width,sn,xe.curves,Gi.DOTTED)]:[3,7];case 6:return _i.sent(),[3,11];case 7:return Si.style===Gi.DOUBLE?[4,this.renderDoubleBorder(Si.color,Si.width,sn,xe.curves)]:[3,9];case 8:return _i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Si.color,sn,xe.curves)];case 10:_i.sent(),_i.label=11;case 11:sn++,_i.label=12;case 12:return bn++,[3,3];case 13:return[2]}})})},de.prototype.renderDashedDottedBorder=function(xe,ke,nt,er,Wr){return v(this,void 0,void 0,function(){var sn,bn,Pn,Si,mi,_i,wa,Sa,Ua,ko,fo,io,gs,Es,ss,eo,ss,eo;return S(this,function(Ns){return this.ctx.save(),sn=vc(er,nt),bn=gc(er,nt),Wr===Gi.DASHED&&(this.path(bn),this.ctx.clip()),Ms(bn[0])?(Pn=bn[0].start.x,Si=bn[0].start.y):(Pn=bn[0].x,Si=bn[0].y),Ms(bn[1])?(mi=bn[1].end.x,_i=bn[1].end.y):(mi=bn[1].x,_i=bn[1].y),nt===0||nt===2?wa=Math.abs(Pn-mi):wa=Math.abs(Si-_i),this.ctx.beginPath(),Wr===Gi.DOTTED?this.formatPath(sn):this.formatPath(bn.slice(0,2)),Sa=ke<3?ke*3:ke*2,Ua=ke<3?ke*2:ke,Wr===Gi.DOTTED&&(Sa=ke,Ua=ke),ko=!0,wa<=Sa*2?ko=!1:wa<=Sa*2+Ua?(fo=wa/(2*Sa+Ua),Sa*=fo,Ua*=fo):(io=Math.floor((wa+Ua)/(Sa+Ua)),gs=(wa-io*Sa)/(io-1),Es=(wa-(io+1)*Sa)/io,Ua=Es<=0||Math.abs(Ua-gs)<Math.abs(Ua-Es)?gs:Es),ko&&(Wr===Gi.DOTTED?this.ctx.setLineDash([0,Sa+Ua]):this.ctx.setLineDash([Sa,Ua])),Wr===Gi.DOTTED?(this.ctx.lineCap="round",this.ctx.lineWidth=ke):this.ctx.lineWidth=ke*2+1.1,this.ctx.strokeStyle=Ui(xe),this.ctx.stroke(),this.ctx.setLineDash([]),Wr===Gi.DASHED&&(Ms(bn[0])&&(ss=bn[3],eo=bn[0],this.ctx.beginPath(),this.formatPath([new Da(ss.end.x,ss.end.y),new Da(eo.start.x,eo.start.y)]),this.ctx.stroke()),Ms(bn[1])&&(ss=bn[1],eo=bn[2],this.ctx.beginPath(),this.formatPath([new Da(ss.end.x,ss.end.y),new Da(eo.start.x,eo.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},de.prototype.render=function(xe){return v(this,void 0,void 0,function(){var ke;return S(this,function(nt){switch(nt.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ui(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),ke=Tc(xe),[4,this.renderStack(ke)];case 1:return nt.sent(),this.applyEffects([]),[2,this.canvas]}})})},de}(_c),kc=function(de){return de instanceof gu||de instanceof Nu?!0:de instanceof Cu&&de.type!==Lu&&de.type!==mu},Pc=function(de,xe){switch(de){case Ea.BORDER_BOX:return rc(xe);case Ea.CONTENT_BOX:return xc(xe);case Ea.PADDING_BOX:default:return Uu(xe)}},Fc=function(de){switch(de){case Go.CENTER:return"center";case Go.RIGHT:return"right";case Go.LEFT:default:return"left"}},Bc=function(ct){x(de,ct);function de(xe,ke){var nt=ct.call(this,xe,ke)||this;return nt.canvas=ke.canvas?ke.canvas:document.createElement("canvas"),nt.ctx=nt.canvas.getContext("2d"),nt.options=ke,nt.canvas.width=Math.floor(ke.width*ke.scale),nt.canvas.height=Math.floor(ke.height*ke.scale),nt.canvas.style.width=ke.width+"px",nt.canvas.style.height=ke.height+"px",nt.ctx.scale(nt.options.scale,nt.options.scale),nt.ctx.translate(-ke.x,-ke.y),nt.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+ke.width+"x"+ke.height+" at "+ke.x+","+ke.y+") with scale "+ke.scale),nt}return de.prototype.render=function(xe){return v(this,void 0,void 0,function(){var ke,nt;return S(this,function(er){switch(er.label){case 0:return ke=$l(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,xe),[4,Uc(ke)];case 1:return nt=er.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ui(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(nt,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},de}(_c),Uc=function(de){return new Promise(function(xe,ke){var nt=new Image;nt.onload=function(){xe(nt)},nt.onerror=ke,nt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(de))})},jc=function(){function ct(de){var xe=de.id,ke=de.enabled;this.id=xe,this.enabled=ke,this.start=Date.now()}return ct.prototype.debug=function(){for(var de=[],xe=0;xe<arguments.length;xe++)de[xe]=arguments[xe];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,m([this.id,this.getTime()+"ms"],de)):this.info.apply(this,de))},ct.prototype.getTime=function(){return Date.now()-this.start},ct.prototype.info=function(){for(var de=[],xe=0;xe<arguments.length;xe++)de[xe]=arguments[xe];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,m([this.id,this.getTime()+"ms"],de)))},ct.prototype.warn=function(){for(var de=[],xe=0;xe<arguments.length;xe++)de[xe]=arguments[xe];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,m([this.id,this.getTime()+"ms"],de)):this.info.apply(this,de))},ct.prototype.error=function(){for(var de=[],xe=0;xe<arguments.length;xe++)de[xe]=arguments[xe];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,m([this.id,this.getTime()+"ms"],de)):this.info.apply(this,de))},ct.instances={},ct}(),Hc=function(){function ct(de,xe){var ke;this.windowBounds=xe,this.instanceName="#"+ct.instanceCount++,this.logger=new jc({id:this.instanceName,enabled:de.logging}),this.cache=(ke=de.cache)!==null&&ke!==void 0?ke:new wl(this,de)}return ct.instanceCount=1,ct}(),Kc=function(de,xe){return xe===void 0&&(xe={}),Wc(de,xe)};typeof window!="undefined"&&Gs.setContext(window);var Wc=function(de,xe){return v(void 0,void 0,void 0,function(){var ke,nt,er,Wr,sn,bn,Pn,Si,mi,_i,wa,Sa,Ua,ko,fo,io,gs,Es,ss,eo,Ns,ks,Ns,ls,ql,Au,eu,Cl,ic,Mu,Yu,Qu,Ju,ac,ku,Zu,oc,sc,Ku,lc;return S(this,function(Wu){switch(Wu.label){case 0:if(!de||typeof de!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(ke=de.ownerDocument,!ke)throw new Error("Element is not attached to a Document");if(nt=ke.defaultView,!nt)throw new Error("Document is not attached to a Window");return er={allowTaint:(ls=xe.allowTaint)!==null&&ls!==void 0?ls:!1,imageTimeout:(ql=xe.imageTimeout)!==null&&ql!==void 0?ql:15e3,proxy:xe.proxy,useCORS:(Au=xe.useCORS)!==null&&Au!==void 0?Au:!1},Wr=T({logging:(eu=xe.logging)!==null&&eu!==void 0?eu:!0,cache:xe.cache},er),sn={windowWidth:(Cl=xe.windowWidth)!==null&&Cl!==void 0?Cl:nt.innerWidth,windowHeight:(ic=xe.windowHeight)!==null&&ic!==void 0?ic:nt.innerHeight,scrollX:(Mu=xe.scrollX)!==null&&Mu!==void 0?Mu:nt.pageXOffset,scrollY:(Yu=xe.scrollY)!==null&&Yu!==void 0?Yu:nt.pageYOffset},bn=new f(sn.scrollX,sn.scrollY,sn.windowWidth,sn.windowHeight),Pn=new Hc(Wr,bn),Si=(Qu=xe.foreignObjectRendering)!==null&&Qu!==void 0?Qu:!1,mi={allowTaint:(Ju=xe.allowTaint)!==null&&Ju!==void 0?Ju:!1,onclone:xe.onclone,ignoreElements:xe.ignoreElements,inlineImages:Si,copyStyles:Si},Pn.logger.debug("Starting document clone with size "+bn.width+"x"+bn.height+" scrolled to "+-bn.left+","+-bn.top),_i=new Bn(Pn,de,mi),wa=_i.clonedReferenceElement,wa?[4,_i.toIFrame(ke,bn)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Sa=Wu.sent(),Ua=Vt(wa)||Rt(wa)?o(wa.ownerDocument):c(Pn,wa),ko=Ua.width,fo=Ua.height,io=Ua.left,gs=Ua.top,Es=zc(Pn,wa,xe.backgroundColor),ss={canvas:xe.canvas,backgroundColor:Es,scale:(ku=(ac=xe.scale)!==null&&ac!==void 0?ac:nt.devicePixelRatio)!==null&&ku!==void 0?ku:1,x:((Zu=xe.x)!==null&&Zu!==void 0?Zu:0)+io,y:((oc=xe.y)!==null&&oc!==void 0?oc:0)+gs,width:(sc=xe.width)!==null&&sc!==void 0?sc:Math.ceil(ko),height:(Ku=xe.height)!==null&&Ku!==void 0?Ku:Math.ceil(fo)},Si?(Pn.logger.debug("Document cloned, using foreign object rendering"),Ns=new Bc(Pn,ss),[4,Ns.render(wa)]):[3,3];case 2:return eo=Wu.sent(),[3,5];case 3:return Pn.logger.debug("Document cloned, element located at "+io+","+gs+" with size "+ko+"x"+fo+" using computed rendering"),Pn.logger.debug("Starting DOM parsing"),ks=Ke(Pn,wa),Es===ks.styles.backgroundColor&&(ks.styles.backgroundColor=Ia.TRANSPARENT),Pn.logger.debug("Starting renderer for element at "+ss.x+","+ss.y+" with size "+ss.width+"x"+ss.height),Ns=new Mc(Pn,ss),[4,Ns.render(ks)];case 4:eo=Wu.sent(),Wu.label=5;case 5:return((lc=xe.removeContainer)!==null&&lc!==void 0?lc:!0)&&(Bn.destroy(Sa)||Pn.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),Pn.logger.debug("Finished rendering"),[2,eo]}})})},zc=function(de,xe,ke){var nt=xe.ownerDocument,er=nt.documentElement?ka(de,getComputedStyle(nt.documentElement).backgroundColor):Ia.TRANSPARENT,Wr=nt.body?ka(de,getComputedStyle(nt.body).backgroundColor):Ia.TRANSPARENT,sn=typeof ke=="string"?ka(de,ke):ke===null?Ia.TRANSPARENT:4294967295;return xe===nt.documentElement?na(er)?na(Wr)?sn:Wr:er:sn};return Kc})},wPhX:function(U,P,d){"use strict";d.d(P,"b",function(){return r}),d.d(P,"a",function(){return a}),d.d(P,"k",function(){return n}),d.d(P,"h",function(){return e}),d.d(P,"i",function(){return s}),d.d(P,"g",function(){return t}),d.d(P,"c",function(){return i}),d.d(P,"d",function(){return l}),d.d(P,"j",function(){return p}),d.d(P,"e",function(){return g}),d.d(P,"f",function(){return A});var O=d("KQm4"),x=d("U8pU"),T=d("Ff2n"),v=d("q1tI"),S=d.n(v),m=d("Kwbf"),f=d("lr6o"),c=.25,o=2;function r(y,E){var C=y.slice(),w=C.indexOf(E);return w>=0&&C.splice(w,1),C}function a(y,E){var C=y.slice();return C.indexOf(E)===-1&&C.push(E),C}function n(y){return y.split("-")}function e(y,E){return"".concat(y,"-").concat(E)}function s(y){return y&&y.type&&y.type.isTreeNode}function t(y,E){var C=[y],w=E[y];function b(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];I.forEach(function(_){var L=_.key,D=_.children;C.push(L),b(D)})}return b(w.children),C}function i(y,E){var C=y.clientY,w=E.selectHandle.getBoundingClientRect(),b=w.top,I=w.bottom,_=w.height,L=Math.max(_*c,o);return C<=b+L?-1:C>=I-L?1:0}function l(y,E){if(!y)return;var C=E.multiple;return C?y.slice():y.length?[y[0]]:y}var u=function(E){return E};function h(y,E){if(!y)return[];var C=E||{},w=C.processProps,b=w===void 0?u:w,I=Array.isArray(y)?y:[y];return I.map(function(_){var L=_.children,D=Object(T.a)(_,["children"]),N=h(L,E);return S.a.createElement(f.a,Object.assign({},b(D)),N)})}function p(y){if(!y)return null;var E;if(Array.isArray(y))E={checkedKeys:y,halfCheckedKeys:void 0};else if(Object(x.a)(y)==="object")E={checkedKeys:y.checked||void 0,halfCheckedKeys:y.halfChecked||void 0};else return Object(m.a)(!1,"`checkedKeys` is not an array or an object"),null;return E}function g(y,E){var C=new Set;function w(b){if(C.has(b))return;var I=E[b];if(!I)return;C.add(b);var _=I.parent,L=I.node;if(L.disabled)return;_&&w(_.key)}return(y||[]).forEach(function(b){w(b)}),Object(O.a)(C)}function A(y){var E={};return Object.keys(y).forEach(function(C){(C.startsWith("data-")||C.startsWith("aria-"))&&(E[C]=y[C])}),E}},wXyp:function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("ygfH")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="CheckOutlined";var c=v.forwardRef(f);P.default=c},wYyv:function(U,P,d){"use strict";var O=d("R5yR"),x=d("5wUe"),T=function(m,f,c){var o=f<0?m.length+f:f;if(o>=0&&o<m.length){var r=c<0?m.length+c:c,a=m.splice(f,1),n=x(a,1),e=n[0];m.splice(r,0,e)}},v=function(m,f,c){return m=O(m),T(m,f,c),m};U.exports=v,U.exports.mutate=T},wZgz:function(U,P,d){(function(O,x,T){U.exports=P=x(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var x=O,T=x.lib,v=T.BlockCipher,S=x.algo,m=[],f=[],c=[],o=[],r=[],a=[],n=[],e=[],s=[],t=[];(function(){for(var u=[],h=0;h<256;h++)h<128?u[h]=h<<1:u[h]=h<<1^283;for(var p=0,g=0,h=0;h<256;h++){var A=g^g<<1^g<<2^g<<3^g<<4;A=A>>>8^A&255^99,m[p]=A,f[A]=p;var y=u[p],E=u[y],C=u[E],w=u[A]*257^A*16843008;c[p]=w<<24|w>>>8,o[p]=w<<16|w>>>16,r[p]=w<<8|w>>>24,a[p]=w;var w=C*16843009^E*65537^y*257^p*16843008;n[A]=w<<24|w>>>8,e[A]=w<<16|w>>>16,s[A]=w<<8|w>>>24,t[A]=w,p?(p=y^u[u[u[C^y]]],g^=u[u[g]]):p=g=1}})();var i=[0,1,2,4,8,16,32,64,128,27,54],l=S.AES=v.extend({_doReset:function(){var h;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var p=this._keyPriorReset=this._key,g=p.words,A=p.sigBytes/4,y=this._nRounds=A+6,E=(y+1)*4,C=this._keySchedule=[],w=0;w<E;w++)w<A?C[w]=g[w]:(h=C[w-1],w%A?A>6&&w%A==4&&(h=m[h>>>24]<<24|m[h>>>16&255]<<16|m[h>>>8&255]<<8|m[h&255]):(h=h<<8|h>>>24,h=m[h>>>24]<<24|m[h>>>16&255]<<16|m[h>>>8&255]<<8|m[h&255],h^=i[w/A|0]<<24),C[w]=C[w-A]^h);for(var b=this._invKeySchedule=[],I=0;I<E;I++){var w=E-I;if(I%4)var h=C[w];else var h=C[w-4];I<4||w<=4?b[I]=h:b[I]=n[m[h>>>24]]^e[m[h>>>16&255]]^s[m[h>>>8&255]]^t[m[h&255]]}},encryptBlock:function(h,p){this._doCryptBlock(h,p,this._keySchedule,c,o,r,a,m)},decryptBlock:function(h,p){var g=h[p+1];h[p+1]=h[p+3],h[p+3]=g,this._doCryptBlock(h,p,this._invKeySchedule,n,e,s,t,f);var g=h[p+1];h[p+1]=h[p+3],h[p+3]=g},_doCryptBlock:function(h,p,g,A,y,E,C,w){for(var b=this._nRounds,I=h[p]^g[0],_=h[p+1]^g[1],L=h[p+2]^g[2],D=h[p+3]^g[3],N=4,R=1;R<b;R++){var B=A[I>>>24]^y[_>>>16&255]^E[L>>>8&255]^C[D&255]^g[N++],M=A[_>>>24]^y[L>>>16&255]^E[D>>>8&255]^C[I&255]^g[N++],H=A[L>>>24]^y[D>>>16&255]^E[I>>>8&255]^C[_&255]^g[N++],F=A[D>>>24]^y[I>>>16&255]^E[_>>>8&255]^C[L&255]^g[N++];I=B,_=M,L=H,D=F}var B=(w[I>>>24]<<24|w[_>>>16&255]<<16|w[L>>>8&255]<<8|w[D&255])^g[N++],M=(w[_>>>24]<<24|w[L>>>16&255]<<16|w[D>>>8&255]<<8|w[I&255])^g[N++],H=(w[L>>>24]<<24|w[D>>>16&255]<<16|w[I>>>8&255]<<8|w[_&255])^g[N++],F=(w[D>>>24]<<24|w[I>>>16&255]<<16|w[_>>>8&255]<<8|w[L&255])^g[N++];h[p]=B,h[p+1]=M,h[p+2]=H,h[p+3]=F},keySize:256/32});x.AES=v._createHelper(l)}(),O.AES})},wbyO:function(U,P,d){(function(O,x){U.exports=P=x(d("Ib8C"))})(this,function(O){return function(){var x=O,T=x.lib,v=T.WordArray,S=x.enc,m=S.Base64url={stringify:function(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,a=o.words,n=o.sigBytes,e=r?this._safe_map:this._map;o.clamp();for(var s=[],t=0;t<n;t+=3)for(var i=a[t>>>2]>>>24-t%4*8&255,l=a[t+1>>>2]>>>24-(t+1)%4*8&255,u=a[t+2>>>2]>>>24-(t+2)%4*8&255,h=i<<16|l<<8|u,p=0;p<4&&t+p*.75<n;p++)s.push(e.charAt(h>>>6*(3-p)&63));var g=e.charAt(64);if(g)for(;s.length%4;)s.push(g);return s.join("")},parse:function(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,a=o.length,n=r?this._safe_map:this._map,e=this._reverseMap;if(!e){e=this._reverseMap=[];for(var s=0;s<n.length;s++)e[n.charCodeAt(s)]=s}var t=n.charAt(64);if(t){var i=o.indexOf(t);i!==-1&&(a=i)}return f(o,a,e)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function f(c,o,r){for(var a=[],n=0,e=0;e<o;e++)if(e%4){var s=r[c.charCodeAt(e-1)]<<e%4*2,t=r[c.charCodeAt(e)]>>>6-e%4*2,i=s|t;a[n>>>2]|=i<<24-n%4*8,n++}return v.create(a,n)}}(),O.enc.Base64url})},wgjA:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};P.default=O},whVF:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=d("lNSK"),x=T(d("1q3G"));function T(c){return c&&c.__esModule?c:{default:c}}function v(c,o){if(!(c instanceof o))throw new TypeError("Cannot call a class as a function")}function S(c,o){for(var r=0;r<o.length;r++){var a=o[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(c,a.key,a)}}function m(c,o,r){return o&&S(c.prototype,o),r&&S(c,r),c}var f=function(){function c(){v(this,c),this.strm=new x.default,this.chunkSize=1024*10*10,this.outputBuffer=new Uint8Array(this.chunkSize),this.windowBits=5,(0,O.deflateInit)(this.strm,this.windowBits)}return m(c,[{key:"deflate",value:function(r){this.strm.input=r,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0,this.strm.output=this.outputBuffer,this.strm.avail_out=this.chunkSize,this.strm.next_out=0;var a=(0,O.deflate)(this.strm,O.Z_FULL_FLUSH),n=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);if(a<0)throw new Error("zlib deflate failed");if(this.strm.avail_in>0){var e=[n],s=n.length;do{if(this.strm.output=new Uint8Array(this.chunkSize),this.strm.next_out=0,this.strm.avail_out=this.chunkSize,a=(0,O.deflate)(this.strm,O.Z_FULL_FLUSH),a<0)throw new Error("zlib deflate failed");var t=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);s+=t.length,e.push(t)}while(this.strm.avail_in>0);for(var i=new Uint8Array(s),l=0,u=0;u<e.length;u++)i.set(e[u],l),l+=e[u].length;n=i}return this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0,n}}]),c}();P.default=f},wr5s:function(U,P,d){var O=d("IwbS"),x=O.extendShape,T=x({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},buildPath:function(v,S){var m=S.cx,f=S.cy,c=Math.max(S.r0||0,0),o=Math.max(S.r,0),r=(o-c)*.5,a=c+r,n=S.startAngle,e=S.endAngle,s=S.clockwise,t=Math.cos(n),i=Math.sin(n),l=Math.cos(e),u=Math.sin(e),h=s?e-n<Math.PI*2:n-e<Math.PI*2;h&&(v.moveTo(t*c+m,i*c+f),v.arc(t*a+m,i*a+f,r,-Math.PI+n,n,!s)),v.arc(m,f,o,n,e,!s),v.moveTo(l*o+m,u*o+f),v.arc(l*a+m,u*a+f,r,e-Math.PI*2,e-Math.PI,!s),c!==0&&(v.arc(m,f,c,e,n,s),v.moveTo(t*c+m,u*c+f)),v.closePath()}});U.exports=T},wt3j:function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("/IIm"),v=d("EMyp"),S=v.layoutCovers,m=O.extendComponentView({type:"brush",init:function(c,o){this.ecModel=c,this.api=o,this.model,(this._brushController=new T(o.getZr())).on("brush",x.bind(this._onBrush,this)).mount()},render:function(c){return this.model=c,f.apply(this,arguments)},updateTransform:function(c,o){return S(o),f.apply(this,arguments)},updateView:f,dispose:function(){this._brushController.dispose()},_onBrush:function(c,o){var r=this.model.id;this.model.brushTargetManager.setOutputRanges(c,this.ecModel),(!o.isEnd||o.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:x.clone(c),$from:r}),o.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:x.clone(c),$from:r})}});function f(c,o,r,a){(!a||a.$from!==c.id)&&this._brushController.setPanels(c.brushTargetManager.makePanelOpts(r)).enableBrush(c.brushOption).updateCovers(c.areas.slice())}U.exports=m},wy8a:function(U,P,d){var O=d("KxBF");function x(T,v,S){var m=T.length;return S=S===void 0?m:S,!v&&S>=m?T:O(T,v,S)}U.exports=x},x3X8:function(U,P,d){var O=d("KxfA"),x=O.retrieveRawValue;function T(v,S){var m=v.mapDimension("defaultedLabel",!0),f=m.length;if(f===1)return x(v,S,m[0]);if(f){for(var c=[],o=0;o<m.length;o++){var r=x(v,S,m[o]);c.push(r)}return c.join(" ")}}P.getDefaultLabel=T},x54q:function(U,P,d){},x6Kt:function(U,P,d){var O=d("y+Vt"),x=d("VpOo"),T=d("nPnh"),v=T.subPixelOptimizeRect,S={},m=O.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(c,o){var r,a,n,e;this.subPixelOptimize?(v(S,o,this.style),r=S.x,a=S.y,n=S.width,e=S.height,S.r=o.r,o=S):(r=o.x,a=o.y,n=o.width,e=o.height),o.r?x.buildPath(c,o):c.rect(r,a,n,e),c.closePath();return}});U.exports=m},xGfz:function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="PlusSquareOutlined";var f=P.a=x.forwardRef(m)},xKMd:function(U,P){function d(x,T){this.getAllNames=function(){var v=T();return v.mapArray(v.getName)},this.containName=function(v){var S=T();return S.indexOfName(v)>=0},this.indexOfName=function(v){var S=x();return S.indexOfName(v)},this.getItemVisual=function(v,S){var m=x();return m.getItemVisual(v,S)}}var O=d;U.exports=O},xO64:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O=x(d("8K/p"));function x(t){return t&&t.__esModule?t:{default:t}}function T(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?T=function(l){return typeof l}:T=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},T(t)}function v(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function S(t,i){for(var l=0;l<i.length;l++){var u=i[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function m(t,i,l){return i&&S(t.prototype,i),l&&S(t,l),t}function f(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),i&&c(t,i)}function c(t,i){return c=Object.setPrototypeOf||function(u,h){return u.__proto__=h,u},c(t,i)}function o(t){var i=n();return function(){var u=e(t),h;if(i){var p=e(this).constructor;h=Reflect.construct(u,arguments,p)}else h=u.apply(this,arguments);return r(this,h)}}function r(t,i){return i&&(T(i)==="object"||typeof i=="function")?i:a(t)}function a(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(){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(t){return!1}}function e(t){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(l){return l.__proto__||Object.getPrototypeOf(l)},e(t)}var s=function(t){f(l,t);var i=o(l);function l(){return v(this,l),i.apply(this,arguments)}return m(l,[{key:"_pngRect",value:function(h,p,g,A,y,E,C){var w=this._readData(y);return w===null?!1:(E.imageRect(h,p,g,A,"image/png",w),!0)}},{key:"_basicRect",value:function(h,p,g,A,y,E,C,w){throw new Error("BasicCompression received in TightPNG rect")}}]),l}(O.default);P.default=s},xOOu:function(U,P,d){(function(O,x){var T,T;/*!
|
|
|
|
|
|
JSZip v3.7.1 - A JavaScript class for generating and reading zip files
|
|
|
<http://stuartk.com/jszip>
|
|
|
|
|
|
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
|
|
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown.
|
|
|
|
|
|
JSZip uses the library pako released under the MIT license :
|
|
|
https://github.com/nodeca/pako/blob/master/LICENSE
|
|
|
*/!function(v){U.exports=v()}(function(){return function v(S,m,f){function c(a,n){if(!m[a]){if(!S[a]){var e=typeof T=="function"&&T;if(!n&&e)return T(a,!0);if(o)return o(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var t=m[a]={exports:{}};S[a][0].call(t.exports,function(i){var l=S[a][1][i];return c(l||i)},t,t.exports,v,S,m,f)}return m[a].exports}for(var o=typeof T=="function"&&T,r=0;r<f.length;r++)c(f[r]);return c}({1:[function(v,S,m){"use strict";var f=v("./utils"),c=v("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";m.encode=function(r){for(var a,n,e,s,t,i,l,u=[],h=0,p=r.length,g=p,A=f.getTypeOf(r)!=="string";h<r.length;)g=p-h,e=A?(a=r[h++],n=h<p?r[h++]:0,h<p?r[h++]:0):(a=r.charCodeAt(h++),n=h<p?r.charCodeAt(h++):0,h<p?r.charCodeAt(h++):0),s=a>>2,t=(3&a)<<4|n>>4,i=1<g?(15&n)<<2|e>>6:64,l=2<g?63&e:64,u.push(o.charAt(s)+o.charAt(t)+o.charAt(i)+o.charAt(l));return u.join("")},m.decode=function(r){var a,n,e,s,t,i,l=0,u=0,h="data:";if(r.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var p,g=3*(r=r.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(r.charAt(r.length-1)===o.charAt(64)&&g--,r.charAt(r.length-2)===o.charAt(64)&&g--,g%1!=0)throw new Error("Invalid base64 input, bad content length.");for(p=c.uint8array?new Uint8Array(0|g):new Array(0|g);l<r.length;)a=o.indexOf(r.charAt(l++))<<2|(s=o.indexOf(r.charAt(l++)))>>4,n=(15&s)<<4|(t=o.indexOf(r.charAt(l++)))>>2,e=(3&t)<<6|(i=o.indexOf(r.charAt(l++))),p[u++]=a,t!==64&&(p[u++]=n),i!==64&&(p[u++]=e);return p}},{"./support":30,"./utils":32}],2:[function(v,S,m){"use strict";var f=v("./external"),c=v("./stream/DataWorker"),o=v("./stream/Crc32Probe"),r=v("./stream/DataLengthProbe");function a(n,e,s,t,i){this.compressedSize=n,this.uncompressedSize=e,this.crc32=s,this.compression=t,this.compressedContent=i}a.prototype={getContentWorker:function(){var e=new c(f.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new r("data_length")),s=this;return e.on("end",function(){if(this.streamInfo.data_length!==s.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new c(f.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(n,e,s){return n.pipe(new o).pipe(new r("uncompressedSize")).pipe(e.compressWorker(s)).pipe(new r("compressedSize")).withStreamInfo("compression",e)},S.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(v,S,m){"use strict";var f=v("./stream/GenericWorker");m.STORE={magic:"\0\0",compressWorker:function(o){return new f("STORE compression")},uncompressWorker:function(){return new f("STORE decompression")}},m.DEFLATE=v("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(v,S,m){"use strict";var f=v("./utils"),c=function(){for(var o,r=[],a=0;a<256;a++){o=a;for(var n=0;n<8;n++)o=1&o?3988292384^o>>>1:o>>>1;r[a]=o}return r}();S.exports=function(o,r){return o!==void 0&&o.length?f.getTypeOf(o)!=="string"?function(a,n,e,s){var t=c,i=s+e;a^=-1;for(var l=s;l<i;l++)a=a>>>8^t[255&(a^n[l])];return-1^a}(0|r,o,o.length,0):function(a,n,e,s){var t=c,i=s+e;a^=-1;for(var l=s;l<i;l++)a=a>>>8^t[255&(a^n.charCodeAt(l))];return-1^a}(0|r,o,o.length,0):0}},{"./utils":32}],5:[function(v,S,m){"use strict";m.base64=!1,m.binary=!1,m.dir=!1,m.createFolders=!0,m.date=null,m.compression=null,m.compressionOptions=null,m.comment=null,m.unixPermissions=null,m.dosPermissions=null},{}],6:[function(v,S,m){"use strict";var f=null;f=typeof Promise!="undefined"?Promise:v("lie"),S.exports={Promise:f}},{lie:37}],7:[function(v,S,m){"use strict";var f=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",c=v("pako"),o=v("./utils"),r=v("./stream/GenericWorker"),a=f?"uint8array":"array";function n(e,s){r.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=s,this.meta={}}m.magic="\b\0",o.inherits(n,r),n.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(o.transformTo(a,e.data),!1)},n.prototype.flush=function(){r.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},n.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this._pako=null},n.prototype._createPako=function(){this._pako=new c[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(s){e.push({data:s,meta:e.meta})}},m.compressWorker=function(e){return new n("Deflate",e)},m.uncompressWorker=function(){return new n("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(v,S,m){"use strict";function f(t,i){var l,u="";for(l=0;l<i;l++)u+=String.fromCharCode(255&t),t>>>=8;return u}function c(t,i,l,u,h,p){var g,A,y=t.file,E=t.compression,C=p!==a.utf8encode,w=o.transformTo("string",p(y.name)),b=o.transformTo("string",a.utf8encode(y.name)),I=y.comment,_=o.transformTo("string",p(I)),L=o.transformTo("string",a.utf8encode(I)),D=b.length!==y.name.length,N=L.length!==I.length,R="",B="",M="",H=y.dir,F=y.date,K={crc32:0,compressedSize:0,uncompressedSize:0};i&&!l||(K.crc32=t.crc32,K.compressedSize=t.compressedSize,K.uncompressedSize=t.uncompressedSize);var j=0;i&&(j|=8),C||!D&&!N||(j|=2048);var V=0,z=0;H&&(V|=16),h==="UNIX"?(z=798,V|=function(ee,fe){var ie=ee;return ee||(ie=fe?16893:33204),(65535&ie)<<16}(y.unixPermissions,H)):(z=20,V|=function(ee){return 63&(ee||0)}(y.dosPermissions)),g=F.getUTCHours(),g<<=6,g|=F.getUTCMinutes(),g<<=5,g|=F.getUTCSeconds()/2,A=F.getUTCFullYear()-1980,A<<=4,A|=F.getUTCMonth()+1,A<<=5,A|=F.getUTCDate(),D&&(B=f(1,1)+f(n(w),4)+b,R+="up"+f(B.length,2)+B),N&&(M=f(1,1)+f(n(_),4)+L,R+="uc"+f(M.length,2)+M);var Y="";return Y+=`
|
|
|
\0`,Y+=f(j,2),Y+=E.magic,Y+=f(g,2),Y+=f(A,2),Y+=f(K.crc32,4),Y+=f(K.compressedSize,4),Y+=f(K.uncompressedSize,4),Y+=f(w.length,2),Y+=f(R.length,2),{fileRecord:e.LOCAL_FILE_HEADER+Y+w+R,dirRecord:e.CENTRAL_FILE_HEADER+f(z,2)+Y+f(_.length,2)+"\0\0\0\0"+f(V,4)+f(u,4)+w+R+_}}var o=v("../utils"),r=v("../stream/GenericWorker"),a=v("../utf8"),n=v("../crc32"),e=v("../signature");function s(t,i,l,u){r.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=i,this.zipPlatform=l,this.encodeFileName=u,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(s,r),s.prototype.push=function(t){var i=t.meta.percent||0,l=this.entriesCount,u=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,r.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:l?(i+100*(l-u-1))/l:100}}))},s.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var i=this.streamFiles&&!t.file.dir;if(i){var l=c(t,i,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:l.fileRecord,meta:{percent:0}})}else this.accumulate=!0},s.prototype.closedSource=function(t){this.accumulate=!1;var i=this.streamFiles&&!t.file.dir,l=c(t,i,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(l.dirRecord),i)this.push({data:function(u){return e.DATA_DESCRIPTOR+f(u.crc32,4)+f(u.compressedSize,4)+f(u.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:l.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},s.prototype.flush=function(){for(var t=this.bytesWritten,i=0;i<this.dirRecords.length;i++)this.push({data:this.dirRecords[i],meta:{percent:100}});var l=this.bytesWritten-t,u=function(h,p,g,A,y){var E=o.transformTo("string",y(A));return e.CENTRAL_DIRECTORY_END+"\0\0\0\0"+f(h,2)+f(h,2)+f(p,4)+f(g,4)+f(E.length,2)+E}(this.dirRecords.length,l,t,this.zipComment,this.encodeFileName);this.push({data:u,meta:{percent:100}})},s.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},s.prototype.registerPrevious=function(t){this._sources.push(t);var i=this;return t.on("data",function(l){i.processChunk(l)}),t.on("end",function(){i.closedSource(i.previous.streamInfo),i._sources.length?i.prepareNextSource():i.end()}),t.on("error",function(l){i.error(l)}),this},s.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},s.prototype.error=function(t){var i=this._sources;if(!r.prototype.error.call(this,t))return!1;for(var l=0;l<i.length;l++)try{i[l].error(t)}catch(u){}return!0},s.prototype.lock=function(){r.prototype.lock.call(this);for(var t=this._sources,i=0;i<t.length;i++)t[i].lock()},S.exports=s},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(v,S,m){"use strict";var f=v("../compressions"),c=v("./ZipFileWorker");m.generateWorker=function(o,r,a){var n=new c(r.streamFiles,a,r.platform,r.encodeFileName),e=0;try{o.forEach(function(s,t){e++;var i=function(p,g){var A=p||g,y=f[A];if(!y)throw new Error(A+" is not a valid compression method !");return y}(t.options.compression,r.compression),l=t.options.compressionOptions||r.compressionOptions||{},u=t.dir,h=t.date;t._compressWorker(i,l).withStreamInfo("file",{name:s,dir:u,date:h,comment:t.comment||"",unixPermissions:t.unixPermissions,dosPermissions:t.dosPermissions}).pipe(n)}),n.entriesCount=e}catch(s){n.error(s)}return n}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(v,S,m){"use strict";function f(){if(!(this instanceof f))return new f;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var c=new f;for(var o in this)typeof this[o]!="function"&&(c[o]=this[o]);return c}}(f.prototype=v("./object")).loadAsync=v("./load"),f.support=v("./support"),f.defaults=v("./defaults"),f.version="3.7.1",f.loadAsync=function(c,o){return new f().loadAsync(c,o)},f.external=v("./external"),S.exports=f},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(v,S,m){"use strict";var f=v("./utils"),c=v("./external"),o=v("./utf8"),r=v("./zipEntries"),a=v("./stream/Crc32Probe"),n=v("./nodejsUtils");function e(s){return new c.Promise(function(t,i){var l=s.decompressed.getContentWorker().pipe(new a);l.on("error",function(u){i(u)}).on("end",function(){l.streamInfo.crc32!==s.decompressed.crc32?i(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}S.exports=function(s,t){var i=this;return t=f.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),n.isNode&&n.isStream(s)?c.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):f.prepareContent("the loaded zip file",s,!0,t.optimizedBinaryString,t.base64).then(function(l){var u=new r(t);return u.load(l),u}).then(function(l){var u=[c.Promise.resolve(l)],h=l.files;if(t.checkCRC32)for(var p=0;p<h.length;p++)u.push(e(h[p]));return c.Promise.all(u)}).then(function(l){for(var u=l.shift(),h=u.files,p=0;p<h.length;p++){var g=h[p];i.file(g.fileNameStr,g.decompressed,{binary:!0,optimizedBinaryString:!0,date:g.date,dir:g.dir,comment:g.fileCommentStr.length?g.fileCommentStr:null,unixPermissions:g.unixPermissions,dosPermissions:g.dosPermissions,createFolders:t.createFolders})}return u.zipComment.length&&(i.comment=u.zipComment),i})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(v,S,m){"use strict";var f=v("../utils"),c=v("../stream/GenericWorker");function o(r,a){c.call(this,"Nodejs stream input adapter for "+r),this._upstreamEnded=!1,this._bindStream(a)}f.inherits(o,c),o.prototype._bindStream=function(r){var a=this;(this._stream=r).pause(),r.on("data",function(n){a.push({data:n,meta:{percent:0}})}).on("error",function(n){a.isPaused?this.generatedError=n:a.error(n)}).on("end",function(){a.isPaused?a._upstreamEnded=!0:a.end()})},o.prototype.pause=function(){return!!c.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},S.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(v,S,m){"use strict";var f=v("readable-stream").Readable;function c(o,r,a){f.call(this,r),this._helper=o;var n=this;o.on("data",function(e,s){n.push(e)||n._helper.pause(),a&&a(s)}).on("error",function(e){n.emit("error",e)}).on("end",function(){n.push(null)})}v("../utils").inherits(c,f),c.prototype._read=function(){this._helper.resume()},S.exports=c},{"../utils":32,"readable-stream":16}],14:[function(v,S,m){"use strict";S.exports={isNode:typeof O!="undefined",newBufferFrom:function(c,o){if(O.from&&O.from!==Uint8Array.from)return O.from(c,o);if(typeof c=="number")throw new Error('The "data" argument must not be a number');return new O(c,o)},allocBuffer:function(c){if(O.alloc)return O.alloc(c);var o=new O(c);return o.fill(0),o},isBuffer:function(c){return O.isBuffer(c)},isStream:function(c){return c&&typeof c.on=="function"&&typeof c.pause=="function"&&typeof c.resume=="function"}}},{}],15:[function(v,S,m){"use strict";function f(y,E,C){var w,b=o.getTypeOf(E),I=o.extend(C||{},n);I.date=I.date||new Date,I.compression!==null&&(I.compression=I.compression.toUpperCase()),typeof I.unixPermissions=="string"&&(I.unixPermissions=parseInt(I.unixPermissions,8)),I.unixPermissions&&16384&I.unixPermissions&&(I.dir=!0),I.dosPermissions&&16&I.dosPermissions&&(I.dir=!0),I.dir&&(y=h(y)),I.createFolders&&(w=u(y))&&p.call(this,w,!0);var _=b==="string"&&I.binary===!1&&I.base64===!1;C&&C.binary!==void 0||(I.binary=!_),(E instanceof e&&E.uncompressedSize===0||I.dir||!E||E.length===0)&&(I.base64=!1,I.binary=!0,E="",I.compression="STORE",b="string");var L=null;L=E instanceof e||E instanceof r?E:i.isNode&&i.isStream(E)?new l(y,E):o.prepareContent(y,E,I.binary,I.optimizedBinaryString,I.base64);var D=new s(y,L,I);this.files[y]=D}var c=v("./utf8"),o=v("./utils"),r=v("./stream/GenericWorker"),a=v("./stream/StreamHelper"),n=v("./defaults"),e=v("./compressedObject"),s=v("./zipObject"),t=v("./generate"),i=v("./nodejsUtils"),l=v("./nodejs/NodejsStreamInputAdapter"),u=function(E){E.slice(-1)==="/"&&(E=E.substring(0,E.length-1));var C=E.lastIndexOf("/");return 0<C?E.substring(0,C):""},h=function(E){return E.slice(-1)!=="/"&&(E+="/"),E},p=function(E,C){return C=C!==void 0?C:n.createFolders,E=h(E),this.files[E]||f.call(this,E,null,{dir:!0,createFolders:C}),this.files[E]};function g(y){return Object.prototype.toString.call(y)==="[object RegExp]"}var A={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(E){var C,w,b;for(C in this.files)b=this.files[C],(w=C.slice(this.root.length,C.length))&&C.slice(0,this.root.length)===this.root&&E(w,b)},filter:function(E){var C=[];return this.forEach(function(w,b){E(w,b)&&C.push(b)}),C},file:function(E,C,w){if(arguments.length!==1)return E=this.root+E,f.call(this,E,C,w),this;if(g(E)){var b=E;return this.filter(function(_,L){return!L.dir&&b.test(_)})}var I=this.files[this.root+E];return I&&!I.dir?I:null},folder:function(E){if(!E)return this;if(g(E))return this.filter(function(I,_){return _.dir&&E.test(I)});var C=this.root+E,w=p.call(this,C),b=this.clone();return b.root=w.name,b},remove:function(E){E=this.root+E;var C=this.files[E];if(C||(E.slice(-1)!=="/"&&(E+="/"),C=this.files[E]),C&&!C.dir)delete this.files[E];else for(var w=this.filter(function(I,_){return _.name.slice(0,E.length)===E}),b=0;b<w.length;b++)delete this.files[w[b].name];return this},generate:function(E){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(E){var C,w={};try{if((w=o.extend(E||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:c.utf8encode})).type=w.type.toLowerCase(),w.compression=w.compression.toUpperCase(),w.type==="binarystring"&&(w.type="string"),!w.type)throw new Error("No output type specified.");o.checkSupport(w.type),w.platform!=="darwin"&&w.platform!=="freebsd"&&w.platform!=="linux"&&w.platform!=="sunos"||(w.platform="UNIX"),w.platform==="win32"&&(w.platform="DOS");var b=w.comment||this.comment||"";C=t.generateWorker(this,w,b)}catch(I){(C=new r("error")).error(I)}return new a(C,w.type||"string",w.mimeType)},generateAsync:function(E,C){return this.generateInternalStream(E).accumulate(C)},generateNodeStream:function(E,C){return(E=E||{}).type||(E.type="nodebuffer"),this.generateInternalStream(E).toNodejsStream(C)}};S.exports=A},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(v,S,m){S.exports=v("stream")},{stream:void 0}],17:[function(v,S,m){"use strict";var f=v("./DataReader");function c(o){f.call(this,o);for(var r=0;r<this.data.length;r++)o[r]=255&o[r]}v("../utils").inherits(c,f),c.prototype.byteAt=function(o){return this.data[this.zero+o]},c.prototype.lastIndexOfSignature=function(o){for(var r=o.charCodeAt(0),a=o.charCodeAt(1),n=o.charCodeAt(2),e=o.charCodeAt(3),s=this.length-4;0<=s;--s)if(this.data[s]===r&&this.data[s+1]===a&&this.data[s+2]===n&&this.data[s+3]===e)return s-this.zero;return-1},c.prototype.readAndCheckSignature=function(o){var r=o.charCodeAt(0),a=o.charCodeAt(1),n=o.charCodeAt(2),e=o.charCodeAt(3),s=this.readData(4);return r===s[0]&&a===s[1]&&n===s[2]&&e===s[3]},c.prototype.readData=function(o){if(this.checkOffset(o),o===0)return[];var r=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,r},S.exports=c},{"../utils":32,"./DataReader":18}],18:[function(v,S,m){"use strict";var f=v("../utils");function c(o){this.data=o,this.length=o.length,this.index=0,this.zero=0}c.prototype={checkOffset:function(r){this.checkIndex(this.index+r)},checkIndex:function(r){if(this.length<this.zero+r||r<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+r+"). Corrupted zip ?")},setIndex:function(r){this.checkIndex(r),this.index=r},skip:function(r){this.setIndex(this.index+r)},byteAt:function(r){},readInt:function(r){var a,n=0;for(this.checkOffset(r),a=this.index+r-1;a>=this.index;a--)n=(n<<8)+this.byteAt(a);return this.index+=r,n},readString:function(r){return f.transformTo("string",this.readData(r))},readData:function(r){},lastIndexOfSignature:function(r){},readAndCheckSignature:function(r){},readDate:function(){var r=this.readInt(4);return new Date(Date.UTC(1980+(r>>25&127),(r>>21&15)-1,r>>16&31,r>>11&31,r>>5&63,(31&r)<<1))}},S.exports=c},{"../utils":32}],19:[function(v,S,m){"use strict";var f=v("./Uint8ArrayReader");function c(o){f.call(this,o)}v("../utils").inherits(c,f),c.prototype.readData=function(o){this.checkOffset(o);var r=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,r},S.exports=c},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(v,S,m){"use strict";var f=v("./DataReader");function c(o){f.call(this,o)}v("../utils").inherits(c,f),c.prototype.byteAt=function(o){return this.data.charCodeAt(this.zero+o)},c.prototype.lastIndexOfSignature=function(o){return this.data.lastIndexOf(o)-this.zero},c.prototype.readAndCheckSignature=function(o){return o===this.readData(4)},c.prototype.readData=function(o){this.checkOffset(o);var r=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,r},S.exports=c},{"../utils":32,"./DataReader":18}],21:[function(v,S,m){"use strict";var f=v("./ArrayReader");function c(o){f.call(this,o)}v("../utils").inherits(c,f),c.prototype.readData=function(o){if(this.checkOffset(o),o===0)return new Uint8Array(0);var r=this.data.subarray(this.zero+this.index,this.zero+this.index+o);return this.index+=o,r},S.exports=c},{"../utils":32,"./ArrayReader":17}],22:[function(v,S,m){"use strict";var f=v("../utils"),c=v("../support"),o=v("./ArrayReader"),r=v("./StringReader"),a=v("./NodeBufferReader"),n=v("./Uint8ArrayReader");S.exports=function(e){var s=f.getTypeOf(e);return f.checkSupport(s),s!=="string"||c.uint8array?s==="nodebuffer"?new a(e):c.uint8array?new n(f.transformTo("uint8array",e)):new o(f.transformTo("array",e)):new r(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(v,S,m){"use strict";m.LOCAL_FILE_HEADER="PK",m.CENTRAL_FILE_HEADER="PK",m.CENTRAL_DIRECTORY_END="PK",m.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",m.ZIP64_CENTRAL_DIRECTORY_END="PK",m.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(v,S,m){"use strict";var f=v("./GenericWorker"),c=v("../utils");function o(r){f.call(this,"ConvertWorker to "+r),this.destType=r}c.inherits(o,f),o.prototype.processChunk=function(r){this.push({data:c.transformTo(this.destType,r.data),meta:r.meta})},S.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(v,S,m){"use strict";var f=v("./GenericWorker"),c=v("../crc32");function o(){f.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}v("../utils").inherits(o,f),o.prototype.processChunk=function(r){this.streamInfo.crc32=c(r.data,this.streamInfo.crc32||0),this.push(r)},S.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(v,S,m){"use strict";var f=v("../utils"),c=v("./GenericWorker");function o(r){c.call(this,"DataLengthProbe for "+r),this.propName=r,this.withStreamInfo(r,0)}f.inherits(o,c),o.prototype.processChunk=function(r){if(r){var a=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=a+r.data.length}c.prototype.processChunk.call(this,r)},S.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(v,S,m){"use strict";var f=v("../utils"),c=v("./GenericWorker");function o(r){c.call(this,"DataWorker");var a=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,r.then(function(n){a.dataIsReady=!0,a.data=n,a.max=n&&n.length||0,a.type=f.getTypeOf(n),a.isPaused||a._tickAndRepeat()},function(n){a.error(n)})}f.inherits(o,c),o.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,f.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(f.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var r=null,a=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":r=this.data.substring(this.index,a);break;case"uint8array":r=this.data.subarray(this.index,a);break;case"array":case"nodebuffer":r=this.data.slice(this.index,a)}return this.index=a,this.push({data:r,meta:{percent:this.max?this.index/this.max*100:0}})},S.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(v,S,m){"use strict";function f(c){this.name=c||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}f.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,r){return this._listeners[o].push(r),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,r){if(this._listeners[o])for(var a=0;a<this._listeners[o].length;a++)this._listeners[o][a].call(this,r)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var r=this;return o.on("data",function(a){r.processChunk(a)}),o.on("end",function(){r.end()}),o.on("error",function(a){r.error(a)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,r){return this.extraStreamInfo[o]=r,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},S.exports=f},{}],29:[function(v,S,m){"use strict";var f=v("../utils"),c=v("./ConvertWorker"),o=v("./GenericWorker"),r=v("../base64"),a=v("../support"),n=v("../external"),e=null;if(a.nodestream)try{e=v("../nodejs/NodejsStreamOutputAdapter")}catch(i){}function s(i,l){return new n.Promise(function(u,h){var p=[],g=i._internalType,A=i._outputType,y=i._mimeType;i.on("data",function(E,C){p.push(E),l&&l(C)}).on("error",function(E){p=[],h(E)}).on("end",function(){try{var E=function(C,w,b){switch(C){case"blob":return f.newBlob(f.transformTo("arraybuffer",w),b);case"base64":return r.encode(w);default:return f.transformTo(C,w)}}(A,function(C,w){var b,I=0,_=null,L=0;for(b=0;b<w.length;b++)L+=w[b].length;switch(C){case"string":return w.join("");case"array":return Array.prototype.concat.apply([],w);case"uint8array":for(_=new Uint8Array(L),b=0;b<w.length;b++)_.set(w[b],I),I+=w[b].length;return _;case"nodebuffer":return O.concat(w);default:throw new Error("concat : unsupported type '"+C+"'")}}(g,p),y);u(E)}catch(C){h(C)}p=[]}).resume()})}function t(i,l,u){var h=l;switch(l){case"blob":case"arraybuffer":h="uint8array";break;case"base64":h="string"}try{this._internalType=h,this._outputType=l,this._mimeType=u,f.checkSupport(h),this._worker=i.pipe(new c(h)),i.lock()}catch(p){this._worker=new o("error"),this._worker.error(p)}}t.prototype={accumulate:function(l){return s(this,l)},on:function(l,u){var h=this;return l==="data"?this._worker.on(l,function(p){u.call(h,p.data,p.meta)}):this._worker.on(l,function(){f.delay(u,arguments,h)}),this},resume:function(){return f.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(l){if(f.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new e(this,{objectMode:this._outputType!=="nodebuffer"},l)}},S.exports=t},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(v,S,m){"use strict";if(m.base64=!0,m.array=!0,m.string=!0,m.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",m.nodebuffer=typeof O!="undefined",m.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")m.blob=!1;else{var f=new ArrayBuffer(0);try{m.blob=new Blob([f],{type:"application/zip"}).size===0}catch(o){try{var c=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);c.append(f),m.blob=c.getBlob("application/zip").size===0}catch(r){m.blob=!1}}}try{m.nodestream=!!v("readable-stream").Readable}catch(o){m.nodestream=!1}},{"readable-stream":16}],31:[function(v,S,m){"use strict";for(var f=v("./utils"),c=v("./support"),o=v("./nodejsUtils"),r=v("./stream/GenericWorker"),a=new Array(256),n=0;n<256;n++)a[n]=252<=n?6:248<=n?5:240<=n?4:224<=n?3:192<=n?2:1;a[254]=a[254]=1;function e(){r.call(this,"utf-8 decode"),this.leftOver=null}function s(){r.call(this,"utf-8 encode")}m.utf8encode=function(t){return c.nodebuffer?o.newBufferFrom(t,"utf-8"):function(i){var l,u,h,p,g,A=i.length,y=0;for(p=0;p<A;p++)(64512&(u=i.charCodeAt(p)))==55296&&p+1<A&&(64512&(h=i.charCodeAt(p+1)))==56320&&(u=65536+(u-55296<<10)+(h-56320),p++),y+=u<128?1:u<2048?2:u<65536?3:4;for(l=c.uint8array?new Uint8Array(y):new Array(y),p=g=0;g<y;p++)(64512&(u=i.charCodeAt(p)))==55296&&p+1<A&&(64512&(h=i.charCodeAt(p+1)))==56320&&(u=65536+(u-55296<<10)+(h-56320),p++),u<128?l[g++]=u:(u<2048?l[g++]=192|u>>>6:(u<65536?l[g++]=224|u>>>12:(l[g++]=240|u>>>18,l[g++]=128|u>>>12&63),l[g++]=128|u>>>6&63),l[g++]=128|63&u);return l}(t)},m.utf8decode=function(t){return c.nodebuffer?f.transformTo("nodebuffer",t).toString("utf-8"):function(i){var l,u,h,p,g=i.length,A=new Array(2*g);for(l=u=0;l<g;)if((h=i[l++])<128)A[u++]=h;else if(4<(p=a[h]))A[u++]=65533,l+=p-1;else{for(h&=p===2?31:p===3?15:7;1<p&&l<g;)h=h<<6|63&i[l++],p--;1<p?A[u++]=65533:h<65536?A[u++]=h:(h-=65536,A[u++]=55296|h>>10&1023,A[u++]=56320|1023&h)}return A.length!==u&&(A.subarray?A=A.subarray(0,u):A.length=u),f.applyFromCharCode(A)}(t=f.transformTo(c.uint8array?"uint8array":"array",t))},f.inherits(e,r),e.prototype.processChunk=function(t){var i=f.transformTo(c.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(c.uint8array){var l=i;(i=new Uint8Array(l.length+this.leftOver.length)).set(this.leftOver,0),i.set(l,this.leftOver.length)}else i=this.leftOver.concat(i);this.leftOver=null}var u=function(p,g){var A;for((g=g||p.length)>p.length&&(g=p.length),A=g-1;0<=A&&(192&p[A])==128;)A--;return A<0||A===0?g:A+a[p[A]]>g?A:g}(i),h=i;u!==i.length&&(c.uint8array?(h=i.subarray(0,u),this.leftOver=i.subarray(u,i.length)):(h=i.slice(0,u),this.leftOver=i.slice(u,i.length))),this.push({data:m.utf8decode(h),meta:t.meta})},e.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:m.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},m.Utf8DecodeWorker=e,f.inherits(s,r),s.prototype.processChunk=function(t){this.push({data:m.utf8encode(t.data),meta:t.meta})},m.Utf8EncodeWorker=s},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(v,S,m){"use strict";var f=v("./support"),c=v("./base64"),o=v("./nodejsUtils"),r=v("set-immediate-shim"),a=v("./external");function n(u){return u}function e(u,h){for(var p=0;p<u.length;++p)h[p]=255&u.charCodeAt(p);return h}m.newBlob=function(u,h){m.checkSupport("blob");try{return new Blob([u],{type:h})}catch(g){try{var p=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return p.append(u),p.getBlob(h)}catch(A){throw new Error("Bug : can't construct the Blob.")}}};var s={stringifyByChunk:function(h,p,g){var A=[],y=0,E=h.length;if(E<=g)return String.fromCharCode.apply(null,h);for(;y<E;)p==="array"||p==="nodebuffer"?A.push(String.fromCharCode.apply(null,h.slice(y,Math.min(y+g,E)))):A.push(String.fromCharCode.apply(null,h.subarray(y,Math.min(y+g,E)))),y+=g;return A.join("")},stringifyByChar:function(h){for(var p="",g=0;g<h.length;g++)p+=String.fromCharCode(h[g]);return p},applyCanBeUsed:{uint8array:function(){try{return f.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(u){return!1}}(),nodebuffer:function(){try{return f.nodebuffer&&String.fromCharCode.apply(null,o.allocBuffer(1)).length===1}catch(u){return!1}}()}};function t(u){var h=65536,p=m.getTypeOf(u),g=!0;if(p==="uint8array"?g=s.applyCanBeUsed.uint8array:p==="nodebuffer"&&(g=s.applyCanBeUsed.nodebuffer),g)for(;1<h;)try{return s.stringifyByChunk(u,p,h)}catch(A){h=Math.floor(h/2)}return s.stringifyByChar(u)}function i(u,h){for(var p=0;p<u.length;p++)h[p]=u[p];return h}m.applyFromCharCode=t;var l={};l.string={string:n,array:function(h){return e(h,new Array(h.length))},arraybuffer:function(h){return l.string.uint8array(h).buffer},uint8array:function(h){return e(h,new Uint8Array(h.length))},nodebuffer:function(h){return e(h,o.allocBuffer(h.length))}},l.array={string:t,array:n,arraybuffer:function(h){return new Uint8Array(h).buffer},uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return o.newBufferFrom(h)}},l.arraybuffer={string:function(h){return t(new Uint8Array(h))},array:function(h){return i(new Uint8Array(h),new Array(h.byteLength))},arraybuffer:n,uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return o.newBufferFrom(new Uint8Array(h))}},l.uint8array={string:t,array:function(h){return i(h,new Array(h.length))},arraybuffer:function(h){return h.buffer},uint8array:n,nodebuffer:function(h){return o.newBufferFrom(h)}},l.nodebuffer={string:t,array:function(h){return i(h,new Array(h.length))},arraybuffer:function(h){return l.nodebuffer.uint8array(h).buffer},uint8array:function(h){return i(h,new Uint8Array(h.length))},nodebuffer:n},m.transformTo=function(u,h){if(h=h||"",!u)return h;m.checkSupport(u);var p=m.getTypeOf(h);return l[p][u](h)},m.getTypeOf=function(u){return typeof u=="string"?"string":Object.prototype.toString.call(u)==="[object Array]"?"array":f.nodebuffer&&o.isBuffer(u)?"nodebuffer":f.uint8array&&u instanceof Uint8Array?"uint8array":f.arraybuffer&&u instanceof ArrayBuffer?"arraybuffer":void 0},m.checkSupport=function(u){if(!f[u.toLowerCase()])throw new Error(u+" is not supported by this platform")},m.MAX_VALUE_16BITS=65535,m.MAX_VALUE_32BITS=-1,m.pretty=function(u){var h,p,g="";for(p=0;p<(u||"").length;p++)g+="\\x"+((h=u.charCodeAt(p))<16?"0":"")+h.toString(16).toUpperCase();return g},m.delay=function(u,h,p){r(function(){u.apply(p||null,h||[])})},m.inherits=function(u,h){function p(){}p.prototype=h.prototype,u.prototype=new p},m.extend=function(){var u,h,p={};for(u=0;u<arguments.length;u++)for(h in arguments[u])arguments[u].hasOwnProperty(h)&&p[h]===void 0&&(p[h]=arguments[u][h]);return p},m.prepareContent=function(u,h,p,g,A){return a.Promise.resolve(h).then(function(y){return f.blob&&(y instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(y))!==-1)&&typeof FileReader!="undefined"?new a.Promise(function(E,C){var w=new FileReader;w.onload=function(b){E(b.target.result)},w.onerror=function(b){C(b.target.error)},w.readAsArrayBuffer(y)}):y}).then(function(y){var E=m.getTypeOf(y);return E?(E==="arraybuffer"?y=m.transformTo("uint8array",y):E==="string"&&(A?y=c.decode(y):p&&g!==!0&&(y=function(C){return e(C,f.uint8array?new Uint8Array(C.length):new Array(C.length))}(y))),y):a.Promise.reject(new Error("Can't read the data of '"+u+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(v,S,m){"use strict";var f=v("./reader/readerFor"),c=v("./utils"),o=v("./signature"),r=v("./zipEntry"),a=(v("./utf8"),v("./support"));function n(e){this.files=[],this.loadOptions=e}n.prototype={checkSignature:function(s){if(!this.reader.readAndCheckSignature(s)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+c.pretty(t)+", expected "+c.pretty(s)+")")}},isSignature:function(s,t){var i=this.reader.index;this.reader.setIndex(s);var l=this.reader.readString(4)===t;return this.reader.setIndex(i),l},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var s=this.reader.readData(this.zipCommentLength),t=a.uint8array?"uint8array":"array",i=c.transformTo(t,s);this.zipComment=this.loadOptions.decodeFileName(i)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var s,t,i,l=this.zip64EndOfCentralSize-44;0<l;)s=this.reader.readInt(2),t=this.reader.readInt(4),i=this.reader.readData(t),this.zip64ExtensibleData[s]={id:s,length:t,value:i}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var s,t;for(s=0;s<this.files.length;s++)t=this.files[s],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var s;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(s=new r({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(s);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var s=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(s<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(s);var t=s;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===c.MAX_VALUE_16BITS||this.diskWithCentralDirStart===c.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===c.MAX_VALUE_16BITS||this.centralDirRecords===c.MAX_VALUE_16BITS||this.centralDirSize===c.MAX_VALUE_32BITS||this.centralDirOffset===c.MAX_VALUE_32BITS){if(this.zip64=!0,(s=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(s),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var l=t-i;if(0<l)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=l);else if(l<0)throw new Error("Corrupted zip: missing "+Math.abs(l)+" bytes.")},prepareReader:function(s){this.reader=f(s)},load:function(s){this.prepareReader(s),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},S.exports=n},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(v,S,m){"use strict";var f=v("./reader/readerFor"),c=v("./utils"),o=v("./compressedObject"),r=v("./crc32"),a=v("./utf8"),n=v("./compressions"),e=v("./support");function s(t,i){this.options=t,this.loadOptions=i}s.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(i){var l,u;if(i.skip(22),this.fileNameLength=i.readInt(2),u=i.readInt(2),this.fileName=i.readData(this.fileNameLength),i.skip(u),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((l=function(h){for(var p in n)if(n.hasOwnProperty(p)&&n[p].magic===h)return n[p];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+c.pretty(this.compressionMethod)+" unknown (inner file : "+c.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,l,i.readData(this.compressedSize))},readCentralPart:function(i){this.versionMadeBy=i.readInt(2),i.skip(2),this.bitFlag=i.readInt(2),this.compressionMethod=i.readString(2),this.date=i.readDate(),this.crc32=i.readInt(4),this.compressedSize=i.readInt(4),this.uncompressedSize=i.readInt(4);var l=i.readInt(2);if(this.extraFieldsLength=i.readInt(2),this.fileCommentLength=i.readInt(2),this.diskNumberStart=i.readInt(2),this.internalFileAttributes=i.readInt(2),this.externalFileAttributes=i.readInt(4),this.localHeaderOffset=i.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");i.skip(l),this.readExtraFields(i),this.parseZIP64ExtraField(i),this.fileComment=i.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var i=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),i==0&&(this.dosPermissions=63&this.externalFileAttributes),i==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(i){if(this.extraFields[1]){var l=f(this.extraFields[1].value);this.uncompressedSize===c.MAX_VALUE_32BITS&&(this.uncompressedSize=l.readInt(8)),this.compressedSize===c.MAX_VALUE_32BITS&&(this.compressedSize=l.readInt(8)),this.localHeaderOffset===c.MAX_VALUE_32BITS&&(this.localHeaderOffset=l.readInt(8)),this.diskNumberStart===c.MAX_VALUE_32BITS&&(this.diskNumberStart=l.readInt(4))}},readExtraFields:function(i){var l,u,h,p=i.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});i.index+4<p;)l=i.readInt(2),u=i.readInt(2),h=i.readData(u),this.extraFields[l]={id:l,length:u,value:h};i.setIndex(p)},handleUTF8:function(){var i=e.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var l=this.findExtraFieldUnicodePath();if(l!==null)this.fileNameStr=l;else{var u=c.transformTo(i,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(u)}var h=this.findExtraFieldUnicodeComment();if(h!==null)this.fileCommentStr=h;else{var p=c.transformTo(i,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(p)}}},findExtraFieldUnicodePath:function(){var i=this.extraFields[28789];if(i){var l=f(i.value);return l.readInt(1)!==1||r(this.fileName)!==l.readInt(4)?null:a.utf8decode(l.readData(i.length-5))}return null},findExtraFieldUnicodeComment:function(){var i=this.extraFields[25461];if(i){var l=f(i.value);return l.readInt(1)!==1||r(this.fileComment)!==l.readInt(4)?null:a.utf8decode(l.readData(i.length-5))}return null}},S.exports=s},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(v,S,m){"use strict";function f(i,l,u){this.name=i,this.dir=u.dir,this.date=u.date,this.comment=u.comment,this.unixPermissions=u.unixPermissions,this.dosPermissions=u.dosPermissions,this._data=l,this._dataBinary=u.binary,this.options={compression:u.compression,compressionOptions:u.compressionOptions}}var c=v("./stream/StreamHelper"),o=v("./stream/DataWorker"),r=v("./utf8"),a=v("./compressedObject"),n=v("./stream/GenericWorker");f.prototype={internalStream:function(l){var u=null,h="string";try{if(!l)throw new Error("No output type specified.");var p=(h=l.toLowerCase())==="string"||h==="text";h!=="binarystring"&&h!=="text"||(h="string"),u=this._decompressWorker();var g=!this._dataBinary;g&&!p&&(u=u.pipe(new r.Utf8EncodeWorker)),!g&&p&&(u=u.pipe(new r.Utf8DecodeWorker))}catch(A){(u=new n("error")).error(A)}return new c(u,h,"")},async:function(l,u){return this.internalStream(l).accumulate(u)},nodeStream:function(l,u){return this.internalStream(l||"nodebuffer").toNodejsStream(u)},_compressWorker:function(l,u){if(this._data instanceof a&&this._data.compression.magic===l.magic)return this._data.getCompressedWorker();var h=this._decompressWorker();return this._dataBinary||(h=h.pipe(new r.Utf8EncodeWorker)),a.createWorkerFrom(h,l,u)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof n?this._data:new o(this._data)}};for(var e=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],s=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},t=0;t<e.length;t++)f.prototype[e[t]]=s;S.exports=f},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(v,S,m){(function(f){"use strict";var c,o,r=f.MutationObserver||f.WebKitMutationObserver;if(r){var a=0,n=new r(i),e=f.document.createTextNode("");n.observe(e,{characterData:!0}),c=function(){e.data=a=++a%2}}else if(f.setImmediate||f.MessageChannel===void 0)c="document"in f&&"onreadystatechange"in f.document.createElement("script")?function(){var l=f.document.createElement("script");l.onreadystatechange=function(){i(),l.onreadystatechange=null,l.parentNode.removeChild(l),l=null},f.document.documentElement.appendChild(l)}:function(){setTimeout(i,0)};else{var s=new f.MessageChannel;s.port1.onmessage=i,c=function(){s.port2.postMessage(0)}}var t=[];function i(){var l,u;o=!0;for(var h=t.length;h;){for(u=t,t=[],l=-1;++l<h;)u[l]();h=t.length}o=!1}S.exports=function(l){t.push(l)!==1||o||c()}}).call(this,typeof x!="undefined"?x:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(v,S,m){"use strict";var f=v("immediate");function c(){}var o={},r=["REJECTED"],a=["FULFILLED"],n=["PENDING"];function e(h){if(typeof h!="function")throw new TypeError("resolver must be a function");this.state=n,this.queue=[],this.outcome=void 0,h!==c&&l(this,h)}function s(h,p,g){this.promise=h,typeof p=="function"&&(this.onFulfilled=p,this.callFulfilled=this.otherCallFulfilled),typeof g=="function"&&(this.onRejected=g,this.callRejected=this.otherCallRejected)}function t(h,p,g){f(function(){var A;try{A=p(g)}catch(y){return o.reject(h,y)}A===h?o.reject(h,new TypeError("Cannot resolve promise with itself")):o.resolve(h,A)})}function i(h){var p=h&&h.then;if(h&&(typeof h=="object"||typeof h=="function")&&typeof p=="function")return function(){p.apply(h,arguments)}}function l(h,p){var g=!1;function A(C){g||(g=!0,o.reject(h,C))}function y(C){g||(g=!0,o.resolve(h,C))}var E=u(function(){p(y,A)});E.status==="error"&&A(E.value)}function u(h,p){var g={};try{g.value=h(p),g.status="success"}catch(A){g.status="error",g.value=A}return g}(S.exports=e).prototype.finally=function(h){if(typeof h!="function")return this;var p=this.constructor;return this.then(function(g){return p.resolve(h()).then(function(){return g})},function(g){return p.resolve(h()).then(function(){throw g})})},e.prototype.catch=function(h){return this.then(null,h)},e.prototype.then=function(h,p){if(typeof h!="function"&&this.state===a||typeof p!="function"&&this.state===r)return this;var g=new this.constructor(c);return this.state!==n?t(g,this.state===a?h:p,this.outcome):this.queue.push(new s(g,h,p)),g},s.prototype.callFulfilled=function(h){o.resolve(this.promise,h)},s.prototype.otherCallFulfilled=function(h){t(this.promise,this.onFulfilled,h)},s.prototype.callRejected=function(h){o.reject(this.promise,h)},s.prototype.otherCallRejected=function(h){t(this.promise,this.onRejected,h)},o.resolve=function(h,p){var g=u(i,p);if(g.status==="error")return o.reject(h,g.value);var A=g.value;if(A)l(h,A);else{h.state=a,h.outcome=p;for(var y=-1,E=h.queue.length;++y<E;)h.queue[y].callFulfilled(p)}return h},o.reject=function(h,p){h.state=r,h.outcome=p;for(var g=-1,A=h.queue.length;++g<A;)h.queue[g].callRejected(p);return h},e.resolve=function(h){return h instanceof this?h:o.resolve(new this(c),h)},e.reject=function(h){var p=new this(c);return o.reject(p,h)},e.all=function(h){var p=this;if(Object.prototype.toString.call(h)!=="[object Array]")return this.reject(new TypeError("must be an array"));var g=h.length,A=!1;if(!g)return this.resolve([]);for(var y=new Array(g),E=0,C=-1,w=new this(c);++C<g;)b(h[C],C);return w;function b(I,_){p.resolve(I).then(function(L){y[_]=L,++E!==g||A||(A=!0,o.resolve(w,y))},function(L){A||(A=!0,o.reject(w,L))})}},e.race=function(h){var p=this;if(Object.prototype.toString.call(h)!=="[object Array]")return this.reject(new TypeError("must be an array"));var g=h.length,A=!1;if(!g)return this.resolve([]);for(var y=-1,E=new this(c);++y<g;)C=h[y],p.resolve(C).then(function(w){A||(A=!0,o.resolve(E,w))},function(w){A||(A=!0,o.reject(E,w))});var C;return E}},{immediate:36}],38:[function(v,S,m){"use strict";var f={};(0,v("./lib/utils/common").assign)(f,v("./lib/deflate"),v("./lib/inflate"),v("./lib/zlib/constants")),S.exports=f},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(v,S,m){"use strict";var f=v("./zlib/deflate"),c=v("./utils/common"),o=v("./utils/strings"),r=v("./zlib/messages"),a=v("./zlib/zstream"),n=Object.prototype.toString,e=0,s=-1,t=0,i=8;function l(h){if(!(this instanceof l))return new l(h);this.options=c.assign({level:s,method:i,chunkSize:16384,windowBits:15,memLevel:8,strategy:t,to:""},h||{});var p=this.options;p.raw&&0<p.windowBits?p.windowBits=-p.windowBits:p.gzip&&0<p.windowBits&&p.windowBits<16&&(p.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var g=f.deflateInit2(this.strm,p.level,p.method,p.windowBits,p.memLevel,p.strategy);if(g!==e)throw new Error(r[g]);if(p.header&&f.deflateSetHeader(this.strm,p.header),p.dictionary){var A;if(A=typeof p.dictionary=="string"?o.string2buf(p.dictionary):n.call(p.dictionary)==="[object ArrayBuffer]"?new Uint8Array(p.dictionary):p.dictionary,(g=f.deflateSetDictionary(this.strm,A))!==e)throw new Error(r[g]);this._dict_set=!0}}function u(h,p){var g=new l(p);if(g.push(h,!0),g.err)throw g.msg||r[g.err];return g.result}l.prototype.push=function(h,p){var g,A,y=this.strm,E=this.options.chunkSize;if(this.ended)return!1;A=p===~~p?p:p===!0?4:0,typeof h=="string"?y.input=o.string2buf(h):n.call(h)==="[object ArrayBuffer]"?y.input=new Uint8Array(h):y.input=h,y.next_in=0,y.avail_in=y.input.length;do{if(y.avail_out===0&&(y.output=new c.Buf8(E),y.next_out=0,y.avail_out=E),(g=f.deflate(y,A))!==1&&g!==e)return this.onEnd(g),!(this.ended=!0);y.avail_out!==0&&(y.avail_in!==0||A!==4&&A!==2)||(this.options.to==="string"?this.onData(o.buf2binstring(c.shrinkBuf(y.output,y.next_out))):this.onData(c.shrinkBuf(y.output,y.next_out)))}while((0<y.avail_in||y.avail_out===0)&&g!==1);return A===4?(g=f.deflateEnd(this.strm),this.onEnd(g),this.ended=!0,g===e):A!==2||(this.onEnd(e),!(y.avail_out=0))},l.prototype.onData=function(h){this.chunks.push(h)},l.prototype.onEnd=function(h){h===e&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=c.flattenChunks(this.chunks)),this.chunks=[],this.err=h,this.msg=this.strm.msg},m.Deflate=l,m.deflate=u,m.deflateRaw=function(h,p){return(p=p||{}).raw=!0,u(h,p)},m.gzip=function(h,p){return(p=p||{}).gzip=!0,u(h,p)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(v,S,m){"use strict";var f=v("./zlib/inflate"),c=v("./utils/common"),o=v("./utils/strings"),r=v("./zlib/constants"),a=v("./zlib/messages"),n=v("./zlib/zstream"),e=v("./zlib/gzheader"),s=Object.prototype.toString;function t(l){if(!(this instanceof t))return new t(l);this.options=c.assign({chunkSize:16384,windowBits:0,to:""},l||{});var u=this.options;u.raw&&0<=u.windowBits&&u.windowBits<16&&(u.windowBits=-u.windowBits,u.windowBits===0&&(u.windowBits=-15)),!(0<=u.windowBits&&u.windowBits<16)||l&&l.windowBits||(u.windowBits+=32),15<u.windowBits&&u.windowBits<48&&(15&u.windowBits)==0&&(u.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new n,this.strm.avail_out=0;var h=f.inflateInit2(this.strm,u.windowBits);if(h!==r.Z_OK)throw new Error(a[h]);this.header=new e,f.inflateGetHeader(this.strm,this.header)}function i(l,u){var h=new t(u);if(h.push(l,!0),h.err)throw h.msg||a[h.err];return h.result}t.prototype.push=function(l,u){var h,p,g,A,y,E,C=this.strm,w=this.options.chunkSize,b=this.options.dictionary,I=!1;if(this.ended)return!1;p=u===~~u?u:u===!0?r.Z_FINISH:r.Z_NO_FLUSH,typeof l=="string"?C.input=o.binstring2buf(l):s.call(l)==="[object ArrayBuffer]"?C.input=new Uint8Array(l):C.input=l,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new c.Buf8(w),C.next_out=0,C.avail_out=w),(h=f.inflate(C,r.Z_NO_FLUSH))===r.Z_NEED_DICT&&b&&(E=typeof b=="string"?o.string2buf(b):s.call(b)==="[object ArrayBuffer]"?new Uint8Array(b):b,h=f.inflateSetDictionary(this.strm,E)),h===r.Z_BUF_ERROR&&I===!0&&(h=r.Z_OK,I=!1),h!==r.Z_STREAM_END&&h!==r.Z_OK)return this.onEnd(h),!(this.ended=!0);C.next_out&&(C.avail_out!==0&&h!==r.Z_STREAM_END&&(C.avail_in!==0||p!==r.Z_FINISH&&p!==r.Z_SYNC_FLUSH)||(this.options.to==="string"?(g=o.utf8border(C.output,C.next_out),A=C.next_out-g,y=o.buf2string(C.output,g),C.next_out=A,C.avail_out=w-A,A&&c.arraySet(C.output,C.output,g,A,0),this.onData(y)):this.onData(c.shrinkBuf(C.output,C.next_out)))),C.avail_in===0&&C.avail_out===0&&(I=!0)}while((0<C.avail_in||C.avail_out===0)&&h!==r.Z_STREAM_END);return h===r.Z_STREAM_END&&(p=r.Z_FINISH),p===r.Z_FINISH?(h=f.inflateEnd(this.strm),this.onEnd(h),this.ended=!0,h===r.Z_OK):p!==r.Z_SYNC_FLUSH||(this.onEnd(r.Z_OK),!(C.avail_out=0))},t.prototype.onData=function(l){this.chunks.push(l)},t.prototype.onEnd=function(l){l===r.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=c.flattenChunks(this.chunks)),this.chunks=[],this.err=l,this.msg=this.strm.msg},m.Inflate=t,m.inflate=i,m.inflateRaw=function(l,u){return(u=u||{}).raw=!0,i(l,u)},m.ungzip=i},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(v,S,m){"use strict";var f=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";m.assign=function(r){for(var a=Array.prototype.slice.call(arguments,1);a.length;){var n=a.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(var e in n)n.hasOwnProperty(e)&&(r[e]=n[e])}}return r},m.shrinkBuf=function(r,a){return r.length===a?r:r.subarray?r.subarray(0,a):(r.length=a,r)};var c={arraySet:function(a,n,e,s,t){if(n.subarray&&a.subarray)a.set(n.subarray(e,e+s),t);else for(var i=0;i<s;i++)a[t+i]=n[e+i]},flattenChunks:function(a){var n,e,s,t,i,l;for(n=s=0,e=a.length;n<e;n++)s+=a[n].length;for(l=new Uint8Array(s),n=t=0,e=a.length;n<e;n++)i=a[n],l.set(i,t),t+=i.length;return l}},o={arraySet:function(a,n,e,s,t){for(var i=0;i<s;i++)a[t+i]=n[e+i]},flattenChunks:function(a){return[].concat.apply([],a)}};m.setTyped=function(r){r?(m.Buf8=Uint8Array,m.Buf16=Uint16Array,m.Buf32=Int32Array,m.assign(m,c)):(m.Buf8=Array,m.Buf16=Array,m.Buf32=Array,m.assign(m,o))},m.setTyped(f)},{}],42:[function(v,S,m){"use strict";var f=v("./common"),c=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){c=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var r=new f.Buf8(256),a=0;a<256;a++)r[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function n(e,s){if(s<65537&&(e.subarray&&o||!e.subarray&&c))return String.fromCharCode.apply(null,f.shrinkBuf(e,s));for(var t="",i=0;i<s;i++)t+=String.fromCharCode(e[i]);return t}r[254]=r[254]=1,m.string2buf=function(e){var s,t,i,l,u,h=e.length,p=0;for(l=0;l<h;l++)(64512&(t=e.charCodeAt(l)))==55296&&l+1<h&&(64512&(i=e.charCodeAt(l+1)))==56320&&(t=65536+(t-55296<<10)+(i-56320),l++),p+=t<128?1:t<2048?2:t<65536?3:4;for(s=new f.Buf8(p),l=u=0;u<p;l++)(64512&(t=e.charCodeAt(l)))==55296&&l+1<h&&(64512&(i=e.charCodeAt(l+1)))==56320&&(t=65536+(t-55296<<10)+(i-56320),l++),t<128?s[u++]=t:(t<2048?s[u++]=192|t>>>6:(t<65536?s[u++]=224|t>>>12:(s[u++]=240|t>>>18,s[u++]=128|t>>>12&63),s[u++]=128|t>>>6&63),s[u++]=128|63&t);return s},m.buf2binstring=function(e){return n(e,e.length)},m.binstring2buf=function(e){for(var s=new f.Buf8(e.length),t=0,i=s.length;t<i;t++)s[t]=e.charCodeAt(t);return s},m.buf2string=function(e,s){var t,i,l,u,h=s||e.length,p=new Array(2*h);for(t=i=0;t<h;)if((l=e[t++])<128)p[i++]=l;else if(4<(u=r[l]))p[i++]=65533,t+=u-1;else{for(l&=u===2?31:u===3?15:7;1<u&&t<h;)l=l<<6|63&e[t++],u--;1<u?p[i++]=65533:l<65536?p[i++]=l:(l-=65536,p[i++]=55296|l>>10&1023,p[i++]=56320|1023&l)}return n(p,i)},m.utf8border=function(e,s){var t;for((s=s||e.length)>e.length&&(s=e.length),t=s-1;0<=t&&(192&e[t])==128;)t--;return t<0||t===0?s:t+r[e[t]]>s?t:s}},{"./common":41}],43:[function(v,S,m){"use strict";S.exports=function(f,c,o,r){for(var a=65535&f|0,n=f>>>16&65535|0,e=0;o!==0;){for(o-=e=2e3<o?2e3:o;n=n+(a=a+c[r++]|0)|0,--e;);a%=65521,n%=65521}return a|n<<16|0}},{}],44:[function(v,S,m){"use strict";S.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(v,S,m){"use strict";var f=function(){for(var c,o=[],r=0;r<256;r++){c=r;for(var a=0;a<8;a++)c=1&c?3988292384^c>>>1:c>>>1;o[r]=c}return o}();S.exports=function(c,o,r,a){var n=f,e=a+r;c^=-1;for(var s=a;s<e;s++)c=c>>>8^n[255&(c^o[s])];return-1^c}},{}],46:[function(v,S,m){"use strict";var f,c=v("../utils/common"),o=v("./trees"),r=v("./adler32"),a=v("./crc32"),n=v("./messages"),e=0,s=4,t=0,i=-2,l=-1,u=4,h=2,p=8,g=9,A=286,y=30,E=19,C=2*A+1,w=15,b=3,I=258,_=I+b+1,L=42,D=113,N=1,R=2,B=3,M=4;function H(Q,me){return Q.msg=n[me],me}function F(Q){return(Q<<1)-(4<Q?9:0)}function K(Q){for(var me=Q.length;0<=--me;)Q[me]=0}function j(Q){var me=Q.state,Je=me.pending;Je>Q.avail_out&&(Je=Q.avail_out),Je!==0&&(c.arraySet(Q.output,me.pending_buf,me.pending_out,Je,Q.next_out),Q.next_out+=Je,me.pending_out+=Je,Q.total_out+=Je,Q.avail_out-=Je,me.pending-=Je,me.pending===0&&(me.pending_out=0))}function V(Q,me){o._tr_flush_block(Q,0<=Q.block_start?Q.block_start:-1,Q.strstart-Q.block_start,me),Q.block_start=Q.strstart,j(Q.strm)}function z(Q,me){Q.pending_buf[Q.pending++]=me}function Y(Q,me){Q.pending_buf[Q.pending++]=me>>>8&255,Q.pending_buf[Q.pending++]=255&me}function ee(Q,me){var Je,re,G=Q.max_chain_length,X=Q.strstart,J=Q.prev_length,Ae=Q.nice_match,he=Q.strstart>Q.w_size-_?Q.strstart-(Q.w_size-_):0,Me=Q.window,Ie=Q.w_mask,oe=Q.prev,pe=Q.strstart+I,Oe=Me[X+J-1],Ye=Me[X+J];Q.prev_length>=Q.good_match&&(G>>=2),Ae>Q.lookahead&&(Ae=Q.lookahead);do if(Me[(Je=me)+J]===Ye&&Me[Je+J-1]===Oe&&Me[Je]===Me[X]&&Me[++Je]===Me[X+1]){X+=2,Je++;do;while(Me[++X]===Me[++Je]&&Me[++X]===Me[++Je]&&Me[++X]===Me[++Je]&&Me[++X]===Me[++Je]&&Me[++X]===Me[++Je]&&Me[++X]===Me[++Je]&&Me[++X]===Me[++Je]&&Me[++X]===Me[++Je]&&X<pe);if(re=I-(pe-X),X=pe-I,J<re){if(Q.match_start=me,Ae<=(J=re))break;Oe=Me[X+J-1],Ye=Me[X+J]}}while((me=oe[me&Ie])>he&&--G!=0);return J<=Q.lookahead?J:Q.lookahead}function fe(Q){var me,Je,re,G,X,J,Ae,he,Me,Ie,oe=Q.w_size;do{if(G=Q.window_size-Q.lookahead-Q.strstart,Q.strstart>=oe+(oe-_)){for(c.arraySet(Q.window,Q.window,oe,oe,0),Q.match_start-=oe,Q.strstart-=oe,Q.block_start-=oe,me=Je=Q.hash_size;re=Q.head[--me],Q.head[me]=oe<=re?re-oe:0,--Je;);for(me=Je=oe;re=Q.prev[--me],Q.prev[me]=oe<=re?re-oe:0,--Je;);G+=oe}if(Q.strm.avail_in===0)break;if(J=Q.strm,Ae=Q.window,he=Q.strstart+Q.lookahead,Me=G,Ie=void 0,Ie=J.avail_in,Me<Ie&&(Ie=Me),Je=Ie===0?0:(J.avail_in-=Ie,c.arraySet(Ae,J.input,J.next_in,Ie,he),J.state.wrap===1?J.adler=r(J.adler,Ae,Ie,he):J.state.wrap===2&&(J.adler=a(J.adler,Ae,Ie,he)),J.next_in+=Ie,J.total_in+=Ie,Ie),Q.lookahead+=Je,Q.lookahead+Q.insert>=b)for(X=Q.strstart-Q.insert,Q.ins_h=Q.window[X],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[X+1])&Q.hash_mask;Q.insert&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[X+b-1])&Q.hash_mask,Q.prev[X&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=X,X++,Q.insert--,!(Q.lookahead+Q.insert<b)););}while(Q.lookahead<_&&Q.strm.avail_in!==0)}function ie(Q,me){for(var Je,re;;){if(Q.lookahead<_){if(fe(Q),Q.lookahead<_&&me===e)return N;if(Q.lookahead===0)break}if(Je=0,Q.lookahead>=b&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+b-1])&Q.hash_mask,Je=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart),Je!==0&&Q.strstart-Je<=Q.w_size-_&&(Q.match_length=ee(Q,Je)),Q.match_length>=b)if(re=o._tr_tally(Q,Q.strstart-Q.match_start,Q.match_length-b),Q.lookahead-=Q.match_length,Q.match_length<=Q.max_lazy_match&&Q.lookahead>=b){for(Q.match_length--;Q.strstart++,Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+b-1])&Q.hash_mask,Je=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart,--Q.match_length!=0;);Q.strstart++}else Q.strstart+=Q.match_length,Q.match_length=0,Q.ins_h=Q.window[Q.strstart],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+1])&Q.hash_mask;else re=o._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(re&&(V(Q,!1),Q.strm.avail_out===0))return N}return Q.insert=Q.strstart<b-1?Q.strstart:b-1,me===s?(V(Q,!0),Q.strm.avail_out===0?B:M):Q.last_lit&&(V(Q,!1),Q.strm.avail_out===0)?N:R}function we(Q,me){for(var Je,re,G;;){if(Q.lookahead<_){if(fe(Q),Q.lookahead<_&&me===e)return N;if(Q.lookahead===0)break}if(Je=0,Q.lookahead>=b&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+b-1])&Q.hash_mask,Je=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart),Q.prev_length=Q.match_length,Q.prev_match=Q.match_start,Q.match_length=b-1,Je!==0&&Q.prev_length<Q.max_lazy_match&&Q.strstart-Je<=Q.w_size-_&&(Q.match_length=ee(Q,Je),Q.match_length<=5&&(Q.strategy===1||Q.match_length===b&&4096<Q.strstart-Q.match_start)&&(Q.match_length=b-1)),Q.prev_length>=b&&Q.match_length<=Q.prev_length){for(G=Q.strstart+Q.lookahead-b,re=o._tr_tally(Q,Q.strstart-1-Q.prev_match,Q.prev_length-b),Q.lookahead-=Q.prev_length-1,Q.prev_length-=2;++Q.strstart<=G&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+b-1])&Q.hash_mask,Je=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart),--Q.prev_length!=0;);if(Q.match_available=0,Q.match_length=b-1,Q.strstart++,re&&(V(Q,!1),Q.strm.avail_out===0))return N}else if(Q.match_available){if((re=o._tr_tally(Q,0,Q.window[Q.strstart-1]))&&V(Q,!1),Q.strstart++,Q.lookahead--,Q.strm.avail_out===0)return N}else Q.match_available=1,Q.strstart++,Q.lookahead--}return Q.match_available&&(re=o._tr_tally(Q,0,Q.window[Q.strstart-1]),Q.match_available=0),Q.insert=Q.strstart<b-1?Q.strstart:b-1,me===s?(V(Q,!0),Q.strm.avail_out===0?B:M):Q.last_lit&&(V(Q,!1),Q.strm.avail_out===0)?N:R}function Ce(Q,me,Je,re,G){this.good_length=Q,this.max_lazy=me,this.nice_length=Je,this.max_chain=re,this.func=G}function Le(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=p,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new c.Buf16(2*C),this.dyn_dtree=new c.Buf16(2*(2*y+1)),this.bl_tree=new c.Buf16(2*(2*E+1)),K(this.dyn_ltree),K(this.dyn_dtree),K(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new c.Buf16(w+1),this.heap=new c.Buf16(2*A+1),K(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new c.Buf16(2*A+1),K(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function He(Q){var me;return Q&&Q.state?(Q.total_in=Q.total_out=0,Q.data_type=h,(me=Q.state).pending=0,me.pending_out=0,me.wrap<0&&(me.wrap=-me.wrap),me.status=me.wrap?L:D,Q.adler=me.wrap===2?0:1,me.last_flush=e,o._tr_init(me),t):H(Q,i)}function ce(Q){var me=He(Q);return me===t&&function(Je){Je.window_size=2*Je.w_size,K(Je.head),Je.max_lazy_match=f[Je.level].max_lazy,Je.good_match=f[Je.level].good_length,Je.nice_match=f[Je.level].nice_length,Je.max_chain_length=f[Je.level].max_chain,Je.strstart=0,Je.block_start=0,Je.lookahead=0,Je.insert=0,Je.match_length=Je.prev_length=b-1,Je.match_available=0,Je.ins_h=0}(Q.state),me}function Pe(Q,me,Je,re,G,X){if(!Q)return i;var J=1;if(me===l&&(me=6),re<0?(J=0,re=-re):15<re&&(J=2,re-=16),G<1||g<G||Je!==p||re<8||15<re||me<0||9<me||X<0||u<X)return H(Q,i);re===8&&(re=9);var Ae=new Le;return(Q.state=Ae).strm=Q,Ae.wrap=J,Ae.gzhead=null,Ae.w_bits=re,Ae.w_size=1<<Ae.w_bits,Ae.w_mask=Ae.w_size-1,Ae.hash_bits=G+7,Ae.hash_size=1<<Ae.hash_bits,Ae.hash_mask=Ae.hash_size-1,Ae.hash_shift=~~((Ae.hash_bits+b-1)/b),Ae.window=new c.Buf8(2*Ae.w_size),Ae.head=new c.Buf16(Ae.hash_size),Ae.prev=new c.Buf16(Ae.w_size),Ae.lit_bufsize=1<<G+6,Ae.pending_buf_size=4*Ae.lit_bufsize,Ae.pending_buf=new c.Buf8(Ae.pending_buf_size),Ae.d_buf=1*Ae.lit_bufsize,Ae.l_buf=3*Ae.lit_bufsize,Ae.level=me,Ae.strategy=X,Ae.method=Je,ce(Q)}f=[new Ce(0,0,0,0,function(Q,me){var Je=65535;for(Je>Q.pending_buf_size-5&&(Je=Q.pending_buf_size-5);;){if(Q.lookahead<=1){if(fe(Q),Q.lookahead===0&&me===e)return N;if(Q.lookahead===0)break}Q.strstart+=Q.lookahead,Q.lookahead=0;var re=Q.block_start+Je;if((Q.strstart===0||Q.strstart>=re)&&(Q.lookahead=Q.strstart-re,Q.strstart=re,V(Q,!1),Q.strm.avail_out===0))return N;if(Q.strstart-Q.block_start>=Q.w_size-_&&(V(Q,!1),Q.strm.avail_out===0))return N}return Q.insert=0,me===s?(V(Q,!0),Q.strm.avail_out===0?B:M):(Q.strstart>Q.block_start&&(V(Q,!1),Q.strm.avail_out),N)}),new Ce(4,4,8,4,ie),new Ce(4,5,16,8,ie),new Ce(4,6,32,32,ie),new Ce(4,4,16,16,we),new Ce(8,16,32,32,we),new Ce(8,16,128,128,we),new Ce(8,32,128,256,we),new Ce(32,128,258,1024,we),new Ce(32,258,258,4096,we)],m.deflateInit=function(Q,me){return Pe(Q,me,p,15,8,0)},m.deflateInit2=Pe,m.deflateReset=ce,m.deflateResetKeep=He,m.deflateSetHeader=function(Q,me){return Q&&Q.state?Q.state.wrap!==2?i:(Q.state.gzhead=me,t):i},m.deflate=function(Q,me){var Je,re,G,X;if(!Q||!Q.state||5<me||me<0)return Q?H(Q,i):i;if(re=Q.state,!Q.output||!Q.input&&Q.avail_in!==0||re.status===666&&me!==s)return H(Q,Q.avail_out===0?-5:i);if(re.strm=Q,Je=re.last_flush,re.last_flush=me,re.status===L)if(re.wrap===2)Q.adler=0,z(re,31),z(re,139),z(re,8),re.gzhead?(z(re,(re.gzhead.text?1:0)+(re.gzhead.hcrc?2:0)+(re.gzhead.extra?4:0)+(re.gzhead.name?8:0)+(re.gzhead.comment?16:0)),z(re,255&re.gzhead.time),z(re,re.gzhead.time>>8&255),z(re,re.gzhead.time>>16&255),z(re,re.gzhead.time>>24&255),z(re,re.level===9?2:2<=re.strategy||re.level<2?4:0),z(re,255&re.gzhead.os),re.gzhead.extra&&re.gzhead.extra.length&&(z(re,255&re.gzhead.extra.length),z(re,re.gzhead.extra.length>>8&255)),re.gzhead.hcrc&&(Q.adler=a(Q.adler,re.pending_buf,re.pending,0)),re.gzindex=0,re.status=69):(z(re,0),z(re,0),z(re,0),z(re,0),z(re,0),z(re,re.level===9?2:2<=re.strategy||re.level<2?4:0),z(re,3),re.status=D);else{var J=p+(re.w_bits-8<<4)<<8;J|=(2<=re.strategy||re.level<2?0:re.level<6?1:re.level===6?2:3)<<6,re.strstart!==0&&(J|=32),J+=31-J%31,re.status=D,Y(re,J),re.strstart!==0&&(Y(re,Q.adler>>>16),Y(re,65535&Q.adler)),Q.adler=1}if(re.status===69)if(re.gzhead.extra){for(G=re.pending;re.gzindex<(65535&re.gzhead.extra.length)&&(re.pending!==re.pending_buf_size||(re.gzhead.hcrc&&re.pending>G&&(Q.adler=a(Q.adler,re.pending_buf,re.pending-G,G)),j(Q),G=re.pending,re.pending!==re.pending_buf_size));)z(re,255&re.gzhead.extra[re.gzindex]),re.gzindex++;re.gzhead.hcrc&&re.pending>G&&(Q.adler=a(Q.adler,re.pending_buf,re.pending-G,G)),re.gzindex===re.gzhead.extra.length&&(re.gzindex=0,re.status=73)}else re.status=73;if(re.status===73)if(re.gzhead.name){G=re.pending;do{if(re.pending===re.pending_buf_size&&(re.gzhead.hcrc&&re.pending>G&&(Q.adler=a(Q.adler,re.pending_buf,re.pending-G,G)),j(Q),G=re.pending,re.pending===re.pending_buf_size)){X=1;break}X=re.gzindex<re.gzhead.name.length?255&re.gzhead.name.charCodeAt(re.gzindex++):0,z(re,X)}while(X!==0);re.gzhead.hcrc&&re.pending>G&&(Q.adler=a(Q.adler,re.pending_buf,re.pending-G,G)),X===0&&(re.gzindex=0,re.status=91)}else re.status=91;if(re.status===91)if(re.gzhead.comment){G=re.pending;do{if(re.pending===re.pending_buf_size&&(re.gzhead.hcrc&&re.pending>G&&(Q.adler=a(Q.adler,re.pending_buf,re.pending-G,G)),j(Q),G=re.pending,re.pending===re.pending_buf_size)){X=1;break}X=re.gzindex<re.gzhead.comment.length?255&re.gzhead.comment.charCodeAt(re.gzindex++):0,z(re,X)}while(X!==0);re.gzhead.hcrc&&re.pending>G&&(Q.adler=a(Q.adler,re.pending_buf,re.pending-G,G)),X===0&&(re.status=103)}else re.status=103;if(re.status===103&&(re.gzhead.hcrc?(re.pending+2>re.pending_buf_size&&j(Q),re.pending+2<=re.pending_buf_size&&(z(re,255&Q.adler),z(re,Q.adler>>8&255),Q.adler=0,re.status=D)):re.status=D),re.pending!==0){if(j(Q),Q.avail_out===0)return re.last_flush=-1,t}else if(Q.avail_in===0&&F(me)<=F(Je)&&me!==s)return H(Q,-5);if(re.status===666&&Q.avail_in!==0)return H(Q,-5);if(Q.avail_in!==0||re.lookahead!==0||me!==e&&re.status!==666){var Ae=re.strategy===2?function(he,Me){for(var Ie;;){if(he.lookahead===0&&(fe(he),he.lookahead===0)){if(Me===e)return N;break}if(he.match_length=0,Ie=o._tr_tally(he,0,he.window[he.strstart]),he.lookahead--,he.strstart++,Ie&&(V(he,!1),he.strm.avail_out===0))return N}return he.insert=0,Me===s?(V(he,!0),he.strm.avail_out===0?B:M):he.last_lit&&(V(he,!1),he.strm.avail_out===0)?N:R}(re,me):re.strategy===3?function(he,Me){for(var Ie,oe,pe,Oe,Ye=he.window;;){if(he.lookahead<=I){if(fe(he),he.lookahead<=I&&Me===e)return N;if(he.lookahead===0)break}if(he.match_length=0,he.lookahead>=b&&0<he.strstart&&(oe=Ye[pe=he.strstart-1])===Ye[++pe]&&oe===Ye[++pe]&&oe===Ye[++pe]){Oe=he.strstart+I;do;while(oe===Ye[++pe]&&oe===Ye[++pe]&&oe===Ye[++pe]&&oe===Ye[++pe]&&oe===Ye[++pe]&&oe===Ye[++pe]&&oe===Ye[++pe]&&oe===Ye[++pe]&&pe<Oe);he.match_length=I-(Oe-pe),he.match_length>he.lookahead&&(he.match_length=he.lookahead)}if(he.match_length>=b?(Ie=o._tr_tally(he,1,he.match_length-b),he.lookahead-=he.match_length,he.strstart+=he.match_length,he.match_length=0):(Ie=o._tr_tally(he,0,he.window[he.strstart]),he.lookahead--,he.strstart++),Ie&&(V(he,!1),he.strm.avail_out===0))return N}return he.insert=0,Me===s?(V(he,!0),he.strm.avail_out===0?B:M):he.last_lit&&(V(he,!1),he.strm.avail_out===0)?N:R}(re,me):f[re.level].func(re,me);if(Ae!==B&&Ae!==M||(re.status=666),Ae===N||Ae===B)return Q.avail_out===0&&(re.last_flush=-1),t;if(Ae===R&&(me===1?o._tr_align(re):me!==5&&(o._tr_stored_block(re,0,0,!1),me===3&&(K(re.head),re.lookahead===0&&(re.strstart=0,re.block_start=0,re.insert=0))),j(Q),Q.avail_out===0))return re.last_flush=-1,t}return me!==s?t:re.wrap<=0?1:(re.wrap===2?(z(re,255&Q.adler),z(re,Q.adler>>8&255),z(re,Q.adler>>16&255),z(re,Q.adler>>24&255),z(re,255&Q.total_in),z(re,Q.total_in>>8&255),z(re,Q.total_in>>16&255),z(re,Q.total_in>>24&255)):(Y(re,Q.adler>>>16),Y(re,65535&Q.adler)),j(Q),0<re.wrap&&(re.wrap=-re.wrap),re.pending!==0?t:1)},m.deflateEnd=function(Q){var me;return Q&&Q.state?(me=Q.state.status)!==L&&me!==69&&me!==73&&me!==91&&me!==103&&me!==D&&me!==666?H(Q,i):(Q.state=null,me===D?H(Q,-3):t):i},m.deflateSetDictionary=function(Q,me){var Je,re,G,X,J,Ae,he,Me,Ie=me.length;if(!Q||!Q.state)return i;if((X=(Je=Q.state).wrap)===2||X===1&&Je.status!==L||Je.lookahead)return i;for(X===1&&(Q.adler=r(Q.adler,me,Ie,0)),Je.wrap=0,Ie>=Je.w_size&&(X===0&&(K(Je.head),Je.strstart=0,Je.block_start=0,Je.insert=0),Me=new c.Buf8(Je.w_size),c.arraySet(Me,me,Ie-Je.w_size,Je.w_size,0),me=Me,Ie=Je.w_size),J=Q.avail_in,Ae=Q.next_in,he=Q.input,Q.avail_in=Ie,Q.next_in=0,Q.input=me,fe(Je);Je.lookahead>=b;){for(re=Je.strstart,G=Je.lookahead-(b-1);Je.ins_h=(Je.ins_h<<Je.hash_shift^Je.window[re+b-1])&Je.hash_mask,Je.prev[re&Je.w_mask]=Je.head[Je.ins_h],Je.head[Je.ins_h]=re,re++,--G;);Je.strstart=re,Je.lookahead=b-1,fe(Je)}return Je.strstart+=Je.lookahead,Je.block_start=Je.strstart,Je.insert=Je.lookahead,Je.lookahead=0,Je.match_length=Je.prev_length=b-1,Je.match_available=0,Q.next_in=Ae,Q.input=he,Q.avail_in=J,Je.wrap=X,t},m.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(v,S,m){"use strict";S.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(v,S,m){"use strict";S.exports=function(f,c){var o,r,a,n,e,s,t,i,l,u,h,p,g,A,y,E,C,w,b,I,_,L,D,N,R;o=f.state,r=f.next_in,N=f.input,a=r+(f.avail_in-5),n=f.next_out,R=f.output,e=n-(c-f.avail_out),s=n+(f.avail_out-257),t=o.dmax,i=o.wsize,l=o.whave,u=o.wnext,h=o.window,p=o.hold,g=o.bits,A=o.lencode,y=o.distcode,E=(1<<o.lenbits)-1,C=(1<<o.distbits)-1;e:do{g<15&&(p+=N[r++]<<g,g+=8,p+=N[r++]<<g,g+=8),w=A[p&E];t:for(;;){if(p>>>=b=w>>>24,g-=b,(b=w>>>16&255)===0)R[n++]=65535&w;else{if(!(16&b)){if((64&b)==0){w=A[(65535&w)+(p&(1<<b)-1)];continue t}if(32&b){o.mode=12;break e}f.msg="invalid literal/length code",o.mode=30;break e}I=65535&w,(b&=15)&&(g<b&&(p+=N[r++]<<g,g+=8),I+=p&(1<<b)-1,p>>>=b,g-=b),g<15&&(p+=N[r++]<<g,g+=8,p+=N[r++]<<g,g+=8),w=y[p&C];r:for(;;){if(p>>>=b=w>>>24,g-=b,!(16&(b=w>>>16&255))){if((64&b)==0){w=y[(65535&w)+(p&(1<<b)-1)];continue r}f.msg="invalid distance code",o.mode=30;break e}if(_=65535&w,g<(b&=15)&&(p+=N[r++]<<g,(g+=8)<b&&(p+=N[r++]<<g,g+=8)),t<(_+=p&(1<<b)-1)){f.msg="invalid distance too far back",o.mode=30;break e}if(p>>>=b,g-=b,(b=n-e)<_){if(l<(b=_-b)&&o.sane){f.msg="invalid distance too far back",o.mode=30;break e}if(D=h,(L=0)===u){if(L+=i-b,b<I){for(I-=b;R[n++]=h[L++],--b;);L=n-_,D=R}}else if(u<b){if(L+=i+u-b,(b-=u)<I){for(I-=b;R[n++]=h[L++],--b;);if(L=0,u<I){for(I-=b=u;R[n++]=h[L++],--b;);L=n-_,D=R}}}else if(L+=u-b,b<I){for(I-=b;R[n++]=h[L++],--b;);L=n-_,D=R}for(;2<I;)R[n++]=D[L++],R[n++]=D[L++],R[n++]=D[L++],I-=3;I&&(R[n++]=D[L++],1<I&&(R[n++]=D[L++]))}else{for(L=n-_;R[n++]=R[L++],R[n++]=R[L++],R[n++]=R[L++],2<(I-=3););I&&(R[n++]=R[L++],1<I&&(R[n++]=R[L++]))}break}}break}}while(r<a&&n<s);r-=I=g>>3,p&=(1<<(g-=I<<3))-1,f.next_in=r,f.next_out=n,f.avail_in=r<a?a-r+5:5-(r-a),f.avail_out=n<s?s-n+257:257-(n-s),o.hold=p,o.bits=g}},{}],49:[function(v,S,m){"use strict";var f=v("../utils/common"),c=v("./adler32"),o=v("./crc32"),r=v("./inffast"),a=v("./inftrees"),n=1,e=2,s=0,t=-2,i=1,l=852,u=592;function h(L){return(L>>>24&255)+(L>>>8&65280)+((65280&L)<<8)+((255&L)<<24)}function p(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new f.Buf16(320),this.work=new f.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function g(L){var D;return L&&L.state?(D=L.state,L.total_in=L.total_out=D.total=0,L.msg="",D.wrap&&(L.adler=1&D.wrap),D.mode=i,D.last=0,D.havedict=0,D.dmax=32768,D.head=null,D.hold=0,D.bits=0,D.lencode=D.lendyn=new f.Buf32(l),D.distcode=D.distdyn=new f.Buf32(u),D.sane=1,D.back=-1,s):t}function A(L){var D;return L&&L.state?((D=L.state).wsize=0,D.whave=0,D.wnext=0,g(L)):t}function y(L,D){var N,R;return L&&L.state?(R=L.state,D<0?(N=0,D=-D):(N=1+(D>>4),D<48&&(D&=15)),D&&(D<8||15<D)?t:(R.window!==null&&R.wbits!==D&&(R.window=null),R.wrap=N,R.wbits=D,A(L))):t}function E(L,D){var N,R;return L?(R=new p,(L.state=R).window=null,(N=y(L,D))!==s&&(L.state=null),N):t}var C,w,b=!0;function I(L){if(b){var D;for(C=new f.Buf32(512),w=new f.Buf32(32),D=0;D<144;)L.lens[D++]=8;for(;D<256;)L.lens[D++]=9;for(;D<280;)L.lens[D++]=7;for(;D<288;)L.lens[D++]=8;for(a(n,L.lens,0,288,C,0,L.work,{bits:9}),D=0;D<32;)L.lens[D++]=5;a(e,L.lens,0,32,w,0,L.work,{bits:5}),b=!1}L.lencode=C,L.lenbits=9,L.distcode=w,L.distbits=5}function _(L,D,N,R){var B,M=L.state;return M.window===null&&(M.wsize=1<<M.wbits,M.wnext=0,M.whave=0,M.window=new f.Buf8(M.wsize)),R>=M.wsize?(f.arraySet(M.window,D,N-M.wsize,M.wsize,0),M.wnext=0,M.whave=M.wsize):(R<(B=M.wsize-M.wnext)&&(B=R),f.arraySet(M.window,D,N-R,B,M.wnext),(R-=B)?(f.arraySet(M.window,D,N-R,R,0),M.wnext=R,M.whave=M.wsize):(M.wnext+=B,M.wnext===M.wsize&&(M.wnext=0),M.whave<M.wsize&&(M.whave+=B))),0}m.inflateReset=A,m.inflateReset2=y,m.inflateResetKeep=g,m.inflateInit=function(L){return E(L,15)},m.inflateInit2=E,m.inflate=function(L,D){var N,R,B,M,H,F,K,j,V,z,Y,ee,fe,ie,we,Ce,Le,He,ce,Pe,Q,me,Je,re,G=0,X=new f.Buf8(4),J=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!L||!L.state||!L.output||!L.input&&L.avail_in!==0)return t;(N=L.state).mode===12&&(N.mode=13),H=L.next_out,B=L.output,K=L.avail_out,M=L.next_in,R=L.input,F=L.avail_in,j=N.hold,V=N.bits,z=F,Y=K,me=s;e:for(;;)switch(N.mode){case i:if(N.wrap===0){N.mode=13;break}for(;V<16;){if(F===0)break e;F--,j+=R[M++]<<V,V+=8}if(2&N.wrap&&j===35615){X[N.check=0]=255&j,X[1]=j>>>8&255,N.check=o(N.check,X,2,0),V=j=0,N.mode=2;break}if(N.flags=0,N.head&&(N.head.done=!1),!(1&N.wrap)||(((255&j)<<8)+(j>>8))%31){L.msg="incorrect header check",N.mode=30;break}if((15&j)!=8){L.msg="unknown compression method",N.mode=30;break}if(V-=4,Q=8+(15&(j>>>=4)),N.wbits===0)N.wbits=Q;else if(Q>N.wbits){L.msg="invalid window size",N.mode=30;break}N.dmax=1<<Q,L.adler=N.check=1,N.mode=512&j?10:12,V=j=0;break;case 2:for(;V<16;){if(F===0)break e;F--,j+=R[M++]<<V,V+=8}if(N.flags=j,(255&N.flags)!=8){L.msg="unknown compression method",N.mode=30;break}if(57344&N.flags){L.msg="unknown header flags set",N.mode=30;break}N.head&&(N.head.text=j>>8&1),512&N.flags&&(X[0]=255&j,X[1]=j>>>8&255,N.check=o(N.check,X,2,0)),V=j=0,N.mode=3;case 3:for(;V<32;){if(F===0)break e;F--,j+=R[M++]<<V,V+=8}N.head&&(N.head.time=j),512&N.flags&&(X[0]=255&j,X[1]=j>>>8&255,X[2]=j>>>16&255,X[3]=j>>>24&255,N.check=o(N.check,X,4,0)),V=j=0,N.mode=4;case 4:for(;V<16;){if(F===0)break e;F--,j+=R[M++]<<V,V+=8}N.head&&(N.head.xflags=255&j,N.head.os=j>>8),512&N.flags&&(X[0]=255&j,X[1]=j>>>8&255,N.check=o(N.check,X,2,0)),V=j=0,N.mode=5;case 5:if(1024&N.flags){for(;V<16;){if(F===0)break e;F--,j+=R[M++]<<V,V+=8}N.length=j,N.head&&(N.head.extra_len=j),512&N.flags&&(X[0]=255&j,X[1]=j>>>8&255,N.check=o(N.check,X,2,0)),V=j=0}else N.head&&(N.head.extra=null);N.mode=6;case 6:if(1024&N.flags&&(F<(ee=N.length)&&(ee=F),ee&&(N.head&&(Q=N.head.extra_len-N.length,N.head.extra||(N.head.extra=new Array(N.head.extra_len)),f.arraySet(N.head.extra,R,M,ee,Q)),512&N.flags&&(N.check=o(N.check,R,ee,M)),F-=ee,M+=ee,N.length-=ee),N.length))break e;N.length=0,N.mode=7;case 7:if(2048&N.flags){if(F===0)break e;for(ee=0;Q=R[M+ee++],N.head&&Q&&N.length<65536&&(N.head.name+=String.fromCharCode(Q)),Q&&ee<F;);if(512&N.flags&&(N.check=o(N.check,R,ee,M)),F-=ee,M+=ee,Q)break e}else N.head&&(N.head.name=null);N.length=0,N.mode=8;case 8:if(4096&N.flags){if(F===0)break e;for(ee=0;Q=R[M+ee++],N.head&&Q&&N.length<65536&&(N.head.comment+=String.fromCharCode(Q)),Q&&ee<F;);if(512&N.flags&&(N.check=o(N.check,R,ee,M)),F-=ee,M+=ee,Q)break e}else N.head&&(N.head.comment=null);N.mode=9;case 9:if(512&N.flags){for(;V<16;){if(F===0)break e;F--,j+=R[M++]<<V,V+=8}if(j!==(65535&N.check)){L.msg="header crc mismatch",N.mode=30;break}V=j=0}N.head&&(N.head.hcrc=N.flags>>9&1,N.head.done=!0),L.adler=N.check=0,N.mode=12;break;case 10:for(;V<32;){if(F===0)break e;F--,j+=R[M++]<<V,V+=8}L.adler=N.check=h(j),V=j=0,N.mode=11;case 11:if(N.havedict===0)return L.next_out=H,L.avail_out=K,L.next_in=M,L.avail_in=F,N.hold=j,N.bits=V,2;L.adler=N.check=1,N.mode=12;case 12:if(D===5||D===6)break e;case 13:if(N.last){j>>>=7&V,V-=7&V,N.mode=27;break}for(;V<3;){if(F===0)break e;F--,j+=R[M++]<<V,V+=8}switch(N.last=1&j,V-=1,3&(j>>>=1)){case 0:N.mode=14;break;case 1:if(I(N),N.mode=20,D!==6)break;j>>>=2,V-=2;break e;case 2:N.mode=17;break;case 3:L.msg="invalid block type",N.mode=30}j>>>=2,V-=2;break;case 14:for(j>>>=7&V,V-=7&V;V<32;){if(F===0)break e;F--,j+=R[M++]<<V,V+=8}if((65535&j)!=(j>>>16^65535)){L.msg="invalid stored block lengths",N.mode=30;break}if(N.length=65535&j,V=j=0,N.mode=15,D===6)break e;case 15:N.mode=16;case 16:if(ee=N.length){if(F<ee&&(ee=F),K<ee&&(ee=K),ee===0)break e;f.arraySet(B,R,M,ee,H),F-=ee,M+=ee,K-=ee,H+=ee,N.length-=ee;break}N.mode=12;break;case 17:for(;V<14;){if(F===0)break e;F--,j+=R[M++]<<V,V+=8}if(N.nlen=257+(31&j),j>>>=5,V-=5,N.ndist=1+(31&j),j>>>=5,V-=5,N.ncode=4+(15&j),j>>>=4,V-=4,286<N.nlen||30<N.ndist){L.msg="too many length or distance symbols",N.mode=30;break}N.have=0,N.mode=18;case 18:for(;N.have<N.ncode;){for(;V<3;){if(F===0)break e;F--,j+=R[M++]<<V,V+=8}N.lens[J[N.have++]]=7&j,j>>>=3,V-=3}for(;N.have<19;)N.lens[J[N.have++]]=0;if(N.lencode=N.lendyn,N.lenbits=7,Je={bits:N.lenbits},me=a(0,N.lens,0,19,N.lencode,0,N.work,Je),N.lenbits=Je.bits,me){L.msg="invalid code lengths set",N.mode=30;break}N.have=0,N.mode=19;case 19:for(;N.have<N.nlen+N.ndist;){for(;Ce=(G=N.lencode[j&(1<<N.lenbits)-1])>>>16&255,Le=65535&G,!((we=G>>>24)<=V);){if(F===0)break e;F--,j+=R[M++]<<V,V+=8}if(Le<16)j>>>=we,V-=we,N.lens[N.have++]=Le;else{if(Le===16){for(re=we+2;V<re;){if(F===0)break e;F--,j+=R[M++]<<V,V+=8}if(j>>>=we,V-=we,N.have===0){L.msg="invalid bit length repeat",N.mode=30;break}Q=N.lens[N.have-1],ee=3+(3&j),j>>>=2,V-=2}else if(Le===17){for(re=we+3;V<re;){if(F===0)break e;F--,j+=R[M++]<<V,V+=8}V-=we,Q=0,ee=3+(7&(j>>>=we)),j>>>=3,V-=3}else{for(re=we+7;V<re;){if(F===0)break e;F--,j+=R[M++]<<V,V+=8}V-=we,Q=0,ee=11+(127&(j>>>=we)),j>>>=7,V-=7}if(N.have+ee>N.nlen+N.ndist){L.msg="invalid bit length repeat",N.mode=30;break}for(;ee--;)N.lens[N.have++]=Q}}if(N.mode===30)break;if(N.lens[256]===0){L.msg="invalid code -- missing end-of-block",N.mode=30;break}if(N.lenbits=9,Je={bits:N.lenbits},me=a(n,N.lens,0,N.nlen,N.lencode,0,N.work,Je),N.lenbits=Je.bits,me){L.msg="invalid literal/lengths set",N.mode=30;break}if(N.distbits=6,N.distcode=N.distdyn,Je={bits:N.distbits},me=a(e,N.lens,N.nlen,N.ndist,N.distcode,0,N.work,Je),N.distbits=Je.bits,me){L.msg="invalid distances set",N.mode=30;break}if(N.mode=20,D===6)break e;case 20:N.mode=21;case 21:if(6<=F&&258<=K){L.next_out=H,L.avail_out=K,L.next_in=M,L.avail_in=F,N.hold=j,N.bits=V,r(L,Y),H=L.next_out,B=L.output,K=L.avail_out,M=L.next_in,R=L.input,F=L.avail_in,j=N.hold,V=N.bits,N.mode===12&&(N.back=-1);break}for(N.back=0;Ce=(G=N.lencode[j&(1<<N.lenbits)-1])>>>16&255,Le=65535&G,!((we=G>>>24)<=V);){if(F===0)break e;F--,j+=R[M++]<<V,V+=8}if(Ce&&(240&Ce)==0){for(He=we,ce=Ce,Pe=Le;Ce=(G=N.lencode[Pe+((j&(1<<He+ce)-1)>>He)])>>>16&255,Le=65535&G,!(He+(we=G>>>24)<=V);){if(F===0)break e;F--,j+=R[M++]<<V,V+=8}j>>>=He,V-=He,N.back+=He}if(j>>>=we,V-=we,N.back+=we,N.length=Le,Ce===0){N.mode=26;break}if(32&Ce){N.back=-1,N.mode=12;break}if(64&Ce){L.msg="invalid literal/length code",N.mode=30;break}N.extra=15&Ce,N.mode=22;case 22:if(N.extra){for(re=N.extra;V<re;){if(F===0)break e;F--,j+=R[M++]<<V,V+=8}N.length+=j&(1<<N.extra)-1,j>>>=N.extra,V-=N.extra,N.back+=N.extra}N.was=N.length,N.mode=23;case 23:for(;Ce=(G=N.distcode[j&(1<<N.distbits)-1])>>>16&255,Le=65535&G,!((we=G>>>24)<=V);){if(F===0)break e;F--,j+=R[M++]<<V,V+=8}if((240&Ce)==0){for(He=we,ce=Ce,Pe=Le;Ce=(G=N.distcode[Pe+((j&(1<<He+ce)-1)>>He)])>>>16&255,Le=65535&G,!(He+(we=G>>>24)<=V);){if(F===0)break e;F--,j+=R[M++]<<V,V+=8}j>>>=He,V-=He,N.back+=He}if(j>>>=we,V-=we,N.back+=we,64&Ce){L.msg="invalid distance code",N.mode=30;break}N.offset=Le,N.extra=15&Ce,N.mode=24;case 24:if(N.extra){for(re=N.extra;V<re;){if(F===0)break e;F--,j+=R[M++]<<V,V+=8}N.offset+=j&(1<<N.extra)-1,j>>>=N.extra,V-=N.extra,N.back+=N.extra}if(N.offset>N.dmax){L.msg="invalid distance too far back",N.mode=30;break}N.mode=25;case 25:if(K===0)break e;if(ee=Y-K,N.offset>ee){if((ee=N.offset-ee)>N.whave&&N.sane){L.msg="invalid distance too far back",N.mode=30;break}fe=ee>N.wnext?(ee-=N.wnext,N.wsize-ee):N.wnext-ee,ee>N.length&&(ee=N.length),ie=N.window}else ie=B,fe=H-N.offset,ee=N.length;for(K<ee&&(ee=K),K-=ee,N.length-=ee;B[H++]=ie[fe++],--ee;);N.length===0&&(N.mode=21);break;case 26:if(K===0)break e;B[H++]=N.length,K--,N.mode=21;break;case 27:if(N.wrap){for(;V<32;){if(F===0)break e;F--,j|=R[M++]<<V,V+=8}if(Y-=K,L.total_out+=Y,N.total+=Y,Y&&(L.adler=N.check=N.flags?o(N.check,B,Y,H-Y):c(N.check,B,Y,H-Y)),Y=K,(N.flags?j:h(j))!==N.check){L.msg="incorrect data check",N.mode=30;break}V=j=0}N.mode=28;case 28:if(N.wrap&&N.flags){for(;V<32;){if(F===0)break e;F--,j+=R[M++]<<V,V+=8}if(j!==(4294967295&N.total)){L.msg="incorrect length check",N.mode=30;break}V=j=0}N.mode=29;case 29:me=1;break e;case 30:me=-3;break e;case 31:return-4;case 32:default:return t}return L.next_out=H,L.avail_out=K,L.next_in=M,L.avail_in=F,N.hold=j,N.bits=V,(N.wsize||Y!==L.avail_out&&N.mode<30&&(N.mode<27||D!==4))&&_(L,L.output,L.next_out,Y-L.avail_out)?(N.mode=31,-4):(z-=L.avail_in,Y-=L.avail_out,L.total_in+=z,L.total_out+=Y,N.total+=Y,N.wrap&&Y&&(L.adler=N.check=N.flags?o(N.check,B,Y,L.next_out-Y):c(N.check,B,Y,L.next_out-Y)),L.data_type=N.bits+(N.last?64:0)+(N.mode===12?128:0)+(N.mode===20||N.mode===15?256:0),(z==0&&Y===0||D===4)&&me===s&&(me=-5),me)},m.inflateEnd=function(L){if(!L||!L.state)return t;var D=L.state;return D.window&&(D.window=null),L.state=null,s},m.inflateGetHeader=function(L,D){var N;return L&&L.state?(2&(N=L.state).wrap)==0?t:((N.head=D).done=!1,s):t},m.inflateSetDictionary=function(L,D){var N,R=D.length;return L&&L.state?(N=L.state).wrap!==0&&N.mode!==11?t:N.mode===11&&c(1,D,R,0)!==N.check?-3:_(L,D,R,R)?(N.mode=31,-4):(N.havedict=1,s):t},m.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(v,S,m){"use strict";var f=v("../utils/common"),c=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],r=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];S.exports=function(n,e,s,t,i,l,u,h){var p,g,A,y,E,C,w,b,I,_=h.bits,L=0,D=0,N=0,R=0,B=0,M=0,H=0,F=0,K=0,j=0,V=null,z=0,Y=new f.Buf16(16),ee=new f.Buf16(16),fe=null,ie=0;for(L=0;L<=15;L++)Y[L]=0;for(D=0;D<t;D++)Y[e[s+D]]++;for(B=_,R=15;1<=R&&Y[R]===0;R--);if(R<B&&(B=R),R===0)return i[l++]=20971520,i[l++]=20971520,h.bits=1,0;for(N=1;N<R&&Y[N]===0;N++);for(B<N&&(B=N),L=F=1;L<=15;L++)if(F<<=1,(F-=Y[L])<0)return-1;if(0<F&&(n===0||R!==1))return-1;for(ee[1]=0,L=1;L<15;L++)ee[L+1]=ee[L]+Y[L];for(D=0;D<t;D++)e[s+D]!==0&&(u[ee[e[s+D]]++]=D);if(C=n===0?(V=fe=u,19):n===1?(V=c,z-=257,fe=o,ie-=257,256):(V=r,fe=a,-1),L=N,E=l,H=D=j=0,A=-1,y=(K=1<<(M=B))-1,n===1&&852<K||n===2&&592<K)return 1;for(;;){for(w=L-H,I=u[D]<C?(b=0,u[D]):u[D]>C?(b=fe[ie+u[D]],V[z+u[D]]):(b=96,0),p=1<<L-H,N=g=1<<M;i[E+(j>>H)+(g-=p)]=w<<24|b<<16|I|0,g!==0;);for(p=1<<L-1;j&p;)p>>=1;if(p!==0?(j&=p-1,j+=p):j=0,D++,--Y[L]==0){if(L===R)break;L=e[s+u[D]]}if(B<L&&(j&y)!==A){for(H===0&&(H=B),E+=N,F=1<<(M=L-H);M+H<R&&!((F-=Y[M+H])<=0);)M++,F<<=1;if(K+=1<<M,n===1&&852<K||n===2&&592<K)return 1;i[A=j&y]=B<<24|M<<16|E-l|0}}return j!==0&&(i[E+j]=L-H<<24|64<<16|0),h.bits=B,0}},{"../utils/common":41}],51:[function(v,S,m){"use strict";S.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(v,S,m){"use strict";var f=v("../utils/common"),c=0,o=1;function r(G){for(var X=G.length;0<=--X;)G[X]=0}var a=0,n=29,e=256,s=e+1+n,t=30,i=19,l=2*s+1,u=15,h=16,p=7,g=256,A=16,y=17,E=18,C=[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],w=[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],b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_=new Array(2*(s+2));r(_);var L=new Array(2*t);r(L);var D=new Array(512);r(D);var N=new Array(256);r(N);var R=new Array(n);r(R);var B,M,H,F=new Array(t);function K(G,X,J,Ae,he){this.static_tree=G,this.extra_bits=X,this.extra_base=J,this.elems=Ae,this.max_length=he,this.has_stree=G&&G.length}function j(G,X){this.dyn_tree=G,this.max_code=0,this.stat_desc=X}function V(G){return G<256?D[G]:D[256+(G>>>7)]}function z(G,X){G.pending_buf[G.pending++]=255&X,G.pending_buf[G.pending++]=X>>>8&255}function Y(G,X,J){G.bi_valid>h-J?(G.bi_buf|=X<<G.bi_valid&65535,z(G,G.bi_buf),G.bi_buf=X>>h-G.bi_valid,G.bi_valid+=J-h):(G.bi_buf|=X<<G.bi_valid&65535,G.bi_valid+=J)}function ee(G,X,J){Y(G,J[2*X],J[2*X+1])}function fe(G,X){for(var J=0;J|=1&G,G>>>=1,J<<=1,0<--X;);return J>>>1}function ie(G,X,J){var Ae,he,Me=new Array(u+1),Ie=0;for(Ae=1;Ae<=u;Ae++)Me[Ae]=Ie=Ie+J[Ae-1]<<1;for(he=0;he<=X;he++){var oe=G[2*he+1];oe!==0&&(G[2*he]=fe(Me[oe]++,oe))}}function we(G){var X;for(X=0;X<s;X++)G.dyn_ltree[2*X]=0;for(X=0;X<t;X++)G.dyn_dtree[2*X]=0;for(X=0;X<i;X++)G.bl_tree[2*X]=0;G.dyn_ltree[2*g]=1,G.opt_len=G.static_len=0,G.last_lit=G.matches=0}function Ce(G){8<G.bi_valid?z(G,G.bi_buf):0<G.bi_valid&&(G.pending_buf[G.pending++]=G.bi_buf),G.bi_buf=0,G.bi_valid=0}function Le(G,X,J,Ae){var he=2*X,Me=2*J;return G[he]<G[Me]||G[he]===G[Me]&&Ae[X]<=Ae[J]}function He(G,X,J){for(var Ae=G.heap[J],he=J<<1;he<=G.heap_len&&(he<G.heap_len&&Le(X,G.heap[he+1],G.heap[he],G.depth)&&he++,!Le(X,Ae,G.heap[he],G.depth));)G.heap[J]=G.heap[he],J=he,he<<=1;G.heap[J]=Ae}function ce(G,X,J){var Ae,he,Me,Ie,oe=0;if(G.last_lit!==0)for(;Ae=G.pending_buf[G.d_buf+2*oe]<<8|G.pending_buf[G.d_buf+2*oe+1],he=G.pending_buf[G.l_buf+oe],oe++,Ae===0?ee(G,he,X):(ee(G,(Me=N[he])+e+1,X),(Ie=C[Me])!==0&&Y(G,he-=R[Me],Ie),ee(G,Me=V(--Ae),J),(Ie=w[Me])!==0&&Y(G,Ae-=F[Me],Ie)),oe<G.last_lit;);ee(G,g,X)}function Pe(G,X){var J,Ae,he,Me=X.dyn_tree,Ie=X.stat_desc.static_tree,oe=X.stat_desc.has_stree,pe=X.stat_desc.elems,Oe=-1;for(G.heap_len=0,G.heap_max=l,J=0;J<pe;J++)Me[2*J]!==0?(G.heap[++G.heap_len]=Oe=J,G.depth[J]=0):Me[2*J+1]=0;for(;G.heap_len<2;)Me[2*(he=G.heap[++G.heap_len]=Oe<2?++Oe:0)]=1,G.depth[he]=0,G.opt_len--,oe&&(G.static_len-=Ie[2*he+1]);for(X.max_code=Oe,J=G.heap_len>>1;1<=J;J--)He(G,Me,J);for(he=pe;J=G.heap[1],G.heap[1]=G.heap[G.heap_len--],He(G,Me,1),Ae=G.heap[1],G.heap[--G.heap_max]=J,G.heap[--G.heap_max]=Ae,Me[2*he]=Me[2*J]+Me[2*Ae],G.depth[he]=(G.depth[J]>=G.depth[Ae]?G.depth[J]:G.depth[Ae])+1,Me[2*J+1]=Me[2*Ae+1]=he,G.heap[1]=he++,He(G,Me,1),2<=G.heap_len;);G.heap[--G.heap_max]=G.heap[1],function(Ye,it){var et,Te,tt,ze,dt,Ot,Tt=it.dyn_tree,Ct=it.max_code,Nt=it.stat_desc.static_tree,Be=it.stat_desc.has_stree,$=it.stat_desc.extra_bits,Z=it.stat_desc.extra_base,Re=it.stat_desc.max_length,De=0;for(ze=0;ze<=u;ze++)Ye.bl_count[ze]=0;for(Tt[2*Ye.heap[Ye.heap_max]+1]=0,et=Ye.heap_max+1;et<l;et++)Re<(ze=Tt[2*Tt[2*(Te=Ye.heap[et])+1]+1]+1)&&(ze=Re,De++),Tt[2*Te+1]=ze,Ct<Te||(Ye.bl_count[ze]++,dt=0,Z<=Te&&(dt=$[Te-Z]),Ot=Tt[2*Te],Ye.opt_len+=Ot*(ze+dt),Be&&(Ye.static_len+=Ot*(Nt[2*Te+1]+dt)));if(De!==0){do{for(ze=Re-1;Ye.bl_count[ze]===0;)ze--;Ye.bl_count[ze]--,Ye.bl_count[ze+1]+=2,Ye.bl_count[Re]--,De-=2}while(0<De);for(ze=Re;ze!==0;ze--)for(Te=Ye.bl_count[ze];Te!==0;)Ct<(tt=Ye.heap[--et])||(Tt[2*tt+1]!==ze&&(Ye.opt_len+=(ze-Tt[2*tt+1])*Tt[2*tt],Tt[2*tt+1]=ze),Te--)}}(G,X),ie(Me,Oe,G.bl_count)}function Q(G,X,J){var Ae,he,Me=-1,Ie=X[1],oe=0,pe=7,Oe=4;for(Ie===0&&(pe=138,Oe=3),X[2*(J+1)+1]=65535,Ae=0;Ae<=J;Ae++)he=Ie,Ie=X[2*(Ae+1)+1],++oe<pe&&he===Ie||(oe<Oe?G.bl_tree[2*he]+=oe:he!==0?(he!==Me&&G.bl_tree[2*he]++,G.bl_tree[2*A]++):oe<=10?G.bl_tree[2*y]++:G.bl_tree[2*E]++,Me=he,Oe=(oe=0)===Ie?(pe=138,3):he===Ie?(pe=6,3):(pe=7,4))}function me(G,X,J){var Ae,he,Me=-1,Ie=X[1],oe=0,pe=7,Oe=4;for(Ie===0&&(pe=138,Oe=3),Ae=0;Ae<=J;Ae++)if(he=Ie,Ie=X[2*(Ae+1)+1],!(++oe<pe&&he===Ie)){if(oe<Oe)for(;ee(G,he,G.bl_tree),--oe!=0;);else he!==0?(he!==Me&&(ee(G,he,G.bl_tree),oe--),ee(G,A,G.bl_tree),Y(G,oe-3,2)):oe<=10?(ee(G,y,G.bl_tree),Y(G,oe-3,3)):(ee(G,E,G.bl_tree),Y(G,oe-11,7));Me=he,Oe=(oe=0)===Ie?(pe=138,3):he===Ie?(pe=6,3):(pe=7,4)}}r(F);var Je=!1;function re(G,X,J,Ae){Y(G,(a<<1)+(Ae?1:0),3),function(he,Me,Ie,oe){Ce(he),oe&&(z(he,Ie),z(he,~Ie)),f.arraySet(he.pending_buf,he.window,Me,Ie,he.pending),he.pending+=Ie}(G,X,J,!0)}m._tr_init=function(G){Je||(function(){var X,J,Ae,he,Me,Ie=new Array(u+1);for(he=Ae=0;he<n-1;he++)for(R[he]=Ae,X=0;X<1<<C[he];X++)N[Ae++]=he;for(N[Ae-1]=he,he=Me=0;he<16;he++)for(F[he]=Me,X=0;X<1<<w[he];X++)D[Me++]=he;for(Me>>=7;he<t;he++)for(F[he]=Me<<7,X=0;X<1<<w[he]-7;X++)D[256+Me++]=he;for(J=0;J<=u;J++)Ie[J]=0;for(X=0;X<=143;)_[2*X+1]=8,X++,Ie[8]++;for(;X<=255;)_[2*X+1]=9,X++,Ie[9]++;for(;X<=279;)_[2*X+1]=7,X++,Ie[7]++;for(;X<=287;)_[2*X+1]=8,X++,Ie[8]++;for(ie(_,s+1,Ie),X=0;X<t;X++)L[2*X+1]=5,L[2*X]=fe(X,5);B=new K(_,C,e+1,s,u),M=new K(L,w,0,t,u),H=new K(new Array(0),b,0,i,p)}(),Je=!0),G.l_desc=new j(G.dyn_ltree,B),G.d_desc=new j(G.dyn_dtree,M),G.bl_desc=new j(G.bl_tree,H),G.bi_buf=0,G.bi_valid=0,we(G)},m._tr_stored_block=re,m._tr_flush_block=function(G,X,J,Ae){var he,Me,Ie=0;0<G.level?(G.strm.data_type===2&&(G.strm.data_type=function(oe){var pe,Oe=4093624447;for(pe=0;pe<=31;pe++,Oe>>>=1)if(1&Oe&&oe.dyn_ltree[2*pe]!==0)return c;if(oe.dyn_ltree[18]!==0||oe.dyn_ltree[20]!==0||oe.dyn_ltree[26]!==0)return o;for(pe=32;pe<e;pe++)if(oe.dyn_ltree[2*pe]!==0)return o;return c}(G)),Pe(G,G.l_desc),Pe(G,G.d_desc),Ie=function(oe){var pe;for(Q(oe,oe.dyn_ltree,oe.l_desc.max_code),Q(oe,oe.dyn_dtree,oe.d_desc.max_code),Pe(oe,oe.bl_desc),pe=i-1;3<=pe&&oe.bl_tree[2*I[pe]+1]===0;pe--);return oe.opt_len+=3*(pe+1)+5+5+4,pe}(G),he=G.opt_len+3+7>>>3,(Me=G.static_len+3+7>>>3)<=he&&(he=Me)):he=Me=J+5,J+4<=he&&X!==-1?re(G,X,J,Ae):G.strategy===4||Me===he?(Y(G,2+(Ae?1:0),3),ce(G,_,L)):(Y(G,4+(Ae?1:0),3),function(oe,pe,Oe,Ye){var it;for(Y(oe,pe-257,5),Y(oe,Oe-1,5),Y(oe,Ye-4,4),it=0;it<Ye;it++)Y(oe,oe.bl_tree[2*I[it]+1],3);me(oe,oe.dyn_ltree,pe-1),me(oe,oe.dyn_dtree,Oe-1)}(G,G.l_desc.max_code+1,G.d_desc.max_code+1,Ie+1),ce(G,G.dyn_ltree,G.dyn_dtree)),we(G),Ae&&Ce(G)},m._tr_tally=function(G,X,J){return G.pending_buf[G.d_buf+2*G.last_lit]=X>>>8&255,G.pending_buf[G.d_buf+2*G.last_lit+1]=255&X,G.pending_buf[G.l_buf+G.last_lit]=255&J,G.last_lit++,X===0?G.dyn_ltree[2*J]++:(G.matches++,X--,G.dyn_ltree[2*(N[J]+e+1)]++,G.dyn_dtree[2*V(X)]++),G.last_lit===G.lit_bufsize-1},m._tr_align=function(G){Y(G,2,3),ee(G,g,_),function(X){X.bi_valid===16?(z(X,X.bi_buf),X.bi_buf=0,X.bi_valid=0):8<=X.bi_valid&&(X.pending_buf[X.pending++]=255&X.bi_buf,X.bi_buf>>=8,X.bi_valid-=8)}(G)}},{"../utils/common":41}],53:[function(v,S,m){"use strict";S.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(v,S,m){"use strict";S.exports=typeof setImmediate=="function"?setImmediate:function(){var f=[].slice.apply(arguments);f.splice(1,0,0),setTimeout.apply(null,f)}},{}]},{},[10])(10)})}).call(this,d("HDXh").Buffer,d("yLpj"))},xRUu:function(U,P,d){d("hJvP"),d("hFmY"),d("sAZ8")},xSIq:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var O={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};P.default=O},xSat:function(U,P){var d={axisPointer:1,tooltip:1,brush:1};function O(x,T,v){var S=T.getComponentByElement(x.topTarget),m=S&&S.coordinateSystem;return S&&S!==v&&!d[S.mainType]&&m&&m.model!==v}P.onIrrelevantElement=O},xTNl:function(U,P){var d=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],O={color:d,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],d]};U.exports=O},xb2K:function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("5yev")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="RedoOutlined";var c=v.forwardRef(f);P.default=c},xiyX:function(U,P,d){var O=d("bYtY"),x=d("bLfw"),T=d("nkfE"),v=d("ICMv"),S=x.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),m={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};function f(o,r){return r.type||(r.data?"category":"value")}O.merge(S.prototype,v),T("single",S,f,m);var c=S;U.exports=c},xlC8:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.default=O;function O(x,T,v,S){for(var m=x&65535|0,f=x>>>16&65535|0,c=0;v!==0;){c=v>2e3?2e3:v,v-=c;do m=m+T[S++]|0,f=f+m|0;while(--c);m%=65521,f%=65521}return m|f<<16|0}},xvlK:function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="PlusOutlined";var f=P.a=x.forwardRef(m)},xzDV:function(U,P,d){},"y+Vt":function(U,P,d){var O=d("Gev7"),x=d("bYtY"),T=d("IMiH"),v=d("2DNl"),S=d("3C/r"),m=S.prototype.getCanvasPattern,f=Math.abs,c=new T(!0);function o(a){O.call(this,a),this.path=null}o.prototype={constructor:o,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(n,e){var s=this.style,t=this.path||c,i=s.hasStroke(),l=s.hasFill(),u=s.fill,h=s.stroke,p=l&&!!u.colorStops,g=i&&!!h.colorStops,A=l&&!!u.image,y=i&&!!h.image;if(s.bind(n,this,e),this.setTransform(n),this.__dirty){var E;p&&(E=E||this.getBoundingRect(),this._fillGradient=s.getGradient(n,u,E)),g&&(E=E||this.getBoundingRect(),this._strokeGradient=s.getGradient(n,h,E))}p?n.fillStyle=this._fillGradient:A&&(n.fillStyle=m.call(u,n)),g?n.strokeStyle=this._strokeGradient:y&&(n.strokeStyle=m.call(h,n));var C=s.lineDash,w=s.lineDashOffset,b=!!n.setLineDash,I=this.getGlobalScale();if(t.setScale(I[0],I[1],this.segmentIgnoreThreshold),this.__dirtyPath||C&&!b&&i?(t.beginPath(n),C&&!b&&(t.setLineDash(C),t.setLineDashOffset(w)),this.buildPath(t,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(n.beginPath(),this.path.rebuildPath(n)),l)if(s.fillOpacity!=null){var _=n.globalAlpha;n.globalAlpha=s.fillOpacity*s.opacity,t.fill(n),n.globalAlpha=_}else t.fill(n);if(C&&b&&(n.setLineDash(C),n.lineDashOffset=w),i)if(s.strokeOpacity!=null){var _=n.globalAlpha;n.globalAlpha=s.strokeOpacity*s.opacity,t.stroke(n),n.globalAlpha=_}else t.stroke(n);C&&b&&n.setLineDash([]),s.text!=null&&(this.restoreTransform(n),this.drawRectText(n,this.getBoundingRect()))},buildPath:function(n,e,s){},createPathProxy:function(){this.path=new T},getBoundingRect:function(){var n=this._rect,e=this.style,s=!n;if(s){var t=this.path;t||(t=this.path=new T),this.__dirtyPath&&(t.beginPath(),this.buildPath(t,this.shape,!1)),n=t.getBoundingRect()}if(this._rect=n,e.hasStroke()){var i=this._rectWithStroke||(this._rectWithStroke=n.clone());if(this.__dirty||s){i.copy(n);var l=e.lineWidth,u=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(l=Math.max(l,this.strokeContainThreshold||4)),u>1e-10&&(i.width+=l/u,i.height+=l/u,i.x-=l/u/2,i.y-=l/u/2)}return i}return n},contain:function(n,e){var s=this.transformCoordToLocal(n,e),t=this.getBoundingRect(),i=this.style;if(n=s[0],e=s[1],t.contain(n,e)){var l=this.path.data;if(i.hasStroke()){var u=i.lineWidth,h=i.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(i.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),v.containStroke(l,u/h,n,e)))return!0}if(i.hasFill())return v.contain(l,n,e)}return!1},dirty:function(n){n==null&&(n=!0),n&&(this.__dirtyPath=n,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(n){return this.animate("shape",n)},attrKV:function(n,e){n==="shape"?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):O.prototype.attrKV.call(this,n,e)},setShape:function(n,e){var s=this.shape;if(s){if(x.isObject(n))for(var t in n)n.hasOwnProperty(t)&&(s[t]=n[t]);else s[n]=e;this.dirty(!0)}return this},getLineScale:function(){var n=this.transform;return n&&f(n[0]-1)>1e-10&&f(n[3]-1)>1e-10?Math.sqrt(f(n[0]*n[3]-n[2]*n[1])):1}},o.extend=function(a){var n=function(t){o.call(this,t),a.style&&this.style.extendFrom(a.style,!1);var i=a.shape;if(i){this.shape=this.shape||{};var l=this.shape;for(var u in i)!l.hasOwnProperty(u)&&i.hasOwnProperty(u)&&(l[u]=i[u])}a.init&&a.init.call(this,t)};x.inherits(n,o);for(var e in a)e!=="style"&&e!=="shape"&&(n.prototype[e]=a[e]);return n},x.inherits(o,O);var r=o;U.exports=r},"y+lR":function(U,P,d){var O=d("bYtY"),x=d("mFDi"),T=d("z35g");function v(m){T.call(this,m)}v.prototype={constructor:v,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(m){var f=this.getAxis("x"),c=this.getAxis("y");return f.contain(f.toLocalCoord(m[0]))&&c.contain(c.toLocalCoord(m[1]))},containData:function(m){return this.getAxis("x").containData(m[0])&&this.getAxis("y").containData(m[1])},dataToPoint:function(m,f,c){var o=this.getAxis("x"),r=this.getAxis("y");return c=c||[],c[0]=o.toGlobalCoord(o.dataToCoord(m[0])),c[1]=r.toGlobalCoord(r.dataToCoord(m[1])),c},clampData:function(m,f){var c=this.getAxis("x").scale,o=this.getAxis("y").scale,r=c.getExtent(),a=o.getExtent(),n=c.parse(m[0]),e=o.parse(m[1]);return f=f||[],f[0]=Math.min(Math.max(Math.min(r[0],r[1]),n),Math.max(r[0],r[1])),f[1]=Math.min(Math.max(Math.min(a[0],a[1]),e),Math.max(a[0],a[1])),f},pointToData:function(m,f){var c=this.getAxis("x"),o=this.getAxis("y");return f=f||[],f[0]=c.coordToData(c.toLocalCoord(m[0])),f[1]=o.coordToData(o.toLocalCoord(m[1])),f},getOtherAxis:function(m){return this.getAxis(m.dim==="x"?"y":"x")},getArea:function(){var m=this.getAxis("x").getGlobalExtent(),f=this.getAxis("y").getGlobalExtent(),c=Math.min(m[0],m[1]),o=Math.min(f[0],f[1]),r=Math.max(m[0],m[1])-c,a=Math.max(f[0],f[1])-o,n=new x(c,o,r,a);return n}},O.inherits(v,T);var S=v;U.exports=S},"y0+3":function(U,P,d){"use strict";d.d(P,"a",function(){return a}),d.d(P,"b",function(){return e});var O=/margin|padding|width|height|max|min|offset/,x={left:!0,top:!0},T={cssFloat:1,styleFloat:1,float:1};function v(s){return s.nodeType===1?s.ownerDocument.defaultView.getComputedStyle(s,null):{}}function S(s,t,i){if(t=t.toLowerCase(),i==="auto"){if(t==="height")return s.offsetHeight;if(t==="width")return s.offsetWidth}return t in x||(x[t]=O.test(t)),x[t]?parseFloat(i)||0:i}function m(s,t){var i=arguments.length,l=v(s);return t=T[t]?"cssFloat"in s.style?"cssFloat":"styleFloat":t,i===1?l:S(s,t,l[t]||s.style[t])}function f(s,t,i){var l=arguments.length;if(t=T[t]?"cssFloat"in s.style?"cssFloat":"styleFloat":t,l===3)return typeof i=="number"&&O.test(t)&&(i="".concat(i,"px")),s.style[t]=i,i;for(var u in t)t.hasOwnProperty(u)&&f(s,u,t[u]);return v(s)}function c(s){return s===document.body?document.documentElement.clientWidth:s.offsetWidth}function o(s){return s===document.body?window.innerHeight||document.documentElement.clientHeight:s.offsetHeight}function r(){var s=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),t=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:s,height:t}}function a(){var s=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:s,height:t}}function n(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function e(s){var t=s.getBoundingClientRect(),i=document.documentElement;return{left:t.left+(window.pageXOffset||i.scrollLeft)-(i.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||i.scrollTop)-(i.clientTop||document.body.clientTop||0)}}},y23F:function(U,P){function d(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}d.prototype={constructor:d,_dragStart:function(v){for(var S=v.target;S&&!S.draggable;)S=S.parent;S&&(this._draggingTarget=S,S.dragging=!0,this._x=v.offsetX,this._y=v.offsetY,this.dispatchToElement(O(S,v),"dragstart",v.event))},_drag:function(v){var S=this._draggingTarget;if(S){var m=v.offsetX,f=v.offsetY,c=m-this._x,o=f-this._y;this._x=m,this._y=f,S.drift(c,o,v),this.dispatchToElement(O(S,v),"drag",v.event);var r=this.findHover(m,f,S).target,a=this._dropTarget;this._dropTarget=r,S!==r&&(a&&r!==a&&this.dispatchToElement(O(a,v),"dragleave",v.event),r&&r!==a&&this.dispatchToElement(O(r,v),"dragenter",v.event))}},_dragEnd:function(v){var S=this._draggingTarget;S&&(S.dragging=!1),this.dispatchToElement(O(S,v),"dragend",v.event),this._dropTarget&&this.dispatchToElement(O(this._dropTarget,v),"drop",v.event),this._draggingTarget=null,this._dropTarget=null}};function O(T,v){return{target:T,topTarget:v&&v.topTarget}}var x=d;U.exports=x},y2l5:function(U,P,d){var O=d("MwEJ"),x=d("T4UG"),T=x.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(v,S){return O(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var v=this.option.progressive;return v==null?this.option.large?5e3:this.get("progressive"):v},getProgressiveThreshold:function(){var v=this.option.progressiveThreshold;return v==null?this.option.large?1e4:this.get("progressiveThreshold"):v},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});U.exports=T},y3Kf:function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="UpOutlined";var f=P.a=x.forwardRef(m)},y3NT:function(U,P,d){var O=d("OELB"),x=O.parsePercent,T=d("bYtY"),v=Math.PI/180;function S(c,o,r,a){o.eachSeriesByType(c,function(n){var e=n.get("center"),s=n.get("radius");T.isArray(s)||(s=[0,s]),T.isArray(e)||(e=[e,e]);var t=r.getWidth(),i=r.getHeight(),l=Math.min(t,i),u=x(e[0],t),h=x(e[1],i),p=x(s[0],l/2),g=x(s[1],l/2),A=-n.get("startAngle")*v,y=n.get("minAngle")*v,E=n.getData().tree.root,C=n.getViewRoot(),w=C.depth,b=n.get("sort");b!=null&&m(C,b);var I=0;T.each(C.children,function(z){!isNaN(z.getValue())&&I++});var _=C.getValue(),L=Math.PI/(_||I)*2,D=C.depth>0,N=C.height-(D?-1:1),R=(g-p)/(N||1),B=n.get("clockwise"),M=n.get("stillShowZeroSum"),H=B?1:-1,F=function(z,Y){if(!z)return;var ee=Y;if(z!==E){var fe=z.getValue(),ie=_===0&&M?L:fe*L;ie<y&&(ie=y),ee=Y+H*ie;var we=z.depth-w-(D?-1:1),Ce=p+R*we,Le=p+R*(we+1),He=z.getModel();He.get("r0")!=null&&(Ce=x(He.get("r0"),l/2)),He.get("r")!=null&&(Le=x(He.get("r"),l/2)),z.setLayout({angle:ie,startAngle:Y,endAngle:ee,clockwise:B,cx:u,cy:h,r0:Ce,r:Le})}if(z.children&&z.children.length){var ce=0;T.each(z.children,function(Pe){ce+=F(Pe,Y+ce)})}return ee-Y};if(D){var K=p,j=p+R,V=Math.PI*2;E.setLayout({angle:V,startAngle:A,endAngle:A+V,clockwise:B,cx:u,cy:h,r0:K,r:j})}F(C,A)})}function m(c,o){var r=c.children||[];c.children=f(r,o),r.length&&T.each(c.children,function(a){m(a,o)})}function f(c,o){if(typeof o=="function")return c.sort(o);var r=o==="asc";return c.sort(function(a,n){var e=(a.getValue()-n.getValue())*(r?1:-1);return e===0?(a.dataIndex-n.dataIndex)*(r?-1:1):e})}U.exports=S},y3Yb:function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("HBhm")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="PaperClipOutlined";var c=v.forwardRef(f);P.default=c},"y4/Y":function(U,P,d){var O=d("ProS"),x=d("bYtY"),T=d("zTMp"),v=d("62sa");d("SKx+"),d("1LEl"),d("Sp2Z"),O.registerPreprocessor(function(S){if(S){(!S.axisPointer||S.axisPointer.length===0)&&(S.axisPointer={});var m=S.axisPointer.link;m&&!x.isArray(m)&&(S.axisPointer.link=[m])}}),O.registerProcessor(O.PRIORITY.PROCESSOR.STATISTIC,function(S,m){S.getComponent("axisPointer").coordSysAxesInfo=T.collect(S,m)}),O.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},v)},y7Aq:function(U,P,d){var O=d("bYtY"),x=d("+TT/"),T=x.getLayoutRect;function v(m,f,c){var o=m.option,r=o.align;if(r!=null&&r!=="auto")return r;for(var a={width:f.getWidth(),height:f.getHeight()},n=o.orient==="horizontal"?1:0,e=[["left","right","width"],["top","bottom","height"]],s=e[n],t=[0,null,10],i={},l=0;l<3;l++)i[e[1-n][l]]=t[l],i[s[l]]=l===2?c[0]:o[s[l]];var u=[["x","width",3],["y","height",0]][n],h=T(i,a,o.padding);return s[(h.margin[u[2]]||0)+h[u[0]]+h[u[1]]*.5<a[u[1]]*.5?0:1]}function S(m,f){return O.each(m||[],function(c){c.dataIndex!=null&&(c.dataIndexInside=c.dataIndex,c.dataIndex=null),c.highlightKey="visualMap"+(f?f.componentIndex:"")}),m}P.getItemAlign=v,P.makeHighDownBatch=S},y8nQ:function(U,P,d){"use strict";var O=d("cIOH"),x=d.n(O),T=d("gwTy"),v=d.n(T),S=d("1GLa")},yEEn:function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="ArrowDownOutlined";var f=P.a=x.forwardRef(m)},yO87:function(U,P,d){var O=d("bYtY"),x=d("oVpE"),T=x.createSymbol,v=d("IwbS"),S=v.Group,m=d("OELB"),f=m.parsePercent,c=d("FBjb"),o=3;function r(t){return O.isArray(t)||(t=[+t,+t]),t}function a(t,i){var l=i.rippleEffectColor||i.color;t.eachChild(function(u){u.attr({z:i.z,zlevel:i.zlevel,style:{stroke:i.brushType==="stroke"?l:null,fill:i.brushType==="fill"?l:null}})})}function n(t,i){S.call(this);var l=new c(t,i),u=new S;this.add(l),this.add(u),u.beforeUpdate=function(){this.attr(l.getScale())},this.updateData(t,i)}var e=n.prototype;e.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.startEffectAnimation=function(t){for(var i=t.symbolType,l=t.color,u=this.childAt(1),h=0;h<o;h++){var p=T(i,-1,-1,2,2,l);p.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var g=-h/o*t.period+t.effectOffset;p.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(g).start(),p.animateStyle(!0).when(t.period,{opacity:0}).delay(g).start(),u.add(p)}a(u,t)},e.updateEffectAnimation=function(t){for(var i=this._effectCfg,l=this.childAt(1),u=["symbolType","period","rippleScale"],h=0;h<u.length;h++){var p=u[h];if(i[p]!==t[p]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}a(l,t)},e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.updateData=function(t,i){var l=t.hostModel;this.childAt(0).updateData(t,i);var u=this.childAt(1),h=t.getItemModel(i),p=t.getItemVisual(i,"symbol"),g=r(t.getItemVisual(i,"symbolSize")),A=t.getItemVisual(i,"color");u.attr("scale",g),u.traverse(function(L){L.attr({fill:A})});var y=h.getShallow("symbolOffset");if(y){var E=u.position;E[0]=f(y[0],g[0]),E[1]=f(y[1],g[1])}var C=t.getItemVisual(i,"symbolRotate");u.rotation=(C||0)*Math.PI/180||0;var w={};if(w.showEffectOn=l.get("showEffectOn"),w.rippleScale=h.get("rippleEffect.scale"),w.brushType=h.get("rippleEffect.brushType"),w.period=h.get("rippleEffect.period")*1e3,w.effectOffset=i/t.count(),w.z=h.getShallow("z")||0,w.zlevel=h.getShallow("zlevel")||0,w.symbolType=p,w.color=A,w.rippleEffectColor=h.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),w.showEffectOn==="render")this._effectCfg?this.updateEffectAnimation(w):this.startEffectAnimation(w),this._effectCfg=w;else{this._effectCfg=null,this.stopEffectAnimation();var b=this.childAt(0),I=function(){b.highlight(),w.showEffectOn!=="render"&&this.startEffectAnimation(w)},_=function(){b.downplay(),w.showEffectOn!=="render"&&this.stopEffectAnimation()};this.on("mouseover",I,this).on("mouseout",_,this).on("emphasis",I,this).on("normal",_,this)}this._effectCfg=w},e.fadeOut=function(t){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),t&&t()},O.inherits(n,S);var s=n;U.exports=s},yS9w:function(U,P,d){var O=d("MEGo"),x=O.parseSVG,T=O.makeViewBoxTransform,v=d("4fz+"),S=d("x6Kt"),m=d("bYtY"),f=m.assert,c=m.createHashMap,o=d("mFDi"),r=d("4NO4"),a=r.makeInner,n=a(),e={load:function(t,i){var l=n(i).originRoot;if(l)return{root:l,boundingRect:n(i).boundingRect};var u=s(i);return n(i).originRoot=u.root,n(i).boundingRect=u.boundingRect,u},makeGraphic:function(t,i,l){var u=n(i),h=u.rootMap||(u.rootMap=c()),p=h.get(l);if(p)return p;var g=u.originRoot,A=u.boundingRect;return u.originRootHostKey?p=s(i,A).root:(u.originRootHostKey=l,p=g),h.set(l,p)},removeGraphic:function(t,i,l){var u=n(i),h=u.rootMap;h&&h.removeKey(l),l===u.originRootHostKey&&(u.originRootHostKey=null)}};function s(t,i){var l=t.svgXML,u,h;try{u=l&&x(l,{ignoreViewBox:!0,ignoreRootClip:!0})||{},h=u.root,f(h!=null)}catch(C){throw new Error(`Invalid svg format
|
|
|
`+C.message)}var p=u.width,g=u.height,A=u.viewBoxRect;if(i||(i=p==null||g==null?h.getBoundingRect():new o(0,0,0,0),p!=null&&(i.width=p),g!=null&&(i.height=g)),A){var y=T(A,i.width,i.height),E=h;h=new v,h.add(E),E.scale=y.scale,E.position=y.position}return h.setClipPath(new S({shape:i.plain()})),{root:h,boundingRect:i}}U.exports=e},yWXo:function(U,P,d){var O=d("IwbS"),x=d("oVpE"),T=x.createSymbol,v=d("OS9S"),S=4,m=O.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(r,a){var n=a.points,e=a.size,s=this.symbolProxy,t=s.shape,i=r.getContext?r.getContext():r,l=i&&e[0]<S;if(l)return;for(var u=0;u<n.length;){var h=n[u++],p=n[u++];if(isNaN(h)||isNaN(p))continue;if(this.softClipShape&&!this.softClipShape.contain(h,p))continue;t.x=h-e[0]/2,t.y=p-e[1]/2,t.width=e[0],t.height=e[1],s.buildPath(r,t,!0)}},afterBrush:function(r){var a=this.shape,n=a.points,e=a.size,s=e[0]<S;if(!s)return;this.setTransform(r);for(var t=0;t<n.length;){var i=n[t++],l=n[t++];if(isNaN(i)||isNaN(l))continue;if(this.softClipShape&&!this.softClipShape.contain(i,l))continue;r.fillRect(i-e[0]/2,l-e[1]/2,e[0],e[1])}this.restoreTransform(r)},findDataIndex:function(r,a){for(var n=this.shape,e=n.points,s=n.size,t=Math.max(s[0],4),i=Math.max(s[1],4),l=e.length/2-1;l>=0;l--){var u=l*2,h=e[u]-t/2,p=e[u+1]-i/2;if(r>=h&&a>=p&&r<=h+t&&a<=p+i)return l}return-1}});function f(){this.group=new O.Group}var c=f.prototype;c.isPersistent=function(){return!this._incremental},c.updateData=function(r,a){this.group.removeAll();var n=new m({rectHover:!0,cursor:"default"});n.setShape({points:r.getLayout("symbolPoints")}),this._setCommon(n,r,!1,a),this.group.add(n),this._incremental=null},c.updateLayout=function(r){if(this._incremental)return;var a=r.getLayout("symbolPoints");this.group.eachChild(function(n){if(n.startIndex!=null){var e=(n.endIndex-n.startIndex)*2,s=n.startIndex*4*2;a=new Float32Array(a.buffer,s,e)}n.setShape("points",a)})},c.incrementalPrepareUpdate=function(r){this.group.removeAll(),this._clearIncremental(),r.count()>2e6?(this._incremental||(this._incremental=new v({silent:!0})),this.group.add(this._incremental)):this._incremental=null},c.incrementalUpdate=function(r,a,n){var e;this._incremental?(e=new m,this._incremental.addDisplayable(e,!0)):(e=new m({rectHover:!0,cursor:"default",startIndex:r.start,endIndex:r.end}),e.incremental=!0,this.group.add(e)),e.setShape({points:a.getLayout("symbolPoints")}),this._setCommon(e,a,!!this._incremental,n)},c._setCommon=function(r,a,n,e){var s=a.hostModel;e=e||{};var t=a.getVisual("symbolSize");r.setShape("size",t instanceof Array?t:[t,t]),r.softClipShape=e.clipShape||null,r.symbolProxy=T(a.getVisual("symbol"),0,0,0,0),r.setColor=r.symbolProxy.setColor;var i=r.shape.size[0]<S;r.useStyle(s.getModel("itemStyle").getItemStyle(i?["color","shadowBlur","shadowColor"]:["color"]));var l=a.getVisual("color");l&&r.setColor(l),n||(r.seriesIndex=s.seriesIndex,r.on("mousemove",function(u){r.dataIndex=null;var h=r.findDataIndex(u.offsetX,u.offsetY);h>=0&&(r.dataIndex=h+(r.startIndex||0))}))},c.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},c._clearIncremental=function(){var r=this._incremental;r&&r.clearDisplaybles()};var o=f;U.exports=o},ycre:function(U,P,d){var O=d("711d"),x=O("length");U.exports=x},ye1Q:function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="LoadingOutlined";var f=P.a=x.forwardRef(m)},ygfH:function(U,P,d){"use strict";Object.defineProperty(P,"__esModule",{value:!0});var O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};P.default=O},yik8:function(U,P,d){var O=d("bZqE"),x=O.eachAfter,T=O.eachBefore,v=d("Itpr"),S=v.init,m=v.firstWalk,f=v.secondWalk,c=v.separation,o=v.radialCoordinate,r=v.getViewRect;function a(e,s){e.eachSeriesByType("tree",function(t){n(t,s)})}function n(e,s){var t=r(e,s);e.layoutInfo=t;var i=e.get("layout"),l=0,u=0,h=null;i==="radial"?(l=2*Math.PI,u=Math.min(t.height,t.width)/2,h=c(function(N,R){return(N.parentNode===R.parentNode?1:2)/N.depth})):(l=t.width,u=t.height,h=c());var p=e.getData().tree.root,g=p.children[0];if(g){S(p),x(g,m,h),p.hierNode.modifier=-g.hierNode.prelim,T(g,f);var A=g,y=g,E=g;T(g,function(N){var R=N.getLayout().x;R<A.getLayout().x&&(A=N),R>y.getLayout().x&&(y=N),N.depth>E.depth&&(E=N)});var C=A===y?1:h(A,y)/2,w=C-A.getLayout().x,b=0,I=0,_=0,L=0;if(i==="radial")b=l/(y.getLayout().x+C+w),I=u/(E.depth-1||1),T(g,function(N){_=(N.getLayout().x+w)*b,L=(N.depth-1)*I;var R=o(_,L);N.setLayout({x:R.x,y:R.y,rawX:_,rawY:L},!0)});else{var D=e.getOrient();D==="RL"||D==="LR"?(I=u/(y.getLayout().x+C+w),b=l/(E.depth-1||1),T(g,function(N){L=(N.getLayout().x+w)*I,_=D==="LR"?(N.depth-1)*b:l-(N.depth-1)*b,N.setLayout({x:_,y:L},!0)})):(D==="TB"||D==="BT")&&(b=l/(y.getLayout().x+C+w),I=u/(E.depth-1||1),T(g,function(N){_=(N.getLayout().x+w)*b,L=D==="TB"?(N.depth-1)*I:u-(N.depth-1)*I,N.setLayout({x:_,y:L},!0)}))}}}U.exports=a},ynwM:function(U,P,d){var O=d("MFOe"),x=O.Global;U.exports={name:"oldFF-globalStorage",read:v,write:S,each:m,remove:f,clearAll:c};var T=x.globalStorage;function v(o){return T[o]}function S(o,r){T[o]=r}function m(o){for(var r=T.length-1;r>=0;r--){var a=T.key(r);o(T[a],a)}}function f(o){return T.removeItem(o)}function c(){m(function(o,r){delete T[o]})}},ypgQ:function(U,P,d){var O=d("bYtY"),x=d("4NO4"),T=d("bLfw"),v=O.each,S=O.clone,m=O.map,f=O.merge,c=/^(min|max)?(.+)$/;function o(i){this._api=i,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}o.prototype={constructor:o,setOption:function(i,l){i&&O.each(x.normalizeToArray(i.series),function(p){p&&p.data&&O.isTypedArray(p.data)&&O.setAsPrimitive(p.data)}),i=S(i);var u=this._optionBackup,h=r.call(this,i,l,!u);this._newBaseOption=h.baseOption,u?(s(u.baseOption,h.baseOption),h.timelineOptions.length&&(u.timelineOptions=h.timelineOptions),h.mediaList.length&&(u.mediaList=h.mediaList),h.mediaDefault&&(u.mediaDefault=h.mediaDefault)):this._optionBackup=h},mountOption:function(i){var l=this._optionBackup;return this._timelineOptions=m(l.timelineOptions,S),this._mediaList=m(l.mediaList,S),this._mediaDefault=S(l.mediaDefault),this._currentMediaIndices=[],S(i?l.baseOption:this._newBaseOption)},getTimelineOption:function(i){var l,u=this._timelineOptions;if(u.length){var h=i.getComponent("timeline");h&&(l=S(u[h.getCurrentIndex()],!0))}return l},getMediaOption:function(i){var l=this._api.getWidth(),u=this._api.getHeight(),h=this._mediaList,p=this._mediaDefault,g=[],A=[];if(!h.length&&!p)return A;for(var y=0,E=h.length;y<E;y++)a(h[y].query,l,u)&&g.push(y);return!g.length&&p&&(g=[-1]),g.length&&!e(g,this._currentMediaIndices)&&(A=m(g,function(C){return S(C===-1?p.option:h[C].option)})),this._currentMediaIndices=g,A}};function r(i,l,u){var h=[],p=[],g,A,y=i.timeline;if(i.baseOption&&(A=i.baseOption),(y||i.options)&&(A=A||{},h=(i.options||[]).slice()),i.media){A=A||{};var E=i.media;v(E,function(C){C&&C.option&&(C.query?p.push(C):g||(g=C))})}return A||(A=i),A.timeline||(A.timeline=y),v([A].concat(h).concat(O.map(p,function(C){return C.option})),function(C){v(l,function(w){w(C,u)})}),{baseOption:A,timelineOptions:h,mediaDefault:g,mediaList:p}}function a(i,l,u){var h={width:l,height:u,aspectratio:l/u},p=!0;return O.each(i,function(g,A){var y=A.match(c);if(!y||!y[1]||!y[2])return;var E=y[1],C=y[2].toLowerCase();n(h[C],g,E)||(p=!1)}),p}function n(i,l,u){return u==="min"?i>=l:u==="max"?i<=l:i===l}function e(i,l){return i.join(",")===l.join(",")}function s(i,l){l=l||{},v(l,function(u,h){if(u==null)return;var p=i[h];if(!T.hasClass(h))i[h]=f(p,u,!0);else{u=x.normalizeToArray(u),p=x.normalizeToArray(p);var g=x.mappingToExists(p,u);i[h]=m(g,function(A){return A.option&&A.exist?f(A.exist,A.option,!0):A.exist||A.option})}})}var t=o;U.exports=t},yxFR:function(U,P,d){var O=d("y+Vt"),x=d("nPnh"),T=x.subPixelOptimizeLine,v={},S=O.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(f,c){var o,r,a,n;this.subPixelOptimize?(T(v,c,this.style),o=v.x1,r=v.y1,a=v.x2,n=v.y2):(o=c.x1,r=c.y1,a=c.x2,n=c.y2);var e=c.percent;if(e===0)return;f.moveTo(o,r),e<1&&(a=o*(1-e)+a*e,n=r*(1-e)+n*e),f.lineTo(a,n)},pointAt:function(f){var c=this.shape;return[c.x1*(1-f)+c.x2*f,c.y1*(1-f)+c.y2*f]}});U.exports=S},z35g:function(U,P,d){var O=d("bYtY");function x(S){return this._axes[S]}var T=function(S){this._axes={},this._dimList=[],this.name=S||""};T.prototype={constructor:T,type:"cartesian",getAxis:function(S){return this._axes[S]},getAxes:function(){return O.map(this._dimList,x,this)},getAxesByScale:function(S){return S=S.toLowerCase(),O.filter(this.getAxes(),function(m){return m.scale.type===S})},addAxis:function(S){var m=S.dim;this._axes[m]=S,this._dimList.push(m)},dataToCoord:function(S){return this._dataCoordConvert(S,"dataToCoord")},coordToData:function(S){return this._dataCoordConvert(S,"coordToData")},_dataCoordConvert:function(S,m){for(var f=this._dimList,c=S instanceof Array?[]:{},o=0;o<f.length;o++){var r=f[o],a=this._axes[r];c[r]=a[m](S[r])}return c}};var v=T;U.exports=v},z7Xi:function(U,P,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},v=T,S=d("6VBw"),m=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:v}))};m.displayName="UploadOutlined";var f=P.a=x.forwardRef(m)},zAh6:function(U,P,d){"use strict";d.d(P,"a",function(){return S});var O=d("xEkU"),x=d.n(O),T=d("i6bk");function v(m,f,c,o){var r=c-f;return m/=o/2,m<1?r/2*m*m*m+f:r/2*((m-=2)*m*m+2)+f}function S(m){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=f.getContainer,o=c===void 0?function(){return window}:c,r=f.callback,a=f.duration,n=a===void 0?450:a,e=o(),s=Object(T.a)(e,!0),t=Date.now(),i=function l(){var u=Date.now(),h=u-t,p=v(h>n?n:h,s,m,n);Object(T.b)(e)?e.scrollTo(window.pageXOffset,p):e instanceof HTMLDocument||e.constructor.name==="HTMLDocument"?e.documentElement.scrollTop=p:e.scrollTop=p,h<n?x()(l):typeof r=="function"&&r()};x()(i)}},zDms:function(U,P,d){var O=d("bYtY"),x=d("OELB"),T=d("UOVi"),v=d("72pK"),S=O.each,m=x.asc,f=function(e,s,t,i){this._dimName=e,this._axisIndex=s,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=i,this._dataZoomModel=t};f.prototype={constructor:f,hostedBy:function(e){return this._dataZoomModel===e},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var e=[],s=this.ecModel;return s.eachSeries(function(t){if(T.isCoordSupported(t.get("coordinateSystem"))){var i=this._dimName,l=s.queryComponents({mainType:i+"Axis",index:t.get(i+"AxisIndex"),id:t.get(i+"AxisId")})[0];this._axisIndex===(l&&l.componentIndex)&&e.push(t)}},this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e=this._dimName,s=this.ecModel,t=this.getAxisModel(),i=e==="x"||e==="y",l,u;i?(u="gridIndex",l=e==="x"?"y":"x"):(u="polarIndex",l=e==="angle"?"radius":"angle");var h;return s.eachComponent(l+"Axis",function(p){(p.get(u)||0)===(t.get(u)||0)&&(h=p)}),h},getMinMaxSpan:function(){return O.clone(this._minMaxSpan)},calculateDataWindow:function(e){var s=this._dataExtent,t=this.getAxisModel(),i=t.axis.scale,l=this._dataZoomModel.getRangePropMode(),u=[0,100],h=[],p=[],g;S(["start","end"],function(E,C){var w=e[E],b=e[E+"Value"];l[C]==="percent"?(w==null&&(w=u[C]),b=i.parse(x.linearMap(w,u,s))):(g=!0,b=b==null?s[C]:i.parse(b),w=x.linearMap(b,s,u)),p[C]=b,h[C]=w}),m(p),m(h);var A=this._minMaxSpan;g?y(p,h,s,u,!1):y(h,p,u,s,!0);function y(E,C,w,b,I){var _=I?"Span":"ValueSpan";v(0,E,w,"all",A["min"+_],A["max"+_]);for(var L=0;L<2;L++)C[L]=x.linearMap(E[L],w,b,!0),I&&(C[L]=i.parse(C[L]))}return{valueWindow:p,percentWindow:h}},reset:function(e){if(e!==this._dataZoomModel)return;var s=this.getTargetSeriesModels();this._dataExtent=c(this,this._dimName,s),a(this);var t=this.calculateDataWindow(e.settledOption);this._valueWindow=t.valueWindow,this._percentWindow=t.percentWindow,r(this)},restore:function(e){if(e!==this._dataZoomModel)return;this._valueWindow=this._percentWindow=null,r(this,!0)},filterData:function(e,s){if(e!==this._dataZoomModel)return;var t=this._dimName,i=this.getTargetSeriesModels(),l=e.get("filterMode"),u=this._valueWindow;if(l==="none")return;S(i,function(p){var g=p.getData(),A=g.mapDimension(t,!0);if(!A.length)return;l==="weakFilter"?g.filterSelf(function(y){for(var E,C,w,b=0;b<A.length;b++){var I=g.get(A[b],y),_=!isNaN(I),L=I<u[0],D=I>u[1];if(_&&!L&&!D)return!0;_&&(w=!0),L&&(E=!0),D&&(C=!0)}return w&&E&&C}):S(A,function(y){if(l==="empty")p.setData(g=g.map(y,function(C){return h(C)?C:NaN}));else{var E={};E[y]=u,g.selectRange(E)}}),S(A,function(y){g.setApproximateExtent(u,y)})});function h(p){return p>=u[0]&&p<=u[1]}}};function c(e,s,t){var i=[Infinity,-Infinity];return S(t,function(l){var u=l.getData();u&&S(u.mapDimension(s,!0),function(h){var p=u.getApproximateExtent(h);p[0]<i[0]&&(i[0]=p[0]),p[1]>i[1]&&(i[1]=p[1])})}),i[1]<i[0]&&(i=[NaN,NaN]),o(e,i),i}function o(e,s){var t=e.getAxisModel(),i=t.getMin(!0),l=t.get("type")==="category",u=l&&t.getCategories().length;i!=null&&i!=="dataMin"&&typeof i!="function"?s[0]=i:l&&(s[0]=u>0?0:NaN);var h=t.getMax(!0);return h!=null&&h!=="dataMax"&&typeof h!="function"?s[1]=h:l&&(s[1]=u>0?u-1:NaN),t.get("scale",!0)||(s[0]>0&&(s[0]=0),s[1]<0&&(s[1]=0)),s}function r(e,s){var t=e.getAxisModel(),i=e._percentWindow,l=e._valueWindow;if(!i)return;var u=x.getPixelPrecision(l,[0,500]);u=Math.min(u,20);var h=s||i[0]===0&&i[1]===100;t.setRange(h?null:+l[0].toFixed(u),h?null:+l[1].toFixed(u))}function a(e){var s=e._minMaxSpan={},t=e._dataZoomModel,i=e._dataExtent;S(["min","max"],function(l){var u=t.get(l+"Span"),h=t.get(l+"ValueSpan");h!=null&&(h=e.getAxisModel().axis.scale.parse(h)),h!=null?u=x.linearMap(i[0]+h,i,[0,100],!0):u!=null&&(h=x.linearMap(u,[0,100],i,!0)-i[0]),s[l+"Span"]=u,s[l+"ValueSpan"]=h})}var n=f;U.exports=n},zM3Q:function(U,P,d){var O=d("4NO4"),x=O.makeInner;function T(){var v=x();return function(S){var m=v(S),f=S.pipelineContext,c=m.large,o=m.progressiveRender,r=m.large=f&&f.large,a=m.progressiveRender=f&&f.progressiveRender;return!!(c^r||o^a)&&"reset"}}U.exports=T},zRKj:function(U,P,d){d("Ae16"),d("Sp2Z"),d("y4/Y")},zTMp:function(U,P,d){var O=d("bYtY"),x=d("Qxkt"),T=O.each,v=O.curry;function S(i,l){var u={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return m(u,i,l),u.seriesInvolved&&c(u,i),u}function m(i,l,u){var h=l.getComponent("tooltip"),p=l.getComponent("axisPointer"),g=p.get("link",!0)||[],A=[];T(u.getCoordinateSystems(),function(y){if(!y.axisPointerEnabled)return;var E=t(y.model),C=i.coordSysAxesInfo[E]={};i.coordSysMap[E]=y;var w=y.model,b=w.getModel("tooltip",h);if(T(y.getAxes(),v(D,!1,null)),y.getTooltipAxes&&h&&b.get("show")){var I=b.get("trigger")==="axis",_=b.get("axisPointer.type")==="cross",L=y.getTooltipAxes(b.get("axisPointer.axis"));(I||_)&&T(L.baseAxes,v(D,_?"cross":!0,I)),_&&T(L.otherAxes,v(D,"cross",!1))}function D(N,R,B){var M=B.model.getModel("axisPointer",p),H=M.get("show");if(!H||H==="auto"&&!N&&!s(M))return;R==null&&(R=M.get("triggerTooltip")),M=N?f(B,b,p,l,N,R):M;var F=M.get("snap"),K=t(B.model),j=R||F||B.type==="category",V=i.axesInfo[K]={key:K,axis:B,coordSys:y,axisPointerModel:M,triggerTooltip:R,involveSeries:j,snap:F,useHandle:s(M),seriesModels:[]};C[K]=V,i.seriesInvolved|=j;var z=o(g,B);if(z!=null){var Y=A[z]||(A[z]={axesInfo:{}});Y.axesInfo[K]=V,Y.mapper=g[z].mapper,V.linkGroup=Y}}})}function f(i,l,u,h,p,g){var A=l.getModel("axisPointer"),y={};T(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(b){y[b]=O.clone(A.get(b))}),y.snap=i.type!=="category"&&!!g,A.get("type")==="cross"&&(y.type="line");var E=y.label||(y.label={});if(E.show==null&&(E.show=!1),p==="cross"){var C=A.get("label.show");if(E.show=C!=null?C:!0,!g){var w=y.lineStyle=A.get("crossStyle");w&&O.defaults(E,w.textStyle)}}return i.model.getModel("axisPointer",new x(y,u,h))}function c(i,l){l.eachSeries(function(u){var h=u.coordinateSystem,p=u.get("tooltip.trigger",!0),g=u.get("tooltip.show",!0);if(!h||p==="none"||p===!1||p==="item"||g===!1||u.get("axisPointer.show",!0)===!1)return;T(i.coordSysAxesInfo[t(h.model)],function(A){var y=A.axis;h.getAxis(y.dim)===y&&(A.seriesModels.push(u),A.seriesDataCount==null&&(A.seriesDataCount=0),A.seriesDataCount+=u.getData().count())})},this)}function o(i,l){for(var u=l.model,h=l.dim,p=0;p<i.length;p++){var g=i[p]||{};if(r(g[h+"AxisId"],u.id)||r(g[h+"AxisIndex"],u.componentIndex)||r(g[h+"AxisName"],u.name))return p}}function r(i,l){return i==="all"||O.isArray(i)&&O.indexOf(i,l)>=0||i===l}function a(i){var l=n(i);if(!l)return;var u=l.axisPointerModel,h=l.axis.scale,p=u.option,g=u.get("status"),A=u.get("value");A!=null&&(A=h.parse(A));var y=s(u);g==null&&(p.status=y?"show":"hide");var E=h.getExtent().slice();E[0]>E[1]&&E.reverse(),(A==null||A>E[1])&&(A=E[1]),A<E[0]&&(A=E[0]),p.value=A,y&&(p.status=l.axis.scale.isBlank()?"hide":"show")}function n(i){var l=(i.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return l&&l.axesInfo[t(i)]}function e(i){var l=n(i);return l&&l.axisPointerModel}function s(i){return!!i.get("handle.show")}function t(i){return i.type+"||"+i.id}P.collect=S,P.fixValue=a,P.getAxisInfo=n,P.getAxisPointerModel=e,P.makeKey=t},zYTA:function(U,P,d){var O=d("bYtY"),x=256;function T(){var S=O.createCanvas();this.canvas=S,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}T.prototype={update:function(S,m,f,c,o,r){var a=this._getBrush(),n=this._getGradient(S,o,"inRange"),e=this._getGradient(S,o,"outOfRange"),s=this.pointSize+this.blurSize,t=this.canvas,i=t.getContext("2d"),l=S.length;t.width=m,t.height=f;for(var u=0;u<l;++u){var h=S[u],p=h[0],g=h[1],A=h[2],y=c(A);i.globalAlpha=y,i.drawImage(a,p-s,g-s)}if(!t.width||!t.height)return t;for(var E=i.getImageData(0,0,t.width,t.height),C=E.data,w=0,b=C.length,I=this.minOpacity,_=this.maxOpacity,L=_-I;w<b;){var y=C[w+3]/256,D=Math.floor(y*(x-1))*4;if(y>0){var N=r(y)?n:e;y>0&&(y=y*L+I),C[w++]=N[D],C[w++]=N[D+1],C[w++]=N[D+2],C[w++]=N[D+3]*y*256}else w+=4}return i.putImageData(E,0,0),t},_getBrush:function(){var S=this._brushCanvas||(this._brushCanvas=O.createCanvas()),m=this.pointSize+this.blurSize,f=m*2;S.width=f,S.height=f;var c=S.getContext("2d");return c.clearRect(0,0,f,f),c.shadowOffsetX=f,c.shadowBlur=this.blurSize,c.shadowColor="#000",c.beginPath(),c.arc(-m,m,this.pointSize,0,Math.PI*2,!0),c.closePath(),c.fill(),S},_getGradient:function(S,m,f){for(var c=this._gradientPixels,o=c[f]||(c[f]=new Uint8ClampedArray(256*4)),r=[0,0,0,0],a=0,n=0;n<256;n++)m[f](n/255,!0,r),o[a++]=r[0],o[a++]=r[1],o[a++]=r[2],o[a++]=r[3];return o}};var v=T;U.exports=v},zarK:function(U,P,d){var O=d("YH21"),x=O.addEventListener,T=O.removeEventListener,v=O.normalizeEvent,S=O.getNativeEvent,m=d("bYtY"),f=d("H6uX"),c=d("ItGF"),o=300,r=c.domSupported,a=function(){var N=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],R=["touchstart","touchend","touchmove"],B={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},M=m.map(N,function(H){var F=H.replace("mouse","pointer");return B.hasOwnProperty(F)?F:H});return{mouse:N,touch:R,pointer:M}}(),n={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function e(N){return N==="mousewheel"&&c.browser.firefox?"DOMMouseScroll":N}function s(N){var R=N.pointerType;return R==="pen"||R==="touch"}function t(N){N.touching=!0,N.touchTimer!=null&&(clearTimeout(N.touchTimer),N.touchTimer=null),N.touchTimer=setTimeout(function(){N.touching=!1,N.touchTimer=null},700)}function i(N){N&&(N.zrByTouch=!0)}function l(N,R){return v(N.dom,new h(N,R),!0)}function u(N,R){for(var B=R,M=!1;B&&B.nodeType!==9&&!(M=B.domBelongToZr||B!==R&&B===N.painterRoot);)B=B.parentNode;return M}function h(N,R){this.type=R.type,this.target=this.currentTarget=N.dom,this.pointerType=R.pointerType,this.clientX=R.clientX,this.clientY=R.clientY}var p=h.prototype;p.stopPropagation=p.stopImmediatePropagation=p.preventDefault=m.noop;var g={mousedown:function(R){R=v(this.dom,R),this._mayPointerCapture=[R.zrX,R.zrY],this.trigger("mousedown",R)},mousemove:function(R){R=v(this.dom,R);var B=this._mayPointerCapture;B&&(R.zrX!==B[0]||R.zrY!==B[1])&&b(this,!0),this.trigger("mousemove",R)},mouseup:function(R){R=v(this.dom,R),b(this,!1),this.trigger("mouseup",R)},mouseout:function(R){R=v(this.dom,R),this._pointerCapturing&&(R.zrEventControl="no_globalout");var B=R.toElement||R.relatedTarget;R.zrIsToLocalDOM=u(this,B),this.trigger("mouseout",R)},touchstart:function(R){R=v(this.dom,R),i(R),this._lastTouchMoment=new Date,this.handler.processGesture(R,"start"),g.mousemove.call(this,R),g.mousedown.call(this,R)},touchmove:function(R){R=v(this.dom,R),i(R),this.handler.processGesture(R,"change"),g.mousemove.call(this,R)},touchend:function(R){R=v(this.dom,R),i(R),this.handler.processGesture(R,"end"),g.mouseup.call(this,R),+new Date-this._lastTouchMoment<o&&g.click.call(this,R)},pointerdown:function(R){g.mousedown.call(this,R)},pointermove:function(R){s(R)||g.mousemove.call(this,R)},pointerup:function(R){g.mouseup.call(this,R)},pointerout:function(R){s(R)||g.mouseout.call(this,R)}};m.each(["click","mousewheel","dblclick","contextmenu"],function(N){g[N]=function(R){R=v(this.dom,R),this.trigger(N,R)}});var A={pointermove:function(R){s(R)||A.mousemove.call(this,R)},pointerup:function(R){A.mouseup.call(this,R)},mousemove:function(R){this.trigger("mousemove",R)},mouseup:function(R){var B=this._pointerCapturing;b(this,!1),this.trigger("mouseup",R),B&&(R.zrEventControl="only_globalout",this.trigger("mouseout",R))}};function y(N,R){var B=R.domHandlers;c.pointerEventsSupported?m.each(a.pointer,function(M){C(R,M,function(H){B[M].call(N,H)})}):(c.touchEventsSupported&&m.each(a.touch,function(M){C(R,M,function(H){B[M].call(N,H),t(R)})}),m.each(a.mouse,function(M){C(R,M,function(H){H=S(H),R.touching||B[M].call(N,H)})}))}function E(N,R){c.pointerEventsSupported?m.each(n.pointer,B):c.touchEventsSupported||m.each(n.mouse,B);function B(M){function H(F){F=S(F),u(N,F.target)||(F=l(N,F),R.domHandlers[M].call(N,F))}C(R,M,H,{capture:!0})}}function C(N,R,B,M){N.mounted[R]=B,N.listenerOpts[R]=M,x(N.domTarget,e(R),B,M)}function w(N){var R=N.mounted;for(var B in R)R.hasOwnProperty(B)&&T(N.domTarget,e(B),R[B],N.listenerOpts[B]);N.mounted={}}function b(N,R){if(N._mayPointerCapture=null,r&&N._pointerCapturing^R){N._pointerCapturing=R;var B=N._globalHandlerScope;R?E(N,B):w(B)}}function I(N,R){this.domTarget=N,this.domHandlers=R,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function _(N,R){f.call(this),this.dom=N,this.painterRoot=R,this._localHandlerScope=new I(N,g),r&&(this._globalHandlerScope=new I(document,A)),this._pointerCapturing=!1,this._mayPointerCapture=null,y(this,this._localHandlerScope)}var L=_.prototype;L.dispose=function(){w(this._localHandlerScope),r&&w(this._globalHandlerScope)},L.setCursor=function(N){this.dom.style&&(this.dom.style.cursor=N||"default")},m.mixin(_,f);var D=_;U.exports=D},zdCA:function(U,P,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var T=x(d("3tO9")),v=O(d("q1tI")),S=x(d("PSzr")),m=x(d("KQxl")),f=function(r,a){return v.createElement(m.default,(0,T.default)((0,T.default)({},r),{},{ref:a,icon:S.default}))};f.displayName="BarsOutlined";var c=v.forwardRef(f);P.default=c},zeV3:function(U,P,d){"use strict";var O=d("pVnL"),x=d.n(O),T=d("lSNA"),v=d.n(T),S=d("q1tI"),m=d.n(S),f=d("TSYQ"),c=d.n(f),o=d("H84U"),r=function(e,s){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&s.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(e);l<i.length;l++)s.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(t[i[l]]=e[i[l]]);return t},a={small:8,middle:16,large:24},n=function(s){var t,i=S.useContext(o.b),l=i.getPrefixCls,u=i.space,h=i.direction,p=s.size,g=p===void 0?(u==null?void 0:u.size)||"small":p,A=s.align,y=s.className,E=s.children,C=s.direction,w=C===void 0?"horizontal":C,b=s.prefixCls,I=r(s,["size","align","className","children","direction","prefixCls"]),_=S.Children.count(E);if(_===0)return null;var L=A===void 0&&w==="horizontal"?"center":A,D=l("space",b),N=c()(D,"".concat(D,"-").concat(w),(t={},v()(t,"".concat(D,"-rtl"),h==="rtl"),v()(t,"".concat(D,"-align-").concat(L),L),t),y),R="".concat(D,"-item"),B=h==="rtl"?"marginLeft":"marginRight";return S.createElement("div",x()({className:N},I),S.Children.map(E,function(M,H){return S.createElement("div",{className:R,key:"".concat(R,"-").concat(H),style:H===_-1||M===null||M===void 0?{}:v()({},w==="vertical"?"marginBottom":B,typeof g=="string"?a[g]:g)},M)}))};P.a=n},zoYe:function(U,P,d){var O=d("nmnc"),x=d("eUgh"),T=d("Z0cm"),v=d("/9aa"),S=1/0,m=O?O.prototype:void 0,f=m?m.toString:void 0;function c(o){if(typeof o=="string")return o;if(T(o))return x(o,c)+"";if(v(o))return f?f.call(o):"";var r=o+"";return r=="0"&&1/o==-S?"-0":r}U.exports=c},zuHt:function(U,P,d){var O=d("bYtY");function x(T){var v={};T.eachSeriesByType("map",function(S){var m=S.getMapType();if(S.getHostGeoModel()||v[m])return;var f={};O.each(S.seriesGroup,function(o){var r=o.coordinateSystem,a=o.originalData;o.get("showLegendSymbol")&&T.getComponent("legend")&&a.each(a.mapDimension("value"),function(n,e){var s=a.getName(e),t=r.getRegion(s);if(!t||isNaN(n))return;var i=f[s]||0,l=r.dataToPoint(t.center);f[s]=i+1,a.setItemLayout(e,{point:l,offset:i})})});var c=S.getData();c.each(function(o){var r=c.getName(o),a=c.getItemLayout(o)||{};a.showLabel=!f[r],c.setItemLayout(o,a)}),v[m]=!0})}U.exports=x}}]);
|